blob: 418e632efa25ee5fbd84ca95d91d665b0e4fa3cc [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jimblandydc4029a2010-02-02 17:39:51 +00003# Generated by GNU Autoconf 2.65 for breakpad 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
5# Report bugs to <opensource@google.com>.
6#
jimblandydc4029a2010-02-02 17:39:51 +00007#
mmentovai8c2a4de2006-09-20 16:20:15 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
jimblandydc4029a2010-02-02 17:39:51 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
jimblandy92b1f832009-12-23 22:23:49 +000012#
brynercb91a2f2006-08-25 21:14:45 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000018
mmentovaiaf3c43f2007-05-17 18:34:37 +000019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000022 emulate sh
23 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000027 setopt NO_GLOB_SUBST
28else
jimblandy92b1f832009-12-23 22:23:49 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000034esac
brynercb91a2f2006-08-25 21:14:45 +000035fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000036
37
jimblandy92b1f832009-12-23 22:23:49 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
brynercb91a2f2006-08-25 21:14:45 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
mmentovai8c2a4de2006-09-20 16:20:15 +000083fi
brynercb91a2f2006-08-25 21:14:45 +000084
mmentovai8c2a4de2006-09-20 16:20:15 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000094case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000103IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000104
mmentovai8c2a4de2006-09-20 16:20:15 +0000105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000115fi
116
jimblandy92b1f832009-12-23 22:23:49 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000134
jimblandy92b1f832009-12-23 22:23:49 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
mmentovai8c2a4de2006-09-20 16:20:15 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
jimblandy92b1f832009-12-23 22:23:49 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000396
mmentovai8c2a4de2006-09-20 16:20:15 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000401$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
jimblandy92b1f832009-12-23 22:23:49 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000422
423
jimblandy92b1f832009-12-23 22:23:49 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000433 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000438 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000441 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000442 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000443 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000444 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000445 { $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 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000451 # Exit status is that of the last command.
452 exit
453}
454
mmentovai8c2a4de2006-09-20 16:20:15 +0000455ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000456case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000457-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000458 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000463 esac;;
464*)
465 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000466esac
467
brynercb91a2f2006-08-25 21:14:45 +0000468rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000473 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000474fi
jimblandy92b1f832009-12-23 22:23:49 +0000475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
brynercb91a2f2006-08-25 21:14:45 +0000487 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +0000488 fi
brynercb91a2f2006-08-25 21:14:45 +0000489else
490 as_ln_s='cp -p'
491fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000494
495if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
mmentovaiaf3c43f2007-05-17 18:34:37 +0000502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +0000504else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +0000513 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +0000514 else
jimblandy92b1f832009-12-23 22:23:49 +0000515 case $1 in #(
516 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +0000517 esac;
jimblandy92b1f832009-12-23 22:23:49 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
mmentovai8c2a4de2006-09-20 16:20:15 +0000522fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000523as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +0000524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
brynercb91a2f2006-08-25 21:14:45 +0000532
brynercb91a2f2006-08-25 21:14:45 +0000533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
jimblandy92b1f832009-12-23 22:23:49 +0000536case X$lt_ECHO in
brynercb91a2f2006-08-25 21:14:45 +0000537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
jimblandy92b1f832009-12-23 22:23:49 +0000539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
brynercb91a2f2006-08-25 21:14:45 +0000540 ;;
541esac
542
jimblandy92b1f832009-12-23 22:23:49 +0000543ECHO=${lt_ECHO-echo}
brynercb91a2f2006-08-25 21:14:45 +0000544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
jimblandy92b1f832009-12-23 22:23:49 +0000550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
brynercb91a2f2006-08-25 21:14:45 +0000552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
jimblandy92b1f832009-12-23 22:23:49 +0000561 cat <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +0000562$*
jimblandy92b1f832009-12-23 22:23:49 +0000563_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +0000564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +0000569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +0000570
jimblandy92b1f832009-12-23 22:23:49 +0000571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
brynercb91a2f2006-08-25 21:14:45 +0000583
jimblandy92b1f832009-12-23 22:23:49 +0000584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
brynercb91a2f2006-08-25 21:14:45 +0000594
jimblandy92b1f832009-12-23 22:23:49 +0000595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
brynercb91a2f2006-08-25 21:14:45 +0000606 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +0000607
jimblandy92b1f832009-12-23 22:23:49 +0000608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
brynercb91a2f2006-08-25 21:14:45 +0000623 else
jimblandy92b1f832009-12-23 22:23:49 +0000624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
brynercb91a2f2006-08-25 21:14:45 +0000648
jimblandy92b1f832009-12-23 22:23:49 +0000649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
brynercb91a2f2006-08-25 21:14:45 +0000664 fi
jimblandy92b1f832009-12-23 22:23:49 +0000665 fi
brynercb91a2f2006-08-25 21:14:45 +0000666 fi
667 fi
668 fi
669fi
brynercb91a2f2006-08-25 21:14:45 +0000670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
jimblandy92b1f832009-12-23 22:23:49 +0000673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
brynercb91a2f2006-08-25 21:14:45 +0000676fi
677
678
679
680
jimblandydc4029a2010-02-02 17:39:51 +0000681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
mmentovai8c2a4de2006-09-20 16:20:15 +0000683
brynercb91a2f2006-08-25 21:14:45 +0000684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
brynercb91a2f2006-08-25 21:14:45 +0000689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000693ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000694ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000695LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000700
brynercb91a2f2006-08-25 21:14:45 +0000701# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000702PACKAGE_NAME='breakpad'
703PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000704PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000705PACKAGE_STRING='breakpad 0.1'
brynercb91a2f2006-08-25 21:14:45 +0000706PACKAGE_BUGREPORT='opensource@google.com'
jimblandy92b1f832009-12-23 22:23:49 +0000707PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000708
709ac_unique_file="README"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
mmentovaiaf3c43f2007-05-17 18:34:37 +0000713#ifdef HAVE_SYS_TYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000714# include <sys/types.h>
715#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000716#ifdef HAVE_SYS_STAT_H
brynercb91a2f2006-08-25 21:14:45 +0000717# include <sys/stat.h>
718#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000719#ifdef STDC_HEADERS
brynercb91a2f2006-08-25 21:14:45 +0000720# include <stdlib.h>
721# include <stddef.h>
722#else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000723# ifdef HAVE_STDLIB_H
brynercb91a2f2006-08-25 21:14:45 +0000724# include <stdlib.h>
725# endif
726#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
brynercb91a2f2006-08-25 21:14:45 +0000729# include <memory.h>
730# endif
731# include <string.h>
732#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000733#ifdef HAVE_STRINGS_H
brynercb91a2f2006-08-25 21:14:45 +0000734# include <strings.h>
735#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000736#ifdef HAVE_INTTYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000737# include <inttypes.h>
mmentovai8c2a4de2006-09-20 16:20:15 +0000738#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000739#ifdef HAVE_STDINT_H
mmentovai8c2a4de2006-09-20 16:20:15 +0000740# include <stdint.h>
brynercb91a2f2006-08-25 21:14:45 +0000741#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000742#ifdef HAVE_UNISTD_H
brynercb91a2f2006-08-25 21:14:45 +0000743# include <unistd.h>
744#endif"
745
jimblandy92b1f832009-12-23 22:23:49 +0000746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000749LIBOBJS
jimblandy92b1f832009-12-23 22:23:49 +0000750SELFTEST_FALSE
751SELFTEST_TRUE
nealsidde545c02010-03-02 00:39:48 +0000752PTHREAD_CFLAGS
753PTHREAD_LIBS
754PTHREAD_CC
755ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000756LIBTOOL_DEPS
757CXXCPP
758OTOOL64
759OTOOL
760LIPO
761NMEDIT
762DSYMUTIL
763lt_ECHO
764RANLIB
765AR
766OBJDUMP
767LN_S
768NM
769ac_ct_DUMPBIN
770DUMPBIN
771LD
772FGREP
773EGREP
774GREP
775SED
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784LIBTOOL
785am__fastdepCXX_FALSE
786am__fastdepCXX_TRUE
787CXXDEPMODE
788ac_ct_CXX
789CXXFLAGS
790CXX
791CPP
792am__fastdepCC_FALSE
793am__fastdepCC_TRUE
794CCDEPMODE
795AMDEPBACKSLASH
796AMDEP_FALSE
797AMDEP_TRUE
798am__quote
799am__include
800DEPDIR
801OBJEXT
802EXEEXT
803ac_ct_CC
804CPPFLAGS
805LDFLAGS
806CFLAGS
807CC
808am__untar
809am__tar
810AMTAR
811am__leading_dot
812SET_MAKE
813AWK
814mkdir_p
815MKDIR_P
816INSTALL_STRIP_PROGRAM
817STRIP
818install_sh
819MAKEINFO
820AUTOHEADER
821AUTOMAKE
822AUTOCONF
823ACLOCAL
824VERSION
825PACKAGE
826CYGPATH_W
827am__isrc
828INSTALL_DATA
829INSTALL_SCRIPT
830INSTALL_PROGRAM
831target_alias
832host_alias
833build_alias
834LIBS
835ECHO_T
836ECHO_N
837ECHO_C
838DEFS
839mandir
840localedir
841libdir
842psdir
843pdfdir
844dvidir
845htmldir
846infodir
847docdir
848oldincludedir
849includedir
850localstatedir
851sharedstatedir
852sysconfdir
853datadir
854datarootdir
855libexecdir
856sbindir
857bindir
858program_transform_name
859prefix
860exec_prefix
861PACKAGE_URL
862PACKAGE_BUGREPORT
863PACKAGE_STRING
864PACKAGE_VERSION
865PACKAGE_TARNAME
866PACKAGE_NAME
867PATH_SEPARATOR
868SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000869ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000870ac_user_opts='
871enable_option_checking
872enable_dependency_tracking
873enable_shared
874enable_static
875with_pic
876enable_fast_install
877with_gnu_ld
878enable_libtool_lock
nealsidde545c02010-03-02 00:39:48 +0000879enable_m32
jimblandy92b1f832009-12-23 22:23:49 +0000880enable_selftest
881'
mmentovai8c2a4de2006-09-20 16:20:15 +0000882 ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000888LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000889CPPFLAGS
890CPP
891CXX
892CXXFLAGS
893CCC
jimblandy92b1f832009-12-23 22:23:49 +0000894CXXCPP'
mmentovai8c2a4de2006-09-20 16:20:15 +0000895
brynercb91a2f2006-08-25 21:14:45 +0000896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000900ac_unrecognized_opts=
901ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000902# The variables have the same names as the options, with
903# dashes changed to underlines.
904cache_file=/dev/null
905exec_prefix=NONE
906no_create=
907no_recursion=
908prefix=NONE
909program_prefix=NONE
910program_suffix=NONE
911program_transform_name=s,x,x,
912silent=
913site=
914srcdir=
915verbose=
916x_includes=NONE
917x_libraries=NONE
918
919# Installation directory options.
920# These are left unexpanded so users can "make install exec_prefix=/foo"
921# and all the variables that are supposed to be based on exec_prefix
922# by default will actually change.
923# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000924# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000925bindir='${exec_prefix}/bin'
926sbindir='${exec_prefix}/sbin'
927libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000928datarootdir='${prefix}/share'
929datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000930sysconfdir='${prefix}/etc'
931sharedstatedir='${prefix}/com'
932localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000933includedir='${prefix}/include'
934oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000935docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000944
945ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000946ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000947for ac_option
948do
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000951 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000952 ac_prev=
953 continue
954 fi
955
mmentovai8c2a4de2006-09-20 16:20:15 +0000956 case $ac_option in
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *) ac_optarg=yes ;;
959 esac
brynercb91a2f2006-08-25 21:14:45 +0000960
961 # Accept the important Cygnus configure options, so we can diagnose typos.
962
mmentovai8c2a4de2006-09-20 16:20:15 +0000963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
mmentovai8c2a4de2006-09-20 16:20:15 +0000987 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000988 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000990 datadir=$ac_optarg ;;
991
mmentovai8c2a4de2006-09-20 16:20:15 +0000992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
brynercb91a2f2006-08-25 21:14:45 +0000999 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001000 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001001 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"enable_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001024
1025 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001026 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001027 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"enable_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
mmentovai8c2a4de2006-09-20 16:20:15 +00001066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
brynercb91a2f2006-08-25 21:14:45 +00001072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
mmentovai8c2a4de2006-09-20 16:20:15 +00001096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
brynercb91a2f2006-08-25 21:14:45 +00001101 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001102 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
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 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
mmentovai8c2a4de2006-09-20 16:20:15 +00001170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
brynercb91a2f2006-08-25 21:14:45 +00001180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 ac_prev=sbindir ;;
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 | --sbi=* | --sb=*)
1188 sbindir=$ac_optarg ;;
1189
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1193 | --sha | --sh)
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 | --sha=* | --sh=*)
1199 sharedstatedir=$ac_optarg ;;
1200
1201 -site | --site | --sit)
1202 ac_prev=site ;;
1203 -site=* | --site=* | --sit=*)
1204 site=$ac_optarg ;;
1205
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 ac_prev=srcdir ;;
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1210
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1217
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1222
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 verbose=yes ;;
1225
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1228
1229 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001230 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001231 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001244
1245 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001246 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001247 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254"with_$ac_useropt"
1255"*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001260
1261 --x)
1262 # Obsolete; use --with-x.
1263 with_x=yes ;;
1264
1265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266 | --x-incl | --x-inc | --x-in | --x-i)
1267 ac_prev=x_includes ;;
1268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1270 x_includes=$ac_optarg ;;
1271
1272 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274 ac_prev=x_libraries ;;
1275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1277 x_libraries=$ac_optarg ;;
1278
jimblandy92b1f832009-12-23 22:23:49 +00001279 -*) as_fn_error "unrecognized option: \`$ac_option'
1280Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001281 ;;
1282
1283 *=*)
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001286 case $ac_envvar in #(
1287 '' | [0-9]* | *[!_$as_cr_alnum]* )
1288 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1289 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001290 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001291 export $ac_envvar ;;
1292
1293 *)
1294 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001295 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001296 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001297 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001298 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 ;;
1300
1301 esac
1302done
1303
1304if test -n "$ac_prev"; then
1305 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jimblandy92b1f832009-12-23 22:23:49 +00001306 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001307fi
1308
jimblandy92b1f832009-12-23 22:23:49 +00001309if test -n "$ac_unrecognized_opts"; then
1310 case $enable_option_checking in
1311 no) ;;
1312 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1313 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 esac
1315fi
1316
1317# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001318for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001322do
mmentovai8c2a4de2006-09-20 16:20:15 +00001323 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001324 # Remove trailing slashes.
1325 case $ac_val in
1326 */ )
1327 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328 eval $ac_var=\$ac_val;;
1329 esac
1330 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001331 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001332 [\\/$]* | ?:[\\/]* ) continue;;
1333 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001334 esac
jimblandy92b1f832009-12-23 22:23:49 +00001335 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001336done
1337
1338# There might be people who depend on the old broken behavior: `$host'
1339# used to hold the argument of --host etc.
1340# FIXME: To remove some day.
1341build=$build_alias
1342host=$host_alias
1343target=$target_alias
1344
1345# FIXME: To remove some day.
1346if test "x$host_alias" != x; then
1347 if test "x$build_alias" = x; then
1348 cross_compiling=maybe
jimblandy92b1f832009-12-23 22:23:49 +00001349 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
brynercb91a2f2006-08-25 21:14:45 +00001350 If a cross compiler is detected then cross compile mode will be used." >&2
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354fi
1355
1356ac_tool_prefix=
1357test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359test "$silent" = yes && exec 6>/dev/null
1360
1361
mmentovai8c2a4de2006-09-20 16:20:15 +00001362ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363ac_ls_di=`ls -di .` &&
1364ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
jimblandy92b1f832009-12-23 22:23:49 +00001365 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001366test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
jimblandy92b1f832009-12-23 22:23:49 +00001367 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001368
1369
brynercb91a2f2006-08-25 21:14:45 +00001370# Find the source files, if location was not specified.
1371if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001373 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001397 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001398 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001399 srcdir=..
1400 fi
1401else
1402 ac_srcdir_defaulted=no
1403fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001404if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
jimblandy92b1f832009-12-23 22:23:49 +00001406 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001407fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001408ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409ac_abs_confdir=`(
jimblandy92b1f832009-12-23 22:23:49 +00001410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001411 pwd)`
1412# When building in place, set srcdir=.
1413if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415fi
1416# Remove unnecessary trailing slashes from srcdir.
1417# Double slashes in file names in object file debugging info
1418# mess up M-x gdb in Emacs.
1419case $srcdir in
1420*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421esac
1422for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427done
brynercb91a2f2006-08-25 21:14:45 +00001428
1429#
1430# Report the --help message.
1431#
1432if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001436\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001437
1438Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443Defaults for the options are specified in brackets.
1444
1445Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
brynercb91a2f2006-08-25 21:14:45 +00001456Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001458 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001460 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001461
1462By default, \`make install' will install all the files in
1463\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465for instance \`--prefix=\$HOME'.
1466
1467For better control, use the options below.
1468
1469Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001489_ACEOF
1490
1491 cat <<\_ACEOF
1492
1493Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497
1498System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501_ACEOF
1502fi
1503
1504if test -n "$ac_init_help"; then
1505 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001506 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001507 esac
1508 cat <<\_ACEOF
1509
1510Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001511 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
nealsidde545c02010-03-02 00:39:48 +00001521 --enable-m32 Compile/build with -m32 (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001522 --enable-selftest Run extra tests with "make check" (may conflict with
1523 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001524
1525Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
brynercb91a2f2006-08-25 21:14:45 +00001528 --with-pic try to use only PIC/non-PIC objects [default=use
1529 both]
jimblandy92b1f832009-12-23 22:23:49 +00001530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
brynercb91a2f2006-08-25 21:14:45 +00001531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001537 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001539 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001540 CPP C preprocessor
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001544
1545Use these variables to override the choices made by `configure' or to help
1546it to find libraries and programs with nonstandard names/locations.
1547
1548Report bugs to <opensource@google.com>.
1549_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001550ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001551fi
1552
1553if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
brynercb91a2f2006-08-25 21:14:45 +00001559 ac_builddir=.
1560
mmentovai8c2a4de2006-09-20 16:20:15 +00001561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
jimblandy92b1f832009-12-23 22:23:49 +00001564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001565 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001576
1577case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001578 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001579 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001583 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001590esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001592
mmentovai8c2a4de2006-09-20 16:20:15 +00001593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001601 else
jimblandy92b1f832009-12-23 22:23:49 +00001602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001605 done
1606fi
1607
mmentovai8c2a4de2006-09-20 16:20:15 +00001608test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001609if $ac_init_version; then
1610 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001611breakpad configure 0.1
jimblandydc4029a2010-02-02 17:39:51 +00001612generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001613
jimblandy92b1f832009-12-23 22:23:49 +00001614Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001615This configure script is free software; the Free Software Foundation
1616gives unlimited permission to copy, distribute and modify it.
1617_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001618 exit
brynercb91a2f2006-08-25 21:14:45 +00001619fi
jimblandy92b1f832009-12-23 22:23:49 +00001620
1621## ------------------------ ##
1622## Autoconf initialization. ##
1623## ------------------------ ##
1624
1625# ac_fn_c_try_compile LINENO
1626# --------------------------
1627# Try to compile conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_compile ()
1629{
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001659 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001660
1661} # ac_fn_c_try_compile
1662
1663# ac_fn_c_try_cpp LINENO
1664# ----------------------
1665# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_cpp ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } >/dev/null && {
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689else
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694fi
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001696 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001697
1698} # ac_fn_c_try_cpp
1699
1700# ac_fn_cxx_try_compile LINENO
1701# ----------------------------
1702# Try to compile conftest.$ac_ext, and return whether this succeeded.
1703ac_fn_cxx_try_compile ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1708case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_cxx_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1726 ac_retval=0
1727else
1728 $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732fi
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001734 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001735
1736} # ac_fn_cxx_try_compile
1737
1738# ac_fn_c_try_link LINENO
1739# -----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded.
1741ac_fn_c_try_link ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 $as_test_x conftest$ac_exeext
1766 }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001780 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001781
1782} # ac_fn_c_try_link
1783
1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists and can be compiled using the include files in
1787# INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803else
1804 eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812
1813} # ac_fn_c_check_header_compile
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001853 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001854
1855} # ac_fn_c_try_run
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 $as_echo_n "(cached) " >&6
1867else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910 eval "$3=yes"
1911else
1912 eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921
1922} # ac_fn_c_check_func
1923
1924# ac_fn_cxx_try_cpp LINENO
1925# ------------------------
1926# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927ac_fn_cxx_try_cpp ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1931case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936$as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } >/dev/null && {
1946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 }; then :
1949 ac_retval=0
1950else
1951 $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955fi
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001957 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001958
1959} # ac_fn_cxx_try_cpp
1960
1961# ac_fn_cxx_try_link LINENO
1962# -------------------------
1963# Try to link conftest.$ac_ext, and return whether this succeeded.
1964ac_fn_cxx_try_link ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1969case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972esac
1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974$as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_cxx_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 $as_test_x conftest$ac_exeext
1989 }; then :
1990 ac_retval=0
1991else
1992 $as_echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=1
1996fi
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00002003 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00002004
2005} # ac_fn_cxx_try_link
ted.mielczarekb2236272010-04-08 23:06:23 +00002006
2007# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2008# ----------------------------------------------------
2009# Tries to find if the field MEMBER exists in type AGGR, after including
2010# INCLUDES, setting cache variable VAR accordingly.
2011ac_fn_c_check_member ()
2012{
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2015$as_echo_n "checking for $2.$3... " >&6; }
2016if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020/* end confdefs.h. */
2021$5
2022int
2023main ()
2024{
2025static $2 ac_aggr;
2026if (ac_aggr.$3)
2027return 0;
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$4=yes"
2034else
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h. */
2037$5
2038int
2039main ()
2040{
2041static $2 ac_aggr;
2042if (sizeof ac_aggr.$3)
2043return 0;
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"; then :
2049 eval "$4=yes"
2050else
2051 eval "$4=no"
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056fi
2057eval ac_res=\$$4
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061
2062} # ac_fn_c_check_member
mmentovai8c2a4de2006-09-20 16:20:15 +00002063cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00002064This file contains any messages produced by compilers while
2065running configure, to aid debugging if configure makes a mistake.
2066
mmentovaie5dc6082007-02-14 19:51:05 +00002067It was created by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +00002068generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00002069
2070 $ $0 $@
2071
2072_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002073exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00002074{
2075cat <<_ASUNAME
2076## --------- ##
2077## Platform. ##
2078## --------- ##
2079
2080hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084uname -v = `(uname -v) 2>/dev/null || echo unknown`
2085
2086/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2088
2089/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2090/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2091/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00002092/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00002093/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2094/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2095/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2096
2097_ASUNAME
2098
2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002104 $as_echo "PATH: $as_dir"
2105 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002106IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002107
2108} >&5
2109
2110cat >&5 <<_ACEOF
2111
2112
2113## ----------- ##
2114## Core tests. ##
2115## ----------- ##
2116
2117_ACEOF
2118
2119
2120# Keep a trace of the command line.
2121# Strip out --no-create and --no-recursion so they do not pile up.
2122# Strip out --silent because we don't want to record it for future runs.
2123# Also quote any args containing shell meta-characters.
2124# Make two passes to allow for proper duplicate-argument suppression.
2125ac_configure_args=
2126ac_configure_args0=
2127ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002128ac_must_keep_next=false
2129for ac_pass in 1 2
2130do
2131 for ac_arg
2132 do
2133 case $ac_arg in
2134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136 | -silent | --silent | --silen | --sile | --sil)
2137 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002138 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002139 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002140 esac
2141 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002142 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002143 2)
jimblandy92b1f832009-12-23 22:23:49 +00002144 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002145 if test $ac_must_keep_next = true; then
2146 ac_must_keep_next=false # Got value, back to normal.
2147 else
2148 case $ac_arg in
2149 *=* | --config-cache | -C | -disable-* | --disable-* \
2150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152 | -with-* | --with-* | -without-* | --without-* | --x)
2153 case "$ac_configure_args0 " in
2154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2155 esac
2156 ;;
2157 -* ) ac_must_keep_next=true ;;
2158 esac
2159 fi
jimblandy92b1f832009-12-23 22:23:49 +00002160 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002161 ;;
2162 esac
2163 done
2164done
jimblandy92b1f832009-12-23 22:23:49 +00002165{ ac_configure_args0=; unset ac_configure_args0;}
2166{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002167
2168# When interrupted or exit'd, cleanup temporary files, and complete
2169# config.log. We remove comments because anyway the quotes in there
2170# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002171# WARNING: Use '\'' to represent an apostrophe within the trap.
2172# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002173trap 'exit_status=$?
2174 # Save into config.log some information that might help in debugging.
2175 {
2176 echo
2177
2178 cat <<\_ASBOX
2179## ---------------- ##
2180## Cache variables. ##
2181## ---------------- ##
2182_ASBOX
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002185(
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002198 esac ;;
2199 esac
2200 done
brynercb91a2f2006-08-25 21:14:45 +00002201 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002204 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002208 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002210 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002211 esac |
2212 sort
2213)
brynercb91a2f2006-08-25 21:14:45 +00002214 echo
2215
2216 cat <<\_ASBOX
2217## ----------------- ##
2218## Output variables. ##
2219## ----------------- ##
2220_ASBOX
2221 echo
2222 for ac_var in $ac_subst_vars
2223 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002224 eval ac_val=\$$ac_var
2225 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002227 esac
jimblandy92b1f832009-12-23 22:23:49 +00002228 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002229 done | sort
2230 echo
2231
2232 if test -n "$ac_subst_files"; then
2233 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00002234## ------------------- ##
2235## File substitutions. ##
2236## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002237_ASBOX
2238 echo
2239 for ac_var in $ac_subst_files
2240 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002241 eval ac_val=\$$ac_var
2242 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002244 esac
jimblandy92b1f832009-12-23 22:23:49 +00002245 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002246 done | sort
2247 echo
2248 fi
2249
2250 if test -s confdefs.h; then
2251 cat <<\_ASBOX
2252## ----------- ##
2253## confdefs.h. ##
2254## ----------- ##
2255_ASBOX
2256 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002257 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002258 echo
2259 fi
2260 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002261 $as_echo "$as_me: caught signal $ac_signal"
2262 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002263 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002264 rm -f core *.core core.conftest.* &&
2265 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002266 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002267' 0
brynercb91a2f2006-08-25 21:14:45 +00002268for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002269 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002270done
2271ac_signal=0
2272
2273# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002274rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002275
jimblandy92b1f832009-12-23 22:23:49 +00002276$as_echo "/* confdefs.h */" > confdefs.h
2277
brynercb91a2f2006-08-25 21:14:45 +00002278# Predefined preprocessor variables.
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_NAME "$PACKAGE_NAME"
2282_ACEOF
2283
brynercb91a2f2006-08-25 21:14:45 +00002284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2286_ACEOF
2287
brynercb91a2f2006-08-25 21:14:45 +00002288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_VERSION "$PACKAGE_VERSION"
2290_ACEOF
2291
brynercb91a2f2006-08-25 21:14:45 +00002292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_STRING "$PACKAGE_STRING"
2294_ACEOF
2295
brynercb91a2f2006-08-25 21:14:45 +00002296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2298_ACEOF
2299
jimblandy92b1f832009-12-23 22:23:49 +00002300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_URL "$PACKAGE_URL"
2302_ACEOF
2303
brynercb91a2f2006-08-25 21:14:45 +00002304
2305# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002306# Prefer an explicitly selected file to automatically selected ones.
2307ac_site_file1=NONE
2308ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002309if test -n "$CONFIG_SITE"; then
jimblandy92b1f832009-12-23 22:23:49 +00002310 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002311elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002312 ac_site_file1=$prefix/share/config.site
2313 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002314else
jimblandy92b1f832009-12-23 22:23:49 +00002315 ac_site_file1=$ac_default_prefix/share/config.site
2316 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002317fi
jimblandy92b1f832009-12-23 22:23:49 +00002318for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002319do
jimblandy92b1f832009-12-23 22:23:49 +00002320 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002321 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002324 sed 's/^/| /' "$ac_site_file" >&5
2325 . "$ac_site_file"
2326 fi
2327done
2328
2329if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002330 # Some versions of bash will fail to source /dev/null (special files
2331 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2332 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2334$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002335 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002336 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2337 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002338 esac
2339 fi
2340else
jimblandy92b1f832009-12-23 22:23:49 +00002341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2342$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002343 >$cache_file
2344fi
2345
2346# Check that the precious variables saved in the cache have kept the same
2347# value.
2348ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002349for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002354 case $ac_old_set,$ac_new_set in
2355 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002358 ac_cache_corrupted=: ;;
2359 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002362 ac_cache_corrupted=: ;;
2363 ,);;
2364 *)
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002382 fi;;
2383 esac
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2386 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002388 *) ac_arg=$ac_var=$ac_new_val ;;
2389 esac
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002393 esac
2394 fi
2395done
2396if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002402fi
jimblandy92b1f832009-12-23 22:23:49 +00002403## -------------------- ##
2404## Main body of script. ##
2405## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002406
brynercb91a2f2006-08-25 21:14:45 +00002407ac_ext=c
2408ac_cpp='$CPP $CPPFLAGS'
2409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412
2413
2414
brynercb91a2f2006-08-25 21:14:45 +00002415ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002416for ac_dir in autotools "$srcdir"/autotools; do
jimblandy92b1f832009-12-23 22:23:49 +00002417 for ac_t in install-sh install.sh shtool; do
2418 if test -f "$ac_dir/$ac_t"; then
2419 ac_aux_dir=$ac_dir
2420 ac_install_sh="$ac_aux_dir/$ac_t -c"
2421 break 2
2422 fi
2423 done
brynercb91a2f2006-08-25 21:14:45 +00002424done
2425if test -z "$ac_aux_dir"; then
jimblandy92b1f832009-12-23 22:23:49 +00002426 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002427fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002428
2429# These three variables are undocumented and unsupported,
2430# and are intended to be withdrawn in a future Autoconf release.
2431# They can cause serious problems if a builder's source tree is in a directory
2432# whose full name contains unusual characters.
2433ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2434ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2435ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2436
brynercb91a2f2006-08-25 21:14:45 +00002437
mmentovai425d2562006-08-30 20:05:05 +00002438
jimblandy92b1f832009-12-23 22:23:49 +00002439am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002440
brynercb91a2f2006-08-25 21:14:45 +00002441# Find a good install program. We prefer a C program (faster),
2442# so one script is as good as another. But avoid the broken or
2443# incompatible versions:
2444# SysV /etc/install, /usr/sbin/install
2445# SunOS /usr/etc/install
2446# IRIX /sbin/install
2447# AIX /bin/install
2448# AmigaOS /C/install, which installs bootblocks on floppy discs
2449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2450# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2452# OS/2's system install, which has a completely different semantic
2453# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002454# Reject install programs that cannot install multiple files.
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2456$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002457if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002458if test "${ac_cv_path_install+set}" = set; then :
2459 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002460else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002466 # Account for people who put trailing slashes in PATH elements.
2467case $as_dir/ in #((
2468 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002470 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002471 /usr/ucb/* ) ;;
2472 *)
2473 # OSF1 and SCO ODT 3.0 have their own names for install.
2474 # Don't use installbsd from OSF since it installs stuff as root
2475 # by default.
2476 for ac_prog in ginstall scoinst install; do
2477 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002478 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 +00002479 if test $ac_prog = install &&
2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # AIX install. It has an incompatible calling convention.
2482 :
2483 elif test $ac_prog = install &&
2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485 # program-specific install script used by HP pwplus--don't use.
2486 :
2487 else
jimblandy92b1f832009-12-23 22:23:49 +00002488 rm -rf conftest.one conftest.two conftest.dir
2489 echo one > conftest.one
2490 echo two > conftest.two
2491 mkdir conftest.dir
2492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2493 test -s conftest.one && test -s conftest.two &&
2494 test -s conftest.dir/conftest.one &&
2495 test -s conftest.dir/conftest.two
2496 then
2497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2498 break 3
2499 fi
brynercb91a2f2006-08-25 21:14:45 +00002500 fi
2501 fi
2502 done
2503 done
2504 ;;
2505esac
jimblandy92b1f832009-12-23 22:23:49 +00002506
2507 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002508IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002509
jimblandy92b1f832009-12-23 22:23:49 +00002510rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002511
2512fi
2513 if test "${ac_cv_path_install+set}" = set; then
2514 INSTALL=$ac_cv_path_install
2515 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002516 # As a last resort, use the slow shell script. Don't cache a
2517 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002518 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002519 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002520 INSTALL=$ac_install_sh
2521 fi
2522fi
jimblandy92b1f832009-12-23 22:23:49 +00002523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2524$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002525
2526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2527# It thinks the first close brace ends the variable substitution.
2528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2529
2530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2531
2532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2533
jimblandy92b1f832009-12-23 22:23:49 +00002534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2535$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002536# Just in case
2537sleep 1
2538echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002539# Reject unsafe characters in $srcdir or the absolute working directory
2540# name. Accept space and tab only in the latter.
2541am_lf='
2542'
2543case `pwd` in
2544 *[\\\"\#\$\&\'\`$am_lf]*)
2545 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2546esac
2547case $srcdir in
2548 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2549 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2550esac
2551
brynercb91a2f2006-08-25 21:14:45 +00002552# Do `set' in a subshell so we don't clobber the current shell's
2553# arguments. Must try -L first in case configure is actually a
2554# symlink; some systems play weird games with the mod time of symlinks
2555# (eg FreeBSD returns the mod time of the symlink's containing
2556# directory).
2557if (
jimblandy92b1f832009-12-23 22:23:49 +00002558 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002559 if test "$*" = "X"; then
2560 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002561 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002562 fi
2563 rm -f conftest.file
2564 if test "$*" != "X $srcdir/configure conftest.file" \
2565 && test "$*" != "X conftest.file $srcdir/configure"; then
2566
2567 # If neither matched, then we have a broken ls. This can happen
2568 # if, for instance, CONFIG_SHELL is bash and it inherits a
2569 # broken ls alias from the environment. This has actually
2570 # happened. Such a system could not be considered "sane".
jimblandy92b1f832009-12-23 22:23:49 +00002571 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2572alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002573 fi
2574
2575 test "$2" = conftest.file
2576 )
2577then
2578 # Ok.
2579 :
2580else
jimblandy92b1f832009-12-23 22:23:49 +00002581 as_fn_error "newly created file is older than distributed files!
2582Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002583fi
jimblandy92b1f832009-12-23 22:23:49 +00002584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2585$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002586test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002587 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002588# Use a double $ so make ignores it.
2589test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002590 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002591# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002592# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002593ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2594program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002595
2596# expand $ac_aux_dir to an absolute path
2597am_aux_dir=`cd $ac_aux_dir && pwd`
2598
jimblandy92b1f832009-12-23 22:23:49 +00002599if test x"${MISSING+set}" != xset; then
2600 case $am_aux_dir in
2601 *\ * | *\ *)
2602 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2603 *)
2604 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2605 esac
2606fi
brynercb91a2f2006-08-25 21:14:45 +00002607# Use eval to expand $SHELL
2608if eval "$MISSING --run true"; then
2609 am_missing_run="$MISSING --run "
2610else
2611 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2613$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002614fi
2615
jimblandy92b1f832009-12-23 22:23:49 +00002616if test x"${install_sh}" != xset; then
2617 case $am_aux_dir in
2618 *\ * | *\ *)
2619 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620 *)
2621 install_sh="\${SHELL} $am_aux_dir/install-sh"
2622 esac
2623fi
2624
2625# Installed binaries are usually stripped using `strip' when the user
2626# run `make install-strip'. However `strip' might not be the right
2627# tool to use in cross-compilation environments, therefore Automake
2628# will honor the `STRIP' environment variable to overrule this program.
2629if test "$cross_compiling" != no; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2632set dummy ${ac_tool_prefix}strip; ac_word=$2
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
2635if test "${ac_cv_prog_STRIP+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
2637else
2638 if test -n "$STRIP"; then
2639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652done
2653 done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658STRIP=$ac_cv_prog_STRIP
2659if test -n "$STRIP"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2661$as_echo "$STRIP" >&6; }
2662else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
2665fi
2666
2667
2668fi
2669if test -z "$ac_cv_prog_STRIP"; then
2670 ac_ct_STRIP=$STRIP
2671 # Extract the first word of "strip", so it can be a program name with args.
2672set dummy strip; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$ac_ct_STRIP"; then
2679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_ac_ct_STRIP="strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2699if test -n "$ac_ct_STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2701$as_echo "$ac_ct_STRIP" >&6; }
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707 if test "x$ac_ct_STRIP" = x; then
2708 STRIP=":"
2709 else
2710 case $cross_compiling:$ac_tool_warned in
2711yes:)
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716 STRIP=$ac_ct_STRIP
2717 fi
2718else
2719 STRIP="$ac_cv_prog_STRIP"
2720fi
2721
2722fi
2723INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2726$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002727if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002728 if test "${ac_cv_path_mkdir+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002730else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2733do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002736 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2739 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2740 'mkdir (GNU coreutils) '* | \
2741 'mkdir (coreutils) '* | \
2742 'mkdir (fileutils) '4.1*)
2743 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2744 break 3;;
2745 esac
2746 done
2747 done
jimblandy92b1f832009-12-23 22:23:49 +00002748 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002749IFS=$as_save_IFS
2750
2751fi
2752
jimblandydc4029a2010-02-02 17:39:51 +00002753 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002754 if test "${ac_cv_path_mkdir+set}" = set; then
2755 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002756 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002757 # As a last resort, use the slow shell script. Don't cache a
2758 # value for MKDIR_P within a source directory, because that will
2759 # break other packages using the cache if that directory is
2760 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002761 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002762 fi
2763fi
jimblandy92b1f832009-12-23 22:23:49 +00002764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2765$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002766
2767mkdir_p="$MKDIR_P"
2768case $mkdir_p in
2769 [\\/$]* | ?:[\\/]*) ;;
2770 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2771esac
brynercb91a2f2006-08-25 21:14:45 +00002772
2773for ac_prog in gawk mawk nawk awk
2774do
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
2779if test "${ac_cv_prog_AWK+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002781else
2782 if test -n "$AWK"; then
2783 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002790 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002791 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 +00002792 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002794 break 2
2795 fi
2796done
jimblandy92b1f832009-12-23 22:23:49 +00002797 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002798IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002799
2800fi
2801fi
2802AWK=$ac_cv_prog_AWK
2803if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2805$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002806else
jimblandy92b1f832009-12-23 22:23:49 +00002807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002809fi
2810
mmentovai8c2a4de2006-09-20 16:20:15 +00002811
brynercb91a2f2006-08-25 21:14:45 +00002812 test -n "$AWK" && break
2813done
2814
jimblandy92b1f832009-12-23 22:23:49 +00002815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2816$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2817set x ${MAKE-make}
2818ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2819if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2820 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002821else
2822 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002823SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002824all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002825 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002826_ACEOF
2827# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002828case `${MAKE-make} -f conftest.make 2>/dev/null` in
2829 *@@@%%%=?*=@@@%%%*)
2830 eval ac_cv_prog_make_${ac_make}_set=yes;;
2831 *)
2832 eval ac_cv_prog_make_${ac_make}_set=no;;
2833esac
brynercb91a2f2006-08-25 21:14:45 +00002834rm -f conftest.make
2835fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002836if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002839 SET_MAKE=
2840else
jimblandy92b1f832009-12-23 22:23:49 +00002841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002843 SET_MAKE="MAKE=${MAKE-make}"
2844fi
2845
2846rm -rf .tst 2>/dev/null
2847mkdir .tst 2>/dev/null
2848if test -d .tst; then
2849 am__leading_dot=.
2850else
2851 am__leading_dot=_
2852fi
2853rmdir .tst 2>/dev/null
2854
mmentovaiaf3c43f2007-05-17 18:34:37 +00002855if test "`cd $srcdir && pwd`" != "`pwd`"; then
2856 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2857 # is not polluted with repeated "-I."
2858 am__isrc=' -I$(srcdir)'
2859 # test to see if srcdir already configured
2860 if test -f $srcdir/config.status; then
jimblandy92b1f832009-12-23 22:23:49 +00002861 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002862 fi
brynercb91a2f2006-08-25 21:14:45 +00002863fi
2864
2865# test whether we have cygpath
2866if test -z "$CYGPATH_W"; then
2867 if (cygpath --version) >/dev/null 2>/dev/null; then
2868 CYGPATH_W='cygpath -w'
2869 else
2870 CYGPATH_W=echo
2871 fi
2872fi
2873
2874
2875# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002876 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002877 VERSION='0.1'
2878
2879
2880cat >>confdefs.h <<_ACEOF
2881#define PACKAGE "$PACKAGE"
2882_ACEOF
2883
2884
2885cat >>confdefs.h <<_ACEOF
2886#define VERSION "$VERSION"
2887_ACEOF
2888
2889# Some tools Automake needs.
2890
2891ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2892
2893
2894AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2895
2896
2897AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2898
2899
2900AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2901
2902
2903MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2904
brynercb91a2f2006-08-25 21:14:45 +00002905# We need awk for the "check" target. The system "awk" is bad on
2906# some platforms.
2907# Always define AMTAR for backward compatibility.
2908
2909AMTAR=${AMTAR-"${am_missing_run}tar"}
2910
mmentovaidb3342a2006-12-05 22:52:28 +00002911
jimblandy92b1f832009-12-23 22:23:49 +00002912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2913$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002914# Loop over all known methods to create a tar archive until one works.
2915_am_tools='gnutar plaintar pax cpio none'
2916_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2917# Do not fold the above two line into one, because Tru64 sh and
2918# Solaris sh will not grok spaces in the rhs of `-'.
2919for _am_tool in $_am_tools
2920do
2921 case $_am_tool in
2922 gnutar)
2923 for _am_tar in tar gnutar gtar;
2924 do
2925 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2926 ($_am_tar --version) >&5 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } && break
2930 done
2931 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2932 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2933 am__untar="$_am_tar -xf -"
2934 ;;
2935 plaintar)
2936 # Must skip GNU tar: if it does not support --format= it doesn't create
2937 # ustar tarball either.
2938 (tar --version) >/dev/null 2>&1 && continue
2939 am__tar='tar chf - "$$tardir"'
2940 am__tar_='tar chf - "$tardir"'
2941 am__untar='tar xf -'
2942 ;;
2943 pax)
2944 am__tar='pax -L -x ustar -w "$$tardir"'
2945 am__tar_='pax -L -x ustar -w "$tardir"'
2946 am__untar='pax -r'
2947 ;;
2948 cpio)
2949 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2950 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2951 am__untar='cpio -i -H ustar -d'
2952 ;;
2953 none)
2954 am__tar=false
2955 am__tar_=false
2956 am__untar=false
2957 ;;
2958 esac
2959
2960 # If the value was cached, stop now. We just wanted to have am__tar
2961 # and am__untar set.
2962 test -n "${am_cv_prog_tar_ustar}" && break
2963
2964 # tar/untar a dummy directory, and stop if the command works
2965 rm -rf conftest.dir
2966 mkdir conftest.dir
2967 echo GrepMe > conftest.dir/file
2968 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2969 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }
2973 rm -rf conftest.dir
2974 if test -s conftest.tar; then
2975 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2976 ($am__untar <conftest.tar) >&5 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }
2980 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2981 fi
2982done
2983rm -rf conftest.dir
2984
jimblandy92b1f832009-12-23 22:23:49 +00002985if test "${am_cv_prog_tar_ustar+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00002987else
2988 am_cv_prog_tar_ustar=$_am_tool
2989fi
2990
jimblandy92b1f832009-12-23 22:23:49 +00002991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2992$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002993
2994
2995
2996
2997
mmentovai8c2a4de2006-09-20 16:20:15 +00002998ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002999
3000
brynercb91a2f2006-08-25 21:14:45 +00003001ac_ext=c
3002ac_cpp='$CPP $CPPFLAGS'
3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3008set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if test "${ac_cv_prog_CC+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003013else
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003022 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003023 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 +00003024 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003026 break 2
3027 fi
3028done
jimblandy92b1f832009-12-23 22:23:49 +00003029 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003030IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003031
3032fi
3033fi
3034CC=$ac_cv_prog_CC
3035if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003038else
jimblandy92b1f832009-12-23 22:23:49 +00003039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003041fi
3042
mmentovai8c2a4de2006-09-20 16:20:15 +00003043
brynercb91a2f2006-08-25 21:14:45 +00003044fi
3045if test -z "$ac_cv_prog_CC"; then
3046 ac_ct_CC=$CC
3047 # Extract the first word of "gcc", so it can be a program name with args.
3048set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003053else
3054 if test -n "$ac_ct_CC"; then
3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056else
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003062 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003063 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 +00003064 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003066 break 2
3067 fi
3068done
jimblandy92b1f832009-12-23 22:23:49 +00003069 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003070IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003071
3072fi
3073fi
3074ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3077$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003078else
jimblandy92b1f832009-12-23 22:23:49 +00003079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003081fi
3082
mmentovai8c2a4de2006-09-20 16:20:15 +00003083 if test "x$ac_ct_CC" = x; then
3084 CC=""
3085 else
3086 case $cross_compiling:$ac_tool_warned in
3087yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003090ac_tool_warned=yes ;;
3091esac
3092 CC=$ac_ct_CC
3093 fi
brynercb91a2f2006-08-25 21:14:45 +00003094else
3095 CC="$ac_cv_prog_CC"
3096fi
3097
3098if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003101set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
3104if test "${ac_cv_prog_CC+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003106else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003115 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003116 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 +00003117 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003119 break 2
3120 fi
3121done
jimblandy92b1f832009-12-23 22:23:49 +00003122 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003123IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003124
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003131else
jimblandy92b1f832009-12-23 22:23:49 +00003132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003134fi
3135
mmentovai8c2a4de2006-09-20 16:20:15 +00003136
brynercb91a2f2006-08-25 21:14:45 +00003137 fi
brynercb91a2f2006-08-25 21:14:45 +00003138fi
3139if test -z "$CC"; then
3140 # Extract the first word of "cc", so it can be a program name with args.
3141set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
3144if test "${ac_cv_prog_CC+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003146else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149else
3150 ac_prog_rejected=no
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003156 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003157 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 +00003158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3159 ac_prog_rejected=yes
3160 continue
3161 fi
3162 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003164 break 2
3165 fi
3166done
jimblandy92b1f832009-12-23 22:23:49 +00003167 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003168IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003169
3170if test $ac_prog_rejected = yes; then
3171 # We found a bogon in the path, so make sure we never use it.
3172 set dummy $ac_cv_prog_CC
3173 shift
3174 if test $# != 0; then
3175 # We chose a different compiler from the bogus one.
3176 # However, it has the same basename, so the bogon will be chosen
3177 # first if we set CC to just the basename; use the full file name.
3178 shift
3179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180 fi
3181fi
3182fi
3183fi
3184CC=$ac_cv_prog_CC
3185if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003188else
jimblandy92b1f832009-12-23 22:23:49 +00003189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003191fi
3192
mmentovai8c2a4de2006-09-20 16:20:15 +00003193
brynercb91a2f2006-08-25 21:14:45 +00003194fi
3195if test -z "$CC"; then
3196 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003197 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003198 do
3199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if test "${ac_cv_prog_CC+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003205else
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003214 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003215 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 +00003216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003218 break 2
3219 fi
3220done
jimblandy92b1f832009-12-23 22:23:49 +00003221 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003222IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003223
3224fi
3225fi
3226CC=$ac_cv_prog_CC
3227if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003230else
jimblandy92b1f832009-12-23 22:23:49 +00003231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003233fi
3234
mmentovai8c2a4de2006-09-20 16:20:15 +00003235
brynercb91a2f2006-08-25 21:14:45 +00003236 test -n "$CC" && break
3237 done
3238fi
3239if test -z "$CC"; then
3240 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003241 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003242do
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246$as_echo_n "checking for $ac_word... " >&6; }
3247if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003249else
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252else
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003258 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003259 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 +00003260 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003262 break 2
3263 fi
3264done
jimblandy92b1f832009-12-23 22:23:49 +00003265 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003266IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003267
3268fi
3269fi
3270ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3273$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003274else
jimblandy92b1f832009-12-23 22:23:49 +00003275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003277fi
3278
mmentovai8c2a4de2006-09-20 16:20:15 +00003279
brynercb91a2f2006-08-25 21:14:45 +00003280 test -n "$ac_ct_CC" && break
3281done
3282
mmentovai8c2a4de2006-09-20 16:20:15 +00003283 if test "x$ac_ct_CC" = x; then
3284 CC=""
3285 else
3286 case $cross_compiling:$ac_tool_warned in
3287yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003290ac_tool_warned=yes ;;
3291esac
3292 CC=$ac_ct_CC
3293 fi
brynercb91a2f2006-08-25 21:14:45 +00003294fi
3295
3296fi
3297
3298
jimblandy92b1f832009-12-23 22:23:49 +00003299test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error "no acceptable C compiler found in \$PATH
3302See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003303
3304# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003305$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3306set X $ac_compile
3307ac_compiler=$2
3308for ac_option in --version -v -V -qversion; do
3309 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003310case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313esac
jimblandy92b1f832009-12-23 22:23:49 +00003314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315$as_echo "$ac_try_echo"; } >&5
3316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003317 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003318 if test -s conftest.err; then
3319 sed '10a\
3320... rest of stderr output deleted ...
3321 10q' conftest.err >conftest.er1
3322 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003323 fi
jimblandydc4029a2010-02-02 17:39:51 +00003324 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }
3327done
brynercb91a2f2006-08-25 21:14:45 +00003328
jimblandy92b1f832009-12-23 22:23:49 +00003329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003330/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003331
brynercb91a2f2006-08-25 21:14:45 +00003332int
3333main ()
3334{
3335
3336 ;
3337 return 0;
3338}
3339_ACEOF
3340ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003341ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003342# Try to create an executable without -o first, disregard a.out.
3343# It will help us diagnose broken compilers, and finding out an intuition
3344# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3346$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003347ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3348
3349# The possible output files:
3350ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3351
mmentovai8c2a4de2006-09-20 16:20:15 +00003352ac_rmfiles=
3353for ac_file in $ac_files
3354do
3355 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3358 esac
3359done
3360rm -f $ac_rmfiles
3361
jimblandy92b1f832009-12-23 22:23:49 +00003362if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003363case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366esac
jimblandy92b1f832009-12-23 22:23:49 +00003367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003369 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003370 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3374# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3375# in a Makefile. We should not override ac_cv_exeext if it was cached,
3376# so that the user can short-circuit this test for compilers unknown to
3377# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003378for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003379do
3380 test -f "$ac_file" || continue
3381 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003383 ;;
3384 [ab].out )
3385 # We found the default executable, but exeext='' is most
3386 # certainly right.
3387 break;;
3388 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003390 then :; else
3391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392 fi
3393 # We set ac_cv_exeext here because the later test for it is not
3394 # safe: cross compilers may not add the suffix if given an `-o'
3395 # argument, so we may need to know it at that point already.
3396 # Even if this section looks crufty: it has the advantage of
3397 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003398 break;;
3399 * )
3400 break;;
3401 esac
3402done
mmentovai8c2a4de2006-09-20 16:20:15 +00003403test "$ac_cv_exeext" = no && ac_cv_exeext=
3404
brynercb91a2f2006-08-25 21:14:45 +00003405else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003406 ac_file=''
3407fi
jimblandy92b1f832009-12-23 22:23:49 +00003408if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003412sed 's/^/| /' conftest.$ac_ext >&5
3413
jimblandy92b1f832009-12-23 22:23:49 +00003414{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416{ as_fn_set_status 77
3417as_fn_error "C compiler cannot create executables
3418See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003419else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003422fi
jimblandydc4029a2010-02-02 17:39:51 +00003423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3424$as_echo_n "checking for C compiler default output file name... " >&6; }
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3426$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003427ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003428
jimblandydc4029a2010-02-02 17:39:51 +00003429rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003430ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3432$as_echo_n "checking for suffix of executables... " >&6; }
3433if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
jimblandy92b1f832009-12-23 22:23:49 +00003438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003440 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003441 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003444 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3445# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3446# work properly (i.e., refer to `conftest.exe'), while it won't with
3447# `rm'.
3448for ac_file in conftest.exe conftest conftest.*; do
3449 test -f "$ac_file" || continue
3450 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003453 break;;
3454 * ) break;;
3455 esac
3456done
3457else
jimblandy92b1f832009-12-23 22:23:49 +00003458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460as_fn_error "cannot compute suffix of executables: cannot compile and link
3461See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003462fi
jimblandydc4029a2010-02-02 17:39:51 +00003463rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3465$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003466
3467rm -f conftest.$ac_ext
3468EXEEXT=$ac_cv_exeext
3469ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h. */
3472#include <stdio.h>
3473int
3474main ()
3475{
3476FILE *f = fopen ("conftest.out", "w");
3477 return ferror (f) || fclose (f) != 0;
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483ac_clean_files="$ac_clean_files conftest.out"
3484# Check that the compiler produces executables we can run. If not, either
3485# the compiler is broken, or we cross compile.
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3487$as_echo_n "checking whether we are cross compiling... " >&6; }
3488if test "$cross_compiling" != yes; then
3489 { { ac_try="$ac_link"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3497 ac_status=$?
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 if { ac_try='./conftest$ac_cv_exeext'
3501 { { case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504esac
3505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506$as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_try") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; }; then
3511 cross_compiling=no
3512 else
3513 if test "$cross_compiling" = maybe; then
3514 cross_compiling=yes
3515 else
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518as_fn_error "cannot run C compiled programs.
3519If you meant to cross compile, use \`--host'.
3520See \`config.log' for more details." "$LINENO" 5; }
3521 fi
3522 fi
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3525$as_echo "$cross_compiling" >&6; }
3526
3527rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3528ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3530$as_echo_n "checking for suffix of object files... " >&6; }
3531if test "${ac_cv_objext+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003533else
jimblandy92b1f832009-12-23 22:23:49 +00003534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003535/* end confdefs.h. */
3536
3537int
3538main ()
3539{
3540
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003546if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003547case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
jimblandy92b1f832009-12-23 22:23:49 +00003551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003553 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003554 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003557 for ac_file in conftest.o conftest.obj conftest.*; do
3558 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003559 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003561 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562 break;;
3563 esac
3564done
3565else
jimblandy92b1f832009-12-23 22:23:49 +00003566 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003567sed 's/^/| /' conftest.$ac_ext >&5
3568
jimblandy92b1f832009-12-23 22:23:49 +00003569{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571as_fn_error "cannot compute suffix of object files: cannot compile
3572See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003573fi
brynercb91a2f2006-08-25 21:14:45 +00003574rm -f conftest.$ac_cv_objext conftest.$ac_ext
3575fi
jimblandy92b1f832009-12-23 22:23:49 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3577$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003578OBJEXT=$ac_cv_objext
3579ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3581$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3582if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003584else
jimblandy92b1f832009-12-23 22:23:49 +00003585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003586/* end confdefs.h. */
3587
3588int
3589main ()
3590{
3591#ifndef __GNUC__
3592 choke me
3593#endif
3594
3595 ;
3596 return 0;
3597}
3598_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003599if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003600 ac_compiler_gnu=yes
3601else
jimblandy92b1f832009-12-23 22:23:49 +00003602 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003603fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003605ac_cv_c_compiler_gnu=$ac_compiler_gnu
3606
3607fi
jimblandy92b1f832009-12-23 22:23:49 +00003608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3609$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3610if test $ac_compiler_gnu = yes; then
3611 GCC=yes
3612else
3613 GCC=
3614fi
brynercb91a2f2006-08-25 21:14:45 +00003615ac_test_CFLAGS=${CFLAGS+set}
3616ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3618$as_echo_n "checking whether $CC accepts -g... " >&6; }
3619if test "${ac_cv_prog_cc_g+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003621else
mmentovai8c2a4de2006-09-20 16:20:15 +00003622 ac_save_c_werror_flag=$ac_c_werror_flag
3623 ac_c_werror_flag=yes
3624 ac_cv_prog_cc_g=no
3625 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003627/* end confdefs.h. */
3628
3629int
3630main ()
3631{
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003637if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003638 ac_cv_prog_cc_g=yes
3639else
jimblandy92b1f832009-12-23 22:23:49 +00003640 CFLAGS=""
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003642/* end confdefs.h. */
3643
3644int
3645main ()
3646{
3647
3648 ;
3649 return 0;
3650}
3651_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003652if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003653
jimblandy92b1f832009-12-23 22:23:49 +00003654else
3655 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003656 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003658/* end confdefs.h. */
3659
3660int
3661main ()
3662{
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003668if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003669 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003670fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003672fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3677fi
jimblandy92b1f832009-12-23 22:23:49 +00003678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3679$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003680if test "$ac_test_CFLAGS" = set; then
3681 CFLAGS=$ac_save_CFLAGS
3682elif test $ac_cv_prog_cc_g = yes; then
3683 if test "$GCC" = yes; then
3684 CFLAGS="-g -O2"
3685 else
3686 CFLAGS="-g"
3687 fi
3688else
3689 if test "$GCC" = yes; then
3690 CFLAGS="-O2"
3691 else
3692 CFLAGS=
3693 fi
3694fi
jimblandy92b1f832009-12-23 22:23:49 +00003695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3696$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3697if test "${ac_cv_prog_cc_c89+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003699else
mmentovai8c2a4de2006-09-20 16:20:15 +00003700 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003701ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003703/* end confdefs.h. */
3704#include <stdarg.h>
3705#include <stdio.h>
3706#include <sys/types.h>
3707#include <sys/stat.h>
3708/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3709struct buf { int x; };
3710FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711static char *e (p, i)
3712 char **p;
3713 int i;
3714{
3715 return p[i];
3716}
3717static char *f (char * (*g) (char **, int), char **p, ...)
3718{
3719 char *s;
3720 va_list v;
3721 va_start (v,p);
3722 s = g (p, va_arg (v,int));
3723 va_end (v);
3724 return s;
3725}
3726
3727/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3728 function prototypes and stuff, but not '\xHH' hex character constants.
3729 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003730 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3732 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003733 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003734int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
mmentovai8c2a4de2006-09-20 16:20:15 +00003736/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737 inside strings and character constants. */
3738#define FOO(x) 'x'
3739int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
brynercb91a2f2006-08-25 21:14:45 +00003741int test (int i, double x);
3742struct s1 {int (*f) (int a);};
3743struct s2 {int (*f) (double a);};
3744int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745int argc;
3746char **argv;
3747int
3748main ()
3749{
3750return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3751 ;
3752 return 0;
3753}
3754_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003755for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003757do
3758 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003759 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003760 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003761fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003762rm -f core conftest.err conftest.$ac_objext
3763 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003764done
mmentovai8c2a4de2006-09-20 16:20:15 +00003765rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003766CC=$ac_save_CC
3767
3768fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003769# AC_CACHE_VAL
3770case "x$ac_cv_prog_cc_c89" in
3771 x)
jimblandy92b1f832009-12-23 22:23:49 +00003772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003774 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003777 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003778 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3780$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003781esac
jimblandy92b1f832009-12-23 22:23:49 +00003782if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003783
jimblandy92b1f832009-12-23 22:23:49 +00003784fi
brynercb91a2f2006-08-25 21:14:45 +00003785
brynercb91a2f2006-08-25 21:14:45 +00003786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791DEPDIR="${am__leading_dot}deps"
3792
mmentovai8c2a4de2006-09-20 16:20:15 +00003793ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003794
3795
3796am_make=${MAKE-make}
3797cat > confinc << 'END'
3798am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003799 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003800.PHONY: am__doit
3801END
3802# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3804$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003805am__include="#"
3806am__quote=
3807_am_result=none
3808# First try GNU make style include.
3809echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003810# Ignore all kinds of additional output from `make'.
3811case `$am_make -s -f confmf 2> /dev/null` in #(
3812*the\ am__doit\ target*)
3813 am__include=include
3814 am__quote=
3815 _am_result=GNU
3816 ;;
3817esac
brynercb91a2f2006-08-25 21:14:45 +00003818# Now try BSD make style include.
3819if test "$am__include" = "#"; then
3820 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003821 case `$am_make -s -f confmf 2> /dev/null` in #(
3822 *the\ am__doit\ target*)
3823 am__include=.include
3824 am__quote="\""
3825 _am_result=BSD
3826 ;;
3827 esac
brynercb91a2f2006-08-25 21:14:45 +00003828fi
3829
3830
jimblandy92b1f832009-12-23 22:23:49 +00003831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3832$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003833rm -f confinc confmf
3834
mmentovai8c2a4de2006-09-20 16:20:15 +00003835# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003836if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003837 enableval=$enable_dependency_tracking;
3838fi
brynercb91a2f2006-08-25 21:14:45 +00003839
brynercb91a2f2006-08-25 21:14:45 +00003840if test "x$enable_dependency_tracking" != xno; then
3841 am_depcomp="$ac_aux_dir/depcomp"
3842 AMDEPBACKSLASH='\'
3843fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003844 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003845 AMDEP_TRUE=
3846 AMDEP_FALSE='#'
3847else
3848 AMDEP_TRUE='#'
3849 AMDEP_FALSE=
3850fi
3851
3852
3853
brynercb91a2f2006-08-25 21:14:45 +00003854depcc="$CC" am_compiler_list=
3855
jimblandy92b1f832009-12-23 22:23:49 +00003856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3857$as_echo_n "checking dependency style of $depcc... " >&6; }
3858if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003860else
3861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3862 # We make a subdir and do the tests there. Otherwise we can end up
3863 # making bogus files that we don't know about and never remove. For
3864 # instance it was reported that on HP-UX the gcc test will end up
3865 # making a dummy file named `D' -- because `-MD' means `put the output
3866 # in D'.
3867 mkdir conftest.dir
3868 # Copy depcomp to subdir because otherwise we won't find it if we're
3869 # using a relative directory.
3870 cp "$am_depcomp" conftest.dir
3871 cd conftest.dir
3872 # We will build objects and dependencies in a subdirectory because
3873 # it helps to detect inapplicable dependency modes. For instance
3874 # both Tru64's cc and ICC support -MD to output dependencies as a
3875 # side effect of compilation, but ICC will put the dependencies in
3876 # the current directory while Tru64 will put them in the object
3877 # directory.
3878 mkdir sub
3879
3880 am_cv_CC_dependencies_compiler_type=none
3881 if test "$am_compiler_list" = ""; then
3882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3883 fi
jimblandy92b1f832009-12-23 22:23:49 +00003884 am__universal=false
3885 case " $depcc " in #(
3886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3887 esac
3888
brynercb91a2f2006-08-25 21:14:45 +00003889 for depmode in $am_compiler_list; do
3890 # Setup a source with many dependencies, because some compilers
3891 # like to wrap large dependency lists on column 80 (with \), and
3892 # we should not choose a depcomp mode which is confused by this.
3893 #
3894 # We need to recreate these files for each test, as the compiler may
3895 # overwrite some of them when testing with obscure command lines.
3896 # This happens at least with the AIX C compiler.
3897 : > sub/conftest.c
3898 for i in 1 2 3 4 5 6; do
3899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3900 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3901 # Solaris 8's {/usr,}/bin/sh.
3902 touch sub/conftst$i.h
3903 done
3904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3905
jimblandy92b1f832009-12-23 22:23:49 +00003906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3907 # mode. It turns out that the SunPro C++ compiler does not properly
3908 # handle `-M -o', and we need to detect this. Also, some Intel
3909 # versions had trouble with output in subdirs
3910 am__obj=sub/conftest.${OBJEXT-o}
3911 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003912 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003913 gcc)
3914 # This depmode causes a compiler race in universal mode.
3915 test "$am__universal" = false || continue
3916 ;;
brynercb91a2f2006-08-25 21:14:45 +00003917 nosideeffect)
3918 # after this tag, mechanisms are not by side-effect, so they'll
3919 # only be used when explicitly requested
3920 if test "x$enable_dependency_tracking" = xyes; then
3921 continue
3922 else
3923 break
3924 fi
3925 ;;
jimblandy92b1f832009-12-23 22:23:49 +00003926 msvisualcpp | msvcmsys)
3927 # This compiler won't grok `-c -o', but also, the minuso test has
3928 # not run yet. These depmodes are late enough in the game, and
3929 # so weak that their functioning should not be impacted.
3930 am__obj=conftest.${OBJEXT-o}
3931 am__minus_obj=
3932 ;;
brynercb91a2f2006-08-25 21:14:45 +00003933 none) break ;;
3934 esac
brynercb91a2f2006-08-25 21:14:45 +00003935 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00003936 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00003937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00003938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00003939 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00003942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944 # icc doesn't choke on unknown options, it will just issue warnings
3945 # or remarks (even with -Werror). So we grep stderr for any message
3946 # that says an option was ignored or not supported.
3947 # When given -MP, icc 7.0 and 7.1 complain thusly:
3948 # icc: Command line warning: ignoring option '-M'; no argument required
3949 # The diagnosis changed in icc 8.0:
3950 # icc: Command line remark: option '-MP' not supported
3951 if (grep 'ignoring option' conftest.err ||
3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953 am_cv_CC_dependencies_compiler_type=$depmode
3954 break
3955 fi
3956 fi
3957 done
3958
3959 cd ..
3960 rm -rf conftest.dir
3961else
3962 am_cv_CC_dependencies_compiler_type=none
3963fi
3964
3965fi
jimblandy92b1f832009-12-23 22:23:49 +00003966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3967$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003968CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3969
mmentovaiaf3c43f2007-05-17 18:34:37 +00003970 if
brynercb91a2f2006-08-25 21:14:45 +00003971 test "x$enable_dependency_tracking" != xno \
3972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3973 am__fastdepCC_TRUE=
3974 am__fastdepCC_FALSE='#'
3975else
3976 am__fastdepCC_TRUE='#'
3977 am__fastdepCC_FALSE=
3978fi
3979
3980
3981ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00003986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3987$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003988# On Suns, sometimes $CPP names a directory.
3989if test -n "$CPP" && test -d "$CPP"; then
3990 CPP=
3991fi
3992if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00003993 if test "${ac_cv_prog_CPP+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003995else
3996 # Double quotes because CPP needs to be expanded
3997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3998 do
3999 ac_preproc_ok=false
4000for ac_c_preproc_warn_flag in '' yes
4001do
4002 # Use a header file that comes with gcc, so configuring glibc
4003 # with a fresh cross-compiler works.
4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 # <limits.h> exists even on freestanding compilers.
4006 # On the NeXT, cc -E runs the code through the compiler's parser,
4007 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004009/* end confdefs.h. */
4010#ifdef __STDC__
4011# include <limits.h>
4012#else
4013# include <assert.h>
4014#endif
4015 Syntax error
4016_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004017if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004018
jimblandy92b1f832009-12-23 22:23:49 +00004019else
brynercb91a2f2006-08-25 21:14:45 +00004020 # Broken: fails on valid input.
4021continue
4022fi
4023rm -f conftest.err conftest.$ac_ext
4024
mmentovai8c2a4de2006-09-20 16:20:15 +00004025 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004026 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004028/* end confdefs.h. */
4029#include <ac_nonexistent.h>
4030_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004031if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004032 # Broken: success on invalid input.
4033continue
4034else
brynercb91a2f2006-08-25 21:14:45 +00004035 # Passes both tests.
4036ac_preproc_ok=:
4037break
4038fi
4039rm -f conftest.err conftest.$ac_ext
4040
4041done
4042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004044if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00004045 break
4046fi
4047
4048 done
4049 ac_cv_prog_CPP=$CPP
4050
4051fi
4052 CPP=$ac_cv_prog_CPP
4053else
4054 ac_cv_prog_CPP=$CPP
4055fi
jimblandy92b1f832009-12-23 22:23:49 +00004056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4057$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004058ac_preproc_ok=false
4059for ac_c_preproc_warn_flag in '' yes
4060do
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004068/* end confdefs.h. */
4069#ifdef __STDC__
4070# include <limits.h>
4071#else
4072# include <assert.h>
4073#endif
4074 Syntax error
4075_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004076if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004077
jimblandy92b1f832009-12-23 22:23:49 +00004078else
brynercb91a2f2006-08-25 21:14:45 +00004079 # Broken: fails on valid input.
4080continue
4081fi
4082rm -f conftest.err conftest.$ac_ext
4083
mmentovai8c2a4de2006-09-20 16:20:15 +00004084 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004085 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004087/* end confdefs.h. */
4088#include <ac_nonexistent.h>
4089_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004090if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004091 # Broken: success on invalid input.
4092continue
4093else
brynercb91a2f2006-08-25 21:14:45 +00004094 # Passes both tests.
4095ac_preproc_ok=:
4096break
4097fi
4098rm -f conftest.err conftest.$ac_ext
4099
4100done
4101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4102rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004103if $ac_preproc_ok; then :
4104
brynercb91a2f2006-08-25 21:14:45 +00004105else
jimblandy92b1f832009-12-23 22:23:49 +00004106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4108as_fn_error "C preprocessor \"$CPP\" fails sanity check
4109See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004110fi
4111
4112ac_ext=c
4113ac_cpp='$CPP $CPPFLAGS'
4114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
mmentovai8c2a4de2006-09-20 16:20:15 +00004118ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004119ac_cpp='$CXXCPP $CPPFLAGS'
4120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004123if test -z "$CXX"; then
4124 if test -n "$CCC"; then
4125 CXX=$CCC
4126 else
4127 if test -n "$ac_tool_prefix"; then
4128 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 +00004129 do
4130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
4134if test "${ac_cv_prog_CXX+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004136else
4137 if test -n "$CXX"; then
4138 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004145 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004146 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 +00004147 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004149 break 2
4150 fi
4151done
jimblandy92b1f832009-12-23 22:23:49 +00004152 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004153IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004154
4155fi
4156fi
4157CXX=$ac_cv_prog_CXX
4158if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4160$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004161else
jimblandy92b1f832009-12-23 22:23:49 +00004162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004164fi
4165
mmentovai8c2a4de2006-09-20 16:20:15 +00004166
brynercb91a2f2006-08-25 21:14:45 +00004167 test -n "$CXX" && break
4168 done
4169fi
4170if test -z "$CXX"; then
4171 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004172 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 +00004173do
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177$as_echo_n "checking for $ac_word... " >&6; }
4178if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004180else
4181 if test -n "$ac_ct_CXX"; then
4182 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004189 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004190 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 +00004191 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004193 break 2
4194 fi
4195done
jimblandy92b1f832009-12-23 22:23:49 +00004196 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004197IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004198
4199fi
4200fi
4201ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4202if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4204$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004205else
jimblandy92b1f832009-12-23 22:23:49 +00004206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004208fi
4209
mmentovai8c2a4de2006-09-20 16:20:15 +00004210
brynercb91a2f2006-08-25 21:14:45 +00004211 test -n "$ac_ct_CXX" && break
4212done
brynercb91a2f2006-08-25 21:14:45 +00004213
mmentovai8c2a4de2006-09-20 16:20:15 +00004214 if test "x$ac_ct_CXX" = x; then
4215 CXX="g++"
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004221ac_tool_warned=yes ;;
4222esac
4223 CXX=$ac_ct_CXX
4224 fi
brynercb91a2f2006-08-25 21:14:45 +00004225fi
4226
mmentovai8c2a4de2006-09-20 16:20:15 +00004227 fi
4228fi
brynercb91a2f2006-08-25 21:14:45 +00004229# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004230$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4231set X $ac_compile
4232ac_compiler=$2
4233for ac_option in --version -v -V -qversion; do
4234 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004235case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
jimblandy92b1f832009-12-23 22:23:49 +00004239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240$as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004242 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004243 if test -s conftest.err; then
4244 sed '10a\
4245... rest of stderr output deleted ...
4246 10q' conftest.err >conftest.er1
4247 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004248 fi
jimblandydc4029a2010-02-02 17:39:51 +00004249 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }
4252done
brynercb91a2f2006-08-25 21:14:45 +00004253
jimblandy92b1f832009-12-23 22:23:49 +00004254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4255$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4256if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004258else
jimblandy92b1f832009-12-23 22:23:49 +00004259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004260/* end confdefs.h. */
4261
4262int
4263main ()
4264{
4265#ifndef __GNUC__
4266 choke me
4267#endif
4268
4269 ;
4270 return 0;
4271}
4272_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004273if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004274 ac_compiler_gnu=yes
4275else
jimblandy92b1f832009-12-23 22:23:49 +00004276 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004277fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004279ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4280
4281fi
jimblandy92b1f832009-12-23 22:23:49 +00004282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4283$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4284if test $ac_compiler_gnu = yes; then
4285 GXX=yes
4286else
4287 GXX=
4288fi
brynercb91a2f2006-08-25 21:14:45 +00004289ac_test_CXXFLAGS=${CXXFLAGS+set}
4290ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4292$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4293if test "${ac_cv_prog_cxx_g+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004295else
mmentovai8c2a4de2006-09-20 16:20:15 +00004296 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4297 ac_cxx_werror_flag=yes
4298 ac_cv_prog_cxx_g=no
4299 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004301/* end confdefs.h. */
4302
4303int
4304main ()
4305{
4306
4307 ;
4308 return 0;
4309}
4310_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004311if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004312 ac_cv_prog_cxx_g=yes
4313else
jimblandy92b1f832009-12-23 22:23:49 +00004314 CXXFLAGS=""
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004316/* end confdefs.h. */
4317
4318int
4319main ()
4320{
4321
4322 ;
4323 return 0;
4324}
4325_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004326if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004327
jimblandy92b1f832009-12-23 22:23:49 +00004328else
4329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004330 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004332/* end confdefs.h. */
4333
4334int
4335main ()
4336{
4337
4338 ;
4339 return 0;
4340}
4341_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004342if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004343 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004344fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004346fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4351fi
jimblandy92b1f832009-12-23 22:23:49 +00004352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4353$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004354if test "$ac_test_CXXFLAGS" = set; then
4355 CXXFLAGS=$ac_save_CXXFLAGS
4356elif test $ac_cv_prog_cxx_g = yes; then
4357 if test "$GXX" = yes; then
4358 CXXFLAGS="-g -O2"
4359 else
4360 CXXFLAGS="-g"
4361 fi
4362else
4363 if test "$GXX" = yes; then
4364 CXXFLAGS="-O2"
4365 else
4366 CXXFLAGS=
4367 fi
4368fi
brynercb91a2f2006-08-25 21:14:45 +00004369ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375depcc="$CXX" am_compiler_list=
4376
jimblandy92b1f832009-12-23 22:23:49 +00004377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4378$as_echo_n "checking dependency style of $depcc... " >&6; }
4379if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004381else
4382 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4383 # We make a subdir and do the tests there. Otherwise we can end up
4384 # making bogus files that we don't know about and never remove. For
4385 # instance it was reported that on HP-UX the gcc test will end up
4386 # making a dummy file named `D' -- because `-MD' means `put the output
4387 # in D'.
4388 mkdir conftest.dir
4389 # Copy depcomp to subdir because otherwise we won't find it if we're
4390 # using a relative directory.
4391 cp "$am_depcomp" conftest.dir
4392 cd conftest.dir
4393 # We will build objects and dependencies in a subdirectory because
4394 # it helps to detect inapplicable dependency modes. For instance
4395 # both Tru64's cc and ICC support -MD to output dependencies as a
4396 # side effect of compilation, but ICC will put the dependencies in
4397 # the current directory while Tru64 will put them in the object
4398 # directory.
4399 mkdir sub
4400
4401 am_cv_CXX_dependencies_compiler_type=none
4402 if test "$am_compiler_list" = ""; then
4403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404 fi
jimblandy92b1f832009-12-23 22:23:49 +00004405 am__universal=false
4406 case " $depcc " in #(
4407 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4408 esac
4409
brynercb91a2f2006-08-25 21:14:45 +00004410 for depmode in $am_compiler_list; do
4411 # Setup a source with many dependencies, because some compilers
4412 # like to wrap large dependency lists on column 80 (with \), and
4413 # we should not choose a depcomp mode which is confused by this.
4414 #
4415 # We need to recreate these files for each test, as the compiler may
4416 # overwrite some of them when testing with obscure command lines.
4417 # This happens at least with the AIX C compiler.
4418 : > sub/conftest.c
4419 for i in 1 2 3 4 5 6; do
4420 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4421 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4422 # Solaris 8's {/usr,}/bin/sh.
4423 touch sub/conftst$i.h
4424 done
4425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4426
jimblandy92b1f832009-12-23 22:23:49 +00004427 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4428 # mode. It turns out that the SunPro C++ compiler does not properly
4429 # handle `-M -o', and we need to detect this. Also, some Intel
4430 # versions had trouble with output in subdirs
4431 am__obj=sub/conftest.${OBJEXT-o}
4432 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004433 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004434 gcc)
4435 # This depmode causes a compiler race in universal mode.
4436 test "$am__universal" = false || continue
4437 ;;
brynercb91a2f2006-08-25 21:14:45 +00004438 nosideeffect)
4439 # after this tag, mechanisms are not by side-effect, so they'll
4440 # only be used when explicitly requested
4441 if test "x$enable_dependency_tracking" = xyes; then
4442 continue
4443 else
4444 break
4445 fi
4446 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004447 msvisualcpp | msvcmsys)
4448 # This compiler won't grok `-c -o', but also, the minuso test has
4449 # not run yet. These depmodes are late enough in the game, and
4450 # so weak that their functioning should not be impacted.
4451 am__obj=conftest.${OBJEXT-o}
4452 am__minus_obj=
4453 ;;
brynercb91a2f2006-08-25 21:14:45 +00004454 none) break ;;
4455 esac
brynercb91a2f2006-08-25 21:14:45 +00004456 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004457 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004458 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004459 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004460 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004461 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004463 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4465 # icc doesn't choke on unknown options, it will just issue warnings
4466 # or remarks (even with -Werror). So we grep stderr for any message
4467 # that says an option was ignored or not supported.
4468 # When given -MP, icc 7.0 and 7.1 complain thusly:
4469 # icc: Command line warning: ignoring option '-M'; no argument required
4470 # The diagnosis changed in icc 8.0:
4471 # icc: Command line remark: option '-MP' not supported
4472 if (grep 'ignoring option' conftest.err ||
4473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4474 am_cv_CXX_dependencies_compiler_type=$depmode
4475 break
4476 fi
4477 fi
4478 done
4479
4480 cd ..
4481 rm -rf conftest.dir
4482else
4483 am_cv_CXX_dependencies_compiler_type=none
4484fi
4485
4486fi
jimblandy92b1f832009-12-23 22:23:49 +00004487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4488$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004489CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4490
mmentovaiaf3c43f2007-05-17 18:34:37 +00004491 if
brynercb91a2f2006-08-25 21:14:45 +00004492 test "x$enable_dependency_tracking" != xno \
4493 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4494 am__fastdepCXX_TRUE=
4495 am__fastdepCXX_FALSE='#'
4496else
4497 am__fastdepCXX_TRUE='#'
4498 am__fastdepCXX_FALSE=
4499fi
4500
4501
4502
jimblandy92b1f832009-12-23 22:23:49 +00004503case `pwd` in
4504 *\ * | *\ *)
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4506$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4507esac
brynercb91a2f2006-08-25 21:14:45 +00004508
mmentovai8c2a4de2006-09-20 16:20:15 +00004509
jimblandy92b1f832009-12-23 22:23:49 +00004510
jimblandydc4029a2010-02-02 17:39:51 +00004511macro_version='2.2.6b'
4512macro_revision='1.3017'
brynercb91a2f2006-08-25 21:14:45 +00004513
mmentovai8c2a4de2006-09-20 16:20:15 +00004514
mmentovai8c2a4de2006-09-20 16:20:15 +00004515
brynercb91a2f2006-08-25 21:14:45 +00004516
jimblandy92b1f832009-12-23 22:23:49 +00004517
4518
4519
4520
4521
4522
4523
4524
4525
4526ltmain="$ac_aux_dir/ltmain.sh"
4527
brynercb91a2f2006-08-25 21:14:45 +00004528# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004529$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
jimblandy92b1f832009-12-23 22:23:49 +00004530 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004531
jimblandy92b1f832009-12-23 22:23:49 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4533$as_echo_n "checking build system type... " >&6; }
4534if test "${ac_cv_build+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004536else
mmentovai8c2a4de2006-09-20 16:20:15 +00004537 ac_build_alias=$build_alias
4538test "x$ac_build_alias" = x &&
4539 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4540test "x$ac_build_alias" = x &&
jimblandy92b1f832009-12-23 22:23:49 +00004541 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004542ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004543 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004544
4545fi
jimblandy92b1f832009-12-23 22:23:49 +00004546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4547$as_echo "$ac_cv_build" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004548case $ac_cv_build in
4549*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004550*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004551esac
brynercb91a2f2006-08-25 21:14:45 +00004552build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004553ac_save_IFS=$IFS; IFS='-'
4554set x $ac_cv_build
4555shift
4556build_cpu=$1
4557build_vendor=$2
4558shift; shift
4559# Remember, the first character of IFS is used to create $*,
4560# except with old shells:
4561build_os=$*
4562IFS=$ac_save_IFS
4563case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004564
4565
jimblandy92b1f832009-12-23 22:23:49 +00004566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4567$as_echo_n "checking host system type... " >&6; }
4568if test "${ac_cv_host+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004570else
mmentovai8c2a4de2006-09-20 16:20:15 +00004571 if test "x$host_alias" = x; then
4572 ac_cv_host=$ac_cv_build
4573else
4574 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004575 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004576fi
brynercb91a2f2006-08-25 21:14:45 +00004577
4578fi
jimblandy92b1f832009-12-23 22:23:49 +00004579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4580$as_echo "$ac_cv_host" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004581case $ac_cv_host in
4582*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004583*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004584esac
brynercb91a2f2006-08-25 21:14:45 +00004585host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004586ac_save_IFS=$IFS; IFS='-'
4587set x $ac_cv_host
4588shift
4589host_cpu=$1
4590host_vendor=$2
4591shift; shift
4592# Remember, the first character of IFS is used to create $*,
4593# except with old shells:
4594host_os=$*
4595IFS=$ac_save_IFS
4596case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004597
4598
jimblandy92b1f832009-12-23 22:23:49 +00004599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4600$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4601if test "${ac_cv_path_SED+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004603else
jimblandy92b1f832009-12-23 22:23:49 +00004604 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4605 for ac_i in 1 2 3 4 5 6 7; do
4606 ac_script="$ac_script$as_nl$ac_script"
4607 done
4608 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4609 { ac_script=; unset ac_script;}
4610 if test -z "$SED"; then
4611 ac_path_SED_found=false
4612 # Loop through the user's path and test for each of PROGNAME-LIST
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004618 for ac_prog in sed gsed; do
brynercb91a2f2006-08-25 21:14:45 +00004619 for ac_exec_ext in '' $ac_executable_extensions; do
jimblandy92b1f832009-12-23 22:23:49 +00004620 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4621 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4622# Check for GNU ac_path_SED and select it if it is found.
4623 # Check for GNU $ac_path_SED
4624case `"$ac_path_SED" --version 2>&1` in
4625*GNU*)
4626 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4627*)
4628 ac_count=0
4629 $as_echo_n 0123456789 >"conftest.in"
4630 while :
4631 do
4632 cat "conftest.in" "conftest.in" >"conftest.tmp"
4633 mv "conftest.tmp" "conftest.in"
4634 cp "conftest.in" "conftest.nl"
4635 $as_echo '' >> "conftest.nl"
4636 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638 as_fn_arith $ac_count + 1 && ac_count=$as_val
4639 if test $ac_count -gt ${ac_path_SED_max-0}; then
4640 # Best one so far, save it but keep looking for a better one
4641 ac_cv_path_SED="$ac_path_SED"
4642 ac_path_SED_max=$ac_count
4643 fi
4644 # 10*(2^10) chars as input seems more than enough
4645 test $ac_count -gt 10 && break
4646 done
4647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648esac
4649
4650 $ac_path_SED_found && break 3
brynercb91a2f2006-08-25 21:14:45 +00004651 done
4652 done
brynercb91a2f2006-08-25 21:14:45 +00004653 done
jimblandy92b1f832009-12-23 22:23:49 +00004654IFS=$as_save_IFS
4655 if test -z "$ac_cv_path_SED"; then
4656 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4657 fi
4658else
4659 ac_cv_path_SED=$SED
brynercb91a2f2006-08-25 21:14:45 +00004660fi
4661
jimblandy92b1f832009-12-23 22:23:49 +00004662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4664$as_echo "$ac_cv_path_SED" >&6; }
4665 SED="$ac_cv_path_SED"
4666 rm -f conftest.sed
ted.mielczarek1adb1842009-12-21 13:12:20 +00004667
jimblandy92b1f832009-12-23 22:23:49 +00004668test -z "$SED" && SED=sed
4669Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00004670
jimblandy92b1f832009-12-23 22:23:49 +00004671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4682$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4683if test "${ac_cv_path_GREP+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004685else
jimblandy92b1f832009-12-23 22:23:49 +00004686 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004687 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004688 # Loop through the user's path and test for each of PROGNAME-LIST
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004694 for ac_prog in grep ggrep; do
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4697 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4698# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004699 # Check for GNU $ac_path_GREP
4700case `"$ac_path_GREP" --version 2>&1` in
4701*GNU*)
4702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4703*)
4704 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004705 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004706 while :
4707 do
4708 cat "conftest.in" "conftest.in" >"conftest.tmp"
4709 mv "conftest.tmp" "conftest.in"
4710 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004711 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004714 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4716 # Best one so far, save it but keep looking for a better one
4717 ac_cv_path_GREP="$ac_path_GREP"
4718 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004719 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004720 # 10*(2^10) chars as input seems more than enough
4721 test $ac_count -gt 10 && break
4722 done
4723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724esac
4725
jimblandy92b1f832009-12-23 22:23:49 +00004726 $ac_path_GREP_found && break 3
4727 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004728 done
jimblandy92b1f832009-12-23 22:23:49 +00004729 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004730IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004731 if test -z "$ac_cv_path_GREP"; then
4732 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004734else
4735 ac_cv_path_GREP=$GREP
4736fi
4737
mmentovai8c2a4de2006-09-20 16:20:15 +00004738fi
jimblandy92b1f832009-12-23 22:23:49 +00004739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4740$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004741 GREP="$ac_cv_path_GREP"
4742
4743
jimblandy92b1f832009-12-23 22:23:49 +00004744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4745$as_echo_n "checking for egrep... " >&6; }
4746if test "${ac_cv_path_EGREP+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004748else
4749 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4750 then ac_cv_path_EGREP="$GREP -E"
4751 else
jimblandy92b1f832009-12-23 22:23:49 +00004752 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004753 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004754 # Loop through the user's path and test for each of PROGNAME-LIST
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004756for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004760 for ac_prog in egrep; do
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4763 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4764# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004765 # Check for GNU $ac_path_EGREP
4766case `"$ac_path_EGREP" --version 2>&1` in
4767*GNU*)
4768 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4769*)
4770 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004771 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004772 while :
4773 do
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004777 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004778 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004780 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004781 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_EGREP="$ac_path_EGREP"
4784 ac_path_EGREP_max=$ac_count
4785 fi
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4788 done
4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790esac
4791
jimblandy92b1f832009-12-23 22:23:49 +00004792 $ac_path_EGREP_found && break 3
4793 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004794 done
jimblandy92b1f832009-12-23 22:23:49 +00004795 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004796IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004797 if test -z "$ac_cv_path_EGREP"; then
4798 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4799 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004800else
4801 ac_cv_path_EGREP=$EGREP
4802fi
4803
jimblandy92b1f832009-12-23 22:23:49 +00004804 fi
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4807$as_echo "$ac_cv_path_EGREP" >&6; }
4808 EGREP="$ac_cv_path_EGREP"
4809
4810
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4812$as_echo_n "checking for fgrep... " >&6; }
4813if test "${ac_cv_path_FGREP+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815else
4816 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4817 then ac_cv_path_FGREP="$GREP -F"
4818 else
4819 if test -z "$FGREP"; then
4820 ac_path_FGREP_found=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_prog in fgrep; do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4830 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4831# Check for GNU ac_path_FGREP and select it if it is found.
4832 # Check for GNU $ac_path_FGREP
4833case `"$ac_path_FGREP" --version 2>&1` in
4834*GNU*)
4835 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4836*)
4837 ac_count=0
4838 $as_echo_n 0123456789 >"conftest.in"
4839 while :
4840 do
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 $as_echo 'FGREP' >> "conftest.nl"
4845 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847 as_fn_arith $ac_count + 1 && ac_count=$as_val
4848 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_FGREP="$ac_path_FGREP"
4851 ac_path_FGREP_max=$ac_count
4852 fi
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4855 done
4856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857esac
4858
4859 $ac_path_FGREP_found && break 3
4860 done
4861 done
4862 done
4863IFS=$as_save_IFS
4864 if test -z "$ac_cv_path_FGREP"; then
4865 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4866 fi
4867else
4868 ac_cv_path_FGREP=$FGREP
4869fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004870
4871 fi
4872fi
jimblandy92b1f832009-12-23 22:23:49 +00004873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4874$as_echo "$ac_cv_path_FGREP" >&6; }
4875 FGREP="$ac_cv_path_FGREP"
4876
4877
4878test -z "$GREP" && GREP=grep
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
brynercb91a2f2006-08-25 21:14:45 +00004895
4896
4897
mmentovai8c2a4de2006-09-20 16:20:15 +00004898# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +00004899if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004900 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004901else
4902 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004903fi
4904
brynercb91a2f2006-08-25 21:14:45 +00004905ac_prog=ld
4906if test "$GCC" = yes; then
4907 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +00004908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4909$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004910 case $host in
4911 *-*-mingw*)
4912 # gcc leaves a trailing carriage return which upsets mingw
4913 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4914 *)
4915 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4916 esac
4917 case $ac_prog in
4918 # Accept absolute paths.
4919 [\\/]* | ?:[\\/]*)
4920 re_direlt='/[^/][^/]*/\.\./'
4921 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +00004922 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4923 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4924 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +00004925 done
4926 test -z "$LD" && LD="$ac_prog"
4927 ;;
4928 "")
4929 # If it fails, then pretend we aren't using GCC.
4930 ac_prog=ld
4931 ;;
4932 *)
4933 # If it is relative, then search for the first ld in PATH.
4934 with_gnu_ld=unknown
4935 ;;
4936 esac
4937elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00004938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4939$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004940else
jimblandy92b1f832009-12-23 22:23:49 +00004941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4942$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004943fi
jimblandy92b1f832009-12-23 22:23:49 +00004944if test "${lt_cv_path_LD+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004946else
4947 if test -z "$LD"; then
4948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4949 for ac_dir in $PATH; do
4950 IFS="$lt_save_ifs"
4951 test -z "$ac_dir" && ac_dir=.
4952 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4953 lt_cv_path_LD="$ac_dir/$ac_prog"
4954 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004955 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004956 # Break only if it was the GNU/non-GNU ld that we prefer.
4957 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4958 *GNU* | *'with BFD'*)
4959 test "$with_gnu_ld" != no && break
4960 ;;
4961 *)
4962 test "$with_gnu_ld" != yes && break
4963 ;;
4964 esac
4965 fi
4966 done
4967 IFS="$lt_save_ifs"
4968else
4969 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4970fi
4971fi
4972
4973LD="$lt_cv_path_LD"
4974if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +00004975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4976$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004977else
jimblandy92b1f832009-12-23 22:23:49 +00004978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004980fi
jimblandy92b1f832009-12-23 22:23:49 +00004981test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4983$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4984if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004986else
mmentovai8c2a4de2006-09-20 16:20:15 +00004987 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004988case `$LD -v 2>&1 </dev/null` in
4989*GNU* | *'with BFD'*)
4990 lt_cv_prog_gnu_ld=yes
4991 ;;
4992*)
4993 lt_cv_prog_gnu_ld=no
4994 ;;
4995esac
4996fi
jimblandy92b1f832009-12-23 22:23:49 +00004997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4998$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004999with_gnu_ld=$lt_cv_prog_gnu_ld
5000
5001
brynercb91a2f2006-08-25 21:14:45 +00005002
jimblandy92b1f832009-12-23 22:23:49 +00005003
5004
5005
5006
5007
5008
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5010$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5011if test "${lt_cv_path_NM+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005013else
5014 if test -n "$NM"; then
5015 # Let the user override the test.
5016 lt_cv_path_NM="$NM"
5017else
mmentovai8c2a4de2006-09-20 16:20:15 +00005018 lt_nm_to_check="${ac_tool_prefix}nm"
5019 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5020 lt_nm_to_check="$lt_nm_to_check nm"
5021 fi
5022 for lt_tmp_nm in $lt_nm_to_check; do
5023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5024 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5025 IFS="$lt_save_ifs"
5026 test -z "$ac_dir" && ac_dir=.
5027 tmp_nm="$ac_dir/$lt_tmp_nm"
5028 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5029 # Check to see if the nm accepts a BSD-compat flag.
5030 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5031 # nm: unknown option "B" ignored
5032 # Tru64's nm complains that /dev/null is an invalid object file
5033 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5034 */dev/null* | *'Invalid file or object type'*)
5035 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00005036 break
5037 ;;
5038 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00005039 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5040 */dev/null*)
5041 lt_cv_path_NM="$tmp_nm -p"
5042 break
5043 ;;
5044 *)
5045 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5046 continue # so that we can try to find one that supports BSD flags
5047 ;;
5048 esac
brynercb91a2f2006-08-25 21:14:45 +00005049 ;;
5050 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005051 fi
5052 done
5053 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00005054 done
jimblandy92b1f832009-12-23 22:23:49 +00005055 : ${lt_cv_path_NM=no}
brynercb91a2f2006-08-25 21:14:45 +00005056fi
5057fi
jimblandy92b1f832009-12-23 22:23:49 +00005058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5059$as_echo "$lt_cv_path_NM" >&6; }
5060if test "$lt_cv_path_NM" != "no"; then
5061 NM="$lt_cv_path_NM"
5062else
5063 # Didn't find any BSD compatible name lister, look for dumpbin.
5064 if test -n "$ac_tool_prefix"; then
5065 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5066 do
5067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
5071if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 if test -n "$DUMPBIN"; then
5075 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088done
5089 done
5090IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005091
jimblandy92b1f832009-12-23 22:23:49 +00005092fi
5093fi
5094DUMPBIN=$ac_cv_prog_DUMPBIN
5095if test -n "$DUMPBIN"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5097$as_echo "$DUMPBIN" >&6; }
5098else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100$as_echo "no" >&6; }
5101fi
5102
5103
5104 test -n "$DUMPBIN" && break
5105 done
5106fi
5107if test -z "$DUMPBIN"; then
5108 ac_ct_DUMPBIN=$DUMPBIN
5109 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5110do
5111 # Extract the first word of "$ac_prog", so it can be a program name with args.
5112set dummy $ac_prog; ac_word=$2
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
5115if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 if test -n "$ac_ct_DUMPBIN"; then
5119 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132done
5133 done
5134IFS=$as_save_IFS
5135
5136fi
5137fi
5138ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5139if test -n "$ac_ct_DUMPBIN"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5141$as_echo "$ac_ct_DUMPBIN" >&6; }
5142else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
5145fi
5146
5147
5148 test -n "$ac_ct_DUMPBIN" && break
5149done
5150
5151 if test "x$ac_ct_DUMPBIN" = x; then
5152 DUMPBIN=":"
5153 else
5154 case $cross_compiling:$ac_tool_warned in
5155yes:)
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158ac_tool_warned=yes ;;
5159esac
5160 DUMPBIN=$ac_ct_DUMPBIN
5161 fi
5162fi
5163
5164
5165 if test "$DUMPBIN" != ":"; then
5166 NM="$DUMPBIN"
5167 fi
5168fi
5169test -z "$NM" && NM=nm
5170
5171
5172
5173
5174
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5177$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5178if test "${lt_cv_nm_interface+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180else
5181 lt_cv_nm_interface="BSD nm"
5182 echo "int some_variable = 0;" > conftest.$ac_ext
ted.mielczarekb2236272010-04-08 23:06:23 +00005183 (eval echo "\"\$as_me:5183: $ac_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005184 (eval "$ac_compile" 2>conftest.err)
5185 cat conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +00005186 (eval echo "\"\$as_me:5186: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005187 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5188 cat conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +00005189 (eval echo "\"\$as_me:5189: output\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005190 cat conftest.out >&5
5191 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5192 lt_cv_nm_interface="MS dumpbin"
5193 fi
5194 rm -f conftest*
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5197$as_echo "$lt_cv_nm_interface" >&6; }
5198
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5200$as_echo_n "checking whether ln -s works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005201LN_S=$as_ln_s
5202if test "$LN_S" = "ln -s"; then
jimblandy92b1f832009-12-23 22:23:49 +00005203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5204$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005205else
jimblandy92b1f832009-12-23 22:23:49 +00005206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5207$as_echo "no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005208fi
5209
jimblandy92b1f832009-12-23 22:23:49 +00005210# find the maximum length of command line arguments
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5212$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5213if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 i=0
5217 teststring="ABCD"
5218
5219 case $build_os in
5220 msdosdjgpp*)
5221 # On DJGPP, this test can blow up pretty badly due to problems in libc
5222 # (any single argument exceeding 2000 bytes causes a buffer overrun
5223 # during glob expansion). Even if it were fixed, the result of this
5224 # check would be larger than it should be.
5225 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5226 ;;
5227
5228 gnu*)
5229 # Under GNU Hurd, this test is not required because there is
5230 # no limit to the length of command line arguments.
5231 # Libtool will interpret -1 as no limit whatsoever
5232 lt_cv_sys_max_cmd_len=-1;
5233 ;;
5234
5235 cygwin* | mingw* | cegcc*)
5236 # On Win9x/ME, this test blows up -- it succeeds, but takes
5237 # about 5 minutes as the teststring grows exponentially.
5238 # Worse, since 9x/ME are not pre-emptively multitasking,
5239 # you end up with a "frozen" computer, even though with patience
5240 # the test eventually succeeds (with a max line length of 256k).
5241 # Instead, let's just punt: use the minimum linelength reported by
5242 # all of the supported platforms: 8192 (on NT/2K/XP).
5243 lt_cv_sys_max_cmd_len=8192;
5244 ;;
5245
5246 amigaos*)
5247 # On AmigaOS with pdksh, this test takes hours, literally.
5248 # So we just punt and use a minimum line length of 8192.
5249 lt_cv_sys_max_cmd_len=8192;
5250 ;;
5251
5252 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5253 # This has been around since 386BSD, at least. Likely further.
5254 if test -x /sbin/sysctl; then
5255 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5256 elif test -x /usr/sbin/sysctl; then
5257 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5258 else
5259 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5260 fi
5261 # And add a safety zone
5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5264 ;;
5265
5266 interix*)
5267 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5268 lt_cv_sys_max_cmd_len=196608
5269 ;;
5270
5271 osf*)
5272 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5273 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5274 # nice to cause kernel panics so lets avoid the loop below.
5275 # First set a reasonable default.
5276 lt_cv_sys_max_cmd_len=16384
5277 #
5278 if test -x /sbin/sysconfig; then
5279 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5280 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5281 esac
5282 fi
5283 ;;
5284 sco3.2v5*)
5285 lt_cv_sys_max_cmd_len=102400
5286 ;;
5287 sysv5* | sco5v6* | sysv4.2uw2*)
5288 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5289 if test -n "$kargmax"; then
5290 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5291 else
5292 lt_cv_sys_max_cmd_len=32768
5293 fi
5294 ;;
5295 *)
5296 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5297 if test -n "$lt_cv_sys_max_cmd_len"; then
5298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5300 else
5301 # Make teststring a little bigger before we do anything with it.
5302 # a 1K string should be a reasonable start.
5303 for i in 1 2 3 4 5 6 7 8 ; do
5304 teststring=$teststring$teststring
5305 done
5306 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5307 # If test is not a shell built-in, we'll probably end up computing a
5308 # maximum length that is only half of the actual maximum length, but
5309 # we can't tell.
5310 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5311 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5312 test $i != 17 # 1/2 MB should be enough
5313 do
5314 i=`expr $i + 1`
5315 teststring=$teststring$teststring
5316 done
5317 # Only check the string length outside the loop.
5318 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5319 teststring=
5320 # Add a significant safety factor because C++ compilers can tack on
5321 # massive amounts of additional arguments before passing them to the
5322 # linker. It appears as though 1/2 is a usable value.
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5324 fi
5325 ;;
5326 esac
5327
5328fi
5329
5330if test -n $lt_cv_sys_max_cmd_len ; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5332$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5333else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5335$as_echo "none" >&6; }
5336fi
5337max_cmd_len=$lt_cv_sys_max_cmd_len
5338
5339
5340
5341
5342
5343
5344: ${CP="cp -f"}
5345: ${MV="mv -f"}
5346: ${RM="rm -f"}
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5349$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5350# Try some XSI features
5351xsi_shell=no
5352( _lt_dummy="a/b/c"
5353 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5354 = c,a/b,, \
5355 && eval 'test $(( 1 + 1 )) -eq 2 \
5356 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5357 && xsi_shell=yes
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5359$as_echo "$xsi_shell" >&6; }
5360
5361
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5363$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5364lt_shell_append=no
5365( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5366 >/dev/null 2>&1 \
5367 && lt_shell_append=yes
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5369$as_echo "$lt_shell_append" >&6; }
5370
5371
5372if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5373 lt_unset=unset
5374else
5375 lt_unset=false
5376fi
5377
5378
5379
5380
5381
5382# test EBCDIC or ASCII
5383case `echo X|tr X '\101'` in
5384 A) # ASCII based system
5385 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5386 lt_SP2NL='tr \040 \012'
5387 lt_NL2SP='tr \015\012 \040\040'
5388 ;;
5389 *) # EBCDIC based system
5390 lt_SP2NL='tr \100 \n'
5391 lt_NL2SP='tr \r\n \100\100'
5392 ;;
5393esac
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5404$as_echo_n "checking for $LD option to reload object files... " >&6; }
5405if test "${lt_cv_ld_reload_flag+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 lt_cv_ld_reload_flag='-r'
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5411$as_echo "$lt_cv_ld_reload_flag" >&6; }
5412reload_flag=$lt_cv_ld_reload_flag
5413case $reload_flag in
5414"" | " "*) ;;
5415*) reload_flag=" $reload_flag" ;;
5416esac
5417reload_cmds='$LD$reload_flag -o $output$reload_objs'
5418case $host_os in
5419 darwin*)
5420 if test "$GCC" = yes; then
5421 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5422 else
5423 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5424 fi
5425 ;;
5426esac
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436if test -n "$ac_tool_prefix"; then
5437 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5438set dummy ${ac_tool_prefix}objdump; ac_word=$2
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440$as_echo_n "checking for $ac_word... " >&6; }
5441if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443else
5444 if test -n "$OBJDUMP"; then
5445 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5446else
5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448for as_dir in $PATH
5449do
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458done
5459 done
5460IFS=$as_save_IFS
5461
5462fi
5463fi
5464OBJDUMP=$ac_cv_prog_OBJDUMP
5465if test -n "$OBJDUMP"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5467$as_echo "$OBJDUMP" >&6; }
5468else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
5471fi
5472
5473
5474fi
5475if test -z "$ac_cv_prog_OBJDUMP"; then
5476 ac_ct_OBJDUMP=$OBJDUMP
5477 # Extract the first word of "objdump", so it can be a program name with args.
5478set dummy objdump; ac_word=$2
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480$as_echo_n "checking for $ac_word... " >&6; }
5481if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483else
5484 if test -n "$ac_ct_OBJDUMP"; then
5485 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5486else
5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498done
5499 done
5500IFS=$as_save_IFS
5501
5502fi
5503fi
5504ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5505if test -n "$ac_ct_OBJDUMP"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5507$as_echo "$ac_ct_OBJDUMP" >&6; }
5508else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513 if test "x$ac_ct_OBJDUMP" = x; then
5514 OBJDUMP="false"
5515 else
5516 case $cross_compiling:$ac_tool_warned in
5517yes:)
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520ac_tool_warned=yes ;;
5521esac
5522 OBJDUMP=$ac_ct_OBJDUMP
5523 fi
5524else
5525 OBJDUMP="$ac_cv_prog_OBJDUMP"
5526fi
5527
5528test -z "$OBJDUMP" && OBJDUMP=objdump
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5539$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5540if test "${lt_cv_deplibs_check_method+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005542else
5543 lt_cv_file_magic_cmd='$MAGIC_CMD'
5544lt_cv_file_magic_test_file=
5545lt_cv_deplibs_check_method='unknown'
5546# Need to set the preceding variable on all platforms that support
5547# interlibrary dependencies.
5548# 'none' -- dependencies not supported.
5549# `unknown' -- same as none, but documents that we really don't know.
5550# 'pass_all' -- all dependencies passed with no checks.
5551# 'test_compile' -- check by making test program.
5552# 'file_magic [[regex]]' -- check by looking for files in library path
5553# which responds to the $file_magic_cmd with a given extended regex.
5554# If you have `file' or equivalent on your system and you're not sure
5555# whether `pass_all' will *always* work, you probably want this one.
5556
5557case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005558aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00005559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561
5562beos*)
5563 lt_cv_deplibs_check_method=pass_all
5564 ;;
5565
mmentovai8c2a4de2006-09-20 16:20:15 +00005566bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5568 lt_cv_file_magic_cmd='/usr/bin/file -L'
5569 lt_cv_file_magic_test_file=/shlib/libc.so
5570 ;;
5571
5572cygwin*)
5573 # func_win32_libid is a shell function defined in ltmain.sh
5574 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5575 lt_cv_file_magic_cmd='func_win32_libid'
5576 ;;
5577
5578mingw* | pw32*)
5579 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00005580 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5581 # unless we find 'file', for example because we are cross-compiling.
5582 if ( file / ) >/dev/null 2>&1; then
5583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5584 lt_cv_file_magic_cmd='func_win32_libid'
5585 else
5586 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5587 lt_cv_file_magic_cmd='$OBJDUMP -f'
5588 fi
brynercb91a2f2006-08-25 21:14:45 +00005589 ;;
5590
jimblandy92b1f832009-12-23 22:23:49 +00005591cegcc)
5592 # use the weaker test based on 'objdump'. See mingw*.
5593 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5594 lt_cv_file_magic_cmd='$OBJDUMP -f'
5595 ;;
5596
brynercb91a2f2006-08-25 21:14:45 +00005597darwin* | rhapsody*)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600
ted.mielczarek1adb1842009-12-21 13:12:20 +00005601freebsd* | dragonfly*)
jimblandy92b1f832009-12-23 22:23:49 +00005602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005603 case $host_cpu in
5604 i*86 )
5605 # Not sure whether the presence of OpenBSD here was a mistake.
5606 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005607 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 +00005608 lt_cv_file_magic_cmd=/usr/bin/file
5609 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5610 ;;
5611 esac
5612 else
5613 lt_cv_deplibs_check_method=pass_all
5614 fi
5615 ;;
5616
5617gnu*)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620
5621hpux10.20* | hpux11*)
5622 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005623 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005624 ia64*)
5625 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5626 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5627 ;;
5628 hppa*64*)
5629 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]'
5630 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5631 ;;
5632 *)
5633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5634 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5635 ;;
5636 esac
5637 ;;
5638
ted.mielczarek1adb1842009-12-21 13:12:20 +00005639interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005640 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5642 ;;
5643
brynercb91a2f2006-08-25 21:14:45 +00005644irix5* | irix6* | nonstopux*)
5645 case $LD in
5646 *-32|*"-32 ") libmagic=32-bit;;
5647 *-n32|*"-n32 ") libmagic=N32;;
5648 *-64|*"-64 ") libmagic=64-bit;;
5649 *) libmagic=never-match;;
5650 esac
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +00005655linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00005656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
ted.mielczarekb2236272010-04-08 23:06:23 +00005659netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00005660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662 else
5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5664 fi
5665 ;;
5666
5667newos6*)
5668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5669 lt_cv_file_magic_cmd=/usr/bin/file
5670 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5671 ;;
5672
jimblandy92b1f832009-12-23 22:23:49 +00005673*nto* | *qnx*)
5674 lt_cv_deplibs_check_method=pass_all
brynercb91a2f2006-08-25 21:14:45 +00005675 ;;
5676
5677openbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005678 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005680 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005682 fi
5683 ;;
5684
5685osf3* | osf4* | osf5*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
ted.mielczarek1adb1842009-12-21 13:12:20 +00005689rdos*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
brynercb91a2f2006-08-25 21:14:45 +00005693solaris*)
5694 lt_cv_deplibs_check_method=pass_all
5695 ;;
5696
jimblandy92b1f832009-12-23 22:23:49 +00005697sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5698 lt_cv_deplibs_check_method=pass_all
5699 ;;
5700
mmentovai8c2a4de2006-09-20 16:20:15 +00005701sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005702 case $host_vendor in
5703 motorola)
5704 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]'
5705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5706 ;;
5707 ncr)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710 sequent)
5711 lt_cv_file_magic_cmd='/bin/file'
5712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5713 ;;
5714 sni)
5715 lt_cv_file_magic_cmd='/bin/file'
5716 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5717 lt_cv_file_magic_test_file=/lib/libc.so
5718 ;;
5719 siemens)
5720 lt_cv_deplibs_check_method=pass_all
5721 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005722 pc)
5723 lt_cv_deplibs_check_method=pass_all
5724 ;;
brynercb91a2f2006-08-25 21:14:45 +00005725 esac
5726 ;;
5727
jimblandy92b1f832009-12-23 22:23:49 +00005728tpf*)
brynercb91a2f2006-08-25 21:14:45 +00005729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731esac
5732
5733fi
jimblandy92b1f832009-12-23 22:23:49 +00005734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5735$as_echo "$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005736file_magic_cmd=$lt_cv_file_magic_cmd
5737deplibs_check_method=$lt_cv_deplibs_check_method
5738test -z "$deplibs_check_method" && deplibs_check_method=unknown
5739
5740
5741
5742
jimblandy92b1f832009-12-23 22:23:49 +00005743
5744
5745
5746
5747
5748
5749
5750
5751if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5753set dummy ${ac_tool_prefix}ar; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if test "${ac_cv_prog_AR+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758else
5759 if test -n "$AR"; then
5760 ac_cv_prog_AR="$AR" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_AR="${ac_tool_prefix}ar"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774 done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779AR=$ac_cv_prog_AR
5780if test -n "$AR"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5782$as_echo "$AR" >&6; }
5783else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789fi
5790if test -z "$ac_cv_prog_AR"; then
5791 ac_ct_AR=$AR
5792 # Extract the first word of "ar", so it can be a program name with args.
5793set dummy ar; ac_word=$2
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795$as_echo_n "checking for $ac_word... " >&6; }
5796if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5797 $as_echo_n "(cached) " >&6
5798else
5799 if test -n "$ac_ct_AR"; then
5800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_prog_ac_ct_AR="ar"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814 done
5815IFS=$as_save_IFS
5816
5817fi
5818fi
5819ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820if test -n "$ac_ct_AR"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5822$as_echo "$ac_ct_AR" >&6; }
5823else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825$as_echo "no" >&6; }
5826fi
5827
5828 if test "x$ac_ct_AR" = x; then
5829 AR="false"
5830 else
5831 case $cross_compiling:$ac_tool_warned in
5832yes:)
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5835ac_tool_warned=yes ;;
5836esac
5837 AR=$ac_ct_AR
5838 fi
5839else
5840 AR="$ac_cv_prog_AR"
5841fi
5842
5843test -z "$AR" && AR=ar
5844test -z "$AR_FLAGS" && AR_FLAGS=cru
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}strip; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if test "${ac_cv_prog_STRIP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$STRIP"; then
5865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879 done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884STRIP=$ac_cv_prog_STRIP
5885if test -n "$STRIP"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5887$as_echo "$STRIP" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894fi
5895if test -z "$ac_cv_prog_STRIP"; then
5896 ac_ct_STRIP=$STRIP
5897 # Extract the first word of "strip", so it can be a program name with args.
5898set dummy strip; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 if test -n "$ac_ct_STRIP"; then
5905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_ac_ct_STRIP="strip"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919 done
5920IFS=$as_save_IFS
5921
5922fi
5923fi
5924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5925if test -n "$ac_ct_STRIP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5927$as_echo "$ac_ct_STRIP" >&6; }
5928else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930$as_echo "no" >&6; }
5931fi
5932
5933 if test "x$ac_ct_STRIP" = x; then
5934 STRIP=":"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937yes:)
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940ac_tool_warned=yes ;;
5941esac
5942 STRIP=$ac_ct_STRIP
5943 fi
5944else
5945 STRIP="$ac_cv_prog_STRIP"
5946fi
5947
5948test -z "$STRIP" && STRIP=:
5949
5950
5951
5952
5953
5954
5955if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if test "${ac_cv_prog_RANLIB+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 if test -n "$RANLIB"; then
5964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977done
5978 done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983RANLIB=$ac_cv_prog_RANLIB
5984if test -n "$RANLIB"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5986$as_echo "$RANLIB" >&6; }
5987else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992
5993fi
5994if test -z "$ac_cv_prog_RANLIB"; then
5995 ac_ct_RANLIB=$RANLIB
5996 # Extract the first word of "ranlib", so it can be a program name with args.
5997set dummy ranlib; ac_word=$2
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
6000if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002else
6003 if test -n "$ac_ct_RANLIB"; then
6004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_RANLIB="ranlib"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017done
6018 done
6019IFS=$as_save_IFS
6020
6021fi
6022fi
6023ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024if test -n "$ac_ct_RANLIB"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6026$as_echo "$ac_ct_RANLIB" >&6; }
6027else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
6031
6032 if test "x$ac_ct_RANLIB" = x; then
6033 RANLIB=":"
6034 else
6035 case $cross_compiling:$ac_tool_warned in
6036yes:)
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039ac_tool_warned=yes ;;
6040esac
6041 RANLIB=$ac_ct_RANLIB
6042 fi
6043else
6044 RANLIB="$ac_cv_prog_RANLIB"
6045fi
6046
6047test -z "$RANLIB" && RANLIB=:
6048
6049
6050
6051
6052
6053
6054# Determine commands to create old-style static archives.
6055old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6056old_postinstall_cmds='chmod 644 $oldlib'
6057old_postuninstall_cmds=
6058
6059if test -n "$RANLIB"; then
6060 case $host_os in
6061 openbsd*)
6062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6063 ;;
6064 *)
6065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6066 ;;
6067 esac
6068 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6069fi
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
brynercb91a2f2006-08-25 21:14:45 +00006104# If no C compiler was specified, use CC.
6105LTCC=${LTCC-"$CC"}
6106
mmentovai8c2a4de2006-09-20 16:20:15 +00006107# If no C compiler flags were specified, use CFLAGS.
6108LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6109
brynercb91a2f2006-08-25 21:14:45 +00006110# Allow CC to be a program name with arguments.
6111compiler=$CC
6112
6113
brynercb91a2f2006-08-25 21:14:45 +00006114# Check for command to grab the raw symbol name followed by C symbol from nm.
jimblandy92b1f832009-12-23 22:23:49 +00006115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6116$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6117if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00006119else
6120
6121# These are sane defaults that work on at least a few old systems.
6122# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6123
6124# Character class describing NM global symbol codes.
6125symcode='[BCDEGRST]'
6126
6127# Regexp to match symbols that can be accessed directly from C.
6128sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6129
brynercb91a2f2006-08-25 21:14:45 +00006130# Define system-specific variables.
6131case $host_os in
6132aix*)
6133 symcode='[BCDT]'
6134 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006135cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00006136 symcode='[ABCDGISTW]'
6137 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006138hpux*)
brynercb91a2f2006-08-25 21:14:45 +00006139 if test "$host_cpu" = ia64; then
6140 symcode='[ABCDEGRST]'
6141 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006142 ;;
brynercb91a2f2006-08-25 21:14:45 +00006143irix* | nonstopux*)
6144 symcode='[BCDEGRST]'
6145 ;;
6146osf*)
6147 symcode='[BCDEGQRST]'
6148 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006149solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006150 symcode='[BDRT]'
6151 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006152sco3.2v5*)
6153 symcode='[DT]'
6154 ;;
6155sysv4.2uw2*)
6156 symcode='[DT]'
6157 ;;
6158sysv5* | sco5v6* | unixware* | OpenUNIX*)
6159 symcode='[ABDT]'
6160 ;;
brynercb91a2f2006-08-25 21:14:45 +00006161sysv4)
6162 symcode='[DFNSTU]'
6163 ;;
6164esac
6165
brynercb91a2f2006-08-25 21:14:45 +00006166# If we're using GNU nm, then use its standard symbol codes.
6167case `$NM -V 2>&1` in
6168*GNU* | *'with BFD'*)
6169 symcode='[ABCDGIRSTW]' ;;
6170esac
6171
jimblandy92b1f832009-12-23 22:23:49 +00006172# Transform an extracted symbol line into a proper C declaration.
6173# Some systems (esp. on ia64) link data and code symbols differently,
6174# so use this general approach.
6175lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6176
6177# Transform an extracted symbol line into symbol name and symbol address
6178lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6179lt_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'"
6180
6181# Handle CRLF in mingw tool chain
6182opt_cr=
6183case $build_os in
6184mingw*)
6185 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6186 ;;
6187esac
6188
6189# Try without a prefix underscore, then with it.
brynercb91a2f2006-08-25 21:14:45 +00006190for ac_symprfx in "" "_"; do
6191
mmentovai8c2a4de2006-09-20 16:20:15 +00006192 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6193 symxfrm="\\1 $ac_symprfx\\2 \\2"
6194
brynercb91a2f2006-08-25 21:14:45 +00006195 # Write the raw and C identifiers.
jimblandy92b1f832009-12-23 22:23:49 +00006196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6197 # Fake it for dumpbin and say T for any non-static function
6198 # and D for any global variable.
6199 # Also find C++ and __fastcall symbols from MSVC++,
6200 # which start with @ or ?.
6201 lt_cv_sys_global_symbol_pipe="$AWK '"\
6202" {last_section=section; section=\$ 3};"\
6203" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6204" \$ 0!~/External *\|/{next};"\
6205" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6206" {if(hide[section]) next};"\
6207" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6208" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6209" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6210" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6211" ' prfx=^$ac_symprfx"
6212 else
6213 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6214 fi
brynercb91a2f2006-08-25 21:14:45 +00006215
6216 # Check to see that the pipe works correctly.
6217 pipe_works=no
6218
6219 rm -f conftest*
jimblandy92b1f832009-12-23 22:23:49 +00006220 cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006221#ifdef __cplusplus
6222extern "C" {
6223#endif
6224char nm_test_var;
jimblandy92b1f832009-12-23 22:23:49 +00006225void nm_test_func(void);
6226void nm_test_func(void){}
brynercb91a2f2006-08-25 21:14:45 +00006227#ifdef __cplusplus
6228}
6229#endif
6230int main(){nm_test_var='a';nm_test_func();return(0);}
jimblandy92b1f832009-12-23 22:23:49 +00006231_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006232
jimblandy92b1f832009-12-23 22:23:49 +00006233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006234 (eval $ac_compile) 2>&5
6235 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +00006238 # Now try to grab the symbols.
6239 nlist=conftest.nm
jimblandy92b1f832009-12-23 22:23:49 +00006240 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 +00006241 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6242 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; } && test -s "$nlist"; then
brynercb91a2f2006-08-25 21:14:45 +00006245 # Try sorting and uniquifying the output.
6246 if sort "$nlist" | uniq > "$nlist"T; then
6247 mv -f "$nlist"T "$nlist"
6248 else
6249 rm -f "$nlist"T
6250 fi
6251
6252 # Make sure that we snagged all the symbols we need.
jimblandy92b1f832009-12-23 22:23:49 +00006253 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6254 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6255 cat <<_LT_EOF > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006256#ifdef __cplusplus
6257extern "C" {
6258#endif
6259
jimblandy92b1f832009-12-23 22:23:49 +00006260_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006261 # Now generate the symbol file.
jimblandy92b1f832009-12-23 22:23:49 +00006262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
brynercb91a2f2006-08-25 21:14:45 +00006263
jimblandy92b1f832009-12-23 22:23:49 +00006264 cat <<_LT_EOF >> conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006265
jimblandy92b1f832009-12-23 22:23:49 +00006266/* The mapping between symbol names and symbols. */
brynercb91a2f2006-08-25 21:14:45 +00006267const struct {
6268 const char *name;
jimblandy92b1f832009-12-23 22:23:49 +00006269 void *address;
brynercb91a2f2006-08-25 21:14:45 +00006270}
jimblandy92b1f832009-12-23 22:23:49 +00006271lt__PROGRAM__LTX_preloaded_symbols[] =
brynercb91a2f2006-08-25 21:14:45 +00006272{
jimblandy92b1f832009-12-23 22:23:49 +00006273 { "@PROGRAM@", (void *) 0 },
6274_LT_EOF
6275 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6276 cat <<\_LT_EOF >> conftest.$ac_ext
6277 {0, (void *) 0}
brynercb91a2f2006-08-25 21:14:45 +00006278};
6279
jimblandy92b1f832009-12-23 22:23:49 +00006280/* This works around a problem in FreeBSD linker */
6281#ifdef FREEBSD_WORKAROUND
6282static const void *lt_preloaded_setup() {
6283 return lt__PROGRAM__LTX_preloaded_symbols;
6284}
6285#endif
6286
brynercb91a2f2006-08-25 21:14:45 +00006287#ifdef __cplusplus
6288}
6289#endif
jimblandy92b1f832009-12-23 22:23:49 +00006290_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006291 # Now try linking the two files.
6292 mv conftest.$ac_objext conftstm.$ac_objext
6293 lt_save_LIBS="$LIBS"
6294 lt_save_CFLAGS="$CFLAGS"
6295 LIBS="conftstm.$ac_objext"
6296 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jimblandy92b1f832009-12-23 22:23:49 +00006297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006298 (eval $ac_link) 2>&5
6299 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
brynercb91a2f2006-08-25 21:14:45 +00006302 pipe_works=yes
6303 fi
6304 LIBS="$lt_save_LIBS"
6305 CFLAGS="$lt_save_CFLAGS"
6306 else
6307 echo "cannot find nm_test_func in $nlist" >&5
6308 fi
6309 else
6310 echo "cannot find nm_test_var in $nlist" >&5
6311 fi
6312 else
6313 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6314 fi
6315 else
6316 echo "$progname: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6318 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006319 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006320
6321 # Do not use the global_symbol_pipe unless it works.
6322 if test "$pipe_works" = yes; then
6323 break
6324 else
6325 lt_cv_sys_global_symbol_pipe=
6326 fi
6327done
6328
6329fi
6330
6331if test -z "$lt_cv_sys_global_symbol_pipe"; then
6332 lt_cv_sys_global_symbol_to_cdecl=
6333fi
6334if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jimblandy92b1f832009-12-23 22:23:49 +00006335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6336$as_echo "failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006337else
jimblandy92b1f832009-12-23 22:23:49 +00006338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6339$as_echo "ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006340fi
6341
jimblandy92b1f832009-12-23 22:23:49 +00006342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364# Check whether --enable-libtool-lock was given.
6365if test "${enable_libtool_lock+set}" = set; then :
6366 enableval=$enable_libtool_lock;
6367fi
6368
6369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6370
6371# Some flags need to be propagated to the compiler or linker for good
6372# libtool support.
6373case $host in
6374ia64-*-hpux*)
6375 # Find out which ABI we are using.
6376 echo 'int i;' > conftest.$ac_ext
6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6378 (eval $ac_compile) 2>&5
6379 ac_status=$?
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; }; then
6382 case `/usr/bin/file conftest.$ac_objext` in
6383 *ELF-32*)
6384 HPUX_IA64_MODE="32"
6385 ;;
6386 *ELF-64*)
6387 HPUX_IA64_MODE="64"
6388 ;;
6389 esac
6390 fi
6391 rm -rf conftest*
6392 ;;
6393*-*-irix6*)
6394 # Find out which ABI we are using.
ted.mielczarekb2236272010-04-08 23:06:23 +00006395 echo '#line 6395 "configure"' > conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00006396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6397 (eval $ac_compile) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }; then
6401 if test "$lt_cv_prog_gnu_ld" = yes; then
6402 case `/usr/bin/file conftest.$ac_objext` in
6403 *32-bit*)
6404 LD="${LD-ld} -melf32bsmip"
6405 ;;
6406 *N32*)
6407 LD="${LD-ld} -melf32bmipn32"
6408 ;;
6409 *64-bit*)
6410 LD="${LD-ld} -melf64bmip"
6411 ;;
6412 esac
6413 else
6414 case `/usr/bin/file conftest.$ac_objext` in
6415 *32-bit*)
6416 LD="${LD-ld} -32"
6417 ;;
6418 *N32*)
6419 LD="${LD-ld} -n32"
6420 ;;
6421 *64-bit*)
6422 LD="${LD-ld} -64"
6423 ;;
6424 esac
6425 fi
6426 fi
6427 rm -rf conftest*
6428 ;;
6429
6430x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6431s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6432 # Find out which ABI we are using.
6433 echo 'int i;' > conftest.$ac_ext
6434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435 (eval $ac_compile) 2>&5
6436 ac_status=$?
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }; then
6439 case `/usr/bin/file conftest.o` in
6440 *32-bit*)
6441 case $host in
6442 x86_64-*kfreebsd*-gnu)
6443 LD="${LD-ld} -m elf_i386_fbsd"
6444 ;;
6445 x86_64-*linux*)
6446 LD="${LD-ld} -m elf_i386"
6447 ;;
6448 ppc64-*linux*|powerpc64-*linux*)
6449 LD="${LD-ld} -m elf32ppclinux"
6450 ;;
6451 s390x-*linux*)
6452 LD="${LD-ld} -m elf_s390"
6453 ;;
6454 sparc64-*linux*)
6455 LD="${LD-ld} -m elf32_sparc"
6456 ;;
6457 esac
6458 ;;
6459 *64-bit*)
6460 case $host in
6461 x86_64-*kfreebsd*-gnu)
6462 LD="${LD-ld} -m elf_x86_64_fbsd"
6463 ;;
6464 x86_64-*linux*)
6465 LD="${LD-ld} -m elf_x86_64"
6466 ;;
6467 ppc*-*linux*|powerpc*-*linux*)
6468 LD="${LD-ld} -m elf64ppc"
6469 ;;
6470 s390*-*linux*|s390*-*tpf*)
6471 LD="${LD-ld} -m elf64_s390"
6472 ;;
6473 sparc*-*linux*)
6474 LD="${LD-ld} -m elf64_sparc"
6475 ;;
6476 esac
6477 ;;
6478 esac
6479 fi
6480 rm -rf conftest*
6481 ;;
6482
6483*-*-sco3.2v5*)
6484 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6485 SAVE_CFLAGS="$CFLAGS"
6486 CFLAGS="$CFLAGS -belf"
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6488$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6489if test "${lt_cv_cc_needs_belf+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6491else
6492 ac_ext=c
6493ac_cpp='$CPP $CPPFLAGS'
6494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6496ac_compiler_gnu=$ac_cv_c_compiler_gnu
6497
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499/* end confdefs.h. */
6500
6501int
6502main ()
6503{
6504
6505 ;
6506 return 0;
6507}
6508_ACEOF
6509if ac_fn_c_try_link "$LINENO"; then :
6510 lt_cv_cc_needs_belf=yes
6511else
6512 lt_cv_cc_needs_belf=no
6513fi
6514rm -f core conftest.err conftest.$ac_objext \
6515 conftest$ac_exeext conftest.$ac_ext
6516 ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
6522fi
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6524$as_echo "$lt_cv_cc_needs_belf" >&6; }
6525 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6526 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6527 CFLAGS="$SAVE_CFLAGS"
6528 fi
6529 ;;
6530sparc*-*solaris*)
6531 # Find out which ABI we are using.
6532 echo 'int i;' > conftest.$ac_ext
6533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6534 (eval $ac_compile) 2>&5
6535 ac_status=$?
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; }; then
6538 case `/usr/bin/file conftest.o` in
6539 *64-bit*)
6540 case $lt_cv_prog_gnu_ld in
6541 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6542 *)
6543 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6544 LD="${LD-ld} -64"
6545 fi
6546 ;;
6547 esac
6548 ;;
6549 esac
6550 fi
6551 rm -rf conftest*
6552 ;;
6553esac
6554
6555need_locks="$enable_libtool_lock"
6556
6557
6558 case $host_os in
6559 rhapsody* | darwin*)
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6562set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567else
6568 if test -n "$DSYMUTIL"; then
6569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582done
6583 done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588DSYMUTIL=$ac_cv_prog_DSYMUTIL
6589if test -n "$DSYMUTIL"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6591$as_echo "$DSYMUTIL" >&6; }
6592else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
6596
6597
6598fi
6599if test -z "$ac_cv_prog_DSYMUTIL"; then
6600 ac_ct_DSYMUTIL=$DSYMUTIL
6601 # Extract the first word of "dsymutil", so it can be a program name with args.
6602set dummy dsymutil; ac_word=$2
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6607else
6608 if test -n "$ac_ct_DSYMUTIL"; then
6609 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622done
6623 done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6629if test -n "$ac_ct_DSYMUTIL"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6631$as_echo "$ac_ct_DSYMUTIL" >&6; }
6632else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
6636
6637 if test "x$ac_ct_DSYMUTIL" = x; then
6638 DSYMUTIL=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646 DSYMUTIL=$ac_ct_DSYMUTIL
6647 fi
6648else
6649 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6650fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6654set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$NMEDIT"; then
6661 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675 done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680NMEDIT=$ac_cv_prog_NMEDIT
6681if test -n "$NMEDIT"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6683$as_echo "$NMEDIT" >&6; }
6684else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_NMEDIT"; then
6692 ac_ct_NMEDIT=$NMEDIT
6693 # Extract the first word of "nmedit", so it can be a program name with args.
6694set dummy nmedit; ac_word=$2
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696$as_echo_n "checking for $ac_word... " >&6; }
6697if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6699else
6700 if test -n "$ac_ct_NMEDIT"; then
6701 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714done
6715 done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6721if test -n "$ac_ct_NMEDIT"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6723$as_echo "$ac_ct_NMEDIT" >&6; }
6724else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729 if test "x$ac_ct_NMEDIT" = x; then
6730 NMEDIT=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738 NMEDIT=$ac_ct_NMEDIT
6739 fi
6740else
6741 NMEDIT="$ac_cv_prog_NMEDIT"
6742fi
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6746set dummy ${ac_tool_prefix}lipo; ac_word=$2
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748$as_echo_n "checking for $ac_word... " >&6; }
6749if test "${ac_cv_prog_LIPO+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6751else
6752 if test -n "$LIPO"; then
6753 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766done
6767 done
6768IFS=$as_save_IFS
6769
6770fi
6771fi
6772LIPO=$ac_cv_prog_LIPO
6773if test -n "$LIPO"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6775$as_echo "$LIPO" >&6; }
6776else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778$as_echo "no" >&6; }
6779fi
6780
6781
6782fi
6783if test -z "$ac_cv_prog_LIPO"; then
6784 ac_ct_LIPO=$LIPO
6785 # Extract the first word of "lipo", so it can be a program name with args.
6786set dummy lipo; ac_word=$2
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
6789if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6791else
6792 if test -n "$ac_ct_LIPO"; then
6793 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_ac_ct_LIPO="lipo"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807 done
6808IFS=$as_save_IFS
6809
6810fi
6811fi
6812ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6813if test -n "$ac_ct_LIPO"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6815$as_echo "$ac_ct_LIPO" >&6; }
6816else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818$as_echo "no" >&6; }
6819fi
6820
6821 if test "x$ac_ct_LIPO" = x; then
6822 LIPO=":"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825yes:)
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828ac_tool_warned=yes ;;
6829esac
6830 LIPO=$ac_ct_LIPO
6831 fi
6832else
6833 LIPO="$ac_cv_prog_LIPO"
6834fi
6835
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6838set dummy ${ac_tool_prefix}otool; ac_word=$2
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
6841if test "${ac_cv_prog_OTOOL+set}" = set; then :
6842 $as_echo_n "(cached) " >&6
6843else
6844 if test -n "$OTOOL"; then
6845 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858done
6859 done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864OTOOL=$ac_cv_prog_OTOOL
6865if test -n "$OTOOL"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6867$as_echo "$OTOOL" >&6; }
6868else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873
6874fi
6875if test -z "$ac_cv_prog_OTOOL"; then
6876 ac_ct_OTOOL=$OTOOL
6877 # Extract the first word of "otool", so it can be a program name with args.
6878set dummy otool; ac_word=$2
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
6881if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6882 $as_echo_n "(cached) " >&6
6883else
6884 if test -n "$ac_ct_OTOOL"; then
6885 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_prog_ac_ct_OTOOL="otool"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898done
6899 done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6905if test -n "$ac_ct_OTOOL"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6907$as_echo "$ac_ct_OTOOL" >&6; }
6908else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911fi
6912
6913 if test "x$ac_ct_OTOOL" = x; then
6914 OTOOL=":"
6915 else
6916 case $cross_compiling:$ac_tool_warned in
6917yes:)
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920ac_tool_warned=yes ;;
6921esac
6922 OTOOL=$ac_ct_OTOOL
6923 fi
6924else
6925 OTOOL="$ac_cv_prog_OTOOL"
6926fi
6927
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6930set dummy ${ac_tool_prefix}otool64; ac_word=$2
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6935else
6936 if test -n "$OTOOL64"; then
6937 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950done
6951 done
6952IFS=$as_save_IFS
6953
6954fi
6955fi
6956OTOOL64=$ac_cv_prog_OTOOL64
6957if test -n "$OTOOL64"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6959$as_echo "$OTOOL64" >&6; }
6960else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962$as_echo "no" >&6; }
6963fi
6964
6965
6966fi
6967if test -z "$ac_cv_prog_OTOOL64"; then
6968 ac_ct_OTOOL64=$OTOOL64
6969 # Extract the first word of "otool64", so it can be a program name with args.
6970set dummy otool64; ac_word=$2
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972$as_echo_n "checking for $ac_word... " >&6; }
6973if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6975else
6976 if test -n "$ac_ct_OTOOL64"; then
6977 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6978else
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6986 ac_cv_prog_ac_ct_OTOOL64="otool64"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990done
6991 done
6992IFS=$as_save_IFS
6993
6994fi
6995fi
6996ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6997if test -n "$ac_ct_OTOOL64"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6999$as_echo "$ac_ct_OTOOL64" >&6; }
7000else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002$as_echo "no" >&6; }
7003fi
7004
7005 if test "x$ac_ct_OTOOL64" = x; then
7006 OTOOL64=":"
7007 else
7008 case $cross_compiling:$ac_tool_warned in
7009yes:)
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012ac_tool_warned=yes ;;
7013esac
7014 OTOOL64=$ac_ct_OTOOL64
7015 fi
7016else
7017 OTOOL64="$ac_cv_prog_OTOOL64"
7018fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7047$as_echo_n "checking for -single_module linker flag... " >&6; }
7048if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7050else
7051 lt_cv_apple_cc_single_mod=no
7052 if test -z "${LT_MULTI_MODULE}"; then
7053 # By default we will add the -single_module flag. You can override
7054 # by either setting the environment variable LT_MULTI_MODULE
7055 # non-empty at configure time, or by adding -multi_module to the
7056 # link flags.
7057 rm -rf libconftest.dylib*
7058 echo "int foo(void){return 1;}" > conftest.c
7059 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7060-dynamiclib -Wl,-single_module conftest.c" >&5
7061 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7062 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7063 _lt_result=$?
7064 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7065 lt_cv_apple_cc_single_mod=yes
7066 else
7067 cat conftest.err >&5
7068 fi
7069 rm -rf libconftest.dylib*
7070 rm -f conftest.*
7071 fi
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7074$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7076$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7077if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079else
7080 lt_cv_ld_exported_symbols_list=no
7081 save_LDFLAGS=$LDFLAGS
7082 echo "_main" > conftest.sym
7083 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h. */
7086
7087int
7088main ()
7089{
7090
7091 ;
7092 return 0;
7093}
7094_ACEOF
7095if ac_fn_c_try_link "$LINENO"; then :
7096 lt_cv_ld_exported_symbols_list=yes
7097else
7098 lt_cv_ld_exported_symbols_list=no
7099fi
7100rm -f core conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7102 LDFLAGS="$save_LDFLAGS"
7103
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7106$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7107 case $host_os in
7108 rhapsody* | darwin1.[012])
7109 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7110 darwin1.*)
7111 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7112 darwin*) # darwin 5.x on
7113 # if running on 10.5 or later, the deployment target defaults
7114 # to the OS version, if on x86, and 10.4, the deployment
7115 # target defaults to 10.4. Don't you love it?
7116 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7117 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7118 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7119 10.[012]*)
7120 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7121 10.*)
7122 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7123 esac
7124 ;;
7125 esac
7126 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7127 _lt_dar_single_mod='$single_module'
7128 fi
7129 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7130 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7131 else
7132 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7133 fi
7134 if test "$DSYMUTIL" != ":"; then
7135 _lt_dsymutil='~$DSYMUTIL $lib || :'
7136 else
7137 _lt_dsymutil=
7138 fi
7139 ;;
7140 esac
7141
7142
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7144$as_echo_n "checking for ANSI C header files... " >&6; }
7145if test "${ac_cv_header_stdc+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7147else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h. */
7150#include <stdlib.h>
7151#include <stdarg.h>
7152#include <string.h>
7153#include <float.h>
7154
7155int
7156main ()
7157{
7158
7159 ;
7160 return 0;
7161}
7162_ACEOF
7163if ac_fn_c_try_compile "$LINENO"; then :
7164 ac_cv_header_stdc=yes
7165else
7166 ac_cv_header_stdc=no
7167fi
7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169
7170if test $ac_cv_header_stdc = yes; then
7171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h. */
7174#include <string.h>
7175
7176_ACEOF
7177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "memchr" >/dev/null 2>&1; then :
7179
7180else
7181 ac_cv_header_stdc=no
7182fi
7183rm -f conftest*
7184
7185fi
7186
7187if test $ac_cv_header_stdc = yes; then
7188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h. */
7191#include <stdlib.h>
7192
7193_ACEOF
7194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195 $EGREP "free" >/dev/null 2>&1; then :
7196
7197else
7198 ac_cv_header_stdc=no
7199fi
7200rm -f conftest*
7201
7202fi
7203
7204if test $ac_cv_header_stdc = yes; then
7205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7206 if test "$cross_compiling" = yes; then :
7207 :
7208else
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h. */
7211#include <ctype.h>
7212#include <stdlib.h>
7213#if ((' ' & 0x0FF) == 0x020)
7214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7216#else
7217# define ISLOWER(c) \
7218 (('a' <= (c) && (c) <= 'i') \
7219 || ('j' <= (c) && (c) <= 'r') \
7220 || ('s' <= (c) && (c) <= 'z'))
7221# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7222#endif
7223
7224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7225int
7226main ()
7227{
7228 int i;
7229 for (i = 0; i < 256; i++)
7230 if (XOR (islower (i), ISLOWER (i))
7231 || toupper (i) != TOUPPER (i))
7232 return 2;
7233 return 0;
7234}
7235_ACEOF
7236if ac_fn_c_try_run "$LINENO"; then :
7237
7238else
7239 ac_cv_header_stdc=no
7240fi
7241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7242 conftest.$ac_objext conftest.beam conftest.$ac_ext
7243fi
7244
7245fi
7246fi
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7248$as_echo "$ac_cv_header_stdc" >&6; }
7249if test $ac_cv_header_stdc = yes; then
7250
7251$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7252
7253fi
7254
7255# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7256for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7257 inttypes.h stdint.h unistd.h
7258do :
7259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7260ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7261"
7262eval as_val=\$$as_ac_Header
7263 if test "x$as_val" = x""yes; then :
7264 cat >>confdefs.h <<_ACEOF
7265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7266_ACEOF
7267
7268fi
7269
7270done
7271
7272
7273for ac_header in dlfcn.h
7274do :
7275 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7276"
7277if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7278 cat >>confdefs.h <<_ACEOF
7279#define HAVE_DLFCN_H 1
7280_ACEOF
7281
7282fi
7283
7284done
7285
7286
7287
7288ac_ext=cpp
7289ac_cpp='$CXXCPP $CPPFLAGS'
7290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7293if test -z "$CXX"; then
7294 if test -n "$CCC"; then
7295 CXX=$CCC
7296 else
7297 if test -n "$ac_tool_prefix"; then
7298 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7299 do
7300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if test "${ac_cv_prog_CXX+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7306else
7307 if test -n "$CXX"; then
7308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322 done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327CXX=$ac_cv_prog_CXX
7328if test -n "$CXX"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7330$as_echo "$CXX" >&6; }
7331else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336
7337 test -n "$CXX" && break
7338 done
7339fi
7340if test -z "$CXX"; then
7341 ac_ct_CXX=$CXX
7342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7343do
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345set dummy $ac_prog; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7350else
7351 if test -n "$ac_ct_CXX"; then
7352 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_ac_ct_CXX="$ac_prog"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366 done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7372if test -n "$ac_ct_CXX"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7374$as_echo "$ac_ct_CXX" >&6; }
7375else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380
7381 test -n "$ac_ct_CXX" && break
7382done
7383
7384 if test "x$ac_ct_CXX" = x; then
7385 CXX="g++"
7386 else
7387 case $cross_compiling:$ac_tool_warned in
7388yes:)
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391ac_tool_warned=yes ;;
7392esac
7393 CXX=$ac_ct_CXX
7394 fi
7395fi
7396
7397 fi
7398fi
7399# Provide some information about the compiler.
7400$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7401set X $ac_compile
7402ac_compiler=$2
7403for ac_option in --version -v -V -qversion; do
7404 { { ac_try="$ac_compiler $ac_option >&5"
7405case "(($ac_try" in
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7408esac
7409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7410$as_echo "$ac_try_echo"; } >&5
7411 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7412 ac_status=$?
7413 if test -s conftest.err; then
7414 sed '10a\
7415... rest of stderr output deleted ...
7416 10q' conftest.err >conftest.er1
7417 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00007418 fi
jimblandydc4029a2010-02-02 17:39:51 +00007419 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00007420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }
7422done
7423
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7425$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7426if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7427 $as_echo_n "(cached) " >&6
7428else
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430/* end confdefs.h. */
7431
7432int
7433main ()
7434{
7435#ifndef __GNUC__
7436 choke me
7437#endif
7438
7439 ;
7440 return 0;
7441}
7442_ACEOF
7443if ac_fn_cxx_try_compile "$LINENO"; then :
7444 ac_compiler_gnu=yes
7445else
7446 ac_compiler_gnu=no
7447fi
7448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7450
7451fi
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7453$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7454if test $ac_compiler_gnu = yes; then
7455 GXX=yes
7456else
7457 GXX=
7458fi
7459ac_test_CXXFLAGS=${CXXFLAGS+set}
7460ac_save_CXXFLAGS=$CXXFLAGS
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7462$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7463if test "${ac_cv_prog_cxx_g+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465else
7466 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7467 ac_cxx_werror_flag=yes
7468 ac_cv_prog_cxx_g=no
7469 CXXFLAGS="-g"
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h. */
7472
7473int
7474main ()
7475{
7476
7477 ;
7478 return 0;
7479}
7480_ACEOF
7481if ac_fn_cxx_try_compile "$LINENO"; then :
7482 ac_cv_prog_cxx_g=yes
7483else
7484 CXXFLAGS=""
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h. */
7487
7488int
7489main ()
7490{
7491
7492 ;
7493 return 0;
7494}
7495_ACEOF
7496if ac_fn_cxx_try_compile "$LINENO"; then :
7497
7498else
7499 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7500 CXXFLAGS="-g"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503
7504int
7505main ()
7506{
7507
7508 ;
7509 return 0;
7510}
7511_ACEOF
7512if ac_fn_cxx_try_compile "$LINENO"; then :
7513 ac_cv_prog_cxx_g=yes
7514fi
7515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516fi
7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518fi
7519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7521fi
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7523$as_echo "$ac_cv_prog_cxx_g" >&6; }
7524if test "$ac_test_CXXFLAGS" = set; then
7525 CXXFLAGS=$ac_save_CXXFLAGS
7526elif test $ac_cv_prog_cxx_g = yes; then
7527 if test "$GXX" = yes; then
7528 CXXFLAGS="-g -O2"
7529 else
7530 CXXFLAGS="-g"
7531 fi
7532else
7533 if test "$GXX" = yes; then
7534 CXXFLAGS="-O2"
7535 else
7536 CXXFLAGS=
7537 fi
7538fi
7539ac_ext=c
7540ac_cpp='$CPP $CPPFLAGS'
7541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545depcc="$CXX" am_compiler_list=
7546
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7548$as_echo_n "checking dependency style of $depcc... " >&6; }
7549if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7553 # We make a subdir and do the tests there. Otherwise we can end up
7554 # making bogus files that we don't know about and never remove. For
7555 # instance it was reported that on HP-UX the gcc test will end up
7556 # making a dummy file named `D' -- because `-MD' means `put the output
7557 # in D'.
7558 mkdir conftest.dir
7559 # Copy depcomp to subdir because otherwise we won't find it if we're
7560 # using a relative directory.
7561 cp "$am_depcomp" conftest.dir
7562 cd conftest.dir
7563 # We will build objects and dependencies in a subdirectory because
7564 # it helps to detect inapplicable dependency modes. For instance
7565 # both Tru64's cc and ICC support -MD to output dependencies as a
7566 # side effect of compilation, but ICC will put the dependencies in
7567 # the current directory while Tru64 will put them in the object
7568 # directory.
7569 mkdir sub
7570
7571 am_cv_CXX_dependencies_compiler_type=none
7572 if test "$am_compiler_list" = ""; then
7573 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7574 fi
7575 am__universal=false
7576 case " $depcc " in #(
7577 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7578 esac
7579
7580 for depmode in $am_compiler_list; do
7581 # Setup a source with many dependencies, because some compilers
7582 # like to wrap large dependency lists on column 80 (with \), and
7583 # we should not choose a depcomp mode which is confused by this.
7584 #
7585 # We need to recreate these files for each test, as the compiler may
7586 # overwrite some of them when testing with obscure command lines.
7587 # This happens at least with the AIX C compiler.
7588 : > sub/conftest.c
7589 for i in 1 2 3 4 5 6; do
7590 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7591 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7592 # Solaris 8's {/usr,}/bin/sh.
7593 touch sub/conftst$i.h
7594 done
7595 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7596
7597 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7598 # mode. It turns out that the SunPro C++ compiler does not properly
7599 # handle `-M -o', and we need to detect this. Also, some Intel
7600 # versions had trouble with output in subdirs
7601 am__obj=sub/conftest.${OBJEXT-o}
7602 am__minus_obj="-o $am__obj"
7603 case $depmode in
7604 gcc)
7605 # This depmode causes a compiler race in universal mode.
7606 test "$am__universal" = false || continue
7607 ;;
7608 nosideeffect)
7609 # after this tag, mechanisms are not by side-effect, so they'll
7610 # only be used when explicitly requested
7611 if test "x$enable_dependency_tracking" = xyes; then
7612 continue
7613 else
7614 break
7615 fi
7616 ;;
7617 msvisualcpp | msvcmsys)
7618 # This compiler won't grok `-c -o', but also, the minuso test has
7619 # not run yet. These depmodes are late enough in the game, and
7620 # so weak that their functioning should not be impacted.
7621 am__obj=conftest.${OBJEXT-o}
7622 am__minus_obj=
7623 ;;
7624 none) break ;;
7625 esac
7626 if depmode=$depmode \
7627 source=sub/conftest.c object=$am__obj \
7628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7629 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7630 >/dev/null 2>conftest.err &&
7631 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7633 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7635 # icc doesn't choke on unknown options, it will just issue warnings
7636 # or remarks (even with -Werror). So we grep stderr for any message
7637 # that says an option was ignored or not supported.
7638 # When given -MP, icc 7.0 and 7.1 complain thusly:
7639 # icc: Command line warning: ignoring option '-M'; no argument required
7640 # The diagnosis changed in icc 8.0:
7641 # icc: Command line remark: option '-MP' not supported
7642 if (grep 'ignoring option' conftest.err ||
7643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7644 am_cv_CXX_dependencies_compiler_type=$depmode
7645 break
7646 fi
7647 fi
7648 done
7649
7650 cd ..
7651 rm -rf conftest.dir
7652else
7653 am_cv_CXX_dependencies_compiler_type=none
7654fi
7655
7656fi
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7658$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7659CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7660
7661 if
7662 test "x$enable_dependency_tracking" != xno \
7663 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7664 am__fastdepCXX_TRUE=
7665 am__fastdepCXX_FALSE='#'
7666else
7667 am__fastdepCXX_TRUE='#'
7668 am__fastdepCXX_FALSE=
7669fi
7670
7671
7672if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7673 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7674 (test "X$CXX" != "Xg++"))) ; then
7675 ac_ext=cpp
7676ac_cpp='$CXXCPP $CPPFLAGS'
7677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7681$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7682if test -z "$CXXCPP"; then
7683 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
7685else
7686 # Double quotes because CXXCPP needs to be expanded
7687 for CXXCPP in "$CXX -E" "/lib/cpp"
7688 do
7689 ac_preproc_ok=false
7690for ac_cxx_preproc_warn_flag in '' yes
7691do
7692 # Use a header file that comes with gcc, so configuring glibc
7693 # with a fresh cross-compiler works.
7694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7695 # <limits.h> exists even on freestanding compilers.
7696 # On the NeXT, cc -E runs the code through the compiler's parser,
7697 # not just through cpp. "Syntax error" is here to catch this case.
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h. */
7700#ifdef __STDC__
7701# include <limits.h>
7702#else
7703# include <assert.h>
7704#endif
7705 Syntax error
7706_ACEOF
7707if ac_fn_cxx_try_cpp "$LINENO"; then :
7708
7709else
7710 # Broken: fails on valid input.
7711continue
7712fi
7713rm -f conftest.err conftest.$ac_ext
7714
7715 # OK, works on sane cases. Now check whether nonexistent headers
7716 # can be detected and how.
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h. */
7719#include <ac_nonexistent.h>
7720_ACEOF
7721if ac_fn_cxx_try_cpp "$LINENO"; then :
7722 # Broken: success on invalid input.
7723continue
7724else
7725 # Passes both tests.
7726ac_preproc_ok=:
7727break
7728fi
7729rm -f conftest.err conftest.$ac_ext
7730
7731done
7732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7733rm -f conftest.err conftest.$ac_ext
7734if $ac_preproc_ok; then :
7735 break
7736fi
7737
7738 done
7739 ac_cv_prog_CXXCPP=$CXXCPP
7740
7741fi
7742 CXXCPP=$ac_cv_prog_CXXCPP
7743else
7744 ac_cv_prog_CXXCPP=$CXXCPP
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7747$as_echo "$CXXCPP" >&6; }
7748ac_preproc_ok=false
7749for ac_cxx_preproc_warn_flag in '' yes
7750do
7751 # Use a header file that comes with gcc, so configuring glibc
7752 # with a fresh cross-compiler works.
7753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7754 # <limits.h> exists even on freestanding compilers.
7755 # On the NeXT, cc -E runs the code through the compiler's parser,
7756 # not just through cpp. "Syntax error" is here to catch this case.
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h. */
7759#ifdef __STDC__
7760# include <limits.h>
7761#else
7762# include <assert.h>
7763#endif
7764 Syntax error
7765_ACEOF
7766if ac_fn_cxx_try_cpp "$LINENO"; then :
7767
7768else
7769 # Broken: fails on valid input.
7770continue
7771fi
7772rm -f conftest.err conftest.$ac_ext
7773
7774 # OK, works on sane cases. Now check whether nonexistent headers
7775 # can be detected and how.
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h. */
7778#include <ac_nonexistent.h>
7779_ACEOF
7780if ac_fn_cxx_try_cpp "$LINENO"; then :
7781 # Broken: success on invalid input.
7782continue
7783else
7784 # Passes both tests.
7785ac_preproc_ok=:
7786break
7787fi
7788rm -f conftest.err conftest.$ac_ext
7789
7790done
7791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7792rm -f conftest.err conftest.$ac_ext
7793if $ac_preproc_ok; then :
7794
7795else
7796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7798_lt_caught_CXX_error=yes; }
7799fi
7800
7801ac_ext=c
7802ac_cpp='$CPP $CPPFLAGS'
7803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7805ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806
7807else
7808 _lt_caught_CXX_error=yes
7809fi
7810
7811
7812
7813
7814
7815# Set options
7816
7817
7818
7819 enable_dlopen=no
7820
7821
7822 enable_win32_dll=no
7823
7824
7825 # Check whether --enable-shared was given.
7826if test "${enable_shared+set}" = set; then :
7827 enableval=$enable_shared; p=${PACKAGE-default}
7828 case $enableval in
7829 yes) enable_shared=yes ;;
7830 no) enable_shared=no ;;
7831 *)
7832 enable_shared=no
7833 # Look at the argument we got. We use all the common list separators.
7834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835 for pkg in $enableval; do
7836 IFS="$lt_save_ifs"
7837 if test "X$pkg" = "X$p"; then
7838 enable_shared=yes
7839 fi
7840 done
7841 IFS="$lt_save_ifs"
7842 ;;
7843 esac
7844else
7845 enable_shared=yes
7846fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856 # Check whether --enable-static was given.
7857if test "${enable_static+set}" = set; then :
7858 enableval=$enable_static; p=${PACKAGE-default}
7859 case $enableval in
7860 yes) enable_static=yes ;;
7861 no) enable_static=no ;;
7862 *)
7863 enable_static=no
7864 # Look at the argument we got. We use all the common list separators.
7865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7866 for pkg in $enableval; do
7867 IFS="$lt_save_ifs"
7868 if test "X$pkg" = "X$p"; then
7869 enable_static=yes
7870 fi
7871 done
7872 IFS="$lt_save_ifs"
7873 ;;
7874 esac
7875else
7876 enable_static=yes
7877fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888# Check whether --with-pic was given.
7889if test "${with_pic+set}" = set; then :
7890 withval=$with_pic; pic_mode="$withval"
7891else
7892 pic_mode=default
7893fi
7894
7895
7896test -z "$pic_mode" && pic_mode=default
7897
7898
7899
7900
7901
7902
7903
7904 # Check whether --enable-fast-install was given.
7905if test "${enable_fast_install+set}" = set; then :
7906 enableval=$enable_fast_install; p=${PACKAGE-default}
7907 case $enableval in
7908 yes) enable_fast_install=yes ;;
7909 no) enable_fast_install=no ;;
7910 *)
7911 enable_fast_install=no
7912 # Look at the argument we got. We use all the common list separators.
7913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7914 for pkg in $enableval; do
7915 IFS="$lt_save_ifs"
7916 if test "X$pkg" = "X$p"; then
7917 enable_fast_install=yes
7918 fi
7919 done
7920 IFS="$lt_save_ifs"
7921 ;;
7922 esac
7923else
7924 enable_fast_install=yes
7925fi
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937# This can be used to rebuild libtool when needed
7938LIBTOOL_DEPS="$ltmain"
7939
7940# Always use our own libtool.
7941LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967test -z "$LN_S" && LN_S="ln -s"
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982if test -n "${ZSH_VERSION+set}" ; then
7983 setopt NO_GLOB_SUBST
7984fi
7985
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7987$as_echo_n "checking for objdir... " >&6; }
7988if test "${lt_cv_objdir+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00007990else
7991 rm -f .libs 2>/dev/null
7992mkdir .libs 2>/dev/null
7993if test -d .libs; then
7994 lt_cv_objdir=.libs
7995else
7996 # MS-DOS does not allow filenames that begin with a dot.
7997 lt_cv_objdir=_libs
7998fi
7999rmdir .libs 2>/dev/null
8000fi
jimblandy92b1f832009-12-23 22:23:49 +00008001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8002$as_echo "$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008003objdir=$lt_cv_objdir
8004
8005
8006
8007
8008
jimblandy92b1f832009-12-23 22:23:49 +00008009cat >>confdefs.h <<_ACEOF
8010#define LT_OBJDIR "$lt_cv_objdir/"
8011_ACEOF
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
brynercb91a2f2006-08-25 21:14:45 +00008029case $host_os in
8030aix3*)
8031 # AIX sometimes has problems with the GCC collect2 program. For some
8032 # reason, if we set the COLLECT_NAMES environment variable, the problems
8033 # vanish in a puff of smoke.
8034 if test "X${COLLECT_NAMES+set}" != Xset; then
8035 COLLECT_NAMES=
8036 export COLLECT_NAMES
8037 fi
8038 ;;
8039esac
8040
8041# Sed substitution that helps us do robust quoting. It backslashifies
8042# metacharacters that are still active within double-quoted strings.
jimblandy92b1f832009-12-23 22:23:49 +00008043sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008044
8045# Same as above, but do not quote variable references.
jimblandy92b1f832009-12-23 22:23:49 +00008046double_quote_subst='s/\(["`\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008047
8048# Sed substitution to delay expansion of an escaped shell variable in a
8049# double_quote_subst'ed string.
8050delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8051
jimblandy92b1f832009-12-23 22:23:49 +00008052# Sed substitution to delay expansion of an escaped single quote.
8053delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8054
brynercb91a2f2006-08-25 21:14:45 +00008055# Sed substitution to avoid accidental globbing in evaled expressions
8056no_glob_subst='s/\*/\\\*/g'
8057
brynercb91a2f2006-08-25 21:14:45 +00008058# Global variables:
jimblandy92b1f832009-12-23 22:23:49 +00008059ofile=libtool
brynercb91a2f2006-08-25 21:14:45 +00008060can_build_shared=yes
8061
mmentovai8c2a4de2006-09-20 16:20:15 +00008062# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00008063# which needs '.lib').
8064libext=a
jimblandy92b1f832009-12-23 22:23:49 +00008065
brynercb91a2f2006-08-25 21:14:45 +00008066with_gnu_ld="$lt_cv_prog_gnu_ld"
8067
brynercb91a2f2006-08-25 21:14:45 +00008068old_CC="$CC"
8069old_CFLAGS="$CFLAGS"
8070
8071# Set sane defaults for various variables
brynercb91a2f2006-08-25 21:14:45 +00008072test -z "$CC" && CC=cc
8073test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00008074test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00008075test -z "$LD" && LD=ld
brynercb91a2f2006-08-25 21:14:45 +00008076test -z "$ac_objext" && ac_objext=o
8077
mmentovai8c2a4de2006-09-20 16:20:15 +00008078for cc_temp in $compiler""; do
8079 case $cc_temp in
8080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8082 \-*) ;;
8083 *) break;;
8084 esac
8085done
jimblandy92b1f832009-12-23 22:23:49 +00008086cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +00008087
8088
brynercb91a2f2006-08-25 21:14:45 +00008089# Only perform the check for file, if the check method requires it
jimblandy92b1f832009-12-23 22:23:49 +00008090test -z "$MAGIC_CMD" && MAGIC_CMD=file
brynercb91a2f2006-08-25 21:14:45 +00008091case $deplibs_check_method in
8092file_magic*)
8093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
jimblandy92b1f832009-12-23 22:23:49 +00008094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8095$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8096if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8097 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008098else
8099 case $MAGIC_CMD in
8100[\\/*] | ?:[\\/]*)
8101 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8102 ;;
8103*)
8104 lt_save_MAGIC_CMD="$MAGIC_CMD"
8105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8106 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8107 for ac_dir in $ac_dummy; do
8108 IFS="$lt_save_ifs"
8109 test -z "$ac_dir" && ac_dir=.
8110 if test -f $ac_dir/${ac_tool_prefix}file; then
8111 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8112 if test -n "$file_magic_test_file"; then
8113 case $deplibs_check_method in
8114 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008115 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8117 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8118 $EGREP "$file_magic_regex" > /dev/null; then
8119 :
8120 else
jimblandy92b1f832009-12-23 22:23:49 +00008121 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008122
8123*** Warning: the command libtool uses to detect shared libraries,
8124*** $file_magic_cmd, produces output that libtool cannot recognize.
8125*** The result is that libtool may fail to recognize shared libraries
8126*** as such. This will affect the creation of libtool libraries that
8127*** depend on shared libraries, but programs linked with such libtool
8128*** libraries will work regardless of this problem. Nevertheless, you
8129*** may want to report the problem to your system manager and/or to
8130*** bug-libtool@gnu.org
8131
jimblandy92b1f832009-12-23 22:23:49 +00008132_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008133 fi ;;
8134 esac
8135 fi
8136 break
8137 fi
8138 done
8139 IFS="$lt_save_ifs"
8140 MAGIC_CMD="$lt_save_MAGIC_CMD"
8141 ;;
8142esac
8143fi
8144
8145MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8146if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8148$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008149else
jimblandy92b1f832009-12-23 22:23:49 +00008150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008152fi
8153
jimblandy92b1f832009-12-23 22:23:49 +00008154
8155
8156
8157
brynercb91a2f2006-08-25 21:14:45 +00008158if test -z "$lt_cv_path_MAGIC_CMD"; then
8159 if test -n "$ac_tool_prefix"; then
jimblandy92b1f832009-12-23 22:23:49 +00008160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8161$as_echo_n "checking for file... " >&6; }
8162if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008164else
8165 case $MAGIC_CMD in
8166[\\/*] | ?:[\\/]*)
8167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8168 ;;
8169*)
8170 lt_save_MAGIC_CMD="$MAGIC_CMD"
8171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8173 for ac_dir in $ac_dummy; do
8174 IFS="$lt_save_ifs"
8175 test -z "$ac_dir" && ac_dir=.
8176 if test -f $ac_dir/file; then
8177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8178 if test -n "$file_magic_test_file"; then
8179 case $deplibs_check_method in
8180 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8184 $EGREP "$file_magic_regex" > /dev/null; then
8185 :
8186 else
jimblandy92b1f832009-12-23 22:23:49 +00008187 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008188
8189*** Warning: the command libtool uses to detect shared libraries,
8190*** $file_magic_cmd, produces output that libtool cannot recognize.
8191*** The result is that libtool may fail to recognize shared libraries
8192*** as such. This will affect the creation of libtool libraries that
8193*** depend on shared libraries, but programs linked with such libtool
8194*** libraries will work regardless of this problem. Nevertheless, you
8195*** may want to report the problem to your system manager and/or to
8196*** bug-libtool@gnu.org
8197
jimblandy92b1f832009-12-23 22:23:49 +00008198_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008199 fi ;;
8200 esac
8201 fi
8202 break
8203 fi
8204 done
8205 IFS="$lt_save_ifs"
8206 MAGIC_CMD="$lt_save_MAGIC_CMD"
8207 ;;
8208esac
8209fi
8210
8211MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8214$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008215else
jimblandy92b1f832009-12-23 22:23:49 +00008216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008218fi
8219
jimblandy92b1f832009-12-23 22:23:49 +00008220
brynercb91a2f2006-08-25 21:14:45 +00008221 else
8222 MAGIC_CMD=:
8223 fi
8224fi
8225
8226 fi
8227 ;;
8228esac
8229
brynercb91a2f2006-08-25 21:14:45 +00008230# Use C for the default configuration in the libtool script
jimblandy92b1f832009-12-23 22:23:49 +00008231
brynercb91a2f2006-08-25 21:14:45 +00008232lt_save_CC="$CC"
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239
8240# Source file extension for C test sources.
8241ac_ext=c
8242
8243# Object file extension for compiled C test sources.
8244objext=o
8245objext=$objext
8246
8247# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008248lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00008249
8250# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008251lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00008252
8253
jimblandy92b1f832009-12-23 22:23:49 +00008254
8255
8256
8257
8258
brynercb91a2f2006-08-25 21:14:45 +00008259# If no C compiler was specified, use CC.
8260LTCC=${LTCC-"$CC"}
8261
mmentovai8c2a4de2006-09-20 16:20:15 +00008262# If no C compiler flags were specified, use CFLAGS.
8263LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8264
brynercb91a2f2006-08-25 21:14:45 +00008265# Allow CC to be a program name with arguments.
8266compiler=$CC
8267
jimblandy92b1f832009-12-23 22:23:49 +00008268# Save the default compiler, since it gets overwritten when the other
8269# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8270compiler_DEFAULT=$CC
brynercb91a2f2006-08-25 21:14:45 +00008271
mmentovai8c2a4de2006-09-20 16:20:15 +00008272# save warnings/boilerplate of simple test code
8273ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008274echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008275eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8276_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008277$RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008278
mmentovai8c2a4de2006-09-20 16:20:15 +00008279ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008280echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008281eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8282_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008283$RM -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00008284
8285
jimblandy92b1f832009-12-23 22:23:49 +00008286if test -n "$compiler"; then
brynercb91a2f2006-08-25 21:14:45 +00008287
8288lt_prog_compiler_no_builtin_flag=
8289
8290if test "$GCC" = yes; then
8291 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8292
jimblandy92b1f832009-12-23 22:23:49 +00008293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8294$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8295if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008297else
8298 lt_cv_prog_compiler_rtti_exceptions=no
jimblandy92b1f832009-12-23 22:23:49 +00008299 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008301 lt_compiler_flag="-fno-rtti -fno-exceptions"
8302 # Insert the option either (1) after the last *FLAGS variable, or
8303 # (2) before a word containing "conftest.", or (3) at the end.
8304 # Note that $ac_compile itself does not contain backslashes and begins
8305 # with a dollar sign (not a hyphen), so the echo should work correctly.
8306 # The option is referenced via a variable to avoid confusing sed.
8307 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310 -e 's:$: $lt_compiler_flag:'`
ted.mielczarekb2236272010-04-08 23:06:23 +00008311 (eval echo "\"\$as_me:8311: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008312 (eval "$lt_compile" 2>conftest.err)
8313 ac_status=$?
8314 cat conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +00008315 echo "$as_me:8315: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008316 if (exit $ac_status) && test -s "$ac_outfile"; then
8317 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008318 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008319 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008322 lt_cv_prog_compiler_rtti_exceptions=yes
8323 fi
8324 fi
jimblandy92b1f832009-12-23 22:23:49 +00008325 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008326
8327fi
jimblandy92b1f832009-12-23 22:23:49 +00008328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8329$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008330
8331if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8332 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8333else
8334 :
8335fi
8336
8337fi
8338
jimblandy92b1f832009-12-23 22:23:49 +00008339
8340
8341
8342
8343
8344 lt_prog_compiler_wl=
brynercb91a2f2006-08-25 21:14:45 +00008345lt_prog_compiler_pic=
8346lt_prog_compiler_static=
8347
jimblandy92b1f832009-12-23 22:23:49 +00008348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8349$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008350
8351 if test "$GCC" = yes; then
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_static='-static'
8354
8355 case $host_os in
8356 aix*)
8357 # All AIX code is PIC.
8358 if test "$host_cpu" = ia64; then
8359 # AIX 5 now supports IA64 processor
8360 lt_prog_compiler_static='-Bstatic'
8361 fi
8362 ;;
8363
8364 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008365 case $host_cpu in
8366 powerpc)
8367 # see comment about AmigaOS4 .so support
8368 lt_prog_compiler_pic='-fPIC'
8369 ;;
8370 m68k)
8371 # FIXME: we need at least 68020 code to build shared libraries, but
8372 # adding the `-m68020' flag to GCC prevents building anything better,
8373 # like `-m68040'.
8374 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8375 ;;
8376 esac
brynercb91a2f2006-08-25 21:14:45 +00008377 ;;
8378
ted.mielczarek1adb1842009-12-21 13:12:20 +00008379 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00008380 # PIC is the default for these OSes.
8381 ;;
8382
jimblandy92b1f832009-12-23 22:23:49 +00008383 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008384 # This hack is so that the source file can tell whether it is being
8385 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00008386 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8387 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00008388 lt_prog_compiler_pic='-DDLL_EXPORT'
8389 ;;
8390
8391 darwin* | rhapsody*)
8392 # PIC is the default on this platform
8393 # Common symbols not allowed in MH_DYLIB files
8394 lt_prog_compiler_pic='-fno-common'
8395 ;;
8396
jimblandy92b1f832009-12-23 22:23:49 +00008397 hpux*)
8398 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8399 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8400 # sets the default TLS model and affects inlining.
8401 case $host_cpu in
8402 hppa*64*)
8403 # +Z the default
8404 ;;
8405 *)
8406 lt_prog_compiler_pic='-fPIC'
8407 ;;
8408 esac
8409 ;;
8410
ted.mielczarek1adb1842009-12-21 13:12:20 +00008411 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8413 # Instead, we relocate shared libraries at runtime.
8414 ;;
8415
brynercb91a2f2006-08-25 21:14:45 +00008416 msdosdjgpp*)
8417 # Just because we use GCC doesn't mean we suddenly get shared libraries
8418 # on systems that don't support them.
8419 lt_prog_compiler_can_build_shared=no
8420 enable_shared=no
8421 ;;
8422
jimblandy92b1f832009-12-23 22:23:49 +00008423 *nto* | *qnx*)
8424 # QNX uses GNU C++, but need to define -shared option too, otherwise
8425 # it will coredump.
8426 lt_prog_compiler_pic='-fPIC -shared'
8427 ;;
8428
brynercb91a2f2006-08-25 21:14:45 +00008429 sysv4*MP*)
8430 if test -d /usr/nec; then
8431 lt_prog_compiler_pic=-Kconform_pic
8432 fi
8433 ;;
8434
brynercb91a2f2006-08-25 21:14:45 +00008435 *)
8436 lt_prog_compiler_pic='-fPIC'
8437 ;;
8438 esac
8439 else
8440 # PORTME Check for flag to pass linker flags through the system compiler.
8441 case $host_os in
8442 aix*)
8443 lt_prog_compiler_wl='-Wl,'
8444 if test "$host_cpu" = ia64; then
8445 # AIX 5 now supports IA64 processor
8446 lt_prog_compiler_static='-Bstatic'
8447 else
8448 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8449 fi
8450 ;;
8451
jimblandy92b1f832009-12-23 22:23:49 +00008452 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008453 # This hack is so that the source file can tell whether it is being
8454 # built for inclusion in a dll (and should export symbols for example).
8455 lt_prog_compiler_pic='-DDLL_EXPORT'
8456 ;;
8457
8458 hpux9* | hpux10* | hpux11*)
8459 lt_prog_compiler_wl='-Wl,'
8460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8461 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00008462 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008463 hppa*64*|ia64*)
8464 # +Z the default
8465 ;;
8466 *)
8467 lt_prog_compiler_pic='+Z'
8468 ;;
8469 esac
8470 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8471 lt_prog_compiler_static='${wl}-a ${wl}archive'
8472 ;;
8473
8474 irix5* | irix6* | nonstopux*)
8475 lt_prog_compiler_wl='-Wl,'
8476 # PIC (with -KPIC) is the default.
8477 lt_prog_compiler_static='-non_shared'
8478 ;;
8479
ted.mielczarekb2236272010-04-08 23:06:23 +00008480 linux* | k*bsd*-gnu | kopensolaris*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008481 case $cc_basename in
jimblandy92b1f832009-12-23 22:23:49 +00008482 # old Intel for x86_64 which still supported -KPIC.
8483 ecc*)
brynercb91a2f2006-08-25 21:14:45 +00008484 lt_prog_compiler_wl='-Wl,'
8485 lt_prog_compiler_pic='-KPIC'
8486 lt_prog_compiler_static='-static'
8487 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008488 # icc used to be incompatible with GCC.
8489 # ICC 10 doesn't accept -KPIC any more.
8490 icc* | ifort*)
8491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_pic='-fPIC'
8493 lt_prog_compiler_static='-static'
8494 ;;
8495 # Lahey Fortran 8.1.
8496 lf95*)
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_pic='--shared'
8499 lt_prog_compiler_static='--static'
8500 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008501 pgcc* | pgf77* | pgf90* | pgf95*)
8502 # Portland Group compilers (*not* the Pentium gcc compiler,
8503 # which looks to be a dead project)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-fpic'
8506 lt_prog_compiler_static='-Bstatic'
8507 ;;
brynercb91a2f2006-08-25 21:14:45 +00008508 ccc*)
8509 lt_prog_compiler_wl='-Wl,'
8510 # All Alpha code is PIC.
8511 lt_prog_compiler_static='-non_shared'
8512 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008513 xl*)
8514 # IBM XL C 8.0/Fortran 10.1 on PPC
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_pic='-qpic'
8517 lt_prog_compiler_static='-qstaticlink'
8518 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008519 *)
jimblandy92b1f832009-12-23 22:23:49 +00008520 case `$CC -V 2>&1 | sed 5q` in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008521 *Sun\ C*)
8522 # Sun C 5.9
8523 lt_prog_compiler_pic='-KPIC'
8524 lt_prog_compiler_static='-Bstatic'
8525 lt_prog_compiler_wl='-Wl,'
8526 ;;
8527 *Sun\ F*)
8528 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8529 lt_prog_compiler_pic='-KPIC'
8530 lt_prog_compiler_static='-Bstatic'
8531 lt_prog_compiler_wl=''
8532 ;;
8533 esac
8534 ;;
brynercb91a2f2006-08-25 21:14:45 +00008535 esac
8536 ;;
8537
jimblandy92b1f832009-12-23 22:23:49 +00008538 newsos6)
8539 lt_prog_compiler_pic='-KPIC'
8540 lt_prog_compiler_static='-Bstatic'
8541 ;;
8542
8543 *nto* | *qnx*)
8544 # QNX uses GNU C++, but need to define -shared option too, otherwise
8545 # it will coredump.
8546 lt_prog_compiler_pic='-fPIC -shared'
8547 ;;
8548
brynercb91a2f2006-08-25 21:14:45 +00008549 osf3* | osf4* | osf5*)
8550 lt_prog_compiler_wl='-Wl,'
8551 # All OSF/1 code is PIC.
8552 lt_prog_compiler_static='-non_shared'
8553 ;;
8554
ted.mielczarek1adb1842009-12-21 13:12:20 +00008555 rdos*)
8556 lt_prog_compiler_static='-non_shared'
8557 ;;
8558
brynercb91a2f2006-08-25 21:14:45 +00008559 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00008562 case $cc_basename in
8563 f77* | f90* | f95*)
8564 lt_prog_compiler_wl='-Qoption ld ';;
8565 *)
8566 lt_prog_compiler_wl='-Wl,';;
8567 esac
brynercb91a2f2006-08-25 21:14:45 +00008568 ;;
8569
8570 sunos4*)
8571 lt_prog_compiler_wl='-Qoption ld '
8572 lt_prog_compiler_pic='-PIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 ;;
8575
mmentovai8c2a4de2006-09-20 16:20:15 +00008576 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008577 lt_prog_compiler_wl='-Wl,'
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 ;;
8581
8582 sysv4*MP*)
8583 if test -d /usr/nec ;then
8584 lt_prog_compiler_pic='-Kconform_pic'
8585 lt_prog_compiler_static='-Bstatic'
8586 fi
8587 ;;
8588
mmentovai8c2a4de2006-09-20 16:20:15 +00008589 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-Bstatic'
8593 ;;
8594
8595 unicos*)
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_can_build_shared=no
8598 ;;
8599
brynercb91a2f2006-08-25 21:14:45 +00008600 uts4*)
8601 lt_prog_compiler_pic='-pic'
8602 lt_prog_compiler_static='-Bstatic'
8603 ;;
8604
8605 *)
8606 lt_prog_compiler_can_build_shared=no
8607 ;;
8608 esac
8609 fi
8610
jimblandy92b1f832009-12-23 22:23:49 +00008611case $host_os in
8612 # For platforms which do not support PIC, -DPIC is meaningless:
8613 *djgpp*)
8614 lt_prog_compiler_pic=
8615 ;;
8616 *)
8617 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8618 ;;
8619esac
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8621$as_echo "$lt_prog_compiler_pic" >&6; }
8622
8623
8624
8625
8626
brynercb91a2f2006-08-25 21:14:45 +00008627
8628#
8629# Check to make sure the PIC flag actually works.
8630#
8631if test -n "$lt_prog_compiler_pic"; then
jimblandy92b1f832009-12-23 22:23:49 +00008632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8633$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8634if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008636else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008637 lt_cv_prog_compiler_pic_works=no
jimblandy92b1f832009-12-23 22:23:49 +00008638 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008640 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8641 # Insert the option either (1) after the last *FLAGS variable, or
8642 # (2) before a word containing "conftest.", or (3) at the end.
8643 # Note that $ac_compile itself does not contain backslashes and begins
8644 # with a dollar sign (not a hyphen), so the echo should work correctly.
8645 # The option is referenced via a variable to avoid confusing sed.
8646 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8649 -e 's:$: $lt_compiler_flag:'`
ted.mielczarekb2236272010-04-08 23:06:23 +00008650 (eval echo "\"\$as_me:8650: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008651 (eval "$lt_compile" 2>conftest.err)
8652 ac_status=$?
8653 cat conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +00008654 echo "$as_me:8654: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008655 if (exit $ac_status) && test -s "$ac_outfile"; then
8656 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008657 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008658 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008661 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00008662 fi
8663 fi
jimblandy92b1f832009-12-23 22:23:49 +00008664 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008665
8666fi
jimblandy92b1f832009-12-23 22:23:49 +00008667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8668$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008669
ted.mielczarek1adb1842009-12-21 13:12:20 +00008670if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00008671 case $lt_prog_compiler_pic in
8672 "" | " "*) ;;
8673 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8674 esac
8675else
8676 lt_prog_compiler_pic=
8677 lt_prog_compiler_can_build_shared=no
8678fi
8679
8680fi
jimblandy92b1f832009-12-23 22:23:49 +00008681
8682
8683
8684
8685
brynercb91a2f2006-08-25 21:14:45 +00008686
mmentovai8c2a4de2006-09-20 16:20:15 +00008687#
8688# Check to make sure the static flag actually works.
8689#
8690wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +00008691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8692$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8693if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8694 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00008695else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008696 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008697 save_LDFLAGS="$LDFLAGS"
8698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008699 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8701 # The linker can only warn and ignore the option if not recognized
8702 # So say no if there are warnings
8703 if test -s conftest.err; then
8704 # Append any errors to the config.log.
8705 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +00008706 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8708 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008709 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008710 fi
8711 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008712 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008713 fi
8714 fi
jimblandy92b1f832009-12-23 22:23:49 +00008715 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008716 LDFLAGS="$save_LDFLAGS"
8717
8718fi
jimblandy92b1f832009-12-23 22:23:49 +00008719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8720$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00008721
ted.mielczarek1adb1842009-12-21 13:12:20 +00008722if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008723 :
8724else
8725 lt_prog_compiler_static=
8726fi
8727
8728
jimblandy92b1f832009-12-23 22:23:49 +00008729
8730
8731
8732
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8735$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8736if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008738else
8739 lt_cv_prog_compiler_c_o=no
jimblandy92b1f832009-12-23 22:23:49 +00008740 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008741 mkdir conftest
8742 cd conftest
8743 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00008744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008745
8746 lt_compiler_flag="-o out/conftest2.$ac_objext"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754 -e 's:$: $lt_compiler_flag:'`
ted.mielczarekb2236272010-04-08 23:06:23 +00008755 (eval echo "\"\$as_me:8755: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008756 (eval "$lt_compile" 2>out/conftest.err)
8757 ac_status=$?
8758 cat out/conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +00008759 echo "$as_me:8759: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8761 then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +00008764 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008767 lt_cv_prog_compiler_c_o=yes
8768 fi
8769 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008770 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +00008771 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008772 # SGI C++ compiler will create directory out/ii_files/ for
8773 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +00008774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8775 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +00008776 cd ..
jimblandy92b1f832009-12-23 22:23:49 +00008777 $RM -r conftest
8778 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008779
8780fi
jimblandy92b1f832009-12-23 22:23:49 +00008781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8782$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8783
8784
8785
8786
8787
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8790$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8791if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8793else
8794 lt_cv_prog_compiler_c_o=no
8795 $RM -r conftest 2>/dev/null
8796 mkdir conftest
8797 cd conftest
8798 mkdir out
8799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8800
8801 lt_compiler_flag="-o out/conftest2.$ac_objext"
8802 # Insert the option either (1) after the last *FLAGS variable, or
8803 # (2) before a word containing "conftest.", or (3) at the end.
8804 # Note that $ac_compile itself does not contain backslashes and begins
8805 # with a dollar sign (not a hyphen), so the echo should work correctly.
8806 lt_compile=`echo "$ac_compile" | $SED \
8807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8809 -e 's:$: $lt_compiler_flag:'`
ted.mielczarekb2236272010-04-08 23:06:23 +00008810 (eval echo "\"\$as_me:8810: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00008811 (eval "$lt_compile" 2>out/conftest.err)
8812 ac_status=$?
8813 cat out/conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +00008814 echo "$as_me:8814: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +00008815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8816 then
8817 # The compiler can only warn and ignore the option if not recognized
8818 # So say no if there are warnings
8819 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8822 lt_cv_prog_compiler_c_o=yes
8823 fi
8824 fi
8825 chmod u+w . 2>&5
8826 $RM conftest*
8827 # SGI C++ compiler will create directory out/ii_files/ for
8828 # template instantiation
8829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8830 $RM out/* && rmdir out
8831 cd ..
8832 $RM -r conftest
8833 $RM conftest*
8834
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8837$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8838
8839
brynercb91a2f2006-08-25 21:14:45 +00008840
8841
8842hard_links="nottested"
8843if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8844 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +00008845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8846$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008847 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +00008848 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850 touch conftest.a
8851 ln conftest.a conftest.b 2>&5 || hard_links=no
8852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +00008853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8854$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008855 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +00008856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8857$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00008858 need_locks=warn
8859 fi
8860else
8861 need_locks=no
8862fi
8863
jimblandy92b1f832009-12-23 22:23:49 +00008864
8865
8866
8867
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8870$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008871
8872 runpath_var=
8873 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00008874 always_export_symbols=no
brynercb91a2f2006-08-25 21:14:45 +00008875 archive_cmds=
8876 archive_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008877 compiler_needs_object=no
8878 enable_shared_with_static_runtimes=no
brynercb91a2f2006-08-25 21:14:45 +00008879 export_dynamic_flag_spec=
jimblandy92b1f832009-12-23 22:23:49 +00008880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8881 hardcode_automatic=no
8882 hardcode_direct=no
8883 hardcode_direct_absolute=no
brynercb91a2f2006-08-25 21:14:45 +00008884 hardcode_libdir_flag_spec=
8885 hardcode_libdir_flag_spec_ld=
8886 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00008887 hardcode_minus_L=no
8888 hardcode_shlibpath_var=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00008889 inherit_rpath=no
brynercb91a2f2006-08-25 21:14:45 +00008890 link_all_deplibs=unknown
brynercb91a2f2006-08-25 21:14:45 +00008891 module_cmds=
8892 module_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008893 old_archive_from_new_cmds=
8894 old_archive_from_expsyms_cmds=
8895 thread_safe_flag_spec=
8896 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008897 # include_expsyms should be a list of space-separated symbols to be *always*
8898 # included in the symbol list
8899 include_expsyms=
8900 # exclude_expsyms can be an extended regexp of symbols to exclude
8901 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8902 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8903 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008904 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00008905 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8906 # platforms (ab)use it in PIC code, but their linkers get confused if
8907 # the symbol is explicitly referenced. Since portable code cannot
8908 # rely on this symbol name, it's probably fine to never include it in
8909 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008910 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00008911 extract_expsyms_cmds=
8912
8913 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +00008914 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8916 # When not using gcc, we currently assume that we are using
8917 # Microsoft Visual C++.
8918 if test "$GCC" != yes; then
8919 with_gnu_ld=no
8920 fi
8921 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008922 interix*)
8923 # we just hope/assume this is gcc and not c89 (= MSVC++)
8924 with_gnu_ld=yes
8925 ;;
brynercb91a2f2006-08-25 21:14:45 +00008926 openbsd*)
8927 with_gnu_ld=no
8928 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +00008929 linux* | k*bsd*-gnu)
8930 link_all_deplibs=no
8931 ;;
brynercb91a2f2006-08-25 21:14:45 +00008932 esac
8933
8934 ld_shlibs=yes
8935 if test "$with_gnu_ld" = yes; then
8936 # If archive_cmds runs LD, not CC, wlarc should be empty
8937 wlarc='${wl}'
8938
mmentovai8c2a4de2006-09-20 16:20:15 +00008939 # Set some defaults for GNU ld with shared library support. These
8940 # are reset later if shared libraries are not supported. Putting them
8941 # here allows them to be overridden if necessary.
8942 runpath_var=LD_RUN_PATH
jimblandy92b1f832009-12-23 22:23:49 +00008943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00008944 export_dynamic_flag_spec='${wl}--export-dynamic'
8945 # ancient GNU ld didn't support --whole-archive et. al.
jimblandy92b1f832009-12-23 22:23:49 +00008946 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8947 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8948 else
8949 whole_archive_flag_spec=
mmentovai8c2a4de2006-09-20 16:20:15 +00008950 fi
8951 supports_anon_versioning=no
jimblandy92b1f832009-12-23 22:23:49 +00008952 case `$LD -v 2>&1` in
ted.mielczarekb2236272010-04-08 23:06:23 +00008953 *GNU\ gold*) supports_anon_versioning=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008954 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8955 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8956 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8957 *\ 2.11.*) ;; # other 2.11 versions
8958 *) supports_anon_versioning=yes ;;
8959 esac
8960
brynercb91a2f2006-08-25 21:14:45 +00008961 # See if GNU ld supports shared libraries.
8962 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008963 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008964 # On AIX/PPC, the GNU linker is very broken
8965 if test "$host_cpu" != ia64; then
8966 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00008967 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008968
8969*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8970*** to be unable to reliably create shared libraries on AIX.
8971*** Therefore, libtool is disabling shared libraries support. If you
8972*** really care for shared libraries, you may want to modify your PATH
8973*** so that a non-GNU linker is found, and then restart.
8974
jimblandy92b1f832009-12-23 22:23:49 +00008975_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008976 fi
8977 ;;
8978
8979 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008980 case $host_cpu in
8981 powerpc)
8982 # see comment about AmigaOS4 .so support
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds=''
8985 ;;
8986 m68k)
8987 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)'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_minus_L=yes
8990 ;;
8991 esac
brynercb91a2f2006-08-25 21:14:45 +00008992 ;;
8993
8994 beos*)
jimblandy92b1f832009-12-23 22:23:49 +00008995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008996 allow_undefined_flag=unsupported
8997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8998 # support --undefined. This deserves some investigation. FIXME
8999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
9004
jimblandy92b1f832009-12-23 22:23:49 +00009005 cygwin* | mingw* | pw32* | cegcc*)
9006 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
brynercb91a2f2006-08-25 21:14:45 +00009007 # as there is no search path for DLLs.
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 allow_undefined_flag=unsupported
9010 always_export_symbols=no
9011 enable_shared_with_static_runtimes=yes
jimblandy92b1f832009-12-23 22:23:49 +00009012 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 +00009013
jimblandy92b1f832009-12-23 22:23:49 +00009014 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009015 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 +00009016 # If the export-symbols file already is a .def file (1st line
9017 # is EXPORTS), use it as is; otherwise, prepend...
9018 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9019 cp $export_symbols $output_objdir/$soname.def;
9020 else
9021 echo EXPORTS > $output_objdir/$soname.def;
9022 cat $export_symbols >> $output_objdir/$soname.def;
9023 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00009024 $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 +00009025 else
9026 ld_shlibs=no
9027 fi
9028 ;;
9029
ted.mielczarek1adb1842009-12-21 13:12:20 +00009030 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009031 hardcode_direct=no
9032 hardcode_shlibpath_var=no
9033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9034 export_dynamic_flag_spec='${wl}-E'
9035 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9036 # Instead, shared libraries are loaded at an image base (0x10000000 by
9037 # default) and relocated if they conflict, which is a slow very memory
9038 # consuming and fragmenting process. To avoid this, we pick a random,
9039 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9040 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9042 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'
9043 ;;
9044
ted.mielczarekb2236272010-04-08 23:06:23 +00009045 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009046 tmp_diet=no
9047 if test "$host_os" = linux-dietlibc; then
9048 case $cc_basename in
9049 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9050 esac
9051 fi
9052 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9053 && test "$tmp_diet" = no
9054 then
mmentovai8c2a4de2006-09-20 16:20:15 +00009055 tmp_addflag=
jimblandy92b1f832009-12-23 22:23:49 +00009056 tmp_sharedflag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009057 case $cc_basename,$host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +00009058 pgcc*) # Portland Group C compiler
9059 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 +00009060 tmp_addflag=' $pic_flag'
9061 ;;
9062 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
jimblandy92b1f832009-12-23 22:23:49 +00009063 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 +00009064 tmp_addflag=' $pic_flag -Mnomain' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009065 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
mmentovai8c2a4de2006-09-20 16:20:15 +00009066 tmp_addflag=' -i_dynamic' ;;
9067 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9068 tmp_addflag=' -i_dynamic -nofor_main' ;;
9069 ifc* | ifort*) # Intel Fortran compiler
9070 tmp_addflag=' -nofor_main' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009071 lf95*) # Lahey Fortran 8.1
9072 whole_archive_flag_spec=
9073 tmp_sharedflag='--shared' ;;
9074 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9075 tmp_sharedflag='-qmkshrobj'
9076 tmp_addflag= ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009077 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00009078 case `$CC -V 2>&1 | sed 5q` in
9079 *Sun\ C*) # Sun C 5.9
jimblandy92b1f832009-12-23 22:23:49 +00009080 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'
9081 compiler_needs_object=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00009082 tmp_sharedflag='-G' ;;
9083 *Sun\ F*) # Sun Fortran 8.3
9084 tmp_sharedflag='-G' ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00009085 esac
9086 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009087
jimblandy92b1f832009-12-23 22:23:49 +00009088 if test "x$supports_anon_versioning" = xyes; then
9089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091 echo "local: *; };" >> $output_objdir/$libname.ver~
9092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9093 fi
9094
9095 case $cc_basename in
9096 xlf*)
9097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9098 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9099 hardcode_libdir_flag_spec=
9100 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9101 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9102 if test "x$supports_anon_versioning" = xyes; then
9103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9105 echo "local: *; };" >> $output_objdir/$libname.ver~
9106 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9107 fi
9108 ;;
9109 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009110 else
jimblandy92b1f832009-12-23 22:23:49 +00009111 ld_shlibs=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009112 fi
9113 ;;
9114
ted.mielczarekb2236272010-04-08 23:06:23 +00009115 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009117 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9118 wlarc=
9119 else
9120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9122 fi
9123 ;;
9124
mmentovai8c2a4de2006-09-20 16:20:15 +00009125 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009126 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009127 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00009128 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00009129
9130*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9131*** create shared libraries on Solaris systems. Therefore, libtool
9132*** is disabling shared libraries support. We urge you to upgrade GNU
9133*** binutils to release 2.9.1 or newer. Another option is to modify
9134*** your PATH or compiler configuration so that the native linker is
9135*** used, and then restart.
9136
jimblandy92b1f832009-12-23 22:23:49 +00009137_LT_EOF
9138 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141 else
9142 ld_shlibs=no
9143 fi
9144 ;;
9145
mmentovai8c2a4de2006-09-20 16:20:15 +00009146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9147 case `$LD -v 2>&1` in
9148 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9149 ld_shlibs=no
9150 cat <<_LT_EOF 1>&2
9151
9152*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9153*** reliably create shared libraries on SCO systems. Therefore, libtool
9154*** is disabling shared libraries support. We urge you to upgrade GNU
9155*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9156*** your PATH or compiler configuration so that the native linker is
9157*** used, and then restart.
9158
9159_LT_EOF
9160 ;;
9161 *)
jimblandy92b1f832009-12-23 22:23:49 +00009162 # For security reasons, it is highly recommended that you always
9163 # use absolute paths for naming shared libraries, and exclude the
9164 # DT_RUNPATH tag from executables and libraries. But doing so
9165 # requires that you compile everything twice, which is a pain.
9166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 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 +00009170 else
9171 ld_shlibs=no
9172 fi
9173 ;;
9174 esac
9175 ;;
9176
brynercb91a2f2006-08-25 21:14:45 +00009177 sunos4*)
9178 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9179 wlarc=
9180 hardcode_direct=yes
9181 hardcode_shlibpath_var=no
9182 ;;
9183
brynercb91a2f2006-08-25 21:14:45 +00009184 *)
jimblandy92b1f832009-12-23 22:23:49 +00009185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9188 else
9189 ld_shlibs=no
9190 fi
9191 ;;
9192 esac
9193
mmentovai8c2a4de2006-09-20 16:20:15 +00009194 if test "$ld_shlibs" = no; then
9195 runpath_var=
9196 hardcode_libdir_flag_spec=
9197 export_dynamic_flag_spec=
9198 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00009199 fi
9200 else
9201 # PORTME fill in a description of your system's linker (not GNU ld)
9202 case $host_os in
9203 aix3*)
9204 allow_undefined_flag=unsupported
9205 always_export_symbols=yes
9206 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'
9207 # Note: this linker hardcodes the directories in LIBPATH if there
9208 # are no directories specified by -L.
9209 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00009211 # Neither direct hardcoding nor static linking is supported with a
9212 # broken collect2.
9213 hardcode_direct=unsupported
9214 fi
9215 ;;
9216
ted.mielczarek1adb1842009-12-21 13:12:20 +00009217 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009218 if test "$host_cpu" = ia64; then
9219 # On IA64, the linker does run time linking by default, so we don't
9220 # have to do anything special.
9221 aix_use_runtimelinking=no
9222 exp_sym_flag='-Bexport'
9223 no_entry_flag=""
9224 else
9225 # If we're using GNU nm, then we don't want the "-C" option.
9226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +00009227 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9228 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 +00009229 else
jimblandy92b1f832009-12-23 22:23:49 +00009230 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 +00009231 fi
9232 aix_use_runtimelinking=no
9233
9234 # Test if we are trying to use run time linking or normal
9235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9236 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009237 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009238 for ld_flag in $LDFLAGS; do
jimblandy92b1f832009-12-23 22:23:49 +00009239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9240 aix_use_runtimelinking=yes
9241 break
9242 fi
brynercb91a2f2006-08-25 21:14:45 +00009243 done
mmentovai8c2a4de2006-09-20 16:20:15 +00009244 ;;
brynercb91a2f2006-08-25 21:14:45 +00009245 esac
9246
9247 exp_sym_flag='-bexport'
9248 no_entry_flag='-bnoentry'
9249 fi
9250
9251 # When large executables or shared objects are built, AIX ld can
9252 # have problems creating the table of contents. If linking a library
9253 # or program results in "error TOC overflow" add -mminimal-toc to
9254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9256
9257 archive_cmds=''
9258 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009259 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009260 hardcode_libdir_separator=':'
9261 link_all_deplibs=yes
jimblandy92b1f832009-12-23 22:23:49 +00009262 file_list_spec='${wl}-f,'
brynercb91a2f2006-08-25 21:14:45 +00009263
9264 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009265 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009266 # We only want to do this on AIX 4.2 and lower, the check
9267 # below for broken collect2 doesn't work under 4.3+
9268 collect2name=`${CC} -print-prog-name=collect2`
jimblandy92b1f832009-12-23 22:23:49 +00009269 if test -f "$collect2name" &&
9270 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009271 then
jimblandy92b1f832009-12-23 22:23:49 +00009272 # We have reworked collect2
9273 :
brynercb91a2f2006-08-25 21:14:45 +00009274 else
jimblandy92b1f832009-12-23 22:23:49 +00009275 # We have old collect2
9276 hardcode_direct=unsupported
9277 # It fails to find uninstalled libraries when the uninstalled
9278 # path is not listed in the libpath. Setting hardcode_minus_L
9279 # to unsupported forces relinking
9280 hardcode_minus_L=yes
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00009283 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009284 ;;
brynercb91a2f2006-08-25 21:14:45 +00009285 esac
9286 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009287 if test "$aix_use_runtimelinking" = yes; then
9288 shared_flag="$shared_flag "'${wl}-G'
9289 fi
ted.mielczarekb2236272010-04-08 23:06:23 +00009290 link_all_deplibs=no
brynercb91a2f2006-08-25 21:14:45 +00009291 else
9292 # not using gcc
9293 if test "$host_cpu" = ia64; then
jimblandy92b1f832009-12-23 22:23:49 +00009294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9295 # chokes on -Wl,-G. The following line is correct:
brynercb91a2f2006-08-25 21:14:45 +00009296 shared_flag='-G'
9297 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009298 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00009299 shared_flag='${wl}-G'
9300 else
9301 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00009302 fi
brynercb91a2f2006-08-25 21:14:45 +00009303 fi
9304 fi
9305
jimblandy92b1f832009-12-23 22:23:49 +00009306 export_dynamic_flag_spec='${wl}-bexpall'
brynercb91a2f2006-08-25 21:14:45 +00009307 # It seems that -bexpall does not export symbols beginning with
9308 # underscore (_), so it is better to generate a list of symbols to export.
9309 always_export_symbols=yes
9310 if test "$aix_use_runtimelinking" = yes; then
9311 # Warning - without using the other runtime loading flags (-brtl),
9312 # -berok will link without error, but may produce a broken library.
9313 allow_undefined_flag='-berok'
jimblandy92b1f832009-12-23 22:23:49 +00009314 # Determine the default libpath from the value encoded in an
9315 # empty executable.
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009317/* end confdefs.h. */
9318
9319int
9320main ()
9321{
9322
9323 ;
9324 return 0;
9325}
9326_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009327if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009328
ted.mielczarek1adb1842009-12-21 13:12:20 +00009329lt_aix_libpath_sed='
9330 /Import File Strings/,/^$/ {
9331 /^0/ {
9332 s/^0 *\(.*\)$/\1/
9333 p
9334 }
9335 }'
9336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009337# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009338if test -z "$aix_libpath"; then
9339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9340fi
brynercb91a2f2006-08-25 21:14:45 +00009341fi
jimblandy92b1f832009-12-23 22:23:49 +00009342rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009344if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9345
jimblandy92b1f832009-12-23 22:23:49 +00009346 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9347 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"
9348 else
brynercb91a2f2006-08-25 21:14:45 +00009349 if test "$host_cpu" = ia64; then
9350 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9351 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00009352 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 +00009353 else
jimblandy92b1f832009-12-23 22:23:49 +00009354 # Determine the default libpath from the value encoded in an
9355 # empty executable.
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009357/* end confdefs.h. */
9358
9359int
9360main ()
9361{
9362
9363 ;
9364 return 0;
9365}
9366_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009367if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009368
ted.mielczarek1adb1842009-12-21 13:12:20 +00009369lt_aix_libpath_sed='
9370 /Import File Strings/,/^$/ {
9371 /^0/ {
9372 s/^0 *\(.*\)$/\1/
9373 p
9374 }
9375 }'
9376aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009377# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009378if test -z "$aix_libpath"; then
9379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380fi
brynercb91a2f2006-08-25 21:14:45 +00009381fi
jimblandy92b1f832009-12-23 22:23:49 +00009382rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009384if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9385
9386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9387 # Warning - without using the other run time loading flags,
9388 # -berok will link without error, but may produce a broken library.
9389 no_undefined_flag=' ${wl}-bernotok'
9390 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00009391 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00009392 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00009393 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009394 # This is similar to how AIX traditionally builds its shared libraries.
9395 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 +00009396 fi
9397 fi
9398 ;;
9399
9400 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00009401 case $host_cpu in
9402 powerpc)
9403 # see comment about AmigaOS4 .so support
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds=''
9406 ;;
9407 m68k)
9408 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)'
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 hardcode_minus_L=yes
9411 ;;
9412 esac
brynercb91a2f2006-08-25 21:14:45 +00009413 ;;
9414
mmentovai8c2a4de2006-09-20 16:20:15 +00009415 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009416 export_dynamic_flag_spec=-rdynamic
9417 ;;
9418
jimblandy92b1f832009-12-23 22:23:49 +00009419 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00009420 # When not using gcc, we currently assume that we are using
9421 # Microsoft Visual C++.
9422 # hardcode_libdir_flag_spec is actually meaningless, as there is
9423 # no search path for DLLs.
9424 hardcode_libdir_flag_spec=' '
9425 allow_undefined_flag=unsupported
9426 # Tell ltmain to make .lib files, not .a files.
9427 libext=lib
9428 # Tell ltmain to make .dll files, not .so files.
9429 shrext_cmds=".dll"
9430 # FIXME: Setting linknames here is a bad hack.
jimblandy92b1f832009-12-23 22:23:49 +00009431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
brynercb91a2f2006-08-25 21:14:45 +00009432 # The linker will automatically build a .lib file if we build a DLL.
jimblandy92b1f832009-12-23 22:23:49 +00009433 old_archive_from_new_cmds='true'
brynercb91a2f2006-08-25 21:14:45 +00009434 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009435 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009436 fix_srcfile_path='`cygpath -w "$srcfile"`'
9437 enable_shared_with_static_runtimes=yes
9438 ;;
9439
9440 darwin* | rhapsody*)
jimblandy92b1f832009-12-23 22:23:49 +00009441
9442
9443 archive_cmds_need_lc=no
9444 hardcode_direct=no
9445 hardcode_automatic=yes
9446 hardcode_shlibpath_var=unsupported
9447 whole_archive_flag_spec=''
9448 link_all_deplibs=yes
9449 allow_undefined_flag="$_lt_dar_allow_undefined"
9450 case $cc_basename in
9451 ifort*) _lt_dar_can_shared=yes ;;
9452 *) _lt_dar_can_shared=$GCC ;;
9453 esac
9454 if test "$_lt_dar_can_shared" = "yes"; then
9455 output_verbose_link_cmd=echo
9456 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9457 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9458 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}"
9459 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}"
9460
9461 else
9462 ld_shlibs=no
9463 fi
9464
brynercb91a2f2006-08-25 21:14:45 +00009465 ;;
9466
9467 dgux*)
9468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_libdir_flag_spec='-L$libdir'
9470 hardcode_shlibpath_var=no
9471 ;;
9472
9473 freebsd1*)
9474 ld_shlibs=no
9475 ;;
9476
9477 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9478 # support. Future versions do this automatically, but an explicit c++rt0.o
9479 # does not break anything, and helps significantly (at the cost of a little
9480 # extra space).
9481 freebsd2.2*)
9482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9483 hardcode_libdir_flag_spec='-R$libdir'
9484 hardcode_direct=yes
9485 hardcode_shlibpath_var=no
9486 ;;
9487
9488 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9489 freebsd2*)
9490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_direct=yes
9492 hardcode_minus_L=yes
9493 hardcode_shlibpath_var=no
9494 ;;
9495
9496 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009497 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00009498 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9499 hardcode_libdir_flag_spec='-R$libdir'
9500 hardcode_direct=yes
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 hpux9*)
9505 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009506 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 +00009507 else
jimblandy92b1f832009-12-23 22:23:49 +00009508 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 +00009509 fi
9510 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9511 hardcode_libdir_separator=:
9512 hardcode_direct=yes
9513
9514 # hardcode_minus_L: Not really in the search PATH,
9515 # but as the default location of the library.
9516 hardcode_minus_L=yes
9517 export_dynamic_flag_spec='${wl}-E'
9518 ;;
9519
mmentovai8c2a4de2006-09-20 16:20:15 +00009520 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00009521 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9523 else
9524 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9525 fi
9526 if test "$with_gnu_ld" = no; then
9527 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jimblandy92b1f832009-12-23 22:23:49 +00009528 hardcode_libdir_flag_spec_ld='+b $libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009529 hardcode_libdir_separator=:
mmentovai8c2a4de2006-09-20 16:20:15 +00009530 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009531 hardcode_direct_absolute=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009532 export_dynamic_flag_spec='${wl}-E'
mmentovai8c2a4de2006-09-20 16:20:15 +00009533 # hardcode_minus_L: Not really in the search PATH,
9534 # but as the default location of the library.
9535 hardcode_minus_L=yes
9536 fi
9537 ;;
9538
9539 hpux11*)
9540 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9541 case $host_cpu in
9542 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009543 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9544 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009545 ia64*)
jimblandy92b1f832009-12-23 22:23:49 +00009546 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009547 ;;
brynercb91a2f2006-08-25 21:14:45 +00009548 *)
9549 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9550 ;;
9551 esac
9552 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009553 case $host_cpu in
9554 hppa*64*)
9555 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 ;;
9557 ia64*)
9558 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009559 ;;
9560 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009561 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 +00009562 ;;
9563 esac
9564 fi
9565 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9567 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00009568
mmentovai8c2a4de2006-09-20 16:20:15 +00009569 case $host_cpu in
9570 hppa*64*|ia64*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009571 hardcode_direct=no
9572 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00009573 ;;
brynercb91a2f2006-08-25 21:14:45 +00009574 *)
brynercb91a2f2006-08-25 21:14:45 +00009575 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009576 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009577 export_dynamic_flag_spec='${wl}-E'
9578
9579 # hardcode_minus_L: Not really in the search PATH,
9580 # but as the default location of the library.
9581 hardcode_minus_L=yes
9582 ;;
9583 esac
9584 fi
9585 ;;
9586
9587 irix5* | irix6* | nonstopux*)
9588 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009589 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'
9590 # Try to use the -exported_symbol ld option, if it does not
9591 # work, assume that -exports_file does not work either and
9592 # implicitly export all symbols.
9593 save_LDFLAGS="$LDFLAGS"
9594 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h. */
9597int foo(void) {}
9598_ACEOF
9599if ac_fn_c_try_link "$LINENO"; then :
9600 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'
9601
9602fi
9603rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 LDFLAGS="$save_LDFLAGS"
brynercb91a2f2006-08-25 21:14:45 +00009606 else
jimblandy92b1f832009-12-23 22:23:49 +00009607 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'
9608 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 +00009609 fi
jimblandy92b1f832009-12-23 22:23:49 +00009610 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
jimblandy92b1f832009-12-23 22:23:49 +00009613 inherit_rpath=yes
brynercb91a2f2006-08-25 21:14:45 +00009614 link_all_deplibs=yes
9615 ;;
9616
ted.mielczarekb2236272010-04-08 23:06:23 +00009617 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9620 else
9621 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9622 fi
9623 hardcode_libdir_flag_spec='-R$libdir'
9624 hardcode_direct=yes
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 newsos6)
9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_direct=yes
9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632 hardcode_libdir_separator=:
9633 hardcode_shlibpath_var=no
9634 ;;
9635
jimblandy92b1f832009-12-23 22:23:49 +00009636 *nto* | *qnx*)
9637 ;;
9638
brynercb91a2f2006-08-25 21:14:45 +00009639 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009640 if test -f /usr/libexec/ld.so; then
9641 hardcode_direct=yes
9642 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009643 hardcode_direct_absolute=yes
9644 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 +00009645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9648 export_dynamic_flag_spec='${wl}-E'
9649 else
9650 case $host_os in
9651 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_libdir_flag_spec='-R$libdir'
9654 ;;
9655 *)
9656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9658 ;;
9659 esac
jimblandy92b1f832009-12-23 22:23:49 +00009660 fi
brynercb91a2f2006-08-25 21:14:45 +00009661 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00009662 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00009663 fi
9664 ;;
9665
9666 os2*)
9667 hardcode_libdir_flag_spec='-L$libdir'
9668 hardcode_minus_L=yes
9669 allow_undefined_flag=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00009670 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'
9671 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
brynercb91a2f2006-08-25 21:14:45 +00009672 ;;
9673
9674 osf3*)
9675 if test "$GCC" = yes; then
9676 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009677 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 +00009678 else
9679 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009680 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 +00009681 fi
jimblandy92b1f832009-12-23 22:23:49 +00009682 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9684 hardcode_libdir_separator=:
9685 ;;
9686
9687 osf4* | osf5*) # as osf3* with the addition of -msym flag
9688 if test "$GCC" = yes; then
9689 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009690 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 +00009691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9692 else
9693 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009694 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'
9695 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~
9696 $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 +00009697
9698 # Both c and cxx compiler support -rpath directly
9699 hardcode_libdir_flag_spec='-rpath $libdir'
9700 fi
jimblandy92b1f832009-12-23 22:23:49 +00009701 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009702 hardcode_libdir_separator=:
9703 ;;
9704
brynercb91a2f2006-08-25 21:14:45 +00009705 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009706 no_undefined_flag=' -z defs'
brynercb91a2f2006-08-25 21:14:45 +00009707 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009708 wlarc='${wl}'
jimblandy92b1f832009-12-23 22:23:49 +00009709 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9711 $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 +00009712 else
jimblandy92b1f832009-12-23 22:23:49 +00009713 case `$CC -V 2>&1` in
9714 *"Compilers 5.0"*)
9715 wlarc=''
9716 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9719 ;;
9720 *)
9721 wlarc='${wl}'
9722 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9725 ;;
9726 esac
brynercb91a2f2006-08-25 21:14:45 +00009727 fi
9728 hardcode_libdir_flag_spec='-R$libdir'
9729 hardcode_shlibpath_var=no
9730 case $host_os in
9731 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009732 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009733 # The compiler driver will combine and reorder linker options,
9734 # but understands `-z linker_flag'. GCC discards it without `$wl',
9735 # but is careful enough not to reorder.
jimblandy92b1f832009-12-23 22:23:49 +00009736 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009737 if test "$GCC" = yes; then
9738 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9739 else
9740 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9741 fi
9742 ;;
brynercb91a2f2006-08-25 21:14:45 +00009743 esac
9744 link_all_deplibs=yes
9745 ;;
9746
9747 sunos4*)
9748 if test "x$host_vendor" = xsequent; then
9749 # Use $CC to link under sequent, because it throws in some extra .o
9750 # files that make .init and .fini sections work.
9751 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9752 else
9753 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9754 fi
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_direct=yes
9757 hardcode_minus_L=yes
9758 hardcode_shlibpath_var=no
9759 ;;
9760
9761 sysv4)
9762 case $host_vendor in
9763 sni)
9764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_direct=yes # is this really true???
9766 ;;
9767 siemens)
9768 ## LD is ld it makes a PLAMLIB
9769 ## CC just makes a GrossModule.
9770 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9771 reload_cmds='$CC -r -o $output$reload_objs'
9772 hardcode_direct=no
9773 ;;
9774 motorola)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9777 ;;
9778 esac
9779 runpath_var='LD_RUN_PATH'
9780 hardcode_shlibpath_var=no
9781 ;;
9782
9783 sysv4.3*)
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_shlibpath_var=no
9786 export_dynamic_flag_spec='-Bexport'
9787 ;;
9788
9789 sysv4*MP*)
9790 if test -d /usr/nec; then
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_shlibpath_var=no
9793 runpath_var=LD_RUN_PATH
9794 hardcode_runpath_var=yes
9795 ld_shlibs=yes
9796 fi
9797 ;;
9798
ted.mielczarek1adb1842009-12-21 13:12:20 +00009799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009800 no_undefined_flag='${wl}-z,text'
9801 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00009802 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009803 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00009804
mmentovai3261e8b2006-09-06 02:56:44 +00009805 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009806 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009808 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009809 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009811 fi
brynerd5e66382006-09-08 02:35:53 +00009812 ;;
9813
mmentovai8c2a4de2006-09-20 16:20:15 +00009814 sysv5* | sco3.2v5* | sco5v6*)
9815 # Note: We can NOT use -z defs as we might desire, because we do not
9816 # link with -lc, and that would cause any symbols used from libc to
9817 # always be unresolved, which means just about no library would
9818 # ever link correctly. If we're not using GNU ld we use -z text
9819 # though, which does catch some bad symbols but isn't as heavy-handed
9820 # as -z defs.
9821 no_undefined_flag='${wl}-z,text'
9822 allow_undefined_flag='${wl}-z,nodefs'
9823 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00009824 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009825 hardcode_libdir_flag_spec='${wl}-R,$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009826 hardcode_libdir_separator=':'
9827 link_all_deplibs=yes
9828 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00009829 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00009830
9831 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009832 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009834 else
jimblandy92b1f832009-12-23 22:23:49 +00009835 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009837 fi
brynercb91a2f2006-08-25 21:14:45 +00009838 ;;
9839
9840 uts4*)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_libdir_flag_spec='-L$libdir'
9843 hardcode_shlibpath_var=no
9844 ;;
9845
9846 *)
9847 ld_shlibs=no
9848 ;;
9849 esac
jimblandy92b1f832009-12-23 22:23:49 +00009850
9851 if test x$host_vendor = xsni; then
9852 case $host in
9853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9854 export_dynamic_flag_spec='${wl}-Blargedynsym'
9855 ;;
9856 esac
9857 fi
brynercb91a2f2006-08-25 21:14:45 +00009858 fi
9859
jimblandy92b1f832009-12-23 22:23:49 +00009860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9861$as_echo "$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009862test "$ld_shlibs" = no && can_build_shared=no
9863
jimblandy92b1f832009-12-23 22:23:49 +00009864with_gnu_ld=$with_gnu_ld
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
brynercb91a2f2006-08-25 21:14:45 +00009880#
9881# Do we need to explicitly link libc?
9882#
9883case "x$archive_cmds_need_lc" in
9884x|xyes)
9885 # Assume -lc should be added
9886 archive_cmds_need_lc=yes
9887
9888 if test "$enable_shared" = yes && test "$GCC" = yes; then
9889 case $archive_cmds in
9890 *'~'*)
9891 # FIXME: we may have to deal with multi-command sequences.
9892 ;;
9893 '$CC '*)
9894 # Test whether the compiler implicitly links with -lc since on some
9895 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9896 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +00009897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9898$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9899 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00009900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009901
jimblandy92b1f832009-12-23 22:23:49 +00009902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00009903 (eval $ac_compile) 2>&5
9904 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9906 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00009907 soname=conftest
9908 lib=conftest
9909 libobjs=conftest.$ac_objext
9910 deplibs=
9911 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00009912 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00009913 compiler_flags=-v
9914 linker_flags=-v
9915 verstring=
9916 output_objdir=.
9917 libname=conftest
9918 lt_save_allow_undefined_flag=$allow_undefined_flag
9919 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00009920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9921 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009922 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9924 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +00009925 then
9926 archive_cmds_need_lc=no
9927 else
9928 archive_cmds_need_lc=yes
9929 fi
9930 allow_undefined_flag=$lt_save_allow_undefined_flag
9931 else
9932 cat conftest.err 1>&5
9933 fi
jimblandy92b1f832009-12-23 22:23:49 +00009934 $RM conftest*
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9936$as_echo "$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009937 ;;
9938 esac
9939 fi
9940 ;;
9941esac
9942
jimblandy92b1f832009-12-23 22:23:49 +00009943
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
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10100$as_echo_n "checking dynamic linker characteristics... " >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000010101
brynercb91a2f2006-08-25 21:14:45 +000010102if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010103 case $host_os in
10104 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10105 *) lt_awk_arg="/^libraries:/" ;;
10106 esac
10107 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 +000010108 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +000010109 # if the path contains ";" then we assume it to be the separator
10110 # otherwise default to the standard path separator (i.e. ":") - it is
10111 # assumed that no part of a normal pathname contains ";" but that should
10112 # okay in the real world where ";" in dirpaths is itself problematic.
jimblandy92b1f832009-12-23 22:23:49 +000010113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010114 else
jimblandy92b1f832009-12-23 22:23:49 +000010115 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010116 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000010117 # Ok, now we have the path, separated by spaces, we can step through it
10118 # and add multilib dir if necessary.
10119 lt_tmp_lt_search_path_spec=
10120 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10121 for lt_sys_path in $lt_search_path_spec; do
10122 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10123 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10124 else
10125 test -d "$lt_sys_path" && \
10126 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10127 fi
10128 done
jimblandy92b1f832009-12-23 22:23:49 +000010129 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
ted.mielczarek1adb1842009-12-21 13:12:20 +000010130BEGIN {RS=" "; FS="/|\n";} {
10131 lt_foo="";
10132 lt_count=0;
10133 for (lt_i = NF; lt_i > 0; lt_i--) {
10134 if ($lt_i != "" && $lt_i != ".") {
10135 if ($lt_i == "..") {
10136 lt_count++;
10137 } else {
10138 if (lt_count == 0) {
10139 lt_foo="/" $lt_i lt_foo;
10140 } else {
10141 lt_count--;
10142 }
10143 }
10144 }
10145 }
10146 if (lt_foo != "") { lt_freq[lt_foo]++; }
10147 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10148}'`
jimblandy92b1f832009-12-23 22:23:49 +000010149 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +000010150else
10151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10152fi
jimblandy92b1f832009-12-23 22:23:49 +000010153library_names_spec=
10154libname_spec='lib$name'
10155soname_spec=
10156shrext_cmds=".so"
10157postinstall_cmds=
10158postuninstall_cmds=
10159finish_cmds=
10160finish_eval=
10161shlibpath_var=
10162shlibpath_overrides_runpath=unknown
10163version_type=none
10164dynamic_linker="$host_os ld.so"
10165sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010166need_lib_prefix=unknown
10167hardcode_into_libs=no
10168
10169# when you set need_version to no, make sure it does not cause -set_version
10170# flags to be left without arguments
10171need_version=unknown
10172
10173case $host_os in
10174aix3*)
10175 version_type=linux
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10177 shlibpath_var=LIBPATH
10178
10179 # AIX 3 has no versioning support, so we append a major version to the name.
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 ;;
10182
ted.mielczarek1adb1842009-12-21 13:12:20 +000010183aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010184 version_type=linux
10185 need_lib_prefix=no
10186 need_version=no
10187 hardcode_into_libs=yes
10188 if test "$host_cpu" = ia64; then
10189 # AIX 5 supports IA64
10190 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 else
10193 # With GCC up to 2.95.x, collect2 would create an import file
10194 # for dependence libraries. The import file would start with
10195 # the line `#! .'. This would cause the generated library to
10196 # depend on `.', always an invalid library. This was fixed in
10197 # development snapshots of GCC prior to 3.0.
10198 case $host_os in
10199 aix4 | aix4.[01] | aix4.[01].*)
10200 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10201 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000010202 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010203 :
10204 else
10205 can_build_shared=no
10206 fi
10207 ;;
10208 esac
10209 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10210 # soname into executable. Probably we can add versioning support to
10211 # collect2, so additional links can be useful in future.
10212 if test "$aix_use_runtimelinking" = yes; then
10213 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10214 # instead of lib<name>.a to let people know that these are not
10215 # typical AIX shared libraries.
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 else
10218 # We preserve .a as extension for shared libraries through AIX4.2
10219 # and later when we are not doing run time linking.
10220 library_names_spec='${libname}${release}.a $libname.a'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 fi
10223 shlibpath_var=LIBPATH
10224 fi
10225 ;;
10226
10227amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000010228 case $host_cpu in
10229 powerpc)
10230 # Since July 2007 AmigaOS4 officially supports .so libraries.
10231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 ;;
10234 m68k)
10235 library_names_spec='$libname.ixlibrary $libname.a'
10236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10237 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'
10238 ;;
10239 esac
brynercb91a2f2006-08-25 21:14:45 +000010240 ;;
10241
10242beos*)
10243 library_names_spec='${libname}${shared_ext}'
10244 dynamic_linker="$host_os ld.so"
10245 shlibpath_var=LIBRARY_PATH
10246 ;;
10247
mmentovai8c2a4de2006-09-20 16:20:15 +000010248bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000010249 version_type=linux
10250 need_version=no
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10257 # the default ld.so.conf also contains /usr/contrib/lib and
10258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10259 # libtool to hard-code these into programs
10260 ;;
10261
jimblandy92b1f832009-12-23 22:23:49 +000010262cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010263 version_type=windows
10264 shrext_cmds=".dll"
10265 need_version=no
10266 need_lib_prefix=no
10267
10268 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010269 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010270 library_names_spec='$libname.dll.a'
10271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10272 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000010273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000010274 dldir=$destdir/`dirname \$dlpath`~
10275 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000010276 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000010277 chmod a+x \$dldir/$dlname~
10278 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10279 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10280 fi'
brynercb91a2f2006-08-25 21:14:45 +000010281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10282 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000010283 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000010284 shlibpath_overrides_runpath=yes
10285
10286 case $host_os in
10287 cygwin*)
10288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10290 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10291 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010292 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010293 # MinGW DLLs use traditional 'lib' prefix
10294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000010295 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10296 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010297 # It is most probably a Windows format PATH printed by
10298 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10299 # path with ; separators, and with drive letters. We can handle the
10300 # drive letters (cygwin fileutils understands them), so leave them,
10301 # especially as we might pass files found there to a mingw objdump,
10302 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000010303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010304 else
jimblandy92b1f832009-12-23 22:23:49 +000010305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010306 fi
10307 ;;
10308 pw32*)
10309 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010310 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 +000010311 ;;
10312 esac
10313 ;;
10314
10315 *)
10316 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10317 ;;
10318 esac
10319 dynamic_linker='Win32 ld.exe'
10320 # FIXME: first we should search . and the directory the executable is in
10321 shlibpath_var=PATH
10322 ;;
10323
10324darwin* | rhapsody*)
10325 dynamic_linker="$host_os dyld"
10326 version_type=darwin
10327 need_lib_prefix=no
10328 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010329 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000010330 soname_spec='${libname}${release}${major}$shared_ext'
10331 shlibpath_overrides_runpath=yes
10332 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000010333 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000010334
10335 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +000010336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10337 ;;
10338
10339dgux*)
10340 version_type=linux
10341 need_lib_prefix=no
10342 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10346 ;;
10347
10348freebsd1*)
10349 dynamic_linker=no
10350 ;;
10351
mmentovai8c2a4de2006-09-20 16:20:15 +000010352freebsd* | dragonfly*)
10353 # DragonFly does not have aout. When/if they implement a new
10354 # versioning mechanism, adjust this.
10355 if test -x /usr/bin/objformat; then
10356 objformat=`/usr/bin/objformat`
10357 else
10358 case $host_os in
10359 freebsd[123]*) objformat=aout ;;
10360 *) objformat=elf ;;
10361 esac
10362 fi
brynercb91a2f2006-08-25 21:14:45 +000010363 version_type=freebsd-$objformat
10364 case $version_type in
10365 freebsd-elf*)
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10367 need_version=no
10368 need_lib_prefix=no
10369 ;;
10370 freebsd-*)
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10372 need_version=yes
10373 ;;
10374 esac
10375 shlibpath_var=LD_LIBRARY_PATH
10376 case $host_os in
10377 freebsd2*)
10378 shlibpath_overrides_runpath=yes
10379 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010380 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000010381 shlibpath_overrides_runpath=yes
10382 hardcode_into_libs=yes
10383 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000010386 shlibpath_overrides_runpath=no
10387 hardcode_into_libs=yes
10388 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000010389 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000010390 shlibpath_overrides_runpath=yes
10391 hardcode_into_libs=yes
10392 ;;
brynercb91a2f2006-08-25 21:14:45 +000010393 esac
10394 ;;
10395
10396gnu*)
10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 hardcode_into_libs=yes
10404 ;;
10405
10406hpux9* | hpux10* | hpux11*)
10407 # Give a soname corresponding to the major version so that dld.sl refuses to
10408 # link against other versions.
10409 version_type=sunos
10410 need_lib_prefix=no
10411 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010412 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000010413 ia64*)
10414 shrext_cmds='.so'
10415 hardcode_into_libs=yes
10416 dynamic_linker="$host_os dld.so"
10417 shlibpath_var=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 if test "X$HPUX_IA64_MODE" = X32; then
10422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10423 else
10424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10425 fi
10426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10427 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010428 hppa*64*)
10429 shrext_cmds='.sl'
10430 hardcode_into_libs=yes
10431 dynamic_linker="$host_os dld.sl"
10432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10438 ;;
10439 *)
brynercb91a2f2006-08-25 21:14:45 +000010440 shrext_cmds='.sl'
10441 dynamic_linker="$host_os dld.sl"
10442 shlibpath_var=SHLIB_PATH
10443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 ;;
10447 esac
10448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10449 postinstall_cmds='chmod 555 $lib'
10450 ;;
10451
ted.mielczarek1adb1842009-12-21 13:12:20 +000010452interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000010453 version_type=linux
10454 need_lib_prefix=no
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=no
10461 hardcode_into_libs=yes
10462 ;;
10463
brynercb91a2f2006-08-25 21:14:45 +000010464irix5* | irix6* | nonstopux*)
10465 case $host_os in
10466 nonstopux*) version_type=nonstopux ;;
10467 *)
10468 if test "$lt_cv_prog_gnu_ld" = yes; then
10469 version_type=linux
10470 else
10471 version_type=irix
10472 fi ;;
10473 esac
10474 need_lib_prefix=no
10475 need_version=no
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10478 case $host_os in
10479 irix5* | nonstopux*)
10480 libsuff= shlibsuff=
10481 ;;
10482 *)
10483 case $LD in # libtool.m4 will add one of these switches to LD
10484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10485 libsuff= shlibsuff= libmagic=32-bit;;
10486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10487 libsuff=32 shlibsuff=N32 libmagic=N32;;
10488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10490 *) libsuff= shlibsuff= libmagic=never-match;;
10491 esac
10492 ;;
10493 esac
10494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10495 shlibpath_overrides_runpath=no
10496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10498 hardcode_into_libs=yes
10499 ;;
10500
10501# No shared lib support for Linux oldld, aout, or coff.
10502linux*oldld* | linux*aout* | linux*coff*)
10503 dynamic_linker=no
10504 ;;
10505
10506# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000010507linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010508 version_type=linux
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000010516 # Some binutils ld are patched to set DT_RUNPATH
10517 save_LDFLAGS=$LDFLAGS
10518 save_libdir=$libdir
10519 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10520 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h. */
10523
10524int
10525main ()
10526{
10527
10528 ;
10529 return 0;
10530}
10531_ACEOF
10532if ac_fn_c_try_link "$LINENO"; then :
10533 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10534 shlibpath_overrides_runpath=yes
10535fi
10536fi
10537rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LDFLAGS=$save_LDFLAGS
10540 libdir=$save_libdir
10541
brynercb91a2f2006-08-25 21:14:45 +000010542 # This implies no fast_install, which is unacceptable.
10543 # Some rework will be needed to allow for fast_install
10544 # before this can be enabled.
10545 hardcode_into_libs=yes
10546
10547 # Append ld.so.conf contents to the search path
10548 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000010549 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 +000010550 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10551 fi
10552
10553 # We used to test for /lib/ld.so.1 and disable shared libraries on
10554 # powerpc, because MkLinux only supported shared libraries with the
10555 # GNU dynamic linker. Since this was broken with cross compilers,
10556 # most powerpc-linux boxes support dynamic linking these days and
10557 # people can always --disable-shared, the test was removed, and we
10558 # assume the GNU/Linux dynamic linker is in use.
10559 dynamic_linker='GNU/Linux ld.so'
10560 ;;
10561
ted.mielczarekb2236272010-04-08 23:06:23 +000010562netbsdelf*-gnu)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath=no
10570 hardcode_into_libs=yes
10571 dynamic_linker='NetBSD ld.elf_so'
10572 ;;
10573
brynercb91a2f2006-08-25 21:14:45 +000010574netbsd*)
10575 version_type=sunos
10576 need_lib_prefix=no
10577 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010578 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10581 dynamic_linker='NetBSD (a.out) ld.so'
10582 else
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 dynamic_linker='NetBSD ld.elf_so'
10586 fi
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 hardcode_into_libs=yes
10590 ;;
10591
10592newsos6)
10593 version_type=linux
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 shlibpath_overrides_runpath=yes
10597 ;;
10598
jimblandy92b1f832009-12-23 22:23:49 +000010599*nto* | *qnx*)
10600 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000010601 need_lib_prefix=no
10602 need_version=no
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010606 shlibpath_overrides_runpath=no
10607 hardcode_into_libs=yes
10608 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000010609 ;;
10610
10611openbsd*)
10612 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000010613 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010614 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10616 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010617 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10618 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010619 esac
brynercb91a2f2006-08-25 21:14:45 +000010620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10622 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010623 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000010624 case $host_os in
10625 openbsd2.[89] | openbsd2.[89].*)
10626 shlibpath_overrides_runpath=no
10627 ;;
10628 *)
10629 shlibpath_overrides_runpath=yes
10630 ;;
10631 esac
10632 else
10633 shlibpath_overrides_runpath=yes
10634 fi
10635 ;;
10636
10637os2*)
10638 libname_spec='$name'
10639 shrext_cmds=".dll"
10640 need_lib_prefix=no
10641 library_names_spec='$libname${shared_ext} $libname.a'
10642 dynamic_linker='OS/2 ld.exe'
10643 shlibpath_var=LIBPATH
10644 ;;
10645
10646osf3* | osf4* | osf5*)
10647 version_type=osf
10648 need_lib_prefix=no
10649 need_version=no
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10655 ;;
10656
ted.mielczarek1adb1842009-12-21 13:12:20 +000010657rdos*)
10658 dynamic_linker=no
10659 ;;
10660
brynercb91a2f2006-08-25 21:14:45 +000010661solaris*)
10662 version_type=linux
10663 need_lib_prefix=no
10664 need_version=no
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 shlibpath_overrides_runpath=yes
10669 hardcode_into_libs=yes
10670 # ldd complains unless libraries are executable
10671 postinstall_cmds='chmod +x $lib'
10672 ;;
10673
10674sunos4*)
10675 version_type=sunos
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10677 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath=yes
10680 if test "$with_gnu_ld" = yes; then
10681 need_lib_prefix=no
10682 fi
10683 need_version=yes
10684 ;;
10685
mmentovai8c2a4de2006-09-20 16:20:15 +000010686sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000010687 version_type=linux
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 case $host_vendor in
10692 sni)
10693 shlibpath_overrides_runpath=no
10694 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000010695 runpath_var=LD_RUN_PATH
10696 ;;
10697 siemens)
10698 need_lib_prefix=no
10699 ;;
10700 motorola)
10701 need_lib_prefix=no
10702 need_version=no
10703 shlibpath_overrides_runpath=no
10704 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10705 ;;
10706 esac
10707 ;;
10708
10709sysv4*MP*)
10710 if test -d /usr/nec ;then
10711 version_type=linux
10712 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10713 soname_spec='$libname${shared_ext}.$major'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 fi
10716 ;;
10717
mmentovai8c2a4de2006-09-20 16:20:15 +000010718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10719 version_type=freebsd-elf
10720 need_lib_prefix=no
10721 need_version=no
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010725 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010726 hardcode_into_libs=yes
10727 if test "$with_gnu_ld" = yes; then
10728 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010729 else
10730 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010731 case $host_os in
10732 sco3.2v5*)
10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10734 ;;
10735 esac
10736 fi
10737 sys_lib_dlsearch_path_spec='/usr/lib'
10738 ;;
10739
jimblandy92b1f832009-12-23 22:23:49 +000010740tpf*)
10741 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10742 version_type=linux
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=no
10748 hardcode_into_libs=yes
10749 ;;
10750
brynercb91a2f2006-08-25 21:14:45 +000010751uts4*)
10752 version_type=linux
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 ;;
10757
10758*)
10759 dynamic_linker=no
10760 ;;
10761esac
jimblandy92b1f832009-12-23 22:23:49 +000010762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10763$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010764test "$dynamic_linker" = no && can_build_shared=no
10765
mmentovai8c2a4de2006-09-20 16:20:15 +000010766variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10767if test "$GCC" = yes; then
10768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10769fi
10770
jimblandy92b1f832009-12-23 22:23:49 +000010771if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10772 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10773fi
10774if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10775 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10776fi
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10865$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010866hardcode_action=
jimblandy92b1f832009-12-23 22:23:49 +000010867if test -n "$hardcode_libdir_flag_spec" ||
10868 test -n "$runpath_var" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000010869 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000010870
jimblandy92b1f832009-12-23 22:23:49 +000010871 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000010872 if test "$hardcode_direct" != no &&
10873 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10874 # have to relink, otherwise we might link with an installed library
10875 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000010876 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
brynercb91a2f2006-08-25 21:14:45 +000010877 test "$hardcode_minus_L" != no; then
10878 # Linking always hardcodes the temporary library directory.
10879 hardcode_action=relink
10880 else
10881 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10882 hardcode_action=immediate
10883 fi
10884else
10885 # We cannot hardcode anything, or else we can only hardcode existing
10886 # directories.
10887 hardcode_action=unsupported
10888fi
jimblandy92b1f832009-12-23 22:23:49 +000010889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10890$as_echo "$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010891
jimblandy92b1f832009-12-23 22:23:49 +000010892if test "$hardcode_action" = relink ||
10893 test "$inherit_rpath" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000010894 # Fast installation is not supported
10895 enable_fast_install=no
10896elif test "$shlibpath_overrides_runpath" = yes ||
10897 test "$enable_shared" = no; then
10898 # Fast installation is not necessary
10899 enable_fast_install=needless
10900fi
10901
brynercb91a2f2006-08-25 21:14:45 +000010902
jimblandy92b1f832009-12-23 22:23:49 +000010903
10904
10905
10906
10907 if test "x$enable_dlopen" != xyes; then
brynercb91a2f2006-08-25 21:14:45 +000010908 enable_dlopen=unknown
10909 enable_dlopen_self=unknown
10910 enable_dlopen_self_static=unknown
10911else
10912 lt_cv_dlopen=no
10913 lt_cv_dlopen_libs=
10914
10915 case $host_os in
10916 beos*)
10917 lt_cv_dlopen="load_add_on"
10918 lt_cv_dlopen_libs=
10919 lt_cv_dlopen_self=yes
10920 ;;
10921
jimblandy92b1f832009-12-23 22:23:49 +000010922 mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010923 lt_cv_dlopen="LoadLibrary"
10924 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010925 ;;
brynercb91a2f2006-08-25 21:14:45 +000010926
10927 cygwin*)
10928 lt_cv_dlopen="dlopen"
10929 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010930 ;;
brynercb91a2f2006-08-25 21:14:45 +000010931
10932 darwin*)
10933 # if libdl is installed we need to link against it
jimblandy92b1f832009-12-23 22:23:49 +000010934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10935$as_echo_n "checking for dlopen in -ldl... " >&6; }
10936if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010938else
10939 ac_check_lib_save_LIBS=$LIBS
10940LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010942/* end confdefs.h. */
10943
mmentovai8c2a4de2006-09-20 16:20:15 +000010944/* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010947#ifdef __cplusplus
10948extern "C"
10949#endif
brynercb91a2f2006-08-25 21:14:45 +000010950char dlopen ();
10951int
10952main ()
10953{
mmentovai8c2a4de2006-09-20 16:20:15 +000010954return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010955 ;
10956 return 0;
10957}
10958_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010959if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010960 ac_cv_lib_dl_dlopen=yes
10961else
jimblandy92b1f832009-12-23 22:23:49 +000010962 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010963fi
jimblandy92b1f832009-12-23 22:23:49 +000010964rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010966LIBS=$ac_check_lib_save_LIBS
10967fi
jimblandy92b1f832009-12-23 22:23:49 +000010968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10969$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10970if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10972else
10973
10974 lt_cv_dlopen="dyld"
10975 lt_cv_dlopen_libs=
10976 lt_cv_dlopen_self=yes
10977
10978fi
10979
jimblandy92b1f832009-12-23 22:23:49 +000010980 ;;
brynercb91a2f2006-08-25 21:14:45 +000010981
10982 *)
jimblandy92b1f832009-12-23 22:23:49 +000010983 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10984if test "x$ac_cv_func_shl_load" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010985 lt_cv_dlopen="shl_load"
10986else
jimblandy92b1f832009-12-23 22:23:49 +000010987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10988$as_echo_n "checking for shl_load in -ldld... " >&6; }
10989if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010991else
10992 ac_check_lib_save_LIBS=$LIBS
10993LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010995/* end confdefs.h. */
10996
mmentovai8c2a4de2006-09-20 16:20:15 +000010997/* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011000#ifdef __cplusplus
11001extern "C"
11002#endif
brynercb91a2f2006-08-25 21:14:45 +000011003char shl_load ();
11004int
11005main ()
11006{
mmentovai8c2a4de2006-09-20 16:20:15 +000011007return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +000011008 ;
11009 return 0;
11010}
11011_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011012if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011013 ac_cv_lib_dld_shl_load=yes
11014else
jimblandy92b1f832009-12-23 22:23:49 +000011015 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +000011016fi
jimblandy92b1f832009-12-23 22:23:49 +000011017rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011019LIBS=$ac_check_lib_save_LIBS
11020fi
jimblandy92b1f832009-12-23 22:23:49 +000011021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11022$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11023if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011024 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011025else
jimblandy92b1f832009-12-23 22:23:49 +000011026 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11027if test "x$ac_cv_func_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011028 lt_cv_dlopen="dlopen"
11029else
jimblandy92b1f832009-12-23 22:23:49 +000011030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11031$as_echo_n "checking for dlopen in -ldl... " >&6; }
11032if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011034else
11035 ac_check_lib_save_LIBS=$LIBS
11036LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011038/* end confdefs.h. */
11039
mmentovai8c2a4de2006-09-20 16:20:15 +000011040/* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011043#ifdef __cplusplus
11044extern "C"
11045#endif
brynercb91a2f2006-08-25 21:14:45 +000011046char dlopen ();
11047int
11048main ()
11049{
mmentovai8c2a4de2006-09-20 16:20:15 +000011050return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011051 ;
11052 return 0;
11053}
11054_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011055if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011056 ac_cv_lib_dl_dlopen=yes
11057else
jimblandy92b1f832009-12-23 22:23:49 +000011058 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011059fi
jimblandy92b1f832009-12-23 22:23:49 +000011060rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011062LIBS=$ac_check_lib_save_LIBS
11063fi
jimblandy92b1f832009-12-23 22:23:49 +000011064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11065$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11066if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011067 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11068else
jimblandy92b1f832009-12-23 22:23:49 +000011069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11070$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11071if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011073else
11074 ac_check_lib_save_LIBS=$LIBS
11075LIBS="-lsvld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011077/* end confdefs.h. */
11078
mmentovai8c2a4de2006-09-20 16:20:15 +000011079/* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011082#ifdef __cplusplus
11083extern "C"
11084#endif
brynercb91a2f2006-08-25 21:14:45 +000011085char dlopen ();
11086int
11087main ()
11088{
mmentovai8c2a4de2006-09-20 16:20:15 +000011089return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011090 ;
11091 return 0;
11092}
11093_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011094if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011095 ac_cv_lib_svld_dlopen=yes
11096else
jimblandy92b1f832009-12-23 22:23:49 +000011097 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011098fi
jimblandy92b1f832009-12-23 22:23:49 +000011099rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011101LIBS=$ac_check_lib_save_LIBS
11102fi
jimblandy92b1f832009-12-23 22:23:49 +000011103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11104$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11105if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11107else
jimblandy92b1f832009-12-23 22:23:49 +000011108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11109$as_echo_n "checking for dld_link in -ldld... " >&6; }
11110if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011112else
11113 ac_check_lib_save_LIBS=$LIBS
11114LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011116/* end confdefs.h. */
11117
mmentovai8c2a4de2006-09-20 16:20:15 +000011118/* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011121#ifdef __cplusplus
11122extern "C"
11123#endif
brynercb91a2f2006-08-25 21:14:45 +000011124char dld_link ();
11125int
11126main ()
11127{
mmentovai8c2a4de2006-09-20 16:20:15 +000011128return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000011129 ;
11130 return 0;
11131}
11132_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011133if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011134 ac_cv_lib_dld_dld_link=yes
11135else
jimblandy92b1f832009-12-23 22:23:49 +000011136 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000011137fi
jimblandy92b1f832009-12-23 22:23:49 +000011138rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011140LIBS=$ac_check_lib_save_LIBS
11141fi
jimblandy92b1f832009-12-23 22:23:49 +000011142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11143$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11144if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011145 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011146fi
11147
11148
11149fi
11150
11151
11152fi
11153
11154
11155fi
11156
11157
11158fi
11159
11160
11161fi
11162
11163 ;;
11164 esac
11165
11166 if test "x$lt_cv_dlopen" != xno; then
11167 enable_dlopen=yes
11168 else
11169 enable_dlopen=no
11170 fi
11171
11172 case $lt_cv_dlopen in
11173 dlopen)
11174 save_CPPFLAGS="$CPPFLAGS"
11175 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11176
11177 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000011178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000011179
11180 save_LIBS="$LIBS"
11181 LIBS="$lt_cv_dlopen_libs $LIBS"
11182
jimblandy92b1f832009-12-23 22:23:49 +000011183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11184$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11185if test "${lt_cv_dlopen_self+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011187else
11188 if test "$cross_compiling" = yes; then :
11189 lt_cv_dlopen_self=cross
11190else
11191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11192 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011193 cat > conftest.$ac_ext <<_LT_EOF
ted.mielczarekb2236272010-04-08 23:06:23 +000011194#line 11194 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011195#include "confdefs.h"
11196
11197#if HAVE_DLFCN_H
11198#include <dlfcn.h>
11199#endif
11200
11201#include <stdio.h>
11202
11203#ifdef RTLD_GLOBAL
11204# define LT_DLGLOBAL RTLD_GLOBAL
11205#else
11206# ifdef DL_GLOBAL
11207# define LT_DLGLOBAL DL_GLOBAL
11208# else
11209# define LT_DLGLOBAL 0
11210# endif
11211#endif
11212
11213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11214 find out it does not work in some platform. */
11215#ifndef LT_DLLAZY_OR_NOW
11216# ifdef RTLD_LAZY
11217# define LT_DLLAZY_OR_NOW RTLD_LAZY
11218# else
11219# ifdef DL_LAZY
11220# define LT_DLLAZY_OR_NOW DL_LAZY
11221# else
11222# ifdef RTLD_NOW
11223# define LT_DLLAZY_OR_NOW RTLD_NOW
11224# else
11225# ifdef DL_NOW
11226# define LT_DLLAZY_OR_NOW DL_NOW
11227# else
11228# define LT_DLLAZY_OR_NOW 0
11229# endif
11230# endif
11231# endif
11232# endif
11233#endif
11234
brynercb91a2f2006-08-25 21:14:45 +000011235void fnord() { int i=42;}
11236int main ()
11237{
11238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11239 int status = $lt_dlunknown;
11240
11241 if (self)
11242 {
11243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11245 /* dlclose (self); */
11246 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011247 else
11248 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011249
jimblandy92b1f832009-12-23 22:23:49 +000011250 return status;
brynercb91a2f2006-08-25 21:14:45 +000011251}
jimblandy92b1f832009-12-23 22:23:49 +000011252_LT_EOF
11253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011254 (eval $ac_link) 2>&5
11255 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11257 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011258 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011259 lt_status=$?
11260 case x$lt_status in
11261 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11262 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011263 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011264 esac
11265 else :
11266 # compilation failed
11267 lt_cv_dlopen_self=no
11268 fi
11269fi
11270rm -fr conftest*
11271
11272
11273fi
jimblandy92b1f832009-12-23 22:23:49 +000011274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11275$as_echo "$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011276
11277 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011278 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +000011279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11280$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11281if test "${lt_cv_dlopen_self_static+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011283else
11284 if test "$cross_compiling" = yes; then :
11285 lt_cv_dlopen_self_static=cross
11286else
11287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11288 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011289 cat > conftest.$ac_ext <<_LT_EOF
ted.mielczarekb2236272010-04-08 23:06:23 +000011290#line 11290 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011291#include "confdefs.h"
11292
11293#if HAVE_DLFCN_H
11294#include <dlfcn.h>
11295#endif
11296
11297#include <stdio.h>
11298
11299#ifdef RTLD_GLOBAL
11300# define LT_DLGLOBAL RTLD_GLOBAL
11301#else
11302# ifdef DL_GLOBAL
11303# define LT_DLGLOBAL DL_GLOBAL
11304# else
11305# define LT_DLGLOBAL 0
11306# endif
11307#endif
11308
11309/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11310 find out it does not work in some platform. */
11311#ifndef LT_DLLAZY_OR_NOW
11312# ifdef RTLD_LAZY
11313# define LT_DLLAZY_OR_NOW RTLD_LAZY
11314# else
11315# ifdef DL_LAZY
11316# define LT_DLLAZY_OR_NOW DL_LAZY
11317# else
11318# ifdef RTLD_NOW
11319# define LT_DLLAZY_OR_NOW RTLD_NOW
11320# else
11321# ifdef DL_NOW
11322# define LT_DLLAZY_OR_NOW DL_NOW
11323# else
11324# define LT_DLLAZY_OR_NOW 0
11325# endif
11326# endif
11327# endif
11328# endif
11329#endif
11330
brynercb91a2f2006-08-25 21:14:45 +000011331void fnord() { int i=42;}
11332int main ()
11333{
11334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11335 int status = $lt_dlunknown;
11336
11337 if (self)
11338 {
11339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11340 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11341 /* dlclose (self); */
11342 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011343 else
11344 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011345
jimblandy92b1f832009-12-23 22:23:49 +000011346 return status;
brynercb91a2f2006-08-25 21:14:45 +000011347}
jimblandy92b1f832009-12-23 22:23:49 +000011348_LT_EOF
11349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011350 (eval $ac_link) 2>&5
11351 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11353 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011354 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011355 lt_status=$?
11356 case x$lt_status in
11357 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11358 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011359 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011360 esac
11361 else :
11362 # compilation failed
11363 lt_cv_dlopen_self_static=no
11364 fi
11365fi
11366rm -fr conftest*
11367
11368
11369fi
jimblandy92b1f832009-12-23 22:23:49 +000011370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11371$as_echo "$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011372 fi
11373
11374 CPPFLAGS="$save_CPPFLAGS"
11375 LDFLAGS="$save_LDFLAGS"
11376 LIBS="$save_LIBS"
11377 ;;
11378 esac
11379
11380 case $lt_cv_dlopen_self in
11381 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11382 *) enable_dlopen_self=unknown ;;
11383 esac
11384
11385 case $lt_cv_dlopen_self_static in
11386 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11387 *) enable_dlopen_self_static=unknown ;;
11388 esac
11389fi
11390
11391
brynercb91a2f2006-08-25 21:14:45 +000011392
brynercb91a2f2006-08-25 21:14:45 +000011393
brynercb91a2f2006-08-25 21:14:45 +000011394
jimblandy92b1f832009-12-23 22:23:49 +000011395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407striplib=
11408old_striplib=
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11410$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11411if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11412 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11413 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415$as_echo "yes" >&6; }
11416else
11417# FIXME - insert some real tests, host_os isn't really good enough
11418 case $host_os in
11419 darwin*)
11420 if test -n "$STRIP" ; then
11421 striplib="$STRIP -x"
11422 old_striplib="$STRIP -S"
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424$as_echo "yes" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
11428 fi
brynercb91a2f2006-08-25 21:14:45 +000011429 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011430 *)
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011433 ;;
11434 esac
jimblandy92b1f832009-12-23 22:23:49 +000011435fi
brynercb91a2f2006-08-25 21:14:45 +000011436
brynercb91a2f2006-08-25 21:14:45 +000011437
brynercb91a2f2006-08-25 21:14:45 +000011438
brynercb91a2f2006-08-25 21:14:45 +000011439
brynercb91a2f2006-08-25 21:14:45 +000011440
brynercb91a2f2006-08-25 21:14:45 +000011441
brynercb91a2f2006-08-25 21:14:45 +000011442
brynercb91a2f2006-08-25 21:14:45 +000011443
brynercb91a2f2006-08-25 21:14:45 +000011444
brynercb91a2f2006-08-25 21:14:45 +000011445
brynercb91a2f2006-08-25 21:14:45 +000011446
brynercb91a2f2006-08-25 21:14:45 +000011447
jimblandy92b1f832009-12-23 22:23:49 +000011448 # Report which library types will actually be built
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11450$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11452$as_echo "$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011453
jimblandy92b1f832009-12-23 22:23:49 +000011454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11455$as_echo_n "checking whether to build shared libraries... " >&6; }
11456 test "$can_build_shared" = "no" && enable_shared=no
brynercb91a2f2006-08-25 21:14:45 +000011457
jimblandy92b1f832009-12-23 22:23:49 +000011458 # On AIX, shared libraries and static libraries use the same namespace, and
11459 # are all built from PIC.
brynercb91a2f2006-08-25 21:14:45 +000011460 case $host_os in
11461 aix3*)
jimblandy92b1f832009-12-23 22:23:49 +000011462 test "$enable_shared" = yes && enable_static=no
11463 if test -n "$RANLIB"; then
11464 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11465 postinstall_cmds='$RANLIB $lib'
11466 fi
11467 ;;
brynercb91a2f2006-08-25 21:14:45 +000011468
jimblandy92b1f832009-12-23 22:23:49 +000011469 aix[4-9]*)
11470 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11471 test "$enable_shared" = yes && enable_static=no
11472 fi
brynercb91a2f2006-08-25 21:14:45 +000011473 ;;
11474 esac
jimblandy92b1f832009-12-23 22:23:49 +000011475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11476$as_echo "$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011477
jimblandy92b1f832009-12-23 22:23:49 +000011478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11479$as_echo_n "checking whether to build static libraries... " >&6; }
11480 # Make sure either enable_shared or enable_static is yes.
11481 test "$enable_shared" = yes || enable_static=yes
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11483$as_echo "$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011484
brynercb91a2f2006-08-25 21:14:45 +000011485
jimblandy92b1f832009-12-23 22:23:49 +000011486
11487
brynercb91a2f2006-08-25 21:14:45 +000011488fi
brynercb91a2f2006-08-25 21:14:45 +000011489ac_ext=c
11490ac_cpp='$CPP $CPPFLAGS'
11491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11493ac_compiler_gnu=$ac_cv_c_compiler_gnu
11494
11495CC="$lt_save_CC"
11496
11497
jimblandy92b1f832009-12-23 22:23:49 +000011498ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011499ac_cpp='$CXXCPP $CPPFLAGS'
11500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11503
brynercb91a2f2006-08-25 21:14:45 +000011504archive_cmds_need_lc_CXX=no
11505allow_undefined_flag_CXX=
11506always_export_symbols_CXX=no
11507archive_expsym_cmds_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000011508compiler_needs_object_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011509export_dynamic_flag_spec_CXX=
11510hardcode_direct_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011511hardcode_direct_absolute_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011512hardcode_libdir_flag_spec_CXX=
11513hardcode_libdir_flag_spec_ld_CXX=
11514hardcode_libdir_separator_CXX=
11515hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011516hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011517hardcode_automatic_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011518inherit_rpath_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011519module_cmds_CXX=
11520module_expsym_cmds_CXX=
11521link_all_deplibs_CXX=unknown
11522old_archive_cmds_CXX=$old_archive_cmds
11523no_undefined_flag_CXX=
11524whole_archive_flag_spec_CXX=
11525enable_shared_with_static_runtimes_CXX=no
11526
brynercb91a2f2006-08-25 21:14:45 +000011527# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011528ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011529
11530# Object file extension for compiled C++ test sources.
11531objext=o
11532objext_CXX=$objext
11533
jimblandy92b1f832009-12-23 22:23:49 +000011534# No sense in running all these tests if we already determined that
11535# the CXX compiler isn't working. Some variables (like enable_shared)
11536# are currently assumed to apply to all compilers on this platform,
11537# and will be corrupted by setting them based on a non-working compiler.
11538if test "$_lt_caught_CXX_error" != yes; then
11539 # Code to be used in simple compile tests
11540 lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011541
jimblandy92b1f832009-12-23 22:23:49 +000011542 # Code to be used in simple link tests
11543 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011544
jimblandy92b1f832009-12-23 22:23:49 +000011545 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11546
11547
11548
11549
11550
brynercb91a2f2006-08-25 21:14:45 +000011551
11552# If no C compiler was specified, use CC.
11553LTCC=${LTCC-"$CC"}
11554
mmentovai8c2a4de2006-09-20 16:20:15 +000011555# If no C compiler flags were specified, use CFLAGS.
11556LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11557
brynercb91a2f2006-08-25 21:14:45 +000011558# Allow CC to be a program name with arguments.
11559compiler=$CC
11560
11561
jimblandy92b1f832009-12-23 22:23:49 +000011562 # save warnings/boilerplate of simple test code
11563 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011564echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011565eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11566_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011567$RM conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011568
jimblandy92b1f832009-12-23 22:23:49 +000011569 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011570echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011571eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11572_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011573$RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011574
11575
jimblandy92b1f832009-12-23 22:23:49 +000011576 # Allow CC to be a program name with arguments.
11577 lt_save_CC=$CC
11578 lt_save_LD=$LD
11579 lt_save_GCC=$GCC
11580 GCC=$GXX
11581 lt_save_with_gnu_ld=$with_gnu_ld
11582 lt_save_path_LD=$lt_cv_path_LD
11583 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11584 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11585 else
11586 $as_unset lt_cv_prog_gnu_ld
11587 fi
11588 if test -n "${lt_cv_path_LDCXX+set}"; then
11589 lt_cv_path_LD=$lt_cv_path_LDCXX
11590 else
11591 $as_unset lt_cv_path_LD
11592 fi
11593 test -z "${LDCXX+set}" || LD=$LDCXX
11594 CC=${CXX-"c++"}
11595 compiler=$CC
11596 compiler_CXX=$CC
11597 for cc_temp in $compiler""; do
mmentovai8c2a4de2006-09-20 16:20:15 +000011598 case $cc_temp in
11599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11601 \-*) ;;
11602 *) break;;
11603 esac
11604done
jimblandy92b1f832009-12-23 22:23:49 +000011605cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +000011606
brynercb91a2f2006-08-25 21:14:45 +000011607
jimblandy92b1f832009-12-23 22:23:49 +000011608 if test -n "$compiler"; then
11609 # We don't want -fno-exception when compiling C++ code, so set the
11610 # no_builtin_flag separately
11611 if test "$GXX" = yes; then
11612 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11613 else
11614 lt_prog_compiler_no_builtin_flag_CXX=
11615 fi
brynercb91a2f2006-08-25 21:14:45 +000011616
jimblandy92b1f832009-12-23 22:23:49 +000011617 if test "$GXX" = yes; then
11618 # Set up default GNU C++ configuration
11619
brynercb91a2f2006-08-25 21:14:45 +000011620
11621
mmentovai8c2a4de2006-09-20 16:20:15 +000011622# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +000011623if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +000011624 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011625else
11626 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011627fi
11628
brynercb91a2f2006-08-25 21:14:45 +000011629ac_prog=ld
11630if test "$GCC" = yes; then
11631 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +000011632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11633$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011634 case $host in
11635 *-*-mingw*)
11636 # gcc leaves a trailing carriage return which upsets mingw
11637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11638 *)
11639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11640 esac
11641 case $ac_prog in
11642 # Accept absolute paths.
11643 [\\/]* | ?:[\\/]*)
11644 re_direlt='/[^/][^/]*/\.\./'
11645 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +000011646 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11647 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11648 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +000011649 done
11650 test -z "$LD" && LD="$ac_prog"
11651 ;;
11652 "")
11653 # If it fails, then pretend we aren't using GCC.
11654 ac_prog=ld
11655 ;;
11656 *)
11657 # If it is relative, then search for the first ld in PATH.
11658 with_gnu_ld=unknown
11659 ;;
11660 esac
11661elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +000011662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11663$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011664else
jimblandy92b1f832009-12-23 22:23:49 +000011665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11666$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011667fi
jimblandy92b1f832009-12-23 22:23:49 +000011668if test "${lt_cv_path_LD+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011670else
11671 if test -z "$LD"; then
11672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11673 for ac_dir in $PATH; do
11674 IFS="$lt_save_ifs"
11675 test -z "$ac_dir" && ac_dir=.
11676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11677 lt_cv_path_LD="$ac_dir/$ac_prog"
11678 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011679 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011680 # Break only if it was the GNU/non-GNU ld that we prefer.
11681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11682 *GNU* | *'with BFD'*)
11683 test "$with_gnu_ld" != no && break
11684 ;;
11685 *)
11686 test "$with_gnu_ld" != yes && break
11687 ;;
11688 esac
11689 fi
11690 done
11691 IFS="$lt_save_ifs"
11692else
11693 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11694fi
11695fi
11696
11697LD="$lt_cv_path_LD"
11698if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +000011699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11700$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011701else
jimblandy92b1f832009-12-23 22:23:49 +000011702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011704fi
jimblandy92b1f832009-12-23 22:23:49 +000011705test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11707$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11708if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011710else
mmentovai8c2a4de2006-09-20 16:20:15 +000011711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011712case `$LD -v 2>&1 </dev/null` in
11713*GNU* | *'with BFD'*)
11714 lt_cv_prog_gnu_ld=yes
11715 ;;
11716*)
11717 lt_cv_prog_gnu_ld=no
11718 ;;
11719esac
11720fi
jimblandy92b1f832009-12-23 22:23:49 +000011721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11722$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011723with_gnu_ld=$lt_cv_prog_gnu_ld
11724
11725
11726
brynercb91a2f2006-08-25 21:14:45 +000011727
brynercb91a2f2006-08-25 21:14:45 +000011728
brynercb91a2f2006-08-25 21:14:45 +000011729
brynercb91a2f2006-08-25 21:14:45 +000011730
jimblandy92b1f832009-12-23 22:23:49 +000011731 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11732 # archiving commands below assume that GNU ld is being used.
11733 if test "$with_gnu_ld" = yes; then
11734 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11735 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 +000011736
jimblandy92b1f832009-12-23 22:23:49 +000011737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
brynercb91a2f2006-08-25 21:14:45 +000011739
jimblandy92b1f832009-12-23 22:23:49 +000011740 # If archive_cmds runs LD, not CC, wlarc should be empty
11741 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11742 # investigate it a little bit more. (MM)
11743 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000011744
jimblandy92b1f832009-12-23 22:23:49 +000011745 # ancient GNU ld didn't support --whole-archive et. al.
11746 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11747 $GREP 'no-whole-archive' > /dev/null; then
11748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11749 else
11750 whole_archive_flag_spec_CXX=
11751 fi
brynercb91a2f2006-08-25 21:14:45 +000011752 else
jimblandy92b1f832009-12-23 22:23:49 +000011753 with_gnu_ld=no
11754 wlarc=
11755
11756 # A generic and very simple default shared library creation
11757 # command for GNU C++ for the case where it uses the native
11758 # linker, instead of GNU ld. If possible, this setting should
11759 # overridden to take advantage of the native linker features on
11760 # the platform it is being used on.
11761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011762 fi
brynercb91a2f2006-08-25 21:14:45 +000011763
brynercb91a2f2006-08-25 21:14:45 +000011764 # Commands to make compiler produce verbose output that lists
11765 # what "hidden" libraries, object files and flags are used when
11766 # linking a shared library.
jimblandy92b1f832009-12-23 22:23:49 +000011767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11768
11769 else
11770 GXX=no
11771 with_gnu_ld=no
11772 wlarc=
11773 fi
11774
11775 # PORTME: fill in a description of your system's C++ link characteristics
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11777$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11778 ld_shlibs_CXX=yes
11779 case $host_os in
11780 aix3*)
brynercb91a2f2006-08-25 21:14:45 +000011781 # FIXME: insert proper C++ library support
11782 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011783 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011784 aix[4-9]*)
11785 if test "$host_cpu" = ia64; then
11786 # On IA64, the linker does run time linking by default, so we don't
11787 # have to do anything special.
11788 aix_use_runtimelinking=no
11789 exp_sym_flag='-Bexport'
11790 no_entry_flag=""
11791 else
11792 aix_use_runtimelinking=no
brynercb91a2f2006-08-25 21:14:45 +000011793
jimblandy92b1f832009-12-23 22:23:49 +000011794 # Test if we are trying to use run time linking or normal
11795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11796 # need to do runtime linking.
11797 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11798 for ld_flag in $LDFLAGS; do
11799 case $ld_flag in
11800 *-brtl*)
11801 aix_use_runtimelinking=yes
11802 break
11803 ;;
11804 esac
11805 done
11806 ;;
11807 esac
11808
11809 exp_sym_flag='-bexport'
11810 no_entry_flag='-bnoentry'
11811 fi
11812
11813 # When large executables or shared objects are built, AIX ld can
11814 # have problems creating the table of contents. If linking a library
11815 # or program results in "error TOC overflow" add -mminimal-toc to
11816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11818
11819 archive_cmds_CXX=''
11820 hardcode_direct_CXX=yes
11821 hardcode_direct_absolute_CXX=yes
11822 hardcode_libdir_separator_CXX=':'
11823 link_all_deplibs_CXX=yes
11824 file_list_spec_CXX='${wl}-f,'
11825
11826 if test "$GXX" = yes; then
11827 case $host_os in aix4.[012]|aix4.[012].*)
11828 # We only want to do this on AIX 4.2 and lower, the check
11829 # below for broken collect2 doesn't work under 4.3+
11830 collect2name=`${CC} -print-prog-name=collect2`
11831 if test -f "$collect2name" &&
11832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11833 then
11834 # We have reworked collect2
11835 :
11836 else
11837 # We have old collect2
11838 hardcode_direct_CXX=unsupported
11839 # It fails to find uninstalled libraries when the uninstalled
11840 # path is not listed in the libpath. Setting hardcode_minus_L
11841 # to unsupported forces relinking
11842 hardcode_minus_L_CXX=yes
11843 hardcode_libdir_flag_spec_CXX='-L$libdir'
11844 hardcode_libdir_separator_CXX=
11845 fi
11846 esac
11847 shared_flag='-shared'
11848 if test "$aix_use_runtimelinking" = yes; then
11849 shared_flag="$shared_flag "'${wl}-G'
11850 fi
11851 else
11852 # not using gcc
11853 if test "$host_cpu" = ia64; then
11854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11855 # chokes on -Wl,-G. The following line is correct:
11856 shared_flag='-G'
11857 else
11858 if test "$aix_use_runtimelinking" = yes; then
11859 shared_flag='${wl}-G'
11860 else
11861 shared_flag='${wl}-bM:SRE'
11862 fi
11863 fi
11864 fi
11865
11866 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11867 # It seems that -bexpall does not export symbols beginning with
11868 # underscore (_), so it is better to generate a list of symbols to
11869 # export.
11870 always_export_symbols_CXX=yes
11871 if test "$aix_use_runtimelinking" = yes; then
11872 # Warning - without using the other runtime loading flags (-brtl),
11873 # -berok will link without error, but may produce a broken library.
11874 allow_undefined_flag_CXX='-berok'
11875 # Determine the default libpath from the value encoded in an empty
11876 # executable.
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h. */
11879
11880int
11881main ()
11882{
11883
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888if ac_fn_cxx_try_link "$LINENO"; then :
11889
11890lt_aix_libpath_sed='
11891 /Import File Strings/,/^$/ {
11892 /^0/ {
11893 s/^0 *\(.*\)$/\1/
11894 p
11895 }
11896 }'
11897aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11898# Check for a 64-bit object if we didn't find anything.
11899if test -z "$aix_libpath"; then
11900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11901fi
11902fi
11903rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11906
11907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11908
11909 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"
11910 else
11911 if test "$host_cpu" = ia64; then
11912 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11913 allow_undefined_flag_CXX="-z nodefs"
11914 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"
11915 else
11916 # Determine the default libpath from the value encoded in an
11917 # empty executable.
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919/* end confdefs.h. */
11920
11921int
11922main ()
11923{
11924
11925 ;
11926 return 0;
11927}
11928_ACEOF
11929if ac_fn_cxx_try_link "$LINENO"; then :
11930
11931lt_aix_libpath_sed='
11932 /Import File Strings/,/^$/ {
11933 /^0/ {
11934 s/^0 *\(.*\)$/\1/
11935 p
11936 }
11937 }'
11938aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11939# Check for a 64-bit object if we didn't find anything.
11940if test -z "$aix_libpath"; then
11941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11942fi
11943fi
11944rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11947
11948 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11949 # Warning - without using the other run time loading flags,
11950 # -berok will link without error, but may produce a broken library.
11951 no_undefined_flag_CXX=' ${wl}-bernotok'
11952 allow_undefined_flag_CXX=' ${wl}-berok'
11953 # Exported symbols can be pulled into shared objects from archives
11954 whole_archive_flag_spec_CXX='$convenience'
11955 archive_cmds_need_lc_CXX=yes
11956 # This is similar to how AIX traditionally builds its shared
11957 # libraries.
11958 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'
11959 fi
11960 fi
11961 ;;
11962
11963 beos*)
11964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11965 allow_undefined_flag_CXX=unsupported
11966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11967 # support --undefined. This deserves some investigation. FIXME
11968 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11969 else
11970 ld_shlibs_CXX=no
11971 fi
brynercb91a2f2006-08-25 21:14:45 +000011972 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011973
11974 chorus*)
11975 case $cc_basename in
11976 *)
11977 # FIXME: insert proper C++ library support
11978 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011979 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011980 esac
11981 ;;
11982
11983 cygwin* | mingw* | pw32* | cegcc*)
11984 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11985 # as there is no search path for DLLs.
11986 hardcode_libdir_flag_spec_CXX='-L$libdir'
11987 allow_undefined_flag_CXX=unsupported
11988 always_export_symbols_CXX=no
11989 enable_shared_with_static_runtimes_CXX=yes
11990
11991 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11992 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'
11993 # If the export-symbols file already is a .def file (1st line
11994 # is EXPORTS), use it as is; otherwise, prepend...
11995 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11996 cp $export_symbols $output_objdir/$soname.def;
11997 else
11998 echo EXPORTS > $output_objdir/$soname.def;
11999 cat $export_symbols >> $output_objdir/$soname.def;
12000 fi~
12001 $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'
12002 else
12003 ld_shlibs_CXX=no
12004 fi
12005 ;;
12006 darwin* | rhapsody*)
12007
12008
12009 archive_cmds_need_lc_CXX=no
12010 hardcode_direct_CXX=no
12011 hardcode_automatic_CXX=yes
12012 hardcode_shlibpath_var_CXX=unsupported
12013 whole_archive_flag_spec_CXX=''
12014 link_all_deplibs_CXX=yes
12015 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12016 case $cc_basename in
12017 ifort*) _lt_dar_can_shared=yes ;;
12018 *) _lt_dar_can_shared=$GCC ;;
12019 esac
12020 if test "$_lt_dar_can_shared" = "yes"; then
12021 output_verbose_link_cmd=echo
12022 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}"
12023 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12024 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}"
12025 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}"
12026 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12027 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}"
12028 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}"
12029 fi
12030
12031 else
12032 ld_shlibs_CXX=no
12033 fi
12034
brynercb91a2f2006-08-25 21:14:45 +000012035 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012036
12037 dgux*)
12038 case $cc_basename in
12039 ec++*)
12040 # FIXME: insert proper C++ library support
12041 ld_shlibs_CXX=no
12042 ;;
12043 ghcx*)
12044 # Green Hills C++ Compiler
12045 # FIXME: insert proper C++ library support
12046 ld_shlibs_CXX=no
12047 ;;
12048 *)
12049 # FIXME: insert proper C++ library support
12050 ld_shlibs_CXX=no
12051 ;;
12052 esac
12053 ;;
12054
12055 freebsd[12]*)
12056 # C++ shared libraries reported to be fairly broken before
12057 # switch to ELF
12058 ld_shlibs_CXX=no
12059 ;;
12060
12061 freebsd-elf*)
12062 archive_cmds_need_lc_CXX=no
12063 ;;
12064
12065 freebsd* | dragonfly*)
12066 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12067 # conventions
12068 ld_shlibs_CXX=yes
12069 ;;
12070
12071 gnu*)
12072 ;;
12073
12074 hpux9*)
12075 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12076 hardcode_libdir_separator_CXX=:
12077 export_dynamic_flag_spec_CXX='${wl}-E'
12078 hardcode_direct_CXX=yes
12079 hardcode_minus_L_CXX=yes # Not in the search PATH,
12080 # but as the default
12081 # location of the library.
12082
12083 case $cc_basename in
12084 CC*)
12085 # FIXME: insert proper C++ library support
12086 ld_shlibs_CXX=no
12087 ;;
12088 aCC*)
12089 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'
12090 # Commands to make compiler produce verbose output that lists
12091 # what "hidden" libraries, object files and flags are used when
12092 # linking a shared library.
12093 #
12094 # There doesn't appear to be a way to prevent this compiler from
12095 # explicitly linking system object files so we need to strip them
12096 # from the output so that they don't get included in the library
12097 # dependencies.
12098 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'
12099 ;;
12100 *)
12101 if test "$GXX" = yes; then
12102 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'
12103 else
12104 # FIXME: insert proper C++ library support
12105 ld_shlibs_CXX=no
12106 fi
12107 ;;
12108 esac
12109 ;;
12110
12111 hpux10*|hpux11*)
12112 if test $with_gnu_ld = no; then
12113 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12114 hardcode_libdir_separator_CXX=:
12115
12116 case $host_cpu in
12117 hppa*64*|ia64*)
12118 ;;
12119 *)
12120 export_dynamic_flag_spec_CXX='${wl}-E'
12121 ;;
12122 esac
12123 fi
12124 case $host_cpu in
12125 hppa*64*|ia64*)
12126 hardcode_direct_CXX=no
12127 hardcode_shlibpath_var_CXX=no
12128 ;;
12129 *)
12130 hardcode_direct_CXX=yes
12131 hardcode_direct_absolute_CXX=yes
12132 hardcode_minus_L_CXX=yes # Not in the search PATH,
12133 # but as the default
12134 # location of the library.
12135 ;;
12136 esac
12137
12138 case $cc_basename in
12139 CC*)
12140 # FIXME: insert proper C++ library support
12141 ld_shlibs_CXX=no
12142 ;;
12143 aCC*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012144 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012145 hppa*64*)
12146 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12147 ;;
12148 ia64*)
12149 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12150 ;;
12151 *)
12152 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12153 ;;
12154 esac
12155 # Commands to make compiler produce verbose output that lists
12156 # what "hidden" libraries, object files and flags are used when
12157 # linking a shared library.
12158 #
12159 # There doesn't appear to be a way to prevent this compiler from
12160 # explicitly linking system object files so we need to strip them
12161 # from the output so that they don't get included in the library
12162 # dependencies.
12163 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'
12164 ;;
12165 *)
12166 if test "$GXX" = yes; then
12167 if test $with_gnu_ld = no; then
12168 case $host_cpu in
12169 hppa*64*)
12170 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12171 ;;
12172 ia64*)
12173 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12174 ;;
12175 *)
12176 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'
12177 ;;
12178 esac
12179 fi
12180 else
12181 # FIXME: insert proper C++ library support
12182 ld_shlibs_CXX=no
12183 fi
12184 ;;
12185 esac
12186 ;;
12187
12188 interix[3-9]*)
12189 hardcode_direct_CXX=no
12190 hardcode_shlibpath_var_CXX=no
12191 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12192 export_dynamic_flag_spec_CXX='${wl}-E'
12193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12194 # Instead, shared libraries are loaded at an image base (0x10000000 by
12195 # default) and relocated if they conflict, which is a slow very memory
12196 # consuming and fragmenting process. To avoid this, we pick a random,
12197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12198 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12199 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'
12200 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'
12201 ;;
12202 irix5* | irix6*)
12203 case $cc_basename in
12204 CC*)
12205 # SGI C++
12206 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'
12207
12208 # Archives containing C++ object files must be created using
12209 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12210 # necessary to make sure instantiated templates are included
12211 # in the archive.
12212 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12213 ;;
12214 *)
12215 if test "$GXX" = yes; then
12216 if test "$with_gnu_ld" = no; then
12217 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'
12218 else
12219 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'
12220 fi
12221 fi
12222 link_all_deplibs_CXX=yes
12223 ;;
12224 esac
12225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12226 hardcode_libdir_separator_CXX=:
12227 inherit_rpath_CXX=yes
12228 ;;
12229
ted.mielczarekb2236272010-04-08 23:06:23 +000012230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +000012231 case $cc_basename in
12232 KCC*)
12233 # Kuck and Associates, Inc. (KAI) C++ Compiler
12234
12235 # KCC will only create a shared library if the output file
12236 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12237 # to its proper name (with version) after linking.
12238 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'
12239 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'
12240 # Commands to make compiler produce verbose output that lists
12241 # what "hidden" libraries, object files and flags are used when
12242 # linking a shared library.
12243 #
12244 # There doesn't appear to be a way to prevent this compiler from
12245 # explicitly linking system object files so we need to strip them
12246 # from the output so that they don't get included in the library
12247 # dependencies.
12248 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'
12249
12250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12251 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12252
12253 # Archives containing C++ object files must be created using
12254 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12255 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12256 ;;
12257 icpc* | ecpc* )
12258 # Intel C++
12259 with_gnu_ld=yes
12260 # version 8.0 and above of icpc choke on multiply defined symbols
12261 # if we add $predep_objects and $postdep_objects, however 7.1 and
12262 # earlier do not add the objects themselves.
12263 case `$CC -V 2>&1` in
12264 *"Version 7."*)
12265 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 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'
12267 ;;
12268 *) # Version 8.0 or newer
12269 tmp_idyn=
12270 case $host_cpu in
12271 ia64*) tmp_idyn=' -i_dynamic';;
12272 esac
12273 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274 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'
12275 ;;
12276 esac
12277 archive_cmds_need_lc_CXX=no
12278 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12279 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12280 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12281 ;;
12282 pgCC* | pgcpp*)
12283 # Portland Group C++ compiler
12284 case `$CC -V` in
12285 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12286 prelink_cmds_CXX='tpldir=Template.dir~
12287 rm -rf $tpldir~
12288 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12289 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12290 old_archive_cmds_CXX='tpldir=Template.dir~
12291 rm -rf $tpldir~
12292 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12293 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12294 $RANLIB $oldlib'
12295 archive_cmds_CXX='tpldir=Template.dir~
12296 rm -rf $tpldir~
12297 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12298 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12299 archive_expsym_cmds_CXX='tpldir=Template.dir~
12300 rm -rf $tpldir~
12301 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12302 $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 +000012303 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012304 *) # Version 6 will use weak symbols
12305 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12306 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 +000012307 ;;
12308 esac
brynercb91a2f2006-08-25 21:14:45 +000012309
jimblandy92b1f832009-12-23 22:23:49 +000012310 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12312 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'
12313 ;;
12314 cxx*)
12315 # Compaq C++
12316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317 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 +000012318
jimblandy92b1f832009-12-23 22:23:49 +000012319 runpath_var=LD_RUN_PATH
12320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12321 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +000012322
jimblandy92b1f832009-12-23 22:23:49 +000012323 # Commands to make compiler produce verbose output that lists
12324 # what "hidden" libraries, object files and flags are used when
12325 # linking a shared library.
12326 #
12327 # There doesn't appear to be a way to prevent this compiler from
12328 # explicitly linking system object files so we need to strip them
12329 # from the output so that they don't get included in the library
12330 # dependencies.
12331 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'
12332 ;;
12333 xl*)
12334 # IBM XL 8.0 on PPC, with GNU ld
12335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12337 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12338 if test "x$supports_anon_versioning" = xyes; then
12339 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12341 echo "local: *; };" >> $output_objdir/$libname.ver~
12342 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12343 fi
12344 ;;
12345 *)
12346 case `$CC -V 2>&1 | sed 5q` in
12347 *Sun\ C*)
12348 # Sun C++ 5.9
12349 no_undefined_flag_CXX=' -zdefs'
12350 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12351 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'
12352 hardcode_libdir_flag_spec_CXX='-R$libdir'
12353 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'
12354 compiler_needs_object_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012355
jimblandy92b1f832009-12-23 22:23:49 +000012356 # Not sure whether something based on
12357 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12358 # would be better.
12359 output_verbose_link_cmd='echo'
12360
12361 # Archives containing C++ object files must be created using
12362 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12363 # necessary to make sure instantiated templates are included
12364 # in the archive.
12365 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12366 ;;
12367 esac
12368 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012369 esac
brynercb91a2f2006-08-25 21:14:45 +000012370 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012371
jimblandy92b1f832009-12-23 22:23:49 +000012372 lynxos*)
12373 # FIXME: insert proper C++ library support
12374 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012375 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012376
12377 m88k*)
12378 # FIXME: insert proper C++ library support
12379 ld_shlibs_CXX=no
12380 ;;
12381
12382 mvs*)
12383 case $cc_basename in
12384 cxx*)
12385 # FIXME: insert proper C++ library support
12386 ld_shlibs_CXX=no
12387 ;;
12388 *)
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12391 ;;
12392 esac
12393 ;;
12394
12395 netbsd*)
12396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12397 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12398 wlarc=
ted.mielczarek1adb1842009-12-21 13:12:20 +000012399 hardcode_libdir_flag_spec_CXX='-R$libdir'
jimblandy92b1f832009-12-23 22:23:49 +000012400 hardcode_direct_CXX=yes
12401 hardcode_shlibpath_var_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012402 fi
jimblandy92b1f832009-12-23 22:23:49 +000012403 # Workaround some broken pre-1.5 toolchains
12404 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 +000012405 ;;
brynercb91a2f2006-08-25 21:14:45 +000012406
jimblandy92b1f832009-12-23 22:23:49 +000012407 *nto* | *qnx*)
12408 ld_shlibs_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012409 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012410
12411 openbsd2*)
12412 # C++ shared libraries are fairly broken
brynercb91a2f2006-08-25 21:14:45 +000012413 ld_shlibs_CXX=no
12414 ;;
brynercb91a2f2006-08-25 21:14:45 +000012415
jimblandy92b1f832009-12-23 22:23:49 +000012416 openbsd*)
12417 if test -f /usr/libexec/ld.so; then
12418 hardcode_direct_CXX=yes
12419 hardcode_shlibpath_var_CXX=no
12420 hardcode_direct_absolute_CXX=yes
12421 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12422 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12423 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12424 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12425 export_dynamic_flag_spec_CXX='${wl}-E'
12426 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
brynercb91a2f2006-08-25 21:14:45 +000012427 fi
jimblandy92b1f832009-12-23 22:23:49 +000012428 output_verbose_link_cmd=echo
12429 else
12430 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012431 fi
12432 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012433
jimblandy92b1f832009-12-23 22:23:49 +000012434 osf3* | osf4* | osf5*)
12435 case $cc_basename in
12436 KCC*)
12437 # Kuck and Associates, Inc. (KAI) C++ Compiler
12438
12439 # KCC will only create a shared library if the output file
12440 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12441 # to its proper name (with version) after linking.
12442 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'
12443
12444 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12445 hardcode_libdir_separator_CXX=:
12446
12447 # Archives containing C++ object files must be created using
12448 # the KAI C++ compiler.
12449 case $host in
12450 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12451 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12452 esac
12453 ;;
12454 RCC*)
12455 # Rational C++ 2.4.1
12456 # FIXME: insert proper C++ library support
12457 ld_shlibs_CXX=no
12458 ;;
12459 cxx*)
12460 case $host in
12461 osf3*)
12462 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12463 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'
12464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12465 ;;
12466 *)
12467 allow_undefined_flag_CXX=' -expect_unresolved \*'
12468 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'
12469 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12470 echo "-hidden">> $lib.exp~
12471 $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~
12472 $RM $lib.exp'
12473 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12474 ;;
12475 esac
12476
12477 hardcode_libdir_separator_CXX=:
12478
12479 # Commands to make compiler produce verbose output that lists
12480 # what "hidden" libraries, object files and flags are used when
12481 # linking a shared library.
12482 #
12483 # There doesn't appear to be a way to prevent this compiler from
12484 # explicitly linking system object files so we need to strip them
12485 # from the output so that they don't get included in the library
12486 # dependencies.
12487 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'
12488 ;;
12489 *)
12490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12491 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12492 case $host in
12493 osf3*)
12494 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'
12495 ;;
12496 *)
12497 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'
12498 ;;
12499 esac
12500
12501 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12502 hardcode_libdir_separator_CXX=:
12503
12504 # Commands to make compiler produce verbose output that lists
12505 # what "hidden" libraries, object files and flags are used when
12506 # linking a shared library.
12507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12508
12509 else
12510 # FIXME: insert proper C++ library support
12511 ld_shlibs_CXX=no
12512 fi
12513 ;;
12514 esac
12515 ;;
12516
12517 psos*)
12518 # FIXME: insert proper C++ library support
12519 ld_shlibs_CXX=no
12520 ;;
12521
12522 sunos4*)
12523 case $cc_basename in
12524 CC*)
12525 # Sun C++ 4.x
12526 # FIXME: insert proper C++ library support
12527 ld_shlibs_CXX=no
12528 ;;
12529 lcc*)
12530 # Lucid
12531 # FIXME: insert proper C++ library support
12532 ld_shlibs_CXX=no
12533 ;;
12534 *)
12535 # FIXME: insert proper C++ library support
12536 ld_shlibs_CXX=no
12537 ;;
12538 esac
12539 ;;
12540
12541 solaris*)
12542 case $cc_basename in
12543 CC*)
12544 # Sun C++ 4.2, 5.x and Centerline C++
12545 archive_cmds_need_lc_CXX=yes
12546 no_undefined_flag_CXX=' -zdefs'
12547 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12548 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12549 $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'
12550
12551 hardcode_libdir_flag_spec_CXX='-R$libdir'
12552 hardcode_shlibpath_var_CXX=no
12553 case $host_os in
12554 solaris2.[0-5] | solaris2.[0-5].*) ;;
12555 *)
12556 # The compiler driver will combine and reorder linker options,
12557 # but understands `-z linker_flag'.
12558 # Supported since Solaris 2.6 (maybe 2.5.1?)
12559 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12560 ;;
12561 esac
12562 link_all_deplibs_CXX=yes
12563
12564 output_verbose_link_cmd='echo'
12565
12566 # Archives containing C++ object files must be created using
12567 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12568 # necessary to make sure instantiated templates are included
12569 # in the archive.
12570 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12571 ;;
12572 gcx*)
12573 # Green Hills C++ Compiler
12574 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12575
12576 # The C++ compiler must be used to create the archive.
12577 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12578 ;;
12579 *)
12580 # GNU C++ compiler with Solaris linker
12581 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12582 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12583 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12584 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12585 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12586 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12587
12588 # Commands to make compiler produce verbose output that lists
12589 # what "hidden" libraries, object files and flags are used when
12590 # linking a shared library.
12591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12592 else
12593 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12594 # platform.
12595 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12596 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12597 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12598
12599 # Commands to make compiler produce verbose output that lists
12600 # what "hidden" libraries, object files and flags are used when
12601 # linking a shared library.
12602 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12603 fi
12604
12605 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12606 case $host_os in
12607 solaris2.[0-5] | solaris2.[0-5].*) ;;
12608 *)
12609 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12610 ;;
12611 esac
12612 fi
12613 ;;
12614 esac
12615 ;;
12616
12617 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12618 no_undefined_flag_CXX='${wl}-z,text'
12619 archive_cmds_need_lc_CXX=no
12620 hardcode_shlibpath_var_CXX=no
12621 runpath_var='LD_RUN_PATH'
12622
12623 case $cc_basename in
12624 CC*)
12625 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12626 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627 ;;
12628 *)
12629 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12630 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12631 ;;
12632 esac
12633 ;;
12634
12635 sysv5* | sco3.2v5* | sco5v6*)
12636 # Note: We can NOT use -z defs as we might desire, because we do not
12637 # link with -lc, and that would cause any symbols used from libc to
12638 # always be unresolved, which means just about no library would
12639 # ever link correctly. If we're not using GNU ld we use -z text
12640 # though, which does catch some bad symbols but isn't as heavy-handed
12641 # as -z defs.
12642 no_undefined_flag_CXX='${wl}-z,text'
12643 allow_undefined_flag_CXX='${wl}-z,nodefs'
12644 archive_cmds_need_lc_CXX=no
12645 hardcode_shlibpath_var_CXX=no
12646 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12647 hardcode_libdir_separator_CXX=':'
12648 link_all_deplibs_CXX=yes
12649 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12650 runpath_var='LD_RUN_PATH'
12651
12652 case $cc_basename in
12653 CC*)
12654 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12655 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12656 ;;
12657 *)
12658 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12659 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12660 ;;
12661 esac
12662 ;;
12663
12664 tandem*)
12665 case $cc_basename in
12666 NCC*)
12667 # NonStop-UX NCC 3.20
12668 # FIXME: insert proper C++ library support
12669 ld_shlibs_CXX=no
12670 ;;
12671 *)
12672 # FIXME: insert proper C++ library support
12673 ld_shlibs_CXX=no
12674 ;;
12675 esac
12676 ;;
12677
12678 vxworks*)
12679 # FIXME: insert proper C++ library support
12680 ld_shlibs_CXX=no
12681 ;;
12682
mmentovai8c2a4de2006-09-20 16:20:15 +000012683 *)
jimblandy92b1f832009-12-23 22:23:49 +000012684 # FIXME: insert proper C++ library support
12685 ld_shlibs_CXX=no
12686 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012687 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012688
jimblandy92b1f832009-12-23 22:23:49 +000012689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12690$as_echo "$ld_shlibs_CXX" >&6; }
12691 test "$ld_shlibs_CXX" = no && can_build_shared=no
brynercb91a2f2006-08-25 21:14:45 +000012692
jimblandy92b1f832009-12-23 22:23:49 +000012693 GCC_CXX="$GXX"
12694 LD_CXX="$LD"
brynercb91a2f2006-08-25 21:14:45 +000012695
jimblandy92b1f832009-12-23 22:23:49 +000012696 ## CAVEAT EMPTOR:
12697 ## There is no encapsulation within the following macros, do not change
12698 ## the running order or otherwise move them around unless you know exactly
12699 ## what you are doing...
12700 # Dependencies to place before and after the object being linked:
12701predep_objects_CXX=
12702postdep_objects_CXX=
12703predeps_CXX=
12704postdeps_CXX=
12705compiler_lib_search_path_CXX=
12706
12707cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012708class Foo
12709{
12710public:
12711 Foo (void) { a = 0; }
12712private:
12713 int a;
12714};
jimblandy92b1f832009-12-23 22:23:49 +000012715_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012716
jimblandy92b1f832009-12-23 22:23:49 +000012717if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000012718 (eval $ac_compile) 2>&5
12719 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000012720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12721 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +000012722 # Parse the compiler output and extract the necessary
12723 # objects, libraries and library flags.
12724
12725 # Sentinel used to keep track of whether or not we are before
12726 # the conftest object file.
12727 pre_test_object_deps_done=no
12728
jimblandy92b1f832009-12-23 22:23:49 +000012729 for p in `eval "$output_verbose_link_cmd"`; do
brynercb91a2f2006-08-25 21:14:45 +000012730 case $p in
12731
12732 -L* | -R* | -l*)
12733 # Some compilers place space between "-{L,R}" and the path.
12734 # Remove the space.
jimblandy92b1f832009-12-23 22:23:49 +000012735 if test $p = "-L" ||
12736 test $p = "-R"; then
brynercb91a2f2006-08-25 21:14:45 +000012737 prev=$p
12738 continue
12739 else
12740 prev=
12741 fi
12742
12743 if test "$pre_test_object_deps_done" = no; then
12744 case $p in
12745 -L* | -R*)
12746 # Internal compiler library paths should come after those
12747 # provided the user. The postdeps already come after the
12748 # user supplied libs so there is no need to process them.
12749 if test -z "$compiler_lib_search_path_CXX"; then
12750 compiler_lib_search_path_CXX="${prev}${p}"
12751 else
12752 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12753 fi
12754 ;;
12755 # The "-l" case would never come before the object being
12756 # linked, so don't bother handling this case.
12757 esac
12758 else
12759 if test -z "$postdeps_CXX"; then
12760 postdeps_CXX="${prev}${p}"
12761 else
12762 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12763 fi
12764 fi
12765 ;;
12766
12767 *.$objext)
12768 # This assumes that the test object file only shows up
12769 # once in the compiler output.
12770 if test "$p" = "conftest.$objext"; then
12771 pre_test_object_deps_done=yes
12772 continue
12773 fi
12774
12775 if test "$pre_test_object_deps_done" = no; then
12776 if test -z "$predep_objects_CXX"; then
12777 predep_objects_CXX="$p"
12778 else
12779 predep_objects_CXX="$predep_objects_CXX $p"
12780 fi
12781 else
12782 if test -z "$postdep_objects_CXX"; then
12783 postdep_objects_CXX="$p"
12784 else
12785 postdep_objects_CXX="$postdep_objects_CXX $p"
12786 fi
12787 fi
12788 ;;
12789
12790 *) ;; # Ignore the rest.
12791
12792 esac
12793 done
12794
12795 # Clean up.
12796 rm -f a.out a.exe
12797else
12798 echo "libtool.m4: error: problem compiling CXX test program"
12799fi
12800
jimblandy92b1f832009-12-23 22:23:49 +000012801$RM -f confest.$objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012802
mmentovai8c2a4de2006-09-20 16:20:15 +000012803# PORTME: override above test on systems where it is broken
12804case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012805interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012806 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12807 # hack all around it, let's just trust "g++" to DTRT.
12808 predep_objects_CXX=
12809 postdep_objects_CXX=
12810 postdeps_CXX=
12811 ;;
12812
ted.mielczarek1adb1842009-12-21 13:12:20 +000012813linux*)
12814 case `$CC -V 2>&1 | sed 5q` in
12815 *Sun\ C*)
12816 # Sun C++ 5.9
jimblandy92b1f832009-12-23 22:23:49 +000012817
ted.mielczarek1adb1842009-12-21 13:12:20 +000012818 # The more standards-conforming stlport4 library is
12819 # incompatible with the Cstd library. Avoid specifying
12820 # it if it's in CXXFLAGS. Ignore libCrun as
12821 # -library=stlport4 depends on it.
12822 case " $CXX $CXXFLAGS " in
12823 *" -library=stlport4 "*)
12824 solaris_use_stlport4=yes
12825 ;;
12826 esac
jimblandy92b1f832009-12-23 22:23:49 +000012827
ted.mielczarek1adb1842009-12-21 13:12:20 +000012828 if test "$solaris_use_stlport4" != yes; then
12829 postdeps_CXX='-library=Cstd -library=Crun'
12830 fi
12831 ;;
12832 esac
12833 ;;
12834
mmentovai8c2a4de2006-09-20 16:20:15 +000012835solaris*)
12836 case $cc_basename in
12837 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012838 # The more standards-conforming stlport4 library is
12839 # incompatible with the Cstd library. Avoid specifying
12840 # it if it's in CXXFLAGS. Ignore libCrun as
12841 # -library=stlport4 depends on it.
12842 case " $CXX $CXXFLAGS " in
12843 *" -library=stlport4 "*)
12844 solaris_use_stlport4=yes
12845 ;;
12846 esac
12847
mmentovai8c2a4de2006-09-20 16:20:15 +000012848 # Adding this requires a known-good setup of shared libraries for
12849 # Sun compiler versions before 5.6, else PIC objects from an old
12850 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012851 if test "$solaris_use_stlport4" != yes; then
12852 postdeps_CXX='-library=Cstd -library=Crun'
12853 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012854 ;;
12855 esac
12856 ;;
12857esac
12858
jimblandy92b1f832009-12-23 22:23:49 +000012859
brynercb91a2f2006-08-25 21:14:45 +000012860case " $postdeps_CXX " in
12861*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12862esac
jimblandy92b1f832009-12-23 22:23:49 +000012863 compiler_lib_search_dirs_CXX=
12864if test -n "${compiler_lib_search_path_CXX}"; then
12865 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12866fi
brynercb91a2f2006-08-25 21:14:45 +000012867
jimblandy92b1f832009-12-23 22:23:49 +000012868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898 lt_prog_compiler_wl_CXX=
brynercb91a2f2006-08-25 21:14:45 +000012899lt_prog_compiler_pic_CXX=
12900lt_prog_compiler_static_CXX=
12901
jimblandy92b1f832009-12-23 22:23:49 +000012902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12903$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012904
12905 # C++ specific cases for pic, static, wl, etc.
12906 if test "$GXX" = yes; then
12907 lt_prog_compiler_wl_CXX='-Wl,'
12908 lt_prog_compiler_static_CXX='-static'
12909
12910 case $host_os in
12911 aix*)
12912 # All AIX code is PIC.
12913 if test "$host_cpu" = ia64; then
12914 # AIX 5 now supports IA64 processor
12915 lt_prog_compiler_static_CXX='-Bstatic'
12916 fi
12917 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012918
brynercb91a2f2006-08-25 21:14:45 +000012919 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000012920 case $host_cpu in
12921 powerpc)
12922 # see comment about AmigaOS4 .so support
12923 lt_prog_compiler_pic_CXX='-fPIC'
12924 ;;
12925 m68k)
12926 # FIXME: we need at least 68020 code to build shared libraries, but
12927 # adding the `-m68020' flag to GCC prevents building anything better,
12928 # like `-m68040'.
12929 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12930 ;;
12931 esac
brynercb91a2f2006-08-25 21:14:45 +000012932 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012933
ted.mielczarek1adb1842009-12-21 13:12:20 +000012934 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012935 # PIC is the default for these OSes.
12936 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012937 mingw* | cygwin* | os2* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000012938 # This hack is so that the source file can tell whether it is being
12939 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012940 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12941 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012942 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12943 ;;
12944 darwin* | rhapsody*)
12945 # PIC is the default on this platform
12946 # Common symbols not allowed in MH_DYLIB files
12947 lt_prog_compiler_pic_CXX='-fno-common'
12948 ;;
12949 *djgpp*)
12950 # DJGPP does not support shared libraries at all
12951 lt_prog_compiler_pic_CXX=
12952 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012953 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12955 # Instead, we relocate shared libraries at runtime.
12956 ;;
brynercb91a2f2006-08-25 21:14:45 +000012957 sysv4*MP*)
12958 if test -d /usr/nec; then
12959 lt_prog_compiler_pic_CXX=-Kconform_pic
12960 fi
12961 ;;
12962 hpux*)
jimblandy92b1f832009-12-23 22:23:49 +000012963 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12964 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12965 # sets the default TLS model and affects inlining.
mmentovai8c2a4de2006-09-20 16:20:15 +000012966 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012967 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000012968 ;;
12969 *)
12970 lt_prog_compiler_pic_CXX='-fPIC'
12971 ;;
12972 esac
12973 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012974 *qnx* | *nto*)
12975 # QNX uses GNU C++, but need to define -shared option too, otherwise
12976 # it will coredump.
12977 lt_prog_compiler_pic_CXX='-fPIC -shared'
12978 ;;
brynercb91a2f2006-08-25 21:14:45 +000012979 *)
12980 lt_prog_compiler_pic_CXX='-fPIC'
12981 ;;
12982 esac
12983 else
12984 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012985 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012986 # All AIX code is PIC.
12987 if test "$host_cpu" = ia64; then
12988 # AIX 5 now supports IA64 processor
12989 lt_prog_compiler_static_CXX='-Bstatic'
12990 else
12991 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12992 fi
12993 ;;
12994 chorus*)
12995 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012996 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012997 # Green Hills C++ Compiler
jimblandy92b1f832009-12-23 22:23:49 +000012998 # _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 +000012999 ;;
13000 esac
13001 ;;
13002 dgux*)
13003 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013004 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000013005 lt_prog_compiler_pic_CXX='-KPIC'
13006 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013007 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000013008 # Green Hills C++ Compiler
13009 lt_prog_compiler_pic_CXX='-pic'
13010 ;;
13011 *)
13012 ;;
13013 esac
13014 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013015 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000013016 # FreeBSD uses GNU C++
13017 ;;
13018 hpux9* | hpux10* | hpux11*)
13019 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013020 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013021 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000013022 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000013023 if test "$host_cpu" != ia64; then
13024 lt_prog_compiler_pic_CXX='+Z'
13025 fi
13026 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013027 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000013028 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000013029 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13030 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013031 hppa*64*|ia64*)
13032 # +Z the default
13033 ;;
13034 *)
13035 lt_prog_compiler_pic_CXX='+Z'
13036 ;;
13037 esac
13038 ;;
13039 *)
13040 ;;
13041 esac
13042 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013043 interix*)
13044 # This is c89, which is MS Visual C++ (no shared libs)
13045 # Anyone wants to do a port?
13046 ;;
brynercb91a2f2006-08-25 21:14:45 +000013047 irix5* | irix6* | nonstopux*)
13048 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013049 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013050 lt_prog_compiler_wl_CXX='-Wl,'
13051 lt_prog_compiler_static_CXX='-non_shared'
13052 # CC pic flag -KPIC is the default.
13053 ;;
13054 *)
13055 ;;
13056 esac
13057 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013059 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013060 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013061 # KAI C++ Compiler
13062 lt_prog_compiler_wl_CXX='--backend -Wl,'
13063 lt_prog_compiler_pic_CXX='-fPIC'
13064 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013065 ecpc* )
13066 # old Intel C++ for x86_64 which still supported -KPIC.
brynercb91a2f2006-08-25 21:14:45 +000013067 lt_prog_compiler_wl_CXX='-Wl,'
13068 lt_prog_compiler_pic_CXX='-KPIC'
13069 lt_prog_compiler_static_CXX='-static'
13070 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013071 icpc* )
13072 # Intel C++, used to be incompatible with GCC.
13073 # ICC 10 doesn't accept -KPIC any more.
13074 lt_prog_compiler_wl_CXX='-Wl,'
13075 lt_prog_compiler_pic_CXX='-fPIC'
13076 lt_prog_compiler_static_CXX='-static'
13077 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013078 pgCC* | pgcpp*)
jimblandy92b1f832009-12-23 22:23:49 +000013079 # Portland Group C++ compiler
mmentovai8c2a4de2006-09-20 16:20:15 +000013080 lt_prog_compiler_wl_CXX='-Wl,'
13081 lt_prog_compiler_pic_CXX='-fpic'
13082 lt_prog_compiler_static_CXX='-Bstatic'
13083 ;;
13084 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013085 # Compaq C++
13086 # Make sure the PIC flag is empty. It appears that all Alpha
13087 # Linux and Compaq Tru64 Unix objects are PIC.
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX='-non_shared'
13090 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013091 xlc* | xlC*)
13092 # IBM XL 8.0 on PPC
13093 lt_prog_compiler_wl_CXX='-Wl,'
13094 lt_prog_compiler_pic_CXX='-qpic'
13095 lt_prog_compiler_static_CXX='-qstaticlink'
13096 ;;
brynercb91a2f2006-08-25 21:14:45 +000013097 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000013098 case `$CC -V 2>&1 | sed 5q` in
13099 *Sun\ C*)
13100 # Sun C++ 5.9
13101 lt_prog_compiler_pic_CXX='-KPIC'
13102 lt_prog_compiler_static_CXX='-Bstatic'
13103 lt_prog_compiler_wl_CXX='-Qoption ld '
13104 ;;
13105 esac
brynercb91a2f2006-08-25 21:14:45 +000013106 ;;
13107 esac
13108 ;;
13109 lynxos*)
13110 ;;
13111 m88k*)
13112 ;;
13113 mvs*)
13114 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013115 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013116 lt_prog_compiler_pic_CXX='-W c,exportall'
13117 ;;
13118 *)
13119 ;;
13120 esac
13121 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013122 netbsd* | netbsdelf*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013123 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013124 *qnx* | *nto*)
13125 # QNX uses GNU C++, but need to define -shared option too, otherwise
13126 # it will coredump.
13127 lt_prog_compiler_pic_CXX='-fPIC -shared'
13128 ;;
brynercb91a2f2006-08-25 21:14:45 +000013129 osf3* | osf4* | osf5*)
13130 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013131 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013132 lt_prog_compiler_wl_CXX='--backend -Wl,'
13133 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013134 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000013135 # Rational C++ 2.4.1
13136 lt_prog_compiler_pic_CXX='-pic'
13137 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013138 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013139 # Digital/Compaq C++
13140 lt_prog_compiler_wl_CXX='-Wl,'
13141 # Make sure the PIC flag is empty. It appears that all Alpha
13142 # Linux and Compaq Tru64 Unix objects are PIC.
13143 lt_prog_compiler_pic_CXX=
13144 lt_prog_compiler_static_CXX='-non_shared'
13145 ;;
13146 *)
13147 ;;
13148 esac
13149 ;;
13150 psos*)
13151 ;;
brynercb91a2f2006-08-25 21:14:45 +000013152 solaris*)
13153 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013154 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013155 # Sun C++ 4.2, 5.x and Centerline C++
13156 lt_prog_compiler_pic_CXX='-KPIC'
13157 lt_prog_compiler_static_CXX='-Bstatic'
13158 lt_prog_compiler_wl_CXX='-Qoption ld '
13159 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013160 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000013161 # Green Hills C++ Compiler
13162 lt_prog_compiler_pic_CXX='-PIC'
13163 ;;
13164 *)
13165 ;;
13166 esac
13167 ;;
13168 sunos4*)
13169 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013170 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013171 # Sun C++ 4.x
13172 lt_prog_compiler_pic_CXX='-pic'
13173 lt_prog_compiler_static_CXX='-Bstatic'
13174 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013175 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000013176 # Lucid
13177 lt_prog_compiler_pic_CXX='-pic'
13178 ;;
13179 *)
13180 ;;
13181 esac
13182 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13184 case $cc_basename in
13185 CC*)
13186 lt_prog_compiler_wl_CXX='-Wl,'
13187 lt_prog_compiler_pic_CXX='-KPIC'
13188 lt_prog_compiler_static_CXX='-Bstatic'
13189 ;;
13190 esac
13191 ;;
brynercb91a2f2006-08-25 21:14:45 +000013192 tandem*)
13193 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013194 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000013195 # NonStop-UX NCC 3.20
13196 lt_prog_compiler_pic_CXX='-KPIC'
13197 ;;
13198 *)
13199 ;;
13200 esac
13201 ;;
brynercb91a2f2006-08-25 21:14:45 +000013202 vxworks*)
13203 ;;
13204 *)
13205 lt_prog_compiler_can_build_shared_CXX=no
13206 ;;
13207 esac
13208 fi
13209
jimblandy92b1f832009-12-23 22:23:49 +000013210case $host_os in
13211 # For platforms which do not support PIC, -DPIC is meaningless:
13212 *djgpp*)
13213 lt_prog_compiler_pic_CXX=
13214 ;;
13215 *)
13216 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13217 ;;
13218esac
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13220$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13221
13222
brynercb91a2f2006-08-25 21:14:45 +000013223
13224#
13225# Check to make sure the PIC flag actually works.
13226#
13227if test -n "$lt_prog_compiler_pic_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +000013228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13229$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13230if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13231 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013232else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013233 lt_cv_prog_compiler_pic_works_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013234 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000013235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013236 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13237 # Insert the option either (1) after the last *FLAGS variable, or
13238 # (2) before a word containing "conftest.", or (3) at the end.
13239 # Note that $ac_compile itself does not contain backslashes and begins
13240 # with a dollar sign (not a hyphen), so the echo should work correctly.
13241 # The option is referenced via a variable to avoid confusing sed.
13242 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13245 -e 's:$: $lt_compiler_flag:'`
ted.mielczarekb2236272010-04-08 23:06:23 +000013246 (eval echo "\"\$as_me:13246: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013247 (eval "$lt_compile" 2>conftest.err)
13248 ac_status=$?
13249 cat conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +000013250 echo "$as_me:13250: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013251 if (exit $ac_status) && test -s "$ac_outfile"; then
13252 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013253 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +000013254 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013257 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000013258 fi
13259 fi
jimblandy92b1f832009-12-23 22:23:49 +000013260 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013261
13262fi
jimblandy92b1f832009-12-23 22:23:49 +000013263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13264$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013265
ted.mielczarek1adb1842009-12-21 13:12:20 +000013266if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000013267 case $lt_prog_compiler_pic_CXX in
13268 "" | " "*) ;;
13269 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13270 esac
13271else
13272 lt_prog_compiler_pic_CXX=
13273 lt_prog_compiler_can_build_shared_CXX=no
13274fi
13275
13276fi
jimblandy92b1f832009-12-23 22:23:49 +000013277
13278
brynercb91a2f2006-08-25 21:14:45 +000013279
mmentovai8c2a4de2006-09-20 16:20:15 +000013280#
13281# Check to make sure the static flag actually works.
13282#
13283wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
jimblandy92b1f832009-12-23 22:23:49 +000013284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13285$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13286if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +000013288else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013289 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013290 save_LDFLAGS="$LDFLAGS"
13291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000013292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000013293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13294 # The linker can only warn and ignore the option if not recognized
13295 # So say no if there are warnings
13296 if test -s conftest.err; then
13297 # Append any errors to the config.log.
13298 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +000013299 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13301 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013302 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013303 fi
13304 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013305 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013306 fi
13307 fi
jimblandy92b1f832009-12-23 22:23:49 +000013308 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000013309 LDFLAGS="$save_LDFLAGS"
13310
13311fi
jimblandy92b1f832009-12-23 22:23:49 +000013312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13313$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000013314
ted.mielczarek1adb1842009-12-21 13:12:20 +000013315if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013316 :
13317else
13318 lt_prog_compiler_static_CXX=
13319fi
13320
13321
jimblandy92b1f832009-12-23 22:23:49 +000013322
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13325$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13326if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013328else
13329 lt_cv_prog_compiler_c_o_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013330 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000013331 mkdir conftest
13332 cd conftest
13333 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000013334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013335
13336 lt_compiler_flag="-o out/conftest2.$ac_objext"
13337 # Insert the option either (1) after the last *FLAGS variable, or
13338 # (2) before a word containing "conftest.", or (3) at the end.
13339 # Note that $ac_compile itself does not contain backslashes and begins
13340 # with a dollar sign (not a hyphen), so the echo should work correctly.
13341 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13344 -e 's:$: $lt_compiler_flag:'`
ted.mielczarekb2236272010-04-08 23:06:23 +000013345 (eval echo "\"\$as_me:13345: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013346 (eval "$lt_compile" 2>out/conftest.err)
13347 ac_status=$?
13348 cat out/conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +000013349 echo "$as_me:13349: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13351 then
13352 # The compiler can only warn and ignore the option if not recognized
13353 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +000013354 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013357 lt_cv_prog_compiler_c_o_CXX=yes
13358 fi
13359 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013360 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +000013361 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013362 # SGI C++ compiler will create directory out/ii_files/ for
13363 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +000013364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13365 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +000013366 cd ..
jimblandy92b1f832009-12-23 22:23:49 +000013367 $RM -r conftest
13368 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013369
13370fi
jimblandy92b1f832009-12-23 22:23:49 +000013371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13372$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13373
13374
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13378if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13380else
13381 lt_cv_prog_compiler_c_o_CXX=no
13382 $RM -r conftest 2>/dev/null
13383 mkdir conftest
13384 cd conftest
13385 mkdir out
13386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13387
13388 lt_compiler_flag="-o out/conftest2.$ac_objext"
13389 # Insert the option either (1) after the last *FLAGS variable, or
13390 # (2) before a word containing "conftest.", or (3) at the end.
13391 # Note that $ac_compile itself does not contain backslashes and begins
13392 # with a dollar sign (not a hyphen), so the echo should work correctly.
13393 lt_compile=`echo "$ac_compile" | $SED \
13394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396 -e 's:$: $lt_compiler_flag:'`
ted.mielczarekb2236272010-04-08 23:06:23 +000013397 (eval echo "\"\$as_me:13397: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +000013398 (eval "$lt_compile" 2>out/conftest.err)
13399 ac_status=$?
13400 cat out/conftest.err >&5
ted.mielczarekb2236272010-04-08 23:06:23 +000013401 echo "$as_me:13401: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +000013402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13403 then
13404 # The compiler can only warn and ignore the option if not recognized
13405 # So say no if there are warnings
13406 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13409 lt_cv_prog_compiler_c_o_CXX=yes
13410 fi
13411 fi
13412 chmod u+w . 2>&5
13413 $RM conftest*
13414 # SGI C++ compiler will create directory out/ii_files/ for
13415 # template instantiation
13416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13417 $RM out/* && rmdir out
13418 cd ..
13419 $RM -r conftest
13420 $RM conftest*
13421
13422fi
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13424$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13425
13426
brynercb91a2f2006-08-25 21:14:45 +000013427
13428
13429hard_links="nottested"
13430if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13431 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +000013432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13433$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013434 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +000013435 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13437 touch conftest.a
13438 ln conftest.a conftest.b 2>&5 || hard_links=no
13439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +000013440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13441$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013442 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +000013443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13444$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000013445 need_locks=warn
13446 fi
13447else
13448 need_locks=no
13449fi
13450
jimblandy92b1f832009-12-23 22:23:49 +000013451
13452
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13454$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013455
13456 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13457 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000013458 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013459 # If we're using GNU nm, then we don't want the "-C" option.
13460 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +000013461 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13462 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 +000013463 else
jimblandy92b1f832009-12-23 22:23:49 +000013464 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 +000013465 fi
13466 ;;
13467 pw32*)
13468 export_symbols_cmds_CXX="$ltdll_cmds"
13469 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013470 cygwin* | mingw* | cegcc*)
13471 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'
13472 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013473 linux* | k*bsd*-gnu)
13474 link_all_deplibs_CXX=no
13475 ;;
brynercb91a2f2006-08-25 21:14:45 +000013476 *)
13477 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13478 ;;
13479 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000013480 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000013481
jimblandy92b1f832009-12-23 22:23:49 +000013482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13483$as_echo "$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013484test "$ld_shlibs_CXX" = no && can_build_shared=no
13485
jimblandy92b1f832009-12-23 22:23:49 +000013486with_gnu_ld_CXX=$with_gnu_ld
13487
13488
13489
13490
13491
13492
brynercb91a2f2006-08-25 21:14:45 +000013493#
13494# Do we need to explicitly link libc?
13495#
13496case "x$archive_cmds_need_lc_CXX" in
13497x|xyes)
13498 # Assume -lc should be added
13499 archive_cmds_need_lc_CXX=yes
13500
13501 if test "$enable_shared" = yes && test "$GCC" = yes; then
13502 case $archive_cmds_CXX in
13503 *'~'*)
13504 # FIXME: we may have to deal with multi-command sequences.
13505 ;;
13506 '$CC '*)
13507 # Test whether the compiler implicitly links with -lc since on some
13508 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13509 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +000013510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13511$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13512 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000013513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013514
jimblandy92b1f832009-12-23 22:23:49 +000013515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000013516 (eval $ac_compile) 2>&5
13517 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013520 soname=conftest
13521 lib=conftest
13522 libobjs=conftest.$ac_objext
13523 deplibs=
13524 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000013525 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000013526 compiler_flags=-v
13527 linker_flags=-v
13528 verstring=
13529 output_objdir=.
13530 libname=conftest
13531 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13532 allow_undefined_flag_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000013533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13534 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013535 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13537 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +000013538 then
13539 archive_cmds_need_lc_CXX=no
13540 else
13541 archive_cmds_need_lc_CXX=yes
13542 fi
13543 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13544 else
13545 cat conftest.err 1>&5
13546 fi
jimblandy92b1f832009-12-23 22:23:49 +000013547 $RM conftest*
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13549$as_echo "$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013550 ;;
13551 esac
13552 fi
13553 ;;
13554esac
13555
jimblandy92b1f832009-12-23 22:23:49 +000013556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13620$as_echo_n "checking dynamic linker characteristics... " >&6; }
13621
brynercb91a2f2006-08-25 21:14:45 +000013622library_names_spec=
13623libname_spec='lib$name'
13624soname_spec=
13625shrext_cmds=".so"
13626postinstall_cmds=
13627postuninstall_cmds=
13628finish_cmds=
13629finish_eval=
13630shlibpath_var=
13631shlibpath_overrides_runpath=unknown
13632version_type=none
13633dynamic_linker="$host_os ld.so"
13634sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013635need_lib_prefix=unknown
13636hardcode_into_libs=no
13637
13638# when you set need_version to no, make sure it does not cause -set_version
13639# flags to be left without arguments
13640need_version=unknown
13641
13642case $host_os in
13643aix3*)
13644 version_type=linux
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13646 shlibpath_var=LIBPATH
13647
13648 # AIX 3 has no versioning support, so we append a major version to the name.
13649 soname_spec='${libname}${release}${shared_ext}$major'
13650 ;;
13651
ted.mielczarek1adb1842009-12-21 13:12:20 +000013652aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013653 version_type=linux
13654 need_lib_prefix=no
13655 need_version=no
13656 hardcode_into_libs=yes
13657 if test "$host_cpu" = ia64; then
13658 # AIX 5 supports IA64
13659 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13660 shlibpath_var=LD_LIBRARY_PATH
13661 else
13662 # With GCC up to 2.95.x, collect2 would create an import file
13663 # for dependence libraries. The import file would start with
13664 # the line `#! .'. This would cause the generated library to
13665 # depend on `.', always an invalid library. This was fixed in
13666 # development snapshots of GCC prior to 3.0.
13667 case $host_os in
13668 aix4 | aix4.[01] | aix4.[01].*)
13669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13670 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000013671 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013672 :
13673 else
13674 can_build_shared=no
13675 fi
13676 ;;
13677 esac
13678 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13679 # soname into executable. Probably we can add versioning support to
13680 # collect2, so additional links can be useful in future.
13681 if test "$aix_use_runtimelinking" = yes; then
13682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13683 # instead of lib<name>.a to let people know that these are not
13684 # typical AIX shared libraries.
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686 else
13687 # We preserve .a as extension for shared libraries through AIX4.2
13688 # and later when we are not doing run time linking.
13689 library_names_spec='${libname}${release}.a $libname.a'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 fi
13692 shlibpath_var=LIBPATH
13693 fi
13694 ;;
13695
13696amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000013697 case $host_cpu in
13698 powerpc)
13699 # Since July 2007 AmigaOS4 officially supports .so libraries.
13700 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 ;;
13703 m68k)
13704 library_names_spec='$libname.ixlibrary $libname.a'
13705 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13706 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'
13707 ;;
13708 esac
brynercb91a2f2006-08-25 21:14:45 +000013709 ;;
13710
13711beos*)
13712 library_names_spec='${libname}${shared_ext}'
13713 dynamic_linker="$host_os ld.so"
13714 shlibpath_var=LIBRARY_PATH
13715 ;;
13716
mmentovai8c2a4de2006-09-20 16:20:15 +000013717bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013718 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13723 shlibpath_var=LD_LIBRARY_PATH
13724 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13725 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13726 # the default ld.so.conf also contains /usr/contrib/lib and
13727 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13728 # libtool to hard-code these into programs
13729 ;;
13730
jimblandy92b1f832009-12-23 22:23:49 +000013731cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013732 version_type=windows
13733 shrext_cmds=".dll"
13734 need_version=no
13735 need_lib_prefix=no
13736
13737 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013738 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013739 library_names_spec='$libname.dll.a'
13740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13741 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000013742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000013743 dldir=$destdir/`dirname \$dlpath`~
13744 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013745 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000013746 chmod a+x \$dldir/$dlname~
13747 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13748 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13749 fi'
brynercb91a2f2006-08-25 21:14:45 +000013750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13751 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000013752 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000013753 shlibpath_overrides_runpath=yes
13754
13755 case $host_os in
13756 cygwin*)
13757 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13758 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13759 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13760 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013761 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013762 # MinGW DLLs use traditional 'lib' prefix
13763 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000013764 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13765 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013766 # It is most probably a Windows format PATH printed by
13767 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13768 # path with ; separators, and with drive letters. We can handle the
13769 # drive letters (cygwin fileutils understands them), so leave them,
13770 # especially as we might pass files found there to a mingw objdump,
13771 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000013772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000013773 else
jimblandy92b1f832009-12-23 22:23:49 +000013774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000013775 fi
13776 ;;
13777 pw32*)
13778 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013779 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 +000013780 ;;
13781 esac
13782 ;;
13783
13784 *)
13785 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13786 ;;
13787 esac
13788 dynamic_linker='Win32 ld.exe'
13789 # FIXME: first we should search . and the directory the executable is in
13790 shlibpath_var=PATH
13791 ;;
13792
13793darwin* | rhapsody*)
13794 dynamic_linker="$host_os dyld"
13795 version_type=darwin
13796 need_lib_prefix=no
13797 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013798 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000013799 soname_spec='${libname}${release}${major}$shared_ext'
13800 shlibpath_overrides_runpath=yes
13801 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013802 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013803
brynercb91a2f2006-08-25 21:14:45 +000013804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13805 ;;
13806
13807dgux*)
13808 version_type=linux
13809 need_lib_prefix=no
13810 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
13814 ;;
13815
13816freebsd1*)
13817 dynamic_linker=no
13818 ;;
13819
mmentovai8c2a4de2006-09-20 16:20:15 +000013820freebsd* | dragonfly*)
13821 # DragonFly does not have aout. When/if they implement a new
13822 # versioning mechanism, adjust this.
13823 if test -x /usr/bin/objformat; then
13824 objformat=`/usr/bin/objformat`
13825 else
13826 case $host_os in
13827 freebsd[123]*) objformat=aout ;;
13828 *) objformat=elf ;;
13829 esac
13830 fi
brynercb91a2f2006-08-25 21:14:45 +000013831 version_type=freebsd-$objformat
13832 case $version_type in
13833 freebsd-elf*)
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13835 need_version=no
13836 need_lib_prefix=no
13837 ;;
13838 freebsd-*)
13839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13840 need_version=yes
13841 ;;
13842 esac
13843 shlibpath_var=LD_LIBRARY_PATH
13844 case $host_os in
13845 freebsd2*)
13846 shlibpath_overrides_runpath=yes
13847 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013848 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013849 shlibpath_overrides_runpath=yes
13850 hardcode_into_libs=yes
13851 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013852 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13853 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013854 shlibpath_overrides_runpath=no
13855 hardcode_into_libs=yes
13856 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013857 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013858 shlibpath_overrides_runpath=yes
13859 hardcode_into_libs=yes
13860 ;;
brynercb91a2f2006-08-25 21:14:45 +000013861 esac
13862 ;;
13863
13864gnu*)
13865 version_type=linux
13866 need_lib_prefix=no
13867 need_version=no
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 hardcode_into_libs=yes
13872 ;;
13873
13874hpux9* | hpux10* | hpux11*)
13875 # Give a soname corresponding to the major version so that dld.sl refuses to
13876 # link against other versions.
13877 version_type=sunos
13878 need_lib_prefix=no
13879 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013880 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013881 ia64*)
13882 shrext_cmds='.so'
13883 hardcode_into_libs=yes
13884 dynamic_linker="$host_os dld.so"
13885 shlibpath_var=LD_LIBRARY_PATH
13886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13888 soname_spec='${libname}${release}${shared_ext}$major'
13889 if test "X$HPUX_IA64_MODE" = X32; then
13890 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13891 else
13892 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13893 fi
13894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13895 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013896 hppa*64*)
13897 shrext_cmds='.sl'
13898 hardcode_into_libs=yes
13899 dynamic_linker="$host_os dld.sl"
13900 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903 soname_spec='${libname}${release}${shared_ext}$major'
13904 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13906 ;;
13907 *)
brynercb91a2f2006-08-25 21:14:45 +000013908 shrext_cmds='.sl'
13909 dynamic_linker="$host_os dld.sl"
13910 shlibpath_var=SHLIB_PATH
13911 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913 soname_spec='${libname}${release}${shared_ext}$major'
13914 ;;
13915 esac
13916 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13917 postinstall_cmds='chmod 555 $lib'
13918 ;;
13919
ted.mielczarek1adb1842009-12-21 13:12:20 +000013920interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013921 version_type=linux
13922 need_lib_prefix=no
13923 need_version=no
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=no
13929 hardcode_into_libs=yes
13930 ;;
13931
brynercb91a2f2006-08-25 21:14:45 +000013932irix5* | irix6* | nonstopux*)
13933 case $host_os in
13934 nonstopux*) version_type=nonstopux ;;
13935 *)
13936 if test "$lt_cv_prog_gnu_ld" = yes; then
13937 version_type=linux
13938 else
13939 version_type=irix
13940 fi ;;
13941 esac
13942 need_lib_prefix=no
13943 need_version=no
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13946 case $host_os in
13947 irix5* | nonstopux*)
13948 libsuff= shlibsuff=
13949 ;;
13950 *)
13951 case $LD in # libtool.m4 will add one of these switches to LD
13952 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13953 libsuff= shlibsuff= libmagic=32-bit;;
13954 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13955 libsuff=32 shlibsuff=N32 libmagic=N32;;
13956 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13957 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13958 *) libsuff= shlibsuff= libmagic=never-match;;
13959 esac
13960 ;;
13961 esac
13962 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13963 shlibpath_overrides_runpath=no
13964 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13965 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13966 hardcode_into_libs=yes
13967 ;;
13968
13969# No shared lib support for Linux oldld, aout, or coff.
13970linux*oldld* | linux*aout* | linux*coff*)
13971 dynamic_linker=no
13972 ;;
13973
13974# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000013975linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013976 version_type=linux
13977 need_lib_prefix=no
13978 need_version=no
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980 soname_spec='${libname}${release}${shared_ext}$major'
13981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000013984 # Some binutils ld are patched to set DT_RUNPATH
13985 save_LDFLAGS=$LDFLAGS
13986 save_libdir=$libdir
13987 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13988 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990/* end confdefs.h. */
13991
13992int
13993main ()
13994{
13995
13996 ;
13997 return 0;
13998}
13999_ACEOF
14000if ac_fn_cxx_try_link "$LINENO"; then :
14001 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14002 shlibpath_overrides_runpath=yes
14003fi
14004fi
14005rm -f core conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
14007 LDFLAGS=$save_LDFLAGS
14008 libdir=$save_libdir
14009
brynercb91a2f2006-08-25 21:14:45 +000014010 # This implies no fast_install, which is unacceptable.
14011 # Some rework will be needed to allow for fast_install
14012 # before this can be enabled.
14013 hardcode_into_libs=yes
14014
14015 # Append ld.so.conf contents to the search path
14016 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000014017 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 +000014018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14019 fi
14020
14021 # We used to test for /lib/ld.so.1 and disable shared libraries on
14022 # powerpc, because MkLinux only supported shared libraries with the
14023 # GNU dynamic linker. Since this was broken with cross compilers,
14024 # most powerpc-linux boxes support dynamic linking these days and
14025 # people can always --disable-shared, the test was removed, and we
14026 # assume the GNU/Linux dynamic linker is in use.
14027 dynamic_linker='GNU/Linux ld.so'
14028 ;;
14029
ted.mielczarekb2236272010-04-08 23:06:23 +000014030netbsdelf*-gnu)
14031 version_type=linux
14032 need_lib_prefix=no
14033 need_version=no
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14035 soname_spec='${libname}${release}${shared_ext}$major'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=no
14038 hardcode_into_libs=yes
14039 dynamic_linker='NetBSD ld.elf_so'
14040 ;;
14041
brynercb91a2f2006-08-25 21:14:45 +000014042netbsd*)
14043 version_type=sunos
14044 need_lib_prefix=no
14045 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000014046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14049 dynamic_linker='NetBSD (a.out) ld.so'
14050 else
14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14052 soname_spec='${libname}${release}${shared_ext}$major'
14053 dynamic_linker='NetBSD ld.elf_so'
14054 fi
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes
14057 hardcode_into_libs=yes
14058 ;;
14059
14060newsos6)
14061 version_type=linux
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath=yes
14065 ;;
14066
jimblandy92b1f832009-12-23 22:23:49 +000014067*nto* | *qnx*)
14068 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000014069 need_lib_prefix=no
14070 need_version=no
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014074 shlibpath_overrides_runpath=no
14075 hardcode_into_libs=yes
14076 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000014077 ;;
14078
14079openbsd*)
14080 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000014081 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000014082 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14084 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000014085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14086 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014087 esac
brynercb91a2f2006-08-25 21:14:45 +000014088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14090 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000014092 case $host_os in
14093 openbsd2.[89] | openbsd2.[89].*)
14094 shlibpath_overrides_runpath=no
14095 ;;
14096 *)
14097 shlibpath_overrides_runpath=yes
14098 ;;
14099 esac
14100 else
14101 shlibpath_overrides_runpath=yes
14102 fi
14103 ;;
14104
14105os2*)
14106 libname_spec='$name'
14107 shrext_cmds=".dll"
14108 need_lib_prefix=no
14109 library_names_spec='$libname${shared_ext} $libname.a'
14110 dynamic_linker='OS/2 ld.exe'
14111 shlibpath_var=LIBPATH
14112 ;;
14113
14114osf3* | osf4* | osf5*)
14115 version_type=osf
14116 need_lib_prefix=no
14117 need_version=no
14118 soname_spec='${libname}${release}${shared_ext}$major'
14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14123 ;;
14124
ted.mielczarek1adb1842009-12-21 13:12:20 +000014125rdos*)
14126 dynamic_linker=no
14127 ;;
14128
brynercb91a2f2006-08-25 21:14:45 +000014129solaris*)
14130 version_type=linux
14131 need_lib_prefix=no
14132 need_version=no
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 shlibpath_var=LD_LIBRARY_PATH
14136 shlibpath_overrides_runpath=yes
14137 hardcode_into_libs=yes
14138 # ldd complains unless libraries are executable
14139 postinstall_cmds='chmod +x $lib'
14140 ;;
14141
14142sunos4*)
14143 version_type=sunos
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14145 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14146 shlibpath_var=LD_LIBRARY_PATH
14147 shlibpath_overrides_runpath=yes
14148 if test "$with_gnu_ld" = yes; then
14149 need_lib_prefix=no
14150 fi
14151 need_version=yes
14152 ;;
14153
mmentovai8c2a4de2006-09-20 16:20:15 +000014154sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014155 version_type=linux
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14157 soname_spec='${libname}${release}${shared_ext}$major'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 case $host_vendor in
14160 sni)
14161 shlibpath_overrides_runpath=no
14162 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000014163 runpath_var=LD_RUN_PATH
14164 ;;
14165 siemens)
14166 need_lib_prefix=no
14167 ;;
14168 motorola)
14169 need_lib_prefix=no
14170 need_version=no
14171 shlibpath_overrides_runpath=no
14172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14173 ;;
14174 esac
14175 ;;
14176
14177sysv4*MP*)
14178 if test -d /usr/nec ;then
14179 version_type=linux
14180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14181 soname_spec='$libname${shared_ext}.$major'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 fi
14184 ;;
14185
mmentovai8c2a4de2006-09-20 16:20:15 +000014186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14187 version_type=freebsd-elf
14188 need_lib_prefix=no
14189 need_version=no
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14191 soname_spec='${libname}${release}${shared_ext}$major'
14192 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014193 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014194 hardcode_into_libs=yes
14195 if test "$with_gnu_ld" = yes; then
14196 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014197 else
14198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014199 case $host_os in
14200 sco3.2v5*)
14201 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14202 ;;
14203 esac
14204 fi
14205 sys_lib_dlsearch_path_spec='/usr/lib'
14206 ;;
14207
jimblandy92b1f832009-12-23 22:23:49 +000014208tpf*)
14209 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14210 version_type=linux
14211 need_lib_prefix=no
14212 need_version=no
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14214 shlibpath_var=LD_LIBRARY_PATH
14215 shlibpath_overrides_runpath=no
14216 hardcode_into_libs=yes
14217 ;;
14218
brynercb91a2f2006-08-25 21:14:45 +000014219uts4*)
14220 version_type=linux
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 ;;
14225
14226*)
14227 dynamic_linker=no
14228 ;;
14229esac
jimblandy92b1f832009-12-23 22:23:49 +000014230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14231$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014232test "$dynamic_linker" = no && can_build_shared=no
14233
mmentovai8c2a4de2006-09-20 16:20:15 +000014234variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14235if test "$GCC" = yes; then
14236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14237fi
14238
jimblandy92b1f832009-12-23 22:23:49 +000014239if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14240 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14241fi
14242if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14244fi
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14282$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014283hardcode_action_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000014284if test -n "$hardcode_libdir_flag_spec_CXX" ||
14285 test -n "$runpath_var_CXX" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000014286 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014287
jimblandy92b1f832009-12-23 22:23:49 +000014288 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000014289 if test "$hardcode_direct_CXX" != no &&
14290 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14291 # have to relink, otherwise we might link with an installed library
14292 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000014293 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
brynercb91a2f2006-08-25 21:14:45 +000014294 test "$hardcode_minus_L_CXX" != no; then
14295 # Linking always hardcodes the temporary library directory.
14296 hardcode_action_CXX=relink
14297 else
14298 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14299 hardcode_action_CXX=immediate
14300 fi
14301else
14302 # We cannot hardcode anything, or else we can only hardcode existing
14303 # directories.
14304 hardcode_action_CXX=unsupported
14305fi
jimblandy92b1f832009-12-23 22:23:49 +000014306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14307$as_echo "$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014308
jimblandy92b1f832009-12-23 22:23:49 +000014309if test "$hardcode_action_CXX" = relink ||
14310 test "$inherit_rpath_CXX" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014311 # Fast installation is not supported
14312 enable_fast_install=no
14313elif test "$shlibpath_overrides_runpath" = yes ||
14314 test "$enable_shared" = no; then
14315 # Fast installation is not necessary
14316 enable_fast_install=needless
14317fi
14318
brynercb91a2f2006-08-25 21:14:45 +000014319
brynercb91a2f2006-08-25 21:14:45 +000014320
brynercb91a2f2006-08-25 21:14:45 +000014321
brynercb91a2f2006-08-25 21:14:45 +000014322
brynercb91a2f2006-08-25 21:14:45 +000014323
brynercb91a2f2006-08-25 21:14:45 +000014324
jimblandy92b1f832009-12-23 22:23:49 +000014325 fi # test -n "$compiler"
brynercb91a2f2006-08-25 21:14:45 +000014326
jimblandy92b1f832009-12-23 22:23:49 +000014327 CC=$lt_save_CC
14328 LDCXX=$LD
14329 LD=$lt_save_LD
14330 GCC=$lt_save_GCC
14331 with_gnu_ld=$lt_save_with_gnu_ld
14332 lt_cv_path_LDCXX=$lt_cv_path_LD
14333 lt_cv_path_LD=$lt_save_path_LD
14334 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14335 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14336fi # test "$_lt_caught_CXX_error" != yes
brynercb91a2f2006-08-25 21:14:45 +000014337
14338ac_ext=c
14339ac_cpp='$CPP $CPPFLAGS'
14340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14342ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343
brynercb91a2f2006-08-25 21:14:45 +000014344
14345
brynercb91a2f2006-08-25 21:14:45 +000014346
14347
mmentovai8c2a4de2006-09-20 16:20:15 +000014348
14349
brynercb91a2f2006-08-25 21:14:45 +000014350
brynercb91a2f2006-08-25 21:14:45 +000014351
mmentovai8c2a4de2006-09-20 16:20:15 +000014352
brynercb91a2f2006-08-25 21:14:45 +000014353
brynercb91a2f2006-08-25 21:14:45 +000014354
brynerd5e66382006-09-08 02:35:53 +000014355
jimblandy92b1f832009-12-23 22:23:49 +000014356 ac_config_commands="$ac_config_commands libtool"
brynercb91a2f2006-08-25 21:14:45 +000014357
brynercb91a2f2006-08-25 21:14:45 +000014358
brynercb91a2f2006-08-25 21:14:45 +000014359
brynercb91a2f2006-08-25 21:14:45 +000014360
jimblandy92b1f832009-12-23 22:23:49 +000014361# Only expand once:
brynercb91a2f2006-08-25 21:14:45 +000014362
brynercb91a2f2006-08-25 21:14:45 +000014363
brynercb91a2f2006-08-25 21:14:45 +000014364
brynercb91a2f2006-08-25 21:14:45 +000014365
jimblandy92b1f832009-12-23 22:23:49 +000014366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14367$as_echo_n "checking for ANSI C header files... " >&6; }
14368if test "${ac_cv_header_stdc+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000014370else
jimblandy92b1f832009-12-23 22:23:49 +000014371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014372/* end confdefs.h. */
14373#include <stdlib.h>
14374#include <stdarg.h>
14375#include <string.h>
14376#include <float.h>
14377
14378int
14379main ()
14380{
14381
14382 ;
14383 return 0;
14384}
14385_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014386if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000014387 ac_cv_header_stdc=yes
14388else
jimblandy92b1f832009-12-23 22:23:49 +000014389 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014390fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014392
14393if test $ac_cv_header_stdc = yes; then
14394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014396/* end confdefs.h. */
14397#include <string.h>
14398
14399_ACEOF
14400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014401 $EGREP "memchr" >/dev/null 2>&1; then :
14402
brynercb91a2f2006-08-25 21:14:45 +000014403else
14404 ac_cv_header_stdc=no
14405fi
14406rm -f conftest*
14407
14408fi
14409
14410if test $ac_cv_header_stdc = yes; then
14411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014413/* end confdefs.h. */
14414#include <stdlib.h>
14415
14416_ACEOF
14417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014418 $EGREP "free" >/dev/null 2>&1; then :
14419
brynercb91a2f2006-08-25 21:14:45 +000014420else
14421 ac_cv_header_stdc=no
14422fi
14423rm -f conftest*
14424
14425fi
14426
14427if test $ac_cv_header_stdc = yes; then
14428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +000014429 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +000014430 :
14431else
jimblandy92b1f832009-12-23 22:23:49 +000014432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014433/* end confdefs.h. */
14434#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000014435#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000014436#if ((' ' & 0x0FF) == 0x020)
14437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14439#else
14440# define ISLOWER(c) \
14441 (('a' <= (c) && (c) <= 'i') \
14442 || ('j' <= (c) && (c) <= 'r') \
14443 || ('s' <= (c) && (c) <= 'z'))
14444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14445#endif
14446
14447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14448int
14449main ()
14450{
14451 int i;
14452 for (i = 0; i < 256; i++)
14453 if (XOR (islower (i), ISLOWER (i))
14454 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000014455 return 2;
14456 return 0;
brynercb91a2f2006-08-25 21:14:45 +000014457}
14458_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014459if ac_fn_c_try_run "$LINENO"; then :
14460
brynercb91a2f2006-08-25 21:14:45 +000014461else
jimblandy92b1f832009-12-23 22:23:49 +000014462 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014463fi
jimblandy92b1f832009-12-23 22:23:49 +000014464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14465 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014466fi
14467
brynercb91a2f2006-08-25 21:14:45 +000014468fi
14469fi
jimblandy92b1f832009-12-23 22:23:49 +000014470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14471$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014472if test $ac_cv_header_stdc = yes; then
14473
jimblandy92b1f832009-12-23 22:23:49 +000014474$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +000014475
14476fi
14477
nealsidde545c02010-03-02 00:39:48 +000014478# ===========================================================================
14479# http://www.nongnu.org/autoconf-archive/ax_pthread.html
14480# ===========================================================================
14481#
14482# SYNOPSIS
14483#
14484# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
14485#
14486# DESCRIPTION
14487#
14488# This macro figures out how to build C programs using POSIX threads. It
14489# sets the PTHREAD_LIBS output variable to the threads library and linker
14490# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
14491# flags that are needed. (The user can also force certain compiler
14492# flags/libs to be tested by setting these environment variables.)
14493#
14494# Also sets PTHREAD_CC to any special C compiler that is needed for
14495# multi-threaded programs (defaults to the value of CC otherwise). (This
14496# is necessary on AIX to use the special cc_r compiler alias.)
14497#
14498# NOTE: You are assumed to not only compile your program with these flags,
14499# but also link it with them as well. e.g. you should link with
14500# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
14501#
14502# If you are only building threads programs, you may wish to use these
14503# variables in your default LIBS, CFLAGS, and CC:
14504#
14505# LIBS="$PTHREAD_LIBS $LIBS"
14506# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14507# CC="$PTHREAD_CC"
14508#
14509# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
14510# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
14511# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
14512#
14513# ACTION-IF-FOUND is a list of shell commands to run if a threads library
14514# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
14515# is not found. If ACTION-IF-FOUND is not specified, the default action
14516# will define HAVE_PTHREAD.
14517#
14518# Please let the authors know if this macro fails on any platform, or if
14519# you have any other suggestions or comments. This macro was based on work
14520# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
14521# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
14522# Alejandro Forero Cuervo to the autoconf macro repository. We are also
14523# grateful for the helpful feedback of numerous users.
14524#
14525# LICENSE
14526#
14527# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
14528#
14529# This program is free software: you can redistribute it and/or modify it
14530# under the terms of the GNU General Public License as published by the
14531# Free Software Foundation, either version 3 of the License, or (at your
14532# option) any later version.
14533#
14534# This program is distributed in the hope that it will be useful, but
14535# WITHOUT ANY WARRANTY; without even the implied warranty of
14536# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14537# Public License for more details.
14538#
14539# You should have received a copy of the GNU General Public License along
14540# with this program. If not, see <http://www.gnu.org/licenses/>.
14541#
14542# As a special exception, the respective Autoconf Macro's copyright owner
14543# gives unlimited permission to copy, distribute and modify the configure
14544# scripts that are the output of Autoconf when processing the Macro. You
14545# need not follow the terms of the GNU General Public License when using
14546# or distributing such scripts, even though portions of the text of the
14547# Macro appear in them. The GNU General Public License (GPL) does govern
14548# all other use of the material that constitutes the Autoconf Macro.
14549#
14550# This special exception to the GPL applies to versions of the Autoconf
14551# Macro released by the Autoconf Archive. When you make and distribute a
14552# modified version of the Autoconf Macro, you may extend this special
14553# exception to the GPL to apply to your modified version as well.
14554
14555#serial 6
14556
14557# This is what autoupdate's m4 run will expand. It fires
14558# the warning (with _au_warn_XXX), outputs it into the
14559# updated configure.ac (with AC_DIAGNOSE), and then outputs
14560# the replacement expansion.
14561
14562
14563# This is an auxiliary macro that is also run when
14564# autoupdate runs m4. It simply calls m4_warning, but
14565# we need a wrapper so that each warning is emitted only
14566# once. We break the quoting in m4_warning's argument in
14567# order to expand this macro's arguments, not AU_DEFUN's.
14568
14569
14570# Finally, this is the expansion that is picked up by
14571# autoconf. It tells the user to run autoupdate, and
14572# then outputs the replacement expansion. We do not care
14573# about autoupdate's warning because that contains
14574# information on what to do *after* running autoupdate.
14575
14576
14577
14578
14579ac_ext=c
14580ac_cpp='$CPP $CPPFLAGS'
14581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14583ac_compiler_gnu=$ac_cv_c_compiler_gnu
14584
14585ax_pthread_ok=no
14586
14587# We used to check for pthread.h first, but this fails if pthread.h
14588# requires special compiler flags (e.g. on True64 or Sequent).
14589# It gets checked for in the link test anyway.
14590
14591# First of all, check if the user has set any of the PTHREAD_LIBS,
14592# etcetera environment variables, and if threads linking works using
14593# them:
14594if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14595 save_CFLAGS="$CFLAGS"
14596 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14597 save_LIBS="$LIBS"
14598 LIBS="$PTHREAD_LIBS $LIBS"
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14600$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602/* end confdefs.h. */
14603
14604/* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14607#ifdef __cplusplus
14608extern "C"
14609#endif
14610char pthread_join ();
14611int
14612main ()
14613{
14614return pthread_join ();
14615 ;
14616 return 0;
14617}
14618_ACEOF
14619if ac_fn_c_try_link "$LINENO"; then :
14620 ax_pthread_ok=yes
14621fi
14622rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14625$as_echo "$ax_pthread_ok" >&6; }
14626 if test x"$ax_pthread_ok" = xno; then
14627 PTHREAD_LIBS=""
14628 PTHREAD_CFLAGS=""
14629 fi
14630 LIBS="$save_LIBS"
14631 CFLAGS="$save_CFLAGS"
14632fi
14633
14634# We must check for the threads library under a number of different
14635# names; the ordering is very important because some systems
14636# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14637# libraries is broken (non-POSIX).
14638
14639# Create a list of thread flags to try. Items starting with a "-" are
14640# C compiler flags, and other items are library names, except for "none"
14641# which indicates that we try without any flags at all, and "pthread-config"
14642# which is a program returning the flags for the Pth emulation library.
14643
14644ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14645
14646# The ordering *is* (sometimes) important. Some notes on the
14647# individual items follow:
14648
14649# pthreads: AIX (must check this before -lpthread)
14650# none: in case threads are in libc; should be tried before -Kthread and
14651# other compiler flags to prevent continual compiler warnings
14652# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14653# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14654# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14655# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14656# -pthreads: Solaris/gcc
14657# -mthreads: Mingw32/gcc, Lynx/gcc
14658# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14659# doesn't hurt to check since this sometimes defines pthreads too;
14660# also defines -D_REENTRANT)
14661# ... -mt is also the pthreads flag for HP/aCC
14662# pthread: Linux, etcetera
14663# --thread-safe: KAI C++
14664# pthread-config: use pthread-config program (for GNU Pth library)
14665
14666case "${host_cpu}-${host_os}" in
14667 *solaris*)
14668
14669 # On Solaris (at least, for some versions), libc contains stubbed
14670 # (non-functional) versions of the pthreads routines, so link-based
14671 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14672 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14673 # a function called by this macro, so we could check for that, but
14674 # who knows whether they'll stub that too in a future libc.) So,
14675 # we'll just look for -pthreads and -lpthread first:
14676
14677 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14678 ;;
14679
14680 *-darwin*)
14681 acx_pthread_flags="-pthread $acx_pthread_flags"
14682 ;;
14683esac
14684
14685if test x"$ax_pthread_ok" = xno; then
14686for flag in $ax_pthread_flags; do
14687
14688 case $flag in
14689 none)
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14691$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14692 ;;
14693
14694 -*)
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14696$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14697 PTHREAD_CFLAGS="$flag"
14698 ;;
14699
14700 pthread-config)
14701 # Extract the first word of "pthread-config", so it can be a program name with args.
14702set dummy pthread-config; ac_word=$2
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14704$as_echo_n "checking for $ac_word... " >&6; }
14705if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14707else
14708 if test -n "$ax_pthread_config"; then
14709 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14710else
14711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712for as_dir in $PATH
14713do
14714 IFS=$as_save_IFS
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14718 ac_cv_prog_ax_pthread_config="yes"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14720 break 2
14721 fi
14722done
14723 done
14724IFS=$as_save_IFS
14725
14726 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14727fi
14728fi
14729ax_pthread_config=$ac_cv_prog_ax_pthread_config
14730if test -n "$ax_pthread_config"; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14732$as_echo "$ax_pthread_config" >&6; }
14733else
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735$as_echo "no" >&6; }
14736fi
14737
14738
14739 if test x"$ax_pthread_config" = xno; then continue; fi
14740 PTHREAD_CFLAGS="`pthread-config --cflags`"
14741 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14742 ;;
14743
14744 *)
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14746$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14747 PTHREAD_LIBS="-l$flag"
14748 ;;
14749 esac
14750
14751 save_LIBS="$LIBS"
14752 save_CFLAGS="$CFLAGS"
14753 LIBS="$PTHREAD_LIBS $LIBS"
14754 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14755
14756 # Check for various functions. We must include pthread.h,
14757 # since some functions may be macros. (On the Sequent, we
14758 # need a special flag -Kthread to make this header compile.)
14759 # We check for pthread_join because it is in -lpthread on IRIX
14760 # while pthread_create is in libc. We check for pthread_attr_init
14761 # due to DEC craziness with -lpthreads. We check for
14762 # pthread_cleanup_push because it is one of the few pthread
14763 # functions on Solaris that doesn't have a non-functional libc stub.
14764 # We try pthread_create on general principles.
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766/* end confdefs.h. */
14767#include <pthread.h>
14768 static void routine(void* a) {a=0;}
14769 static void* start_routine(void* a) {return a;}
14770int
14771main ()
14772{
14773pthread_t th; pthread_attr_t attr;
14774 pthread_join(th, 0);
14775 pthread_attr_init(&attr);
14776 pthread_cleanup_push(routine, 0);
14777 pthread_create(&th,0,start_routine,0);
14778 pthread_cleanup_pop(0);
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783if ac_fn_c_try_link "$LINENO"; then :
14784 ax_pthread_ok=yes
14785fi
14786rm -f core conftest.err conftest.$ac_objext \
14787 conftest$ac_exeext conftest.$ac_ext
14788
14789 LIBS="$save_LIBS"
14790 CFLAGS="$save_CFLAGS"
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14793$as_echo "$ax_pthread_ok" >&6; }
14794 if test "x$ax_pthread_ok" = xyes; then
14795 break;
14796 fi
14797
14798 PTHREAD_LIBS=""
14799 PTHREAD_CFLAGS=""
14800done
14801fi
14802
14803# Various other checks:
14804if test "x$ax_pthread_ok" = xyes; then
14805 save_LIBS="$LIBS"
14806 LIBS="$PTHREAD_LIBS $LIBS"
14807 save_CFLAGS="$CFLAGS"
14808 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14809
14810 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14812$as_echo_n "checking for joinable pthread attribute... " >&6; }
14813 attr_name=unknown
14814 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h. */
14817#include <pthread.h>
14818int
14819main ()
14820{
14821int attr=$attr; return attr;
14822 ;
14823 return 0;
14824}
14825_ACEOF
14826if ac_fn_c_try_link "$LINENO"; then :
14827 attr_name=$attr; break
14828fi
14829rm -f core conftest.err conftest.$ac_objext \
14830 conftest$ac_exeext conftest.$ac_ext
14831 done
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14833$as_echo "$attr_name" >&6; }
14834 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14835
14836cat >>confdefs.h <<_ACEOF
14837#define PTHREAD_CREATE_JOINABLE $attr_name
14838_ACEOF
14839
14840 fi
14841
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14843$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14844 flag=no
14845 case "${host_cpu}-${host_os}" in
14846 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14847 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14848 esac
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14850$as_echo "${flag}" >&6; }
14851 if test "x$flag" != xno; then
14852 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14853 fi
14854
14855 LIBS="$save_LIBS"
14856 CFLAGS="$save_CFLAGS"
14857
14858 # More AIX lossage: must compile with xlc_r or cc_r
14859 if test x"$GCC" != xyes; then
14860 for ac_prog in xlc_r cc_r
14861do
14862 # Extract the first word of "$ac_prog", so it can be a program name with args.
14863set dummy $ac_prog; ac_word=$2
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14865$as_echo_n "checking for $ac_word... " >&6; }
14866if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14868else
14869 if test -n "$PTHREAD_CC"; then
14870 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14871else
14872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14873for as_dir in $PATH
14874do
14875 IFS=$as_save_IFS
14876 test -z "$as_dir" && as_dir=.
14877 for ac_exec_ext in '' $ac_executable_extensions; do
14878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14879 ac_cv_prog_PTHREAD_CC="$ac_prog"
14880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14881 break 2
14882 fi
14883done
14884 done
14885IFS=$as_save_IFS
14886
14887fi
14888fi
14889PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14890if test -n "$PTHREAD_CC"; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14892$as_echo "$PTHREAD_CC" >&6; }
14893else
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895$as_echo "no" >&6; }
14896fi
14897
14898
14899 test -n "$PTHREAD_CC" && break
14900done
14901test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14902
14903 else
14904 PTHREAD_CC=$CC
14905 fi
14906else
14907 PTHREAD_CC="$CC"
14908fi
14909
14910
14911
14912
14913
14914# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14915if test x"$ax_pthread_ok" = xyes; then
14916
14917$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14918
14919 :
14920else
14921 ax_pthread_ok=no
14922
14923fi
14924ac_ext=c
14925ac_cpp='$CPP $CPPFLAGS'
14926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14928ac_compiler_gnu=$ac_cv_c_compiler_gnu
14929
14930
14931
14932# Check whether --enable-m32 was given.
14933if test "${enable_m32+set}" = set; then :
14934 enableval=$enable_m32; case "${enableval}" in
14935 yes)
14936 CFLAGS=$(CFLAGS) -m32
14937 usem32=true
14938 ;;
14939 no)
14940 usem32=false
14941 ;;
14942 *)
14943 as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5
14944 ;;
14945 esac
14946else
14947 usem32=false
14948fi
14949
brynercb91a2f2006-08-25 21:14:45 +000014950
ted.mielczarekb2236272010-04-08 23:06:23 +000014951ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14952"
14953if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
14954
14955$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h
14956
14957else
14958
14959$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\
14960 ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h
14961
14962fi
14963
14964
mmentovai0dbedc92006-09-25 21:16:15 +000014965# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +000014966if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +000014967 enableval=$enable_selftest; case "${enableval}" in
14968 yes)
14969 selftest=true
14970 ;;
14971 no)
14972 selftest=false
14973 ;;
14974 *)
jimblandy92b1f832009-12-23 22:23:49 +000014975 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000014976 ;;
14977 esac
14978else
14979 selftest=false
14980fi
14981
mmentovaiaf3c43f2007-05-17 18:34:37 +000014982 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000014983 SELFTEST_TRUE=
14984 SELFTEST_FALSE='#'
14985else
14986 SELFTEST_TRUE='#'
14987 SELFTEST_FALSE=
14988fi
14989
14990
mmentovai8c2a4de2006-09-20 16:20:15 +000014991ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000014992
14993cat >confcache <<\_ACEOF
14994# This file is a shell script that caches the results of configure
14995# tests run on this system so they can be shared between configure
14996# scripts and configure runs, see configure's option --config-cache.
14997# It is not useful on other systems. If it contains results you don't
14998# want to keep, you may remove or edit it.
14999#
15000# config.status only pays attention to the cache file if you give it
15001# the --recheck option to rerun configure.
15002#
15003# `ac_cv_env_foo' variables (set or unset) will be overridden when
15004# loading this file, other *unset* `ac_cv_foo' will be assigned the
15005# following values.
15006
15007_ACEOF
15008
15009# The following way of writing the cache mishandles newlines in values,
15010# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000015011# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000015012# Ultrix sh set writes to stderr and can't be redirected directly,
15013# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000015014(
15015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15016 eval ac_val=\$$ac_var
15017 case $ac_val in #(
15018 *${as_nl}*)
15019 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +000015020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15021$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015022 esac
15023 case $ac_var in #(
15024 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +000015025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15026 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015027 esac ;;
15028 esac
15029 done
15030
brynercb91a2f2006-08-25 21:14:45 +000015031 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000015032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15033 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +000015034 # `set' does not quote correctly, so add quotes: double-quote
15035 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +000015036 sed -n \
15037 "s/'/'\\\\''/g;
15038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000015039 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000015040 *)
15041 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000015042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000015043 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015044 esac |
15045 sort
15046) |
brynercb91a2f2006-08-25 21:14:45 +000015047 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000015048 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000015049 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000015050 :clear
brynercb91a2f2006-08-25 21:14:45 +000015051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15052 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000015053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15054 :end' >>confcache
15055if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15056 if test -w "$cache_file"; then
15057 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +000015058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15059$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015060 cat confcache >$cache_file
15061 else
jimblandy92b1f832009-12-23 22:23:49 +000015062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15063$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015064 fi
15065fi
15066rm -f confcache
15067
15068test "x$prefix" = xNONE && prefix=$ac_default_prefix
15069# Let make expand exec_prefix.
15070test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15071
brynercb91a2f2006-08-25 21:14:45 +000015072DEFS=-DHAVE_CONFIG_H
15073
15074ac_libobjs=
15075ac_ltlibobjs=
15076for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15077 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000015078 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +000015079 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +000015080 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15081 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +000015082 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15083 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000015084done
15085LIBOBJS=$ac_libobjs
15086
15087LTLIBOBJS=$ac_ltlibobjs
15088
15089
jimblandy92b1f832009-12-23 22:23:49 +000015090 if test -n "$EXEEXT"; then
15091 am__EXEEXT_TRUE=
15092 am__EXEEXT_FALSE='#'
15093else
15094 am__EXEEXT_TRUE='#'
15095 am__EXEEXT_FALSE=
15096fi
15097
brynercb91a2f2006-08-25 21:14:45 +000015098if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015099 as_fn_error "conditional \"AMDEP\" was never defined.
15100Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015101fi
15102if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015103 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15104Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015105fi
15106if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015107 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15108Usually this means the macro was only invoked conditionally." "$LINENO" 5
15109fi
15110if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15111 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15112Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015113fi
mmentovai0dbedc92006-09-25 21:16:15 +000015114if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015115 as_fn_error "conditional \"SELFTEST\" was never defined.
15116Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000015117fi
brynercb91a2f2006-08-25 21:14:45 +000015118
15119: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +000015120ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +000015121ac_clean_files_save=$ac_clean_files
15122ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +000015123{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15124$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15125as_write_fail=0
15126cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015127#! $SHELL
15128# Generated by $as_me.
15129# Run this file to recreate the current configuration.
15130# Compiler output produced by configure, useful for debugging
15131# configure, is in config.log if it exists.
15132
15133debug=false
15134ac_cs_recheck=false
15135ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +000015136
jimblandy92b1f832009-12-23 22:23:49 +000015137SHELL=\${CONFIG_SHELL-$SHELL}
15138export SHELL
15139_ASEOF
15140cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15141## -------------------- ##
15142## M4sh Initialization. ##
15143## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000015144
mmentovaiaf3c43f2007-05-17 18:34:37 +000015145# Be more Bourne compatible
15146DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000015147if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000015148 emulate sh
15149 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000015150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000015151 # is contrary to our usage. Disable this feature.
15152 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000015153 setopt NO_GLOB_SUBST
15154else
jimblandy92b1f832009-12-23 22:23:49 +000015155 case `(set -o) 2>/dev/null` in #(
15156 *posix*) :
15157 set -o posix ;; #(
15158 *) :
15159 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015160esac
brynercb91a2f2006-08-25 21:14:45 +000015161fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015162
15163
jimblandy92b1f832009-12-23 22:23:49 +000015164as_nl='
15165'
15166export as_nl
15167# Printing a long string crashes Solaris 7 /usr/bin/printf.
15168as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15169as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15170as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15171# Prefer a ksh shell builtin over an external printf program on Solaris,
15172# but without wasting forks for bash or zsh.
15173if test -z "$BASH_VERSION$ZSH_VERSION" \
15174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15175 as_echo='print -r --'
15176 as_echo_n='print -rn --'
15177elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15178 as_echo='printf %s\n'
15179 as_echo_n='printf %s'
15180else
15181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15183 as_echo_n='/usr/ucb/echo -n'
15184 else
15185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15186 as_echo_n_body='eval
15187 arg=$1;
15188 case $arg in #(
15189 *"$as_nl"*)
15190 expr "X$arg" : "X\\(.*\\)$as_nl";
15191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15192 esac;
15193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15194 '
15195 export as_echo_n_body
15196 as_echo_n='sh -c $as_echo_n_body as_echo'
15197 fi
15198 export as_echo_body
15199 as_echo='sh -c $as_echo_body as_echo'
15200fi
brynercb91a2f2006-08-25 21:14:45 +000015201
15202# The user is always right.
15203if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000015204 PATH_SEPARATOR=:
15205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15207 PATH_SEPARATOR=';'
15208 }
mmentovai8c2a4de2006-09-20 16:20:15 +000015209fi
brynercb91a2f2006-08-25 21:14:45 +000015210
mmentovai8c2a4de2006-09-20 16:20:15 +000015211
15212# IFS
15213# We need space, tab and new line, in precisely that order. Quoting is
15214# there to prevent editors from complaining about space-tab.
15215# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15216# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000015217IFS=" "" $as_nl"
15218
15219# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000015220case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000015221 *[\\/]* ) as_myself=$0 ;;
15222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000015223for as_dir in $PATH
15224do
15225 IFS=$as_save_IFS
15226 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000015227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15228 done
mmentovai8c2a4de2006-09-20 16:20:15 +000015229IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000015230
mmentovai8c2a4de2006-09-20 16:20:15 +000015231 ;;
15232esac
15233# We did not find ourselves, most probably we were run as `sh COMMAND'
15234# in which case we are not to be found in the path.
15235if test "x$as_myself" = x; then
15236 as_myself=$0
15237fi
15238if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +000015239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15240 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +000015241fi
15242
jimblandy92b1f832009-12-23 22:23:49 +000015243# Unset variables that we do not need and which cause bugs (e.g. in
15244# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15245# suppresses any "Segmentation fault" message there. '((' could
15246# trigger a bug in pdksh 5.2.14.
15247for as_var in BASH_ENV ENV MAIL MAILPATH
15248do eval test x\${$as_var+set} = xset \
15249 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +000015250done
15251PS1='$ '
15252PS2='> '
15253PS4='+ '
15254
15255# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +000015256LC_ALL=C
15257export LC_ALL
15258LANGUAGE=C
15259export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +000015260
jimblandy92b1f832009-12-23 22:23:49 +000015261# CDPATH.
15262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15263
15264
15265# as_fn_error ERROR [LINENO LOG_FD]
15266# ---------------------------------
15267# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15268# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15269# script with status $?, using 1 if that was 0.
15270as_fn_error ()
15271{
15272 as_status=$?; test $as_status -eq 0 && as_status=1
15273 if test "$3"; then
15274 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15276 fi
15277 $as_echo "$as_me: error: $1" >&2
15278 as_fn_exit $as_status
15279} # as_fn_error
15280
15281
15282# as_fn_set_status STATUS
15283# -----------------------
15284# Set $? to STATUS, without forking.
15285as_fn_set_status ()
15286{
15287 return $1
15288} # as_fn_set_status
15289
15290# as_fn_exit STATUS
15291# -----------------
15292# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15293as_fn_exit ()
15294{
15295 set +e
15296 as_fn_set_status $1
15297 exit $1
15298} # as_fn_exit
15299
15300# as_fn_unset VAR
15301# ---------------
15302# Portably unset VAR.
15303as_fn_unset ()
15304{
15305 { eval $1=; unset $1;}
15306}
15307as_unset=as_fn_unset
15308# as_fn_append VAR VALUE
15309# ----------------------
15310# Append the text in VALUE to the end of the definition contained in VAR. Take
15311# advantage of any shell optimizations that allow amortized linear growth over
15312# repeated appends, instead of the typical quadratic growth present in naive
15313# implementations.
15314if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15315 eval 'as_fn_append ()
15316 {
15317 eval $1+=\$2
15318 }'
15319else
15320 as_fn_append ()
15321 {
15322 eval $1=\$$1\$2
15323 }
15324fi # as_fn_append
15325
15326# as_fn_arith ARG...
15327# ------------------
15328# Perform arithmetic evaluation on the ARGs, and store the result in the
15329# global $as_val. Take advantage of shells that can avoid forks. The arguments
15330# must be portable across $(()) and expr.
15331if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15332 eval 'as_fn_arith ()
15333 {
15334 as_val=$(( $* ))
15335 }'
15336else
15337 as_fn_arith ()
15338 {
15339 as_val=`expr "$@" || test $? -eq 1`
15340 }
15341fi # as_fn_arith
15342
15343
mmentovai8c2a4de2006-09-20 16:20:15 +000015344if expr a : '\(a\)' >/dev/null 2>&1 &&
15345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15346 as_expr=expr
15347else
15348 as_expr=false
15349fi
15350
15351if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15352 as_basename=basename
15353else
15354 as_basename=false
15355fi
15356
jimblandy92b1f832009-12-23 22:23:49 +000015357if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15358 as_dirname=dirname
15359else
15360 as_dirname=false
15361fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015362
mmentovai8c2a4de2006-09-20 16:20:15 +000015363as_me=`$as_basename -- "$0" ||
15364$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15365 X"$0" : 'X\(//\)$' \| \
15366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000015367$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +000015368 sed '/^.*\/\([^/][^/]*\)\/*$/{
15369 s//\1/
15370 q
15371 }
15372 /^X\/\(\/\/\)$/{
15373 s//\1/
15374 q
15375 }
15376 /^X\/\(\/\).*/{
15377 s//\1/
15378 q
15379 }
15380 s/.*/./; q'`
15381
jimblandy92b1f832009-12-23 22:23:49 +000015382# Avoid depending upon Character Ranges.
15383as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15384as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15385as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15386as_cr_digits='0123456789'
15387as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +000015388
15389ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +000015390case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +000015391-n*)
jimblandy92b1f832009-12-23 22:23:49 +000015392 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +000015393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +000015394 xy) ECHO_C='\c';;
15395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15396 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +000015397 esac;;
15398*)
15399 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000015400esac
15401
brynercb91a2f2006-08-25 21:14:45 +000015402rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000015403if test -d conf$$.dir; then
15404 rm -f conf$$.dir/conf$$.file
15405else
15406 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +000015407 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +000015408fi
jimblandy92b1f832009-12-23 22:23:49 +000015409if (echo >conf$$.file) 2>/dev/null; then
15410 if ln -s conf$$.file conf$$ 2>/dev/null; then
15411 as_ln_s='ln -s'
15412 # ... but there are two gotchas:
15413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15415 # In both cases, we have to default to `cp -p'.
15416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15417 as_ln_s='cp -p'
15418 elif ln conf$$.file conf$$ 2>/dev/null; then
15419 as_ln_s=ln
15420 else
brynercb91a2f2006-08-25 21:14:45 +000015421 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +000015422 fi
brynercb91a2f2006-08-25 21:14:45 +000015423else
15424 as_ln_s='cp -p'
15425fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015426rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15427rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000015428
jimblandy92b1f832009-12-23 22:23:49 +000015429
15430# as_fn_mkdir_p
15431# -------------
15432# Create "$as_dir" as a directory, including parents if necessary.
15433as_fn_mkdir_p ()
15434{
15435
15436 case $as_dir in #(
15437 -*) as_dir=./$as_dir;;
15438 esac
15439 test -d "$as_dir" || eval $as_mkdir_p || {
15440 as_dirs=
15441 while :; do
15442 case $as_dir in #(
15443 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15444 *) as_qdir=$as_dir;;
15445 esac
15446 as_dirs="'$as_qdir' $as_dirs"
15447 as_dir=`$as_dirname -- "$as_dir" ||
15448$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15449 X"$as_dir" : 'X\(//\)[^/]' \| \
15450 X"$as_dir" : 'X\(//\)$' \| \
15451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15452$as_echo X"$as_dir" |
15453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15454 s//\1/
15455 q
15456 }
15457 /^X\(\/\/\)[^/].*/{
15458 s//\1/
15459 q
15460 }
15461 /^X\(\/\/\)$/{
15462 s//\1/
15463 q
15464 }
15465 /^X\(\/\).*/{
15466 s//\1/
15467 q
15468 }
15469 s/.*/./; q'`
15470 test -d "$as_dir" && break
15471 done
15472 test -z "$as_dirs" || eval "mkdir $as_dirs"
15473 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15474
15475
15476} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000015477if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +000015478 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +000015479else
15480 test -d ./-p && rmdir ./-p
15481 as_mkdir_p=false
15482fi
15483
mmentovaiaf3c43f2007-05-17 18:34:37 +000015484if test -x / >/dev/null 2>&1; then
15485 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000015486else
mmentovaiaf3c43f2007-05-17 18:34:37 +000015487 if ls -dL / >/dev/null 2>&1; then
15488 as_ls_L_option=L
15489 else
15490 as_ls_L_option=
15491 fi
15492 as_test_x='
15493 eval sh -c '\''
15494 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +000015495 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +000015496 else
jimblandy92b1f832009-12-23 22:23:49 +000015497 case $1 in #(
15498 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015499 esac;
jimblandy92b1f832009-12-23 22:23:49 +000015500 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +000015501 ???[sx]*):;;*)false;;esac;fi
15502 '\'' sh
15503 '
mmentovai8c2a4de2006-09-20 16:20:15 +000015504fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015505as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000015506
15507# Sed expression to map a string onto a valid CPP name.
15508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15509
15510# Sed expression to map a string onto a valid variable name.
15511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15512
15513
brynercb91a2f2006-08-25 21:14:45 +000015514exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +000015515## ----------------------------------- ##
15516## Main body of $CONFIG_STATUS script. ##
15517## ----------------------------------- ##
15518_ASEOF
15519test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015520
jimblandy92b1f832009-12-23 22:23:49 +000015521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15522# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000015523# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000015524# values after options handling.
15525ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000015526This file was extended by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +000015527generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000015528
15529 CONFIG_FILES = $CONFIG_FILES
15530 CONFIG_HEADERS = $CONFIG_HEADERS
15531 CONFIG_LINKS = $CONFIG_LINKS
15532 CONFIG_COMMANDS = $CONFIG_COMMANDS
15533 $ $0 $@
15534
mmentovai8c2a4de2006-09-20 16:20:15 +000015535on `(hostname || uname -n) 2>/dev/null | sed 1q`
15536"
15537
brynercb91a2f2006-08-25 21:14:45 +000015538_ACEOF
15539
jimblandy92b1f832009-12-23 22:23:49 +000015540case $ac_config_files in *"
15541"*) set x $ac_config_files; shift; ac_config_files=$*;;
15542esac
15543
15544case $ac_config_headers in *"
15545"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15546esac
15547
15548
15549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015550# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000015551config_files="$ac_config_files"
15552config_headers="$ac_config_headers"
15553config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000015554
mmentovai8c2a4de2006-09-20 16:20:15 +000015555_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000015556
jimblandy92b1f832009-12-23 22:23:49 +000015557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015558ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +000015559\`$as_me' instantiates files and other configuration actions
15560from templates according to the current configuration. Unless the files
15561and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +000015562
jimblandy92b1f832009-12-23 22:23:49 +000015563Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +000015564
15565 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000015566 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +000015567 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +000015568 -q, --quiet, --silent
15569 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +000015570 -d, --debug don't remove temporary files
15571 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +000015572 --file=FILE[:TEMPLATE]
15573 instantiate the configuration file FILE
15574 --header=FILE[:TEMPLATE]
15575 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +000015576
15577Configuration files:
15578$config_files
15579
15580Configuration headers:
15581$config_headers
15582
15583Configuration commands:
15584$config_commands
15585
jimblandy92b1f832009-12-23 22:23:49 +000015586Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +000015587
mmentovai8c2a4de2006-09-20 16:20:15 +000015588_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +000015590ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +000015591ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000015592breakpad config.status 0.1
jimblandydc4029a2010-02-02 17:39:51 +000015593configured by $0, generated by GNU Autoconf 2.65,
15594 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +000015595
jimblandy92b1f832009-12-23 22:23:49 +000015596Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000015597This config.status script is free software; the Free Software Foundation
15598gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000015599
15600ac_pwd='$ac_pwd'
15601srcdir='$srcdir'
15602INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000015603MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +000015604AWK='$AWK'
15605test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +000015606_ACEOF
15607
jimblandy92b1f832009-12-23 22:23:49 +000015608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15609# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +000015610ac_need_defaults=:
15611while test $# != 0
15612do
15613 case $1 in
15614 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000015617 ac_shift=:
15618 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015619 *)
brynercb91a2f2006-08-25 21:14:45 +000015620 ac_option=$1
15621 ac_optarg=$2
15622 ac_shift=shift
15623 ;;
brynercb91a2f2006-08-25 21:14:45 +000015624 esac
15625
15626 case $ac_option in
15627 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000015628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15629 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +000015631 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +000015632 --config | --confi | --conf | --con | --co | --c )
15633 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015634 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000015635 debug=: ;;
15636 --file | --fil | --fi | --f )
15637 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015638 case $ac_optarg in
15639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15640 esac
15641 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015642 ac_need_defaults=false;;
15643 --header | --heade | --head | --hea )
15644 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015645 case $ac_optarg in
15646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15647 esac
15648 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015649 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015650 --he | --h)
15651 # Conflict between --help and --header
jimblandy92b1f832009-12-23 22:23:49 +000015652 as_fn_error "ambiguous option: \`$1'
15653Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +000015654 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +000015655 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000015656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15658 ac_cs_silent=: ;;
15659
15660 # This is an error.
jimblandy92b1f832009-12-23 22:23:49 +000015661 -*) as_fn_error "unrecognized option: \`$1'
15662Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +000015663
jimblandy92b1f832009-12-23 22:23:49 +000015664 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +000015665 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000015666
15667 esac
15668 shift
15669done
15670
15671ac_configure_extra_args=
15672
15673if $ac_cs_silent; then
15674 exec 6>/dev/null
15675 ac_configure_extra_args="$ac_configure_extra_args --silent"
15676fi
15677
15678_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015680if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +000015681 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15682 shift
15683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15684 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +000015685 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +000015686 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +000015687fi
15688
15689_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015691exec 5>>config.log
15692{
15693 echo
15694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15695## Running $as_me. ##
15696_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +000015697 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +000015698} >&5
brynercb91a2f2006-08-25 21:14:45 +000015699
mmentovai8c2a4de2006-09-20 16:20:15 +000015700_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015702#
mmentovai8c2a4de2006-09-20 16:20:15 +000015703# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000015704#
brynercb91a2f2006-08-25 21:14:45 +000015705AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15706
jimblandy92b1f832009-12-23 22:23:49 +000015707
15708# The HP-UX ksh and POSIX shell print the target directory to stdout
15709# if CDPATH is set.
15710(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15711
15712sed_quote_subst='$sed_quote_subst'
15713double_quote_subst='$double_quote_subst'
15714delay_variable_subst='$delay_variable_subst'
15715macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15716macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15717enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15718enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15719pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15720enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15721host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15722host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15723host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15724build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15725build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15726build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15727SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15728Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15729GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15730EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15731FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15732LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15733NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15734LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15735max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15736ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15737exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15738lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15739lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15740lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15741reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15742reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15743OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15744deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15745file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15746AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15747AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15748STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15749RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15750old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15751old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15752old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15753CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15754CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15755compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15756GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15757lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15758lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15759lt_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"`'
15760lt_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"`'
15761objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15762SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15763ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15764MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15765lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15766lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15767lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15768lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15769lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15770need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15771DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15772NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15773LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15774OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15775OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15776libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15777shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15778extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15779archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15780enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15781export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15782whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15783compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15784old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15785old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15786archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15787archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15788module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15789module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15790with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15791allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15792no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15793hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15794hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15795hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15796hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15797hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15798hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15799hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15800hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15801inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15802link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15803fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15804always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15805export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15806exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15807include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15808prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15809file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15810variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15811need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15812need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15813version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15814runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15815shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15816shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15817libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15818library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15819soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15820postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15821postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15822finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15823finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15824hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15825sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15826sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15827hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15828enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15829enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15830enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15831old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15832striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15833compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15834predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15835postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15836predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15837postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15838compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15839LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15840old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15841compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15842GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15843lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15844lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15845lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15846lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15847lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15848archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15849enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15850export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15851whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15852compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15853old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15854old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15855archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15856archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15857module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15858module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15859with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15860allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15861no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15862hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15863hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15864hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15865hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15866hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15867hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15868hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15869hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15870inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15871link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15872fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15873always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15874export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15875exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15876include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15877prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15878file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15879hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15880compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15881predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15882postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15883predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15884postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15885compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15886
15887LTCC='$LTCC'
15888LTCFLAGS='$LTCFLAGS'
15889compiler='$compiler_DEFAULT'
15890
15891# Quote evaled strings.
15892for var in SED \
15893GREP \
15894EGREP \
15895FGREP \
15896LD \
15897NM \
15898LN_S \
15899lt_SP2NL \
15900lt_NL2SP \
15901reload_flag \
15902OBJDUMP \
15903deplibs_check_method \
15904file_magic_cmd \
15905AR \
15906AR_FLAGS \
15907STRIP \
15908RANLIB \
15909CC \
15910CFLAGS \
15911compiler \
15912lt_cv_sys_global_symbol_pipe \
15913lt_cv_sys_global_symbol_to_cdecl \
15914lt_cv_sys_global_symbol_to_c_name_address \
15915lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15916SHELL \
15917ECHO \
15918lt_prog_compiler_no_builtin_flag \
15919lt_prog_compiler_wl \
15920lt_prog_compiler_pic \
15921lt_prog_compiler_static \
15922lt_cv_prog_compiler_c_o \
15923need_locks \
15924DSYMUTIL \
15925NMEDIT \
15926LIPO \
15927OTOOL \
15928OTOOL64 \
15929shrext_cmds \
15930export_dynamic_flag_spec \
15931whole_archive_flag_spec \
15932compiler_needs_object \
15933with_gnu_ld \
15934allow_undefined_flag \
15935no_undefined_flag \
15936hardcode_libdir_flag_spec \
15937hardcode_libdir_flag_spec_ld \
15938hardcode_libdir_separator \
15939fix_srcfile_path \
15940exclude_expsyms \
15941include_expsyms \
15942file_list_spec \
15943variables_saved_for_relink \
15944libname_spec \
15945library_names_spec \
15946soname_spec \
15947finish_eval \
15948old_striplib \
15949striplib \
15950compiler_lib_search_dirs \
15951predep_objects \
15952postdep_objects \
15953predeps \
15954postdeps \
15955compiler_lib_search_path \
15956LD_CXX \
15957compiler_CXX \
15958lt_prog_compiler_no_builtin_flag_CXX \
15959lt_prog_compiler_wl_CXX \
15960lt_prog_compiler_pic_CXX \
15961lt_prog_compiler_static_CXX \
15962lt_cv_prog_compiler_c_o_CXX \
15963export_dynamic_flag_spec_CXX \
15964whole_archive_flag_spec_CXX \
15965compiler_needs_object_CXX \
15966with_gnu_ld_CXX \
15967allow_undefined_flag_CXX \
15968no_undefined_flag_CXX \
15969hardcode_libdir_flag_spec_CXX \
15970hardcode_libdir_flag_spec_ld_CXX \
15971hardcode_libdir_separator_CXX \
15972fix_srcfile_path_CXX \
15973exclude_expsyms_CXX \
15974include_expsyms_CXX \
15975file_list_spec_CXX \
15976compiler_lib_search_dirs_CXX \
15977predep_objects_CXX \
15978postdep_objects_CXX \
15979predeps_CXX \
15980postdeps_CXX \
15981compiler_lib_search_path_CXX; do
15982 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15983 *[\\\\\\\`\\"\\\$]*)
15984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15985 ;;
15986 *)
15987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15988 ;;
15989 esac
15990done
15991
15992# Double-quote double-evaled strings.
15993for var in reload_cmds \
15994old_postinstall_cmds \
15995old_postuninstall_cmds \
15996old_archive_cmds \
15997extract_expsyms_cmds \
15998old_archive_from_new_cmds \
15999old_archive_from_expsyms_cmds \
16000archive_cmds \
16001archive_expsym_cmds \
16002module_cmds \
16003module_expsym_cmds \
16004export_symbols_cmds \
16005prelink_cmds \
16006postinstall_cmds \
16007postuninstall_cmds \
16008finish_cmds \
16009sys_lib_search_path_spec \
16010sys_lib_dlsearch_path_spec \
16011old_archive_cmds_CXX \
16012old_archive_from_new_cmds_CXX \
16013old_archive_from_expsyms_cmds_CXX \
16014archive_cmds_CXX \
16015archive_expsym_cmds_CXX \
16016module_cmds_CXX \
16017module_expsym_cmds_CXX \
16018export_symbols_cmds_CXX \
16019prelink_cmds_CXX; do
16020 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16021 *[\\\\\\\`\\"\\\$]*)
16022 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16023 ;;
16024 *)
16025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16026 ;;
16027 esac
16028done
16029
16030# Fix-up fallback echo if it was mangled by the above quoting rules.
16031case \$lt_ECHO in
16032*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16033 ;;
16034esac
16035
16036ac_aux_dir='$ac_aux_dir'
16037xsi_shell='$xsi_shell'
16038lt_shell_append='$lt_shell_append'
16039
16040# See if we are running on zsh, and set the options which allow our
16041# commands through without removal of \ escapes INIT.
16042if test -n "\${ZSH_VERSION+set}" ; then
16043 setopt NO_GLOB_SUBST
16044fi
16045
16046
16047 PACKAGE='$PACKAGE'
16048 VERSION='$VERSION'
16049 TIMESTAMP='$TIMESTAMP'
16050 RM='$RM'
16051 ofile='$ofile'
16052
16053
16054
16055
16056
16057
brynercb91a2f2006-08-25 21:14:45 +000016058_ACEOF
16059
jimblandy92b1f832009-12-23 22:23:49 +000016060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016061
16062# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000016063for ac_config_target in $ac_config_targets
16064do
mmentovai8c2a4de2006-09-20 16:20:15 +000016065 case $ac_config_target in
16066 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16067 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
jimblandy92b1f832009-12-23 22:23:49 +000016068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016069 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16070
jimblandy92b1f832009-12-23 22:23:49 +000016071 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +000016072 esac
16073done
16074
mmentovai8c2a4de2006-09-20 16:20:15 +000016075
brynercb91a2f2006-08-25 21:14:45 +000016076# If the user did not use the arguments to specify the items to instantiate,
16077# then the envvar interface is used. Set only those that are not.
16078# We use the long form for the default assignment because of an extremely
16079# bizarre bug on SunOS 4.1.3.
16080if $ac_need_defaults; then
16081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16084fi
16085
16086# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000016087# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000016088# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000016089# Hook for its removal unless debugging.
16090# Note that there is a small window in which the directory will not be cleaned:
16091# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000016092$debug ||
16093{
mmentovai8c2a4de2006-09-20 16:20:15 +000016094 tmp=
16095 trap 'exit_status=$?
16096 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16097' 0
jimblandy92b1f832009-12-23 22:23:49 +000016098 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +000016099}
brynercb91a2f2006-08-25 21:14:45 +000016100# Create a (secure) tmp directory for tmp files.
16101
16102{
mmentovai8c2a4de2006-09-20 16:20:15 +000016103 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000016104 test -n "$tmp" && test -d "$tmp"
16105} ||
16106{
mmentovai8c2a4de2006-09-20 16:20:15 +000016107 tmp=./conf$$-$RANDOM
16108 (umask 077 && mkdir "$tmp")
jimblandy92b1f832009-12-23 22:23:49 +000016109} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016110
jimblandy92b1f832009-12-23 22:23:49 +000016111# Set up the scripts for CONFIG_FILES section.
16112# No need to generate them if there are no CONFIG_FILES.
16113# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +000016114if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000016115
jimblandy92b1f832009-12-23 22:23:49 +000016116
16117ac_cr=`echo X | tr X '\015'`
16118# On cygwin, bash can eat \r inside `` if the user requested igncr.
16119# But we know of no other shell where ac_cr would be empty at this
16120# point, so we can use a bashism as a fallback.
16121if test "x$ac_cr" = x; then
16122 eval ac_cr=\$\'\\r\'
16123fi
16124ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16125if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16126 ac_cs_awk_cr='\r'
16127else
16128 ac_cs_awk_cr=$ac_cr
16129fi
16130
16131echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +000016132_ACEOF
16133
mmentovai8c2a4de2006-09-20 16:20:15 +000016134
jimblandy92b1f832009-12-23 22:23:49 +000016135{
16136 echo "cat >conf$$subs.awk <<_ACEOF" &&
16137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16138 echo "_ACEOF"
16139} >conf$$subs.sh ||
16140 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16141ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016142ac_delim='%!_!# '
16143for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +000016144 . ./conf$$subs.sh ||
16145 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016146
jimblandy92b1f832009-12-23 22:23:49 +000016147 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16148 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +000016149 break
16150 elif $ac_last_try; then
jimblandy92b1f832009-12-23 22:23:49 +000016151 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016152 else
16153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000016154 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016155done
jimblandy92b1f832009-12-23 22:23:49 +000016156rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +000016157
jimblandy92b1f832009-12-23 22:23:49 +000016158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16159cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +000016160_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016161sed -n '
16162h
16163s/^/S["/; s/!.*/"]=/
16164p
16165g
16166s/^[^!]*!//
16167:repl
16168t repl
16169s/'"$ac_delim"'$//
16170t delim
16171:nl
16172h
jimblandydc4029a2010-02-02 17:39:51 +000016173s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016174t more1
16175s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16176p
16177n
16178b repl
16179:more1
16180s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16181p
16182g
16183s/.\{148\}//
16184t nl
16185:delim
16186h
jimblandydc4029a2010-02-02 17:39:51 +000016187s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016188t more2
16189s/["\\]/\\&/g; s/^/"/; s/$/"/
16190p
16191b
16192:more2
16193s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16194p
16195g
16196s/.\{148\}//
16197t delim
16198' <conf$$subs.awk | sed '
16199/^[^""]/{
16200 N
16201 s/\n//
16202}
16203' >>$CONFIG_STATUS || ac_write_fail=1
16204rm -f conf$$subs.awk
16205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206_ACAWK
16207cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16208 for (key in S) S_is_set[key] = 1
16209 FS = ""
16210
16211}
16212{
16213 line = $ 0
16214 nfields = split(line, field, "@")
16215 substed = 0
16216 len = length(field[1])
16217 for (i = 2; i < nfields; i++) {
16218 key = field[i]
16219 keylen = length(key)
16220 if (S_is_set[key]) {
16221 value = S[key]
16222 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16223 len += length(value) + length(field[++i])
16224 substed = 1
16225 } else
16226 len += 1 + keylen
16227 }
16228
16229 print line
16230}
16231
16232_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +000016233_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16236 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16237else
16238 cat
16239fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16240 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016241_ACEOF
16242
mmentovai8c2a4de2006-09-20 16:20:15 +000016243# VPATH may cause trouble with some makes, so we remove $(srcdir),
16244# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16245# trailing colons and then remove the whole line if VPATH becomes empty
16246# (actually we leave an empty line to preserve line numbers).
16247if test "x$srcdir" = x.; then
16248 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16249s/:*\$(srcdir):*/:/
16250s/:*\${srcdir}:*/:/
16251s/:*@srcdir@:*/:/
16252s/^\([^=]*=[ ]*\):*/\1/
16253s/:*$//
16254s/^[^=]*=[ ]*$//
16255}'
16256fi
16257
jimblandy92b1f832009-12-23 22:23:49 +000016258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016259fi # test -n "$CONFIG_FILES"
16260
jimblandy92b1f832009-12-23 22:23:49 +000016261# Set up the scripts for CONFIG_HEADERS section.
16262# No need to generate them if there are no CONFIG_HEADERS.
16263# This happens for instance with `./config.status Makefile'.
16264if test -n "$CONFIG_HEADERS"; then
16265cat >"$tmp/defines.awk" <<\_ACAWK ||
16266BEGIN {
16267_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016268
jimblandy92b1f832009-12-23 22:23:49 +000016269# Transform confdefs.h into an awk script `defines.awk', embedded as
16270# here-document in config.status, that substitutes the proper values into
16271# config.h.in to produce config.h.
16272
16273# Create a delimiter string that does not exist in confdefs.h, to ease
16274# handling of long lines.
16275ac_delim='%!_!# '
16276for ac_last_try in false false :; do
16277 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16278 if test -z "$ac_t"; then
16279 break
16280 elif $ac_last_try; then
16281 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16282 else
16283 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16284 fi
16285done
16286
16287# For the awk script, D is an array of macro values keyed by name,
16288# likewise P contains macro parameters if any. Preserve backslash
16289# newline sequences.
16290
16291ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16292sed -n '
16293s/.\{148\}/&'"$ac_delim"'/g
16294t rset
16295:rset
16296s/^[ ]*#[ ]*define[ ][ ]*/ /
16297t def
16298d
16299:def
16300s/\\$//
16301t bsnl
16302s/["\\]/\\&/g
16303s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16304D["\1"]=" \3"/p
16305s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16306d
16307:bsnl
16308s/["\\]/\\&/g
16309s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16310D["\1"]=" \3\\\\\\n"\\/p
16311t cont
16312s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16313t cont
16314d
16315:cont
16316n
16317s/.\{148\}/&'"$ac_delim"'/g
16318t clear
16319:clear
16320s/\\$//
16321t bsnlc
16322s/["\\]/\\&/g; s/^/"/; s/$/"/p
16323d
16324:bsnlc
16325s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16326b cont
16327' <confdefs.h | sed '
16328s/'"$ac_delim"'/"\\\
16329"/g' >>$CONFIG_STATUS || ac_write_fail=1
16330
16331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16332 for (key in D) D_is_set[key] = 1
16333 FS = ""
16334}
16335/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16336 line = \$ 0
16337 split(line, arg, " ")
16338 if (arg[1] == "#") {
16339 defundef = arg[2]
16340 mac1 = arg[3]
16341 } else {
16342 defundef = substr(arg[1], 2)
16343 mac1 = arg[2]
16344 }
16345 split(mac1, mac2, "(") #)
16346 macro = mac2[1]
16347 prefix = substr(line, 1, index(line, defundef) - 1)
16348 if (D_is_set[macro]) {
16349 # Preserve the white space surrounding the "#".
16350 print prefix "define", macro P[macro] D[macro]
16351 next
16352 } else {
16353 # Replace #undef with comments. This is necessary, for example,
16354 # in the case of _POSIX_SOURCE, which is predefined and required
16355 # on some systems where configure will not decide to define it.
16356 if (defundef == "undef") {
16357 print "/*", prefix defundef, macro, "*/"
16358 next
16359 }
16360 }
16361}
16362{ print }
16363_ACAWK
16364_ACEOF
16365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16366 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16367fi # test -n "$CONFIG_HEADERS"
16368
16369
16370eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16371shift
16372for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +000016373do
16374 case $ac_tag in
16375 :[FHLC]) ac_mode=$ac_tag; continue;;
16376 esac
16377 case $ac_mode$ac_tag in
16378 :[FHL]*:*);;
jimblandy92b1f832009-12-23 22:23:49 +000016379 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016380 :[FH]-) ac_tag=-:-;;
16381 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16382 esac
16383 ac_save_IFS=$IFS
16384 IFS=:
16385 set x $ac_tag
16386 IFS=$ac_save_IFS
16387 shift
16388 ac_file=$1
16389 shift
16390
16391 case $ac_mode in
16392 :L) ac_source=$1;;
16393 :[FH])
16394 ac_file_inputs=
16395 for ac_f
16396 do
16397 case $ac_f in
16398 -) ac_f="$tmp/stdin";;
16399 *) # Look for the file first in the build tree, then in the source tree
16400 # (if the path is not absolute). The absolute path cannot be DOS-style,
16401 # because $ac_f cannot contain `:'.
16402 test -f "$ac_f" ||
16403 case $ac_f in
16404 [\\/$]*) false;;
16405 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16406 esac ||
jimblandy92b1f832009-12-23 22:23:49 +000016407 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016408 esac
jimblandy92b1f832009-12-23 22:23:49 +000016409 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16410 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +000016411 done
16412
16413 # Let's still pretend it is `configure' which instantiates (i.e., don't
16414 # use $as_me), people would be surprised to read:
16415 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +000016416 configure_input='Generated from '`
16417 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16418 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +000016419 if test x"$ac_file" != x-; then
16420 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +000016421 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16422$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016423 fi
jimblandy92b1f832009-12-23 22:23:49 +000016424 # Neutralize special characters interpreted by sed in replacement strings.
16425 case $configure_input in #(
16426 *\&* | *\|* | *\\* )
16427 ac_sed_conf_input=`$as_echo "$configure_input" |
16428 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16429 *) ac_sed_conf_input=$configure_input;;
16430 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016431
16432 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +000016433 *:-:* | *:-) cat >"$tmp/stdin" \
16434 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016435 esac
16436 ;;
brynercb91a2f2006-08-25 21:14:45 +000016437 esac
16438
mmentovai8c2a4de2006-09-20 16:20:15 +000016439 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000016440$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16441 X"$ac_file" : 'X\(//\)[^/]' \| \
16442 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016443 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016444$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16446 s//\1/
16447 q
16448 }
16449 /^X\(\/\/\)[^/].*/{
16450 s//\1/
16451 q
16452 }
16453 /^X\(\/\/\)$/{
16454 s//\1/
16455 q
16456 }
16457 /^X\(\/\).*/{
16458 s//\1/
16459 q
16460 }
16461 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016462 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000016463 ac_builddir=.
16464
mmentovai8c2a4de2006-09-20 16:20:15 +000016465case "$ac_dir" in
16466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16467*)
jimblandy92b1f832009-12-23 22:23:49 +000016468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016469 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +000016470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016471 case $ac_top_builddir_sub in
16472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16474 esac ;;
16475esac
16476ac_abs_top_builddir=$ac_pwd
16477ac_abs_builddir=$ac_pwd$ac_dir_suffix
16478# for backward compatibility:
16479ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000016480
16481case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000016482 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000016483 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000016484 ac_top_srcdir=$ac_top_builddir_sub
16485 ac_abs_top_srcdir=$ac_pwd ;;
16486 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000016487 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000016488 ac_top_srcdir=$srcdir
16489 ac_abs_top_srcdir=$srcdir ;;
16490 *) # Relative name.
16491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16492 ac_top_srcdir=$ac_top_build_prefix$srcdir
16493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000016494esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000016496
brynercb91a2f2006-08-25 21:14:45 +000016497
mmentovai8c2a4de2006-09-20 16:20:15 +000016498 case $ac_mode in
16499 :F)
16500 #
16501 # CONFIG_FILE
16502 #
brynercb91a2f2006-08-25 21:14:45 +000016503
16504 case $INSTALL in
16505 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016506 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000016507 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000016508 ac_MKDIR_P=$MKDIR_P
16509 case $MKDIR_P in
16510 [\\/$]* | ?:[\\/]* ) ;;
16511 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16512 esac
brynercb91a2f2006-08-25 21:14:45 +000016513_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016514
jimblandy92b1f832009-12-23 22:23:49 +000016515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016516# If the template does not know about datarootdir, expand it.
16517# FIXME: This hack should be removed a few years after 2.60.
16518ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +000016519ac_sed_dataroot='
16520/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +000016521 p
16522 q
16523}
16524/@datadir@/p
16525/@docdir@/p
16526/@infodir@/p
16527/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +000016528/@mandir@/p'
16529case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +000016530*datarootdir*) ac_datarootdir_seen=yes;;
16531*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +000016532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16533$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016534_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016536 ac_datarootdir_hack='
16537 s&@datadir@&$datadir&g
16538 s&@docdir@&$docdir&g
16539 s&@infodir@&$infodir&g
16540 s&@localedir@&$localedir&g
16541 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +000016542 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016543esac
16544_ACEOF
16545
16546# Neutralize VPATH when `$srcdir' = `.'.
16547# Shell code in configure.ac might set extrasub.
16548# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +000016549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16550ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +000016551$extrasub
16552_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016554:t
16555/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +000016556s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016557s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +000016558s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016559s&@srcdir@&$ac_srcdir&;t t
16560s&@abs_srcdir@&$ac_abs_srcdir&;t t
16561s&@top_srcdir@&$ac_top_srcdir&;t t
16562s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16563s&@builddir@&$ac_builddir&;t t
16564s&@abs_builddir@&$ac_abs_builddir&;t t
16565s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16566s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000016567s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016568$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +000016569"
16570eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16571 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016572
mmentovai8c2a4de2006-09-20 16:20:15 +000016573test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +000016576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000016577which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +000016578$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000016579which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000016580
mmentovai8c2a4de2006-09-20 16:20:15 +000016581 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000016582 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +000016583 -) cat "$tmp/out" && rm -f "$tmp/out";;
16584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16585 esac \
16586 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016587 ;;
16588 :H)
16589 #
16590 # CONFIG_HEADER
16591 #
brynercb91a2f2006-08-25 21:14:45 +000016592 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +000016593 {
16594 $as_echo "/* $configure_input */" \
16595 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16596 } >"$tmp/config.h" \
16597 || as_fn_error "could not create $ac_file" "$LINENO" 5
16598 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16600$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000016601 else
jimblandy92b1f832009-12-23 22:23:49 +000016602 rm -f "$ac_file"
16603 mv "$tmp/config.h" "$ac_file" \
16604 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016605 fi
16606 else
jimblandy92b1f832009-12-23 22:23:49 +000016607 $as_echo "/* $configure_input */" \
16608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16609 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016610 fi
jimblandy92b1f832009-12-23 22:23:49 +000016611# Compute "$ac_file"'s index in $config_headers.
16612_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +000016613_am_stamp_count=1
16614for _am_header in $config_headers :; do
16615 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +000016616 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +000016617 break ;;
16618 * )
16619 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16620 esac
16621done
jimblandy92b1f832009-12-23 22:23:49 +000016622echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16623$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16624 X"$_am_arg" : 'X\(//\)[^/]' \| \
16625 X"$_am_arg" : 'X\(//\)$' \| \
16626 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16627$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16629 s//\1/
16630 q
16631 }
16632 /^X\(\/\/\)[^/].*/{
16633 s//\1/
16634 q
16635 }
16636 /^X\(\/\/\)$/{
16637 s//\1/
16638 q
16639 }
16640 /^X\(\/\).*/{
16641 s//\1/
16642 q
16643 }
16644 s/.*/./; q'`/stamp-h$_am_stamp_count
16645 ;;
brynercb91a2f2006-08-25 21:14:45 +000016646
jimblandy92b1f832009-12-23 22:23:49 +000016647 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16648$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016649 ;;
16650 esac
brynercb91a2f2006-08-25 21:14:45 +000016651
16652
mmentovai8c2a4de2006-09-20 16:20:15 +000016653 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +000016654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16655 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16656 # are listed without --file. Let's play safe and only enable the eval
16657 # if we detect the quoting.
16658 case $CONFIG_FILES in
16659 *\'*) eval set x "$CONFIG_FILES" ;;
16660 *) set x $CONFIG_FILES ;;
16661 esac
16662 shift
16663 for mf
16664 do
16665 # Strip MF so we end up with the name of the file.
16666 mf=`echo "$mf" | sed -e 's/:.*$//'`
16667 # Check whether this is an Automake generated Makefile or not.
16668 # We used to match only the files named `Makefile.in', but
16669 # some people rename them; so instead we look at the file content.
16670 # Grep'ing the first line is not enough: some people post-process
16671 # each Makefile.in and add a new line on top of each file to say so.
16672 # Grep'ing the whole file is not good either: AIX grep has a line
16673 # limit of 2048, but all sed's we know have understand at least 4000.
16674 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16675 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000016676$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$mf" : 'X\(//\)[^/]' \| \
16678 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016679 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016680$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16682 s//\1/
16683 q
16684 }
16685 /^X\(\/\/\)[^/].*/{
16686 s//\1/
16687 q
16688 }
16689 /^X\(\/\/\)$/{
16690 s//\1/
16691 q
16692 }
16693 /^X\(\/\).*/{
16694 s//\1/
16695 q
16696 }
16697 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016698 else
16699 continue
16700 fi
16701 # Extract the definition of DEPDIR, am__include, and am__quote
16702 # from the Makefile without running `make'.
16703 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16704 test -z "$DEPDIR" && continue
16705 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16706 test -z "am__include" && continue
16707 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16708 # When using ansi2knr, U may be empty or an underscore; expand it
16709 U=`sed -n 's/^U = //p' < "$mf"`
16710 # Find all dependency output files, they are included files with
16711 # $(DEPDIR) in their names. We invoke sed twice because it is the
16712 # simplest approach to changing $(DEPDIR) to its actual value in the
16713 # expansion.
16714 for file in `sed -n "
16715 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16716 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16717 # Make sure the directory exists.
16718 test -f "$dirpart/$file" && continue
16719 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000016720$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16721 X"$file" : 'X\(//\)[^/]' \| \
16722 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016723 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016724$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16726 s//\1/
16727 q
16728 }
16729 /^X\(\/\/\)[^/].*/{
16730 s//\1/
16731 q
16732 }
16733 /^X\(\/\/\)$/{
16734 s//\1/
16735 q
16736 }
16737 /^X\(\/\).*/{
16738 s//\1/
16739 q
16740 }
16741 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016742 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16743 # echo "creating $dirpart/$file"
16744 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +000016745 done
brynercb91a2f2006-08-25 21:14:45 +000016746 done
jimblandy92b1f832009-12-23 22:23:49 +000016747}
16748 ;;
16749 "libtool":C)
16750
16751 # See if we are running on zsh, and set the options which allow our
16752 # commands through without removal of \ escapes.
16753 if test -n "${ZSH_VERSION+set}" ; then
16754 setopt NO_GLOB_SUBST
16755 fi
16756
16757 cfgfile="${ofile}T"
16758 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16759 $RM "$cfgfile"
16760
16761 cat <<_LT_EOF >> "$cfgfile"
16762#! $SHELL
16763
16764# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16765# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16766# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16767# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16768#
16769# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16770# 2006, 2007, 2008 Free Software Foundation, Inc.
16771# Written by Gordon Matzigkeit, 1996
16772#
16773# This file is part of GNU Libtool.
16774#
16775# GNU Libtool is free software; you can redistribute it and/or
16776# modify it under the terms of the GNU General Public License as
16777# published by the Free Software Foundation; either version 2 of
16778# the License, or (at your option) any later version.
16779#
16780# As a special exception to the GNU General Public License,
16781# if you distribute this file as part of a program or library that
16782# is built using GNU Libtool, you may include this file under the
16783# same distribution terms that you use for the rest of that program.
16784#
16785# GNU Libtool is distributed in the hope that it will be useful,
16786# but WITHOUT ANY WARRANTY; without even the implied warranty of
16787# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16788# GNU General Public License for more details.
16789#
16790# You should have received a copy of the GNU General Public License
16791# along with GNU Libtool; see the file COPYING. If not, a copy
16792# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16793# obtained by writing to the Free Software Foundation, Inc.,
16794# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16795
16796
16797# The names of the tagged configurations supported by this script.
16798available_tags="CXX "
16799
16800# ### BEGIN LIBTOOL CONFIG
16801
16802# Which release of libtool.m4 was used?
16803macro_version=$macro_version
16804macro_revision=$macro_revision
16805
16806# Whether or not to build shared libraries.
16807build_libtool_libs=$enable_shared
16808
16809# Whether or not to build static libraries.
16810build_old_libs=$enable_static
16811
16812# What type of objects to build.
16813pic_mode=$pic_mode
16814
16815# Whether or not to optimize for fast installation.
16816fast_install=$enable_fast_install
16817
16818# The host system.
16819host_alias=$host_alias
16820host=$host
16821host_os=$host_os
16822
16823# The build system.
16824build_alias=$build_alias
16825build=$build
16826build_os=$build_os
16827
16828# A sed program that does not truncate output.
16829SED=$lt_SED
16830
16831# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16832Xsed="\$SED -e 1s/^X//"
16833
16834# A grep program that handles long lines.
16835GREP=$lt_GREP
16836
16837# An ERE matcher.
16838EGREP=$lt_EGREP
16839
16840# A literal string matcher.
16841FGREP=$lt_FGREP
16842
16843# A BSD- or MS-compatible name lister.
16844NM=$lt_NM
16845
16846# Whether we need soft or hard links.
16847LN_S=$lt_LN_S
16848
16849# What is the maximum length of a command?
16850max_cmd_len=$max_cmd_len
16851
16852# Object file suffix (normally "o").
16853objext=$ac_objext
16854
16855# Executable file suffix (normally "").
16856exeext=$exeext
16857
16858# whether the shell understands "unset".
16859lt_unset=$lt_unset
16860
16861# turn spaces into newlines.
16862SP2NL=$lt_lt_SP2NL
16863
16864# turn newlines into spaces.
16865NL2SP=$lt_lt_NL2SP
16866
16867# How to create reloadable object files.
16868reload_flag=$lt_reload_flag
16869reload_cmds=$lt_reload_cmds
16870
16871# An object symbol dumper.
16872OBJDUMP=$lt_OBJDUMP
16873
16874# Method to check whether dependent libraries are shared objects.
16875deplibs_check_method=$lt_deplibs_check_method
16876
16877# Command to use when deplibs_check_method == "file_magic".
16878file_magic_cmd=$lt_file_magic_cmd
16879
16880# The archiver.
16881AR=$lt_AR
16882AR_FLAGS=$lt_AR_FLAGS
16883
16884# A symbol stripping program.
16885STRIP=$lt_STRIP
16886
16887# Commands used to install an old-style archive.
16888RANLIB=$lt_RANLIB
16889old_postinstall_cmds=$lt_old_postinstall_cmds
16890old_postuninstall_cmds=$lt_old_postuninstall_cmds
16891
16892# A C compiler.
16893LTCC=$lt_CC
16894
16895# LTCC compiler flags.
16896LTCFLAGS=$lt_CFLAGS
16897
16898# Take the output of nm and produce a listing of raw symbols and C names.
16899global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16900
16901# Transform the output of nm in a proper C declaration.
16902global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16903
16904# Transform the output of nm in a C name address pair.
16905global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16906
16907# Transform the output of nm in a C name address pair when lib prefix is needed.
16908global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16909
16910# The name of the directory that contains temporary libtool files.
16911objdir=$objdir
16912
16913# Shell to use when invoking shell scripts.
16914SHELL=$lt_SHELL
16915
16916# An echo program that does not interpret backslashes.
16917ECHO=$lt_ECHO
16918
16919# Used to examine libraries when file_magic_cmd begins with "file".
16920MAGIC_CMD=$MAGIC_CMD
16921
16922# Must we lock files when doing compilation?
16923need_locks=$lt_need_locks
16924
16925# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16926DSYMUTIL=$lt_DSYMUTIL
16927
16928# Tool to change global to local symbols on Mac OS X.
16929NMEDIT=$lt_NMEDIT
16930
16931# Tool to manipulate fat objects and archives on Mac OS X.
16932LIPO=$lt_LIPO
16933
16934# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16935OTOOL=$lt_OTOOL
16936
16937# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16938OTOOL64=$lt_OTOOL64
16939
16940# Old archive suffix (normally "a").
16941libext=$libext
16942
16943# Shared library suffix (normally ".so").
16944shrext_cmds=$lt_shrext_cmds
16945
16946# The commands to extract the exported symbol list from a shared archive.
16947extract_expsyms_cmds=$lt_extract_expsyms_cmds
16948
16949# Variables whose values should be saved in libtool wrapper scripts and
16950# restored at link time.
16951variables_saved_for_relink=$lt_variables_saved_for_relink
16952
16953# Do we need the "lib" prefix for modules?
16954need_lib_prefix=$need_lib_prefix
16955
16956# Do we need a version for libraries?
16957need_version=$need_version
16958
16959# Library versioning type.
16960version_type=$version_type
16961
16962# Shared library runtime path variable.
16963runpath_var=$runpath_var
16964
16965# Shared library path variable.
16966shlibpath_var=$shlibpath_var
16967
16968# Is shlibpath searched before the hard-coded library search path?
16969shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16970
16971# Format of library name prefix.
16972libname_spec=$lt_libname_spec
16973
16974# List of archive names. First name is the real one, the rest are links.
16975# The last name is the one that the linker finds with -lNAME
16976library_names_spec=$lt_library_names_spec
16977
16978# The coded name of the library, if different from the real name.
16979soname_spec=$lt_soname_spec
16980
16981# Command to use after installation of a shared archive.
16982postinstall_cmds=$lt_postinstall_cmds
16983
16984# Command to use after uninstallation of a shared archive.
16985postuninstall_cmds=$lt_postuninstall_cmds
16986
16987# Commands used to finish a libtool library installation in a directory.
16988finish_cmds=$lt_finish_cmds
16989
16990# As "finish_cmds", except a single script fragment to be evaled but
16991# not shown.
16992finish_eval=$lt_finish_eval
16993
16994# Whether we should hardcode library paths into libraries.
16995hardcode_into_libs=$hardcode_into_libs
16996
16997# Compile-time system search path for libraries.
16998sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16999
17000# Run-time system search path for libraries.
17001sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17002
17003# Whether dlopen is supported.
17004dlopen_support=$enable_dlopen
17005
17006# Whether dlopen of programs is supported.
17007dlopen_self=$enable_dlopen_self
17008
17009# Whether dlopen of statically linked programs is supported.
17010dlopen_self_static=$enable_dlopen_self_static
17011
17012# Commands to strip libraries.
17013old_striplib=$lt_old_striplib
17014striplib=$lt_striplib
17015
17016
17017# The linker used to build libraries.
17018LD=$lt_LD
17019
17020# Commands used to build an old-style archive.
17021old_archive_cmds=$lt_old_archive_cmds
17022
17023# A language specific compiler.
17024CC=$lt_compiler
17025
17026# Is the compiler the GNU compiler?
17027with_gcc=$GCC
17028
17029# Compiler flag to turn off builtin functions.
17030no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17031
17032# How to pass a linker flag through the compiler.
17033wl=$lt_lt_prog_compiler_wl
17034
17035# Additional compiler flags for building library objects.
17036pic_flag=$lt_lt_prog_compiler_pic
17037
17038# Compiler flag to prevent dynamic linking.
17039link_static_flag=$lt_lt_prog_compiler_static
17040
17041# Does compiler simultaneously support -c and -o options?
17042compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17043
17044# Whether or not to add -lc for building shared libraries.
17045build_libtool_need_lc=$archive_cmds_need_lc
17046
17047# Whether or not to disallow shared libs when runtime libs are static.
17048allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17049
17050# Compiler flag to allow reflexive dlopens.
17051export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17052
17053# Compiler flag to generate shared objects directly from archives.
17054whole_archive_flag_spec=$lt_whole_archive_flag_spec
17055
17056# Whether the compiler copes with passing no objects directly.
17057compiler_needs_object=$lt_compiler_needs_object
17058
17059# Create an old-style archive from a shared archive.
17060old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17061
17062# Create a temporary old-style archive to link instead of a shared archive.
17063old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17064
17065# Commands used to build a shared archive.
17066archive_cmds=$lt_archive_cmds
17067archive_expsym_cmds=$lt_archive_expsym_cmds
17068
17069# Commands used to build a loadable module if different from building
17070# a shared archive.
17071module_cmds=$lt_module_cmds
17072module_expsym_cmds=$lt_module_expsym_cmds
17073
17074# Whether we are building with GNU ld or not.
17075with_gnu_ld=$lt_with_gnu_ld
17076
17077# Flag that allows shared libraries with undefined symbols to be built.
17078allow_undefined_flag=$lt_allow_undefined_flag
17079
17080# Flag that enforces no undefined symbols.
17081no_undefined_flag=$lt_no_undefined_flag
17082
17083# Flag to hardcode \$libdir into a binary during linking.
17084# This must work even if \$libdir does not exist
17085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17086
17087# If ld is used when linking, flag to hardcode \$libdir into a binary
17088# during linking. This must work even if \$libdir does not exist.
17089hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17090
17091# Whether we need a single "-rpath" flag with a separated argument.
17092hardcode_libdir_separator=$lt_hardcode_libdir_separator
17093
17094# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17095# DIR into the resulting binary.
17096hardcode_direct=$hardcode_direct
17097
17098# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17099# DIR into the resulting binary and the resulting library dependency is
17100# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17101# library is relocated.
17102hardcode_direct_absolute=$hardcode_direct_absolute
17103
17104# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17105# into the resulting binary.
17106hardcode_minus_L=$hardcode_minus_L
17107
17108# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17109# into the resulting binary.
17110hardcode_shlibpath_var=$hardcode_shlibpath_var
17111
17112# Set to "yes" if building a shared library automatically hardcodes DIR
17113# into the library and all subsequent libraries and executables linked
17114# against it.
17115hardcode_automatic=$hardcode_automatic
17116
17117# Set to yes if linker adds runtime paths of dependent libraries
17118# to runtime path list.
17119inherit_rpath=$inherit_rpath
17120
17121# Whether libtool must link a program against all its dependency libraries.
17122link_all_deplibs=$link_all_deplibs
17123
17124# Fix the shell variable \$srcfile for the compiler.
17125fix_srcfile_path=$lt_fix_srcfile_path
17126
17127# Set to "yes" if exported symbols are required.
17128always_export_symbols=$always_export_symbols
17129
17130# The commands to list exported symbols.
17131export_symbols_cmds=$lt_export_symbols_cmds
17132
17133# Symbols that should not be listed in the preloaded symbols.
17134exclude_expsyms=$lt_exclude_expsyms
17135
17136# Symbols that must always be exported.
17137include_expsyms=$lt_include_expsyms
17138
17139# Commands necessary for linking programs (against libraries) with templates.
17140prelink_cmds=$lt_prelink_cmds
17141
17142# Specify filename containing input files.
17143file_list_spec=$lt_file_list_spec
17144
17145# How to hardcode a shared library path into an executable.
17146hardcode_action=$hardcode_action
17147
17148# The directories searched by this compiler when creating a shared library.
17149compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17150
17151# Dependencies to place before and after the objects being linked to
17152# create a shared library.
17153predep_objects=$lt_predep_objects
17154postdep_objects=$lt_postdep_objects
17155predeps=$lt_predeps
17156postdeps=$lt_postdeps
17157
17158# The library search path used internally by the compiler when linking
17159# a shared library.
17160compiler_lib_search_path=$lt_compiler_lib_search_path
17161
17162# ### END LIBTOOL CONFIG
17163
17164_LT_EOF
17165
17166 case $host_os in
17167 aix3*)
17168 cat <<\_LT_EOF >> "$cfgfile"
17169# AIX sometimes has problems with the GCC collect2 program. For some
17170# reason, if we set the COLLECT_NAMES environment variable, the problems
17171# vanish in a puff of smoke.
17172if test "X${COLLECT_NAMES+set}" != Xset; then
17173 COLLECT_NAMES=
17174 export COLLECT_NAMES
17175fi
17176_LT_EOF
17177 ;;
17178 esac
17179
17180
17181ltmain="$ac_aux_dir/ltmain.sh"
17182
17183
17184 # We use sed instead of cat because bash on DJGPP gets confused if
17185 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17186 # text mode, it properly converts lines to CR/LF. This bash problem
17187 # is reportedly fixed, but why not run on old versions too?
17188 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17189 || (rm -f "$cfgfile"; exit 1)
17190
17191 case $xsi_shell in
17192 yes)
17193 cat << \_LT_EOF >> "$cfgfile"
17194
17195# func_dirname file append nondir_replacement
17196# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17197# otherwise set result to NONDIR_REPLACEMENT.
17198func_dirname ()
17199{
17200 case ${1} in
17201 */*) func_dirname_result="${1%/*}${2}" ;;
17202 * ) func_dirname_result="${3}" ;;
17203 esac
17204}
17205
17206# func_basename file
17207func_basename ()
17208{
17209 func_basename_result="${1##*/}"
17210}
17211
17212# func_dirname_and_basename file append nondir_replacement
17213# perform func_basename and func_dirname in a single function
17214# call:
17215# dirname: Compute the dirname of FILE. If nonempty,
17216# add APPEND to the result, otherwise set result
17217# to NONDIR_REPLACEMENT.
17218# value returned in "$func_dirname_result"
17219# basename: Compute filename of FILE.
17220# value retuned in "$func_basename_result"
17221# Implementation must be kept synchronized with func_dirname
17222# and func_basename. For efficiency, we do not delegate to
17223# those functions but instead duplicate the functionality here.
17224func_dirname_and_basename ()
17225{
17226 case ${1} in
17227 */*) func_dirname_result="${1%/*}${2}" ;;
17228 * ) func_dirname_result="${3}" ;;
17229 esac
17230 func_basename_result="${1##*/}"
17231}
17232
17233# func_stripname prefix suffix name
17234# strip PREFIX and SUFFIX off of NAME.
17235# PREFIX and SUFFIX must not contain globbing or regex special
17236# characters, hashes, percent signs, but SUFFIX may contain a leading
17237# dot (in which case that matches only a dot).
17238func_stripname ()
17239{
17240 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17241 # positional parameters, so assign one to ordinary parameter first.
17242 func_stripname_result=${3}
17243 func_stripname_result=${func_stripname_result#"${1}"}
17244 func_stripname_result=${func_stripname_result%"${2}"}
17245}
17246
17247# func_opt_split
17248func_opt_split ()
17249{
17250 func_opt_split_opt=${1%%=*}
17251 func_opt_split_arg=${1#*=}
17252}
17253
17254# func_lo2o object
17255func_lo2o ()
17256{
17257 case ${1} in
17258 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17259 *) func_lo2o_result=${1} ;;
17260 esac
17261}
17262
17263# func_xform libobj-or-source
17264func_xform ()
17265{
17266 func_xform_result=${1%.*}.lo
17267}
17268
17269# func_arith arithmetic-term...
17270func_arith ()
17271{
17272 func_arith_result=$(( $* ))
17273}
17274
17275# func_len string
17276# STRING may not start with a hyphen.
17277func_len ()
17278{
17279 func_len_result=${#1}
17280}
17281
17282_LT_EOF
17283 ;;
17284 *) # Bourne compatible functions.
17285 cat << \_LT_EOF >> "$cfgfile"
17286
17287# func_dirname file append nondir_replacement
17288# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17289# otherwise set result to NONDIR_REPLACEMENT.
17290func_dirname ()
17291{
17292 # Extract subdirectory from the argument.
17293 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17294 if test "X$func_dirname_result" = "X${1}"; then
17295 func_dirname_result="${3}"
17296 else
17297 func_dirname_result="$func_dirname_result${2}"
17298 fi
17299}
17300
17301# func_basename file
17302func_basename ()
17303{
17304 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17305}
17306
17307
17308# func_stripname prefix suffix name
17309# strip PREFIX and SUFFIX off of NAME.
17310# PREFIX and SUFFIX must not contain globbing or regex special
17311# characters, hashes, percent signs, but SUFFIX may contain a leading
17312# dot (in which case that matches only a dot).
17313# func_strip_suffix prefix name
17314func_stripname ()
17315{
17316 case ${2} in
17317 .*) func_stripname_result=`$ECHO "X${3}" \
17318 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17319 *) func_stripname_result=`$ECHO "X${3}" \
17320 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17321 esac
17322}
17323
17324# sed scripts:
17325my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17326my_sed_long_arg='1s/^-[^=]*=//'
17327
17328# func_opt_split
17329func_opt_split ()
17330{
17331 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17332 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17333}
17334
17335# func_lo2o object
17336func_lo2o ()
17337{
17338 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17339}
17340
17341# func_xform libobj-or-source
17342func_xform ()
17343{
17344 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17345}
17346
17347# func_arith arithmetic-term...
17348func_arith ()
17349{
17350 func_arith_result=`expr "$@"`
17351}
17352
17353# func_len string
17354# STRING may not start with a hyphen.
17355func_len ()
17356{
17357 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17358}
17359
17360_LT_EOF
17361esac
17362
17363case $lt_shell_append in
17364 yes)
17365 cat << \_LT_EOF >> "$cfgfile"
17366
17367# func_append var value
17368# Append VALUE to the end of shell variable VAR.
17369func_append ()
17370{
17371 eval "$1+=\$2"
17372}
17373_LT_EOF
17374 ;;
17375 *)
17376 cat << \_LT_EOF >> "$cfgfile"
17377
17378# func_append var value
17379# Append VALUE to the end of shell variable VAR.
17380func_append ()
17381{
17382 eval "$1=\$$1\$2"
17383}
17384
17385_LT_EOF
17386 ;;
17387 esac
17388
17389
17390 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17391 || (rm -f "$cfgfile"; exit 1)
17392
17393 mv -f "$cfgfile" "$ofile" ||
17394 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17395 chmod +x "$ofile"
17396
17397
17398 cat <<_LT_EOF >> "$ofile"
17399
17400# ### BEGIN LIBTOOL TAG CONFIG: CXX
17401
17402# The linker used to build libraries.
17403LD=$lt_LD_CXX
17404
17405# Commands used to build an old-style archive.
17406old_archive_cmds=$lt_old_archive_cmds_CXX
17407
17408# A language specific compiler.
17409CC=$lt_compiler_CXX
17410
17411# Is the compiler the GNU compiler?
17412with_gcc=$GCC_CXX
17413
17414# Compiler flag to turn off builtin functions.
17415no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17416
17417# How to pass a linker flag through the compiler.
17418wl=$lt_lt_prog_compiler_wl_CXX
17419
17420# Additional compiler flags for building library objects.
17421pic_flag=$lt_lt_prog_compiler_pic_CXX
17422
17423# Compiler flag to prevent dynamic linking.
17424link_static_flag=$lt_lt_prog_compiler_static_CXX
17425
17426# Does compiler simultaneously support -c and -o options?
17427compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17428
17429# Whether or not to add -lc for building shared libraries.
17430build_libtool_need_lc=$archive_cmds_need_lc_CXX
17431
17432# Whether or not to disallow shared libs when runtime libs are static.
17433allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17434
17435# Compiler flag to allow reflexive dlopens.
17436export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17437
17438# Compiler flag to generate shared objects directly from archives.
17439whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17440
17441# Whether the compiler copes with passing no objects directly.
17442compiler_needs_object=$lt_compiler_needs_object_CXX
17443
17444# Create an old-style archive from a shared archive.
17445old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17446
17447# Create a temporary old-style archive to link instead of a shared archive.
17448old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17449
17450# Commands used to build a shared archive.
17451archive_cmds=$lt_archive_cmds_CXX
17452archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17453
17454# Commands used to build a loadable module if different from building
17455# a shared archive.
17456module_cmds=$lt_module_cmds_CXX
17457module_expsym_cmds=$lt_module_expsym_cmds_CXX
17458
17459# Whether we are building with GNU ld or not.
17460with_gnu_ld=$lt_with_gnu_ld_CXX
17461
17462# Flag that allows shared libraries with undefined symbols to be built.
17463allow_undefined_flag=$lt_allow_undefined_flag_CXX
17464
17465# Flag that enforces no undefined symbols.
17466no_undefined_flag=$lt_no_undefined_flag_CXX
17467
17468# Flag to hardcode \$libdir into a binary during linking.
17469# This must work even if \$libdir does not exist
17470hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17471
17472# If ld is used when linking, flag to hardcode \$libdir into a binary
17473# during linking. This must work even if \$libdir does not exist.
17474hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17475
17476# Whether we need a single "-rpath" flag with a separated argument.
17477hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17478
17479# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17480# DIR into the resulting binary.
17481hardcode_direct=$hardcode_direct_CXX
17482
17483# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17484# DIR into the resulting binary and the resulting library dependency is
17485# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17486# library is relocated.
17487hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17488
17489# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17490# into the resulting binary.
17491hardcode_minus_L=$hardcode_minus_L_CXX
17492
17493# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17494# into the resulting binary.
17495hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17496
17497# Set to "yes" if building a shared library automatically hardcodes DIR
17498# into the library and all subsequent libraries and executables linked
17499# against it.
17500hardcode_automatic=$hardcode_automatic_CXX
17501
17502# Set to yes if linker adds runtime paths of dependent libraries
17503# to runtime path list.
17504inherit_rpath=$inherit_rpath_CXX
17505
17506# Whether libtool must link a program against all its dependency libraries.
17507link_all_deplibs=$link_all_deplibs_CXX
17508
17509# Fix the shell variable \$srcfile for the compiler.
17510fix_srcfile_path=$lt_fix_srcfile_path_CXX
17511
17512# Set to "yes" if exported symbols are required.
17513always_export_symbols=$always_export_symbols_CXX
17514
17515# The commands to list exported symbols.
17516export_symbols_cmds=$lt_export_symbols_cmds_CXX
17517
17518# Symbols that should not be listed in the preloaded symbols.
17519exclude_expsyms=$lt_exclude_expsyms_CXX
17520
17521# Symbols that must always be exported.
17522include_expsyms=$lt_include_expsyms_CXX
17523
17524# Commands necessary for linking programs (against libraries) with templates.
17525prelink_cmds=$lt_prelink_cmds_CXX
17526
17527# Specify filename containing input files.
17528file_list_spec=$lt_file_list_spec_CXX
17529
17530# How to hardcode a shared library path into an executable.
17531hardcode_action=$hardcode_action_CXX
17532
17533# The directories searched by this compiler when creating a shared library.
17534compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17535
17536# Dependencies to place before and after the objects being linked to
17537# create a shared library.
17538predep_objects=$lt_predep_objects_CXX
17539postdep_objects=$lt_postdep_objects_CXX
17540predeps=$lt_predeps_CXX
17541postdeps=$lt_postdeps_CXX
17542
17543# The library search path used internally by the compiler when linking
17544# a shared library.
17545compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17546
17547# ### END LIBTOOL TAG CONFIG: CXX
17548_LT_EOF
17549
brynercb91a2f2006-08-25 21:14:45 +000017550 ;;
brynercb91a2f2006-08-25 21:14:45 +000017551
mmentovai8c2a4de2006-09-20 16:20:15 +000017552 esac
17553done # for ac_tag
17554
brynercb91a2f2006-08-25 21:14:45 +000017555
jimblandy92b1f832009-12-23 22:23:49 +000017556as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +000017557_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000017558ac_clean_files=$ac_clean_files_save
17559
jimblandy92b1f832009-12-23 22:23:49 +000017560test $ac_write_fail = 0 ||
17561 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17562
brynercb91a2f2006-08-25 21:14:45 +000017563
17564# configure is writing to config.log, and then calls config.status.
17565# config.status does its own redirection, appending to config.log.
17566# Unfortunately, on DOS this fails, as config.log is still kept open
17567# by configure, so config.status won't be able to write to it; its
17568# output is simply discarded. So we exec the FD to /dev/null,
17569# effectively closing config.log, so it can be properly (re)opened and
17570# appended to by config.status. When coming back to configure, we
17571# need to make the FD available again.
17572if test "$no_create" != yes; then
17573 ac_cs_success=:
17574 ac_config_status_args=
17575 test "$silent" = yes &&
17576 ac_config_status_args="$ac_config_status_args --quiet"
17577 exec 5>/dev/null
17578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17579 exec 5>>config.log
17580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17581 # would make configure fail if this is the last instruction.
jimblandy92b1f832009-12-23 22:23:49 +000017582 $ac_cs_success || as_fn_exit $?
17583fi
17584if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17586$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000017587fi
17588