blob: 9823e107a4694700b0e19cb4d1bc2ab03fa359ed [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
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000752LINUX_HOST_FALSE
753LINUX_HOST_TRUE
nealsidde545c02010-03-02 00:39:48 +0000754PTHREAD_CFLAGS
755PTHREAD_LIBS
756PTHREAD_CC
757ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000758LIBTOOL_DEPS
759CXXCPP
760OTOOL64
761OTOOL
762LIPO
763NMEDIT
764DSYMUTIL
765lt_ECHO
766RANLIB
767AR
768OBJDUMP
769LN_S
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
775EGREP
776GREP
777SED
jimblandy92b1f832009-12-23 22:23:49 +0000778LIBTOOL
779am__fastdepCXX_FALSE
780am__fastdepCXX_TRUE
781CXXDEPMODE
782ac_ct_CXX
783CXXFLAGS
784CXX
785CPP
786am__fastdepCC_FALSE
787am__fastdepCC_TRUE
788CCDEPMODE
789AMDEPBACKSLASH
790AMDEP_FALSE
791AMDEP_TRUE
792am__quote
793am__include
794DEPDIR
795OBJEXT
796EXEEXT
797ac_ct_CC
798CPPFLAGS
799LDFLAGS
800CFLAGS
801CC
802am__untar
803am__tar
804AMTAR
805am__leading_dot
806SET_MAKE
807AWK
808mkdir_p
809MKDIR_P
810INSTALL_STRIP_PROGRAM
811STRIP
812install_sh
813MAKEINFO
814AUTOHEADER
815AUTOMAKE
816AUTOCONF
817ACLOCAL
818VERSION
819PACKAGE
820CYGPATH_W
821am__isrc
822INSTALL_DATA
823INSTALL_SCRIPT
824INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000825host_os
826host_vendor
827host_cpu
828host
829build_os
830build_vendor
831build_cpu
832build
jimblandy92b1f832009-12-23 22:23:49 +0000833target_alias
834host_alias
835build_alias
836LIBS
837ECHO_T
838ECHO_N
839ECHO_C
840DEFS
841mandir
842localedir
843libdir
844psdir
845pdfdir
846dvidir
847htmldir
848infodir
849docdir
850oldincludedir
851includedir
852localstatedir
853sharedstatedir
854sysconfdir
855datadir
856datarootdir
857libexecdir
858sbindir
859bindir
860program_transform_name
861prefix
862exec_prefix
863PACKAGE_URL
864PACKAGE_BUGREPORT
865PACKAGE_STRING
866PACKAGE_VERSION
867PACKAGE_TARNAME
868PACKAGE_NAME
869PATH_SEPARATOR
870SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000871ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000872ac_user_opts='
873enable_option_checking
874enable_dependency_tracking
875enable_shared
876enable_static
877with_pic
878enable_fast_install
879with_gnu_ld
880enable_libtool_lock
nealsidde545c02010-03-02 00:39:48 +0000881enable_m32
jimblandy92b1f832009-12-23 22:23:49 +0000882enable_selftest
883'
mmentovai8c2a4de2006-09-20 16:20:15 +0000884 ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000890LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000891CPPFLAGS
892CPP
893CXX
894CXXFLAGS
895CCC
jimblandy92b1f832009-12-23 22:23:49 +0000896CXXCPP'
mmentovai8c2a4de2006-09-20 16:20:15 +0000897
brynercb91a2f2006-08-25 21:14:45 +0000898
899# Initialize some variables set by options.
900ac_init_help=
901ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000902ac_unrecognized_opts=
903ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000904# The variables have the same names as the options, with
905# dashes changed to underlines.
906cache_file=/dev/null
907exec_prefix=NONE
908no_create=
909no_recursion=
910prefix=NONE
911program_prefix=NONE
912program_suffix=NONE
913program_transform_name=s,x,x,
914silent=
915site=
916srcdir=
917verbose=
918x_includes=NONE
919x_libraries=NONE
920
921# Installation directory options.
922# These are left unexpanded so users can "make install exec_prefix=/foo"
923# and all the variables that are supposed to be based on exec_prefix
924# by default will actually change.
925# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000926# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000927bindir='${exec_prefix}/bin'
928sbindir='${exec_prefix}/sbin'
929libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000930datarootdir='${prefix}/share'
931datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000932sysconfdir='${prefix}/etc'
933sharedstatedir='${prefix}/com'
934localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000935includedir='${prefix}/include'
936oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000946
947ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000948ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000949for ac_option
950do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000953 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000954 ac_prev=
955 continue
956 fi
957
mmentovai8c2a4de2006-09-20 16:20:15 +0000958 case $ac_option in
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *) ac_optarg=yes ;;
961 esac
brynercb91a2f2006-08-25 21:14:45 +0000962
963 # Accept the important Cygnus configure options, so we can diagnose typos.
964
mmentovai8c2a4de2006-09-20 16:20:15 +0000965 case $ac_dashdash$ac_option in
966 --)
967 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000968
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 ac_prev=bindir ;;
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 bindir=$ac_optarg ;;
973
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
978
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
985
986 --config-cache | -C)
987 cache_file=config.cache ;;
988
mmentovai8c2a4de2006-09-20 16:20:15 +0000989 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000990 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000992 datadir=$ac_optarg ;;
993
mmentovai8c2a4de2006-09-20 16:20:15 +0000994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1000
brynercb91a2f2006-08-25 21:14:45 +00001001 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001002 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001003 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010"enable_$ac_useropt"
1011"*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001016
1017 -docdir | --docdir | --docdi | --doc | --do)
1018 ac_prev=docdir ;;
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1021
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 ac_prev=dvidir ;;
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001026
1027 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001028 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001029 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036"enable_$ac_useropt"
1037"*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001042
1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045 | --exec | --exe | --ex)
1046 ac_prev=exec_prefix ;;
1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049 | --exec=* | --exe=* | --ex=*)
1050 exec_prefix=$ac_optarg ;;
1051
1052 -gas | --gas | --ga | --g)
1053 # Obsolete; use --with-gas.
1054 with_gas=yes ;;
1055
1056 -help | --help | --hel | --he | -h)
1057 ac_init_help=long ;;
1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059 ac_init_help=recursive ;;
1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061 ac_init_help=short ;;
1062
1063 -host | --host | --hos | --ho)
1064 ac_prev=host_alias ;;
1065 -host=* | --host=* | --hos=* | --ho=*)
1066 host_alias=$ac_optarg ;;
1067
mmentovai8c2a4de2006-09-20 16:20:15 +00001068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 ac_prev=htmldir ;;
1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 | --ht=*)
1072 htmldir=$ac_optarg ;;
1073
brynercb91a2f2006-08-25 21:14:45 +00001074 -includedir | --includedir | --includedi | --included | --include \
1075 | --includ | --inclu | --incl | --inc)
1076 ac_prev=includedir ;;
1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
1079 includedir=$ac_optarg ;;
1080
1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 ac_prev=infodir ;;
1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084 infodir=$ac_optarg ;;
1085
1086 -libdir | --libdir | --libdi | --libd)
1087 ac_prev=libdir ;;
1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089 libdir=$ac_optarg ;;
1090
1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092 | --libexe | --libex | --libe)
1093 ac_prev=libexecdir ;;
1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095 | --libexe=* | --libex=* | --libe=*)
1096 libexecdir=$ac_optarg ;;
1097
mmentovai8c2a4de2006-09-20 16:20:15 +00001098 -localedir | --localedir | --localedi | --localed | --locale)
1099 ac_prev=localedir ;;
1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101 localedir=$ac_optarg ;;
1102
brynercb91a2f2006-08-25 21:14:45 +00001103 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001104 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001105 ac_prev=localstatedir ;;
1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001108 localstatedir=$ac_optarg ;;
1109
1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 ac_prev=mandir ;;
1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113 mandir=$ac_optarg ;;
1114
1115 -nfp | --nfp | --nf)
1116 # Obsolete; use --without-fp.
1117 with_fp=no ;;
1118
1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120 | --no-cr | --no-c | -n)
1121 no_create=yes ;;
1122
1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 no_recursion=yes ;;
1126
1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129 | --oldin | --oldi | --old | --ol | --o)
1130 ac_prev=oldincludedir ;;
1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134 oldincludedir=$ac_optarg ;;
1135
1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 ac_prev=prefix ;;
1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139 prefix=$ac_optarg ;;
1140
1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142 | --program-pre | --program-pr | --program-p)
1143 ac_prev=program_prefix ;;
1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146 program_prefix=$ac_optarg ;;
1147
1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149 | --program-suf | --program-su | --program-s)
1150 ac_prev=program_suffix ;;
1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153 program_suffix=$ac_optarg ;;
1154
1155 -program-transform-name | --program-transform-name \
1156 | --program-transform-nam | --program-transform-na \
1157 | --program-transform-n | --program-transform- \
1158 | --program-transform | --program-transfor \
1159 | --program-transfo | --program-transf \
1160 | --program-trans | --program-tran \
1161 | --progr-tra | --program-tr | --program-t)
1162 ac_prev=program_transform_name ;;
1163 -program-transform-name=* | --program-transform-name=* \
1164 | --program-transform-nam=* | --program-transform-na=* \
1165 | --program-transform-n=* | --program-transform-=* \
1166 | --program-transform=* | --program-transfor=* \
1167 | --program-transfo=* | --program-transf=* \
1168 | --program-trans=* | --program-tran=* \
1169 | --progr-tra=* | --program-tr=* | --program-t=*)
1170 program_transform_name=$ac_optarg ;;
1171
mmentovai8c2a4de2006-09-20 16:20:15 +00001172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 ac_prev=pdfdir ;;
1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175 pdfdir=$ac_optarg ;;
1176
1177 -psdir | --psdir | --psdi | --psd | --ps)
1178 ac_prev=psdir ;;
1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 psdir=$ac_optarg ;;
1181
brynercb91a2f2006-08-25 21:14:45 +00001182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183 | -silent | --silent | --silen | --sile | --sil)
1184 silent=yes ;;
1185
1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 ac_prev=sbindir ;;
1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 | --sbi=* | --sb=*)
1190 sbindir=$ac_optarg ;;
1191
1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194 | --sharedst | --shareds | --shared | --share | --shar \
1195 | --sha | --sh)
1196 ac_prev=sharedstatedir ;;
1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 | --sha=* | --sh=*)
1201 sharedstatedir=$ac_optarg ;;
1202
1203 -site | --site | --sit)
1204 ac_prev=site ;;
1205 -site=* | --site=* | --sit=*)
1206 site=$ac_optarg ;;
1207
1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 ac_prev=srcdir ;;
1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211 srcdir=$ac_optarg ;;
1212
1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214 | --syscon | --sysco | --sysc | --sys | --sy)
1215 ac_prev=sysconfdir ;;
1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218 sysconfdir=$ac_optarg ;;
1219
1220 -target | --target | --targe | --targ | --tar | --ta | --t)
1221 ac_prev=target_alias ;;
1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223 target_alias=$ac_optarg ;;
1224
1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 verbose=yes ;;
1227
1228 -version | --version | --versio | --versi | --vers | -V)
1229 ac_init_version=: ;;
1230
1231 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001233 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error "invalid package name: $ac_useropt"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240"with_$ac_useropt"
1241"*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001246
1247 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001249 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error "invalid package name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256"with_$ac_useropt"
1257"*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001262
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1266
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1273
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1280
jimblandy92b1f832009-12-23 22:23:49 +00001281 -*) as_fn_error "unrecognized option: \`$ac_option'
1282Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001283 ;;
1284
1285 *=*)
1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001288 case $ac_envvar in #(
1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
1290 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1291 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001292 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001293 export $ac_envvar ;;
1294
1295 *)
1296 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301 ;;
1302
1303 esac
1304done
1305
1306if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jimblandy92b1f832009-12-23 22:23:49 +00001308 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001309fi
1310
jimblandy92b1f832009-12-23 22:23:49 +00001311if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1313 no) ;;
1314 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 esac
1317fi
1318
1319# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001320for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001324do
mmentovai8c2a4de2006-09-20 16:20:15 +00001325 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001326 # Remove trailing slashes.
1327 case $ac_val in
1328 */ )
1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\$ac_val;;
1331 esac
1332 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001333 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001334 [\\/$]* | ?:[\\/]* ) continue;;
1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001336 esac
jimblandy92b1f832009-12-23 22:23:49 +00001337 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001338done
1339
1340# There might be people who depend on the old broken behavior: `$host'
1341# used to hold the argument of --host etc.
1342# FIXME: To remove some day.
1343build=$build_alias
1344host=$host_alias
1345target=$target_alias
1346
1347# FIXME: To remove some day.
1348if test "x$host_alias" != x; then
1349 if test "x$build_alias" = x; then
1350 cross_compiling=maybe
jimblandy92b1f832009-12-23 22:23:49 +00001351 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
brynercb91a2f2006-08-25 21:14:45 +00001352 If a cross compiler is detected then cross compile mode will be used." >&2
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1355 fi
1356fi
1357
1358ac_tool_prefix=
1359test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361test "$silent" = yes && exec 6>/dev/null
1362
1363
mmentovai8c2a4de2006-09-20 16:20:15 +00001364ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365ac_ls_di=`ls -di .` &&
1366ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
jimblandy92b1f832009-12-23 22:23:49 +00001367 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001368test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
jimblandy92b1f832009-12-23 22:23:49 +00001369 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001370
1371
brynercb91a2f2006-08-25 21:14:45 +00001372# Find the source files, if location was not specified.
1373if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001375 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\).*/{
1395 s//\1/
1396 q
1397 }
1398 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001399 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001400 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001401 srcdir=..
1402 fi
1403else
1404 ac_srcdir_defaulted=no
1405fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001406if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
jimblandy92b1f832009-12-23 22:23:49 +00001408 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001409fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001410ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411ac_abs_confdir=`(
jimblandy92b1f832009-12-23 22:23:49 +00001412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001413 pwd)`
1414# When building in place, set srcdir=.
1415if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417fi
1418# Remove unnecessary trailing slashes from srcdir.
1419# Double slashes in file names in object file debugging info
1420# mess up M-x gdb in Emacs.
1421case $srcdir in
1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423esac
1424for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429done
brynercb91a2f2006-08-25 21:14:45 +00001430
1431#
1432# Report the --help message.
1433#
1434if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001438\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001439
1440Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445Defaults for the options are specified in brackets.
1446
1447Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
brynercb91a2f2006-08-25 21:14:45 +00001458Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001460 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001462 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001463
1464By default, \`make install' will install all the files in
1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467for instance \`--prefix=\$HOME'.
1468
1469For better control, use the options below.
1470
1471Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001491_ACEOF
1492
1493 cat <<\_ACEOF
1494
1495Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499
1500System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503_ACEOF
1504fi
1505
1506if test -n "$ac_init_help"; then
1507 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001508 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001509 esac
1510 cat <<\_ACEOF
1511
1512Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001513 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --disable-dependency-tracking speeds up one-time build
1517 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001518 --enable-shared[=PKGS] build shared libraries [default=yes]
1519 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --disable-libtool-lock avoid locking (might break parallel builds)
nealsidde545c02010-03-02 00:39:48 +00001523 --enable-m32 Compile/build with -m32 (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001524 --enable-selftest Run extra tests with "make check" (may conflict with
1525 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001526
1527Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
brynercb91a2f2006-08-25 21:14:45 +00001530 --with-pic try to use only PIC/non-PIC objects [default=use
1531 both]
jimblandy92b1f832009-12-23 22:23:49 +00001532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
brynercb91a2f2006-08-25 21:14:45 +00001533
1534Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001539 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001541 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001542 CPP C preprocessor
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1545 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550Report bugs to <opensource@google.com>.
1551_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001552ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
brynercb91a2f2006-08-25 21:14:45 +00001561 ac_builddir=.
1562
mmentovai8c2a4de2006-09-20 16:20:15 +00001563case "$ac_dir" in
1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565*)
jimblandy92b1f832009-12-23 22:23:49 +00001566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001567 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573esac
1574ac_abs_top_builddir=$ac_pwd
1575ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576# for backward compatibility:
1577ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001578
1579case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001580 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001581 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001585 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001592esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001594
mmentovai8c2a4de2006-09-20 16:20:15 +00001595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001603 else
jimblandy92b1f832009-12-23 22:23:49 +00001604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001607 done
1608fi
1609
mmentovai8c2a4de2006-09-20 16:20:15 +00001610test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001611if $ac_init_version; then
1612 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001613breakpad configure 0.1
jimblandydc4029a2010-02-02 17:39:51 +00001614generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001615
jimblandy92b1f832009-12-23 22:23:49 +00001616Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001617This configure script is free software; the Free Software Foundation
1618gives unlimited permission to copy, distribute and modify it.
1619_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001620 exit
brynercb91a2f2006-08-25 21:14:45 +00001621fi
jimblandy92b1f832009-12-23 22:23:49 +00001622
1623## ------------------------ ##
1624## Autoconf initialization. ##
1625## ------------------------ ##
1626
1627# ac_fn_c_try_compile LINENO
1628# --------------------------
1629# Try to compile conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_compile ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654else
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659fi
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001661 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001662
1663} # ac_fn_c_try_compile
1664
1665# ac_fn_c_try_cpp LINENO
1666# ----------------------
1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_cpp ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } >/dev/null && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001698 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_cxx_try_compile LINENO
1703# ----------------------------
1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_cxx_try_compile ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_cxx_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734fi
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001736 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001737
1738} # ac_fn_cxx_try_compile
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 $as_test_x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001782 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001783
1784} # ac_fn_c_try_link
1785
1786# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787# -------------------------------------------------------
1788# Tests whether HEADER exists and can be compiled using the include files in
1789# INCLUDES, setting the cache variable VAR accordingly.
1790ac_fn_c_check_header_compile ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
1795if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 $as_echo_n "(cached) " >&6
1797else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805else
1806 eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814
1815} # ac_fn_c_check_header_compile
1816
1817# ac_fn_c_try_run LINENO
1818# ----------------------
1819# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820# that executables *can* be run.
1821ac_fn_c_try_run ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1825case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1832 ac_status=$?
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1842 ac_status=$?
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1845 ac_retval=0
1846else
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=$ac_status
1852fi
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001855 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001856
1857} # ac_fn_c_try_run
1858
1859# ac_fn_c_check_func LINENO FUNC VAR
1860# ----------------------------------
1861# Tests whether FUNC exists, setting the cache variable VAR accordingly
1862ac_fn_c_check_func ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874#define $2 innocuous_$2
1875
1876/* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1880
1881#ifdef __STDC__
1882# include <limits.h>
1883#else
1884# include <assert.h>
1885#endif
1886
1887#undef $2
1888
1889/* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1892#ifdef __cplusplus
1893extern "C"
1894#endif
1895char $2 ();
1896/* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899#if defined __stub_$2 || defined __stub___$2
1900choke me
1901#endif
1902
1903int
1904main ()
1905{
1906return $2 ();
1907 ;
1908 return 0;
1909}
1910_ACEOF
1911if ac_fn_c_try_link "$LINENO"; then :
1912 eval "$3=yes"
1913else
1914 eval "$3=no"
1915fi
1916rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924} # ac_fn_c_check_func
1925
1926# ac_fn_cxx_try_cpp LINENO
1927# ------------------------
1928# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929ac_fn_cxx_try_cpp ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1933case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } >/dev/null && {
1948 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 }; then :
1951 ac_retval=0
1952else
1953 $as_echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_retval=1
1957fi
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001959 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001960
1961} # ac_fn_cxx_try_cpp
1962
1963# ac_fn_cxx_try_link LINENO
1964# -------------------------
1965# Try to link conftest.$ac_ext, and return whether this succeeded.
1966ac_fn_cxx_try_link ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext conftest$ac_exeext
1970 if { { ac_try="$ac_link"
1971case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974esac
1975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976$as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_link") 2>conftest.err
1978 ac_status=$?
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1983 fi
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_cxx_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest$ac_exeext && {
1989 test "$cross_compiling" = yes ||
1990 $as_test_x conftest$ac_exeext
1991 }; then :
1992 ac_retval=0
1993else
1994 $as_echo "$as_me: failed program was:" >&5
1995sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 ac_retval=1
1998fi
1999 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001 # interfere with the next link command; also delete a directory that is
2002 # left behind by Apple's compiler. We do this before executing the actions.
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00002005 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00002006
2007} # ac_fn_cxx_try_link
ted.mielczarekb2236272010-04-08 23:06:23 +00002008
2009# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2010# ----------------------------------------------------
2011# Tries to find if the field MEMBER exists in type AGGR, after including
2012# INCLUDES, setting cache variable VAR accordingly.
2013ac_fn_c_check_member ()
2014{
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2017$as_echo_n "checking for $2.$3... " >&6; }
2018if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2019 $as_echo_n "(cached) " >&6
2020else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$5
2024int
2025main ()
2026{
2027static $2 ac_aggr;
2028if (ac_aggr.$3)
2029return 0;
2030 ;
2031 return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$4=yes"
2036else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h. */
2039$5
2040int
2041main ()
2042{
2043static $2 ac_aggr;
2044if (sizeof ac_aggr.$3)
2045return 0;
2046 ;
2047 return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051 eval "$4=yes"
2052else
2053 eval "$4=no"
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059eval ac_res=\$$4
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064} # ac_fn_c_check_member
mmentovai8c2a4de2006-09-20 16:20:15 +00002065cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00002066This file contains any messages produced by compilers while
2067running configure, to aid debugging if configure makes a mistake.
2068
mmentovaie5dc6082007-02-14 19:51:05 +00002069It was created by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +00002070generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00002071
2072 $ $0 $@
2073
2074_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002075exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00002076{
2077cat <<_ASUNAME
2078## --------- ##
2079## Platform. ##
2080## --------- ##
2081
2082hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2090
2091/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00002094/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00002095/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098
2099_ASUNAME
2100
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002106 $as_echo "PATH: $as_dir"
2107 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002108IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002109
2110} >&5
2111
2112cat >&5 <<_ACEOF
2113
2114
2115## ----------- ##
2116## Core tests. ##
2117## ----------- ##
2118
2119_ACEOF
2120
2121
2122# Keep a trace of the command line.
2123# Strip out --no-create and --no-recursion so they do not pile up.
2124# Strip out --silent because we don't want to record it for future runs.
2125# Also quote any args containing shell meta-characters.
2126# Make two passes to allow for proper duplicate-argument suppression.
2127ac_configure_args=
2128ac_configure_args0=
2129ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002130ac_must_keep_next=false
2131for ac_pass in 1 2
2132do
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2139 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002140 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002142 esac
2143 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002145 2)
jimblandy92b1f832009-12-23 22:23:49 +00002146 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2149 else
2150 case $ac_arg in
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 esac
2158 ;;
2159 -* ) ac_must_keep_next=true ;;
2160 esac
2161 fi
jimblandy92b1f832009-12-23 22:23:49 +00002162 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002163 ;;
2164 esac
2165 done
2166done
jimblandy92b1f832009-12-23 22:23:49 +00002167{ ac_configure_args0=; unset ac_configure_args0;}
2168{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002169
2170# When interrupted or exit'd, cleanup temporary files, and complete
2171# config.log. We remove comments because anyway the quotes in there
2172# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002173# WARNING: Use '\'' to represent an apostrophe within the trap.
2174# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002175trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2177 {
2178 echo
2179
2180 cat <<\_ASBOX
2181## ---------------- ##
2182## Cache variables. ##
2183## ---------------- ##
2184_ASBOX
2185 echo
2186 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002187(
2188 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in #(
2191 *${as_nl}*)
2192 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2194$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002195 esac
2196 case $ac_var in #(
2197 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2199 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002200 esac ;;
2201 esac
2202 done
brynercb91a2f2006-08-25 21:14:45 +00002203 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002204 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2205 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002206 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002207 "s/'\''/'\''\\\\'\'''\''/g;
2208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002210 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002212 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002213 esac |
2214 sort
2215)
brynercb91a2f2006-08-25 21:14:45 +00002216 echo
2217
2218 cat <<\_ASBOX
2219## ----------------- ##
2220## Output variables. ##
2221## ----------------- ##
2222_ASBOX
2223 echo
2224 for ac_var in $ac_subst_vars
2225 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002226 eval ac_val=\$$ac_var
2227 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002229 esac
jimblandy92b1f832009-12-23 22:23:49 +00002230 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002231 done | sort
2232 echo
2233
2234 if test -n "$ac_subst_files"; then
2235 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00002236## ------------------- ##
2237## File substitutions. ##
2238## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002239_ASBOX
2240 echo
2241 for ac_var in $ac_subst_files
2242 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002243 eval ac_val=\$$ac_var
2244 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002246 esac
jimblandy92b1f832009-12-23 22:23:49 +00002247 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002248 done | sort
2249 echo
2250 fi
2251
2252 if test -s confdefs.h; then
2253 cat <<\_ASBOX
2254## ----------- ##
2255## confdefs.h. ##
2256## ----------- ##
2257_ASBOX
2258 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002259 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002260 echo
2261 fi
2262 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002263 $as_echo "$as_me: caught signal $ac_signal"
2264 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002265 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002266 rm -f core *.core core.conftest.* &&
2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002268 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002269' 0
brynercb91a2f2006-08-25 21:14:45 +00002270for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002272done
2273ac_signal=0
2274
2275# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002276rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002277
jimblandy92b1f832009-12-23 22:23:49 +00002278$as_echo "/* confdefs.h */" > confdefs.h
2279
brynercb91a2f2006-08-25 21:14:45 +00002280# Predefined preprocessor variables.
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_NAME "$PACKAGE_NAME"
2284_ACEOF
2285
brynercb91a2f2006-08-25 21:14:45 +00002286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2288_ACEOF
2289
brynercb91a2f2006-08-25 21:14:45 +00002290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_VERSION "$PACKAGE_VERSION"
2292_ACEOF
2293
brynercb91a2f2006-08-25 21:14:45 +00002294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_STRING "$PACKAGE_STRING"
2296_ACEOF
2297
brynercb91a2f2006-08-25 21:14:45 +00002298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2300_ACEOF
2301
jimblandy92b1f832009-12-23 22:23:49 +00002302cat >>confdefs.h <<_ACEOF
2303#define PACKAGE_URL "$PACKAGE_URL"
2304_ACEOF
2305
brynercb91a2f2006-08-25 21:14:45 +00002306
2307# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002308# Prefer an explicitly selected file to automatically selected ones.
2309ac_site_file1=NONE
2310ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002311if test -n "$CONFIG_SITE"; then
jimblandy92b1f832009-12-23 22:23:49 +00002312 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002313elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002314 ac_site_file1=$prefix/share/config.site
2315 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002316else
jimblandy92b1f832009-12-23 22:23:49 +00002317 ac_site_file1=$ac_default_prefix/share/config.site
2318 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002319fi
jimblandy92b1f832009-12-23 22:23:49 +00002320for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002321do
jimblandy92b1f832009-12-23 22:23:49 +00002322 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002323 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2325$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002326 sed 's/^/| /' "$ac_site_file" >&5
2327 . "$ac_site_file"
2328 fi
2329done
2330
2331if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002332 # Some versions of bash will fail to source /dev/null (special files
2333 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2334 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2336$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002337 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002338 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2339 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002340 esac
2341 fi
2342else
jimblandy92b1f832009-12-23 22:23:49 +00002343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2344$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002345 >$cache_file
2346fi
2347
2348# Check that the precious variables saved in the cache have kept the same
2349# value.
2350ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002351for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002356 case $ac_old_set,$ac_new_set in
2357 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2359$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002360 ac_cache_corrupted=: ;;
2361 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2363$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002364 ac_cache_corrupted=: ;;
2365 ,);;
2366 *)
2367 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002368 # differences in whitespace do not lead to failure.
2369 ac_old_val_w=`echo x $ac_old_val`
2370 ac_new_val_w=`echo x $ac_new_val`
2371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2373$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374 ac_cache_corrupted=:
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2377$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2378 eval $ac_var=\$ac_old_val
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2381$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2383$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002384 fi;;
2385 esac
2386 # Pass precious variables to config.status.
2387 if test "$ac_new_set" = set; then
2388 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002389 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002390 *) ac_arg=$ac_var=$ac_new_val ;;
2391 esac
2392 case " $ac_configure_args " in
2393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002395 esac
2396 fi
2397done
2398if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2402$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2403 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002404fi
jimblandy92b1f832009-12-23 22:23:49 +00002405## -------------------- ##
2406## Main body of script. ##
2407## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002408
brynercb91a2f2006-08-25 21:14:45 +00002409ac_ext=c
2410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416
brynercb91a2f2006-08-25 21:14:45 +00002417ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002418for ac_dir in autotools "$srcdir"/autotools; do
jimblandy92b1f832009-12-23 22:23:49 +00002419 for ac_t in install-sh install.sh shtool; do
2420 if test -f "$ac_dir/$ac_t"; then
2421 ac_aux_dir=$ac_dir
2422 ac_install_sh="$ac_aux_dir/$ac_t -c"
2423 break 2
2424 fi
2425 done
brynercb91a2f2006-08-25 21:14:45 +00002426done
2427if test -z "$ac_aux_dir"; then
jimblandy92b1f832009-12-23 22:23:49 +00002428 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002429fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002430
2431# These three variables are undocumented and unsupported,
2432# and are intended to be withdrawn in a future Autoconf release.
2433# They can cause serious problems if a builder's source tree is in a directory
2434# whose full name contains unusual characters.
2435ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2436ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2437ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2438
brynercb91a2f2006-08-25 21:14:45 +00002439
mmentovai425d2562006-08-30 20:05:05 +00002440
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002441# Make sure we can run config.sub.
2442$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2443 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2444
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2446$as_echo_n "checking build system type... " >&6; }
2447if test "${ac_cv_build+set}" = set; then :
2448 $as_echo_n "(cached) " >&6
2449else
2450 ac_build_alias=$build_alias
2451test "x$ac_build_alias" = x &&
2452 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2453test "x$ac_build_alias" = x &&
2454 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2455ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2456 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2457
2458fi
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2460$as_echo "$ac_cv_build" >&6; }
2461case $ac_cv_build in
2462*-*-*) ;;
2463*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2464esac
2465build=$ac_cv_build
2466ac_save_IFS=$IFS; IFS='-'
2467set x $ac_cv_build
2468shift
2469build_cpu=$1
2470build_vendor=$2
2471shift; shift
2472# Remember, the first character of IFS is used to create $*,
2473# except with old shells:
2474build_os=$*
2475IFS=$ac_save_IFS
2476case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2477
2478
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2480$as_echo_n "checking host system type... " >&6; }
2481if test "${ac_cv_host+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
2483else
2484 if test "x$host_alias" = x; then
2485 ac_cv_host=$ac_cv_build
2486else
2487 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2488 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2489fi
2490
2491fi
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2493$as_echo "$ac_cv_host" >&6; }
2494case $ac_cv_host in
2495*-*-*) ;;
2496*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2497esac
2498host=$ac_cv_host
2499ac_save_IFS=$IFS; IFS='-'
2500set x $ac_cv_host
2501shift
2502host_cpu=$1
2503host_vendor=$2
2504shift; shift
2505# Remember, the first character of IFS is used to create $*,
2506# except with old shells:
2507host_os=$*
2508IFS=$ac_save_IFS
2509case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2510
2511
2512
jimblandy92b1f832009-12-23 22:23:49 +00002513am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002514
brynercb91a2f2006-08-25 21:14:45 +00002515# Find a good install program. We prefer a C program (faster),
2516# so one script is as good as another. But avoid the broken or
2517# incompatible versions:
2518# SysV /etc/install, /usr/sbin/install
2519# SunOS /usr/etc/install
2520# IRIX /sbin/install
2521# AIX /bin/install
2522# AmigaOS /C/install, which installs bootblocks on floppy discs
2523# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2524# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2525# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2526# OS/2's system install, which has a completely different semantic
2527# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002528# Reject install programs that cannot install multiple files.
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2530$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002531if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002532if test "${ac_cv_path_install+set}" = set; then :
2533 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002534else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002540 # Account for people who put trailing slashes in PATH elements.
2541case $as_dir/ in #((
2542 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002545 /usr/ucb/* ) ;;
2546 *)
2547 # OSF1 and SCO ODT 3.0 have their own names for install.
2548 # Don't use installbsd from OSF since it installs stuff as root
2549 # by default.
2550 for ac_prog in ginstall scoinst install; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002552 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 +00002553 if test $ac_prog = install &&
2554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # AIX install. It has an incompatible calling convention.
2556 :
2557 elif test $ac_prog = install &&
2558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # program-specific install script used by HP pwplus--don't use.
2560 :
2561 else
jimblandy92b1f832009-12-23 22:23:49 +00002562 rm -rf conftest.one conftest.two conftest.dir
2563 echo one > conftest.one
2564 echo two > conftest.two
2565 mkdir conftest.dir
2566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2567 test -s conftest.one && test -s conftest.two &&
2568 test -s conftest.dir/conftest.one &&
2569 test -s conftest.dir/conftest.two
2570 then
2571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2572 break 3
2573 fi
brynercb91a2f2006-08-25 21:14:45 +00002574 fi
2575 fi
2576 done
2577 done
2578 ;;
2579esac
jimblandy92b1f832009-12-23 22:23:49 +00002580
2581 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002582IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002583
jimblandy92b1f832009-12-23 22:23:49 +00002584rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002585
2586fi
2587 if test "${ac_cv_path_install+set}" = set; then
2588 INSTALL=$ac_cv_path_install
2589 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002590 # As a last resort, use the slow shell script. Don't cache a
2591 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002592 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002593 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002594 INSTALL=$ac_install_sh
2595 fi
2596fi
jimblandy92b1f832009-12-23 22:23:49 +00002597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2598$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002599
2600# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601# It thinks the first close brace ends the variable substitution.
2602test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2603
2604test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2605
2606test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2607
jimblandy92b1f832009-12-23 22:23:49 +00002608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2609$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002610# Just in case
2611sleep 1
2612echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002613# Reject unsafe characters in $srcdir or the absolute working directory
2614# name. Accept space and tab only in the latter.
2615am_lf='
2616'
2617case `pwd` in
2618 *[\\\"\#\$\&\'\`$am_lf]*)
2619 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2620esac
2621case $srcdir in
2622 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2623 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2624esac
2625
brynercb91a2f2006-08-25 21:14:45 +00002626# Do `set' in a subshell so we don't clobber the current shell's
2627# arguments. Must try -L first in case configure is actually a
2628# symlink; some systems play weird games with the mod time of symlinks
2629# (eg FreeBSD returns the mod time of the symlink's containing
2630# directory).
2631if (
jimblandy92b1f832009-12-23 22:23:49 +00002632 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002633 if test "$*" = "X"; then
2634 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002635 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002636 fi
2637 rm -f conftest.file
2638 if test "$*" != "X $srcdir/configure conftest.file" \
2639 && test "$*" != "X conftest.file $srcdir/configure"; then
2640
2641 # If neither matched, then we have a broken ls. This can happen
2642 # if, for instance, CONFIG_SHELL is bash and it inherits a
2643 # broken ls alias from the environment. This has actually
2644 # happened. Such a system could not be considered "sane".
jimblandy92b1f832009-12-23 22:23:49 +00002645 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2646alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002647 fi
2648
2649 test "$2" = conftest.file
2650 )
2651then
2652 # Ok.
2653 :
2654else
jimblandy92b1f832009-12-23 22:23:49 +00002655 as_fn_error "newly created file is older than distributed files!
2656Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002657fi
jimblandy92b1f832009-12-23 22:23:49 +00002658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002660test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002661 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002662# Use a double $ so make ignores it.
2663test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002664 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002665# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002666# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002667ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2668program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002669
2670# expand $ac_aux_dir to an absolute path
2671am_aux_dir=`cd $ac_aux_dir && pwd`
2672
jimblandy92b1f832009-12-23 22:23:49 +00002673if test x"${MISSING+set}" != xset; then
2674 case $am_aux_dir in
2675 *\ * | *\ *)
2676 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2677 *)
2678 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2679 esac
2680fi
brynercb91a2f2006-08-25 21:14:45 +00002681# Use eval to expand $SHELL
2682if eval "$MISSING --run true"; then
2683 am_missing_run="$MISSING --run "
2684else
2685 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2687$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002688fi
2689
jimblandy92b1f832009-12-23 22:23:49 +00002690if test x"${install_sh}" != xset; then
2691 case $am_aux_dir in
2692 *\ * | *\ *)
2693 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2694 *)
2695 install_sh="\${SHELL} $am_aux_dir/install-sh"
2696 esac
2697fi
2698
2699# Installed binaries are usually stripped using `strip' when the user
2700# run `make install-strip'. However `strip' might not be the right
2701# tool to use in cross-compilation environments, therefore Automake
2702# will honor the `STRIP' environment variable to overrule this program.
2703if test "$cross_compiling" != no; then
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}strip; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if test "${ac_cv_prog_STRIP+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711else
2712 if test -n "$STRIP"; then
2713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726done
2727 done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732STRIP=$ac_cv_prog_STRIP
2733if test -n "$STRIP"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735$as_echo "$STRIP" >&6; }
2736else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742fi
2743if test -z "$ac_cv_prog_STRIP"; then
2744 ac_ct_STRIP=$STRIP
2745 # Extract the first word of "strip", so it can be a program name with args.
2746set dummy strip; ac_word=$2
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
2751else
2752 if test -n "$ac_ct_STRIP"; then
2753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_ac_ct_STRIP="strip"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766done
2767 done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2773if test -n "$ac_ct_STRIP"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2775$as_echo "$ac_ct_STRIP" >&6; }
2776else
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781 if test "x$ac_ct_STRIP" = x; then
2782 STRIP=":"
2783 else
2784 case $cross_compiling:$ac_tool_warned in
2785yes:)
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790 STRIP=$ac_ct_STRIP
2791 fi
2792else
2793 STRIP="$ac_cv_prog_STRIP"
2794fi
2795
2796fi
2797INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2800$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002801if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002802 if test "${ac_cv_path_mkdir+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002804else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002810 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2813 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2814 'mkdir (GNU coreutils) '* | \
2815 'mkdir (coreutils) '* | \
2816 'mkdir (fileutils) '4.1*)
2817 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2818 break 3;;
2819 esac
2820 done
2821 done
jimblandy92b1f832009-12-23 22:23:49 +00002822 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002823IFS=$as_save_IFS
2824
2825fi
2826
jimblandydc4029a2010-02-02 17:39:51 +00002827 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002828 if test "${ac_cv_path_mkdir+set}" = set; then
2829 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002830 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002831 # As a last resort, use the slow shell script. Don't cache a
2832 # value for MKDIR_P within a source directory, because that will
2833 # break other packages using the cache if that directory is
2834 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002835 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002836 fi
2837fi
jimblandy92b1f832009-12-23 22:23:49 +00002838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2839$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002840
2841mkdir_p="$MKDIR_P"
2842case $mkdir_p in
2843 [\\/$]* | ?:[\\/]*) ;;
2844 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2845esac
brynercb91a2f2006-08-25 21:14:45 +00002846
2847for ac_prog in gawk mawk nawk awk
2848do
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
2853if test "${ac_cv_prog_AWK+set}" = set; then :
2854 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002855else
2856 if test -n "$AWK"; then
2857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002864 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002865 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 +00002866 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002868 break 2
2869 fi
2870done
jimblandy92b1f832009-12-23 22:23:49 +00002871 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002872IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002873
2874fi
2875fi
2876AWK=$ac_cv_prog_AWK
2877if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2879$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002880else
jimblandy92b1f832009-12-23 22:23:49 +00002881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002883fi
2884
mmentovai8c2a4de2006-09-20 16:20:15 +00002885
brynercb91a2f2006-08-25 21:14:45 +00002886 test -n "$AWK" && break
2887done
2888
jimblandy92b1f832009-12-23 22:23:49 +00002889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2890$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2891set x ${MAKE-make}
2892ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2893if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2894 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002895else
2896 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002897SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002898all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002899 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002900_ACEOF
2901# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002902case `${MAKE-make} -f conftest.make 2>/dev/null` in
2903 *@@@%%%=?*=@@@%%%*)
2904 eval ac_cv_prog_make_${ac_make}_set=yes;;
2905 *)
2906 eval ac_cv_prog_make_${ac_make}_set=no;;
2907esac
brynercb91a2f2006-08-25 21:14:45 +00002908rm -f conftest.make
2909fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002910if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002913 SET_MAKE=
2914else
jimblandy92b1f832009-12-23 22:23:49 +00002915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002917 SET_MAKE="MAKE=${MAKE-make}"
2918fi
2919
2920rm -rf .tst 2>/dev/null
2921mkdir .tst 2>/dev/null
2922if test -d .tst; then
2923 am__leading_dot=.
2924else
2925 am__leading_dot=_
2926fi
2927rmdir .tst 2>/dev/null
2928
mmentovaiaf3c43f2007-05-17 18:34:37 +00002929if test "`cd $srcdir && pwd`" != "`pwd`"; then
2930 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2931 # is not polluted with repeated "-I."
2932 am__isrc=' -I$(srcdir)'
2933 # test to see if srcdir already configured
2934 if test -f $srcdir/config.status; then
jimblandy92b1f832009-12-23 22:23:49 +00002935 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002936 fi
brynercb91a2f2006-08-25 21:14:45 +00002937fi
2938
2939# test whether we have cygpath
2940if test -z "$CYGPATH_W"; then
2941 if (cygpath --version) >/dev/null 2>/dev/null; then
2942 CYGPATH_W='cygpath -w'
2943 else
2944 CYGPATH_W=echo
2945 fi
2946fi
2947
2948
2949# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002950 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002951 VERSION='0.1'
2952
2953
2954cat >>confdefs.h <<_ACEOF
2955#define PACKAGE "$PACKAGE"
2956_ACEOF
2957
2958
2959cat >>confdefs.h <<_ACEOF
2960#define VERSION "$VERSION"
2961_ACEOF
2962
2963# Some tools Automake needs.
2964
2965ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2966
2967
2968AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2969
2970
2971AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2972
2973
2974AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2975
2976
2977MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2978
brynercb91a2f2006-08-25 21:14:45 +00002979# We need awk for the "check" target. The system "awk" is bad on
2980# some platforms.
2981# Always define AMTAR for backward compatibility.
2982
2983AMTAR=${AMTAR-"${am_missing_run}tar"}
2984
mmentovaidb3342a2006-12-05 22:52:28 +00002985
jimblandy92b1f832009-12-23 22:23:49 +00002986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2987$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002988# Loop over all known methods to create a tar archive until one works.
2989_am_tools='gnutar plaintar pax cpio none'
2990_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2991# Do not fold the above two line into one, because Tru64 sh and
2992# Solaris sh will not grok spaces in the rhs of `-'.
2993for _am_tool in $_am_tools
2994do
2995 case $_am_tool in
2996 gnutar)
2997 for _am_tar in tar gnutar gtar;
2998 do
2999 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3000 ($_am_tar --version) >&5 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } && break
3004 done
3005 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3006 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3007 am__untar="$_am_tar -xf -"
3008 ;;
3009 plaintar)
3010 # Must skip GNU tar: if it does not support --format= it doesn't create
3011 # ustar tarball either.
3012 (tar --version) >/dev/null 2>&1 && continue
3013 am__tar='tar chf - "$$tardir"'
3014 am__tar_='tar chf - "$tardir"'
3015 am__untar='tar xf -'
3016 ;;
3017 pax)
3018 am__tar='pax -L -x ustar -w "$$tardir"'
3019 am__tar_='pax -L -x ustar -w "$tardir"'
3020 am__untar='pax -r'
3021 ;;
3022 cpio)
3023 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3024 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3025 am__untar='cpio -i -H ustar -d'
3026 ;;
3027 none)
3028 am__tar=false
3029 am__tar_=false
3030 am__untar=false
3031 ;;
3032 esac
3033
3034 # If the value was cached, stop now. We just wanted to have am__tar
3035 # and am__untar set.
3036 test -n "${am_cv_prog_tar_ustar}" && break
3037
3038 # tar/untar a dummy directory, and stop if the command works
3039 rm -rf conftest.dir
3040 mkdir conftest.dir
3041 echo GrepMe > conftest.dir/file
3042 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3043 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 rm -rf conftest.dir
3048 if test -s conftest.tar; then
3049 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3050 ($am__untar <conftest.tar) >&5 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }
3054 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3055 fi
3056done
3057rm -rf conftest.dir
3058
jimblandy92b1f832009-12-23 22:23:49 +00003059if test "${am_cv_prog_tar_ustar+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00003061else
3062 am_cv_prog_tar_ustar=$_am_tool
3063fi
3064
jimblandy92b1f832009-12-23 22:23:49 +00003065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3066$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003067
3068
3069
3070
3071
mmentovai8c2a4de2006-09-20 16:20:15 +00003072ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00003073
3074
brynercb91a2f2006-08-25 21:14:45 +00003075ac_ext=c
3076ac_cpp='$CPP $CPPFLAGS'
3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if test "${ac_cv_prog_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003087else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003096 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003097 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 +00003098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003100 break 2
3101 fi
3102done
jimblandy92b1f832009-12-23 22:23:49 +00003103 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003104IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003105
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003112else
jimblandy92b1f832009-12-23 22:23:49 +00003113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003115fi
3116
mmentovai8c2a4de2006-09-20 16:20:15 +00003117
brynercb91a2f2006-08-25 21:14:45 +00003118fi
3119if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003127else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003136 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003137 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 +00003138 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003140 break 2
3141 fi
3142done
jimblandy92b1f832009-12-23 22:23:49 +00003143 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003144IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003145
3146fi
3147fi
3148ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003152else
jimblandy92b1f832009-12-23 22:23:49 +00003153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003155fi
3156
mmentovai8c2a4de2006-09-20 16:20:15 +00003157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003164ac_tool_warned=yes ;;
3165esac
3166 CC=$ac_ct_CC
3167 fi
brynercb91a2f2006-08-25 21:14:45 +00003168else
3169 CC="$ac_cv_prog_CC"
3170fi
3171
3172if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003175set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003180else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003189 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003190 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 +00003191 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003193 break 2
3194 fi
3195done
jimblandy92b1f832009-12-23 22:23:49 +00003196 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003197IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003198
3199fi
3200fi
3201CC=$ac_cv_prog_CC
3202if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003205else
jimblandy92b1f832009-12-23 22:23:49 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003208fi
3209
mmentovai8c2a4de2006-09-20 16:20:15 +00003210
brynercb91a2f2006-08-25 21:14:45 +00003211 fi
brynercb91a2f2006-08-25 21:14:45 +00003212fi
3213if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if test "${ac_cv_prog_CC+set}" = set; then :
3219 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003220else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224 ac_prog_rejected=no
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003230 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003231 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 +00003232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3235 fi
3236 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003238 break 2
3239 fi
3240done
jimblandy92b1f832009-12-23 22:23:49 +00003241 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003242IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003243
3244if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254 fi
3255fi
3256fi
3257fi
3258CC=$ac_cv_prog_CC
3259if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003262else
jimblandy92b1f832009-12-23 22:23:49 +00003263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003265fi
3266
mmentovai8c2a4de2006-09-20 16:20:15 +00003267
brynercb91a2f2006-08-25 21:14:45 +00003268fi
3269if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003271 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003272 do
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003279else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003288 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003289 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 +00003290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003292 break 2
3293 fi
3294done
jimblandy92b1f832009-12-23 22:23:49 +00003295 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003296IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003297
3298fi
3299fi
3300CC=$ac_cv_prog_CC
3301if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003304else
jimblandy92b1f832009-12-23 22:23:49 +00003305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003307fi
3308
mmentovai8c2a4de2006-09-20 16:20:15 +00003309
brynercb91a2f2006-08-25 21:14:45 +00003310 test -n "$CC" && break
3311 done
3312fi
3313if test -z "$CC"; then
3314 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003315 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003316do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
3321if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3322 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003323else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003332 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003333 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 +00003334 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003336 break 2
3337 fi
3338done
jimblandy92b1f832009-12-23 22:23:49 +00003339 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003340IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003341
3342fi
3343fi
3344ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003348else
jimblandy92b1f832009-12-23 22:23:49 +00003349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003351fi
3352
mmentovai8c2a4de2006-09-20 16:20:15 +00003353
brynercb91a2f2006-08-25 21:14:45 +00003354 test -n "$ac_ct_CC" && break
3355done
3356
mmentovai8c2a4de2006-09-20 16:20:15 +00003357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003364ac_tool_warned=yes ;;
3365esac
3366 CC=$ac_ct_CC
3367 fi
brynercb91a2f2006-08-25 21:14:45 +00003368fi
3369
3370fi
3371
3372
jimblandy92b1f832009-12-23 22:23:49 +00003373test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error "no acceptable C compiler found in \$PATH
3376See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003377
3378# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003379$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380set X $ac_compile
3381ac_compiler=$2
3382for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
jimblandy92b1f832009-12-23 22:23:49 +00003388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003391 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003392 if test -s conftest.err; then
3393 sed '10a\
3394... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003397 fi
jimblandydc4029a2010-02-02 17:39:51 +00003398 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401done
brynercb91a2f2006-08-25 21:14:45 +00003402
jimblandy92b1f832009-12-23 22:23:49 +00003403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003404/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003405
brynercb91a2f2006-08-25 21:14:45 +00003406int
3407main ()
3408{
3409
3410 ;
3411 return 0;
3412}
3413_ACEOF
3414ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003415ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003416# Try to create an executable without -o first, disregard a.out.
3417# It will help us diagnose broken compilers, and finding out an intuition
3418# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003421ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423# The possible output files:
3424ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
mmentovai8c2a4de2006-09-20 16:20:15 +00003426ac_rmfiles=
3427for ac_file in $ac_files
3428do
3429 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433done
3434rm -f $ac_rmfiles
3435
jimblandy92b1f832009-12-23 22:23:49 +00003436if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
jimblandy92b1f832009-12-23 22:23:49 +00003441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003443 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003444 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449# in a Makefile. We should not override ac_cv_exeext if it was cached,
3450# so that the user can short-circuit this test for compilers unknown to
3451# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003452for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003453do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003457 ;;
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 fi
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003472 break;;
3473 * )
3474 break;;
3475 esac
3476done
mmentovai8c2a4de2006-09-20 16:20:15 +00003477test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
brynercb91a2f2006-08-25 21:14:45 +00003479else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003480 ac_file=''
3481fi
jimblandy92b1f832009-12-23 22:23:49 +00003482if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003486sed 's/^/| /' conftest.$ac_ext >&5
3487
jimblandy92b1f832009-12-23 22:23:49 +00003488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490{ as_fn_set_status 77
3491as_fn_error "C compiler cannot create executables
3492See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003493else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003496fi
jimblandydc4029a2010-02-02 17:39:51 +00003497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3498$as_echo_n "checking for C compiler default output file name... " >&6; }
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3500$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003501ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003502
jimblandydc4029a2010-02-02 17:39:51 +00003503rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003504ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3506$as_echo_n "checking for suffix of executables... " >&6; }
3507if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003508case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511esac
jimblandy92b1f832009-12-23 22:23:49 +00003512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003514 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003515 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3520# work properly (i.e., refer to `conftest.exe'), while it won't with
3521# `rm'.
3522for ac_file in conftest.exe conftest conftest.*; do
3523 test -f "$ac_file" || continue
3524 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003527 break;;
3528 * ) break;;
3529 esac
3530done
3531else
jimblandy92b1f832009-12-23 22:23:49 +00003532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error "cannot compute suffix of executables: cannot compile and link
3535See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003536fi
jimblandydc4029a2010-02-02 17:39:51 +00003537rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3539$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003540
3541rm -f conftest.$ac_ext
3542EXEEXT=$ac_cv_exeext
3543ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h. */
3546#include <stdio.h>
3547int
3548main ()
3549{
3550FILE *f = fopen ("conftest.out", "w");
3551 return ferror (f) || fclose (f) != 0;
3552
3553 ;
3554 return 0;
3555}
3556_ACEOF
3557ac_clean_files="$ac_clean_files conftest.out"
3558# Check that the compiler produces executables we can run. If not, either
3559# the compiler is broken, or we cross compile.
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3561$as_echo_n "checking whether we are cross compiling... " >&6; }
3562if test "$cross_compiling" != yes; then
3563 { { ac_try="$ac_link"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569$as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3571 ac_status=$?
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3574 if { ac_try='./conftest$ac_cv_exeext'
3575 { { case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_try") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; }; then
3585 cross_compiling=no
3586 else
3587 if test "$cross_compiling" = maybe; then
3588 cross_compiling=yes
3589 else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592as_fn_error "cannot run C compiled programs.
3593If you meant to cross compile, use \`--host'.
3594See \`config.log' for more details." "$LINENO" 5; }
3595 fi
3596 fi
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599$as_echo "$cross_compiling" >&6; }
3600
3601rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3602ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3604$as_echo_n "checking for suffix of object files... " >&6; }
3605if test "${ac_cv_objext+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003607else
jimblandy92b1f832009-12-23 22:23:49 +00003608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003609/* end confdefs.h. */
3610
3611int
3612main ()
3613{
3614
3615 ;
3616 return 0;
3617}
3618_ACEOF
3619rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003620if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003621case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
jimblandy92b1f832009-12-23 22:23:49 +00003625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003627 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003628 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003631 for ac_file in conftest.o conftest.obj conftest.*; do
3632 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003633 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3636 break;;
3637 esac
3638done
3639else
jimblandy92b1f832009-12-23 22:23:49 +00003640 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003641sed 's/^/| /' conftest.$ac_ext >&5
3642
jimblandy92b1f832009-12-23 22:23:49 +00003643{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645as_fn_error "cannot compute suffix of object files: cannot compile
3646See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003647fi
brynercb91a2f2006-08-25 21:14:45 +00003648rm -f conftest.$ac_cv_objext conftest.$ac_ext
3649fi
jimblandy92b1f832009-12-23 22:23:49 +00003650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3651$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003652OBJEXT=$ac_cv_objext
3653ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3655$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3656if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003658else
jimblandy92b1f832009-12-23 22:23:49 +00003659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003660/* end confdefs.h. */
3661
3662int
3663main ()
3664{
3665#ifndef __GNUC__
3666 choke me
3667#endif
3668
3669 ;
3670 return 0;
3671}
3672_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003673if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003674 ac_compiler_gnu=yes
3675else
jimblandy92b1f832009-12-23 22:23:49 +00003676 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003677fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003679ac_cv_c_compiler_gnu=$ac_compiler_gnu
3680
3681fi
jimblandy92b1f832009-12-23 22:23:49 +00003682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3683$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3684if test $ac_compiler_gnu = yes; then
3685 GCC=yes
3686else
3687 GCC=
3688fi
brynercb91a2f2006-08-25 21:14:45 +00003689ac_test_CFLAGS=${CFLAGS+set}
3690ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3692$as_echo_n "checking whether $CC accepts -g... " >&6; }
3693if test "${ac_cv_prog_cc_g+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003695else
mmentovai8c2a4de2006-09-20 16:20:15 +00003696 ac_save_c_werror_flag=$ac_c_werror_flag
3697 ac_c_werror_flag=yes
3698 ac_cv_prog_cc_g=no
3699 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003701/* end confdefs.h. */
3702
3703int
3704main ()
3705{
3706
3707 ;
3708 return 0;
3709}
3710_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003711if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003712 ac_cv_prog_cc_g=yes
3713else
jimblandy92b1f832009-12-23 22:23:49 +00003714 CFLAGS=""
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003716/* end confdefs.h. */
3717
3718int
3719main ()
3720{
3721
3722 ;
3723 return 0;
3724}
3725_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003726if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003727
jimblandy92b1f832009-12-23 22:23:49 +00003728else
3729 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003730 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003732/* end confdefs.h. */
3733
3734int
3735main ()
3736{
3737
3738 ;
3739 return 0;
3740}
3741_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003742if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003743 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003744fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003746fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3751fi
jimblandy92b1f832009-12-23 22:23:49 +00003752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3753$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003754if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3758 CFLAGS="-g -O2"
3759 else
3760 CFLAGS="-g"
3761 fi
3762else
3763 if test "$GCC" = yes; then
3764 CFLAGS="-O2"
3765 else
3766 CFLAGS=
3767 fi
3768fi
jimblandy92b1f832009-12-23 22:23:49 +00003769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3770$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771if test "${ac_cv_prog_cc_c89+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003773else
mmentovai8c2a4de2006-09-20 16:20:15 +00003774 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003775ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003777/* end confdefs.h. */
3778#include <stdarg.h>
3779#include <stdio.h>
3780#include <sys/types.h>
3781#include <sys/stat.h>
3782/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3783struct buf { int x; };
3784FILE * (*rcsopen) (struct buf *, struct stat *, int);
3785static char *e (p, i)
3786 char **p;
3787 int i;
3788{
3789 return p[i];
3790}
3791static char *f (char * (*g) (char **, int), char **p, ...)
3792{
3793 char *s;
3794 va_list v;
3795 va_start (v,p);
3796 s = g (p, va_arg (v,int));
3797 va_end (v);
3798 return s;
3799}
3800
3801/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3802 function prototypes and stuff, but not '\xHH' hex character constants.
3803 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003804 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3806 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003807 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003808int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3809
mmentovai8c2a4de2006-09-20 16:20:15 +00003810/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3811 inside strings and character constants. */
3812#define FOO(x) 'x'
3813int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3814
brynercb91a2f2006-08-25 21:14:45 +00003815int test (int i, double x);
3816struct s1 {int (*f) (int a);};
3817struct s2 {int (*f) (double a);};
3818int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3819int argc;
3820char **argv;
3821int
3822main ()
3823{
3824return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3825 ;
3826 return 0;
3827}
3828_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003829for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003831do
3832 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003833 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003834 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003835fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003836rm -f core conftest.err conftest.$ac_objext
3837 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003838done
mmentovai8c2a4de2006-09-20 16:20:15 +00003839rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003840CC=$ac_save_CC
3841
3842fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003843# AC_CACHE_VAL
3844case "x$ac_cv_prog_cc_c89" in
3845 x)
jimblandy92b1f832009-12-23 22:23:49 +00003846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3847$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003848 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3850$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003851 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003852 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3854$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003855esac
jimblandy92b1f832009-12-23 22:23:49 +00003856if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003857
jimblandy92b1f832009-12-23 22:23:49 +00003858fi
brynercb91a2f2006-08-25 21:14:45 +00003859
brynercb91a2f2006-08-25 21:14:45 +00003860ac_ext=c
3861ac_cpp='$CPP $CPPFLAGS'
3862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865DEPDIR="${am__leading_dot}deps"
3866
mmentovai8c2a4de2006-09-20 16:20:15 +00003867ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003868
3869
3870am_make=${MAKE-make}
3871cat > confinc << 'END'
3872am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003873 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003874.PHONY: am__doit
3875END
3876# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3878$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003879am__include="#"
3880am__quote=
3881_am_result=none
3882# First try GNU make style include.
3883echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003884# Ignore all kinds of additional output from `make'.
3885case `$am_make -s -f confmf 2> /dev/null` in #(
3886*the\ am__doit\ target*)
3887 am__include=include
3888 am__quote=
3889 _am_result=GNU
3890 ;;
3891esac
brynercb91a2f2006-08-25 21:14:45 +00003892# Now try BSD make style include.
3893if test "$am__include" = "#"; then
3894 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003895 case `$am_make -s -f confmf 2> /dev/null` in #(
3896 *the\ am__doit\ target*)
3897 am__include=.include
3898 am__quote="\""
3899 _am_result=BSD
3900 ;;
3901 esac
brynercb91a2f2006-08-25 21:14:45 +00003902fi
3903
3904
jimblandy92b1f832009-12-23 22:23:49 +00003905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3906$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003907rm -f confinc confmf
3908
mmentovai8c2a4de2006-09-20 16:20:15 +00003909# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003910if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003911 enableval=$enable_dependency_tracking;
3912fi
brynercb91a2f2006-08-25 21:14:45 +00003913
brynercb91a2f2006-08-25 21:14:45 +00003914if test "x$enable_dependency_tracking" != xno; then
3915 am_depcomp="$ac_aux_dir/depcomp"
3916 AMDEPBACKSLASH='\'
3917fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003918 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003919 AMDEP_TRUE=
3920 AMDEP_FALSE='#'
3921else
3922 AMDEP_TRUE='#'
3923 AMDEP_FALSE=
3924fi
3925
3926
3927
brynercb91a2f2006-08-25 21:14:45 +00003928depcc="$CC" am_compiler_list=
3929
jimblandy92b1f832009-12-23 22:23:49 +00003930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3931$as_echo_n "checking dependency style of $depcc... " >&6; }
3932if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003934else
3935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3936 # We make a subdir and do the tests there. Otherwise we can end up
3937 # making bogus files that we don't know about and never remove. For
3938 # instance it was reported that on HP-UX the gcc test will end up
3939 # making a dummy file named `D' -- because `-MD' means `put the output
3940 # in D'.
3941 mkdir conftest.dir
3942 # Copy depcomp to subdir because otherwise we won't find it if we're
3943 # using a relative directory.
3944 cp "$am_depcomp" conftest.dir
3945 cd conftest.dir
3946 # We will build objects and dependencies in a subdirectory because
3947 # it helps to detect inapplicable dependency modes. For instance
3948 # both Tru64's cc and ICC support -MD to output dependencies as a
3949 # side effect of compilation, but ICC will put the dependencies in
3950 # the current directory while Tru64 will put them in the object
3951 # directory.
3952 mkdir sub
3953
3954 am_cv_CC_dependencies_compiler_type=none
3955 if test "$am_compiler_list" = ""; then
3956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3957 fi
jimblandy92b1f832009-12-23 22:23:49 +00003958 am__universal=false
3959 case " $depcc " in #(
3960 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3961 esac
3962
brynercb91a2f2006-08-25 21:14:45 +00003963 for depmode in $am_compiler_list; do
3964 # Setup a source with many dependencies, because some compilers
3965 # like to wrap large dependency lists on column 80 (with \), and
3966 # we should not choose a depcomp mode which is confused by this.
3967 #
3968 # We need to recreate these files for each test, as the compiler may
3969 # overwrite some of them when testing with obscure command lines.
3970 # This happens at least with the AIX C compiler.
3971 : > sub/conftest.c
3972 for i in 1 2 3 4 5 6; do
3973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975 # Solaris 8's {/usr,}/bin/sh.
3976 touch sub/conftst$i.h
3977 done
3978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
jimblandy92b1f832009-12-23 22:23:49 +00003980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3981 # mode. It turns out that the SunPro C++ compiler does not properly
3982 # handle `-M -o', and we need to detect this. Also, some Intel
3983 # versions had trouble with output in subdirs
3984 am__obj=sub/conftest.${OBJEXT-o}
3985 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003986 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003987 gcc)
3988 # This depmode causes a compiler race in universal mode.
3989 test "$am__universal" = false || continue
3990 ;;
brynercb91a2f2006-08-25 21:14:45 +00003991 nosideeffect)
3992 # after this tag, mechanisms are not by side-effect, so they'll
3993 # only be used when explicitly requested
3994 if test "x$enable_dependency_tracking" = xyes; then
3995 continue
3996 else
3997 break
3998 fi
3999 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004000 msvisualcpp | msvcmsys)
4001 # This compiler won't grok `-c -o', but also, the minuso test has
4002 # not run yet. These depmodes are late enough in the game, and
4003 # so weak that their functioning should not be impacted.
4004 am__obj=conftest.${OBJEXT-o}
4005 am__minus_obj=
4006 ;;
brynercb91a2f2006-08-25 21:14:45 +00004007 none) break ;;
4008 esac
brynercb91a2f2006-08-25 21:14:45 +00004009 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004010 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004013 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4018 # icc doesn't choke on unknown options, it will just issue warnings
4019 # or remarks (even with -Werror). So we grep stderr for any message
4020 # that says an option was ignored or not supported.
4021 # When given -MP, icc 7.0 and 7.1 complain thusly:
4022 # icc: Command line warning: ignoring option '-M'; no argument required
4023 # The diagnosis changed in icc 8.0:
4024 # icc: Command line remark: option '-MP' not supported
4025 if (grep 'ignoring option' conftest.err ||
4026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4027 am_cv_CC_dependencies_compiler_type=$depmode
4028 break
4029 fi
4030 fi
4031 done
4032
4033 cd ..
4034 rm -rf conftest.dir
4035else
4036 am_cv_CC_dependencies_compiler_type=none
4037fi
4038
4039fi
jimblandy92b1f832009-12-23 22:23:49 +00004040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4041$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004042CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4043
mmentovaiaf3c43f2007-05-17 18:34:37 +00004044 if
brynercb91a2f2006-08-25 21:14:45 +00004045 test "x$enable_dependency_tracking" != xno \
4046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4047 am__fastdepCC_TRUE=
4048 am__fastdepCC_FALSE='#'
4049else
4050 am__fastdepCC_TRUE='#'
4051 am__fastdepCC_FALSE=
4052fi
4053
4054
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00004060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4061$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004062# On Suns, sometimes $CPP names a directory.
4063if test -n "$CPP" && test -d "$CPP"; then
4064 CPP=
4065fi
4066if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00004067 if test "${ac_cv_prog_CPP+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004069else
4070 # Double quotes because CPP needs to be expanded
4071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4072 do
4073 ac_preproc_ok=false
4074for ac_c_preproc_warn_flag in '' yes
4075do
4076 # Use a header file that comes with gcc, so configuring glibc
4077 # with a fresh cross-compiler works.
4078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4079 # <limits.h> exists even on freestanding compilers.
4080 # On the NeXT, cc -E runs the code through the compiler's parser,
4081 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004083/* end confdefs.h. */
4084#ifdef __STDC__
4085# include <limits.h>
4086#else
4087# include <assert.h>
4088#endif
4089 Syntax error
4090_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004091if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004092
jimblandy92b1f832009-12-23 22:23:49 +00004093else
brynercb91a2f2006-08-25 21:14:45 +00004094 # Broken: fails on valid input.
4095continue
4096fi
4097rm -f conftest.err conftest.$ac_ext
4098
mmentovai8c2a4de2006-09-20 16:20:15 +00004099 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004100 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004102/* end confdefs.h. */
4103#include <ac_nonexistent.h>
4104_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004105if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004106 # Broken: success on invalid input.
4107continue
4108else
brynercb91a2f2006-08-25 21:14:45 +00004109 # Passes both tests.
4110ac_preproc_ok=:
4111break
4112fi
4113rm -f conftest.err conftest.$ac_ext
4114
4115done
4116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004118if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00004119 break
4120fi
4121
4122 done
4123 ac_cv_prog_CPP=$CPP
4124
4125fi
4126 CPP=$ac_cv_prog_CPP
4127else
4128 ac_cv_prog_CPP=$CPP
4129fi
jimblandy92b1f832009-12-23 22:23:49 +00004130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4131$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004132ac_preproc_ok=false
4133for ac_c_preproc_warn_flag in '' yes
4134do
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004142/* end confdefs.h. */
4143#ifdef __STDC__
4144# include <limits.h>
4145#else
4146# include <assert.h>
4147#endif
4148 Syntax error
4149_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004150if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004151
jimblandy92b1f832009-12-23 22:23:49 +00004152else
brynercb91a2f2006-08-25 21:14:45 +00004153 # Broken: fails on valid input.
4154continue
4155fi
4156rm -f conftest.err conftest.$ac_ext
4157
mmentovai8c2a4de2006-09-20 16:20:15 +00004158 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004159 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004161/* end confdefs.h. */
4162#include <ac_nonexistent.h>
4163_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004164if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004165 # Broken: success on invalid input.
4166continue
4167else
brynercb91a2f2006-08-25 21:14:45 +00004168 # Passes both tests.
4169ac_preproc_ok=:
4170break
4171fi
4172rm -f conftest.err conftest.$ac_ext
4173
4174done
4175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4176rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004177if $ac_preproc_ok; then :
4178
brynercb91a2f2006-08-25 21:14:45 +00004179else
jimblandy92b1f832009-12-23 22:23:49 +00004180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182as_fn_error "C preprocessor \"$CPP\" fails sanity check
4183See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004184fi
4185
4186ac_ext=c
4187ac_cpp='$CPP $CPPFLAGS'
4188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
mmentovai8c2a4de2006-09-20 16:20:15 +00004192ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004193ac_cpp='$CXXCPP $CPPFLAGS'
4194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004197if test -z "$CXX"; then
4198 if test -n "$CCC"; then
4199 CXX=$CCC
4200 else
4201 if test -n "$ac_tool_prefix"; then
4202 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 +00004203 do
4204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4205set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207$as_echo_n "checking for $ac_word... " >&6; }
4208if test "${ac_cv_prog_CXX+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004210else
4211 if test -n "$CXX"; then
4212 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004219 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004220 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 +00004221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004223 break 2
4224 fi
4225done
jimblandy92b1f832009-12-23 22:23:49 +00004226 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004227IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004228
4229fi
4230fi
4231CXX=$ac_cv_prog_CXX
4232if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4234$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004235else
jimblandy92b1f832009-12-23 22:23:49 +00004236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004238fi
4239
mmentovai8c2a4de2006-09-20 16:20:15 +00004240
brynercb91a2f2006-08-25 21:14:45 +00004241 test -n "$CXX" && break
4242 done
4243fi
4244if test -z "$CXX"; then
4245 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004246 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 +00004247do
4248 # Extract the first word of "$ac_prog", so it can be a program name with args.
4249set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251$as_echo_n "checking for $ac_word... " >&6; }
4252if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004254else
4255 if test -n "$ac_ct_CXX"; then
4256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4257else
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004263 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004264 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 +00004265 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004267 break 2
4268 fi
4269done
jimblandy92b1f832009-12-23 22:23:49 +00004270 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004271IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004272
4273fi
4274fi
4275ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4276if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4278$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004279else
jimblandy92b1f832009-12-23 22:23:49 +00004280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004282fi
4283
mmentovai8c2a4de2006-09-20 16:20:15 +00004284
brynercb91a2f2006-08-25 21:14:45 +00004285 test -n "$ac_ct_CXX" && break
4286done
brynercb91a2f2006-08-25 21:14:45 +00004287
mmentovai8c2a4de2006-09-20 16:20:15 +00004288 if test "x$ac_ct_CXX" = x; then
4289 CXX="g++"
4290 else
4291 case $cross_compiling:$ac_tool_warned in
4292yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004295ac_tool_warned=yes ;;
4296esac
4297 CXX=$ac_ct_CXX
4298 fi
brynercb91a2f2006-08-25 21:14:45 +00004299fi
4300
mmentovai8c2a4de2006-09-20 16:20:15 +00004301 fi
4302fi
brynercb91a2f2006-08-25 21:14:45 +00004303# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004304$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4305set X $ac_compile
4306ac_compiler=$2
4307for ac_option in --version -v -V -qversion; do
4308 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004309case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312esac
jimblandy92b1f832009-12-23 22:23:49 +00004313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314$as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004316 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004317 if test -s conftest.err; then
4318 sed '10a\
4319... rest of stderr output deleted ...
4320 10q' conftest.err >conftest.er1
4321 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004322 fi
jimblandydc4029a2010-02-02 17:39:51 +00004323 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }
4326done
brynercb91a2f2006-08-25 21:14:45 +00004327
jimblandy92b1f832009-12-23 22:23:49 +00004328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4329$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4330if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004332else
jimblandy92b1f832009-12-23 22:23:49 +00004333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004334/* end confdefs.h. */
4335
4336int
4337main ()
4338{
4339#ifndef __GNUC__
4340 choke me
4341#endif
4342
4343 ;
4344 return 0;
4345}
4346_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004347if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004348 ac_compiler_gnu=yes
4349else
jimblandy92b1f832009-12-23 22:23:49 +00004350 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004351fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004353ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4354
4355fi
jimblandy92b1f832009-12-23 22:23:49 +00004356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4357$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4358if test $ac_compiler_gnu = yes; then
4359 GXX=yes
4360else
4361 GXX=
4362fi
brynercb91a2f2006-08-25 21:14:45 +00004363ac_test_CXXFLAGS=${CXXFLAGS+set}
4364ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4366$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4367if test "${ac_cv_prog_cxx_g+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004369else
mmentovai8c2a4de2006-09-20 16:20:15 +00004370 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4371 ac_cxx_werror_flag=yes
4372 ac_cv_prog_cxx_g=no
4373 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004375/* end confdefs.h. */
4376
4377int
4378main ()
4379{
4380
4381 ;
4382 return 0;
4383}
4384_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004385if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004386 ac_cv_prog_cxx_g=yes
4387else
jimblandy92b1f832009-12-23 22:23:49 +00004388 CXXFLAGS=""
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004390/* end confdefs.h. */
4391
4392int
4393main ()
4394{
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004400if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004401
jimblandy92b1f832009-12-23 22:23:49 +00004402else
4403 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004404 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004406/* end confdefs.h. */
4407
4408int
4409main ()
4410{
4411
4412 ;
4413 return 0;
4414}
4415_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004416if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004417 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004418fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004420fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4425fi
jimblandy92b1f832009-12-23 22:23:49 +00004426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4427$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004428if test "$ac_test_CXXFLAGS" = set; then
4429 CXXFLAGS=$ac_save_CXXFLAGS
4430elif test $ac_cv_prog_cxx_g = yes; then
4431 if test "$GXX" = yes; then
4432 CXXFLAGS="-g -O2"
4433 else
4434 CXXFLAGS="-g"
4435 fi
4436else
4437 if test "$GXX" = yes; then
4438 CXXFLAGS="-O2"
4439 else
4440 CXXFLAGS=
4441 fi
4442fi
brynercb91a2f2006-08-25 21:14:45 +00004443ac_ext=c
4444ac_cpp='$CPP $CPPFLAGS'
4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
4449depcc="$CXX" am_compiler_list=
4450
jimblandy92b1f832009-12-23 22:23:49 +00004451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4452$as_echo_n "checking dependency style of $depcc... " >&6; }
4453if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004455else
4456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4457 # We make a subdir and do the tests there. Otherwise we can end up
4458 # making bogus files that we don't know about and never remove. For
4459 # instance it was reported that on HP-UX the gcc test will end up
4460 # making a dummy file named `D' -- because `-MD' means `put the output
4461 # in D'.
4462 mkdir conftest.dir
4463 # Copy depcomp to subdir because otherwise we won't find it if we're
4464 # using a relative directory.
4465 cp "$am_depcomp" conftest.dir
4466 cd conftest.dir
4467 # We will build objects and dependencies in a subdirectory because
4468 # it helps to detect inapplicable dependency modes. For instance
4469 # both Tru64's cc and ICC support -MD to output dependencies as a
4470 # side effect of compilation, but ICC will put the dependencies in
4471 # the current directory while Tru64 will put them in the object
4472 # directory.
4473 mkdir sub
4474
4475 am_cv_CXX_dependencies_compiler_type=none
4476 if test "$am_compiler_list" = ""; then
4477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4478 fi
jimblandy92b1f832009-12-23 22:23:49 +00004479 am__universal=false
4480 case " $depcc " in #(
4481 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4482 esac
4483
brynercb91a2f2006-08-25 21:14:45 +00004484 for depmode in $am_compiler_list; do
4485 # Setup a source with many dependencies, because some compilers
4486 # like to wrap large dependency lists on column 80 (with \), and
4487 # we should not choose a depcomp mode which is confused by this.
4488 #
4489 # We need to recreate these files for each test, as the compiler may
4490 # overwrite some of them when testing with obscure command lines.
4491 # This happens at least with the AIX C compiler.
4492 : > sub/conftest.c
4493 for i in 1 2 3 4 5 6; do
4494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4496 # Solaris 8's {/usr,}/bin/sh.
4497 touch sub/conftst$i.h
4498 done
4499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4500
jimblandy92b1f832009-12-23 22:23:49 +00004501 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4502 # mode. It turns out that the SunPro C++ compiler does not properly
4503 # handle `-M -o', and we need to detect this. Also, some Intel
4504 # versions had trouble with output in subdirs
4505 am__obj=sub/conftest.${OBJEXT-o}
4506 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004507 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004508 gcc)
4509 # This depmode causes a compiler race in universal mode.
4510 test "$am__universal" = false || continue
4511 ;;
brynercb91a2f2006-08-25 21:14:45 +00004512 nosideeffect)
4513 # after this tag, mechanisms are not by side-effect, so they'll
4514 # only be used when explicitly requested
4515 if test "x$enable_dependency_tracking" = xyes; then
4516 continue
4517 else
4518 break
4519 fi
4520 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004521 msvisualcpp | msvcmsys)
4522 # This compiler won't grok `-c -o', but also, the minuso test has
4523 # not run yet. These depmodes are late enough in the game, and
4524 # so weak that their functioning should not be impacted.
4525 am__obj=conftest.${OBJEXT-o}
4526 am__minus_obj=
4527 ;;
brynercb91a2f2006-08-25 21:14:45 +00004528 none) break ;;
4529 esac
brynercb91a2f2006-08-25 21:14:45 +00004530 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004531 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004534 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4539 # icc doesn't choke on unknown options, it will just issue warnings
4540 # or remarks (even with -Werror). So we grep stderr for any message
4541 # that says an option was ignored or not supported.
4542 # When given -MP, icc 7.0 and 7.1 complain thusly:
4543 # icc: Command line warning: ignoring option '-M'; no argument required
4544 # The diagnosis changed in icc 8.0:
4545 # icc: Command line remark: option '-MP' not supported
4546 if (grep 'ignoring option' conftest.err ||
4547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4548 am_cv_CXX_dependencies_compiler_type=$depmode
4549 break
4550 fi
4551 fi
4552 done
4553
4554 cd ..
4555 rm -rf conftest.dir
4556else
4557 am_cv_CXX_dependencies_compiler_type=none
4558fi
4559
4560fi
jimblandy92b1f832009-12-23 22:23:49 +00004561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4562$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004563CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4564
mmentovaiaf3c43f2007-05-17 18:34:37 +00004565 if
brynercb91a2f2006-08-25 21:14:45 +00004566 test "x$enable_dependency_tracking" != xno \
4567 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4568 am__fastdepCXX_TRUE=
4569 am__fastdepCXX_FALSE='#'
4570else
4571 am__fastdepCXX_TRUE='#'
4572 am__fastdepCXX_FALSE=
4573fi
4574
4575
4576
jimblandy92b1f832009-12-23 22:23:49 +00004577case `pwd` in
4578 *\ * | *\ *)
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4580$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4581esac
brynercb91a2f2006-08-25 21:14:45 +00004582
mmentovai8c2a4de2006-09-20 16:20:15 +00004583
jimblandy92b1f832009-12-23 22:23:49 +00004584
jimblandydc4029a2010-02-02 17:39:51 +00004585macro_version='2.2.6b'
4586macro_revision='1.3017'
brynercb91a2f2006-08-25 21:14:45 +00004587
mmentovai8c2a4de2006-09-20 16:20:15 +00004588
mmentovai8c2a4de2006-09-20 16:20:15 +00004589
brynercb91a2f2006-08-25 21:14:45 +00004590
jimblandy92b1f832009-12-23 22:23:49 +00004591
4592
4593
4594
4595
4596
4597
4598
4599
4600ltmain="$ac_aux_dir/ltmain.sh"
4601
jimblandy92b1f832009-12-23 22:23:49 +00004602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4603$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4604if test "${ac_cv_path_SED+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004606else
jimblandy92b1f832009-12-23 22:23:49 +00004607 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4608 for ac_i in 1 2 3 4 5 6 7; do
4609 ac_script="$ac_script$as_nl$ac_script"
4610 done
4611 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4612 { ac_script=; unset ac_script;}
4613 if test -z "$SED"; then
4614 ac_path_SED_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004621 for ac_prog in sed gsed; do
brynercb91a2f2006-08-25 21:14:45 +00004622 for ac_exec_ext in '' $ac_executable_extensions; do
jimblandy92b1f832009-12-23 22:23:49 +00004623 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4624 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4625# Check for GNU ac_path_SED and select it if it is found.
4626 # Check for GNU $ac_path_SED
4627case `"$ac_path_SED" --version 2>&1` in
4628*GNU*)
4629 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4630*)
4631 ac_count=0
4632 $as_echo_n 0123456789 >"conftest.in"
4633 while :
4634 do
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo '' >> "conftest.nl"
4639 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_SED_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_SED="$ac_path_SED"
4645 ac_path_SED_max=$ac_count
4646 fi
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4649 done
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651esac
4652
4653 $ac_path_SED_found && break 3
brynercb91a2f2006-08-25 21:14:45 +00004654 done
4655 done
brynercb91a2f2006-08-25 21:14:45 +00004656 done
jimblandy92b1f832009-12-23 22:23:49 +00004657IFS=$as_save_IFS
4658 if test -z "$ac_cv_path_SED"; then
4659 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4660 fi
4661else
4662 ac_cv_path_SED=$SED
brynercb91a2f2006-08-25 21:14:45 +00004663fi
4664
jimblandy92b1f832009-12-23 22:23:49 +00004665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4667$as_echo "$ac_cv_path_SED" >&6; }
4668 SED="$ac_cv_path_SED"
4669 rm -f conftest.sed
ted.mielczarek1adb1842009-12-21 13:12:20 +00004670
jimblandy92b1f832009-12-23 22:23:49 +00004671test -z "$SED" && SED=sed
4672Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00004673
jimblandy92b1f832009-12-23 22:23:49 +00004674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4685$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4686if test "${ac_cv_path_GREP+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004688else
jimblandy92b1f832009-12-23 22:23:49 +00004689 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004690 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004693for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004697 for ac_prog in grep ggrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4700 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4701# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004702 # Check for GNU $ac_path_GREP
4703case `"$ac_path_GREP" --version 2>&1` in
4704*GNU*)
4705 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4706*)
4707 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004708 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004709 while :
4710 do
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004714 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004715 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004717 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004718 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_GREP="$ac_path_GREP"
4721 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004722 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4725 done
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727esac
4728
jimblandy92b1f832009-12-23 22:23:49 +00004729 $ac_path_GREP_found && break 3
4730 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004731 done
jimblandy92b1f832009-12-23 22:23:49 +00004732 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004733IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004734 if test -z "$ac_cv_path_GREP"; then
4735 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004737else
4738 ac_cv_path_GREP=$GREP
4739fi
4740
mmentovai8c2a4de2006-09-20 16:20:15 +00004741fi
jimblandy92b1f832009-12-23 22:23:49 +00004742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4743$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004744 GREP="$ac_cv_path_GREP"
4745
4746
jimblandy92b1f832009-12-23 22:23:49 +00004747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4748$as_echo_n "checking for egrep... " >&6; }
4749if test "${ac_cv_path_EGREP+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004751else
4752 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4753 then ac_cv_path_EGREP="$GREP -E"
4754 else
jimblandy92b1f832009-12-23 22:23:49 +00004755 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004756 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004757 # Loop through the user's path and test for each of PROGNAME-LIST
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004763 for ac_prog in egrep; do
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4766 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4767# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004768 # Check for GNU $ac_path_EGREP
4769case `"$ac_path_EGREP" --version 2>&1` in
4770*GNU*)
4771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772*)
4773 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004774 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004775 while :
4776 do
4777 cat "conftest.in" "conftest.in" >"conftest.tmp"
4778 mv "conftest.tmp" "conftest.in"
4779 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004780 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004783 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_EGREP="$ac_path_EGREP"
4787 ac_path_EGREP_max=$ac_count
4788 fi
4789 # 10*(2^10) chars as input seems more than enough
4790 test $ac_count -gt 10 && break
4791 done
4792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793esac
4794
jimblandy92b1f832009-12-23 22:23:49 +00004795 $ac_path_EGREP_found && break 3
4796 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004797 done
jimblandy92b1f832009-12-23 22:23:49 +00004798 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004799IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004800 if test -z "$ac_cv_path_EGREP"; then
4801 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004803else
4804 ac_cv_path_EGREP=$EGREP
4805fi
4806
jimblandy92b1f832009-12-23 22:23:49 +00004807 fi
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4810$as_echo "$ac_cv_path_EGREP" >&6; }
4811 EGREP="$ac_cv_path_EGREP"
4812
4813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4815$as_echo_n "checking for fgrep... " >&6; }
4816if test "${ac_cv_path_FGREP+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818else
4819 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4820 then ac_cv_path_FGREP="$GREP -F"
4821 else
4822 if test -z "$FGREP"; then
4823 ac_path_FGREP_found=false
4824 # Loop through the user's path and test for each of PROGNAME-LIST
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_prog in fgrep; do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4833 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4834# Check for GNU ac_path_FGREP and select it if it is found.
4835 # Check for GNU $ac_path_FGREP
4836case `"$ac_path_FGREP" --version 2>&1` in
4837*GNU*)
4838 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4839*)
4840 ac_count=0
4841 $as_echo_n 0123456789 >"conftest.in"
4842 while :
4843 do
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 $as_echo 'FGREP' >> "conftest.nl"
4848 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_FGREP="$ac_path_FGREP"
4854 ac_path_FGREP_max=$ac_count
4855 fi
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860esac
4861
4862 $ac_path_FGREP_found && break 3
4863 done
4864 done
4865 done
4866IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_FGREP"; then
4868 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 fi
4870else
4871 ac_cv_path_FGREP=$FGREP
4872fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004873
4874 fi
4875fi
jimblandy92b1f832009-12-23 22:23:49 +00004876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4877$as_echo "$ac_cv_path_FGREP" >&6; }
4878 FGREP="$ac_cv_path_FGREP"
4879
4880
4881test -z "$GREP" && GREP=grep
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
brynercb91a2f2006-08-25 21:14:45 +00004898
4899
4900
mmentovai8c2a4de2006-09-20 16:20:15 +00004901# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +00004902if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004903 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004904else
4905 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004906fi
4907
brynercb91a2f2006-08-25 21:14:45 +00004908ac_prog=ld
4909if test "$GCC" = yes; then
4910 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +00004911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4912$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004913 case $host in
4914 *-*-mingw*)
4915 # gcc leaves a trailing carriage return which upsets mingw
4916 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4917 *)
4918 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4919 esac
4920 case $ac_prog in
4921 # Accept absolute paths.
4922 [\\/]* | ?:[\\/]*)
4923 re_direlt='/[^/][^/]*/\.\./'
4924 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +00004925 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4926 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4927 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +00004928 done
4929 test -z "$LD" && LD="$ac_prog"
4930 ;;
4931 "")
4932 # If it fails, then pretend we aren't using GCC.
4933 ac_prog=ld
4934 ;;
4935 *)
4936 # If it is relative, then search for the first ld in PATH.
4937 with_gnu_ld=unknown
4938 ;;
4939 esac
4940elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00004941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4942$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004943else
jimblandy92b1f832009-12-23 22:23:49 +00004944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4945$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004946fi
jimblandy92b1f832009-12-23 22:23:49 +00004947if test "${lt_cv_path_LD+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004949else
4950 if test -z "$LD"; then
4951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4952 for ac_dir in $PATH; do
4953 IFS="$lt_save_ifs"
4954 test -z "$ac_dir" && ac_dir=.
4955 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4956 lt_cv_path_LD="$ac_dir/$ac_prog"
4957 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004958 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004959 # Break only if it was the GNU/non-GNU ld that we prefer.
4960 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4961 *GNU* | *'with BFD'*)
4962 test "$with_gnu_ld" != no && break
4963 ;;
4964 *)
4965 test "$with_gnu_ld" != yes && break
4966 ;;
4967 esac
4968 fi
4969 done
4970 IFS="$lt_save_ifs"
4971else
4972 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4973fi
4974fi
4975
4976LD="$lt_cv_path_LD"
4977if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +00004978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4979$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004980else
jimblandy92b1f832009-12-23 22:23:49 +00004981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004983fi
jimblandy92b1f832009-12-23 22:23:49 +00004984test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4986$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4987if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004989else
mmentovai8c2a4de2006-09-20 16:20:15 +00004990 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004991case `$LD -v 2>&1 </dev/null` in
4992*GNU* | *'with BFD'*)
4993 lt_cv_prog_gnu_ld=yes
4994 ;;
4995*)
4996 lt_cv_prog_gnu_ld=no
4997 ;;
4998esac
4999fi
jimblandy92b1f832009-12-23 22:23:49 +00005000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5001$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005002with_gnu_ld=$lt_cv_prog_gnu_ld
5003
5004
brynercb91a2f2006-08-25 21:14:45 +00005005
jimblandy92b1f832009-12-23 22:23:49 +00005006
5007
5008
5009
5010
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5013$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5014if test "${lt_cv_path_NM+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005016else
5017 if test -n "$NM"; then
5018 # Let the user override the test.
5019 lt_cv_path_NM="$NM"
5020else
mmentovai8c2a4de2006-09-20 16:20:15 +00005021 lt_nm_to_check="${ac_tool_prefix}nm"
5022 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5023 lt_nm_to_check="$lt_nm_to_check nm"
5024 fi
5025 for lt_tmp_nm in $lt_nm_to_check; do
5026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5028 IFS="$lt_save_ifs"
5029 test -z "$ac_dir" && ac_dir=.
5030 tmp_nm="$ac_dir/$lt_tmp_nm"
5031 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5032 # Check to see if the nm accepts a BSD-compat flag.
5033 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5034 # nm: unknown option "B" ignored
5035 # Tru64's nm complains that /dev/null is an invalid object file
5036 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5037 */dev/null* | *'Invalid file or object type'*)
5038 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00005039 break
5040 ;;
5041 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00005042 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5043 */dev/null*)
5044 lt_cv_path_NM="$tmp_nm -p"
5045 break
5046 ;;
5047 *)
5048 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5049 continue # so that we can try to find one that supports BSD flags
5050 ;;
5051 esac
brynercb91a2f2006-08-25 21:14:45 +00005052 ;;
5053 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005054 fi
5055 done
5056 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00005057 done
jimblandy92b1f832009-12-23 22:23:49 +00005058 : ${lt_cv_path_NM=no}
brynercb91a2f2006-08-25 21:14:45 +00005059fi
5060fi
jimblandy92b1f832009-12-23 22:23:49 +00005061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5062$as_echo "$lt_cv_path_NM" >&6; }
5063if test "$lt_cv_path_NM" != "no"; then
5064 NM="$lt_cv_path_NM"
5065else
5066 # Didn't find any BSD compatible name lister, look for dumpbin.
5067 if test -n "$ac_tool_prefix"; then
5068 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5069 do
5070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5076else
5077 if test -n "$DUMPBIN"; then
5078 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091done
5092 done
5093IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005094
jimblandy92b1f832009-12-23 22:23:49 +00005095fi
5096fi
5097DUMPBIN=$ac_cv_prog_DUMPBIN
5098if test -n "$DUMPBIN"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5100$as_echo "$DUMPBIN" >&6; }
5101else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
5104fi
5105
5106
5107 test -n "$DUMPBIN" && break
5108 done
5109fi
5110if test -z "$DUMPBIN"; then
5111 ac_ct_DUMPBIN=$DUMPBIN
5112 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5113do
5114 # Extract the first word of "$ac_prog", so it can be a program name with args.
5115set dummy $ac_prog; ac_word=$2
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117$as_echo_n "checking for $ac_word... " >&6; }
5118if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120else
5121 if test -n "$ac_ct_DUMPBIN"; then
5122 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135done
5136 done
5137IFS=$as_save_IFS
5138
5139fi
5140fi
5141ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5142if test -n "$ac_ct_DUMPBIN"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5144$as_echo "$ac_ct_DUMPBIN" >&6; }
5145else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149
5150
5151 test -n "$ac_ct_DUMPBIN" && break
5152done
5153
5154 if test "x$ac_ct_DUMPBIN" = x; then
5155 DUMPBIN=":"
5156 else
5157 case $cross_compiling:$ac_tool_warned in
5158yes:)
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161ac_tool_warned=yes ;;
5162esac
5163 DUMPBIN=$ac_ct_DUMPBIN
5164 fi
5165fi
5166
5167
5168 if test "$DUMPBIN" != ":"; then
5169 NM="$DUMPBIN"
5170 fi
5171fi
5172test -z "$NM" && NM=nm
5173
5174
5175
5176
5177
5178
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5180$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5181if test "${lt_cv_nm_interface+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183else
5184 lt_cv_nm_interface="BSD nm"
5185 echo "int some_variable = 0;" > conftest.$ac_ext
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005186 (eval echo "\"\$as_me:5186: $ac_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005187 (eval "$ac_compile" 2>conftest.err)
5188 cat conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005189 (eval echo "\"\$as_me:5189: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5191 cat conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00005192 (eval echo "\"\$as_me:5192: output\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005193 cat conftest.out >&5
5194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5195 lt_cv_nm_interface="MS dumpbin"
5196 fi
5197 rm -f conftest*
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5200$as_echo "$lt_cv_nm_interface" >&6; }
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5203$as_echo_n "checking whether ln -s works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005204LN_S=$as_ln_s
5205if test "$LN_S" = "ln -s"; then
jimblandy92b1f832009-12-23 22:23:49 +00005206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005208else
jimblandy92b1f832009-12-23 22:23:49 +00005209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5210$as_echo "no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005211fi
5212
jimblandy92b1f832009-12-23 22:23:49 +00005213# find the maximum length of command line arguments
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5215$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5216if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218else
5219 i=0
5220 teststring="ABCD"
5221
5222 case $build_os in
5223 msdosdjgpp*)
5224 # On DJGPP, this test can blow up pretty badly due to problems in libc
5225 # (any single argument exceeding 2000 bytes causes a buffer overrun
5226 # during glob expansion). Even if it were fixed, the result of this
5227 # check would be larger than it should be.
5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5229 ;;
5230
5231 gnu*)
5232 # Under GNU Hurd, this test is not required because there is
5233 # no limit to the length of command line arguments.
5234 # Libtool will interpret -1 as no limit whatsoever
5235 lt_cv_sys_max_cmd_len=-1;
5236 ;;
5237
5238 cygwin* | mingw* | cegcc*)
5239 # On Win9x/ME, this test blows up -- it succeeds, but takes
5240 # about 5 minutes as the teststring grows exponentially.
5241 # Worse, since 9x/ME are not pre-emptively multitasking,
5242 # you end up with a "frozen" computer, even though with patience
5243 # the test eventually succeeds (with a max line length of 256k).
5244 # Instead, let's just punt: use the minimum linelength reported by
5245 # all of the supported platforms: 8192 (on NT/2K/XP).
5246 lt_cv_sys_max_cmd_len=8192;
5247 ;;
5248
5249 amigaos*)
5250 # On AmigaOS with pdksh, this test takes hours, literally.
5251 # So we just punt and use a minimum line length of 8192.
5252 lt_cv_sys_max_cmd_len=8192;
5253 ;;
5254
5255 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5256 # This has been around since 386BSD, at least. Likely further.
5257 if test -x /sbin/sysctl; then
5258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5259 elif test -x /usr/sbin/sysctl; then
5260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5261 else
5262 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5263 fi
5264 # And add a safety zone
5265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5267 ;;
5268
5269 interix*)
5270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5271 lt_cv_sys_max_cmd_len=196608
5272 ;;
5273
5274 osf*)
5275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5277 # nice to cause kernel panics so lets avoid the loop below.
5278 # First set a reasonable default.
5279 lt_cv_sys_max_cmd_len=16384
5280 #
5281 if test -x /sbin/sysconfig; then
5282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5284 esac
5285 fi
5286 ;;
5287 sco3.2v5*)
5288 lt_cv_sys_max_cmd_len=102400
5289 ;;
5290 sysv5* | sco5v6* | sysv4.2uw2*)
5291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5292 if test -n "$kargmax"; then
5293 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5294 else
5295 lt_cv_sys_max_cmd_len=32768
5296 fi
5297 ;;
5298 *)
5299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5300 if test -n "$lt_cv_sys_max_cmd_len"; then
5301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5303 else
5304 # Make teststring a little bigger before we do anything with it.
5305 # a 1K string should be a reasonable start.
5306 for i in 1 2 3 4 5 6 7 8 ; do
5307 teststring=$teststring$teststring
5308 done
5309 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5310 # If test is not a shell built-in, we'll probably end up computing a
5311 # maximum length that is only half of the actual maximum length, but
5312 # we can't tell.
5313 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5314 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5315 test $i != 17 # 1/2 MB should be enough
5316 do
5317 i=`expr $i + 1`
5318 teststring=$teststring$teststring
5319 done
5320 # Only check the string length outside the loop.
5321 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5322 teststring=
5323 # Add a significant safety factor because C++ compilers can tack on
5324 # massive amounts of additional arguments before passing them to the
5325 # linker. It appears as though 1/2 is a usable value.
5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5327 fi
5328 ;;
5329 esac
5330
5331fi
5332
5333if test -n $lt_cv_sys_max_cmd_len ; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5335$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5336else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5338$as_echo "none" >&6; }
5339fi
5340max_cmd_len=$lt_cv_sys_max_cmd_len
5341
5342
5343
5344
5345
5346
5347: ${CP="cp -f"}
5348: ${MV="mv -f"}
5349: ${RM="rm -f"}
5350
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5352$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5353# Try some XSI features
5354xsi_shell=no
5355( _lt_dummy="a/b/c"
5356 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5357 = c,a/b,, \
5358 && eval 'test $(( 1 + 1 )) -eq 2 \
5359 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5360 && xsi_shell=yes
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5362$as_echo "$xsi_shell" >&6; }
5363
5364
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5366$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5367lt_shell_append=no
5368( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5369 >/dev/null 2>&1 \
5370 && lt_shell_append=yes
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5372$as_echo "$lt_shell_append" >&6; }
5373
5374
5375if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5376 lt_unset=unset
5377else
5378 lt_unset=false
5379fi
5380
5381
5382
5383
5384
5385# test EBCDIC or ASCII
5386case `echo X|tr X '\101'` in
5387 A) # ASCII based system
5388 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5389 lt_SP2NL='tr \040 \012'
5390 lt_NL2SP='tr \015\012 \040\040'
5391 ;;
5392 *) # EBCDIC based system
5393 lt_SP2NL='tr \100 \n'
5394 lt_NL2SP='tr \r\n \100\100'
5395 ;;
5396esac
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5407$as_echo_n "checking for $LD option to reload object files... " >&6; }
5408if test "${lt_cv_ld_reload_flag+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410else
5411 lt_cv_ld_reload_flag='-r'
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5414$as_echo "$lt_cv_ld_reload_flag" >&6; }
5415reload_flag=$lt_cv_ld_reload_flag
5416case $reload_flag in
5417"" | " "*) ;;
5418*) reload_flag=" $reload_flag" ;;
5419esac
5420reload_cmds='$LD$reload_flag -o $output$reload_objs'
5421case $host_os in
5422 darwin*)
5423 if test "$GCC" = yes; then
5424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5425 else
5426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5427 fi
5428 ;;
5429esac
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5441set dummy ${ac_tool_prefix}objdump; ac_word=$2
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443$as_echo_n "checking for $ac_word... " >&6; }
5444if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446else
5447 if test -n "$OBJDUMP"; then
5448 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461done
5462 done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467OBJDUMP=$ac_cv_prog_OBJDUMP
5468if test -n "$OBJDUMP"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5470$as_echo "$OBJDUMP" >&6; }
5471else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473$as_echo "no" >&6; }
5474fi
5475
5476
5477fi
5478if test -z "$ac_cv_prog_OBJDUMP"; then
5479 ac_ct_OBJDUMP=$OBJDUMP
5480 # Extract the first word of "objdump", so it can be a program name with args.
5481set dummy objdump; ac_word=$2
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483$as_echo_n "checking for $ac_word... " >&6; }
5484if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486else
5487 if test -n "$ac_ct_OBJDUMP"; then
5488 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5489else
5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501done
5502 done
5503IFS=$as_save_IFS
5504
5505fi
5506fi
5507ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5508if test -n "$ac_ct_OBJDUMP"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5510$as_echo "$ac_ct_OBJDUMP" >&6; }
5511else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513$as_echo "no" >&6; }
5514fi
5515
5516 if test "x$ac_ct_OBJDUMP" = x; then
5517 OBJDUMP="false"
5518 else
5519 case $cross_compiling:$ac_tool_warned in
5520yes:)
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523ac_tool_warned=yes ;;
5524esac
5525 OBJDUMP=$ac_ct_OBJDUMP
5526 fi
5527else
5528 OBJDUMP="$ac_cv_prog_OBJDUMP"
5529fi
5530
5531test -z "$OBJDUMP" && OBJDUMP=objdump
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5542$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5543if test "${lt_cv_deplibs_check_method+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005545else
5546 lt_cv_file_magic_cmd='$MAGIC_CMD'
5547lt_cv_file_magic_test_file=
5548lt_cv_deplibs_check_method='unknown'
5549# Need to set the preceding variable on all platforms that support
5550# interlibrary dependencies.
5551# 'none' -- dependencies not supported.
5552# `unknown' -- same as none, but documents that we really don't know.
5553# 'pass_all' -- all dependencies passed with no checks.
5554# 'test_compile' -- check by making test program.
5555# 'file_magic [[regex]]' -- check by looking for files in library path
5556# which responds to the $file_magic_cmd with a given extended regex.
5557# If you have `file' or equivalent on your system and you're not sure
5558# whether `pass_all' will *always* work, you probably want this one.
5559
5560case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005561aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00005562 lt_cv_deplibs_check_method=pass_all
5563 ;;
5564
5565beos*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
mmentovai8c2a4de2006-09-20 16:20:15 +00005569bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5571 lt_cv_file_magic_cmd='/usr/bin/file -L'
5572 lt_cv_file_magic_test_file=/shlib/libc.so
5573 ;;
5574
5575cygwin*)
5576 # func_win32_libid is a shell function defined in ltmain.sh
5577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5578 lt_cv_file_magic_cmd='func_win32_libid'
5579 ;;
5580
5581mingw* | pw32*)
5582 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00005583 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5584 # unless we find 'file', for example because we are cross-compiling.
5585 if ( file / ) >/dev/null 2>&1; then
5586 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5587 lt_cv_file_magic_cmd='func_win32_libid'
5588 else
5589 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5590 lt_cv_file_magic_cmd='$OBJDUMP -f'
5591 fi
brynercb91a2f2006-08-25 21:14:45 +00005592 ;;
5593
jimblandy92b1f832009-12-23 22:23:49 +00005594cegcc)
5595 # use the weaker test based on 'objdump'. See mingw*.
5596 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5597 lt_cv_file_magic_cmd='$OBJDUMP -f'
5598 ;;
5599
brynercb91a2f2006-08-25 21:14:45 +00005600darwin* | rhapsody*)
5601 lt_cv_deplibs_check_method=pass_all
5602 ;;
5603
ted.mielczarek1adb1842009-12-21 13:12:20 +00005604freebsd* | dragonfly*)
jimblandy92b1f832009-12-23 22:23:49 +00005605 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005606 case $host_cpu in
5607 i*86 )
5608 # Not sure whether the presence of OpenBSD here was a mistake.
5609 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005610 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 +00005611 lt_cv_file_magic_cmd=/usr/bin/file
5612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5613 ;;
5614 esac
5615 else
5616 lt_cv_deplibs_check_method=pass_all
5617 fi
5618 ;;
5619
5620gnu*)
5621 lt_cv_deplibs_check_method=pass_all
5622 ;;
5623
5624hpux10.20* | hpux11*)
5625 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005626 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005627 ia64*)
5628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5630 ;;
5631 hppa*64*)
5632 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]'
5633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5634 ;;
5635 *)
5636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5638 ;;
5639 esac
5640 ;;
5641
ted.mielczarek1adb1842009-12-21 13:12:20 +00005642interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5645 ;;
5646
brynercb91a2f2006-08-25 21:14:45 +00005647irix5* | irix6* | nonstopux*)
5648 case $LD in
5649 *-32|*"-32 ") libmagic=32-bit;;
5650 *-n32|*"-n32 ") libmagic=N32;;
5651 *-64|*"-64 ") libmagic=64-bit;;
5652 *) libmagic=never-match;;
5653 esac
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +00005658linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00005659 lt_cv_deplibs_check_method=pass_all
5660 ;;
5661
ted.mielczarekb2236272010-04-08 23:06:23 +00005662netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00005663 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5665 else
5666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5667 fi
5668 ;;
5669
5670newos6*)
5671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5672 lt_cv_file_magic_cmd=/usr/bin/file
5673 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5674 ;;
5675
jimblandy92b1f832009-12-23 22:23:49 +00005676*nto* | *qnx*)
5677 lt_cv_deplibs_check_method=pass_all
brynercb91a2f2006-08-25 21:14:45 +00005678 ;;
5679
5680openbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005683 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005685 fi
5686 ;;
5687
5688osf3* | osf4* | osf5*)
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
ted.mielczarek1adb1842009-12-21 13:12:20 +00005692rdos*)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695
brynercb91a2f2006-08-25 21:14:45 +00005696solaris*)
5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699
jimblandy92b1f832009-12-23 22:23:49 +00005700sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5701 lt_cv_deplibs_check_method=pass_all
5702 ;;
5703
mmentovai8c2a4de2006-09-20 16:20:15 +00005704sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005705 case $host_vendor in
5706 motorola)
5707 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]'
5708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5709 ;;
5710 ncr)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713 sequent)
5714 lt_cv_file_magic_cmd='/bin/file'
5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5716 ;;
5717 sni)
5718 lt_cv_file_magic_cmd='/bin/file'
5719 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5720 lt_cv_file_magic_test_file=/lib/libc.so
5721 ;;
5722 siemens)
5723 lt_cv_deplibs_check_method=pass_all
5724 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005725 pc)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
brynercb91a2f2006-08-25 21:14:45 +00005728 esac
5729 ;;
5730
jimblandy92b1f832009-12-23 22:23:49 +00005731tpf*)
brynercb91a2f2006-08-25 21:14:45 +00005732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734esac
5735
5736fi
jimblandy92b1f832009-12-23 22:23:49 +00005737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5738$as_echo "$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005739file_magic_cmd=$lt_cv_file_magic_cmd
5740deplibs_check_method=$lt_cv_deplibs_check_method
5741test -z "$deplibs_check_method" && deplibs_check_method=unknown
5742
5743
5744
5745
jimblandy92b1f832009-12-23 22:23:49 +00005746
5747
5748
5749
5750
5751
5752
5753
5754if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5756set dummy ${ac_tool_prefix}ar; ac_word=$2
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758$as_echo_n "checking for $ac_word... " >&6; }
5759if test "${ac_cv_prog_AR+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761else
5762 if test -n "$AR"; then
5763 ac_cv_prog_AR="$AR" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_AR="${ac_tool_prefix}ar"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777 done
5778IFS=$as_save_IFS
5779
5780fi
5781fi
5782AR=$ac_cv_prog_AR
5783if test -n "$AR"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5785$as_echo "$AR" >&6; }
5786else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791
5792fi
5793if test -z "$ac_cv_prog_AR"; then
5794 ac_ct_AR=$AR
5795 # Extract the first word of "ar", so it can be a program name with args.
5796set dummy ar; ac_word=$2
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798$as_echo_n "checking for $ac_word... " >&6; }
5799if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801else
5802 if test -n "$ac_ct_AR"; then
5803 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_ac_ct_AR="ar"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816done
5817 done
5818IFS=$as_save_IFS
5819
5820fi
5821fi
5822ac_ct_AR=$ac_cv_prog_ac_ct_AR
5823if test -n "$ac_ct_AR"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5825$as_echo "$ac_ct_AR" >&6; }
5826else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829fi
5830
5831 if test "x$ac_ct_AR" = x; then
5832 AR="false"
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835yes:)
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838ac_tool_warned=yes ;;
5839esac
5840 AR=$ac_ct_AR
5841 fi
5842else
5843 AR="$ac_cv_prog_AR"
5844fi
5845
5846test -z "$AR" && AR=ar
5847test -z "$AR_FLAGS" && AR_FLAGS=cru
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5861set dummy ${ac_tool_prefix}strip; ac_word=$2
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863$as_echo_n "checking for $ac_word... " >&6; }
5864if test "${ac_cv_prog_STRIP+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866else
5867 if test -n "$STRIP"; then
5868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881done
5882 done
5883IFS=$as_save_IFS
5884
5885fi
5886fi
5887STRIP=$ac_cv_prog_STRIP
5888if test -n "$STRIP"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5890$as_echo "$STRIP" >&6; }
5891else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897fi
5898if test -z "$ac_cv_prog_STRIP"; then
5899 ac_ct_STRIP=$STRIP
5900 # Extract the first word of "strip", so it can be a program name with args.
5901set dummy strip; ac_word=$2
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903$as_echo_n "checking for $ac_word... " >&6; }
5904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906else
5907 if test -n "$ac_ct_STRIP"; then
5908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_prog_ac_ct_STRIP="strip"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921done
5922 done
5923IFS=$as_save_IFS
5924
5925fi
5926fi
5927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5928if test -n "$ac_ct_STRIP"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5930$as_echo "$ac_ct_STRIP" >&6; }
5931else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936 if test "x$ac_ct_STRIP" = x; then
5937 STRIP=":"
5938 else
5939 case $cross_compiling:$ac_tool_warned in
5940yes:)
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943ac_tool_warned=yes ;;
5944esac
5945 STRIP=$ac_ct_STRIP
5946 fi
5947else
5948 STRIP="$ac_cv_prog_STRIP"
5949fi
5950
5951test -z "$STRIP" && STRIP=:
5952
5953
5954
5955
5956
5957
5958if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5960set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if test "${ac_cv_prog_RANLIB+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$RANLIB"; then
5967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986RANLIB=$ac_cv_prog_RANLIB
5987if test -n "$RANLIB"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5989$as_echo "$RANLIB" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995
5996fi
5997if test -z "$ac_cv_prog_RANLIB"; then
5998 ac_ct_RANLIB=$RANLIB
5999 # Extract the first word of "ranlib", so it can be a program name with args.
6000set dummy ranlib; ac_word=$2
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002$as_echo_n "checking for $ac_word... " >&6; }
6003if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005else
6006 if test -n "$ac_ct_RANLIB"; then
6007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6008else
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_RANLIB="ranlib"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020done
6021 done
6022IFS=$as_save_IFS
6023
6024fi
6025fi
6026ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6027if test -n "$ac_ct_RANLIB"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6029$as_echo "$ac_ct_RANLIB" >&6; }
6030else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032$as_echo "no" >&6; }
6033fi
6034
6035 if test "x$ac_ct_RANLIB" = x; then
6036 RANLIB=":"
6037 else
6038 case $cross_compiling:$ac_tool_warned in
6039yes:)
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 RANLIB=$ac_ct_RANLIB
6045 fi
6046else
6047 RANLIB="$ac_cv_prog_RANLIB"
6048fi
6049
6050test -z "$RANLIB" && RANLIB=:
6051
6052
6053
6054
6055
6056
6057# Determine commands to create old-style static archives.
6058old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6059old_postinstall_cmds='chmod 644 $oldlib'
6060old_postuninstall_cmds=
6061
6062if test -n "$RANLIB"; then
6063 case $host_os in
6064 openbsd*)
6065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6066 ;;
6067 *)
6068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6069 ;;
6070 esac
6071 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6072fi
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
6104
6105
6106
brynercb91a2f2006-08-25 21:14:45 +00006107# If no C compiler was specified, use CC.
6108LTCC=${LTCC-"$CC"}
6109
mmentovai8c2a4de2006-09-20 16:20:15 +00006110# If no C compiler flags were specified, use CFLAGS.
6111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6112
brynercb91a2f2006-08-25 21:14:45 +00006113# Allow CC to be a program name with arguments.
6114compiler=$CC
6115
6116
brynercb91a2f2006-08-25 21:14:45 +00006117# Check for command to grab the raw symbol name followed by C symbol from nm.
jimblandy92b1f832009-12-23 22:23:49 +00006118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6119$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6120if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00006122else
6123
6124# These are sane defaults that work on at least a few old systems.
6125# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6126
6127# Character class describing NM global symbol codes.
6128symcode='[BCDEGRST]'
6129
6130# Regexp to match symbols that can be accessed directly from C.
6131sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6132
brynercb91a2f2006-08-25 21:14:45 +00006133# Define system-specific variables.
6134case $host_os in
6135aix*)
6136 symcode='[BCDT]'
6137 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006138cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00006139 symcode='[ABCDGISTW]'
6140 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006141hpux*)
brynercb91a2f2006-08-25 21:14:45 +00006142 if test "$host_cpu" = ia64; then
6143 symcode='[ABCDEGRST]'
6144 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006145 ;;
brynercb91a2f2006-08-25 21:14:45 +00006146irix* | nonstopux*)
6147 symcode='[BCDEGRST]'
6148 ;;
6149osf*)
6150 symcode='[BCDEGQRST]'
6151 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006152solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006153 symcode='[BDRT]'
6154 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006155sco3.2v5*)
6156 symcode='[DT]'
6157 ;;
6158sysv4.2uw2*)
6159 symcode='[DT]'
6160 ;;
6161sysv5* | sco5v6* | unixware* | OpenUNIX*)
6162 symcode='[ABDT]'
6163 ;;
brynercb91a2f2006-08-25 21:14:45 +00006164sysv4)
6165 symcode='[DFNSTU]'
6166 ;;
6167esac
6168
brynercb91a2f2006-08-25 21:14:45 +00006169# If we're using GNU nm, then use its standard symbol codes.
6170case `$NM -V 2>&1` in
6171*GNU* | *'with BFD'*)
6172 symcode='[ABCDGIRSTW]' ;;
6173esac
6174
jimblandy92b1f832009-12-23 22:23:49 +00006175# Transform an extracted symbol line into a proper C declaration.
6176# Some systems (esp. on ia64) link data and code symbols differently,
6177# so use this general approach.
6178lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6179
6180# Transform an extracted symbol line into symbol name and symbol address
6181lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6182lt_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'"
6183
6184# Handle CRLF in mingw tool chain
6185opt_cr=
6186case $build_os in
6187mingw*)
6188 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6189 ;;
6190esac
6191
6192# Try without a prefix underscore, then with it.
brynercb91a2f2006-08-25 21:14:45 +00006193for ac_symprfx in "" "_"; do
6194
mmentovai8c2a4de2006-09-20 16:20:15 +00006195 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6196 symxfrm="\\1 $ac_symprfx\\2 \\2"
6197
brynercb91a2f2006-08-25 21:14:45 +00006198 # Write the raw and C identifiers.
jimblandy92b1f832009-12-23 22:23:49 +00006199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6200 # Fake it for dumpbin and say T for any non-static function
6201 # and D for any global variable.
6202 # Also find C++ and __fastcall symbols from MSVC++,
6203 # which start with @ or ?.
6204 lt_cv_sys_global_symbol_pipe="$AWK '"\
6205" {last_section=section; section=\$ 3};"\
6206" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6207" \$ 0!~/External *\|/{next};"\
6208" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6209" {if(hide[section]) next};"\
6210" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6211" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6212" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6213" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6214" ' prfx=^$ac_symprfx"
6215 else
6216 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6217 fi
brynercb91a2f2006-08-25 21:14:45 +00006218
6219 # Check to see that the pipe works correctly.
6220 pipe_works=no
6221
6222 rm -f conftest*
jimblandy92b1f832009-12-23 22:23:49 +00006223 cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006224#ifdef __cplusplus
6225extern "C" {
6226#endif
6227char nm_test_var;
jimblandy92b1f832009-12-23 22:23:49 +00006228void nm_test_func(void);
6229void nm_test_func(void){}
brynercb91a2f2006-08-25 21:14:45 +00006230#ifdef __cplusplus
6231}
6232#endif
6233int main(){nm_test_var='a';nm_test_func();return(0);}
jimblandy92b1f832009-12-23 22:23:49 +00006234_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006235
jimblandy92b1f832009-12-23 22:23:49 +00006236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006237 (eval $ac_compile) 2>&5
6238 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +00006241 # Now try to grab the symbols.
6242 nlist=conftest.nm
jimblandy92b1f832009-12-23 22:23:49 +00006243 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 +00006244 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6245 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; } && test -s "$nlist"; then
brynercb91a2f2006-08-25 21:14:45 +00006248 # Try sorting and uniquifying the output.
6249 if sort "$nlist" | uniq > "$nlist"T; then
6250 mv -f "$nlist"T "$nlist"
6251 else
6252 rm -f "$nlist"T
6253 fi
6254
6255 # Make sure that we snagged all the symbols we need.
jimblandy92b1f832009-12-23 22:23:49 +00006256 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6257 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6258 cat <<_LT_EOF > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006259#ifdef __cplusplus
6260extern "C" {
6261#endif
6262
jimblandy92b1f832009-12-23 22:23:49 +00006263_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006264 # Now generate the symbol file.
jimblandy92b1f832009-12-23 22:23:49 +00006265 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
brynercb91a2f2006-08-25 21:14:45 +00006266
jimblandy92b1f832009-12-23 22:23:49 +00006267 cat <<_LT_EOF >> conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006268
jimblandy92b1f832009-12-23 22:23:49 +00006269/* The mapping between symbol names and symbols. */
brynercb91a2f2006-08-25 21:14:45 +00006270const struct {
6271 const char *name;
jimblandy92b1f832009-12-23 22:23:49 +00006272 void *address;
brynercb91a2f2006-08-25 21:14:45 +00006273}
jimblandy92b1f832009-12-23 22:23:49 +00006274lt__PROGRAM__LTX_preloaded_symbols[] =
brynercb91a2f2006-08-25 21:14:45 +00006275{
jimblandy92b1f832009-12-23 22:23:49 +00006276 { "@PROGRAM@", (void *) 0 },
6277_LT_EOF
6278 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6279 cat <<\_LT_EOF >> conftest.$ac_ext
6280 {0, (void *) 0}
brynercb91a2f2006-08-25 21:14:45 +00006281};
6282
jimblandy92b1f832009-12-23 22:23:49 +00006283/* This works around a problem in FreeBSD linker */
6284#ifdef FREEBSD_WORKAROUND
6285static const void *lt_preloaded_setup() {
6286 return lt__PROGRAM__LTX_preloaded_symbols;
6287}
6288#endif
6289
brynercb91a2f2006-08-25 21:14:45 +00006290#ifdef __cplusplus
6291}
6292#endif
jimblandy92b1f832009-12-23 22:23:49 +00006293_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006294 # Now try linking the two files.
6295 mv conftest.$ac_objext conftstm.$ac_objext
6296 lt_save_LIBS="$LIBS"
6297 lt_save_CFLAGS="$CFLAGS"
6298 LIBS="conftstm.$ac_objext"
6299 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jimblandy92b1f832009-12-23 22:23:49 +00006300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006301 (eval $ac_link) 2>&5
6302 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6304 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
brynercb91a2f2006-08-25 21:14:45 +00006305 pipe_works=yes
6306 fi
6307 LIBS="$lt_save_LIBS"
6308 CFLAGS="$lt_save_CFLAGS"
6309 else
6310 echo "cannot find nm_test_func in $nlist" >&5
6311 fi
6312 else
6313 echo "cannot find nm_test_var in $nlist" >&5
6314 fi
6315 else
6316 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6317 fi
6318 else
6319 echo "$progname: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006322 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006323
6324 # Do not use the global_symbol_pipe unless it works.
6325 if test "$pipe_works" = yes; then
6326 break
6327 else
6328 lt_cv_sys_global_symbol_pipe=
6329 fi
6330done
6331
6332fi
6333
6334if test -z "$lt_cv_sys_global_symbol_pipe"; then
6335 lt_cv_sys_global_symbol_to_cdecl=
6336fi
6337if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jimblandy92b1f832009-12-23 22:23:49 +00006338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6339$as_echo "failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006340else
jimblandy92b1f832009-12-23 22:23:49 +00006341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6342$as_echo "ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006343fi
6344
jimblandy92b1f832009-12-23 22:23:49 +00006345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367# Check whether --enable-libtool-lock was given.
6368if test "${enable_libtool_lock+set}" = set; then :
6369 enableval=$enable_libtool_lock;
6370fi
6371
6372test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6373
6374# Some flags need to be propagated to the compiler or linker for good
6375# libtool support.
6376case $host in
6377ia64-*-hpux*)
6378 # Find out which ABI we are using.
6379 echo 'int i;' > conftest.$ac_ext
6380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381 (eval $ac_compile) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; then
6385 case `/usr/bin/file conftest.$ac_objext` in
6386 *ELF-32*)
6387 HPUX_IA64_MODE="32"
6388 ;;
6389 *ELF-64*)
6390 HPUX_IA64_MODE="64"
6391 ;;
6392 esac
6393 fi
6394 rm -rf conftest*
6395 ;;
6396*-*-irix6*)
6397 # Find out which ABI we are using.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00006398 echo '#line 6398 "configure"' > conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00006399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6400 (eval $ac_compile) 2>&5
6401 ac_status=$?
6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }; then
6404 if test "$lt_cv_prog_gnu_ld" = yes; then
6405 case `/usr/bin/file conftest.$ac_objext` in
6406 *32-bit*)
6407 LD="${LD-ld} -melf32bsmip"
6408 ;;
6409 *N32*)
6410 LD="${LD-ld} -melf32bmipn32"
6411 ;;
6412 *64-bit*)
6413 LD="${LD-ld} -melf64bmip"
6414 ;;
6415 esac
6416 else
6417 case `/usr/bin/file conftest.$ac_objext` in
6418 *32-bit*)
6419 LD="${LD-ld} -32"
6420 ;;
6421 *N32*)
6422 LD="${LD-ld} -n32"
6423 ;;
6424 *64-bit*)
6425 LD="${LD-ld} -64"
6426 ;;
6427 esac
6428 fi
6429 fi
6430 rm -rf conftest*
6431 ;;
6432
6433x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6434s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6435 # Find out which ABI we are using.
6436 echo 'int i;' > conftest.$ac_ext
6437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438 (eval $ac_compile) 2>&5
6439 ac_status=$?
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441 test $ac_status = 0; }; then
6442 case `/usr/bin/file conftest.o` in
6443 *32-bit*)
6444 case $host in
6445 x86_64-*kfreebsd*-gnu)
6446 LD="${LD-ld} -m elf_i386_fbsd"
6447 ;;
6448 x86_64-*linux*)
6449 LD="${LD-ld} -m elf_i386"
6450 ;;
6451 ppc64-*linux*|powerpc64-*linux*)
6452 LD="${LD-ld} -m elf32ppclinux"
6453 ;;
6454 s390x-*linux*)
6455 LD="${LD-ld} -m elf_s390"
6456 ;;
6457 sparc64-*linux*)
6458 LD="${LD-ld} -m elf32_sparc"
6459 ;;
6460 esac
6461 ;;
6462 *64-bit*)
6463 case $host in
6464 x86_64-*kfreebsd*-gnu)
6465 LD="${LD-ld} -m elf_x86_64_fbsd"
6466 ;;
6467 x86_64-*linux*)
6468 LD="${LD-ld} -m elf_x86_64"
6469 ;;
6470 ppc*-*linux*|powerpc*-*linux*)
6471 LD="${LD-ld} -m elf64ppc"
6472 ;;
6473 s390*-*linux*|s390*-*tpf*)
6474 LD="${LD-ld} -m elf64_s390"
6475 ;;
6476 sparc*-*linux*)
6477 LD="${LD-ld} -m elf64_sparc"
6478 ;;
6479 esac
6480 ;;
6481 esac
6482 fi
6483 rm -rf conftest*
6484 ;;
6485
6486*-*-sco3.2v5*)
6487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6488 SAVE_CFLAGS="$CFLAGS"
6489 CFLAGS="$CFLAGS -belf"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6491$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6492if test "${lt_cv_cc_needs_belf+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6494else
6495 ac_ext=c
6496ac_cpp='$CPP $CPPFLAGS'
6497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h. */
6503
6504int
6505main ()
6506{
6507
6508 ;
6509 return 0;
6510}
6511_ACEOF
6512if ac_fn_c_try_link "$LINENO"; then :
6513 lt_cv_cc_needs_belf=yes
6514else
6515 lt_cv_cc_needs_belf=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6519 ac_ext=c
6520ac_cpp='$CPP $CPPFLAGS'
6521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523ac_compiler_gnu=$ac_cv_c_compiler_gnu
6524
6525fi
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6527$as_echo "$lt_cv_cc_needs_belf" >&6; }
6528 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6529 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6530 CFLAGS="$SAVE_CFLAGS"
6531 fi
6532 ;;
6533sparc*-*solaris*)
6534 # Find out which ABI we are using.
6535 echo 'int i;' > conftest.$ac_ext
6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6537 (eval $ac_compile) 2>&5
6538 ac_status=$?
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; }; then
6541 case `/usr/bin/file conftest.o` in
6542 *64-bit*)
6543 case $lt_cv_prog_gnu_ld in
6544 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6545 *)
6546 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6547 LD="${LD-ld} -64"
6548 fi
6549 ;;
6550 esac
6551 ;;
6552 esac
6553 fi
6554 rm -rf conftest*
6555 ;;
6556esac
6557
6558need_locks="$enable_libtool_lock"
6559
6560
6561 case $host_os in
6562 rhapsody* | darwin*)
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6565set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567$as_echo_n "checking for $ac_word... " >&6; }
6568if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570else
6571 if test -n "$DSYMUTIL"; then
6572 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586 done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591DSYMUTIL=$ac_cv_prog_DSYMUTIL
6592if test -n "$DSYMUTIL"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6594$as_echo "$DSYMUTIL" >&6; }
6595else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597$as_echo "no" >&6; }
6598fi
6599
6600
6601fi
6602if test -z "$ac_cv_prog_DSYMUTIL"; then
6603 ac_ct_DSYMUTIL=$DSYMUTIL
6604 # Extract the first word of "dsymutil", so it can be a program name with args.
6605set dummy dsymutil; ac_word=$2
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607$as_echo_n "checking for $ac_word... " >&6; }
6608if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6610else
6611 if test -n "$ac_ct_DSYMUTIL"; then
6612 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625done
6626 done
6627IFS=$as_save_IFS
6628
6629fi
6630fi
6631ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6632if test -n "$ac_ct_DSYMUTIL"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6634$as_echo "$ac_ct_DSYMUTIL" >&6; }
6635else
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637$as_echo "no" >&6; }
6638fi
6639
6640 if test "x$ac_ct_DSYMUTIL" = x; then
6641 DSYMUTIL=":"
6642 else
6643 case $cross_compiling:$ac_tool_warned in
6644yes:)
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647ac_tool_warned=yes ;;
6648esac
6649 DSYMUTIL=$ac_ct_DSYMUTIL
6650 fi
6651else
6652 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6653fi
6654
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6657set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659$as_echo_n "checking for $ac_word... " >&6; }
6660if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662else
6663 if test -n "$NMEDIT"; then
6664 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678 done
6679IFS=$as_save_IFS
6680
6681fi
6682fi
6683NMEDIT=$ac_cv_prog_NMEDIT
6684if test -n "$NMEDIT"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6686$as_echo "$NMEDIT" >&6; }
6687else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689$as_echo "no" >&6; }
6690fi
6691
6692
6693fi
6694if test -z "$ac_cv_prog_NMEDIT"; then
6695 ac_ct_NMEDIT=$NMEDIT
6696 # Extract the first word of "nmedit", so it can be a program name with args.
6697set dummy nmedit; ac_word=$2
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699$as_echo_n "checking for $ac_word... " >&6; }
6700if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702else
6703 if test -n "$ac_ct_NMEDIT"; then
6704 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718 done
6719IFS=$as_save_IFS
6720
6721fi
6722fi
6723ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6724if test -n "$ac_ct_NMEDIT"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6726$as_echo "$ac_ct_NMEDIT" >&6; }
6727else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729$as_echo "no" >&6; }
6730fi
6731
6732 if test "x$ac_ct_NMEDIT" = x; then
6733 NMEDIT=":"
6734 else
6735 case $cross_compiling:$ac_tool_warned in
6736yes:)
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6739ac_tool_warned=yes ;;
6740esac
6741 NMEDIT=$ac_ct_NMEDIT
6742 fi
6743else
6744 NMEDIT="$ac_cv_prog_NMEDIT"
6745fi
6746
6747 if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6749set dummy ${ac_tool_prefix}lipo; ac_word=$2
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751$as_echo_n "checking for $ac_word... " >&6; }
6752if test "${ac_cv_prog_LIPO+set}" = set; then :
6753 $as_echo_n "(cached) " >&6
6754else
6755 if test -n "$LIPO"; then
6756 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770 done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775LIPO=$ac_cv_prog_LIPO
6776if test -n "$LIPO"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6778$as_echo "$LIPO" >&6; }
6779else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782fi
6783
6784
6785fi
6786if test -z "$ac_cv_prog_LIPO"; then
6787 ac_ct_LIPO=$LIPO
6788 # Extract the first word of "lipo", so it can be a program name with args.
6789set dummy lipo; ac_word=$2
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791$as_echo_n "checking for $ac_word... " >&6; }
6792if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6794else
6795 if test -n "$ac_ct_LIPO"; then
6796 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_ac_ct_LIPO="lipo"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809done
6810 done
6811IFS=$as_save_IFS
6812
6813fi
6814fi
6815ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6816if test -n "$ac_ct_LIPO"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6818$as_echo "$ac_ct_LIPO" >&6; }
6819else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824 if test "x$ac_ct_LIPO" = x; then
6825 LIPO=":"
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828yes:)
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831ac_tool_warned=yes ;;
6832esac
6833 LIPO=$ac_ct_LIPO
6834 fi
6835else
6836 LIPO="$ac_cv_prog_LIPO"
6837fi
6838
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}otool; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if test "${ac_cv_prog_OTOOL+set}" = set; then :
6845 $as_echo_n "(cached) " >&6
6846else
6847 if test -n "$OTOOL"; then
6848 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862 done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867OTOOL=$ac_cv_prog_OTOOL
6868if test -n "$OTOOL"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6870$as_echo "$OTOOL" >&6; }
6871else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_OTOOL"; then
6879 ac_ct_OTOOL=$OTOOL
6880 # Extract the first word of "otool", so it can be a program name with args.
6881set dummy otool; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887 if test -n "$ac_ct_OTOOL"; then
6888 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_ac_ct_OTOOL="otool"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901done
6902 done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6908if test -n "$ac_ct_OTOOL"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6910$as_echo "$ac_ct_OTOOL" >&6; }
6911else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916 if test "x$ac_ct_OTOOL" = x; then
6917 OTOOL=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925 OTOOL=$ac_ct_OTOOL
6926 fi
6927else
6928 OTOOL="$ac_cv_prog_OTOOL"
6929fi
6930
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6933set dummy ${ac_tool_prefix}otool64; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938else
6939 if test -n "$OTOOL64"; then
6940 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953done
6954 done
6955IFS=$as_save_IFS
6956
6957fi
6958fi
6959OTOOL64=$ac_cv_prog_OTOOL64
6960if test -n "$OTOOL64"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6962$as_echo "$OTOOL64" >&6; }
6963else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968
6969fi
6970if test -z "$ac_cv_prog_OTOOL64"; then
6971 ac_ct_OTOOL64=$OTOOL64
6972 # Extract the first word of "otool64", so it can be a program name with args.
6973set dummy otool64; ac_word=$2
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975$as_echo_n "checking for $ac_word... " >&6; }
6976if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978else
6979 if test -n "$ac_ct_OTOOL64"; then
6980 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6981else
6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_ac_ct_OTOOL64="otool64"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993done
6994 done
6995IFS=$as_save_IFS
6996
6997fi
6998fi
6999ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7000if test -n "$ac_ct_OTOOL64"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7002$as_echo "$ac_ct_OTOOL64" >&6; }
7003else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006fi
7007
7008 if test "x$ac_ct_OTOOL64" = x; then
7009 OTOOL64=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012yes:)
7013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015ac_tool_warned=yes ;;
7016esac
7017 OTOOL64=$ac_ct_OTOOL64
7018 fi
7019else
7020 OTOOL64="$ac_cv_prog_OTOOL64"
7021fi
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
7047
7048
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7050$as_echo_n "checking for -single_module linker flag... " >&6; }
7051if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053else
7054 lt_cv_apple_cc_single_mod=no
7055 if test -z "${LT_MULTI_MODULE}"; then
7056 # By default we will add the -single_module flag. You can override
7057 # by either setting the environment variable LT_MULTI_MODULE
7058 # non-empty at configure time, or by adding -multi_module to the
7059 # link flags.
7060 rm -rf libconftest.dylib*
7061 echo "int foo(void){return 1;}" > conftest.c
7062 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7063-dynamiclib -Wl,-single_module conftest.c" >&5
7064 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7065 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7066 _lt_result=$?
7067 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7068 lt_cv_apple_cc_single_mod=yes
7069 else
7070 cat conftest.err >&5
7071 fi
7072 rm -rf libconftest.dylib*
7073 rm -f conftest.*
7074 fi
7075fi
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7077$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7079$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7080if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082else
7083 lt_cv_ld_exported_symbols_list=no
7084 save_LDFLAGS=$LDFLAGS
7085 echo "_main" > conftest.sym
7086 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h. */
7089
7090int
7091main ()
7092{
7093
7094 ;
7095 return 0;
7096}
7097_ACEOF
7098if ac_fn_c_try_link "$LINENO"; then :
7099 lt_cv_ld_exported_symbols_list=yes
7100else
7101 lt_cv_ld_exported_symbols_list=no
7102fi
7103rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 LDFLAGS="$save_LDFLAGS"
7106
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7109$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7110 case $host_os in
7111 rhapsody* | darwin1.[012])
7112 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7113 darwin1.*)
7114 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7115 darwin*) # darwin 5.x on
7116 # if running on 10.5 or later, the deployment target defaults
7117 # to the OS version, if on x86, and 10.4, the deployment
7118 # target defaults to 10.4. Don't you love it?
7119 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7120 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7121 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7122 10.[012]*)
7123 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7124 10.*)
7125 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7126 esac
7127 ;;
7128 esac
7129 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7130 _lt_dar_single_mod='$single_module'
7131 fi
7132 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7133 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7134 else
7135 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7136 fi
7137 if test "$DSYMUTIL" != ":"; then
7138 _lt_dsymutil='~$DSYMUTIL $lib || :'
7139 else
7140 _lt_dsymutil=
7141 fi
7142 ;;
7143 esac
7144
7145
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7147$as_echo_n "checking for ANSI C header files... " >&6; }
7148if test "${ac_cv_header_stdc+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150else
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h. */
7153#include <stdlib.h>
7154#include <stdarg.h>
7155#include <string.h>
7156#include <float.h>
7157
7158int
7159main ()
7160{
7161
7162 ;
7163 return 0;
7164}
7165_ACEOF
7166if ac_fn_c_try_compile "$LINENO"; then :
7167 ac_cv_header_stdc=yes
7168else
7169 ac_cv_header_stdc=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172
7173if test $ac_cv_header_stdc = yes; then
7174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h. */
7177#include <string.h>
7178
7179_ACEOF
7180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 $EGREP "memchr" >/dev/null 2>&1; then :
7182
7183else
7184 ac_cv_header_stdc=no
7185fi
7186rm -f conftest*
7187
7188fi
7189
7190if test $ac_cv_header_stdc = yes; then
7191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193/* end confdefs.h. */
7194#include <stdlib.h>
7195
7196_ACEOF
7197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7198 $EGREP "free" >/dev/null 2>&1; then :
7199
7200else
7201 ac_cv_header_stdc=no
7202fi
7203rm -f conftest*
7204
7205fi
7206
7207if test $ac_cv_header_stdc = yes; then
7208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7209 if test "$cross_compiling" = yes; then :
7210 :
7211else
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h. */
7214#include <ctype.h>
7215#include <stdlib.h>
7216#if ((' ' & 0x0FF) == 0x020)
7217# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7218# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7219#else
7220# define ISLOWER(c) \
7221 (('a' <= (c) && (c) <= 'i') \
7222 || ('j' <= (c) && (c) <= 'r') \
7223 || ('s' <= (c) && (c) <= 'z'))
7224# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7225#endif
7226
7227#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7228int
7229main ()
7230{
7231 int i;
7232 for (i = 0; i < 256; i++)
7233 if (XOR (islower (i), ISLOWER (i))
7234 || toupper (i) != TOUPPER (i))
7235 return 2;
7236 return 0;
7237}
7238_ACEOF
7239if ac_fn_c_try_run "$LINENO"; then :
7240
7241else
7242 ac_cv_header_stdc=no
7243fi
7244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7245 conftest.$ac_objext conftest.beam conftest.$ac_ext
7246fi
7247
7248fi
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7251$as_echo "$ac_cv_header_stdc" >&6; }
7252if test $ac_cv_header_stdc = yes; then
7253
7254$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7255
7256fi
7257
7258# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7260 inttypes.h stdint.h unistd.h
7261do :
7262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7263ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7264"
7265eval as_val=\$$as_ac_Header
7266 if test "x$as_val" = x""yes; then :
7267 cat >>confdefs.h <<_ACEOF
7268#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7269_ACEOF
7270
7271fi
7272
7273done
7274
7275
7276for ac_header in dlfcn.h
7277do :
7278 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7279"
7280if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7281 cat >>confdefs.h <<_ACEOF
7282#define HAVE_DLFCN_H 1
7283_ACEOF
7284
7285fi
7286
7287done
7288
7289
7290
7291ac_ext=cpp
7292ac_cpp='$CXXCPP $CPPFLAGS'
7293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7296if test -z "$CXX"; then
7297 if test -n "$CCC"; then
7298 CXX=$CCC
7299 else
7300 if test -n "$ac_tool_prefix"; then
7301 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7302 do
7303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306$as_echo_n "checking for $ac_word... " >&6; }
7307if test "${ac_cv_prog_CXX+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309else
7310 if test -n "$CXX"; then
7311 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7312else
7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7323 fi
7324done
7325 done
7326IFS=$as_save_IFS
7327
7328fi
7329fi
7330CXX=$ac_cv_prog_CXX
7331if test -n "$CXX"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7333$as_echo "$CXX" >&6; }
7334else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336$as_echo "no" >&6; }
7337fi
7338
7339
7340 test -n "$CXX" && break
7341 done
7342fi
7343if test -z "$CXX"; then
7344 ac_ct_CXX=$CXX
7345 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7346do
7347 # Extract the first word of "$ac_prog", so it can be a program name with args.
7348set dummy $ac_prog; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7353else
7354 if test -n "$ac_ct_CXX"; then
7355 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_ac_ct_CXX="$ac_prog"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368done
7369 done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7375if test -n "$ac_ct_CXX"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7377$as_echo "$ac_ct_CXX" >&6; }
7378else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383
7384 test -n "$ac_ct_CXX" && break
7385done
7386
7387 if test "x$ac_ct_CXX" = x; then
7388 CXX="g++"
7389 else
7390 case $cross_compiling:$ac_tool_warned in
7391yes:)
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394ac_tool_warned=yes ;;
7395esac
7396 CXX=$ac_ct_CXX
7397 fi
7398fi
7399
7400 fi
7401fi
7402# Provide some information about the compiler.
7403$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7404set X $ac_compile
7405ac_compiler=$2
7406for ac_option in --version -v -V -qversion; do
7407 { { ac_try="$ac_compiler $ac_option >&5"
7408case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411esac
7412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7413$as_echo "$ac_try_echo"; } >&5
7414 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7415 ac_status=$?
7416 if test -s conftest.err; then
7417 sed '10a\
7418... rest of stderr output deleted ...
7419 10q' conftest.err >conftest.er1
7420 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00007421 fi
jimblandydc4029a2010-02-02 17:39:51 +00007422 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00007423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }
7425done
7426
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7428$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7429if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431else
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h. */
7434
7435int
7436main ()
7437{
7438#ifndef __GNUC__
7439 choke me
7440#endif
7441
7442 ;
7443 return 0;
7444}
7445_ACEOF
7446if ac_fn_cxx_try_compile "$LINENO"; then :
7447 ac_compiler_gnu=yes
7448else
7449 ac_compiler_gnu=no
7450fi
7451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7453
7454fi
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7456$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7457if test $ac_compiler_gnu = yes; then
7458 GXX=yes
7459else
7460 GXX=
7461fi
7462ac_test_CXXFLAGS=${CXXFLAGS+set}
7463ac_save_CXXFLAGS=$CXXFLAGS
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7465$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7466if test "${ac_cv_prog_cxx_g+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468else
7469 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7470 ac_cxx_werror_flag=yes
7471 ac_cv_prog_cxx_g=no
7472 CXXFLAGS="-g"
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h. */
7475
7476int
7477main ()
7478{
7479
7480 ;
7481 return 0;
7482}
7483_ACEOF
7484if ac_fn_cxx_try_compile "$LINENO"; then :
7485 ac_cv_prog_cxx_g=yes
7486else
7487 CXXFLAGS=""
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h. */
7490
7491int
7492main ()
7493{
7494
7495 ;
7496 return 0;
7497}
7498_ACEOF
7499if ac_fn_cxx_try_compile "$LINENO"; then :
7500
7501else
7502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7503 CXXFLAGS="-g"
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h. */
7506
7507int
7508main ()
7509{
7510
7511 ;
7512 return 0;
7513}
7514_ACEOF
7515if ac_fn_cxx_try_compile "$LINENO"; then :
7516 ac_cv_prog_cxx_g=yes
7517fi
7518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519fi
7520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521fi
7522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7526$as_echo "$ac_cv_prog_cxx_g" >&6; }
7527if test "$ac_test_CXXFLAGS" = set; then
7528 CXXFLAGS=$ac_save_CXXFLAGS
7529elif test $ac_cv_prog_cxx_g = yes; then
7530 if test "$GXX" = yes; then
7531 CXXFLAGS="-g -O2"
7532 else
7533 CXXFLAGS="-g"
7534 fi
7535else
7536 if test "$GXX" = yes; then
7537 CXXFLAGS="-O2"
7538 else
7539 CXXFLAGS=
7540 fi
7541fi
7542ac_ext=c
7543ac_cpp='$CPP $CPPFLAGS'
7544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7546ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547
7548depcc="$CXX" am_compiler_list=
7549
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7551$as_echo_n "checking dependency style of $depcc... " >&6; }
7552if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554else
7555 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7556 # We make a subdir and do the tests there. Otherwise we can end up
7557 # making bogus files that we don't know about and never remove. For
7558 # instance it was reported that on HP-UX the gcc test will end up
7559 # making a dummy file named `D' -- because `-MD' means `put the output
7560 # in D'.
7561 mkdir conftest.dir
7562 # Copy depcomp to subdir because otherwise we won't find it if we're
7563 # using a relative directory.
7564 cp "$am_depcomp" conftest.dir
7565 cd conftest.dir
7566 # We will build objects and dependencies in a subdirectory because
7567 # it helps to detect inapplicable dependency modes. For instance
7568 # both Tru64's cc and ICC support -MD to output dependencies as a
7569 # side effect of compilation, but ICC will put the dependencies in
7570 # the current directory while Tru64 will put them in the object
7571 # directory.
7572 mkdir sub
7573
7574 am_cv_CXX_dependencies_compiler_type=none
7575 if test "$am_compiler_list" = ""; then
7576 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7577 fi
7578 am__universal=false
7579 case " $depcc " in #(
7580 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7581 esac
7582
7583 for depmode in $am_compiler_list; do
7584 # Setup a source with many dependencies, because some compilers
7585 # like to wrap large dependency lists on column 80 (with \), and
7586 # we should not choose a depcomp mode which is confused by this.
7587 #
7588 # We need to recreate these files for each test, as the compiler may
7589 # overwrite some of them when testing with obscure command lines.
7590 # This happens at least with the AIX C compiler.
7591 : > sub/conftest.c
7592 for i in 1 2 3 4 5 6; do
7593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7595 # Solaris 8's {/usr,}/bin/sh.
7596 touch sub/conftst$i.h
7597 done
7598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7599
7600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7601 # mode. It turns out that the SunPro C++ compiler does not properly
7602 # handle `-M -o', and we need to detect this. Also, some Intel
7603 # versions had trouble with output in subdirs
7604 am__obj=sub/conftest.${OBJEXT-o}
7605 am__minus_obj="-o $am__obj"
7606 case $depmode in
7607 gcc)
7608 # This depmode causes a compiler race in universal mode.
7609 test "$am__universal" = false || continue
7610 ;;
7611 nosideeffect)
7612 # after this tag, mechanisms are not by side-effect, so they'll
7613 # only be used when explicitly requested
7614 if test "x$enable_dependency_tracking" = xyes; then
7615 continue
7616 else
7617 break
7618 fi
7619 ;;
7620 msvisualcpp | msvcmsys)
7621 # This compiler won't grok `-c -o', but also, the minuso test has
7622 # not run yet. These depmodes are late enough in the game, and
7623 # so weak that their functioning should not be impacted.
7624 am__obj=conftest.${OBJEXT-o}
7625 am__minus_obj=
7626 ;;
7627 none) break ;;
7628 esac
7629 if depmode=$depmode \
7630 source=sub/conftest.c object=$am__obj \
7631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7632 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7633 >/dev/null 2>conftest.err &&
7634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7636 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7638 # icc doesn't choke on unknown options, it will just issue warnings
7639 # or remarks (even with -Werror). So we grep stderr for any message
7640 # that says an option was ignored or not supported.
7641 # When given -MP, icc 7.0 and 7.1 complain thusly:
7642 # icc: Command line warning: ignoring option '-M'; no argument required
7643 # The diagnosis changed in icc 8.0:
7644 # icc: Command line remark: option '-MP' not supported
7645 if (grep 'ignoring option' conftest.err ||
7646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7647 am_cv_CXX_dependencies_compiler_type=$depmode
7648 break
7649 fi
7650 fi
7651 done
7652
7653 cd ..
7654 rm -rf conftest.dir
7655else
7656 am_cv_CXX_dependencies_compiler_type=none
7657fi
7658
7659fi
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7661$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7662CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7663
7664 if
7665 test "x$enable_dependency_tracking" != xno \
7666 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7667 am__fastdepCXX_TRUE=
7668 am__fastdepCXX_FALSE='#'
7669else
7670 am__fastdepCXX_TRUE='#'
7671 am__fastdepCXX_FALSE=
7672fi
7673
7674
7675if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7676 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7677 (test "X$CXX" != "Xg++"))) ; then
7678 ac_ext=cpp
7679ac_cpp='$CXXCPP $CPPFLAGS'
7680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7684$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7685if test -z "$CXXCPP"; then
7686 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688else
7689 # Double quotes because CXXCPP needs to be expanded
7690 for CXXCPP in "$CXX -E" "/lib/cpp"
7691 do
7692 ac_preproc_ok=false
7693for ac_cxx_preproc_warn_flag in '' yes
7694do
7695 # Use a header file that comes with gcc, so configuring glibc
7696 # with a fresh cross-compiler works.
7697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7698 # <limits.h> exists even on freestanding compilers.
7699 # On the NeXT, cc -E runs the code through the compiler's parser,
7700 # not just through cpp. "Syntax error" is here to catch this case.
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702/* end confdefs.h. */
7703#ifdef __STDC__
7704# include <limits.h>
7705#else
7706# include <assert.h>
7707#endif
7708 Syntax error
7709_ACEOF
7710if ac_fn_cxx_try_cpp "$LINENO"; then :
7711
7712else
7713 # Broken: fails on valid input.
7714continue
7715fi
7716rm -f conftest.err conftest.$ac_ext
7717
7718 # OK, works on sane cases. Now check whether nonexistent headers
7719 # can be detected and how.
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h. */
7722#include <ac_nonexistent.h>
7723_ACEOF
7724if ac_fn_cxx_try_cpp "$LINENO"; then :
7725 # Broken: success on invalid input.
7726continue
7727else
7728 # Passes both tests.
7729ac_preproc_ok=:
7730break
7731fi
7732rm -f conftest.err conftest.$ac_ext
7733
7734done
7735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7736rm -f conftest.err conftest.$ac_ext
7737if $ac_preproc_ok; then :
7738 break
7739fi
7740
7741 done
7742 ac_cv_prog_CXXCPP=$CXXCPP
7743
7744fi
7745 CXXCPP=$ac_cv_prog_CXXCPP
7746else
7747 ac_cv_prog_CXXCPP=$CXXCPP
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7750$as_echo "$CXXCPP" >&6; }
7751ac_preproc_ok=false
7752for ac_cxx_preproc_warn_flag in '' yes
7753do
7754 # Use a header file that comes with gcc, so configuring glibc
7755 # with a fresh cross-compiler works.
7756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 # <limits.h> exists even on freestanding compilers.
7758 # On the NeXT, cc -E runs the code through the compiler's parser,
7759 # not just through cpp. "Syntax error" is here to catch this case.
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h. */
7762#ifdef __STDC__
7763# include <limits.h>
7764#else
7765# include <assert.h>
7766#endif
7767 Syntax error
7768_ACEOF
7769if ac_fn_cxx_try_cpp "$LINENO"; then :
7770
7771else
7772 # Broken: fails on valid input.
7773continue
7774fi
7775rm -f conftest.err conftest.$ac_ext
7776
7777 # OK, works on sane cases. Now check whether nonexistent headers
7778 # can be detected and how.
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h. */
7781#include <ac_nonexistent.h>
7782_ACEOF
7783if ac_fn_cxx_try_cpp "$LINENO"; then :
7784 # Broken: success on invalid input.
7785continue
7786else
7787 # Passes both tests.
7788ac_preproc_ok=:
7789break
7790fi
7791rm -f conftest.err conftest.$ac_ext
7792
7793done
7794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7795rm -f conftest.err conftest.$ac_ext
7796if $ac_preproc_ok; then :
7797
7798else
7799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7801_lt_caught_CXX_error=yes; }
7802fi
7803
7804ac_ext=c
7805ac_cpp='$CPP $CPPFLAGS'
7806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809
7810else
7811 _lt_caught_CXX_error=yes
7812fi
7813
7814
7815
7816
7817
7818# Set options
7819
7820
7821
7822 enable_dlopen=no
7823
7824
7825 enable_win32_dll=no
7826
7827
7828 # Check whether --enable-shared was given.
7829if test "${enable_shared+set}" = set; then :
7830 enableval=$enable_shared; p=${PACKAGE-default}
7831 case $enableval in
7832 yes) enable_shared=yes ;;
7833 no) enable_shared=no ;;
7834 *)
7835 enable_shared=no
7836 # Look at the argument we got. We use all the common list separators.
7837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7838 for pkg in $enableval; do
7839 IFS="$lt_save_ifs"
7840 if test "X$pkg" = "X$p"; then
7841 enable_shared=yes
7842 fi
7843 done
7844 IFS="$lt_save_ifs"
7845 ;;
7846 esac
7847else
7848 enable_shared=yes
7849fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859 # Check whether --enable-static was given.
7860if test "${enable_static+set}" = set; then :
7861 enableval=$enable_static; p=${PACKAGE-default}
7862 case $enableval in
7863 yes) enable_static=yes ;;
7864 no) enable_static=no ;;
7865 *)
7866 enable_static=no
7867 # Look at the argument we got. We use all the common list separators.
7868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7869 for pkg in $enableval; do
7870 IFS="$lt_save_ifs"
7871 if test "X$pkg" = "X$p"; then
7872 enable_static=yes
7873 fi
7874 done
7875 IFS="$lt_save_ifs"
7876 ;;
7877 esac
7878else
7879 enable_static=yes
7880fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891# Check whether --with-pic was given.
7892if test "${with_pic+set}" = set; then :
7893 withval=$with_pic; pic_mode="$withval"
7894else
7895 pic_mode=default
7896fi
7897
7898
7899test -z "$pic_mode" && pic_mode=default
7900
7901
7902
7903
7904
7905
7906
7907 # Check whether --enable-fast-install was given.
7908if test "${enable_fast_install+set}" = set; then :
7909 enableval=$enable_fast_install; p=${PACKAGE-default}
7910 case $enableval in
7911 yes) enable_fast_install=yes ;;
7912 no) enable_fast_install=no ;;
7913 *)
7914 enable_fast_install=no
7915 # Look at the argument we got. We use all the common list separators.
7916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7917 for pkg in $enableval; do
7918 IFS="$lt_save_ifs"
7919 if test "X$pkg" = "X$p"; then
7920 enable_fast_install=yes
7921 fi
7922 done
7923 IFS="$lt_save_ifs"
7924 ;;
7925 esac
7926else
7927 enable_fast_install=yes
7928fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940# This can be used to rebuild libtool when needed
7941LIBTOOL_DEPS="$ltmain"
7942
7943# Always use our own libtool.
7944LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970test -z "$LN_S" && LN_S="ln -s"
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985if test -n "${ZSH_VERSION+set}" ; then
7986 setopt NO_GLOB_SUBST
7987fi
7988
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7990$as_echo_n "checking for objdir... " >&6; }
7991if test "${lt_cv_objdir+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00007993else
7994 rm -f .libs 2>/dev/null
7995mkdir .libs 2>/dev/null
7996if test -d .libs; then
7997 lt_cv_objdir=.libs
7998else
7999 # MS-DOS does not allow filenames that begin with a dot.
8000 lt_cv_objdir=_libs
8001fi
8002rmdir .libs 2>/dev/null
8003fi
jimblandy92b1f832009-12-23 22:23:49 +00008004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8005$as_echo "$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008006objdir=$lt_cv_objdir
8007
8008
8009
8010
8011
jimblandy92b1f832009-12-23 22:23:49 +00008012cat >>confdefs.h <<_ACEOF
8013#define LT_OBJDIR "$lt_cv_objdir/"
8014_ACEOF
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
brynercb91a2f2006-08-25 21:14:45 +00008032case $host_os in
8033aix3*)
8034 # AIX sometimes has problems with the GCC collect2 program. For some
8035 # reason, if we set the COLLECT_NAMES environment variable, the problems
8036 # vanish in a puff of smoke.
8037 if test "X${COLLECT_NAMES+set}" != Xset; then
8038 COLLECT_NAMES=
8039 export COLLECT_NAMES
8040 fi
8041 ;;
8042esac
8043
8044# Sed substitution that helps us do robust quoting. It backslashifies
8045# metacharacters that are still active within double-quoted strings.
jimblandy92b1f832009-12-23 22:23:49 +00008046sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008047
8048# Same as above, but do not quote variable references.
jimblandy92b1f832009-12-23 22:23:49 +00008049double_quote_subst='s/\(["`\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008050
8051# Sed substitution to delay expansion of an escaped shell variable in a
8052# double_quote_subst'ed string.
8053delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8054
jimblandy92b1f832009-12-23 22:23:49 +00008055# Sed substitution to delay expansion of an escaped single quote.
8056delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8057
brynercb91a2f2006-08-25 21:14:45 +00008058# Sed substitution to avoid accidental globbing in evaled expressions
8059no_glob_subst='s/\*/\\\*/g'
8060
brynercb91a2f2006-08-25 21:14:45 +00008061# Global variables:
jimblandy92b1f832009-12-23 22:23:49 +00008062ofile=libtool
brynercb91a2f2006-08-25 21:14:45 +00008063can_build_shared=yes
8064
mmentovai8c2a4de2006-09-20 16:20:15 +00008065# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00008066# which needs '.lib').
8067libext=a
jimblandy92b1f832009-12-23 22:23:49 +00008068
brynercb91a2f2006-08-25 21:14:45 +00008069with_gnu_ld="$lt_cv_prog_gnu_ld"
8070
brynercb91a2f2006-08-25 21:14:45 +00008071old_CC="$CC"
8072old_CFLAGS="$CFLAGS"
8073
8074# Set sane defaults for various variables
brynercb91a2f2006-08-25 21:14:45 +00008075test -z "$CC" && CC=cc
8076test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00008077test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00008078test -z "$LD" && LD=ld
brynercb91a2f2006-08-25 21:14:45 +00008079test -z "$ac_objext" && ac_objext=o
8080
mmentovai8c2a4de2006-09-20 16:20:15 +00008081for cc_temp in $compiler""; do
8082 case $cc_temp in
8083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8085 \-*) ;;
8086 *) break;;
8087 esac
8088done
jimblandy92b1f832009-12-23 22:23:49 +00008089cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +00008090
8091
brynercb91a2f2006-08-25 21:14:45 +00008092# Only perform the check for file, if the check method requires it
jimblandy92b1f832009-12-23 22:23:49 +00008093test -z "$MAGIC_CMD" && MAGIC_CMD=file
brynercb91a2f2006-08-25 21:14:45 +00008094case $deplibs_check_method in
8095file_magic*)
8096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
jimblandy92b1f832009-12-23 22:23:49 +00008097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8098$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8099if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008101else
8102 case $MAGIC_CMD in
8103[\\/*] | ?:[\\/]*)
8104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8105 ;;
8106*)
8107 lt_save_MAGIC_CMD="$MAGIC_CMD"
8108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8110 for ac_dir in $ac_dummy; do
8111 IFS="$lt_save_ifs"
8112 test -z "$ac_dir" && ac_dir=.
8113 if test -f $ac_dir/${ac_tool_prefix}file; then
8114 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8115 if test -n "$file_magic_test_file"; then
8116 case $deplibs_check_method in
8117 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8121 $EGREP "$file_magic_regex" > /dev/null; then
8122 :
8123 else
jimblandy92b1f832009-12-23 22:23:49 +00008124 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008125
8126*** Warning: the command libtool uses to detect shared libraries,
8127*** $file_magic_cmd, produces output that libtool cannot recognize.
8128*** The result is that libtool may fail to recognize shared libraries
8129*** as such. This will affect the creation of libtool libraries that
8130*** depend on shared libraries, but programs linked with such libtool
8131*** libraries will work regardless of this problem. Nevertheless, you
8132*** may want to report the problem to your system manager and/or to
8133*** bug-libtool@gnu.org
8134
jimblandy92b1f832009-12-23 22:23:49 +00008135_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008136 fi ;;
8137 esac
8138 fi
8139 break
8140 fi
8141 done
8142 IFS="$lt_save_ifs"
8143 MAGIC_CMD="$lt_save_MAGIC_CMD"
8144 ;;
8145esac
8146fi
8147
8148MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8149if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8151$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008152else
jimblandy92b1f832009-12-23 22:23:49 +00008153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008155fi
8156
jimblandy92b1f832009-12-23 22:23:49 +00008157
8158
8159
8160
brynercb91a2f2006-08-25 21:14:45 +00008161if test -z "$lt_cv_path_MAGIC_CMD"; then
8162 if test -n "$ac_tool_prefix"; then
jimblandy92b1f832009-12-23 22:23:49 +00008163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8164$as_echo_n "checking for file... " >&6; }
8165if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008167else
8168 case $MAGIC_CMD in
8169[\\/*] | ?:[\\/]*)
8170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8171 ;;
8172*)
8173 lt_save_MAGIC_CMD="$MAGIC_CMD"
8174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8176 for ac_dir in $ac_dummy; do
8177 IFS="$lt_save_ifs"
8178 test -z "$ac_dir" && ac_dir=.
8179 if test -f $ac_dir/file; then
8180 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8181 if test -n "$file_magic_test_file"; then
8182 case $deplibs_check_method in
8183 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8187 $EGREP "$file_magic_regex" > /dev/null; then
8188 :
8189 else
jimblandy92b1f832009-12-23 22:23:49 +00008190 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008191
8192*** Warning: the command libtool uses to detect shared libraries,
8193*** $file_magic_cmd, produces output that libtool cannot recognize.
8194*** The result is that libtool may fail to recognize shared libraries
8195*** as such. This will affect the creation of libtool libraries that
8196*** depend on shared libraries, but programs linked with such libtool
8197*** libraries will work regardless of this problem. Nevertheless, you
8198*** may want to report the problem to your system manager and/or to
8199*** bug-libtool@gnu.org
8200
jimblandy92b1f832009-12-23 22:23:49 +00008201_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008202 fi ;;
8203 esac
8204 fi
8205 break
8206 fi
8207 done
8208 IFS="$lt_save_ifs"
8209 MAGIC_CMD="$lt_save_MAGIC_CMD"
8210 ;;
8211esac
8212fi
8213
8214MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8215if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8217$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008218else
jimblandy92b1f832009-12-23 22:23:49 +00008219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008221fi
8222
jimblandy92b1f832009-12-23 22:23:49 +00008223
brynercb91a2f2006-08-25 21:14:45 +00008224 else
8225 MAGIC_CMD=:
8226 fi
8227fi
8228
8229 fi
8230 ;;
8231esac
8232
brynercb91a2f2006-08-25 21:14:45 +00008233# Use C for the default configuration in the libtool script
jimblandy92b1f832009-12-23 22:23:49 +00008234
brynercb91a2f2006-08-25 21:14:45 +00008235lt_save_CC="$CC"
8236ac_ext=c
8237ac_cpp='$CPP $CPPFLAGS'
8238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8240ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241
8242
8243# Source file extension for C test sources.
8244ac_ext=c
8245
8246# Object file extension for compiled C test sources.
8247objext=o
8248objext=$objext
8249
8250# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008251lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00008252
8253# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008254lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00008255
8256
jimblandy92b1f832009-12-23 22:23:49 +00008257
8258
8259
8260
8261
brynercb91a2f2006-08-25 21:14:45 +00008262# If no C compiler was specified, use CC.
8263LTCC=${LTCC-"$CC"}
8264
mmentovai8c2a4de2006-09-20 16:20:15 +00008265# If no C compiler flags were specified, use CFLAGS.
8266LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8267
brynercb91a2f2006-08-25 21:14:45 +00008268# Allow CC to be a program name with arguments.
8269compiler=$CC
8270
jimblandy92b1f832009-12-23 22:23:49 +00008271# Save the default compiler, since it gets overwritten when the other
8272# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8273compiler_DEFAULT=$CC
brynercb91a2f2006-08-25 21:14:45 +00008274
mmentovai8c2a4de2006-09-20 16:20:15 +00008275# save warnings/boilerplate of simple test code
8276ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008277echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008278eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8279_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008280$RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008281
mmentovai8c2a4de2006-09-20 16:20:15 +00008282ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008283echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008284eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8285_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008286$RM -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00008287
8288
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008289## CAVEAT EMPTOR:
8290## There is no encapsulation within the following macros, do not change
8291## the running order or otherwise move them around unless you know exactly
8292## what you are doing...
jimblandy92b1f832009-12-23 22:23:49 +00008293if test -n "$compiler"; then
brynercb91a2f2006-08-25 21:14:45 +00008294
8295lt_prog_compiler_no_builtin_flag=
8296
8297if test "$GCC" = yes; then
8298 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8299
jimblandy92b1f832009-12-23 22:23:49 +00008300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8301$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8302if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008304else
8305 lt_cv_prog_compiler_rtti_exceptions=no
jimblandy92b1f832009-12-23 22:23:49 +00008306 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008308 lt_compiler_flag="-fno-rtti -fno-exceptions"
8309 # Insert the option either (1) after the last *FLAGS variable, or
8310 # (2) before a word containing "conftest.", or (3) at the end.
8311 # Note that $ac_compile itself does not contain backslashes and begins
8312 # with a dollar sign (not a hyphen), so the echo should work correctly.
8313 # The option is referenced via a variable to avoid confusing sed.
8314 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8317 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008318 (eval echo "\"\$as_me:8318: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008319 (eval "$lt_compile" 2>conftest.err)
8320 ac_status=$?
8321 cat conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008322 echo "$as_me:8322: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008323 if (exit $ac_status) && test -s "$ac_outfile"; then
8324 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008325 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008326 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008329 lt_cv_prog_compiler_rtti_exceptions=yes
8330 fi
8331 fi
jimblandy92b1f832009-12-23 22:23:49 +00008332 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008333
8334fi
jimblandy92b1f832009-12-23 22:23:49 +00008335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8336$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008337
8338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8339 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8340else
8341 :
8342fi
8343
8344fi
8345
jimblandy92b1f832009-12-23 22:23:49 +00008346
8347
8348
8349
8350
8351 lt_prog_compiler_wl=
brynercb91a2f2006-08-25 21:14:45 +00008352lt_prog_compiler_pic=
8353lt_prog_compiler_static=
8354
jimblandy92b1f832009-12-23 22:23:49 +00008355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8356$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008357
8358 if test "$GCC" = yes; then
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_static='-static'
8361
8362 case $host_os in
8363 aix*)
8364 # All AIX code is PIC.
8365 if test "$host_cpu" = ia64; then
8366 # AIX 5 now supports IA64 processor
8367 lt_prog_compiler_static='-Bstatic'
8368 fi
8369 ;;
8370
8371 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008372 case $host_cpu in
8373 powerpc)
8374 # see comment about AmigaOS4 .so support
8375 lt_prog_compiler_pic='-fPIC'
8376 ;;
8377 m68k)
8378 # FIXME: we need at least 68020 code to build shared libraries, but
8379 # adding the `-m68020' flag to GCC prevents building anything better,
8380 # like `-m68040'.
8381 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8382 ;;
8383 esac
brynercb91a2f2006-08-25 21:14:45 +00008384 ;;
8385
ted.mielczarek1adb1842009-12-21 13:12:20 +00008386 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00008387 # PIC is the default for these OSes.
8388 ;;
8389
jimblandy92b1f832009-12-23 22:23:49 +00008390 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008391 # This hack is so that the source file can tell whether it is being
8392 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00008393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8394 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00008395 lt_prog_compiler_pic='-DDLL_EXPORT'
8396 ;;
8397
8398 darwin* | rhapsody*)
8399 # PIC is the default on this platform
8400 # Common symbols not allowed in MH_DYLIB files
8401 lt_prog_compiler_pic='-fno-common'
8402 ;;
8403
jimblandy92b1f832009-12-23 22:23:49 +00008404 hpux*)
8405 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8406 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8407 # sets the default TLS model and affects inlining.
8408 case $host_cpu in
8409 hppa*64*)
8410 # +Z the default
8411 ;;
8412 *)
8413 lt_prog_compiler_pic='-fPIC'
8414 ;;
8415 esac
8416 ;;
8417
ted.mielczarek1adb1842009-12-21 13:12:20 +00008418 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008419 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8420 # Instead, we relocate shared libraries at runtime.
8421 ;;
8422
brynercb91a2f2006-08-25 21:14:45 +00008423 msdosdjgpp*)
8424 # Just because we use GCC doesn't mean we suddenly get shared libraries
8425 # on systems that don't support them.
8426 lt_prog_compiler_can_build_shared=no
8427 enable_shared=no
8428 ;;
8429
jimblandy92b1f832009-12-23 22:23:49 +00008430 *nto* | *qnx*)
8431 # QNX uses GNU C++, but need to define -shared option too, otherwise
8432 # it will coredump.
8433 lt_prog_compiler_pic='-fPIC -shared'
8434 ;;
8435
brynercb91a2f2006-08-25 21:14:45 +00008436 sysv4*MP*)
8437 if test -d /usr/nec; then
8438 lt_prog_compiler_pic=-Kconform_pic
8439 fi
8440 ;;
8441
brynercb91a2f2006-08-25 21:14:45 +00008442 *)
8443 lt_prog_compiler_pic='-fPIC'
8444 ;;
8445 esac
8446 else
8447 # PORTME Check for flag to pass linker flags through the system compiler.
8448 case $host_os in
8449 aix*)
8450 lt_prog_compiler_wl='-Wl,'
8451 if test "$host_cpu" = ia64; then
8452 # AIX 5 now supports IA64 processor
8453 lt_prog_compiler_static='-Bstatic'
8454 else
8455 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8456 fi
8457 ;;
8458
jimblandy92b1f832009-12-23 22:23:49 +00008459 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008460 # This hack is so that the source file can tell whether it is being
8461 # built for inclusion in a dll (and should export symbols for example).
8462 lt_prog_compiler_pic='-DDLL_EXPORT'
8463 ;;
8464
8465 hpux9* | hpux10* | hpux11*)
8466 lt_prog_compiler_wl='-Wl,'
8467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8468 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00008469 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008470 hppa*64*|ia64*)
8471 # +Z the default
8472 ;;
8473 *)
8474 lt_prog_compiler_pic='+Z'
8475 ;;
8476 esac
8477 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8478 lt_prog_compiler_static='${wl}-a ${wl}archive'
8479 ;;
8480
8481 irix5* | irix6* | nonstopux*)
8482 lt_prog_compiler_wl='-Wl,'
8483 # PIC (with -KPIC) is the default.
8484 lt_prog_compiler_static='-non_shared'
8485 ;;
8486
ted.mielczarekb2236272010-04-08 23:06:23 +00008487 linux* | k*bsd*-gnu | kopensolaris*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008488 case $cc_basename in
jimblandy92b1f832009-12-23 22:23:49 +00008489 # old Intel for x86_64 which still supported -KPIC.
8490 ecc*)
brynercb91a2f2006-08-25 21:14:45 +00008491 lt_prog_compiler_wl='-Wl,'
8492 lt_prog_compiler_pic='-KPIC'
8493 lt_prog_compiler_static='-static'
8494 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008495 # icc used to be incompatible with GCC.
8496 # ICC 10 doesn't accept -KPIC any more.
8497 icc* | ifort*)
8498 lt_prog_compiler_wl='-Wl,'
8499 lt_prog_compiler_pic='-fPIC'
8500 lt_prog_compiler_static='-static'
8501 ;;
8502 # Lahey Fortran 8.1.
8503 lf95*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='--shared'
8506 lt_prog_compiler_static='--static'
8507 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008508 pgcc* | pgf77* | pgf90* | pgf95*)
8509 # Portland Group compilers (*not* the Pentium gcc compiler,
8510 # which looks to be a dead project)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-fpic'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
brynercb91a2f2006-08-25 21:14:45 +00008515 ccc*)
8516 lt_prog_compiler_wl='-Wl,'
8517 # All Alpha code is PIC.
8518 lt_prog_compiler_static='-non_shared'
8519 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008520 xl*)
8521 # IBM XL C 8.0/Fortran 10.1 on PPC
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-qpic'
8524 lt_prog_compiler_static='-qstaticlink'
8525 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008526 *)
jimblandy92b1f832009-12-23 22:23:49 +00008527 case `$CC -V 2>&1 | sed 5q` in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008528 *Sun\ C*)
8529 # Sun C 5.9
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl='-Wl,'
8533 ;;
8534 *Sun\ F*)
8535 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 lt_prog_compiler_wl=''
8539 ;;
8540 esac
8541 ;;
brynercb91a2f2006-08-25 21:14:45 +00008542 esac
8543 ;;
8544
jimblandy92b1f832009-12-23 22:23:49 +00008545 newsos6)
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-Bstatic'
8548 ;;
8549
8550 *nto* | *qnx*)
8551 # QNX uses GNU C++, but need to define -shared option too, otherwise
8552 # it will coredump.
8553 lt_prog_compiler_pic='-fPIC -shared'
8554 ;;
8555
brynercb91a2f2006-08-25 21:14:45 +00008556 osf3* | osf4* | osf5*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # All OSF/1 code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8560 ;;
8561
ted.mielczarek1adb1842009-12-21 13:12:20 +00008562 rdos*)
8563 lt_prog_compiler_static='-non_shared'
8564 ;;
8565
brynercb91a2f2006-08-25 21:14:45 +00008566 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008567 lt_prog_compiler_pic='-KPIC'
8568 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00008569 case $cc_basename in
8570 f77* | f90* | f95*)
8571 lt_prog_compiler_wl='-Qoption ld ';;
8572 *)
8573 lt_prog_compiler_wl='-Wl,';;
8574 esac
brynercb91a2f2006-08-25 21:14:45 +00008575 ;;
8576
8577 sunos4*)
8578 lt_prog_compiler_wl='-Qoption ld '
8579 lt_prog_compiler_pic='-PIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 ;;
8582
mmentovai8c2a4de2006-09-20 16:20:15 +00008583 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588
8589 sysv4*MP*)
8590 if test -d /usr/nec ;then
8591 lt_prog_compiler_pic='-Kconform_pic'
8592 lt_prog_compiler_static='-Bstatic'
8593 fi
8594 ;;
8595
mmentovai8c2a4de2006-09-20 16:20:15 +00008596 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-Bstatic'
8600 ;;
8601
8602 unicos*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_can_build_shared=no
8605 ;;
8606
brynercb91a2f2006-08-25 21:14:45 +00008607 uts4*)
8608 lt_prog_compiler_pic='-pic'
8609 lt_prog_compiler_static='-Bstatic'
8610 ;;
8611
8612 *)
8613 lt_prog_compiler_can_build_shared=no
8614 ;;
8615 esac
8616 fi
8617
jimblandy92b1f832009-12-23 22:23:49 +00008618case $host_os in
8619 # For platforms which do not support PIC, -DPIC is meaningless:
8620 *djgpp*)
8621 lt_prog_compiler_pic=
8622 ;;
8623 *)
8624 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8625 ;;
8626esac
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8628$as_echo "$lt_prog_compiler_pic" >&6; }
8629
8630
8631
8632
8633
brynercb91a2f2006-08-25 21:14:45 +00008634
8635#
8636# Check to make sure the PIC flag actually works.
8637#
8638if test -n "$lt_prog_compiler_pic"; then
jimblandy92b1f832009-12-23 22:23:49 +00008639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8640$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8641if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008643else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008644 lt_cv_prog_compiler_pic_works=no
jimblandy92b1f832009-12-23 22:23:49 +00008645 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008647 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8648 # Insert the option either (1) after the last *FLAGS variable, or
8649 # (2) before a word containing "conftest.", or (3) at the end.
8650 # Note that $ac_compile itself does not contain backslashes and begins
8651 # with a dollar sign (not a hyphen), so the echo should work correctly.
8652 # The option is referenced via a variable to avoid confusing sed.
8653 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8656 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008657 (eval echo "\"\$as_me:8657: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008658 (eval "$lt_compile" 2>conftest.err)
8659 ac_status=$?
8660 cat conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008661 echo "$as_me:8661: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008662 if (exit $ac_status) && test -s "$ac_outfile"; then
8663 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008664 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008665 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008668 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00008669 fi
8670 fi
jimblandy92b1f832009-12-23 22:23:49 +00008671 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008672
8673fi
jimblandy92b1f832009-12-23 22:23:49 +00008674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8675$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008676
ted.mielczarek1adb1842009-12-21 13:12:20 +00008677if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00008678 case $lt_prog_compiler_pic in
8679 "" | " "*) ;;
8680 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8681 esac
8682else
8683 lt_prog_compiler_pic=
8684 lt_prog_compiler_can_build_shared=no
8685fi
8686
8687fi
jimblandy92b1f832009-12-23 22:23:49 +00008688
8689
8690
8691
8692
brynercb91a2f2006-08-25 21:14:45 +00008693
mmentovai8c2a4de2006-09-20 16:20:15 +00008694#
8695# Check to make sure the static flag actually works.
8696#
8697wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +00008698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8699$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8700if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00008702else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008703 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008704 save_LDFLAGS="$LDFLAGS"
8705 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8708 # The linker can only warn and ignore the option if not recognized
8709 # So say no if there are warnings
8710 if test -s conftest.err; then
8711 # Append any errors to the config.log.
8712 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +00008713 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008716 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008717 fi
8718 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008719 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008720 fi
8721 fi
jimblandy92b1f832009-12-23 22:23:49 +00008722 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008723 LDFLAGS="$save_LDFLAGS"
8724
8725fi
jimblandy92b1f832009-12-23 22:23:49 +00008726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8727$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00008728
ted.mielczarek1adb1842009-12-21 13:12:20 +00008729if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008730 :
8731else
8732 lt_prog_compiler_static=
8733fi
8734
8735
jimblandy92b1f832009-12-23 22:23:49 +00008736
8737
8738
8739
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8742$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8743if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008745else
8746 lt_cv_prog_compiler_c_o=no
jimblandy92b1f832009-12-23 22:23:49 +00008747 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008748 mkdir conftest
8749 cd conftest
8750 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00008751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008752
8753 lt_compiler_flag="-o out/conftest2.$ac_objext"
8754 # Insert the option either (1) after the last *FLAGS variable, or
8755 # (2) before a word containing "conftest.", or (3) at the end.
8756 # Note that $ac_compile itself does not contain backslashes and begins
8757 # with a dollar sign (not a hyphen), so the echo should work correctly.
8758 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8761 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008762 (eval echo "\"\$as_me:8762: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008763 (eval "$lt_compile" 2>out/conftest.err)
8764 ac_status=$?
8765 cat out/conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008766 echo "$as_me:8766: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8768 then
8769 # The compiler can only warn and ignore the option if not recognized
8770 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +00008771 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008774 lt_cv_prog_compiler_c_o=yes
8775 fi
8776 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008777 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +00008778 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008779 # SGI C++ compiler will create directory out/ii_files/ for
8780 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +00008781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8782 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +00008783 cd ..
jimblandy92b1f832009-12-23 22:23:49 +00008784 $RM -r conftest
8785 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008786
8787fi
jimblandy92b1f832009-12-23 22:23:49 +00008788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8789$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8790
8791
8792
8793
8794
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8797$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8798if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800else
8801 lt_cv_prog_compiler_c_o=no
8802 $RM -r conftest 2>/dev/null
8803 mkdir conftest
8804 cd conftest
8805 mkdir out
8806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807
8808 lt_compiler_flag="-o out/conftest2.$ac_objext"
8809 # Insert the option either (1) after the last *FLAGS variable, or
8810 # (2) before a word containing "conftest.", or (3) at the end.
8811 # Note that $ac_compile itself does not contain backslashes and begins
8812 # with a dollar sign (not a hyphen), so the echo should work correctly.
8813 lt_compile=`echo "$ac_compile" | $SED \
8814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008817 (eval echo "\"\$as_me:8817: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00008818 (eval "$lt_compile" 2>out/conftest.err)
8819 ac_status=$?
8820 cat out/conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008821 echo "$as_me:8821: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +00008822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8823 then
8824 # The compiler can only warn and ignore the option if not recognized
8825 # So say no if there are warnings
8826 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8829 lt_cv_prog_compiler_c_o=yes
8830 fi
8831 fi
8832 chmod u+w . 2>&5
8833 $RM conftest*
8834 # SGI C++ compiler will create directory out/ii_files/ for
8835 # template instantiation
8836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8837 $RM out/* && rmdir out
8838 cd ..
8839 $RM -r conftest
8840 $RM conftest*
8841
8842fi
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8844$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8845
8846
brynercb91a2f2006-08-25 21:14:45 +00008847
8848
8849hard_links="nottested"
8850if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8851 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +00008852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8853$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008854 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +00008855 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8857 touch conftest.a
8858 ln conftest.a conftest.b 2>&5 || hard_links=no
8859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +00008860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8861$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008862 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +00008863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8864$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00008865 need_locks=warn
8866 fi
8867else
8868 need_locks=no
8869fi
8870
jimblandy92b1f832009-12-23 22:23:49 +00008871
8872
8873
8874
8875
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8877$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008878
8879 runpath_var=
8880 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00008881 always_export_symbols=no
brynercb91a2f2006-08-25 21:14:45 +00008882 archive_cmds=
8883 archive_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008884 compiler_needs_object=no
8885 enable_shared_with_static_runtimes=no
brynercb91a2f2006-08-25 21:14:45 +00008886 export_dynamic_flag_spec=
jimblandy92b1f832009-12-23 22:23:49 +00008887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8888 hardcode_automatic=no
8889 hardcode_direct=no
8890 hardcode_direct_absolute=no
brynercb91a2f2006-08-25 21:14:45 +00008891 hardcode_libdir_flag_spec=
8892 hardcode_libdir_flag_spec_ld=
8893 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00008894 hardcode_minus_L=no
8895 hardcode_shlibpath_var=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00008896 inherit_rpath=no
brynercb91a2f2006-08-25 21:14:45 +00008897 link_all_deplibs=unknown
brynercb91a2f2006-08-25 21:14:45 +00008898 module_cmds=
8899 module_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008900 old_archive_from_new_cmds=
8901 old_archive_from_expsyms_cmds=
8902 thread_safe_flag_spec=
8903 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008904 # include_expsyms should be a list of space-separated symbols to be *always*
8905 # included in the symbol list
8906 include_expsyms=
8907 # exclude_expsyms can be an extended regexp of symbols to exclude
8908 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8910 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008911 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00008912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8913 # platforms (ab)use it in PIC code, but their linkers get confused if
8914 # the symbol is explicitly referenced. Since portable code cannot
8915 # rely on this symbol name, it's probably fine to never include it in
8916 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008917 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00008918 extract_expsyms_cmds=
8919
8920 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +00008921 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008922 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8923 # When not using gcc, we currently assume that we are using
8924 # Microsoft Visual C++.
8925 if test "$GCC" != yes; then
8926 with_gnu_ld=no
8927 fi
8928 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008929 interix*)
8930 # we just hope/assume this is gcc and not c89 (= MSVC++)
8931 with_gnu_ld=yes
8932 ;;
brynercb91a2f2006-08-25 21:14:45 +00008933 openbsd*)
8934 with_gnu_ld=no
8935 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +00008936 linux* | k*bsd*-gnu)
8937 link_all_deplibs=no
8938 ;;
brynercb91a2f2006-08-25 21:14:45 +00008939 esac
8940
8941 ld_shlibs=yes
8942 if test "$with_gnu_ld" = yes; then
8943 # If archive_cmds runs LD, not CC, wlarc should be empty
8944 wlarc='${wl}'
8945
mmentovai8c2a4de2006-09-20 16:20:15 +00008946 # Set some defaults for GNU ld with shared library support. These
8947 # are reset later if shared libraries are not supported. Putting them
8948 # here allows them to be overridden if necessary.
8949 runpath_var=LD_RUN_PATH
jimblandy92b1f832009-12-23 22:23:49 +00008950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00008951 export_dynamic_flag_spec='${wl}--export-dynamic'
8952 # ancient GNU ld didn't support --whole-archive et. al.
jimblandy92b1f832009-12-23 22:23:49 +00008953 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8955 else
8956 whole_archive_flag_spec=
mmentovai8c2a4de2006-09-20 16:20:15 +00008957 fi
8958 supports_anon_versioning=no
jimblandy92b1f832009-12-23 22:23:49 +00008959 case `$LD -v 2>&1` in
ted.mielczarekb2236272010-04-08 23:06:23 +00008960 *GNU\ gold*) supports_anon_versioning=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8964 *\ 2.11.*) ;; # other 2.11 versions
8965 *) supports_anon_versioning=yes ;;
8966 esac
8967
brynercb91a2f2006-08-25 21:14:45 +00008968 # See if GNU ld supports shared libraries.
8969 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008970 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008971 # On AIX/PPC, the GNU linker is very broken
8972 if test "$host_cpu" != ia64; then
8973 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00008974 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008975
8976*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8977*** to be unable to reliably create shared libraries on AIX.
8978*** Therefore, libtool is disabling shared libraries support. If you
8979*** really care for shared libraries, you may want to modify your PATH
8980*** so that a non-GNU linker is found, and then restart.
8981
jimblandy92b1f832009-12-23 22:23:49 +00008982_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008983 fi
8984 ;;
8985
8986 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008987 case $host_cpu in
8988 powerpc)
8989 # see comment about AmigaOS4 .so support
8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991 archive_expsym_cmds=''
8992 ;;
8993 m68k)
8994 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)'
8995 hardcode_libdir_flag_spec='-L$libdir'
8996 hardcode_minus_L=yes
8997 ;;
8998 esac
brynercb91a2f2006-08-25 21:14:45 +00008999 ;;
9000
9001 beos*)
jimblandy92b1f832009-12-23 22:23:49 +00009002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009003 allow_undefined_flag=unsupported
9004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9005 # support --undefined. This deserves some investigation. FIXME
9006 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 else
9008 ld_shlibs=no
9009 fi
9010 ;;
9011
jimblandy92b1f832009-12-23 22:23:49 +00009012 cygwin* | mingw* | pw32* | cegcc*)
9013 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
brynercb91a2f2006-08-25 21:14:45 +00009014 # as there is no search path for DLLs.
9015 hardcode_libdir_flag_spec='-L$libdir'
9016 allow_undefined_flag=unsupported
9017 always_export_symbols=no
9018 enable_shared_with_static_runtimes=yes
jimblandy92b1f832009-12-23 22:23:49 +00009019 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 +00009020
jimblandy92b1f832009-12-23 22:23:49 +00009021 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009022 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 +00009023 # If the export-symbols file already is a .def file (1st line
9024 # is EXPORTS), use it as is; otherwise, prepend...
9025 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9026 cp $export_symbols $output_objdir/$soname.def;
9027 else
9028 echo EXPORTS > $output_objdir/$soname.def;
9029 cat $export_symbols >> $output_objdir/$soname.def;
9030 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00009031 $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 +00009032 else
9033 ld_shlibs=no
9034 fi
9035 ;;
9036
ted.mielczarek1adb1842009-12-21 13:12:20 +00009037 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009038 hardcode_direct=no
9039 hardcode_shlibpath_var=no
9040 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9041 export_dynamic_flag_spec='${wl}-E'
9042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9043 # Instead, shared libraries are loaded at an image base (0x10000000 by
9044 # default) and relocated if they conflict, which is a slow very memory
9045 # consuming and fragmenting process. To avoid this, we pick a random,
9046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9047 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9049 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'
9050 ;;
9051
ted.mielczarekb2236272010-04-08 23:06:23 +00009052 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009053 tmp_diet=no
9054 if test "$host_os" = linux-dietlibc; then
9055 case $cc_basename in
9056 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9057 esac
9058 fi
9059 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9060 && test "$tmp_diet" = no
9061 then
mmentovai8c2a4de2006-09-20 16:20:15 +00009062 tmp_addflag=
jimblandy92b1f832009-12-23 22:23:49 +00009063 tmp_sharedflag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009064 case $cc_basename,$host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +00009065 pgcc*) # Portland Group C compiler
9066 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 +00009067 tmp_addflag=' $pic_flag'
9068 ;;
9069 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
jimblandy92b1f832009-12-23 22:23:49 +00009070 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 +00009071 tmp_addflag=' $pic_flag -Mnomain' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
mmentovai8c2a4de2006-09-20 16:20:15 +00009073 tmp_addflag=' -i_dynamic' ;;
9074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9075 tmp_addflag=' -i_dynamic -nofor_main' ;;
9076 ifc* | ifort*) # Intel Fortran compiler
9077 tmp_addflag=' -nofor_main' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009078 lf95*) # Lahey Fortran 8.1
9079 whole_archive_flag_spec=
9080 tmp_sharedflag='--shared' ;;
9081 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9082 tmp_sharedflag='-qmkshrobj'
9083 tmp_addflag= ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009084 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00009085 case `$CC -V 2>&1 | sed 5q` in
9086 *Sun\ C*) # Sun C 5.9
jimblandy92b1f832009-12-23 22:23:49 +00009087 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'
9088 compiler_needs_object=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00009089 tmp_sharedflag='-G' ;;
9090 *Sun\ F*) # Sun Fortran 8.3
9091 tmp_sharedflag='-G' ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00009092 esac
9093 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009094
jimblandy92b1f832009-12-23 22:23:49 +00009095 if test "x$supports_anon_versioning" = xyes; then
9096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9098 echo "local: *; };" >> $output_objdir/$libname.ver~
9099 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9100 fi
9101
9102 case $cc_basename in
9103 xlf*)
9104 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9105 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9106 hardcode_libdir_flag_spec=
9107 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9108 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9109 if test "x$supports_anon_versioning" = xyes; then
9110 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9112 echo "local: *; };" >> $output_objdir/$libname.ver~
9113 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9114 fi
9115 ;;
9116 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009117 else
jimblandy92b1f832009-12-23 22:23:49 +00009118 ld_shlibs=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009119 fi
9120 ;;
9121
ted.mielczarekb2236272010-04-08 23:06:23 +00009122 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009124 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9125 wlarc=
9126 else
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9129 fi
9130 ;;
9131
mmentovai8c2a4de2006-09-20 16:20:15 +00009132 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009133 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009134 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00009135 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00009136
9137*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9138*** create shared libraries on Solaris systems. Therefore, libtool
9139*** is disabling shared libraries support. We urge you to upgrade GNU
9140*** binutils to release 2.9.1 or newer. Another option is to modify
9141*** your PATH or compiler configuration so that the native linker is
9142*** used, and then restart.
9143
jimblandy92b1f832009-12-23 22:23:49 +00009144_LT_EOF
9145 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9148 else
9149 ld_shlibs=no
9150 fi
9151 ;;
9152
mmentovai8c2a4de2006-09-20 16:20:15 +00009153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9154 case `$LD -v 2>&1` in
9155 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9156 ld_shlibs=no
9157 cat <<_LT_EOF 1>&2
9158
9159*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9160*** reliably create shared libraries on SCO systems. Therefore, libtool
9161*** is disabling shared libraries support. We urge you to upgrade GNU
9162*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9163*** your PATH or compiler configuration so that the native linker is
9164*** used, and then restart.
9165
9166_LT_EOF
9167 ;;
9168 *)
jimblandy92b1f832009-12-23 22:23:49 +00009169 # For security reasons, it is highly recommended that you always
9170 # use absolute paths for naming shared libraries, and exclude the
9171 # DT_RUNPATH tag from executables and libraries. But doing so
9172 # requires that you compile everything twice, which is a pain.
9173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176 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 +00009177 else
9178 ld_shlibs=no
9179 fi
9180 ;;
9181 esac
9182 ;;
9183
brynercb91a2f2006-08-25 21:14:45 +00009184 sunos4*)
9185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9186 wlarc=
9187 hardcode_direct=yes
9188 hardcode_shlibpath_var=no
9189 ;;
9190
brynercb91a2f2006-08-25 21:14:45 +00009191 *)
jimblandy92b1f832009-12-23 22:23:49 +00009192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9195 else
9196 ld_shlibs=no
9197 fi
9198 ;;
9199 esac
9200
mmentovai8c2a4de2006-09-20 16:20:15 +00009201 if test "$ld_shlibs" = no; then
9202 runpath_var=
9203 hardcode_libdir_flag_spec=
9204 export_dynamic_flag_spec=
9205 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00009206 fi
9207 else
9208 # PORTME fill in a description of your system's linker (not GNU ld)
9209 case $host_os in
9210 aix3*)
9211 allow_undefined_flag=unsupported
9212 always_export_symbols=yes
9213 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'
9214 # Note: this linker hardcodes the directories in LIBPATH if there
9215 # are no directories specified by -L.
9216 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009217 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00009218 # Neither direct hardcoding nor static linking is supported with a
9219 # broken collect2.
9220 hardcode_direct=unsupported
9221 fi
9222 ;;
9223
ted.mielczarek1adb1842009-12-21 13:12:20 +00009224 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009225 if test "$host_cpu" = ia64; then
9226 # On IA64, the linker does run time linking by default, so we don't
9227 # have to do anything special.
9228 aix_use_runtimelinking=no
9229 exp_sym_flag='-Bexport'
9230 no_entry_flag=""
9231 else
9232 # If we're using GNU nm, then we don't want the "-C" option.
9233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +00009234 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9235 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 +00009236 else
jimblandy92b1f832009-12-23 22:23:49 +00009237 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 +00009238 fi
9239 aix_use_runtimelinking=no
9240
9241 # Test if we are trying to use run time linking or normal
9242 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9243 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009244 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009245 for ld_flag in $LDFLAGS; do
jimblandy92b1f832009-12-23 22:23:49 +00009246 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9247 aix_use_runtimelinking=yes
9248 break
9249 fi
brynercb91a2f2006-08-25 21:14:45 +00009250 done
mmentovai8c2a4de2006-09-20 16:20:15 +00009251 ;;
brynercb91a2f2006-08-25 21:14:45 +00009252 esac
9253
9254 exp_sym_flag='-bexport'
9255 no_entry_flag='-bnoentry'
9256 fi
9257
9258 # When large executables or shared objects are built, AIX ld can
9259 # have problems creating the table of contents. If linking a library
9260 # or program results in "error TOC overflow" add -mminimal-toc to
9261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9263
9264 archive_cmds=''
9265 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009266 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009267 hardcode_libdir_separator=':'
9268 link_all_deplibs=yes
jimblandy92b1f832009-12-23 22:23:49 +00009269 file_list_spec='${wl}-f,'
brynercb91a2f2006-08-25 21:14:45 +00009270
9271 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009272 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009273 # We only want to do this on AIX 4.2 and lower, the check
9274 # below for broken collect2 doesn't work under 4.3+
9275 collect2name=`${CC} -print-prog-name=collect2`
jimblandy92b1f832009-12-23 22:23:49 +00009276 if test -f "$collect2name" &&
9277 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009278 then
jimblandy92b1f832009-12-23 22:23:49 +00009279 # We have reworked collect2
9280 :
brynercb91a2f2006-08-25 21:14:45 +00009281 else
jimblandy92b1f832009-12-23 22:23:49 +00009282 # We have old collect2
9283 hardcode_direct=unsupported
9284 # It fails to find uninstalled libraries when the uninstalled
9285 # path is not listed in the libpath. Setting hardcode_minus_L
9286 # to unsupported forces relinking
9287 hardcode_minus_L=yes
9288 hardcode_libdir_flag_spec='-L$libdir'
9289 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00009290 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009291 ;;
brynercb91a2f2006-08-25 21:14:45 +00009292 esac
9293 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009294 if test "$aix_use_runtimelinking" = yes; then
9295 shared_flag="$shared_flag "'${wl}-G'
9296 fi
ted.mielczarekb2236272010-04-08 23:06:23 +00009297 link_all_deplibs=no
brynercb91a2f2006-08-25 21:14:45 +00009298 else
9299 # not using gcc
9300 if test "$host_cpu" = ia64; then
jimblandy92b1f832009-12-23 22:23:49 +00009301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9302 # chokes on -Wl,-G. The following line is correct:
brynercb91a2f2006-08-25 21:14:45 +00009303 shared_flag='-G'
9304 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009305 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00009306 shared_flag='${wl}-G'
9307 else
9308 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00009309 fi
brynercb91a2f2006-08-25 21:14:45 +00009310 fi
9311 fi
9312
jimblandy92b1f832009-12-23 22:23:49 +00009313 export_dynamic_flag_spec='${wl}-bexpall'
brynercb91a2f2006-08-25 21:14:45 +00009314 # It seems that -bexpall does not export symbols beginning with
9315 # underscore (_), so it is better to generate a list of symbols to export.
9316 always_export_symbols=yes
9317 if test "$aix_use_runtimelinking" = yes; then
9318 # Warning - without using the other runtime loading flags (-brtl),
9319 # -berok will link without error, but may produce a broken library.
9320 allow_undefined_flag='-berok'
jimblandy92b1f832009-12-23 22:23:49 +00009321 # Determine the default libpath from the value encoded in an
9322 # empty executable.
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009324/* end confdefs.h. */
9325
9326int
9327main ()
9328{
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009334if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009335
ted.mielczarek1adb1842009-12-21 13:12:20 +00009336lt_aix_libpath_sed='
9337 /Import File Strings/,/^$/ {
9338 /^0/ {
9339 s/^0 *\(.*\)$/\1/
9340 p
9341 }
9342 }'
9343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009344# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009345if test -z "$aix_libpath"; then
9346 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9347fi
brynercb91a2f2006-08-25 21:14:45 +00009348fi
jimblandy92b1f832009-12-23 22:23:49 +00009349rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009351if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9352
jimblandy92b1f832009-12-23 22:23:49 +00009353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9354 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"
9355 else
brynercb91a2f2006-08-25 21:14:45 +00009356 if test "$host_cpu" = ia64; then
9357 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9358 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00009359 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 +00009360 else
jimblandy92b1f832009-12-23 22:23:49 +00009361 # Determine the default libpath from the value encoded in an
9362 # empty executable.
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009364/* end confdefs.h. */
9365
9366int
9367main ()
9368{
9369
9370 ;
9371 return 0;
9372}
9373_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009374if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009375
ted.mielczarek1adb1842009-12-21 13:12:20 +00009376lt_aix_libpath_sed='
9377 /Import File Strings/,/^$/ {
9378 /^0/ {
9379 s/^0 *\(.*\)$/\1/
9380 p
9381 }
9382 }'
9383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009384# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009385if test -z "$aix_libpath"; then
9386 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9387fi
brynercb91a2f2006-08-25 21:14:45 +00009388fi
jimblandy92b1f832009-12-23 22:23:49 +00009389rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009391if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9392
9393 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9394 # Warning - without using the other run time loading flags,
9395 # -berok will link without error, but may produce a broken library.
9396 no_undefined_flag=' ${wl}-bernotok'
9397 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00009398 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00009399 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00009400 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009401 # This is similar to how AIX traditionally builds its shared libraries.
9402 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 +00009403 fi
9404 fi
9405 ;;
9406
9407 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00009408 case $host_cpu in
9409 powerpc)
9410 # see comment about AmigaOS4 .so support
9411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412 archive_expsym_cmds=''
9413 ;;
9414 m68k)
9415 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)'
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_minus_L=yes
9418 ;;
9419 esac
brynercb91a2f2006-08-25 21:14:45 +00009420 ;;
9421
mmentovai8c2a4de2006-09-20 16:20:15 +00009422 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009423 export_dynamic_flag_spec=-rdynamic
9424 ;;
9425
jimblandy92b1f832009-12-23 22:23:49 +00009426 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00009427 # When not using gcc, we currently assume that we are using
9428 # Microsoft Visual C++.
9429 # hardcode_libdir_flag_spec is actually meaningless, as there is
9430 # no search path for DLLs.
9431 hardcode_libdir_flag_spec=' '
9432 allow_undefined_flag=unsupported
9433 # Tell ltmain to make .lib files, not .a files.
9434 libext=lib
9435 # Tell ltmain to make .dll files, not .so files.
9436 shrext_cmds=".dll"
9437 # FIXME: Setting linknames here is a bad hack.
jimblandy92b1f832009-12-23 22:23:49 +00009438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
brynercb91a2f2006-08-25 21:14:45 +00009439 # The linker will automatically build a .lib file if we build a DLL.
jimblandy92b1f832009-12-23 22:23:49 +00009440 old_archive_from_new_cmds='true'
brynercb91a2f2006-08-25 21:14:45 +00009441 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009442 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009443 fix_srcfile_path='`cygpath -w "$srcfile"`'
9444 enable_shared_with_static_runtimes=yes
9445 ;;
9446
9447 darwin* | rhapsody*)
jimblandy92b1f832009-12-23 22:23:49 +00009448
9449
9450 archive_cmds_need_lc=no
9451 hardcode_direct=no
9452 hardcode_automatic=yes
9453 hardcode_shlibpath_var=unsupported
9454 whole_archive_flag_spec=''
9455 link_all_deplibs=yes
9456 allow_undefined_flag="$_lt_dar_allow_undefined"
9457 case $cc_basename in
9458 ifort*) _lt_dar_can_shared=yes ;;
9459 *) _lt_dar_can_shared=$GCC ;;
9460 esac
9461 if test "$_lt_dar_can_shared" = "yes"; then
9462 output_verbose_link_cmd=echo
9463 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9464 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9465 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}"
9466 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}"
9467
9468 else
9469 ld_shlibs=no
9470 fi
9471
brynercb91a2f2006-08-25 21:14:45 +00009472 ;;
9473
9474 dgux*)
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_libdir_flag_spec='-L$libdir'
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 freebsd1*)
9481 ld_shlibs=no
9482 ;;
9483
9484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9485 # support. Future versions do this automatically, but an explicit c++rt0.o
9486 # does not break anything, and helps significantly (at the cost of a little
9487 # extra space).
9488 freebsd2.2*)
9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9490 hardcode_libdir_flag_spec='-R$libdir'
9491 hardcode_direct=yes
9492 hardcode_shlibpath_var=no
9493 ;;
9494
9495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9496 freebsd2*)
9497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9498 hardcode_direct=yes
9499 hardcode_minus_L=yes
9500 hardcode_shlibpath_var=no
9501 ;;
9502
9503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009504 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00009505 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9506 hardcode_libdir_flag_spec='-R$libdir'
9507 hardcode_direct=yes
9508 hardcode_shlibpath_var=no
9509 ;;
9510
9511 hpux9*)
9512 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009513 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 +00009514 else
jimblandy92b1f832009-12-23 22:23:49 +00009515 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 +00009516 fi
9517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519 hardcode_direct=yes
9520
9521 # hardcode_minus_L: Not really in the search PATH,
9522 # but as the default location of the library.
9523 hardcode_minus_L=yes
9524 export_dynamic_flag_spec='${wl}-E'
9525 ;;
9526
mmentovai8c2a4de2006-09-20 16:20:15 +00009527 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00009528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009529 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9530 else
9531 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9532 fi
9533 if test "$with_gnu_ld" = no; then
9534 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jimblandy92b1f832009-12-23 22:23:49 +00009535 hardcode_libdir_flag_spec_ld='+b $libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009536 hardcode_libdir_separator=:
mmentovai8c2a4de2006-09-20 16:20:15 +00009537 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009538 hardcode_direct_absolute=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009539 export_dynamic_flag_spec='${wl}-E'
mmentovai8c2a4de2006-09-20 16:20:15 +00009540 # hardcode_minus_L: Not really in the search PATH,
9541 # but as the default location of the library.
9542 hardcode_minus_L=yes
9543 fi
9544 ;;
9545
9546 hpux11*)
9547 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9548 case $host_cpu in
9549 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009550 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009552 ia64*)
jimblandy92b1f832009-12-23 22:23:49 +00009553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009554 ;;
brynercb91a2f2006-08-25 21:14:45 +00009555 *)
9556 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9557 ;;
9558 esac
9559 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009560 case $host_cpu in
9561 hppa*64*)
9562 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 ;;
9564 ia64*)
9565 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009566 ;;
9567 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009568 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 +00009569 ;;
9570 esac
9571 fi
9572 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009573 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9574 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00009575
mmentovai8c2a4de2006-09-20 16:20:15 +00009576 case $host_cpu in
9577 hppa*64*|ia64*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009578 hardcode_direct=no
9579 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00009580 ;;
brynercb91a2f2006-08-25 21:14:45 +00009581 *)
brynercb91a2f2006-08-25 21:14:45 +00009582 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009583 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009584 export_dynamic_flag_spec='${wl}-E'
9585
9586 # hardcode_minus_L: Not really in the search PATH,
9587 # but as the default location of the library.
9588 hardcode_minus_L=yes
9589 ;;
9590 esac
9591 fi
9592 ;;
9593
9594 irix5* | irix6* | nonstopux*)
9595 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009596 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'
9597 # Try to use the -exported_symbol ld option, if it does not
9598 # work, assume that -exports_file does not work either and
9599 # implicitly export all symbols.
9600 save_LDFLAGS="$LDFLAGS"
9601 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h. */
9604int foo(void) {}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"; then :
9607 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'
9608
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 LDFLAGS="$save_LDFLAGS"
brynercb91a2f2006-08-25 21:14:45 +00009613 else
jimblandy92b1f832009-12-23 22:23:49 +00009614 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'
9615 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 +00009616 fi
jimblandy92b1f832009-12-23 22:23:49 +00009617 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator=:
jimblandy92b1f832009-12-23 22:23:49 +00009620 inherit_rpath=yes
brynercb91a2f2006-08-25 21:14:45 +00009621 link_all_deplibs=yes
9622 ;;
9623
ted.mielczarekb2236272010-04-08 23:06:23 +00009624 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9627 else
9628 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9629 fi
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_direct=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 newsos6)
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_direct=yes
9638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639 hardcode_libdir_separator=:
9640 hardcode_shlibpath_var=no
9641 ;;
9642
jimblandy92b1f832009-12-23 22:23:49 +00009643 *nto* | *qnx*)
9644 ;;
9645
brynercb91a2f2006-08-25 21:14:45 +00009646 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009647 if test -f /usr/libexec/ld.so; then
9648 hardcode_direct=yes
9649 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009650 hardcode_direct_absolute=yes
9651 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 +00009652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9653 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9655 export_dynamic_flag_spec='${wl}-E'
9656 else
9657 case $host_os in
9658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_libdir_flag_spec='-R$libdir'
9661 ;;
9662 *)
9663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9665 ;;
9666 esac
jimblandy92b1f832009-12-23 22:23:49 +00009667 fi
brynercb91a2f2006-08-25 21:14:45 +00009668 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00009669 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00009670 fi
9671 ;;
9672
9673 os2*)
9674 hardcode_libdir_flag_spec='-L$libdir'
9675 hardcode_minus_L=yes
9676 allow_undefined_flag=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00009677 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'
9678 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
brynercb91a2f2006-08-25 21:14:45 +00009679 ;;
9680
9681 osf3*)
9682 if test "$GCC" = yes; then
9683 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009684 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 +00009685 else
9686 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009687 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 +00009688 fi
jimblandy92b1f832009-12-23 22:23:49 +00009689 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9691 hardcode_libdir_separator=:
9692 ;;
9693
9694 osf4* | osf5*) # as osf3* with the addition of -msym flag
9695 if test "$GCC" = yes; then
9696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009697 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 +00009698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9699 else
9700 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009701 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'
9702 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~
9703 $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 +00009704
9705 # Both c and cxx compiler support -rpath directly
9706 hardcode_libdir_flag_spec='-rpath $libdir'
9707 fi
jimblandy92b1f832009-12-23 22:23:49 +00009708 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009709 hardcode_libdir_separator=:
9710 ;;
9711
brynercb91a2f2006-08-25 21:14:45 +00009712 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009713 no_undefined_flag=' -z defs'
brynercb91a2f2006-08-25 21:14:45 +00009714 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009715 wlarc='${wl}'
jimblandy92b1f832009-12-23 22:23:49 +00009716 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9718 $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 +00009719 else
jimblandy92b1f832009-12-23 22:23:49 +00009720 case `$CC -V 2>&1` in
9721 *"Compilers 5.0"*)
9722 wlarc=''
9723 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9726 ;;
9727 *)
9728 wlarc='${wl}'
9729 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9732 ;;
9733 esac
brynercb91a2f2006-08-25 21:14:45 +00009734 fi
9735 hardcode_libdir_flag_spec='-R$libdir'
9736 hardcode_shlibpath_var=no
9737 case $host_os in
9738 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009739 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009740 # The compiler driver will combine and reorder linker options,
9741 # but understands `-z linker_flag'. GCC discards it without `$wl',
9742 # but is careful enough not to reorder.
jimblandy92b1f832009-12-23 22:23:49 +00009743 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009744 if test "$GCC" = yes; then
9745 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9746 else
9747 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9748 fi
9749 ;;
brynercb91a2f2006-08-25 21:14:45 +00009750 esac
9751 link_all_deplibs=yes
9752 ;;
9753
9754 sunos4*)
9755 if test "x$host_vendor" = xsequent; then
9756 # Use $CC to link under sequent, because it throws in some extra .o
9757 # files that make .init and .fini sections work.
9758 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9759 else
9760 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9761 fi
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_direct=yes
9764 hardcode_minus_L=yes
9765 hardcode_shlibpath_var=no
9766 ;;
9767
9768 sysv4)
9769 case $host_vendor in
9770 sni)
9771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes # is this really true???
9773 ;;
9774 siemens)
9775 ## LD is ld it makes a PLAMLIB
9776 ## CC just makes a GrossModule.
9777 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9778 reload_cmds='$CC -r -o $output$reload_objs'
9779 hardcode_direct=no
9780 ;;
9781 motorola)
9782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9784 ;;
9785 esac
9786 runpath_var='LD_RUN_PATH'
9787 hardcode_shlibpath_var=no
9788 ;;
9789
9790 sysv4.3*)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_shlibpath_var=no
9793 export_dynamic_flag_spec='-Bexport'
9794 ;;
9795
9796 sysv4*MP*)
9797 if test -d /usr/nec; then
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_shlibpath_var=no
9800 runpath_var=LD_RUN_PATH
9801 hardcode_runpath_var=yes
9802 ld_shlibs=yes
9803 fi
9804 ;;
9805
ted.mielczarek1adb1842009-12-21 13:12:20 +00009806 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009807 no_undefined_flag='${wl}-z,text'
9808 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00009809 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009810 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00009811
mmentovai3261e8b2006-09-06 02:56:44 +00009812 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009815 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009818 fi
brynerd5e66382006-09-08 02:35:53 +00009819 ;;
9820
mmentovai8c2a4de2006-09-20 16:20:15 +00009821 sysv5* | sco3.2v5* | sco5v6*)
9822 # Note: We can NOT use -z defs as we might desire, because we do not
9823 # link with -lc, and that would cause any symbols used from libc to
9824 # always be unresolved, which means just about no library would
9825 # ever link correctly. If we're not using GNU ld we use -z text
9826 # though, which does catch some bad symbols but isn't as heavy-handed
9827 # as -z defs.
9828 no_undefined_flag='${wl}-z,text'
9829 allow_undefined_flag='${wl}-z,nodefs'
9830 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00009831 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009832 hardcode_libdir_flag_spec='${wl}-R,$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009833 hardcode_libdir_separator=':'
9834 link_all_deplibs=yes
9835 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00009836 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00009837
9838 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009841 else
jimblandy92b1f832009-12-23 22:23:49 +00009842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009844 fi
brynercb91a2f2006-08-25 21:14:45 +00009845 ;;
9846
9847 uts4*)
9848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_shlibpath_var=no
9851 ;;
9852
9853 *)
9854 ld_shlibs=no
9855 ;;
9856 esac
jimblandy92b1f832009-12-23 22:23:49 +00009857
9858 if test x$host_vendor = xsni; then
9859 case $host in
9860 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9861 export_dynamic_flag_spec='${wl}-Blargedynsym'
9862 ;;
9863 esac
9864 fi
brynercb91a2f2006-08-25 21:14:45 +00009865 fi
9866
jimblandy92b1f832009-12-23 22:23:49 +00009867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9868$as_echo "$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009869test "$ld_shlibs" = no && can_build_shared=no
9870
jimblandy92b1f832009-12-23 22:23:49 +00009871with_gnu_ld=$with_gnu_ld
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
brynercb91a2f2006-08-25 21:14:45 +00009887#
9888# Do we need to explicitly link libc?
9889#
9890case "x$archive_cmds_need_lc" in
9891x|xyes)
9892 # Assume -lc should be added
9893 archive_cmds_need_lc=yes
9894
9895 if test "$enable_shared" = yes && test "$GCC" = yes; then
9896 case $archive_cmds in
9897 *'~'*)
9898 # FIXME: we may have to deal with multi-command sequences.
9899 ;;
9900 '$CC '*)
9901 # Test whether the compiler implicitly links with -lc since on some
9902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9903 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +00009904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9905$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9906 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00009907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009908
jimblandy92b1f832009-12-23 22:23:49 +00009909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00009910 (eval $ac_compile) 2>&5
9911 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9913 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00009914 soname=conftest
9915 lib=conftest
9916 libobjs=conftest.$ac_objext
9917 deplibs=
9918 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00009919 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00009920 compiler_flags=-v
9921 linker_flags=-v
9922 verstring=
9923 output_objdir=.
9924 libname=conftest
9925 lt_save_allow_undefined_flag=$allow_undefined_flag
9926 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00009927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9928 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009929 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +00009932 then
9933 archive_cmds_need_lc=no
9934 else
9935 archive_cmds_need_lc=yes
9936 fi
9937 allow_undefined_flag=$lt_save_allow_undefined_flag
9938 else
9939 cat conftest.err 1>&5
9940 fi
jimblandy92b1f832009-12-23 22:23:49 +00009941 $RM conftest*
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9943$as_echo "$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009944 ;;
9945 esac
9946 fi
9947 ;;
9948esac
9949
jimblandy92b1f832009-12-23 22:23:49 +00009950
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
10100
10101
10102
10103
10104
10105
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10107$as_echo_n "checking dynamic linker characteristics... " >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000010108
brynercb91a2f2006-08-25 21:14:45 +000010109if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010110 case $host_os in
10111 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10112 *) lt_awk_arg="/^libraries:/" ;;
10113 esac
10114 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 +000010115 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +000010116 # if the path contains ";" then we assume it to be the separator
10117 # otherwise default to the standard path separator (i.e. ":") - it is
10118 # assumed that no part of a normal pathname contains ";" but that should
10119 # okay in the real world where ";" in dirpaths is itself problematic.
jimblandy92b1f832009-12-23 22:23:49 +000010120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010121 else
jimblandy92b1f832009-12-23 22:23:49 +000010122 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010123 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000010124 # Ok, now we have the path, separated by spaces, we can step through it
10125 # and add multilib dir if necessary.
10126 lt_tmp_lt_search_path_spec=
10127 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10128 for lt_sys_path in $lt_search_path_spec; do
10129 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10131 else
10132 test -d "$lt_sys_path" && \
10133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10134 fi
10135 done
jimblandy92b1f832009-12-23 22:23:49 +000010136 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
ted.mielczarek1adb1842009-12-21 13:12:20 +000010137BEGIN {RS=" "; FS="/|\n";} {
10138 lt_foo="";
10139 lt_count=0;
10140 for (lt_i = NF; lt_i > 0; lt_i--) {
10141 if ($lt_i != "" && $lt_i != ".") {
10142 if ($lt_i == "..") {
10143 lt_count++;
10144 } else {
10145 if (lt_count == 0) {
10146 lt_foo="/" $lt_i lt_foo;
10147 } else {
10148 lt_count--;
10149 }
10150 }
10151 }
10152 }
10153 if (lt_foo != "") { lt_freq[lt_foo]++; }
10154 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10155}'`
jimblandy92b1f832009-12-23 22:23:49 +000010156 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +000010157else
10158 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10159fi
jimblandy92b1f832009-12-23 22:23:49 +000010160library_names_spec=
10161libname_spec='lib$name'
10162soname_spec=
10163shrext_cmds=".so"
10164postinstall_cmds=
10165postuninstall_cmds=
10166finish_cmds=
10167finish_eval=
10168shlibpath_var=
10169shlibpath_overrides_runpath=unknown
10170version_type=none
10171dynamic_linker="$host_os ld.so"
10172sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010173need_lib_prefix=unknown
10174hardcode_into_libs=no
10175
10176# when you set need_version to no, make sure it does not cause -set_version
10177# flags to be left without arguments
10178need_version=unknown
10179
10180case $host_os in
10181aix3*)
10182 version_type=linux
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10184 shlibpath_var=LIBPATH
10185
10186 # AIX 3 has no versioning support, so we append a major version to the name.
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 ;;
10189
ted.mielczarek1adb1842009-12-21 13:12:20 +000010190aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010191 version_type=linux
10192 need_lib_prefix=no
10193 need_version=no
10194 hardcode_into_libs=yes
10195 if test "$host_cpu" = ia64; then
10196 # AIX 5 supports IA64
10197 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 else
10200 # With GCC up to 2.95.x, collect2 would create an import file
10201 # for dependence libraries. The import file would start with
10202 # the line `#! .'. This would cause the generated library to
10203 # depend on `.', always an invalid library. This was fixed in
10204 # development snapshots of GCC prior to 3.0.
10205 case $host_os in
10206 aix4 | aix4.[01] | aix4.[01].*)
10207 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10208 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000010209 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010210 :
10211 else
10212 can_build_shared=no
10213 fi
10214 ;;
10215 esac
10216 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10217 # soname into executable. Probably we can add versioning support to
10218 # collect2, so additional links can be useful in future.
10219 if test "$aix_use_runtimelinking" = yes; then
10220 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10221 # instead of lib<name>.a to let people know that these are not
10222 # typical AIX shared libraries.
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224 else
10225 # We preserve .a as extension for shared libraries through AIX4.2
10226 # and later when we are not doing run time linking.
10227 library_names_spec='${libname}${release}.a $libname.a'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 fi
10230 shlibpath_var=LIBPATH
10231 fi
10232 ;;
10233
10234amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000010235 case $host_cpu in
10236 powerpc)
10237 # Since July 2007 AmigaOS4 officially supports .so libraries.
10238 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240 ;;
10241 m68k)
10242 library_names_spec='$libname.ixlibrary $libname.a'
10243 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10244 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'
10245 ;;
10246 esac
brynercb91a2f2006-08-25 21:14:45 +000010247 ;;
10248
10249beos*)
10250 library_names_spec='${libname}${shared_ext}'
10251 dynamic_linker="$host_os ld.so"
10252 shlibpath_var=LIBRARY_PATH
10253 ;;
10254
mmentovai8c2a4de2006-09-20 16:20:15 +000010255bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000010256 version_type=linux
10257 need_version=no
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10264 # the default ld.so.conf also contains /usr/contrib/lib and
10265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10266 # libtool to hard-code these into programs
10267 ;;
10268
jimblandy92b1f832009-12-23 22:23:49 +000010269cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010270 version_type=windows
10271 shrext_cmds=".dll"
10272 need_version=no
10273 need_lib_prefix=no
10274
10275 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010276 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010277 library_names_spec='$libname.dll.a'
10278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10279 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000010280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000010281 dldir=$destdir/`dirname \$dlpath`~
10282 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000010283 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000010284 chmod a+x \$dldir/$dlname~
10285 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10286 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10287 fi'
brynercb91a2f2006-08-25 21:14:45 +000010288 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10289 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000010290 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000010291 shlibpath_overrides_runpath=yes
10292
10293 case $host_os in
10294 cygwin*)
10295 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10296 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10297 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10298 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010299 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010300 # MinGW DLLs use traditional 'lib' prefix
10301 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000010302 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10303 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010304 # It is most probably a Windows format PATH printed by
10305 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10306 # path with ; separators, and with drive letters. We can handle the
10307 # drive letters (cygwin fileutils understands them), so leave them,
10308 # especially as we might pass files found there to a mingw objdump,
10309 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000010310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010311 else
jimblandy92b1f832009-12-23 22:23:49 +000010312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010313 fi
10314 ;;
10315 pw32*)
10316 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010317 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 +000010318 ;;
10319 esac
10320 ;;
10321
10322 *)
10323 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10324 ;;
10325 esac
10326 dynamic_linker='Win32 ld.exe'
10327 # FIXME: first we should search . and the directory the executable is in
10328 shlibpath_var=PATH
10329 ;;
10330
10331darwin* | rhapsody*)
10332 dynamic_linker="$host_os dyld"
10333 version_type=darwin
10334 need_lib_prefix=no
10335 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010336 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000010337 soname_spec='${libname}${release}${major}$shared_ext'
10338 shlibpath_overrides_runpath=yes
10339 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000010340 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000010341
10342 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +000010343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10344 ;;
10345
10346dgux*)
10347 version_type=linux
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 ;;
10354
10355freebsd1*)
10356 dynamic_linker=no
10357 ;;
10358
mmentovai8c2a4de2006-09-20 16:20:15 +000010359freebsd* | dragonfly*)
10360 # DragonFly does not have aout. When/if they implement a new
10361 # versioning mechanism, adjust this.
10362 if test -x /usr/bin/objformat; then
10363 objformat=`/usr/bin/objformat`
10364 else
10365 case $host_os in
10366 freebsd[123]*) objformat=aout ;;
10367 *) objformat=elf ;;
10368 esac
10369 fi
brynercb91a2f2006-08-25 21:14:45 +000010370 version_type=freebsd-$objformat
10371 case $version_type in
10372 freebsd-elf*)
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374 need_version=no
10375 need_lib_prefix=no
10376 ;;
10377 freebsd-*)
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10379 need_version=yes
10380 ;;
10381 esac
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_os in
10384 freebsd2*)
10385 shlibpath_overrides_runpath=yes
10386 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010387 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000010388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010391 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10392 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000010393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000010396 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000010397 shlibpath_overrides_runpath=yes
10398 hardcode_into_libs=yes
10399 ;;
brynercb91a2f2006-08-25 21:14:45 +000010400 esac
10401 ;;
10402
10403gnu*)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 hardcode_into_libs=yes
10411 ;;
10412
10413hpux9* | hpux10* | hpux11*)
10414 # Give a soname corresponding to the major version so that dld.sl refuses to
10415 # link against other versions.
10416 version_type=sunos
10417 need_lib_prefix=no
10418 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010419 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000010420 ia64*)
10421 shrext_cmds='.so'
10422 hardcode_into_libs=yes
10423 dynamic_linker="$host_os dld.so"
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 if test "X$HPUX_IA64_MODE" = X32; then
10429 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10430 else
10431 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10432 fi
10433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10434 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010435 hppa*64*)
10436 shrext_cmds='.sl'
10437 hardcode_into_libs=yes
10438 dynamic_linker="$host_os dld.sl"
10439 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10445 ;;
10446 *)
brynercb91a2f2006-08-25 21:14:45 +000010447 shrext_cmds='.sl'
10448 dynamic_linker="$host_os dld.sl"
10449 shlibpath_var=SHLIB_PATH
10450 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 ;;
10454 esac
10455 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10456 postinstall_cmds='chmod 555 $lib'
10457 ;;
10458
ted.mielczarek1adb1842009-12-21 13:12:20 +000010459interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000010460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10469 ;;
10470
brynercb91a2f2006-08-25 21:14:45 +000010471irix5* | irix6* | nonstopux*)
10472 case $host_os in
10473 nonstopux*) version_type=nonstopux ;;
10474 *)
10475 if test "$lt_cv_prog_gnu_ld" = yes; then
10476 version_type=linux
10477 else
10478 version_type=irix
10479 fi ;;
10480 esac
10481 need_lib_prefix=no
10482 need_version=no
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10485 case $host_os in
10486 irix5* | nonstopux*)
10487 libsuff= shlibsuff=
10488 ;;
10489 *)
10490 case $LD in # libtool.m4 will add one of these switches to LD
10491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10492 libsuff= shlibsuff= libmagic=32-bit;;
10493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10494 libsuff=32 shlibsuff=N32 libmagic=N32;;
10495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10497 *) libsuff= shlibsuff= libmagic=never-match;;
10498 esac
10499 ;;
10500 esac
10501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10502 shlibpath_overrides_runpath=no
10503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10505 hardcode_into_libs=yes
10506 ;;
10507
10508# No shared lib support for Linux oldld, aout, or coff.
10509linux*oldld* | linux*aout* | linux*coff*)
10510 dynamic_linker=no
10511 ;;
10512
10513# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000010514linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000010523 # Some binutils ld are patched to set DT_RUNPATH
10524 save_LDFLAGS=$LDFLAGS
10525 save_libdir=$libdir
10526 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10527 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h. */
10530
10531int
10532main ()
10533{
10534
10535 ;
10536 return 0;
10537}
10538_ACEOF
10539if ac_fn_c_try_link "$LINENO"; then :
10540 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10541 shlibpath_overrides_runpath=yes
10542fi
10543fi
10544rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LDFLAGS=$save_LDFLAGS
10547 libdir=$save_libdir
10548
brynercb91a2f2006-08-25 21:14:45 +000010549 # This implies no fast_install, which is unacceptable.
10550 # Some rework will be needed to allow for fast_install
10551 # before this can be enabled.
10552 hardcode_into_libs=yes
10553
10554 # Append ld.so.conf contents to the search path
10555 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000010556 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 +000010557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10558 fi
10559
10560 # We used to test for /lib/ld.so.1 and disable shared libraries on
10561 # powerpc, because MkLinux only supported shared libraries with the
10562 # GNU dynamic linker. Since this was broken with cross compilers,
10563 # most powerpc-linux boxes support dynamic linking these days and
10564 # people can always --disable-shared, the test was removed, and we
10565 # assume the GNU/Linux dynamic linker is in use.
10566 dynamic_linker='GNU/Linux ld.so'
10567 ;;
10568
ted.mielczarekb2236272010-04-08 23:06:23 +000010569netbsdelf*-gnu)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=no
10577 hardcode_into_libs=yes
10578 dynamic_linker='NetBSD ld.elf_so'
10579 ;;
10580
brynercb91a2f2006-08-25 21:14:45 +000010581netbsd*)
10582 version_type=sunos
10583 need_lib_prefix=no
10584 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10588 dynamic_linker='NetBSD (a.out) ld.so'
10589 else
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 dynamic_linker='NetBSD ld.elf_so'
10593 fi
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 hardcode_into_libs=yes
10597 ;;
10598
10599newsos6)
10600 version_type=linux
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 shlibpath_overrides_runpath=yes
10604 ;;
10605
jimblandy92b1f832009-12-23 22:23:49 +000010606*nto* | *qnx*)
10607 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000010608 need_lib_prefix=no
10609 need_version=no
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010613 shlibpath_overrides_runpath=no
10614 hardcode_into_libs=yes
10615 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000010616 ;;
10617
10618openbsd*)
10619 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000010620 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010621 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010622 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10623 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010624 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10625 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010626 esac
brynercb91a2f2006-08-25 21:14:45 +000010627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10629 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000010631 case $host_os in
10632 openbsd2.[89] | openbsd2.[89].*)
10633 shlibpath_overrides_runpath=no
10634 ;;
10635 *)
10636 shlibpath_overrides_runpath=yes
10637 ;;
10638 esac
10639 else
10640 shlibpath_overrides_runpath=yes
10641 fi
10642 ;;
10643
10644os2*)
10645 libname_spec='$name'
10646 shrext_cmds=".dll"
10647 need_lib_prefix=no
10648 library_names_spec='$libname${shared_ext} $libname.a'
10649 dynamic_linker='OS/2 ld.exe'
10650 shlibpath_var=LIBPATH
10651 ;;
10652
10653osf3* | osf4* | osf5*)
10654 version_type=osf
10655 need_lib_prefix=no
10656 need_version=no
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10661 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10662 ;;
10663
ted.mielczarek1adb1842009-12-21 13:12:20 +000010664rdos*)
10665 dynamic_linker=no
10666 ;;
10667
brynercb91a2f2006-08-25 21:14:45 +000010668solaris*)
10669 version_type=linux
10670 need_lib_prefix=no
10671 need_version=no
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10676 hardcode_into_libs=yes
10677 # ldd complains unless libraries are executable
10678 postinstall_cmds='chmod +x $lib'
10679 ;;
10680
10681sunos4*)
10682 version_type=sunos
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10684 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 if test "$with_gnu_ld" = yes; then
10688 need_lib_prefix=no
10689 fi
10690 need_version=yes
10691 ;;
10692
mmentovai8c2a4de2006-09-20 16:20:15 +000010693sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000010694 version_type=linux
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 case $host_vendor in
10699 sni)
10700 shlibpath_overrides_runpath=no
10701 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000010702 runpath_var=LD_RUN_PATH
10703 ;;
10704 siemens)
10705 need_lib_prefix=no
10706 ;;
10707 motorola)
10708 need_lib_prefix=no
10709 need_version=no
10710 shlibpath_overrides_runpath=no
10711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10712 ;;
10713 esac
10714 ;;
10715
10716sysv4*MP*)
10717 if test -d /usr/nec ;then
10718 version_type=linux
10719 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10720 soname_spec='$libname${shared_ext}.$major'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 fi
10723 ;;
10724
mmentovai8c2a4de2006-09-20 16:20:15 +000010725sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10726 version_type=freebsd-elf
10727 need_lib_prefix=no
10728 need_version=no
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010732 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010733 hardcode_into_libs=yes
10734 if test "$with_gnu_ld" = yes; then
10735 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010736 else
10737 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010738 case $host_os in
10739 sco3.2v5*)
10740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10741 ;;
10742 esac
10743 fi
10744 sys_lib_dlsearch_path_spec='/usr/lib'
10745 ;;
10746
jimblandy92b1f832009-12-23 22:23:49 +000010747tpf*)
10748 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10749 version_type=linux
10750 need_lib_prefix=no
10751 need_version=no
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=no
10755 hardcode_into_libs=yes
10756 ;;
10757
brynercb91a2f2006-08-25 21:14:45 +000010758uts4*)
10759 version_type=linux
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 ;;
10764
10765*)
10766 dynamic_linker=no
10767 ;;
10768esac
jimblandy92b1f832009-12-23 22:23:49 +000010769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10770$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010771test "$dynamic_linker" = no && can_build_shared=no
10772
mmentovai8c2a4de2006-09-20 16:20:15 +000010773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10774if test "$GCC" = yes; then
10775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10776fi
10777
jimblandy92b1f832009-12-23 22:23:49 +000010778if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10779 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10780fi
10781if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10782 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10783fi
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
10865
10866
10867
10868
10869
10870
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10872$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010873hardcode_action=
jimblandy92b1f832009-12-23 22:23:49 +000010874if test -n "$hardcode_libdir_flag_spec" ||
10875 test -n "$runpath_var" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000010876 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000010877
jimblandy92b1f832009-12-23 22:23:49 +000010878 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000010879 if test "$hardcode_direct" != no &&
10880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10881 # have to relink, otherwise we might link with an installed library
10882 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000010883 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
brynercb91a2f2006-08-25 21:14:45 +000010884 test "$hardcode_minus_L" != no; then
10885 # Linking always hardcodes the temporary library directory.
10886 hardcode_action=relink
10887 else
10888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10889 hardcode_action=immediate
10890 fi
10891else
10892 # We cannot hardcode anything, or else we can only hardcode existing
10893 # directories.
10894 hardcode_action=unsupported
10895fi
jimblandy92b1f832009-12-23 22:23:49 +000010896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10897$as_echo "$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010898
jimblandy92b1f832009-12-23 22:23:49 +000010899if test "$hardcode_action" = relink ||
10900 test "$inherit_rpath" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000010901 # Fast installation is not supported
10902 enable_fast_install=no
10903elif test "$shlibpath_overrides_runpath" = yes ||
10904 test "$enable_shared" = no; then
10905 # Fast installation is not necessary
10906 enable_fast_install=needless
10907fi
10908
brynercb91a2f2006-08-25 21:14:45 +000010909
jimblandy92b1f832009-12-23 22:23:49 +000010910
10911
10912
10913
10914 if test "x$enable_dlopen" != xyes; then
brynercb91a2f2006-08-25 21:14:45 +000010915 enable_dlopen=unknown
10916 enable_dlopen_self=unknown
10917 enable_dlopen_self_static=unknown
10918else
10919 lt_cv_dlopen=no
10920 lt_cv_dlopen_libs=
10921
10922 case $host_os in
10923 beos*)
10924 lt_cv_dlopen="load_add_on"
10925 lt_cv_dlopen_libs=
10926 lt_cv_dlopen_self=yes
10927 ;;
10928
jimblandy92b1f832009-12-23 22:23:49 +000010929 mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010930 lt_cv_dlopen="LoadLibrary"
10931 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010932 ;;
brynercb91a2f2006-08-25 21:14:45 +000010933
10934 cygwin*)
10935 lt_cv_dlopen="dlopen"
10936 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010937 ;;
brynercb91a2f2006-08-25 21:14:45 +000010938
10939 darwin*)
10940 # if libdl is installed we need to link against it
jimblandy92b1f832009-12-23 22:23:49 +000010941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10942$as_echo_n "checking for dlopen in -ldl... " >&6; }
10943if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010945else
10946 ac_check_lib_save_LIBS=$LIBS
10947LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010949/* end confdefs.h. */
10950
mmentovai8c2a4de2006-09-20 16:20:15 +000010951/* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010954#ifdef __cplusplus
10955extern "C"
10956#endif
brynercb91a2f2006-08-25 21:14:45 +000010957char dlopen ();
10958int
10959main ()
10960{
mmentovai8c2a4de2006-09-20 16:20:15 +000010961return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010962 ;
10963 return 0;
10964}
10965_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010966if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010967 ac_cv_lib_dl_dlopen=yes
10968else
jimblandy92b1f832009-12-23 22:23:49 +000010969 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010970fi
jimblandy92b1f832009-12-23 22:23:49 +000010971rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010973LIBS=$ac_check_lib_save_LIBS
10974fi
jimblandy92b1f832009-12-23 22:23:49 +000010975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10976$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10977if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10979else
10980
10981 lt_cv_dlopen="dyld"
10982 lt_cv_dlopen_libs=
10983 lt_cv_dlopen_self=yes
10984
10985fi
10986
jimblandy92b1f832009-12-23 22:23:49 +000010987 ;;
brynercb91a2f2006-08-25 21:14:45 +000010988
10989 *)
jimblandy92b1f832009-12-23 22:23:49 +000010990 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10991if test "x$ac_cv_func_shl_load" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010992 lt_cv_dlopen="shl_load"
10993else
jimblandy92b1f832009-12-23 22:23:49 +000010994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10995$as_echo_n "checking for shl_load in -ldld... " >&6; }
10996if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010998else
10999 ac_check_lib_save_LIBS=$LIBS
11000LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011002/* end confdefs.h. */
11003
mmentovai8c2a4de2006-09-20 16:20:15 +000011004/* Override any GCC internal prototype to avoid an error.
11005 Use char because int might match the return type of a GCC
11006 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011007#ifdef __cplusplus
11008extern "C"
11009#endif
brynercb91a2f2006-08-25 21:14:45 +000011010char shl_load ();
11011int
11012main ()
11013{
mmentovai8c2a4de2006-09-20 16:20:15 +000011014return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +000011015 ;
11016 return 0;
11017}
11018_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011019if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011020 ac_cv_lib_dld_shl_load=yes
11021else
jimblandy92b1f832009-12-23 22:23:49 +000011022 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +000011023fi
jimblandy92b1f832009-12-23 22:23:49 +000011024rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011026LIBS=$ac_check_lib_save_LIBS
11027fi
jimblandy92b1f832009-12-23 22:23:49 +000011028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11029$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11030if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011031 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011032else
jimblandy92b1f832009-12-23 22:23:49 +000011033 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11034if test "x$ac_cv_func_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011035 lt_cv_dlopen="dlopen"
11036else
jimblandy92b1f832009-12-23 22:23:49 +000011037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11038$as_echo_n "checking for dlopen in -ldl... " >&6; }
11039if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011041else
11042 ac_check_lib_save_LIBS=$LIBS
11043LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011045/* end confdefs.h. */
11046
mmentovai8c2a4de2006-09-20 16:20:15 +000011047/* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011050#ifdef __cplusplus
11051extern "C"
11052#endif
brynercb91a2f2006-08-25 21:14:45 +000011053char dlopen ();
11054int
11055main ()
11056{
mmentovai8c2a4de2006-09-20 16:20:15 +000011057return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011058 ;
11059 return 0;
11060}
11061_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011062if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011063 ac_cv_lib_dl_dlopen=yes
11064else
jimblandy92b1f832009-12-23 22:23:49 +000011065 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011066fi
jimblandy92b1f832009-12-23 22:23:49 +000011067rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011069LIBS=$ac_check_lib_save_LIBS
11070fi
jimblandy92b1f832009-12-23 22:23:49 +000011071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11072$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11073if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11075else
jimblandy92b1f832009-12-23 22:23:49 +000011076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11077$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11078if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011080else
11081 ac_check_lib_save_LIBS=$LIBS
11082LIBS="-lsvld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011084/* end confdefs.h. */
11085
mmentovai8c2a4de2006-09-20 16:20:15 +000011086/* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011089#ifdef __cplusplus
11090extern "C"
11091#endif
brynercb91a2f2006-08-25 21:14:45 +000011092char dlopen ();
11093int
11094main ()
11095{
mmentovai8c2a4de2006-09-20 16:20:15 +000011096return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011097 ;
11098 return 0;
11099}
11100_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011101if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011102 ac_cv_lib_svld_dlopen=yes
11103else
jimblandy92b1f832009-12-23 22:23:49 +000011104 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011105fi
jimblandy92b1f832009-12-23 22:23:49 +000011106rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011108LIBS=$ac_check_lib_save_LIBS
11109fi
jimblandy92b1f832009-12-23 22:23:49 +000011110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11111$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11112if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11114else
jimblandy92b1f832009-12-23 22:23:49 +000011115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11116$as_echo_n "checking for dld_link in -ldld... " >&6; }
11117if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011119else
11120 ac_check_lib_save_LIBS=$LIBS
11121LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011123/* end confdefs.h. */
11124
mmentovai8c2a4de2006-09-20 16:20:15 +000011125/* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011128#ifdef __cplusplus
11129extern "C"
11130#endif
brynercb91a2f2006-08-25 21:14:45 +000011131char dld_link ();
11132int
11133main ()
11134{
mmentovai8c2a4de2006-09-20 16:20:15 +000011135return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000011136 ;
11137 return 0;
11138}
11139_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011140if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011141 ac_cv_lib_dld_dld_link=yes
11142else
jimblandy92b1f832009-12-23 22:23:49 +000011143 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000011144fi
jimblandy92b1f832009-12-23 22:23:49 +000011145rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011147LIBS=$ac_check_lib_save_LIBS
11148fi
jimblandy92b1f832009-12-23 22:23:49 +000011149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11150$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11151if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011153fi
11154
11155
11156fi
11157
11158
11159fi
11160
11161
11162fi
11163
11164
11165fi
11166
11167
11168fi
11169
11170 ;;
11171 esac
11172
11173 if test "x$lt_cv_dlopen" != xno; then
11174 enable_dlopen=yes
11175 else
11176 enable_dlopen=no
11177 fi
11178
11179 case $lt_cv_dlopen in
11180 dlopen)
11181 save_CPPFLAGS="$CPPFLAGS"
11182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11183
11184 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000011185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000011186
11187 save_LIBS="$LIBS"
11188 LIBS="$lt_cv_dlopen_libs $LIBS"
11189
jimblandy92b1f832009-12-23 22:23:49 +000011190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11191$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11192if test "${lt_cv_dlopen_self+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011194else
11195 if test "$cross_compiling" = yes; then :
11196 lt_cv_dlopen_self=cross
11197else
11198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11199 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011200 cat > conftest.$ac_ext <<_LT_EOF
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000011201#line 11201 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011202#include "confdefs.h"
11203
11204#if HAVE_DLFCN_H
11205#include <dlfcn.h>
11206#endif
11207
11208#include <stdio.h>
11209
11210#ifdef RTLD_GLOBAL
11211# define LT_DLGLOBAL RTLD_GLOBAL
11212#else
11213# ifdef DL_GLOBAL
11214# define LT_DLGLOBAL DL_GLOBAL
11215# else
11216# define LT_DLGLOBAL 0
11217# endif
11218#endif
11219
11220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11221 find out it does not work in some platform. */
11222#ifndef LT_DLLAZY_OR_NOW
11223# ifdef RTLD_LAZY
11224# define LT_DLLAZY_OR_NOW RTLD_LAZY
11225# else
11226# ifdef DL_LAZY
11227# define LT_DLLAZY_OR_NOW DL_LAZY
11228# else
11229# ifdef RTLD_NOW
11230# define LT_DLLAZY_OR_NOW RTLD_NOW
11231# else
11232# ifdef DL_NOW
11233# define LT_DLLAZY_OR_NOW DL_NOW
11234# else
11235# define LT_DLLAZY_OR_NOW 0
11236# endif
11237# endif
11238# endif
11239# endif
11240#endif
11241
brynercb91a2f2006-08-25 21:14:45 +000011242void fnord() { int i=42;}
11243int main ()
11244{
11245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11246 int status = $lt_dlunknown;
11247
11248 if (self)
11249 {
11250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11252 /* dlclose (self); */
11253 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011254 else
11255 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011256
jimblandy92b1f832009-12-23 22:23:49 +000011257 return status;
brynercb91a2f2006-08-25 21:14:45 +000011258}
jimblandy92b1f832009-12-23 22:23:49 +000011259_LT_EOF
11260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011261 (eval $ac_link) 2>&5
11262 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011265 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011266 lt_status=$?
11267 case x$lt_status in
11268 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11269 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011270 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011271 esac
11272 else :
11273 # compilation failed
11274 lt_cv_dlopen_self=no
11275 fi
11276fi
11277rm -fr conftest*
11278
11279
11280fi
jimblandy92b1f832009-12-23 22:23:49 +000011281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11282$as_echo "$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011283
11284 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +000011286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11287$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11288if test "${lt_cv_dlopen_self_static+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011290else
11291 if test "$cross_compiling" = yes; then :
11292 lt_cv_dlopen_self_static=cross
11293else
11294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11295 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011296 cat > conftest.$ac_ext <<_LT_EOF
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000011297#line 11297 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011298#include "confdefs.h"
11299
11300#if HAVE_DLFCN_H
11301#include <dlfcn.h>
11302#endif
11303
11304#include <stdio.h>
11305
11306#ifdef RTLD_GLOBAL
11307# define LT_DLGLOBAL RTLD_GLOBAL
11308#else
11309# ifdef DL_GLOBAL
11310# define LT_DLGLOBAL DL_GLOBAL
11311# else
11312# define LT_DLGLOBAL 0
11313# endif
11314#endif
11315
11316/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11317 find out it does not work in some platform. */
11318#ifndef LT_DLLAZY_OR_NOW
11319# ifdef RTLD_LAZY
11320# define LT_DLLAZY_OR_NOW RTLD_LAZY
11321# else
11322# ifdef DL_LAZY
11323# define LT_DLLAZY_OR_NOW DL_LAZY
11324# else
11325# ifdef RTLD_NOW
11326# define LT_DLLAZY_OR_NOW RTLD_NOW
11327# else
11328# ifdef DL_NOW
11329# define LT_DLLAZY_OR_NOW DL_NOW
11330# else
11331# define LT_DLLAZY_OR_NOW 0
11332# endif
11333# endif
11334# endif
11335# endif
11336#endif
11337
brynercb91a2f2006-08-25 21:14:45 +000011338void fnord() { int i=42;}
11339int main ()
11340{
11341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11342 int status = $lt_dlunknown;
11343
11344 if (self)
11345 {
11346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11347 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11348 /* dlclose (self); */
11349 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011350 else
11351 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011352
jimblandy92b1f832009-12-23 22:23:49 +000011353 return status;
brynercb91a2f2006-08-25 21:14:45 +000011354}
jimblandy92b1f832009-12-23 22:23:49 +000011355_LT_EOF
11356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011357 (eval $ac_link) 2>&5
11358 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11360 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011361 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011362 lt_status=$?
11363 case x$lt_status in
11364 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11365 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011366 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011367 esac
11368 else :
11369 # compilation failed
11370 lt_cv_dlopen_self_static=no
11371 fi
11372fi
11373rm -fr conftest*
11374
11375
11376fi
jimblandy92b1f832009-12-23 22:23:49 +000011377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11378$as_echo "$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011379 fi
11380
11381 CPPFLAGS="$save_CPPFLAGS"
11382 LDFLAGS="$save_LDFLAGS"
11383 LIBS="$save_LIBS"
11384 ;;
11385 esac
11386
11387 case $lt_cv_dlopen_self in
11388 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11389 *) enable_dlopen_self=unknown ;;
11390 esac
11391
11392 case $lt_cv_dlopen_self_static in
11393 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11394 *) enable_dlopen_self_static=unknown ;;
11395 esac
11396fi
11397
11398
brynercb91a2f2006-08-25 21:14:45 +000011399
brynercb91a2f2006-08-25 21:14:45 +000011400
brynercb91a2f2006-08-25 21:14:45 +000011401
jimblandy92b1f832009-12-23 22:23:49 +000011402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414striplib=
11415old_striplib=
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11417$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11418if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11422$as_echo "yes" >&6; }
11423else
11424# FIXME - insert some real tests, host_os isn't really good enough
11425 case $host_os in
11426 darwin*)
11427 if test -n "$STRIP" ; then
11428 striplib="$STRIP -x"
11429 old_striplib="$STRIP -S"
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11431$as_echo "yes" >&6; }
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434$as_echo "no" >&6; }
11435 fi
brynercb91a2f2006-08-25 21:14:45 +000011436 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011437 *)
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011440 ;;
11441 esac
jimblandy92b1f832009-12-23 22:23:49 +000011442fi
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
brynercb91a2f2006-08-25 21:14:45 +000011448
brynercb91a2f2006-08-25 21:14:45 +000011449
brynercb91a2f2006-08-25 21:14:45 +000011450
brynercb91a2f2006-08-25 21:14:45 +000011451
brynercb91a2f2006-08-25 21:14:45 +000011452
brynercb91a2f2006-08-25 21:14:45 +000011453
brynercb91a2f2006-08-25 21:14:45 +000011454
jimblandy92b1f832009-12-23 22:23:49 +000011455 # Report which library types will actually be built
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11457$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11459$as_echo "$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011460
jimblandy92b1f832009-12-23 22:23:49 +000011461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11462$as_echo_n "checking whether to build shared libraries... " >&6; }
11463 test "$can_build_shared" = "no" && enable_shared=no
brynercb91a2f2006-08-25 21:14:45 +000011464
jimblandy92b1f832009-12-23 22:23:49 +000011465 # On AIX, shared libraries and static libraries use the same namespace, and
11466 # are all built from PIC.
brynercb91a2f2006-08-25 21:14:45 +000011467 case $host_os in
11468 aix3*)
jimblandy92b1f832009-12-23 22:23:49 +000011469 test "$enable_shared" = yes && enable_static=no
11470 if test -n "$RANLIB"; then
11471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11472 postinstall_cmds='$RANLIB $lib'
11473 fi
11474 ;;
brynercb91a2f2006-08-25 21:14:45 +000011475
jimblandy92b1f832009-12-23 22:23:49 +000011476 aix[4-9]*)
11477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11478 test "$enable_shared" = yes && enable_static=no
11479 fi
brynercb91a2f2006-08-25 21:14:45 +000011480 ;;
11481 esac
jimblandy92b1f832009-12-23 22:23:49 +000011482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11483$as_echo "$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011484
jimblandy92b1f832009-12-23 22:23:49 +000011485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11486$as_echo_n "checking whether to build static libraries... " >&6; }
11487 # Make sure either enable_shared or enable_static is yes.
11488 test "$enable_shared" = yes || enable_static=yes
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11490$as_echo "$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011491
brynercb91a2f2006-08-25 21:14:45 +000011492
jimblandy92b1f832009-12-23 22:23:49 +000011493
11494
brynercb91a2f2006-08-25 21:14:45 +000011495fi
brynercb91a2f2006-08-25 21:14:45 +000011496ac_ext=c
11497ac_cpp='$CPP $CPPFLAGS'
11498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11500ac_compiler_gnu=$ac_cv_c_compiler_gnu
11501
11502CC="$lt_save_CC"
11503
11504
jimblandy92b1f832009-12-23 22:23:49 +000011505ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011506ac_cpp='$CXXCPP $CPPFLAGS'
11507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11510
brynercb91a2f2006-08-25 21:14:45 +000011511archive_cmds_need_lc_CXX=no
11512allow_undefined_flag_CXX=
11513always_export_symbols_CXX=no
11514archive_expsym_cmds_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000011515compiler_needs_object_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011516export_dynamic_flag_spec_CXX=
11517hardcode_direct_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011518hardcode_direct_absolute_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011519hardcode_libdir_flag_spec_CXX=
11520hardcode_libdir_flag_spec_ld_CXX=
11521hardcode_libdir_separator_CXX=
11522hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011523hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011524hardcode_automatic_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011525inherit_rpath_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011526module_cmds_CXX=
11527module_expsym_cmds_CXX=
11528link_all_deplibs_CXX=unknown
11529old_archive_cmds_CXX=$old_archive_cmds
11530no_undefined_flag_CXX=
11531whole_archive_flag_spec_CXX=
11532enable_shared_with_static_runtimes_CXX=no
11533
brynercb91a2f2006-08-25 21:14:45 +000011534# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011535ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011536
11537# Object file extension for compiled C++ test sources.
11538objext=o
11539objext_CXX=$objext
11540
jimblandy92b1f832009-12-23 22:23:49 +000011541# No sense in running all these tests if we already determined that
11542# the CXX compiler isn't working. Some variables (like enable_shared)
11543# are currently assumed to apply to all compilers on this platform,
11544# and will be corrupted by setting them based on a non-working compiler.
11545if test "$_lt_caught_CXX_error" != yes; then
11546 # Code to be used in simple compile tests
11547 lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011548
jimblandy92b1f832009-12-23 22:23:49 +000011549 # Code to be used in simple link tests
11550 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011551
jimblandy92b1f832009-12-23 22:23:49 +000011552 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11553
11554
11555
11556
11557
brynercb91a2f2006-08-25 21:14:45 +000011558
11559# If no C compiler was specified, use CC.
11560LTCC=${LTCC-"$CC"}
11561
mmentovai8c2a4de2006-09-20 16:20:15 +000011562# If no C compiler flags were specified, use CFLAGS.
11563LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11564
brynercb91a2f2006-08-25 21:14:45 +000011565# Allow CC to be a program name with arguments.
11566compiler=$CC
11567
11568
jimblandy92b1f832009-12-23 22:23:49 +000011569 # save warnings/boilerplate of simple test code
11570 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011571echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011572eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11573_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011574$RM conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011575
jimblandy92b1f832009-12-23 22:23:49 +000011576 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011577echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011578eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11579_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011580$RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011581
11582
jimblandy92b1f832009-12-23 22:23:49 +000011583 # Allow CC to be a program name with arguments.
11584 lt_save_CC=$CC
11585 lt_save_LD=$LD
11586 lt_save_GCC=$GCC
11587 GCC=$GXX
11588 lt_save_with_gnu_ld=$with_gnu_ld
11589 lt_save_path_LD=$lt_cv_path_LD
11590 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11591 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11592 else
11593 $as_unset lt_cv_prog_gnu_ld
11594 fi
11595 if test -n "${lt_cv_path_LDCXX+set}"; then
11596 lt_cv_path_LD=$lt_cv_path_LDCXX
11597 else
11598 $as_unset lt_cv_path_LD
11599 fi
11600 test -z "${LDCXX+set}" || LD=$LDCXX
11601 CC=${CXX-"c++"}
11602 compiler=$CC
11603 compiler_CXX=$CC
11604 for cc_temp in $compiler""; do
mmentovai8c2a4de2006-09-20 16:20:15 +000011605 case $cc_temp in
11606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11608 \-*) ;;
11609 *) break;;
11610 esac
11611done
jimblandy92b1f832009-12-23 22:23:49 +000011612cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +000011613
brynercb91a2f2006-08-25 21:14:45 +000011614
jimblandy92b1f832009-12-23 22:23:49 +000011615 if test -n "$compiler"; then
11616 # We don't want -fno-exception when compiling C++ code, so set the
11617 # no_builtin_flag separately
11618 if test "$GXX" = yes; then
11619 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11620 else
11621 lt_prog_compiler_no_builtin_flag_CXX=
11622 fi
brynercb91a2f2006-08-25 21:14:45 +000011623
jimblandy92b1f832009-12-23 22:23:49 +000011624 if test "$GXX" = yes; then
11625 # Set up default GNU C++ configuration
11626
brynercb91a2f2006-08-25 21:14:45 +000011627
11628
mmentovai8c2a4de2006-09-20 16:20:15 +000011629# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +000011630if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +000011631 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011632else
11633 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011634fi
11635
brynercb91a2f2006-08-25 21:14:45 +000011636ac_prog=ld
11637if test "$GCC" = yes; then
11638 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +000011639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11640$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011641 case $host in
11642 *-*-mingw*)
11643 # gcc leaves a trailing carriage return which upsets mingw
11644 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11645 *)
11646 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11647 esac
11648 case $ac_prog in
11649 # Accept absolute paths.
11650 [\\/]* | ?:[\\/]*)
11651 re_direlt='/[^/][^/]*/\.\./'
11652 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +000011653 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11654 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11655 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +000011656 done
11657 test -z "$LD" && LD="$ac_prog"
11658 ;;
11659 "")
11660 # If it fails, then pretend we aren't using GCC.
11661 ac_prog=ld
11662 ;;
11663 *)
11664 # If it is relative, then search for the first ld in PATH.
11665 with_gnu_ld=unknown
11666 ;;
11667 esac
11668elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +000011669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11670$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011671else
jimblandy92b1f832009-12-23 22:23:49 +000011672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11673$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011674fi
jimblandy92b1f832009-12-23 22:23:49 +000011675if test "${lt_cv_path_LD+set}" = set; then :
11676 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011677else
11678 if test -z "$LD"; then
11679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11680 for ac_dir in $PATH; do
11681 IFS="$lt_save_ifs"
11682 test -z "$ac_dir" && ac_dir=.
11683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11684 lt_cv_path_LD="$ac_dir/$ac_prog"
11685 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011686 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011687 # Break only if it was the GNU/non-GNU ld that we prefer.
11688 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11689 *GNU* | *'with BFD'*)
11690 test "$with_gnu_ld" != no && break
11691 ;;
11692 *)
11693 test "$with_gnu_ld" != yes && break
11694 ;;
11695 esac
11696 fi
11697 done
11698 IFS="$lt_save_ifs"
11699else
11700 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11701fi
11702fi
11703
11704LD="$lt_cv_path_LD"
11705if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +000011706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11707$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011708else
jimblandy92b1f832009-12-23 22:23:49 +000011709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011711fi
jimblandy92b1f832009-12-23 22:23:49 +000011712test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11714$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11715if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011717else
mmentovai8c2a4de2006-09-20 16:20:15 +000011718 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011719case `$LD -v 2>&1 </dev/null` in
11720*GNU* | *'with BFD'*)
11721 lt_cv_prog_gnu_ld=yes
11722 ;;
11723*)
11724 lt_cv_prog_gnu_ld=no
11725 ;;
11726esac
11727fi
jimblandy92b1f832009-12-23 22:23:49 +000011728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11729$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011730with_gnu_ld=$lt_cv_prog_gnu_ld
11731
11732
11733
brynercb91a2f2006-08-25 21:14:45 +000011734
brynercb91a2f2006-08-25 21:14:45 +000011735
brynercb91a2f2006-08-25 21:14:45 +000011736
brynercb91a2f2006-08-25 21:14:45 +000011737
jimblandy92b1f832009-12-23 22:23:49 +000011738 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11739 # archiving commands below assume that GNU ld is being used.
11740 if test "$with_gnu_ld" = yes; then
11741 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11742 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 +000011743
jimblandy92b1f832009-12-23 22:23:49 +000011744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
brynercb91a2f2006-08-25 21:14:45 +000011746
jimblandy92b1f832009-12-23 22:23:49 +000011747 # If archive_cmds runs LD, not CC, wlarc should be empty
11748 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11749 # investigate it a little bit more. (MM)
11750 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000011751
jimblandy92b1f832009-12-23 22:23:49 +000011752 # ancient GNU ld didn't support --whole-archive et. al.
11753 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11754 $GREP 'no-whole-archive' > /dev/null; then
11755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11756 else
11757 whole_archive_flag_spec_CXX=
11758 fi
brynercb91a2f2006-08-25 21:14:45 +000011759 else
jimblandy92b1f832009-12-23 22:23:49 +000011760 with_gnu_ld=no
11761 wlarc=
11762
11763 # A generic and very simple default shared library creation
11764 # command for GNU C++ for the case where it uses the native
11765 # linker, instead of GNU ld. If possible, this setting should
11766 # overridden to take advantage of the native linker features on
11767 # the platform it is being used on.
11768 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011769 fi
brynercb91a2f2006-08-25 21:14:45 +000011770
brynercb91a2f2006-08-25 21:14:45 +000011771 # Commands to make compiler produce verbose output that lists
11772 # what "hidden" libraries, object files and flags are used when
11773 # linking a shared library.
jimblandy92b1f832009-12-23 22:23:49 +000011774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11775
11776 else
11777 GXX=no
11778 with_gnu_ld=no
11779 wlarc=
11780 fi
11781
11782 # PORTME: fill in a description of your system's C++ link characteristics
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11784$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11785 ld_shlibs_CXX=yes
11786 case $host_os in
11787 aix3*)
brynercb91a2f2006-08-25 21:14:45 +000011788 # FIXME: insert proper C++ library support
11789 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011790 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011791 aix[4-9]*)
11792 if test "$host_cpu" = ia64; then
11793 # On IA64, the linker does run time linking by default, so we don't
11794 # have to do anything special.
11795 aix_use_runtimelinking=no
11796 exp_sym_flag='-Bexport'
11797 no_entry_flag=""
11798 else
11799 aix_use_runtimelinking=no
brynercb91a2f2006-08-25 21:14:45 +000011800
jimblandy92b1f832009-12-23 22:23:49 +000011801 # Test if we are trying to use run time linking or normal
11802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11803 # need to do runtime linking.
11804 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11805 for ld_flag in $LDFLAGS; do
11806 case $ld_flag in
11807 *-brtl*)
11808 aix_use_runtimelinking=yes
11809 break
11810 ;;
11811 esac
11812 done
11813 ;;
11814 esac
11815
11816 exp_sym_flag='-bexport'
11817 no_entry_flag='-bnoentry'
11818 fi
11819
11820 # When large executables or shared objects are built, AIX ld can
11821 # have problems creating the table of contents. If linking a library
11822 # or program results in "error TOC overflow" add -mminimal-toc to
11823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11825
11826 archive_cmds_CXX=''
11827 hardcode_direct_CXX=yes
11828 hardcode_direct_absolute_CXX=yes
11829 hardcode_libdir_separator_CXX=':'
11830 link_all_deplibs_CXX=yes
11831 file_list_spec_CXX='${wl}-f,'
11832
11833 if test "$GXX" = yes; then
11834 case $host_os in aix4.[012]|aix4.[012].*)
11835 # We only want to do this on AIX 4.2 and lower, the check
11836 # below for broken collect2 doesn't work under 4.3+
11837 collect2name=`${CC} -print-prog-name=collect2`
11838 if test -f "$collect2name" &&
11839 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11840 then
11841 # We have reworked collect2
11842 :
11843 else
11844 # We have old collect2
11845 hardcode_direct_CXX=unsupported
11846 # It fails to find uninstalled libraries when the uninstalled
11847 # path is not listed in the libpath. Setting hardcode_minus_L
11848 # to unsupported forces relinking
11849 hardcode_minus_L_CXX=yes
11850 hardcode_libdir_flag_spec_CXX='-L$libdir'
11851 hardcode_libdir_separator_CXX=
11852 fi
11853 esac
11854 shared_flag='-shared'
11855 if test "$aix_use_runtimelinking" = yes; then
11856 shared_flag="$shared_flag "'${wl}-G'
11857 fi
11858 else
11859 # not using gcc
11860 if test "$host_cpu" = ia64; then
11861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11862 # chokes on -Wl,-G. The following line is correct:
11863 shared_flag='-G'
11864 else
11865 if test "$aix_use_runtimelinking" = yes; then
11866 shared_flag='${wl}-G'
11867 else
11868 shared_flag='${wl}-bM:SRE'
11869 fi
11870 fi
11871 fi
11872
11873 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11874 # It seems that -bexpall does not export symbols beginning with
11875 # underscore (_), so it is better to generate a list of symbols to
11876 # export.
11877 always_export_symbols_CXX=yes
11878 if test "$aix_use_runtimelinking" = yes; then
11879 # Warning - without using the other runtime loading flags (-brtl),
11880 # -berok will link without error, but may produce a broken library.
11881 allow_undefined_flag_CXX='-berok'
11882 # Determine the default libpath from the value encoded in an empty
11883 # executable.
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885/* end confdefs.h. */
11886
11887int
11888main ()
11889{
11890
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895if ac_fn_cxx_try_link "$LINENO"; then :
11896
11897lt_aix_libpath_sed='
11898 /Import File Strings/,/^$/ {
11899 /^0/ {
11900 s/^0 *\(.*\)$/\1/
11901 p
11902 }
11903 }'
11904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11905# Check for a 64-bit object if we didn't find anything.
11906if test -z "$aix_libpath"; then
11907 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11908fi
11909fi
11910rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11913
11914 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11915
11916 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"
11917 else
11918 if test "$host_cpu" = ia64; then
11919 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11920 allow_undefined_flag_CXX="-z nodefs"
11921 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"
11922 else
11923 # Determine the default libpath from the value encoded in an
11924 # empty executable.
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926/* end confdefs.h. */
11927
11928int
11929main ()
11930{
11931
11932 ;
11933 return 0;
11934}
11935_ACEOF
11936if ac_fn_cxx_try_link "$LINENO"; then :
11937
11938lt_aix_libpath_sed='
11939 /Import File Strings/,/^$/ {
11940 /^0/ {
11941 s/^0 *\(.*\)$/\1/
11942 p
11943 }
11944 }'
11945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11946# Check for a 64-bit object if we didn't find anything.
11947if test -z "$aix_libpath"; then
11948 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11949fi
11950fi
11951rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11953if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11954
11955 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11956 # Warning - without using the other run time loading flags,
11957 # -berok will link without error, but may produce a broken library.
11958 no_undefined_flag_CXX=' ${wl}-bernotok'
11959 allow_undefined_flag_CXX=' ${wl}-berok'
11960 # Exported symbols can be pulled into shared objects from archives
11961 whole_archive_flag_spec_CXX='$convenience'
11962 archive_cmds_need_lc_CXX=yes
11963 # This is similar to how AIX traditionally builds its shared
11964 # libraries.
11965 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'
11966 fi
11967 fi
11968 ;;
11969
11970 beos*)
11971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11972 allow_undefined_flag_CXX=unsupported
11973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11974 # support --undefined. This deserves some investigation. FIXME
11975 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11976 else
11977 ld_shlibs_CXX=no
11978 fi
brynercb91a2f2006-08-25 21:14:45 +000011979 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011980
11981 chorus*)
11982 case $cc_basename in
11983 *)
11984 # FIXME: insert proper C++ library support
11985 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011986 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011987 esac
11988 ;;
11989
11990 cygwin* | mingw* | pw32* | cegcc*)
11991 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11992 # as there is no search path for DLLs.
11993 hardcode_libdir_flag_spec_CXX='-L$libdir'
11994 allow_undefined_flag_CXX=unsupported
11995 always_export_symbols_CXX=no
11996 enable_shared_with_static_runtimes_CXX=yes
11997
11998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11999 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'
12000 # If the export-symbols file already is a .def file (1st line
12001 # is EXPORTS), use it as is; otherwise, prepend...
12002 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12003 cp $export_symbols $output_objdir/$soname.def;
12004 else
12005 echo EXPORTS > $output_objdir/$soname.def;
12006 cat $export_symbols >> $output_objdir/$soname.def;
12007 fi~
12008 $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'
12009 else
12010 ld_shlibs_CXX=no
12011 fi
12012 ;;
12013 darwin* | rhapsody*)
12014
12015
12016 archive_cmds_need_lc_CXX=no
12017 hardcode_direct_CXX=no
12018 hardcode_automatic_CXX=yes
12019 hardcode_shlibpath_var_CXX=unsupported
12020 whole_archive_flag_spec_CXX=''
12021 link_all_deplibs_CXX=yes
12022 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12023 case $cc_basename in
12024 ifort*) _lt_dar_can_shared=yes ;;
12025 *) _lt_dar_can_shared=$GCC ;;
12026 esac
12027 if test "$_lt_dar_can_shared" = "yes"; then
12028 output_verbose_link_cmd=echo
12029 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}"
12030 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12031 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}"
12032 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}"
12033 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12034 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}"
12035 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}"
12036 fi
12037
12038 else
12039 ld_shlibs_CXX=no
12040 fi
12041
brynercb91a2f2006-08-25 21:14:45 +000012042 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012043
12044 dgux*)
12045 case $cc_basename in
12046 ec++*)
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12049 ;;
12050 ghcx*)
12051 # Green Hills C++ Compiler
12052 # FIXME: insert proper C++ library support
12053 ld_shlibs_CXX=no
12054 ;;
12055 *)
12056 # FIXME: insert proper C++ library support
12057 ld_shlibs_CXX=no
12058 ;;
12059 esac
12060 ;;
12061
12062 freebsd[12]*)
12063 # C++ shared libraries reported to be fairly broken before
12064 # switch to ELF
12065 ld_shlibs_CXX=no
12066 ;;
12067
12068 freebsd-elf*)
12069 archive_cmds_need_lc_CXX=no
12070 ;;
12071
12072 freebsd* | dragonfly*)
12073 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12074 # conventions
12075 ld_shlibs_CXX=yes
12076 ;;
12077
12078 gnu*)
12079 ;;
12080
12081 hpux9*)
12082 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12083 hardcode_libdir_separator_CXX=:
12084 export_dynamic_flag_spec_CXX='${wl}-E'
12085 hardcode_direct_CXX=yes
12086 hardcode_minus_L_CXX=yes # Not in the search PATH,
12087 # but as the default
12088 # location of the library.
12089
12090 case $cc_basename in
12091 CC*)
12092 # FIXME: insert proper C++ library support
12093 ld_shlibs_CXX=no
12094 ;;
12095 aCC*)
12096 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'
12097 # Commands to make compiler produce verbose output that lists
12098 # what "hidden" libraries, object files and flags are used when
12099 # linking a shared library.
12100 #
12101 # There doesn't appear to be a way to prevent this compiler from
12102 # explicitly linking system object files so we need to strip them
12103 # from the output so that they don't get included in the library
12104 # dependencies.
12105 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'
12106 ;;
12107 *)
12108 if test "$GXX" = yes; then
12109 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'
12110 else
12111 # FIXME: insert proper C++ library support
12112 ld_shlibs_CXX=no
12113 fi
12114 ;;
12115 esac
12116 ;;
12117
12118 hpux10*|hpux11*)
12119 if test $with_gnu_ld = no; then
12120 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12121 hardcode_libdir_separator_CXX=:
12122
12123 case $host_cpu in
12124 hppa*64*|ia64*)
12125 ;;
12126 *)
12127 export_dynamic_flag_spec_CXX='${wl}-E'
12128 ;;
12129 esac
12130 fi
12131 case $host_cpu in
12132 hppa*64*|ia64*)
12133 hardcode_direct_CXX=no
12134 hardcode_shlibpath_var_CXX=no
12135 ;;
12136 *)
12137 hardcode_direct_CXX=yes
12138 hardcode_direct_absolute_CXX=yes
12139 hardcode_minus_L_CXX=yes # Not in the search PATH,
12140 # but as the default
12141 # location of the library.
12142 ;;
12143 esac
12144
12145 case $cc_basename in
12146 CC*)
12147 # FIXME: insert proper C++ library support
12148 ld_shlibs_CXX=no
12149 ;;
12150 aCC*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012151 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012152 hppa*64*)
12153 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12154 ;;
12155 ia64*)
12156 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12157 ;;
12158 *)
12159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12160 ;;
12161 esac
12162 # Commands to make compiler produce verbose output that lists
12163 # what "hidden" libraries, object files and flags are used when
12164 # linking a shared library.
12165 #
12166 # There doesn't appear to be a way to prevent this compiler from
12167 # explicitly linking system object files so we need to strip them
12168 # from the output so that they don't get included in the library
12169 # dependencies.
12170 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'
12171 ;;
12172 *)
12173 if test "$GXX" = yes; then
12174 if test $with_gnu_ld = no; then
12175 case $host_cpu in
12176 hppa*64*)
12177 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12178 ;;
12179 ia64*)
12180 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12181 ;;
12182 *)
12183 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'
12184 ;;
12185 esac
12186 fi
12187 else
12188 # FIXME: insert proper C++ library support
12189 ld_shlibs_CXX=no
12190 fi
12191 ;;
12192 esac
12193 ;;
12194
12195 interix[3-9]*)
12196 hardcode_direct_CXX=no
12197 hardcode_shlibpath_var_CXX=no
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12199 export_dynamic_flag_spec_CXX='${wl}-E'
12200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12201 # Instead, shared libraries are loaded at an image base (0x10000000 by
12202 # default) and relocated if they conflict, which is a slow very memory
12203 # consuming and fragmenting process. To avoid this, we pick a random,
12204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12205 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12206 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'
12207 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'
12208 ;;
12209 irix5* | irix6*)
12210 case $cc_basename in
12211 CC*)
12212 # SGI C++
12213 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'
12214
12215 # Archives containing C++ object files must be created using
12216 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12217 # necessary to make sure instantiated templates are included
12218 # in the archive.
12219 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12220 ;;
12221 *)
12222 if test "$GXX" = yes; then
12223 if test "$with_gnu_ld" = no; then
12224 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'
12225 else
12226 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'
12227 fi
12228 fi
12229 link_all_deplibs_CXX=yes
12230 ;;
12231 esac
12232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12233 hardcode_libdir_separator_CXX=:
12234 inherit_rpath_CXX=yes
12235 ;;
12236
ted.mielczarekb2236272010-04-08 23:06:23 +000012237 linux* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +000012238 case $cc_basename in
12239 KCC*)
12240 # Kuck and Associates, Inc. (KAI) C++ Compiler
12241
12242 # KCC will only create a shared library if the output file
12243 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12244 # to its proper name (with version) after linking.
12245 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'
12246 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'
12247 # Commands to make compiler produce verbose output that lists
12248 # what "hidden" libraries, object files and flags are used when
12249 # linking a shared library.
12250 #
12251 # There doesn't appear to be a way to prevent this compiler from
12252 # explicitly linking system object files so we need to strip them
12253 # from the output so that they don't get included in the library
12254 # dependencies.
12255 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'
12256
12257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12259
12260 # Archives containing C++ object files must be created using
12261 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12262 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12263 ;;
12264 icpc* | ecpc* )
12265 # Intel C++
12266 with_gnu_ld=yes
12267 # version 8.0 and above of icpc choke on multiply defined symbols
12268 # if we add $predep_objects and $postdep_objects, however 7.1 and
12269 # earlier do not add the objects themselves.
12270 case `$CC -V 2>&1` in
12271 *"Version 7."*)
12272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12273 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'
12274 ;;
12275 *) # Version 8.0 or newer
12276 tmp_idyn=
12277 case $host_cpu in
12278 ia64*) tmp_idyn=' -i_dynamic';;
12279 esac
12280 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12281 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'
12282 ;;
12283 esac
12284 archive_cmds_need_lc_CXX=no
12285 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12286 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12287 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12288 ;;
12289 pgCC* | pgcpp*)
12290 # Portland Group C++ compiler
12291 case `$CC -V` in
12292 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12293 prelink_cmds_CXX='tpldir=Template.dir~
12294 rm -rf $tpldir~
12295 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12296 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12297 old_archive_cmds_CXX='tpldir=Template.dir~
12298 rm -rf $tpldir~
12299 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12300 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12301 $RANLIB $oldlib'
12302 archive_cmds_CXX='tpldir=Template.dir~
12303 rm -rf $tpldir~
12304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12305 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12306 archive_expsym_cmds_CXX='tpldir=Template.dir~
12307 rm -rf $tpldir~
12308 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12309 $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 +000012310 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012311 *) # Version 6 will use weak symbols
12312 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12313 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 +000012314 ;;
12315 esac
brynercb91a2f2006-08-25 21:14:45 +000012316
jimblandy92b1f832009-12-23 22:23:49 +000012317 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12319 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'
12320 ;;
12321 cxx*)
12322 # Compaq C++
12323 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324 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 +000012325
jimblandy92b1f832009-12-23 22:23:49 +000012326 runpath_var=LD_RUN_PATH
12327 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12328 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +000012329
jimblandy92b1f832009-12-23 22:23:49 +000012330 # Commands to make compiler produce verbose output that lists
12331 # what "hidden" libraries, object files and flags are used when
12332 # linking a shared library.
12333 #
12334 # There doesn't appear to be a way to prevent this compiler from
12335 # explicitly linking system object files so we need to strip them
12336 # from the output so that they don't get included in the library
12337 # dependencies.
12338 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'
12339 ;;
12340 xl*)
12341 # IBM XL 8.0 on PPC, with GNU ld
12342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12344 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12345 if test "x$supports_anon_versioning" = xyes; then
12346 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12348 echo "local: *; };" >> $output_objdir/$libname.ver~
12349 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12350 fi
12351 ;;
12352 *)
12353 case `$CC -V 2>&1 | sed 5q` in
12354 *Sun\ C*)
12355 # Sun C++ 5.9
12356 no_undefined_flag_CXX=' -zdefs'
12357 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12358 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'
12359 hardcode_libdir_flag_spec_CXX='-R$libdir'
12360 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'
12361 compiler_needs_object_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012362
jimblandy92b1f832009-12-23 22:23:49 +000012363 # Not sure whether something based on
12364 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12365 # would be better.
12366 output_verbose_link_cmd='echo'
12367
12368 # Archives containing C++ object files must be created using
12369 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12370 # necessary to make sure instantiated templates are included
12371 # in the archive.
12372 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12373 ;;
12374 esac
12375 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012376 esac
brynercb91a2f2006-08-25 21:14:45 +000012377 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012378
jimblandy92b1f832009-12-23 22:23:49 +000012379 lynxos*)
12380 # FIXME: insert proper C++ library support
12381 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012382 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012383
12384 m88k*)
12385 # FIXME: insert proper C++ library support
12386 ld_shlibs_CXX=no
12387 ;;
12388
12389 mvs*)
12390 case $cc_basename in
12391 cxx*)
12392 # FIXME: insert proper C++ library support
12393 ld_shlibs_CXX=no
12394 ;;
12395 *)
12396 # FIXME: insert proper C++ library support
12397 ld_shlibs_CXX=no
12398 ;;
12399 esac
12400 ;;
12401
12402 netbsd*)
12403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12404 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12405 wlarc=
ted.mielczarek1adb1842009-12-21 13:12:20 +000012406 hardcode_libdir_flag_spec_CXX='-R$libdir'
jimblandy92b1f832009-12-23 22:23:49 +000012407 hardcode_direct_CXX=yes
12408 hardcode_shlibpath_var_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012409 fi
jimblandy92b1f832009-12-23 22:23:49 +000012410 # Workaround some broken pre-1.5 toolchains
12411 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 +000012412 ;;
brynercb91a2f2006-08-25 21:14:45 +000012413
jimblandy92b1f832009-12-23 22:23:49 +000012414 *nto* | *qnx*)
12415 ld_shlibs_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012416 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012417
12418 openbsd2*)
12419 # C++ shared libraries are fairly broken
brynercb91a2f2006-08-25 21:14:45 +000012420 ld_shlibs_CXX=no
12421 ;;
brynercb91a2f2006-08-25 21:14:45 +000012422
jimblandy92b1f832009-12-23 22:23:49 +000012423 openbsd*)
12424 if test -f /usr/libexec/ld.so; then
12425 hardcode_direct_CXX=yes
12426 hardcode_shlibpath_var_CXX=no
12427 hardcode_direct_absolute_CXX=yes
12428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12431 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12432 export_dynamic_flag_spec_CXX='${wl}-E'
12433 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
brynercb91a2f2006-08-25 21:14:45 +000012434 fi
jimblandy92b1f832009-12-23 22:23:49 +000012435 output_verbose_link_cmd=echo
12436 else
12437 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012438 fi
12439 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012440
jimblandy92b1f832009-12-23 22:23:49 +000012441 osf3* | osf4* | osf5*)
12442 case $cc_basename in
12443 KCC*)
12444 # Kuck and Associates, Inc. (KAI) C++ Compiler
12445
12446 # KCC will only create a shared library if the output file
12447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12448 # to its proper name (with version) after linking.
12449 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'
12450
12451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12452 hardcode_libdir_separator_CXX=:
12453
12454 # Archives containing C++ object files must be created using
12455 # the KAI C++ compiler.
12456 case $host in
12457 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12458 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12459 esac
12460 ;;
12461 RCC*)
12462 # Rational C++ 2.4.1
12463 # FIXME: insert proper C++ library support
12464 ld_shlibs_CXX=no
12465 ;;
12466 cxx*)
12467 case $host in
12468 osf3*)
12469 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12470 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'
12471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12472 ;;
12473 *)
12474 allow_undefined_flag_CXX=' -expect_unresolved \*'
12475 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'
12476 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12477 echo "-hidden">> $lib.exp~
12478 $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~
12479 $RM $lib.exp'
12480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12481 ;;
12482 esac
12483
12484 hardcode_libdir_separator_CXX=:
12485
12486 # Commands to make compiler produce verbose output that lists
12487 # what "hidden" libraries, object files and flags are used when
12488 # linking a shared library.
12489 #
12490 # There doesn't appear to be a way to prevent this compiler from
12491 # explicitly linking system object files so we need to strip them
12492 # from the output so that they don't get included in the library
12493 # dependencies.
12494 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'
12495 ;;
12496 *)
12497 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12498 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12499 case $host in
12500 osf3*)
12501 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'
12502 ;;
12503 *)
12504 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'
12505 ;;
12506 esac
12507
12508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12509 hardcode_libdir_separator_CXX=:
12510
12511 # Commands to make compiler produce verbose output that lists
12512 # what "hidden" libraries, object files and flags are used when
12513 # linking a shared library.
12514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12515
12516 else
12517 # FIXME: insert proper C++ library support
12518 ld_shlibs_CXX=no
12519 fi
12520 ;;
12521 esac
12522 ;;
12523
12524 psos*)
12525 # FIXME: insert proper C++ library support
12526 ld_shlibs_CXX=no
12527 ;;
12528
12529 sunos4*)
12530 case $cc_basename in
12531 CC*)
12532 # Sun C++ 4.x
12533 # FIXME: insert proper C++ library support
12534 ld_shlibs_CXX=no
12535 ;;
12536 lcc*)
12537 # Lucid
12538 # FIXME: insert proper C++ library support
12539 ld_shlibs_CXX=no
12540 ;;
12541 *)
12542 # FIXME: insert proper C++ library support
12543 ld_shlibs_CXX=no
12544 ;;
12545 esac
12546 ;;
12547
12548 solaris*)
12549 case $cc_basename in
12550 CC*)
12551 # Sun C++ 4.2, 5.x and Centerline C++
12552 archive_cmds_need_lc_CXX=yes
12553 no_undefined_flag_CXX=' -zdefs'
12554 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12556 $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'
12557
12558 hardcode_libdir_flag_spec_CXX='-R$libdir'
12559 hardcode_shlibpath_var_CXX=no
12560 case $host_os in
12561 solaris2.[0-5] | solaris2.[0-5].*) ;;
12562 *)
12563 # The compiler driver will combine and reorder linker options,
12564 # but understands `-z linker_flag'.
12565 # Supported since Solaris 2.6 (maybe 2.5.1?)
12566 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12567 ;;
12568 esac
12569 link_all_deplibs_CXX=yes
12570
12571 output_verbose_link_cmd='echo'
12572
12573 # Archives containing C++ object files must be created using
12574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12575 # necessary to make sure instantiated templates are included
12576 # in the archive.
12577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12578 ;;
12579 gcx*)
12580 # Green Hills C++ Compiler
12581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12582
12583 # The C++ compiler must be used to create the archive.
12584 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12585 ;;
12586 *)
12587 # GNU C++ compiler with Solaris linker
12588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12589 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12590 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12591 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12593 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12594
12595 # Commands to make compiler produce verbose output that lists
12596 # what "hidden" libraries, object files and flags are used when
12597 # linking a shared library.
12598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12599 else
12600 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12601 # platform.
12602 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12603 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12604 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12605
12606 # Commands to make compiler produce verbose output that lists
12607 # what "hidden" libraries, object files and flags are used when
12608 # linking a shared library.
12609 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12610 fi
12611
12612 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12613 case $host_os in
12614 solaris2.[0-5] | solaris2.[0-5].*) ;;
12615 *)
12616 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12617 ;;
12618 esac
12619 fi
12620 ;;
12621 esac
12622 ;;
12623
12624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12625 no_undefined_flag_CXX='${wl}-z,text'
12626 archive_cmds_need_lc_CXX=no
12627 hardcode_shlibpath_var_CXX=no
12628 runpath_var='LD_RUN_PATH'
12629
12630 case $cc_basename in
12631 CC*)
12632 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12633 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12634 ;;
12635 *)
12636 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12637 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12638 ;;
12639 esac
12640 ;;
12641
12642 sysv5* | sco3.2v5* | sco5v6*)
12643 # Note: We can NOT use -z defs as we might desire, because we do not
12644 # link with -lc, and that would cause any symbols used from libc to
12645 # always be unresolved, which means just about no library would
12646 # ever link correctly. If we're not using GNU ld we use -z text
12647 # though, which does catch some bad symbols but isn't as heavy-handed
12648 # as -z defs.
12649 no_undefined_flag_CXX='${wl}-z,text'
12650 allow_undefined_flag_CXX='${wl}-z,nodefs'
12651 archive_cmds_need_lc_CXX=no
12652 hardcode_shlibpath_var_CXX=no
12653 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12654 hardcode_libdir_separator_CXX=':'
12655 link_all_deplibs_CXX=yes
12656 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12657 runpath_var='LD_RUN_PATH'
12658
12659 case $cc_basename in
12660 CC*)
12661 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12662 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12663 ;;
12664 *)
12665 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667 ;;
12668 esac
12669 ;;
12670
12671 tandem*)
12672 case $cc_basename in
12673 NCC*)
12674 # NonStop-UX NCC 3.20
12675 # FIXME: insert proper C++ library support
12676 ld_shlibs_CXX=no
12677 ;;
12678 *)
12679 # FIXME: insert proper C++ library support
12680 ld_shlibs_CXX=no
12681 ;;
12682 esac
12683 ;;
12684
12685 vxworks*)
12686 # FIXME: insert proper C++ library support
12687 ld_shlibs_CXX=no
12688 ;;
12689
mmentovai8c2a4de2006-09-20 16:20:15 +000012690 *)
jimblandy92b1f832009-12-23 22:23:49 +000012691 # FIXME: insert proper C++ library support
12692 ld_shlibs_CXX=no
12693 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012694 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012695
jimblandy92b1f832009-12-23 22:23:49 +000012696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12697$as_echo "$ld_shlibs_CXX" >&6; }
12698 test "$ld_shlibs_CXX" = no && can_build_shared=no
brynercb91a2f2006-08-25 21:14:45 +000012699
jimblandy92b1f832009-12-23 22:23:49 +000012700 GCC_CXX="$GXX"
12701 LD_CXX="$LD"
brynercb91a2f2006-08-25 21:14:45 +000012702
jimblandy92b1f832009-12-23 22:23:49 +000012703 ## CAVEAT EMPTOR:
12704 ## There is no encapsulation within the following macros, do not change
12705 ## the running order or otherwise move them around unless you know exactly
12706 ## what you are doing...
12707 # Dependencies to place before and after the object being linked:
12708predep_objects_CXX=
12709postdep_objects_CXX=
12710predeps_CXX=
12711postdeps_CXX=
12712compiler_lib_search_path_CXX=
12713
12714cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012715class Foo
12716{
12717public:
12718 Foo (void) { a = 0; }
12719private:
12720 int a;
12721};
jimblandy92b1f832009-12-23 22:23:49 +000012722_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012723
jimblandy92b1f832009-12-23 22:23:49 +000012724if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000012725 (eval $ac_compile) 2>&5
12726 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000012727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12728 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +000012729 # Parse the compiler output and extract the necessary
12730 # objects, libraries and library flags.
12731
12732 # Sentinel used to keep track of whether or not we are before
12733 # the conftest object file.
12734 pre_test_object_deps_done=no
12735
jimblandy92b1f832009-12-23 22:23:49 +000012736 for p in `eval "$output_verbose_link_cmd"`; do
brynercb91a2f2006-08-25 21:14:45 +000012737 case $p in
12738
12739 -L* | -R* | -l*)
12740 # Some compilers place space between "-{L,R}" and the path.
12741 # Remove the space.
jimblandy92b1f832009-12-23 22:23:49 +000012742 if test $p = "-L" ||
12743 test $p = "-R"; then
brynercb91a2f2006-08-25 21:14:45 +000012744 prev=$p
12745 continue
12746 else
12747 prev=
12748 fi
12749
12750 if test "$pre_test_object_deps_done" = no; then
12751 case $p in
12752 -L* | -R*)
12753 # Internal compiler library paths should come after those
12754 # provided the user. The postdeps already come after the
12755 # user supplied libs so there is no need to process them.
12756 if test -z "$compiler_lib_search_path_CXX"; then
12757 compiler_lib_search_path_CXX="${prev}${p}"
12758 else
12759 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12760 fi
12761 ;;
12762 # The "-l" case would never come before the object being
12763 # linked, so don't bother handling this case.
12764 esac
12765 else
12766 if test -z "$postdeps_CXX"; then
12767 postdeps_CXX="${prev}${p}"
12768 else
12769 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12770 fi
12771 fi
12772 ;;
12773
12774 *.$objext)
12775 # This assumes that the test object file only shows up
12776 # once in the compiler output.
12777 if test "$p" = "conftest.$objext"; then
12778 pre_test_object_deps_done=yes
12779 continue
12780 fi
12781
12782 if test "$pre_test_object_deps_done" = no; then
12783 if test -z "$predep_objects_CXX"; then
12784 predep_objects_CXX="$p"
12785 else
12786 predep_objects_CXX="$predep_objects_CXX $p"
12787 fi
12788 else
12789 if test -z "$postdep_objects_CXX"; then
12790 postdep_objects_CXX="$p"
12791 else
12792 postdep_objects_CXX="$postdep_objects_CXX $p"
12793 fi
12794 fi
12795 ;;
12796
12797 *) ;; # Ignore the rest.
12798
12799 esac
12800 done
12801
12802 # Clean up.
12803 rm -f a.out a.exe
12804else
12805 echo "libtool.m4: error: problem compiling CXX test program"
12806fi
12807
jimblandy92b1f832009-12-23 22:23:49 +000012808$RM -f confest.$objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012809
mmentovai8c2a4de2006-09-20 16:20:15 +000012810# PORTME: override above test on systems where it is broken
12811case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012812interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012813 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12814 # hack all around it, let's just trust "g++" to DTRT.
12815 predep_objects_CXX=
12816 postdep_objects_CXX=
12817 postdeps_CXX=
12818 ;;
12819
ted.mielczarek1adb1842009-12-21 13:12:20 +000012820linux*)
12821 case `$CC -V 2>&1 | sed 5q` in
12822 *Sun\ C*)
12823 # Sun C++ 5.9
jimblandy92b1f832009-12-23 22:23:49 +000012824
ted.mielczarek1adb1842009-12-21 13:12:20 +000012825 # The more standards-conforming stlport4 library is
12826 # incompatible with the Cstd library. Avoid specifying
12827 # it if it's in CXXFLAGS. Ignore libCrun as
12828 # -library=stlport4 depends on it.
12829 case " $CXX $CXXFLAGS " in
12830 *" -library=stlport4 "*)
12831 solaris_use_stlport4=yes
12832 ;;
12833 esac
jimblandy92b1f832009-12-23 22:23:49 +000012834
ted.mielczarek1adb1842009-12-21 13:12:20 +000012835 if test "$solaris_use_stlport4" != yes; then
12836 postdeps_CXX='-library=Cstd -library=Crun'
12837 fi
12838 ;;
12839 esac
12840 ;;
12841
mmentovai8c2a4de2006-09-20 16:20:15 +000012842solaris*)
12843 case $cc_basename in
12844 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012845 # The more standards-conforming stlport4 library is
12846 # incompatible with the Cstd library. Avoid specifying
12847 # it if it's in CXXFLAGS. Ignore libCrun as
12848 # -library=stlport4 depends on it.
12849 case " $CXX $CXXFLAGS " in
12850 *" -library=stlport4 "*)
12851 solaris_use_stlport4=yes
12852 ;;
12853 esac
12854
mmentovai8c2a4de2006-09-20 16:20:15 +000012855 # Adding this requires a known-good setup of shared libraries for
12856 # Sun compiler versions before 5.6, else PIC objects from an old
12857 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012858 if test "$solaris_use_stlport4" != yes; then
12859 postdeps_CXX='-library=Cstd -library=Crun'
12860 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012861 ;;
12862 esac
12863 ;;
12864esac
12865
jimblandy92b1f832009-12-23 22:23:49 +000012866
brynercb91a2f2006-08-25 21:14:45 +000012867case " $postdeps_CXX " in
12868*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12869esac
jimblandy92b1f832009-12-23 22:23:49 +000012870 compiler_lib_search_dirs_CXX=
12871if test -n "${compiler_lib_search_path_CXX}"; then
12872 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12873fi
brynercb91a2f2006-08-25 21:14:45 +000012874
jimblandy92b1f832009-12-23 22:23:49 +000012875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905 lt_prog_compiler_wl_CXX=
brynercb91a2f2006-08-25 21:14:45 +000012906lt_prog_compiler_pic_CXX=
12907lt_prog_compiler_static_CXX=
12908
jimblandy92b1f832009-12-23 22:23:49 +000012909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12910$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012911
12912 # C++ specific cases for pic, static, wl, etc.
12913 if test "$GXX" = yes; then
12914 lt_prog_compiler_wl_CXX='-Wl,'
12915 lt_prog_compiler_static_CXX='-static'
12916
12917 case $host_os in
12918 aix*)
12919 # All AIX code is PIC.
12920 if test "$host_cpu" = ia64; then
12921 # AIX 5 now supports IA64 processor
12922 lt_prog_compiler_static_CXX='-Bstatic'
12923 fi
12924 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012925
brynercb91a2f2006-08-25 21:14:45 +000012926 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000012927 case $host_cpu in
12928 powerpc)
12929 # see comment about AmigaOS4 .so support
12930 lt_prog_compiler_pic_CXX='-fPIC'
12931 ;;
12932 m68k)
12933 # FIXME: we need at least 68020 code to build shared libraries, but
12934 # adding the `-m68020' flag to GCC prevents building anything better,
12935 # like `-m68040'.
12936 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12937 ;;
12938 esac
brynercb91a2f2006-08-25 21:14:45 +000012939 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012940
ted.mielczarek1adb1842009-12-21 13:12:20 +000012941 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012942 # PIC is the default for these OSes.
12943 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012944 mingw* | cygwin* | os2* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000012945 # This hack is so that the source file can tell whether it is being
12946 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012947 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12948 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012949 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12950 ;;
12951 darwin* | rhapsody*)
12952 # PIC is the default on this platform
12953 # Common symbols not allowed in MH_DYLIB files
12954 lt_prog_compiler_pic_CXX='-fno-common'
12955 ;;
12956 *djgpp*)
12957 # DJGPP does not support shared libraries at all
12958 lt_prog_compiler_pic_CXX=
12959 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012960 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12962 # Instead, we relocate shared libraries at runtime.
12963 ;;
brynercb91a2f2006-08-25 21:14:45 +000012964 sysv4*MP*)
12965 if test -d /usr/nec; then
12966 lt_prog_compiler_pic_CXX=-Kconform_pic
12967 fi
12968 ;;
12969 hpux*)
jimblandy92b1f832009-12-23 22:23:49 +000012970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12972 # sets the default TLS model and affects inlining.
mmentovai8c2a4de2006-09-20 16:20:15 +000012973 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012974 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000012975 ;;
12976 *)
12977 lt_prog_compiler_pic_CXX='-fPIC'
12978 ;;
12979 esac
12980 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012981 *qnx* | *nto*)
12982 # QNX uses GNU C++, but need to define -shared option too, otherwise
12983 # it will coredump.
12984 lt_prog_compiler_pic_CXX='-fPIC -shared'
12985 ;;
brynercb91a2f2006-08-25 21:14:45 +000012986 *)
12987 lt_prog_compiler_pic_CXX='-fPIC'
12988 ;;
12989 esac
12990 else
12991 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012992 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012993 # All AIX code is PIC.
12994 if test "$host_cpu" = ia64; then
12995 # AIX 5 now supports IA64 processor
12996 lt_prog_compiler_static_CXX='-Bstatic'
12997 else
12998 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12999 fi
13000 ;;
13001 chorus*)
13002 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013003 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000013004 # Green Hills C++ Compiler
jimblandy92b1f832009-12-23 22:23:49 +000013005 # _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 +000013006 ;;
13007 esac
13008 ;;
13009 dgux*)
13010 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013011 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000013012 lt_prog_compiler_pic_CXX='-KPIC'
13013 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013014 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000013015 # Green Hills C++ Compiler
13016 lt_prog_compiler_pic_CXX='-pic'
13017 ;;
13018 *)
13019 ;;
13020 esac
13021 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013022 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000013023 # FreeBSD uses GNU C++
13024 ;;
13025 hpux9* | hpux10* | hpux11*)
13026 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013027 CC*)
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'
brynercb91a2f2006-08-25 21:14:45 +000013030 if test "$host_cpu" != ia64; then
13031 lt_prog_compiler_pic_CXX='+Z'
13032 fi
13033 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013034 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000013035 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000013036 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13037 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013038 hppa*64*|ia64*)
13039 # +Z the default
13040 ;;
13041 *)
13042 lt_prog_compiler_pic_CXX='+Z'
13043 ;;
13044 esac
13045 ;;
13046 *)
13047 ;;
13048 esac
13049 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013050 interix*)
13051 # This is c89, which is MS Visual C++ (no shared libs)
13052 # Anyone wants to do a port?
13053 ;;
brynercb91a2f2006-08-25 21:14:45 +000013054 irix5* | irix6* | nonstopux*)
13055 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013056 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013057 lt_prog_compiler_wl_CXX='-Wl,'
13058 lt_prog_compiler_static_CXX='-non_shared'
13059 # CC pic flag -KPIC is the default.
13060 ;;
13061 *)
13062 ;;
13063 esac
13064 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013066 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013067 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013068 # KAI C++ Compiler
13069 lt_prog_compiler_wl_CXX='--backend -Wl,'
13070 lt_prog_compiler_pic_CXX='-fPIC'
13071 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013072 ecpc* )
13073 # old Intel C++ for x86_64 which still supported -KPIC.
brynercb91a2f2006-08-25 21:14:45 +000013074 lt_prog_compiler_wl_CXX='-Wl,'
13075 lt_prog_compiler_pic_CXX='-KPIC'
13076 lt_prog_compiler_static_CXX='-static'
13077 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013078 icpc* )
13079 # Intel C++, used to be incompatible with GCC.
13080 # ICC 10 doesn't accept -KPIC any more.
13081 lt_prog_compiler_wl_CXX='-Wl,'
13082 lt_prog_compiler_pic_CXX='-fPIC'
13083 lt_prog_compiler_static_CXX='-static'
13084 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013085 pgCC* | pgcpp*)
jimblandy92b1f832009-12-23 22:23:49 +000013086 # Portland Group C++ compiler
mmentovai8c2a4de2006-09-20 16:20:15 +000013087 lt_prog_compiler_wl_CXX='-Wl,'
13088 lt_prog_compiler_pic_CXX='-fpic'
13089 lt_prog_compiler_static_CXX='-Bstatic'
13090 ;;
13091 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013092 # Compaq C++
13093 # Make sure the PIC flag is empty. It appears that all Alpha
13094 # Linux and Compaq Tru64 Unix objects are PIC.
13095 lt_prog_compiler_pic_CXX=
13096 lt_prog_compiler_static_CXX='-non_shared'
13097 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013098 xlc* | xlC*)
13099 # IBM XL 8.0 on PPC
13100 lt_prog_compiler_wl_CXX='-Wl,'
13101 lt_prog_compiler_pic_CXX='-qpic'
13102 lt_prog_compiler_static_CXX='-qstaticlink'
13103 ;;
brynercb91a2f2006-08-25 21:14:45 +000013104 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000013105 case `$CC -V 2>&1 | sed 5q` in
13106 *Sun\ C*)
13107 # Sun C++ 5.9
13108 lt_prog_compiler_pic_CXX='-KPIC'
13109 lt_prog_compiler_static_CXX='-Bstatic'
13110 lt_prog_compiler_wl_CXX='-Qoption ld '
13111 ;;
13112 esac
brynercb91a2f2006-08-25 21:14:45 +000013113 ;;
13114 esac
13115 ;;
13116 lynxos*)
13117 ;;
13118 m88k*)
13119 ;;
13120 mvs*)
13121 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013122 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013123 lt_prog_compiler_pic_CXX='-W c,exportall'
13124 ;;
13125 *)
13126 ;;
13127 esac
13128 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013129 netbsd* | netbsdelf*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013130 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013131 *qnx* | *nto*)
13132 # QNX uses GNU C++, but need to define -shared option too, otherwise
13133 # it will coredump.
13134 lt_prog_compiler_pic_CXX='-fPIC -shared'
13135 ;;
brynercb91a2f2006-08-25 21:14:45 +000013136 osf3* | osf4* | osf5*)
13137 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013138 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013139 lt_prog_compiler_wl_CXX='--backend -Wl,'
13140 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013141 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000013142 # Rational C++ 2.4.1
13143 lt_prog_compiler_pic_CXX='-pic'
13144 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013145 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013146 # Digital/Compaq C++
13147 lt_prog_compiler_wl_CXX='-Wl,'
13148 # Make sure the PIC flag is empty. It appears that all Alpha
13149 # Linux and Compaq Tru64 Unix objects are PIC.
13150 lt_prog_compiler_pic_CXX=
13151 lt_prog_compiler_static_CXX='-non_shared'
13152 ;;
13153 *)
13154 ;;
13155 esac
13156 ;;
13157 psos*)
13158 ;;
brynercb91a2f2006-08-25 21:14:45 +000013159 solaris*)
13160 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013161 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013162 # Sun C++ 4.2, 5.x and Centerline C++
13163 lt_prog_compiler_pic_CXX='-KPIC'
13164 lt_prog_compiler_static_CXX='-Bstatic'
13165 lt_prog_compiler_wl_CXX='-Qoption ld '
13166 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013167 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000013168 # Green Hills C++ Compiler
13169 lt_prog_compiler_pic_CXX='-PIC'
13170 ;;
13171 *)
13172 ;;
13173 esac
13174 ;;
13175 sunos4*)
13176 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013177 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013178 # Sun C++ 4.x
13179 lt_prog_compiler_pic_CXX='-pic'
13180 lt_prog_compiler_static_CXX='-Bstatic'
13181 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013182 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000013183 # Lucid
13184 lt_prog_compiler_pic_CXX='-pic'
13185 ;;
13186 *)
13187 ;;
13188 esac
13189 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13191 case $cc_basename in
13192 CC*)
13193 lt_prog_compiler_wl_CXX='-Wl,'
13194 lt_prog_compiler_pic_CXX='-KPIC'
13195 lt_prog_compiler_static_CXX='-Bstatic'
13196 ;;
13197 esac
13198 ;;
brynercb91a2f2006-08-25 21:14:45 +000013199 tandem*)
13200 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013201 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000013202 # NonStop-UX NCC 3.20
13203 lt_prog_compiler_pic_CXX='-KPIC'
13204 ;;
13205 *)
13206 ;;
13207 esac
13208 ;;
brynercb91a2f2006-08-25 21:14:45 +000013209 vxworks*)
13210 ;;
13211 *)
13212 lt_prog_compiler_can_build_shared_CXX=no
13213 ;;
13214 esac
13215 fi
13216
jimblandy92b1f832009-12-23 22:23:49 +000013217case $host_os in
13218 # For platforms which do not support PIC, -DPIC is meaningless:
13219 *djgpp*)
13220 lt_prog_compiler_pic_CXX=
13221 ;;
13222 *)
13223 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13224 ;;
13225esac
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13227$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13228
13229
brynercb91a2f2006-08-25 21:14:45 +000013230
13231#
13232# Check to make sure the PIC flag actually works.
13233#
13234if test -n "$lt_prog_compiler_pic_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +000013235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13236$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13237if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013239else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013240 lt_cv_prog_compiler_pic_works_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013241 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000013242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013243 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13244 # Insert the option either (1) after the last *FLAGS variable, or
13245 # (2) before a word containing "conftest.", or (3) at the end.
13246 # Note that $ac_compile itself does not contain backslashes and begins
13247 # with a dollar sign (not a hyphen), so the echo should work correctly.
13248 # The option is referenced via a variable to avoid confusing sed.
13249 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13252 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000013253 (eval echo "\"\$as_me:13253: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013254 (eval "$lt_compile" 2>conftest.err)
13255 ac_status=$?
13256 cat conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000013257 echo "$as_me:13257: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013258 if (exit $ac_status) && test -s "$ac_outfile"; then
13259 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013260 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +000013261 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013264 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000013265 fi
13266 fi
jimblandy92b1f832009-12-23 22:23:49 +000013267 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013268
13269fi
jimblandy92b1f832009-12-23 22:23:49 +000013270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13271$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013272
ted.mielczarek1adb1842009-12-21 13:12:20 +000013273if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000013274 case $lt_prog_compiler_pic_CXX in
13275 "" | " "*) ;;
13276 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13277 esac
13278else
13279 lt_prog_compiler_pic_CXX=
13280 lt_prog_compiler_can_build_shared_CXX=no
13281fi
13282
13283fi
jimblandy92b1f832009-12-23 22:23:49 +000013284
13285
brynercb91a2f2006-08-25 21:14:45 +000013286
mmentovai8c2a4de2006-09-20 16:20:15 +000013287#
13288# Check to make sure the static flag actually works.
13289#
13290wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
jimblandy92b1f832009-12-23 22:23:49 +000013291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13292$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13293if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +000013295else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013296 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013297 save_LDFLAGS="$LDFLAGS"
13298 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000013299 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000013300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13301 # The linker can only warn and ignore the option if not recognized
13302 # So say no if there are warnings
13303 if test -s conftest.err; then
13304 # Append any errors to the config.log.
13305 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +000013306 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13308 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013309 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013310 fi
13311 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013312 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013313 fi
13314 fi
jimblandy92b1f832009-12-23 22:23:49 +000013315 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000013316 LDFLAGS="$save_LDFLAGS"
13317
13318fi
jimblandy92b1f832009-12-23 22:23:49 +000013319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13320$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000013321
ted.mielczarek1adb1842009-12-21 13:12:20 +000013322if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013323 :
13324else
13325 lt_prog_compiler_static_CXX=
13326fi
13327
13328
jimblandy92b1f832009-12-23 22:23:49 +000013329
13330
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13332$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13333if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013335else
13336 lt_cv_prog_compiler_c_o_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013337 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000013338 mkdir conftest
13339 cd conftest
13340 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000013341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013342
13343 lt_compiler_flag="-o out/conftest2.$ac_objext"
13344 # Insert the option either (1) after the last *FLAGS variable, or
13345 # (2) before a word containing "conftest.", or (3) at the end.
13346 # Note that $ac_compile itself does not contain backslashes and begins
13347 # with a dollar sign (not a hyphen), so the echo should work correctly.
13348 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13351 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000013352 (eval echo "\"\$as_me:13352: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013353 (eval "$lt_compile" 2>out/conftest.err)
13354 ac_status=$?
13355 cat out/conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000013356 echo "$as_me:13356: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13358 then
13359 # The compiler can only warn and ignore the option if not recognized
13360 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +000013361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013364 lt_cv_prog_compiler_c_o_CXX=yes
13365 fi
13366 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013367 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +000013368 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013369 # SGI C++ compiler will create directory out/ii_files/ for
13370 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +000013371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13372 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +000013373 cd ..
jimblandy92b1f832009-12-23 22:23:49 +000013374 $RM -r conftest
13375 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013376
13377fi
jimblandy92b1f832009-12-23 22:23:49 +000013378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13379$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13380
13381
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13384$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13385if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387else
13388 lt_cv_prog_compiler_c_o_CXX=no
13389 $RM -r conftest 2>/dev/null
13390 mkdir conftest
13391 cd conftest
13392 mkdir out
13393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13394
13395 lt_compiler_flag="-o out/conftest2.$ac_objext"
13396 # Insert the option either (1) after the last *FLAGS variable, or
13397 # (2) before a word containing "conftest.", or (3) at the end.
13398 # Note that $ac_compile itself does not contain backslashes and begins
13399 # with a dollar sign (not a hyphen), so the echo should work correctly.
13400 lt_compile=`echo "$ac_compile" | $SED \
13401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13403 -e 's:$: $lt_compiler_flag:'`
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000013404 (eval echo "\"\$as_me:13404: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +000013405 (eval "$lt_compile" 2>out/conftest.err)
13406 ac_status=$?
13407 cat out/conftest.err >&5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000013408 echo "$as_me:13408: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +000013409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13410 then
13411 # The compiler can only warn and ignore the option if not recognized
13412 # So say no if there are warnings
13413 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13416 lt_cv_prog_compiler_c_o_CXX=yes
13417 fi
13418 fi
13419 chmod u+w . 2>&5
13420 $RM conftest*
13421 # SGI C++ compiler will create directory out/ii_files/ for
13422 # template instantiation
13423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13424 $RM out/* && rmdir out
13425 cd ..
13426 $RM -r conftest
13427 $RM conftest*
13428
13429fi
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13431$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13432
13433
brynercb91a2f2006-08-25 21:14:45 +000013434
13435
13436hard_links="nottested"
13437if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13438 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +000013439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13440$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013441 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +000013442 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13444 touch conftest.a
13445 ln conftest.a conftest.b 2>&5 || hard_links=no
13446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +000013447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13448$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013449 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +000013450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13451$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000013452 need_locks=warn
13453 fi
13454else
13455 need_locks=no
13456fi
13457
jimblandy92b1f832009-12-23 22:23:49 +000013458
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13461$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013462
13463 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13464 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000013465 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013466 # If we're using GNU nm, then we don't want the "-C" option.
13467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +000013468 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13469 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 +000013470 else
jimblandy92b1f832009-12-23 22:23:49 +000013471 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 +000013472 fi
13473 ;;
13474 pw32*)
13475 export_symbols_cmds_CXX="$ltdll_cmds"
13476 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013477 cygwin* | mingw* | cegcc*)
13478 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'
13479 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013480 linux* | k*bsd*-gnu)
13481 link_all_deplibs_CXX=no
13482 ;;
brynercb91a2f2006-08-25 21:14:45 +000013483 *)
13484 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13485 ;;
13486 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000013487 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000013488
jimblandy92b1f832009-12-23 22:23:49 +000013489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13490$as_echo "$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013491test "$ld_shlibs_CXX" = no && can_build_shared=no
13492
jimblandy92b1f832009-12-23 22:23:49 +000013493with_gnu_ld_CXX=$with_gnu_ld
13494
13495
13496
13497
13498
13499
brynercb91a2f2006-08-25 21:14:45 +000013500#
13501# Do we need to explicitly link libc?
13502#
13503case "x$archive_cmds_need_lc_CXX" in
13504x|xyes)
13505 # Assume -lc should be added
13506 archive_cmds_need_lc_CXX=yes
13507
13508 if test "$enable_shared" = yes && test "$GCC" = yes; then
13509 case $archive_cmds_CXX in
13510 *'~'*)
13511 # FIXME: we may have to deal with multi-command sequences.
13512 ;;
13513 '$CC '*)
13514 # Test whether the compiler implicitly links with -lc since on some
13515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13516 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +000013517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13518$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13519 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000013520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013521
jimblandy92b1f832009-12-23 22:23:49 +000013522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000013523 (eval $ac_compile) 2>&5
13524 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13526 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013527 soname=conftest
13528 lib=conftest
13529 libobjs=conftest.$ac_objext
13530 deplibs=
13531 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000013532 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000013533 compiler_flags=-v
13534 linker_flags=-v
13535 verstring=
13536 output_objdir=.
13537 libname=conftest
13538 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13539 allow_undefined_flag_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000013540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13541 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013542 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13544 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +000013545 then
13546 archive_cmds_need_lc_CXX=no
13547 else
13548 archive_cmds_need_lc_CXX=yes
13549 fi
13550 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13551 else
13552 cat conftest.err 1>&5
13553 fi
jimblandy92b1f832009-12-23 22:23:49 +000013554 $RM conftest*
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13556$as_echo "$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013557 ;;
13558 esac
13559 fi
13560 ;;
13561esac
13562
jimblandy92b1f832009-12-23 22:23:49 +000013563
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
13620
13621
13622
13623
13624
13625
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13627$as_echo_n "checking dynamic linker characteristics... " >&6; }
13628
brynercb91a2f2006-08-25 21:14:45 +000013629library_names_spec=
13630libname_spec='lib$name'
13631soname_spec=
13632shrext_cmds=".so"
13633postinstall_cmds=
13634postuninstall_cmds=
13635finish_cmds=
13636finish_eval=
13637shlibpath_var=
13638shlibpath_overrides_runpath=unknown
13639version_type=none
13640dynamic_linker="$host_os ld.so"
13641sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013642need_lib_prefix=unknown
13643hardcode_into_libs=no
13644
13645# when you set need_version to no, make sure it does not cause -set_version
13646# flags to be left without arguments
13647need_version=unknown
13648
13649case $host_os in
13650aix3*)
13651 version_type=linux
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13653 shlibpath_var=LIBPATH
13654
13655 # AIX 3 has no versioning support, so we append a major version to the name.
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 ;;
13658
ted.mielczarek1adb1842009-12-21 13:12:20 +000013659aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013660 version_type=linux
13661 need_lib_prefix=no
13662 need_version=no
13663 hardcode_into_libs=yes
13664 if test "$host_cpu" = ia64; then
13665 # AIX 5 supports IA64
13666 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13667 shlibpath_var=LD_LIBRARY_PATH
13668 else
13669 # With GCC up to 2.95.x, collect2 would create an import file
13670 # for dependence libraries. The import file would start with
13671 # the line `#! .'. This would cause the generated library to
13672 # depend on `.', always an invalid library. This was fixed in
13673 # development snapshots of GCC prior to 3.0.
13674 case $host_os in
13675 aix4 | aix4.[01] | aix4.[01].*)
13676 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13677 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000013678 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013679 :
13680 else
13681 can_build_shared=no
13682 fi
13683 ;;
13684 esac
13685 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13686 # soname into executable. Probably we can add versioning support to
13687 # collect2, so additional links can be useful in future.
13688 if test "$aix_use_runtimelinking" = yes; then
13689 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13690 # instead of lib<name>.a to let people know that these are not
13691 # typical AIX shared libraries.
13692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693 else
13694 # We preserve .a as extension for shared libraries through AIX4.2
13695 # and later when we are not doing run time linking.
13696 library_names_spec='${libname}${release}.a $libname.a'
13697 soname_spec='${libname}${release}${shared_ext}$major'
13698 fi
13699 shlibpath_var=LIBPATH
13700 fi
13701 ;;
13702
13703amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000013704 case $host_cpu in
13705 powerpc)
13706 # Since July 2007 AmigaOS4 officially supports .so libraries.
13707 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13709 ;;
13710 m68k)
13711 library_names_spec='$libname.ixlibrary $libname.a'
13712 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13713 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'
13714 ;;
13715 esac
brynercb91a2f2006-08-25 21:14:45 +000013716 ;;
13717
13718beos*)
13719 library_names_spec='${libname}${shared_ext}'
13720 dynamic_linker="$host_os ld.so"
13721 shlibpath_var=LIBRARY_PATH
13722 ;;
13723
mmentovai8c2a4de2006-09-20 16:20:15 +000013724bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013725 version_type=linux
13726 need_version=no
13727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13728 soname_spec='${libname}${release}${shared_ext}$major'
13729 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13730 shlibpath_var=LD_LIBRARY_PATH
13731 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13732 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13733 # the default ld.so.conf also contains /usr/contrib/lib and
13734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13735 # libtool to hard-code these into programs
13736 ;;
13737
jimblandy92b1f832009-12-23 22:23:49 +000013738cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013739 version_type=windows
13740 shrext_cmds=".dll"
13741 need_version=no
13742 need_lib_prefix=no
13743
13744 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013745 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013746 library_names_spec='$libname.dll.a'
13747 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13748 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000013749 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000013750 dldir=$destdir/`dirname \$dlpath`~
13751 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013752 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000013753 chmod a+x \$dldir/$dlname~
13754 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13755 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13756 fi'
brynercb91a2f2006-08-25 21:14:45 +000013757 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13758 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000013759 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000013760 shlibpath_overrides_runpath=yes
13761
13762 case $host_os in
13763 cygwin*)
13764 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13765 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13766 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13767 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013768 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013769 # MinGW DLLs use traditional 'lib' prefix
13770 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000013771 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13772 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013773 # It is most probably a Windows format PATH printed by
13774 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13775 # path with ; separators, and with drive letters. We can handle the
13776 # drive letters (cygwin fileutils understands them), so leave them,
13777 # especially as we might pass files found there to a mingw objdump,
13778 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000013779 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000013780 else
jimblandy92b1f832009-12-23 22:23:49 +000013781 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000013782 fi
13783 ;;
13784 pw32*)
13785 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013786 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 +000013787 ;;
13788 esac
13789 ;;
13790
13791 *)
13792 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13793 ;;
13794 esac
13795 dynamic_linker='Win32 ld.exe'
13796 # FIXME: first we should search . and the directory the executable is in
13797 shlibpath_var=PATH
13798 ;;
13799
13800darwin* | rhapsody*)
13801 dynamic_linker="$host_os dyld"
13802 version_type=darwin
13803 need_lib_prefix=no
13804 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013805 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000013806 soname_spec='${libname}${release}${major}$shared_ext'
13807 shlibpath_overrides_runpath=yes
13808 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013809 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013810
brynercb91a2f2006-08-25 21:14:45 +000013811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13812 ;;
13813
13814dgux*)
13815 version_type=linux
13816 need_lib_prefix=no
13817 need_version=no
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13819 soname_spec='${libname}${release}${shared_ext}$major'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 ;;
13822
13823freebsd1*)
13824 dynamic_linker=no
13825 ;;
13826
mmentovai8c2a4de2006-09-20 16:20:15 +000013827freebsd* | dragonfly*)
13828 # DragonFly does not have aout. When/if they implement a new
13829 # versioning mechanism, adjust this.
13830 if test -x /usr/bin/objformat; then
13831 objformat=`/usr/bin/objformat`
13832 else
13833 case $host_os in
13834 freebsd[123]*) objformat=aout ;;
13835 *) objformat=elf ;;
13836 esac
13837 fi
brynercb91a2f2006-08-25 21:14:45 +000013838 version_type=freebsd-$objformat
13839 case $version_type in
13840 freebsd-elf*)
13841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13842 need_version=no
13843 need_lib_prefix=no
13844 ;;
13845 freebsd-*)
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13847 need_version=yes
13848 ;;
13849 esac
13850 shlibpath_var=LD_LIBRARY_PATH
13851 case $host_os in
13852 freebsd2*)
13853 shlibpath_overrides_runpath=yes
13854 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013855 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013856 shlibpath_overrides_runpath=yes
13857 hardcode_into_libs=yes
13858 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013859 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13860 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013861 shlibpath_overrides_runpath=no
13862 hardcode_into_libs=yes
13863 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013864 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013865 shlibpath_overrides_runpath=yes
13866 hardcode_into_libs=yes
13867 ;;
brynercb91a2f2006-08-25 21:14:45 +000013868 esac
13869 ;;
13870
13871gnu*)
13872 version_type=linux
13873 need_lib_prefix=no
13874 need_version=no
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13876 soname_spec='${libname}${release}${shared_ext}$major'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 hardcode_into_libs=yes
13879 ;;
13880
13881hpux9* | hpux10* | hpux11*)
13882 # Give a soname corresponding to the major version so that dld.sl refuses to
13883 # link against other versions.
13884 version_type=sunos
13885 need_lib_prefix=no
13886 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013887 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013888 ia64*)
13889 shrext_cmds='.so'
13890 hardcode_into_libs=yes
13891 dynamic_linker="$host_os dld.so"
13892 shlibpath_var=LD_LIBRARY_PATH
13893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895 soname_spec='${libname}${release}${shared_ext}$major'
13896 if test "X$HPUX_IA64_MODE" = X32; then
13897 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13898 else
13899 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13900 fi
13901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13902 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013903 hppa*64*)
13904 shrext_cmds='.sl'
13905 hardcode_into_libs=yes
13906 dynamic_linker="$host_os dld.sl"
13907 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910 soname_spec='${libname}${release}${shared_ext}$major'
13911 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13913 ;;
13914 *)
brynercb91a2f2006-08-25 21:14:45 +000013915 shrext_cmds='.sl'
13916 dynamic_linker="$host_os dld.sl"
13917 shlibpath_var=SHLIB_PATH
13918 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 soname_spec='${libname}${release}${shared_ext}$major'
13921 ;;
13922 esac
13923 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13924 postinstall_cmds='chmod 555 $lib'
13925 ;;
13926
ted.mielczarek1adb1842009-12-21 13:12:20 +000013927interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013928 version_type=linux
13929 need_lib_prefix=no
13930 need_version=no
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 shlibpath_overrides_runpath=no
13936 hardcode_into_libs=yes
13937 ;;
13938
brynercb91a2f2006-08-25 21:14:45 +000013939irix5* | irix6* | nonstopux*)
13940 case $host_os in
13941 nonstopux*) version_type=nonstopux ;;
13942 *)
13943 if test "$lt_cv_prog_gnu_ld" = yes; then
13944 version_type=linux
13945 else
13946 version_type=irix
13947 fi ;;
13948 esac
13949 need_lib_prefix=no
13950 need_version=no
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13953 case $host_os in
13954 irix5* | nonstopux*)
13955 libsuff= shlibsuff=
13956 ;;
13957 *)
13958 case $LD in # libtool.m4 will add one of these switches to LD
13959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13960 libsuff= shlibsuff= libmagic=32-bit;;
13961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13962 libsuff=32 shlibsuff=N32 libmagic=N32;;
13963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13965 *) libsuff= shlibsuff= libmagic=never-match;;
13966 esac
13967 ;;
13968 esac
13969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13970 shlibpath_overrides_runpath=no
13971 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13972 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13973 hardcode_into_libs=yes
13974 ;;
13975
13976# No shared lib support for Linux oldld, aout, or coff.
13977linux*oldld* | linux*aout* | linux*coff*)
13978 dynamic_linker=no
13979 ;;
13980
13981# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000013982linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013983 version_type=linux
13984 need_lib_prefix=no
13985 need_version=no
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000013991 # Some binutils ld are patched to set DT_RUNPATH
13992 save_LDFLAGS=$LDFLAGS
13993 save_libdir=$libdir
13994 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13995 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h. */
13998
13999int
14000main ()
14001{
14002
14003 ;
14004 return 0;
14005}
14006_ACEOF
14007if ac_fn_cxx_try_link "$LINENO"; then :
14008 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14009 shlibpath_overrides_runpath=yes
14010fi
14011fi
14012rm -f core conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LDFLAGS=$save_LDFLAGS
14015 libdir=$save_libdir
14016
brynercb91a2f2006-08-25 21:14:45 +000014017 # This implies no fast_install, which is unacceptable.
14018 # Some rework will be needed to allow for fast_install
14019 # before this can be enabled.
14020 hardcode_into_libs=yes
14021
14022 # Append ld.so.conf contents to the search path
14023 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000014024 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 +000014025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14026 fi
14027
14028 # We used to test for /lib/ld.so.1 and disable shared libraries on
14029 # powerpc, because MkLinux only supported shared libraries with the
14030 # GNU dynamic linker. Since this was broken with cross compilers,
14031 # most powerpc-linux boxes support dynamic linking these days and
14032 # people can always --disable-shared, the test was removed, and we
14033 # assume the GNU/Linux dynamic linker is in use.
14034 dynamic_linker='GNU/Linux ld.so'
14035 ;;
14036
ted.mielczarekb2236272010-04-08 23:06:23 +000014037netbsdelf*-gnu)
14038 version_type=linux
14039 need_lib_prefix=no
14040 need_version=no
14041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14042 soname_spec='${libname}${release}${shared_ext}$major'
14043 shlibpath_var=LD_LIBRARY_PATH
14044 shlibpath_overrides_runpath=no
14045 hardcode_into_libs=yes
14046 dynamic_linker='NetBSD ld.elf_so'
14047 ;;
14048
brynercb91a2f2006-08-25 21:14:45 +000014049netbsd*)
14050 version_type=sunos
14051 need_lib_prefix=no
14052 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000014053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14056 dynamic_linker='NetBSD (a.out) ld.so'
14057 else
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 dynamic_linker='NetBSD ld.elf_so'
14061 fi
14062 shlibpath_var=LD_LIBRARY_PATH
14063 shlibpath_overrides_runpath=yes
14064 hardcode_into_libs=yes
14065 ;;
14066
14067newsos6)
14068 version_type=linux
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070 shlibpath_var=LD_LIBRARY_PATH
14071 shlibpath_overrides_runpath=yes
14072 ;;
14073
jimblandy92b1f832009-12-23 22:23:49 +000014074*nto* | *qnx*)
14075 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000014076 need_lib_prefix=no
14077 need_version=no
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014081 shlibpath_overrides_runpath=no
14082 hardcode_into_libs=yes
14083 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000014084 ;;
14085
14086openbsd*)
14087 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000014088 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000014089 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14091 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000014092 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14093 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014094 esac
brynercb91a2f2006-08-25 21:14:45 +000014095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14097 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000014099 case $host_os in
14100 openbsd2.[89] | openbsd2.[89].*)
14101 shlibpath_overrides_runpath=no
14102 ;;
14103 *)
14104 shlibpath_overrides_runpath=yes
14105 ;;
14106 esac
14107 else
14108 shlibpath_overrides_runpath=yes
14109 fi
14110 ;;
14111
14112os2*)
14113 libname_spec='$name'
14114 shrext_cmds=".dll"
14115 need_lib_prefix=no
14116 library_names_spec='$libname${shared_ext} $libname.a'
14117 dynamic_linker='OS/2 ld.exe'
14118 shlibpath_var=LIBPATH
14119 ;;
14120
14121osf3* | osf4* | osf5*)
14122 version_type=osf
14123 need_lib_prefix=no
14124 need_version=no
14125 soname_spec='${libname}${release}${shared_ext}$major'
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14130 ;;
14131
ted.mielczarek1adb1842009-12-21 13:12:20 +000014132rdos*)
14133 dynamic_linker=no
14134 ;;
14135
brynercb91a2f2006-08-25 21:14:45 +000014136solaris*)
14137 version_type=linux
14138 need_lib_prefix=no
14139 need_version=no
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141 soname_spec='${libname}${release}${shared_ext}$major'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 shlibpath_overrides_runpath=yes
14144 hardcode_into_libs=yes
14145 # ldd complains unless libraries are executable
14146 postinstall_cmds='chmod +x $lib'
14147 ;;
14148
14149sunos4*)
14150 version_type=sunos
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14153 shlibpath_var=LD_LIBRARY_PATH
14154 shlibpath_overrides_runpath=yes
14155 if test "$with_gnu_ld" = yes; then
14156 need_lib_prefix=no
14157 fi
14158 need_version=yes
14159 ;;
14160
mmentovai8c2a4de2006-09-20 16:20:15 +000014161sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014162 version_type=linux
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164 soname_spec='${libname}${release}${shared_ext}$major'
14165 shlibpath_var=LD_LIBRARY_PATH
14166 case $host_vendor in
14167 sni)
14168 shlibpath_overrides_runpath=no
14169 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000014170 runpath_var=LD_RUN_PATH
14171 ;;
14172 siemens)
14173 need_lib_prefix=no
14174 ;;
14175 motorola)
14176 need_lib_prefix=no
14177 need_version=no
14178 shlibpath_overrides_runpath=no
14179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14180 ;;
14181 esac
14182 ;;
14183
14184sysv4*MP*)
14185 if test -d /usr/nec ;then
14186 version_type=linux
14187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14188 soname_spec='$libname${shared_ext}.$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 fi
14191 ;;
14192
mmentovai8c2a4de2006-09-20 16:20:15 +000014193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14194 version_type=freebsd-elf
14195 need_lib_prefix=no
14196 need_version=no
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14198 soname_spec='${libname}${release}${shared_ext}$major'
14199 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014200 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014201 hardcode_into_libs=yes
14202 if test "$with_gnu_ld" = yes; then
14203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014204 else
14205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014206 case $host_os in
14207 sco3.2v5*)
14208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14209 ;;
14210 esac
14211 fi
14212 sys_lib_dlsearch_path_spec='/usr/lib'
14213 ;;
14214
jimblandy92b1f832009-12-23 22:23:49 +000014215tpf*)
14216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14217 version_type=linux
14218 need_lib_prefix=no
14219 need_version=no
14220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14221 shlibpath_var=LD_LIBRARY_PATH
14222 shlibpath_overrides_runpath=no
14223 hardcode_into_libs=yes
14224 ;;
14225
brynercb91a2f2006-08-25 21:14:45 +000014226uts4*)
14227 version_type=linux
14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229 soname_spec='${libname}${release}${shared_ext}$major'
14230 shlibpath_var=LD_LIBRARY_PATH
14231 ;;
14232
14233*)
14234 dynamic_linker=no
14235 ;;
14236esac
jimblandy92b1f832009-12-23 22:23:49 +000014237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14238$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014239test "$dynamic_linker" = no && can_build_shared=no
14240
mmentovai8c2a4de2006-09-20 16:20:15 +000014241variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14242if test "$GCC" = yes; then
14243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14244fi
14245
jimblandy92b1f832009-12-23 22:23:49 +000014246if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14247 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14248fi
14249if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14250 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14251fi
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
14282
14283
14284
14285
14286
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14289$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014290hardcode_action_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000014291if test -n "$hardcode_libdir_flag_spec_CXX" ||
14292 test -n "$runpath_var_CXX" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000014293 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014294
jimblandy92b1f832009-12-23 22:23:49 +000014295 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000014296 if test "$hardcode_direct_CXX" != no &&
14297 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14298 # have to relink, otherwise we might link with an installed library
14299 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000014300 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
brynercb91a2f2006-08-25 21:14:45 +000014301 test "$hardcode_minus_L_CXX" != no; then
14302 # Linking always hardcodes the temporary library directory.
14303 hardcode_action_CXX=relink
14304 else
14305 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14306 hardcode_action_CXX=immediate
14307 fi
14308else
14309 # We cannot hardcode anything, or else we can only hardcode existing
14310 # directories.
14311 hardcode_action_CXX=unsupported
14312fi
jimblandy92b1f832009-12-23 22:23:49 +000014313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14314$as_echo "$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014315
jimblandy92b1f832009-12-23 22:23:49 +000014316if test "$hardcode_action_CXX" = relink ||
14317 test "$inherit_rpath_CXX" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014318 # Fast installation is not supported
14319 enable_fast_install=no
14320elif test "$shlibpath_overrides_runpath" = yes ||
14321 test "$enable_shared" = no; then
14322 # Fast installation is not necessary
14323 enable_fast_install=needless
14324fi
14325
brynercb91a2f2006-08-25 21:14:45 +000014326
brynercb91a2f2006-08-25 21:14:45 +000014327
brynercb91a2f2006-08-25 21:14:45 +000014328
brynercb91a2f2006-08-25 21:14:45 +000014329
brynercb91a2f2006-08-25 21:14:45 +000014330
brynercb91a2f2006-08-25 21:14:45 +000014331
jimblandy92b1f832009-12-23 22:23:49 +000014332 fi # test -n "$compiler"
brynercb91a2f2006-08-25 21:14:45 +000014333
jimblandy92b1f832009-12-23 22:23:49 +000014334 CC=$lt_save_CC
14335 LDCXX=$LD
14336 LD=$lt_save_LD
14337 GCC=$lt_save_GCC
14338 with_gnu_ld=$lt_save_with_gnu_ld
14339 lt_cv_path_LDCXX=$lt_cv_path_LD
14340 lt_cv_path_LD=$lt_save_path_LD
14341 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14342 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14343fi # test "$_lt_caught_CXX_error" != yes
brynercb91a2f2006-08-25 21:14:45 +000014344
14345ac_ext=c
14346ac_cpp='$CPP $CPPFLAGS'
14347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14349ac_compiler_gnu=$ac_cv_c_compiler_gnu
14350
brynercb91a2f2006-08-25 21:14:45 +000014351
14352
brynercb91a2f2006-08-25 21:14:45 +000014353
14354
mmentovai8c2a4de2006-09-20 16:20:15 +000014355
14356
brynercb91a2f2006-08-25 21:14:45 +000014357
brynercb91a2f2006-08-25 21:14:45 +000014358
mmentovai8c2a4de2006-09-20 16:20:15 +000014359
brynercb91a2f2006-08-25 21:14:45 +000014360
brynercb91a2f2006-08-25 21:14:45 +000014361
brynerd5e66382006-09-08 02:35:53 +000014362
jimblandy92b1f832009-12-23 22:23:49 +000014363 ac_config_commands="$ac_config_commands libtool"
brynercb91a2f2006-08-25 21:14:45 +000014364
brynercb91a2f2006-08-25 21:14:45 +000014365
brynercb91a2f2006-08-25 21:14:45 +000014366
brynercb91a2f2006-08-25 21:14:45 +000014367
jimblandy92b1f832009-12-23 22:23:49 +000014368# Only expand once:
brynercb91a2f2006-08-25 21:14:45 +000014369
brynercb91a2f2006-08-25 21:14:45 +000014370
brynercb91a2f2006-08-25 21:14:45 +000014371
brynercb91a2f2006-08-25 21:14:45 +000014372
jimblandy92b1f832009-12-23 22:23:49 +000014373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14374$as_echo_n "checking for ANSI C header files... " >&6; }
14375if test "${ac_cv_header_stdc+set}" = set; then :
14376 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000014377else
jimblandy92b1f832009-12-23 22:23:49 +000014378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014379/* end confdefs.h. */
14380#include <stdlib.h>
14381#include <stdarg.h>
14382#include <string.h>
14383#include <float.h>
14384
14385int
14386main ()
14387{
14388
14389 ;
14390 return 0;
14391}
14392_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014393if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000014394 ac_cv_header_stdc=yes
14395else
jimblandy92b1f832009-12-23 22:23:49 +000014396 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014397fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014399
14400if test $ac_cv_header_stdc = yes; then
14401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014403/* end confdefs.h. */
14404#include <string.h>
14405
14406_ACEOF
14407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014408 $EGREP "memchr" >/dev/null 2>&1; then :
14409
brynercb91a2f2006-08-25 21:14:45 +000014410else
14411 ac_cv_header_stdc=no
14412fi
14413rm -f conftest*
14414
14415fi
14416
14417if test $ac_cv_header_stdc = yes; then
14418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014420/* end confdefs.h. */
14421#include <stdlib.h>
14422
14423_ACEOF
14424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014425 $EGREP "free" >/dev/null 2>&1; then :
14426
brynercb91a2f2006-08-25 21:14:45 +000014427else
14428 ac_cv_header_stdc=no
14429fi
14430rm -f conftest*
14431
14432fi
14433
14434if test $ac_cv_header_stdc = yes; then
14435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +000014436 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +000014437 :
14438else
jimblandy92b1f832009-12-23 22:23:49 +000014439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014440/* end confdefs.h. */
14441#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000014442#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000014443#if ((' ' & 0x0FF) == 0x020)
14444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14446#else
14447# define ISLOWER(c) \
14448 (('a' <= (c) && (c) <= 'i') \
14449 || ('j' <= (c) && (c) <= 'r') \
14450 || ('s' <= (c) && (c) <= 'z'))
14451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14452#endif
14453
14454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14455int
14456main ()
14457{
14458 int i;
14459 for (i = 0; i < 256; i++)
14460 if (XOR (islower (i), ISLOWER (i))
14461 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000014462 return 2;
14463 return 0;
brynercb91a2f2006-08-25 21:14:45 +000014464}
14465_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014466if ac_fn_c_try_run "$LINENO"; then :
14467
brynercb91a2f2006-08-25 21:14:45 +000014468else
jimblandy92b1f832009-12-23 22:23:49 +000014469 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014470fi
jimblandy92b1f832009-12-23 22:23:49 +000014471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14472 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014473fi
14474
brynercb91a2f2006-08-25 21:14:45 +000014475fi
14476fi
jimblandy92b1f832009-12-23 22:23:49 +000014477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14478$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014479if test $ac_cv_header_stdc = yes; then
14480
jimblandy92b1f832009-12-23 22:23:49 +000014481$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +000014482
14483fi
14484
nealsidde545c02010-03-02 00:39:48 +000014485# ===========================================================================
14486# http://www.nongnu.org/autoconf-archive/ax_pthread.html
14487# ===========================================================================
14488#
14489# SYNOPSIS
14490#
14491# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
14492#
14493# DESCRIPTION
14494#
14495# This macro figures out how to build C programs using POSIX threads. It
14496# sets the PTHREAD_LIBS output variable to the threads library and linker
14497# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
14498# flags that are needed. (The user can also force certain compiler
14499# flags/libs to be tested by setting these environment variables.)
14500#
14501# Also sets PTHREAD_CC to any special C compiler that is needed for
14502# multi-threaded programs (defaults to the value of CC otherwise). (This
14503# is necessary on AIX to use the special cc_r compiler alias.)
14504#
14505# NOTE: You are assumed to not only compile your program with these flags,
14506# but also link it with them as well. e.g. you should link with
14507# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
14508#
14509# If you are only building threads programs, you may wish to use these
14510# variables in your default LIBS, CFLAGS, and CC:
14511#
14512# LIBS="$PTHREAD_LIBS $LIBS"
14513# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14514# CC="$PTHREAD_CC"
14515#
14516# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
14517# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
14518# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
14519#
14520# ACTION-IF-FOUND is a list of shell commands to run if a threads library
14521# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
14522# is not found. If ACTION-IF-FOUND is not specified, the default action
14523# will define HAVE_PTHREAD.
14524#
14525# Please let the authors know if this macro fails on any platform, or if
14526# you have any other suggestions or comments. This macro was based on work
14527# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
14528# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
14529# Alejandro Forero Cuervo to the autoconf macro repository. We are also
14530# grateful for the helpful feedback of numerous users.
14531#
14532# LICENSE
14533#
14534# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
14535#
14536# This program is free software: you can redistribute it and/or modify it
14537# under the terms of the GNU General Public License as published by the
14538# Free Software Foundation, either version 3 of the License, or (at your
14539# option) any later version.
14540#
14541# This program is distributed in the hope that it will be useful, but
14542# WITHOUT ANY WARRANTY; without even the implied warranty of
14543# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14544# Public License for more details.
14545#
14546# You should have received a copy of the GNU General Public License along
14547# with this program. If not, see <http://www.gnu.org/licenses/>.
14548#
14549# As a special exception, the respective Autoconf Macro's copyright owner
14550# gives unlimited permission to copy, distribute and modify the configure
14551# scripts that are the output of Autoconf when processing the Macro. You
14552# need not follow the terms of the GNU General Public License when using
14553# or distributing such scripts, even though portions of the text of the
14554# Macro appear in them. The GNU General Public License (GPL) does govern
14555# all other use of the material that constitutes the Autoconf Macro.
14556#
14557# This special exception to the GPL applies to versions of the Autoconf
14558# Macro released by the Autoconf Archive. When you make and distribute a
14559# modified version of the Autoconf Macro, you may extend this special
14560# exception to the GPL to apply to your modified version as well.
14561
14562#serial 6
14563
14564# This is what autoupdate's m4 run will expand. It fires
14565# the warning (with _au_warn_XXX), outputs it into the
14566# updated configure.ac (with AC_DIAGNOSE), and then outputs
14567# the replacement expansion.
14568
14569
14570# This is an auxiliary macro that is also run when
14571# autoupdate runs m4. It simply calls m4_warning, but
14572# we need a wrapper so that each warning is emitted only
14573# once. We break the quoting in m4_warning's argument in
14574# order to expand this macro's arguments, not AU_DEFUN's.
14575
14576
14577# Finally, this is the expansion that is picked up by
14578# autoconf. It tells the user to run autoupdate, and
14579# then outputs the replacement expansion. We do not care
14580# about autoupdate's warning because that contains
14581# information on what to do *after* running autoupdate.
14582
14583
14584
14585
14586ac_ext=c
14587ac_cpp='$CPP $CPPFLAGS'
14588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14590ac_compiler_gnu=$ac_cv_c_compiler_gnu
14591
14592ax_pthread_ok=no
14593
14594# We used to check for pthread.h first, but this fails if pthread.h
14595# requires special compiler flags (e.g. on True64 or Sequent).
14596# It gets checked for in the link test anyway.
14597
14598# First of all, check if the user has set any of the PTHREAD_LIBS,
14599# etcetera environment variables, and if threads linking works using
14600# them:
14601if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14602 save_CFLAGS="$CFLAGS"
14603 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14604 save_LIBS="$LIBS"
14605 LIBS="$PTHREAD_LIBS $LIBS"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14607$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609/* end confdefs.h. */
14610
14611/* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14614#ifdef __cplusplus
14615extern "C"
14616#endif
14617char pthread_join ();
14618int
14619main ()
14620{
14621return pthread_join ();
14622 ;
14623 return 0;
14624}
14625_ACEOF
14626if ac_fn_c_try_link "$LINENO"; then :
14627 ax_pthread_ok=yes
14628fi
14629rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14632$as_echo "$ax_pthread_ok" >&6; }
14633 if test x"$ax_pthread_ok" = xno; then
14634 PTHREAD_LIBS=""
14635 PTHREAD_CFLAGS=""
14636 fi
14637 LIBS="$save_LIBS"
14638 CFLAGS="$save_CFLAGS"
14639fi
14640
14641# We must check for the threads library under a number of different
14642# names; the ordering is very important because some systems
14643# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14644# libraries is broken (non-POSIX).
14645
14646# Create a list of thread flags to try. Items starting with a "-" are
14647# C compiler flags, and other items are library names, except for "none"
14648# which indicates that we try without any flags at all, and "pthread-config"
14649# which is a program returning the flags for the Pth emulation library.
14650
14651ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14652
14653# The ordering *is* (sometimes) important. Some notes on the
14654# individual items follow:
14655
14656# pthreads: AIX (must check this before -lpthread)
14657# none: in case threads are in libc; should be tried before -Kthread and
14658# other compiler flags to prevent continual compiler warnings
14659# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14660# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14661# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14662# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14663# -pthreads: Solaris/gcc
14664# -mthreads: Mingw32/gcc, Lynx/gcc
14665# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14666# doesn't hurt to check since this sometimes defines pthreads too;
14667# also defines -D_REENTRANT)
14668# ... -mt is also the pthreads flag for HP/aCC
14669# pthread: Linux, etcetera
14670# --thread-safe: KAI C++
14671# pthread-config: use pthread-config program (for GNU Pth library)
14672
14673case "${host_cpu}-${host_os}" in
14674 *solaris*)
14675
14676 # On Solaris (at least, for some versions), libc contains stubbed
14677 # (non-functional) versions of the pthreads routines, so link-based
14678 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14679 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14680 # a function called by this macro, so we could check for that, but
14681 # who knows whether they'll stub that too in a future libc.) So,
14682 # we'll just look for -pthreads and -lpthread first:
14683
14684 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14685 ;;
14686
14687 *-darwin*)
14688 acx_pthread_flags="-pthread $acx_pthread_flags"
14689 ;;
14690esac
14691
14692if test x"$ax_pthread_ok" = xno; then
14693for flag in $ax_pthread_flags; do
14694
14695 case $flag in
14696 none)
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14698$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14699 ;;
14700
14701 -*)
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14703$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14704 PTHREAD_CFLAGS="$flag"
14705 ;;
14706
14707 pthread-config)
14708 # Extract the first word of "pthread-config", so it can be a program name with args.
14709set dummy pthread-config; ac_word=$2
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14711$as_echo_n "checking for $ac_word... " >&6; }
14712if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
14713 $as_echo_n "(cached) " >&6
14714else
14715 if test -n "$ax_pthread_config"; then
14716 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14717else
14718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719for as_dir in $PATH
14720do
14721 IFS=$as_save_IFS
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14725 ac_cv_prog_ax_pthread_config="yes"
14726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14727 break 2
14728 fi
14729done
14730 done
14731IFS=$as_save_IFS
14732
14733 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14734fi
14735fi
14736ax_pthread_config=$ac_cv_prog_ax_pthread_config
14737if test -n "$ax_pthread_config"; then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14739$as_echo "$ax_pthread_config" >&6; }
14740else
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742$as_echo "no" >&6; }
14743fi
14744
14745
14746 if test x"$ax_pthread_config" = xno; then continue; fi
14747 PTHREAD_CFLAGS="`pthread-config --cflags`"
14748 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14749 ;;
14750
14751 *)
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14753$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14754 PTHREAD_LIBS="-l$flag"
14755 ;;
14756 esac
14757
14758 save_LIBS="$LIBS"
14759 save_CFLAGS="$CFLAGS"
14760 LIBS="$PTHREAD_LIBS $LIBS"
14761 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14762
14763 # Check for various functions. We must include pthread.h,
14764 # since some functions may be macros. (On the Sequent, we
14765 # need a special flag -Kthread to make this header compile.)
14766 # We check for pthread_join because it is in -lpthread on IRIX
14767 # while pthread_create is in libc. We check for pthread_attr_init
14768 # due to DEC craziness with -lpthreads. We check for
14769 # pthread_cleanup_push because it is one of the few pthread
14770 # functions on Solaris that doesn't have a non-functional libc stub.
14771 # We try pthread_create on general principles.
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h. */
14774#include <pthread.h>
14775 static void routine(void* a) {a=0;}
14776 static void* start_routine(void* a) {return a;}
14777int
14778main ()
14779{
14780pthread_t th; pthread_attr_t attr;
14781 pthread_join(th, 0);
14782 pthread_attr_init(&attr);
14783 pthread_cleanup_push(routine, 0);
14784 pthread_create(&th,0,start_routine,0);
14785 pthread_cleanup_pop(0);
14786 ;
14787 return 0;
14788}
14789_ACEOF
14790if ac_fn_c_try_link "$LINENO"; then :
14791 ax_pthread_ok=yes
14792fi
14793rm -f core conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14795
14796 LIBS="$save_LIBS"
14797 CFLAGS="$save_CFLAGS"
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14800$as_echo "$ax_pthread_ok" >&6; }
14801 if test "x$ax_pthread_ok" = xyes; then
14802 break;
14803 fi
14804
14805 PTHREAD_LIBS=""
14806 PTHREAD_CFLAGS=""
14807done
14808fi
14809
14810# Various other checks:
14811if test "x$ax_pthread_ok" = xyes; then
14812 save_LIBS="$LIBS"
14813 LIBS="$PTHREAD_LIBS $LIBS"
14814 save_CFLAGS="$CFLAGS"
14815 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14816
14817 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14819$as_echo_n "checking for joinable pthread attribute... " >&6; }
14820 attr_name=unknown
14821 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823/* end confdefs.h. */
14824#include <pthread.h>
14825int
14826main ()
14827{
14828int attr=$attr; return attr;
14829 ;
14830 return 0;
14831}
14832_ACEOF
14833if ac_fn_c_try_link "$LINENO"; then :
14834 attr_name=$attr; break
14835fi
14836rm -f core conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 done
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14840$as_echo "$attr_name" >&6; }
14841 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14842
14843cat >>confdefs.h <<_ACEOF
14844#define PTHREAD_CREATE_JOINABLE $attr_name
14845_ACEOF
14846
14847 fi
14848
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14850$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14851 flag=no
14852 case "${host_cpu}-${host_os}" in
14853 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14854 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14855 esac
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14857$as_echo "${flag}" >&6; }
14858 if test "x$flag" != xno; then
14859 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14860 fi
14861
14862 LIBS="$save_LIBS"
14863 CFLAGS="$save_CFLAGS"
14864
14865 # More AIX lossage: must compile with xlc_r or cc_r
14866 if test x"$GCC" != xyes; then
14867 for ac_prog in xlc_r cc_r
14868do
14869 # Extract the first word of "$ac_prog", so it can be a program name with args.
14870set dummy $ac_prog; ac_word=$2
14871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14872$as_echo_n "checking for $ac_word... " >&6; }
14873if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14874 $as_echo_n "(cached) " >&6
14875else
14876 if test -n "$PTHREAD_CC"; then
14877 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14878else
14879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14880for as_dir in $PATH
14881do
14882 IFS=$as_save_IFS
14883 test -z "$as_dir" && as_dir=.
14884 for ac_exec_ext in '' $ac_executable_extensions; do
14885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14886 ac_cv_prog_PTHREAD_CC="$ac_prog"
14887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14888 break 2
14889 fi
14890done
14891 done
14892IFS=$as_save_IFS
14893
14894fi
14895fi
14896PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14897if test -n "$PTHREAD_CC"; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14899$as_echo "$PTHREAD_CC" >&6; }
14900else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902$as_echo "no" >&6; }
14903fi
14904
14905
14906 test -n "$PTHREAD_CC" && break
14907done
14908test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14909
14910 else
14911 PTHREAD_CC=$CC
14912 fi
14913else
14914 PTHREAD_CC="$CC"
14915fi
14916
14917
14918
14919
14920
14921# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14922if test x"$ax_pthread_ok" = xyes; then
14923
14924$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14925
14926 :
14927else
14928 ax_pthread_ok=no
14929
14930fi
14931ac_ext=c
14932ac_cpp='$CPP $CPPFLAGS'
14933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935ac_compiler_gnu=$ac_cv_c_compiler_gnu
14936
14937
14938
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000014939# Only build Linux client libs when compiling for Linux
14940case $host in
14941 *-*-linux*)
14942 LINUX_HOST=true
14943 ;;
14944esac
14945 if test x$LINUX_HOST = xtrue; then
14946 LINUX_HOST_TRUE=
14947 LINUX_HOST_FALSE='#'
14948else
14949 LINUX_HOST_TRUE='#'
14950 LINUX_HOST_FALSE=
14951fi
14952
14953
nealsidde545c02010-03-02 00:39:48 +000014954# Check whether --enable-m32 was given.
14955if test "${enable_m32+set}" = set; then :
14956 enableval=$enable_m32; case "${enableval}" in
14957 yes)
14958 CFLAGS=$(CFLAGS) -m32
14959 usem32=true
14960 ;;
14961 no)
14962 usem32=false
14963 ;;
14964 *)
14965 as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5
14966 ;;
14967 esac
14968else
14969 usem32=false
14970fi
14971
brynercb91a2f2006-08-25 21:14:45 +000014972
ted.mielczarekb2236272010-04-08 23:06:23 +000014973ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14974"
14975if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
14976
14977$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h
14978
14979else
14980
14981$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\
14982 ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h
14983
14984fi
14985
14986
mmentovai0dbedc92006-09-25 21:16:15 +000014987# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +000014988if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +000014989 enableval=$enable_selftest; case "${enableval}" in
14990 yes)
14991 selftest=true
14992 ;;
14993 no)
14994 selftest=false
14995 ;;
14996 *)
jimblandy92b1f832009-12-23 22:23:49 +000014997 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000014998 ;;
14999 esac
15000else
15001 selftest=false
15002fi
15003
mmentovaiaf3c43f2007-05-17 18:34:37 +000015004 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000015005 SELFTEST_TRUE=
15006 SELFTEST_FALSE='#'
15007else
15008 SELFTEST_TRUE='#'
15009 SELFTEST_FALSE=
15010fi
15011
15012
mmentovai8c2a4de2006-09-20 16:20:15 +000015013ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000015014
15015cat >confcache <<\_ACEOF
15016# This file is a shell script that caches the results of configure
15017# tests run on this system so they can be shared between configure
15018# scripts and configure runs, see configure's option --config-cache.
15019# It is not useful on other systems. If it contains results you don't
15020# want to keep, you may remove or edit it.
15021#
15022# config.status only pays attention to the cache file if you give it
15023# the --recheck option to rerun configure.
15024#
15025# `ac_cv_env_foo' variables (set or unset) will be overridden when
15026# loading this file, other *unset* `ac_cv_foo' will be assigned the
15027# following values.
15028
15029_ACEOF
15030
15031# The following way of writing the cache mishandles newlines in values,
15032# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000015033# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000015034# Ultrix sh set writes to stderr and can't be redirected directly,
15035# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000015036(
15037 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15038 eval ac_val=\$$ac_var
15039 case $ac_val in #(
15040 *${as_nl}*)
15041 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +000015042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15043$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015044 esac
15045 case $ac_var in #(
15046 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +000015047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15048 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015049 esac ;;
15050 esac
15051 done
15052
brynercb91a2f2006-08-25 21:14:45 +000015053 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000015054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15055 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +000015056 # `set' does not quote correctly, so add quotes: double-quote
15057 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +000015058 sed -n \
15059 "s/'/'\\\\''/g;
15060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000015061 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000015062 *)
15063 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000015064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000015065 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015066 esac |
15067 sort
15068) |
brynercb91a2f2006-08-25 21:14:45 +000015069 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000015070 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000015071 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000015072 :clear
brynercb91a2f2006-08-25 21:14:45 +000015073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15074 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000015075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15076 :end' >>confcache
15077if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15078 if test -w "$cache_file"; then
15079 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +000015080 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15081$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015082 cat confcache >$cache_file
15083 else
jimblandy92b1f832009-12-23 22:23:49 +000015084 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15085$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015086 fi
15087fi
15088rm -f confcache
15089
15090test "x$prefix" = xNONE && prefix=$ac_default_prefix
15091# Let make expand exec_prefix.
15092test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15093
brynercb91a2f2006-08-25 21:14:45 +000015094DEFS=-DHAVE_CONFIG_H
15095
15096ac_libobjs=
15097ac_ltlibobjs=
15098for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15099 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000015100 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +000015101 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +000015102 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15103 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +000015104 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15105 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000015106done
15107LIBOBJS=$ac_libobjs
15108
15109LTLIBOBJS=$ac_ltlibobjs
15110
15111
jimblandy92b1f832009-12-23 22:23:49 +000015112 if test -n "$EXEEXT"; then
15113 am__EXEEXT_TRUE=
15114 am__EXEEXT_FALSE='#'
15115else
15116 am__EXEEXT_TRUE='#'
15117 am__EXEEXT_FALSE=
15118fi
15119
brynercb91a2f2006-08-25 21:14:45 +000015120if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015121 as_fn_error "conditional \"AMDEP\" was never defined.
15122Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015123fi
15124if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015125 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15126Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015127fi
15128if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015129 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15130Usually this means the macro was only invoked conditionally." "$LINENO" 5
15131fi
15132if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15133 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15134Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015135fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000015136if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
15137 as_fn_error "conditional \"LINUX_HOST\" was never defined.
15138Usually this means the macro was only invoked conditionally." "$LINENO" 5
15139fi
mmentovai0dbedc92006-09-25 21:16:15 +000015140if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015141 as_fn_error "conditional \"SELFTEST\" was never defined.
15142Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000015143fi
brynercb91a2f2006-08-25 21:14:45 +000015144
15145: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +000015146ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +000015147ac_clean_files_save=$ac_clean_files
15148ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +000015149{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15150$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15151as_write_fail=0
15152cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015153#! $SHELL
15154# Generated by $as_me.
15155# Run this file to recreate the current configuration.
15156# Compiler output produced by configure, useful for debugging
15157# configure, is in config.log if it exists.
15158
15159debug=false
15160ac_cs_recheck=false
15161ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +000015162
jimblandy92b1f832009-12-23 22:23:49 +000015163SHELL=\${CONFIG_SHELL-$SHELL}
15164export SHELL
15165_ASEOF
15166cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15167## -------------------- ##
15168## M4sh Initialization. ##
15169## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000015170
mmentovaiaf3c43f2007-05-17 18:34:37 +000015171# Be more Bourne compatible
15172DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000015173if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000015174 emulate sh
15175 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000015176 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000015177 # is contrary to our usage. Disable this feature.
15178 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000015179 setopt NO_GLOB_SUBST
15180else
jimblandy92b1f832009-12-23 22:23:49 +000015181 case `(set -o) 2>/dev/null` in #(
15182 *posix*) :
15183 set -o posix ;; #(
15184 *) :
15185 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015186esac
brynercb91a2f2006-08-25 21:14:45 +000015187fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015188
15189
jimblandy92b1f832009-12-23 22:23:49 +000015190as_nl='
15191'
15192export as_nl
15193# Printing a long string crashes Solaris 7 /usr/bin/printf.
15194as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15195as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15196as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15197# Prefer a ksh shell builtin over an external printf program on Solaris,
15198# but without wasting forks for bash or zsh.
15199if test -z "$BASH_VERSION$ZSH_VERSION" \
15200 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15201 as_echo='print -r --'
15202 as_echo_n='print -rn --'
15203elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15204 as_echo='printf %s\n'
15205 as_echo_n='printf %s'
15206else
15207 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15208 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15209 as_echo_n='/usr/ucb/echo -n'
15210 else
15211 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15212 as_echo_n_body='eval
15213 arg=$1;
15214 case $arg in #(
15215 *"$as_nl"*)
15216 expr "X$arg" : "X\\(.*\\)$as_nl";
15217 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15218 esac;
15219 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15220 '
15221 export as_echo_n_body
15222 as_echo_n='sh -c $as_echo_n_body as_echo'
15223 fi
15224 export as_echo_body
15225 as_echo='sh -c $as_echo_body as_echo'
15226fi
brynercb91a2f2006-08-25 21:14:45 +000015227
15228# The user is always right.
15229if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000015230 PATH_SEPARATOR=:
15231 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15232 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15233 PATH_SEPARATOR=';'
15234 }
mmentovai8c2a4de2006-09-20 16:20:15 +000015235fi
brynercb91a2f2006-08-25 21:14:45 +000015236
mmentovai8c2a4de2006-09-20 16:20:15 +000015237
15238# IFS
15239# We need space, tab and new line, in precisely that order. Quoting is
15240# there to prevent editors from complaining about space-tab.
15241# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15242# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000015243IFS=" "" $as_nl"
15244
15245# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000015246case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000015247 *[\\/]* ) as_myself=$0 ;;
15248 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000015249for as_dir in $PATH
15250do
15251 IFS=$as_save_IFS
15252 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000015253 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15254 done
mmentovai8c2a4de2006-09-20 16:20:15 +000015255IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000015256
mmentovai8c2a4de2006-09-20 16:20:15 +000015257 ;;
15258esac
15259# We did not find ourselves, most probably we were run as `sh COMMAND'
15260# in which case we are not to be found in the path.
15261if test "x$as_myself" = x; then
15262 as_myself=$0
15263fi
15264if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +000015265 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15266 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +000015267fi
15268
jimblandy92b1f832009-12-23 22:23:49 +000015269# Unset variables that we do not need and which cause bugs (e.g. in
15270# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15271# suppresses any "Segmentation fault" message there. '((' could
15272# trigger a bug in pdksh 5.2.14.
15273for as_var in BASH_ENV ENV MAIL MAILPATH
15274do eval test x\${$as_var+set} = xset \
15275 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +000015276done
15277PS1='$ '
15278PS2='> '
15279PS4='+ '
15280
15281# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +000015282LC_ALL=C
15283export LC_ALL
15284LANGUAGE=C
15285export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +000015286
jimblandy92b1f832009-12-23 22:23:49 +000015287# CDPATH.
15288(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15289
15290
15291# as_fn_error ERROR [LINENO LOG_FD]
15292# ---------------------------------
15293# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15294# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15295# script with status $?, using 1 if that was 0.
15296as_fn_error ()
15297{
15298 as_status=$?; test $as_status -eq 0 && as_status=1
15299 if test "$3"; then
15300 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15301 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15302 fi
15303 $as_echo "$as_me: error: $1" >&2
15304 as_fn_exit $as_status
15305} # as_fn_error
15306
15307
15308# as_fn_set_status STATUS
15309# -----------------------
15310# Set $? to STATUS, without forking.
15311as_fn_set_status ()
15312{
15313 return $1
15314} # as_fn_set_status
15315
15316# as_fn_exit STATUS
15317# -----------------
15318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15319as_fn_exit ()
15320{
15321 set +e
15322 as_fn_set_status $1
15323 exit $1
15324} # as_fn_exit
15325
15326# as_fn_unset VAR
15327# ---------------
15328# Portably unset VAR.
15329as_fn_unset ()
15330{
15331 { eval $1=; unset $1;}
15332}
15333as_unset=as_fn_unset
15334# as_fn_append VAR VALUE
15335# ----------------------
15336# Append the text in VALUE to the end of the definition contained in VAR. Take
15337# advantage of any shell optimizations that allow amortized linear growth over
15338# repeated appends, instead of the typical quadratic growth present in naive
15339# implementations.
15340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15341 eval 'as_fn_append ()
15342 {
15343 eval $1+=\$2
15344 }'
15345else
15346 as_fn_append ()
15347 {
15348 eval $1=\$$1\$2
15349 }
15350fi # as_fn_append
15351
15352# as_fn_arith ARG...
15353# ------------------
15354# Perform arithmetic evaluation on the ARGs, and store the result in the
15355# global $as_val. Take advantage of shells that can avoid forks. The arguments
15356# must be portable across $(()) and expr.
15357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15358 eval 'as_fn_arith ()
15359 {
15360 as_val=$(( $* ))
15361 }'
15362else
15363 as_fn_arith ()
15364 {
15365 as_val=`expr "$@" || test $? -eq 1`
15366 }
15367fi # as_fn_arith
15368
15369
mmentovai8c2a4de2006-09-20 16:20:15 +000015370if expr a : '\(a\)' >/dev/null 2>&1 &&
15371 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15372 as_expr=expr
15373else
15374 as_expr=false
15375fi
15376
15377if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15378 as_basename=basename
15379else
15380 as_basename=false
15381fi
15382
jimblandy92b1f832009-12-23 22:23:49 +000015383if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15384 as_dirname=dirname
15385else
15386 as_dirname=false
15387fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015388
mmentovai8c2a4de2006-09-20 16:20:15 +000015389as_me=`$as_basename -- "$0" ||
15390$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15391 X"$0" : 'X\(//\)$' \| \
15392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000015393$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +000015394 sed '/^.*\/\([^/][^/]*\)\/*$/{
15395 s//\1/
15396 q
15397 }
15398 /^X\/\(\/\/\)$/{
15399 s//\1/
15400 q
15401 }
15402 /^X\/\(\/\).*/{
15403 s//\1/
15404 q
15405 }
15406 s/.*/./; q'`
15407
jimblandy92b1f832009-12-23 22:23:49 +000015408# Avoid depending upon Character Ranges.
15409as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15410as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15411as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15412as_cr_digits='0123456789'
15413as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +000015414
15415ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +000015416case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +000015417-n*)
jimblandy92b1f832009-12-23 22:23:49 +000015418 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +000015419 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +000015420 xy) ECHO_C='\c';;
15421 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15422 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +000015423 esac;;
15424*)
15425 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000015426esac
15427
brynercb91a2f2006-08-25 21:14:45 +000015428rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000015429if test -d conf$$.dir; then
15430 rm -f conf$$.dir/conf$$.file
15431else
15432 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +000015433 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +000015434fi
jimblandy92b1f832009-12-23 22:23:49 +000015435if (echo >conf$$.file) 2>/dev/null; then
15436 if ln -s conf$$.file conf$$ 2>/dev/null; then
15437 as_ln_s='ln -s'
15438 # ... but there are two gotchas:
15439 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15440 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15441 # In both cases, we have to default to `cp -p'.
15442 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15443 as_ln_s='cp -p'
15444 elif ln conf$$.file conf$$ 2>/dev/null; then
15445 as_ln_s=ln
15446 else
brynercb91a2f2006-08-25 21:14:45 +000015447 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +000015448 fi
brynercb91a2f2006-08-25 21:14:45 +000015449else
15450 as_ln_s='cp -p'
15451fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015452rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15453rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000015454
jimblandy92b1f832009-12-23 22:23:49 +000015455
15456# as_fn_mkdir_p
15457# -------------
15458# Create "$as_dir" as a directory, including parents if necessary.
15459as_fn_mkdir_p ()
15460{
15461
15462 case $as_dir in #(
15463 -*) as_dir=./$as_dir;;
15464 esac
15465 test -d "$as_dir" || eval $as_mkdir_p || {
15466 as_dirs=
15467 while :; do
15468 case $as_dir in #(
15469 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15470 *) as_qdir=$as_dir;;
15471 esac
15472 as_dirs="'$as_qdir' $as_dirs"
15473 as_dir=`$as_dirname -- "$as_dir" ||
15474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15475 X"$as_dir" : 'X\(//\)[^/]' \| \
15476 X"$as_dir" : 'X\(//\)$' \| \
15477 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15478$as_echo X"$as_dir" |
15479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15480 s//\1/
15481 q
15482 }
15483 /^X\(\/\/\)[^/].*/{
15484 s//\1/
15485 q
15486 }
15487 /^X\(\/\/\)$/{
15488 s//\1/
15489 q
15490 }
15491 /^X\(\/\).*/{
15492 s//\1/
15493 q
15494 }
15495 s/.*/./; q'`
15496 test -d "$as_dir" && break
15497 done
15498 test -z "$as_dirs" || eval "mkdir $as_dirs"
15499 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15500
15501
15502} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000015503if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +000015504 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +000015505else
15506 test -d ./-p && rmdir ./-p
15507 as_mkdir_p=false
15508fi
15509
mmentovaiaf3c43f2007-05-17 18:34:37 +000015510if test -x / >/dev/null 2>&1; then
15511 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000015512else
mmentovaiaf3c43f2007-05-17 18:34:37 +000015513 if ls -dL / >/dev/null 2>&1; then
15514 as_ls_L_option=L
15515 else
15516 as_ls_L_option=
15517 fi
15518 as_test_x='
15519 eval sh -c '\''
15520 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +000015521 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +000015522 else
jimblandy92b1f832009-12-23 22:23:49 +000015523 case $1 in #(
15524 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015525 esac;
jimblandy92b1f832009-12-23 22:23:49 +000015526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +000015527 ???[sx]*):;;*)false;;esac;fi
15528 '\'' sh
15529 '
mmentovai8c2a4de2006-09-20 16:20:15 +000015530fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015531as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000015532
15533# Sed expression to map a string onto a valid CPP name.
15534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15535
15536# Sed expression to map a string onto a valid variable name.
15537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15538
15539
brynercb91a2f2006-08-25 21:14:45 +000015540exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +000015541## ----------------------------------- ##
15542## Main body of $CONFIG_STATUS script. ##
15543## ----------------------------------- ##
15544_ASEOF
15545test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015546
jimblandy92b1f832009-12-23 22:23:49 +000015547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15548# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000015549# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000015550# values after options handling.
15551ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000015552This file was extended by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +000015553generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000015554
15555 CONFIG_FILES = $CONFIG_FILES
15556 CONFIG_HEADERS = $CONFIG_HEADERS
15557 CONFIG_LINKS = $CONFIG_LINKS
15558 CONFIG_COMMANDS = $CONFIG_COMMANDS
15559 $ $0 $@
15560
mmentovai8c2a4de2006-09-20 16:20:15 +000015561on `(hostname || uname -n) 2>/dev/null | sed 1q`
15562"
15563
brynercb91a2f2006-08-25 21:14:45 +000015564_ACEOF
15565
jimblandy92b1f832009-12-23 22:23:49 +000015566case $ac_config_files in *"
15567"*) set x $ac_config_files; shift; ac_config_files=$*;;
15568esac
15569
15570case $ac_config_headers in *"
15571"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15572esac
15573
15574
15575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015576# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000015577config_files="$ac_config_files"
15578config_headers="$ac_config_headers"
15579config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000015580
mmentovai8c2a4de2006-09-20 16:20:15 +000015581_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000015582
jimblandy92b1f832009-12-23 22:23:49 +000015583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015584ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +000015585\`$as_me' instantiates files and other configuration actions
15586from templates according to the current configuration. Unless the files
15587and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +000015588
jimblandy92b1f832009-12-23 22:23:49 +000015589Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +000015590
15591 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000015592 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +000015593 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +000015594 -q, --quiet, --silent
15595 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +000015596 -d, --debug don't remove temporary files
15597 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +000015598 --file=FILE[:TEMPLATE]
15599 instantiate the configuration file FILE
15600 --header=FILE[:TEMPLATE]
15601 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +000015602
15603Configuration files:
15604$config_files
15605
15606Configuration headers:
15607$config_headers
15608
15609Configuration commands:
15610$config_commands
15611
jimblandy92b1f832009-12-23 22:23:49 +000015612Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +000015613
mmentovai8c2a4de2006-09-20 16:20:15 +000015614_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +000015616ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +000015617ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000015618breakpad config.status 0.1
jimblandydc4029a2010-02-02 17:39:51 +000015619configured by $0, generated by GNU Autoconf 2.65,
15620 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +000015621
jimblandy92b1f832009-12-23 22:23:49 +000015622Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000015623This config.status script is free software; the Free Software Foundation
15624gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000015625
15626ac_pwd='$ac_pwd'
15627srcdir='$srcdir'
15628INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000015629MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +000015630AWK='$AWK'
15631test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +000015632_ACEOF
15633
jimblandy92b1f832009-12-23 22:23:49 +000015634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15635# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +000015636ac_need_defaults=:
15637while test $# != 0
15638do
15639 case $1 in
15640 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000015643 ac_shift=:
15644 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015645 *)
brynercb91a2f2006-08-25 21:14:45 +000015646 ac_option=$1
15647 ac_optarg=$2
15648 ac_shift=shift
15649 ;;
brynercb91a2f2006-08-25 21:14:45 +000015650 esac
15651
15652 case $ac_option in
15653 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000015654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15655 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +000015657 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +000015658 --config | --confi | --conf | --con | --co | --c )
15659 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015660 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000015661 debug=: ;;
15662 --file | --fil | --fi | --f )
15663 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015664 case $ac_optarg in
15665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15666 esac
15667 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015668 ac_need_defaults=false;;
15669 --header | --heade | --head | --hea )
15670 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015671 case $ac_optarg in
15672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15673 esac
15674 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015675 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015676 --he | --h)
15677 # Conflict between --help and --header
jimblandy92b1f832009-12-23 22:23:49 +000015678 as_fn_error "ambiguous option: \`$1'
15679Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +000015680 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +000015681 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000015682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15683 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15684 ac_cs_silent=: ;;
15685
15686 # This is an error.
jimblandy92b1f832009-12-23 22:23:49 +000015687 -*) as_fn_error "unrecognized option: \`$1'
15688Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +000015689
jimblandy92b1f832009-12-23 22:23:49 +000015690 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +000015691 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000015692
15693 esac
15694 shift
15695done
15696
15697ac_configure_extra_args=
15698
15699if $ac_cs_silent; then
15700 exec 6>/dev/null
15701 ac_configure_extra_args="$ac_configure_extra_args --silent"
15702fi
15703
15704_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015706if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +000015707 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15708 shift
15709 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15710 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +000015711 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +000015712 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +000015713fi
15714
15715_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015717exec 5>>config.log
15718{
15719 echo
15720 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15721## Running $as_me. ##
15722_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +000015723 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +000015724} >&5
brynercb91a2f2006-08-25 21:14:45 +000015725
mmentovai8c2a4de2006-09-20 16:20:15 +000015726_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015728#
mmentovai8c2a4de2006-09-20 16:20:15 +000015729# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000015730#
brynercb91a2f2006-08-25 21:14:45 +000015731AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15732
jimblandy92b1f832009-12-23 22:23:49 +000015733
15734# The HP-UX ksh and POSIX shell print the target directory to stdout
15735# if CDPATH is set.
15736(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15737
15738sed_quote_subst='$sed_quote_subst'
15739double_quote_subst='$double_quote_subst'
15740delay_variable_subst='$delay_variable_subst'
15741macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15742macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15743enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15744enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15745pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15746enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15747host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15748host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15749host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15750build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15751build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15752build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15753SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15754Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15755GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15756EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15757FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15758LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15759NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15760LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15761max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15762ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15763exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15764lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15765lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15766lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15767reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15768reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15769OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15770deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15771file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15772AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15773AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15774STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15775RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15776old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15777old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15778old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15779CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15780CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15781compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15782GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15783lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15784lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15785lt_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"`'
15786lt_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"`'
15787objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15788SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15789ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15790MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15791lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15792lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15793lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15794lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15795lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15796need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15797DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15798NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15799LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15800OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15801OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15802libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15803shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15804extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15805archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15806enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15807export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15808whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15809compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15810old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15811old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15812archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15813archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15814module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15815module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15816with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15817allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15818no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15819hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15820hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15821hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15822hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15823hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15824hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15825hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15826hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15827inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15828link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15829fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15830always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15831export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15832exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15833include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15834prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15835file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15836variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15837need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15838need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15839version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15840runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15841shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15842shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15843libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15844library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15845soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15846postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15847postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15848finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15849finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15850hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15851sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15852sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15853hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15854enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15855enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15856enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15857old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15858striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15859compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15860predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15861postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15862predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15863postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15864compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15865LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15866old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15867compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15868GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15869lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15870lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15871lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15872lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15873lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15874archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15875enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15876export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15877whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15878compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15879old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15880old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15881archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15882archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15883module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15884module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15885with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15886allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15887no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15888hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15889hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15890hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15891hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15892hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15893hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15894hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15895hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15896inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15897link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15898fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15899always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15900export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15901exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15902include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15903prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15904file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15905hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15906compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15907predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15908postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15909predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15910postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15911compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15912
15913LTCC='$LTCC'
15914LTCFLAGS='$LTCFLAGS'
15915compiler='$compiler_DEFAULT'
15916
15917# Quote evaled strings.
15918for var in SED \
15919GREP \
15920EGREP \
15921FGREP \
15922LD \
15923NM \
15924LN_S \
15925lt_SP2NL \
15926lt_NL2SP \
15927reload_flag \
15928OBJDUMP \
15929deplibs_check_method \
15930file_magic_cmd \
15931AR \
15932AR_FLAGS \
15933STRIP \
15934RANLIB \
15935CC \
15936CFLAGS \
15937compiler \
15938lt_cv_sys_global_symbol_pipe \
15939lt_cv_sys_global_symbol_to_cdecl \
15940lt_cv_sys_global_symbol_to_c_name_address \
15941lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15942SHELL \
15943ECHO \
15944lt_prog_compiler_no_builtin_flag \
15945lt_prog_compiler_wl \
15946lt_prog_compiler_pic \
15947lt_prog_compiler_static \
15948lt_cv_prog_compiler_c_o \
15949need_locks \
15950DSYMUTIL \
15951NMEDIT \
15952LIPO \
15953OTOOL \
15954OTOOL64 \
15955shrext_cmds \
15956export_dynamic_flag_spec \
15957whole_archive_flag_spec \
15958compiler_needs_object \
15959with_gnu_ld \
15960allow_undefined_flag \
15961no_undefined_flag \
15962hardcode_libdir_flag_spec \
15963hardcode_libdir_flag_spec_ld \
15964hardcode_libdir_separator \
15965fix_srcfile_path \
15966exclude_expsyms \
15967include_expsyms \
15968file_list_spec \
15969variables_saved_for_relink \
15970libname_spec \
15971library_names_spec \
15972soname_spec \
15973finish_eval \
15974old_striplib \
15975striplib \
15976compiler_lib_search_dirs \
15977predep_objects \
15978postdep_objects \
15979predeps \
15980postdeps \
15981compiler_lib_search_path \
15982LD_CXX \
15983compiler_CXX \
15984lt_prog_compiler_no_builtin_flag_CXX \
15985lt_prog_compiler_wl_CXX \
15986lt_prog_compiler_pic_CXX \
15987lt_prog_compiler_static_CXX \
15988lt_cv_prog_compiler_c_o_CXX \
15989export_dynamic_flag_spec_CXX \
15990whole_archive_flag_spec_CXX \
15991compiler_needs_object_CXX \
15992with_gnu_ld_CXX \
15993allow_undefined_flag_CXX \
15994no_undefined_flag_CXX \
15995hardcode_libdir_flag_spec_CXX \
15996hardcode_libdir_flag_spec_ld_CXX \
15997hardcode_libdir_separator_CXX \
15998fix_srcfile_path_CXX \
15999exclude_expsyms_CXX \
16000include_expsyms_CXX \
16001file_list_spec_CXX \
16002compiler_lib_search_dirs_CXX \
16003predep_objects_CXX \
16004postdep_objects_CXX \
16005predeps_CXX \
16006postdeps_CXX \
16007compiler_lib_search_path_CXX; do
16008 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16009 *[\\\\\\\`\\"\\\$]*)
16010 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16011 ;;
16012 *)
16013 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16014 ;;
16015 esac
16016done
16017
16018# Double-quote double-evaled strings.
16019for var in reload_cmds \
16020old_postinstall_cmds \
16021old_postuninstall_cmds \
16022old_archive_cmds \
16023extract_expsyms_cmds \
16024old_archive_from_new_cmds \
16025old_archive_from_expsyms_cmds \
16026archive_cmds \
16027archive_expsym_cmds \
16028module_cmds \
16029module_expsym_cmds \
16030export_symbols_cmds \
16031prelink_cmds \
16032postinstall_cmds \
16033postuninstall_cmds \
16034finish_cmds \
16035sys_lib_search_path_spec \
16036sys_lib_dlsearch_path_spec \
16037old_archive_cmds_CXX \
16038old_archive_from_new_cmds_CXX \
16039old_archive_from_expsyms_cmds_CXX \
16040archive_cmds_CXX \
16041archive_expsym_cmds_CXX \
16042module_cmds_CXX \
16043module_expsym_cmds_CXX \
16044export_symbols_cmds_CXX \
16045prelink_cmds_CXX; do
16046 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16047 *[\\\\\\\`\\"\\\$]*)
16048 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16049 ;;
16050 *)
16051 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16052 ;;
16053 esac
16054done
16055
16056# Fix-up fallback echo if it was mangled by the above quoting rules.
16057case \$lt_ECHO in
16058*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16059 ;;
16060esac
16061
16062ac_aux_dir='$ac_aux_dir'
16063xsi_shell='$xsi_shell'
16064lt_shell_append='$lt_shell_append'
16065
16066# See if we are running on zsh, and set the options which allow our
16067# commands through without removal of \ escapes INIT.
16068if test -n "\${ZSH_VERSION+set}" ; then
16069 setopt NO_GLOB_SUBST
16070fi
16071
16072
16073 PACKAGE='$PACKAGE'
16074 VERSION='$VERSION'
16075 TIMESTAMP='$TIMESTAMP'
16076 RM='$RM'
16077 ofile='$ofile'
16078
16079
16080
16081
16082
16083
brynercb91a2f2006-08-25 21:14:45 +000016084_ACEOF
16085
jimblandy92b1f832009-12-23 22:23:49 +000016086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016087
16088# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000016089for ac_config_target in $ac_config_targets
16090do
mmentovai8c2a4de2006-09-20 16:20:15 +000016091 case $ac_config_target in
16092 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
jimblandy92b1f832009-12-23 22:23:49 +000016094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16096
jimblandy92b1f832009-12-23 22:23:49 +000016097 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +000016098 esac
16099done
16100
mmentovai8c2a4de2006-09-20 16:20:15 +000016101
brynercb91a2f2006-08-25 21:14:45 +000016102# If the user did not use the arguments to specify the items to instantiate,
16103# then the envvar interface is used. Set only those that are not.
16104# We use the long form for the default assignment because of an extremely
16105# bizarre bug on SunOS 4.1.3.
16106if $ac_need_defaults; then
16107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16110fi
16111
16112# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000016113# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000016114# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000016115# Hook for its removal unless debugging.
16116# Note that there is a small window in which the directory will not be cleaned:
16117# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000016118$debug ||
16119{
mmentovai8c2a4de2006-09-20 16:20:15 +000016120 tmp=
16121 trap 'exit_status=$?
16122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16123' 0
jimblandy92b1f832009-12-23 22:23:49 +000016124 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +000016125}
brynercb91a2f2006-08-25 21:14:45 +000016126# Create a (secure) tmp directory for tmp files.
16127
16128{
mmentovai8c2a4de2006-09-20 16:20:15 +000016129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000016130 test -n "$tmp" && test -d "$tmp"
16131} ||
16132{
mmentovai8c2a4de2006-09-20 16:20:15 +000016133 tmp=./conf$$-$RANDOM
16134 (umask 077 && mkdir "$tmp")
jimblandy92b1f832009-12-23 22:23:49 +000016135} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016136
jimblandy92b1f832009-12-23 22:23:49 +000016137# Set up the scripts for CONFIG_FILES section.
16138# No need to generate them if there are no CONFIG_FILES.
16139# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +000016140if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000016141
jimblandy92b1f832009-12-23 22:23:49 +000016142
16143ac_cr=`echo X | tr X '\015'`
16144# On cygwin, bash can eat \r inside `` if the user requested igncr.
16145# But we know of no other shell where ac_cr would be empty at this
16146# point, so we can use a bashism as a fallback.
16147if test "x$ac_cr" = x; then
16148 eval ac_cr=\$\'\\r\'
16149fi
16150ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16151if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16152 ac_cs_awk_cr='\r'
16153else
16154 ac_cs_awk_cr=$ac_cr
16155fi
16156
16157echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +000016158_ACEOF
16159
mmentovai8c2a4de2006-09-20 16:20:15 +000016160
jimblandy92b1f832009-12-23 22:23:49 +000016161{
16162 echo "cat >conf$$subs.awk <<_ACEOF" &&
16163 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16164 echo "_ACEOF"
16165} >conf$$subs.sh ||
16166 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16167ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016168ac_delim='%!_!# '
16169for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +000016170 . ./conf$$subs.sh ||
16171 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016172
jimblandy92b1f832009-12-23 22:23:49 +000016173 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16174 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +000016175 break
16176 elif $ac_last_try; then
jimblandy92b1f832009-12-23 22:23:49 +000016177 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016178 else
16179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000016180 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016181done
jimblandy92b1f832009-12-23 22:23:49 +000016182rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +000016183
jimblandy92b1f832009-12-23 22:23:49 +000016184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16185cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +000016186_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016187sed -n '
16188h
16189s/^/S["/; s/!.*/"]=/
16190p
16191g
16192s/^[^!]*!//
16193:repl
16194t repl
16195s/'"$ac_delim"'$//
16196t delim
16197:nl
16198h
jimblandydc4029a2010-02-02 17:39:51 +000016199s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016200t more1
16201s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16202p
16203n
16204b repl
16205:more1
16206s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16207p
16208g
16209s/.\{148\}//
16210t nl
16211:delim
16212h
jimblandydc4029a2010-02-02 17:39:51 +000016213s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016214t more2
16215s/["\\]/\\&/g; s/^/"/; s/$/"/
16216p
16217b
16218:more2
16219s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16220p
16221g
16222s/.\{148\}//
16223t delim
16224' <conf$$subs.awk | sed '
16225/^[^""]/{
16226 N
16227 s/\n//
16228}
16229' >>$CONFIG_STATUS || ac_write_fail=1
16230rm -f conf$$subs.awk
16231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16232_ACAWK
16233cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16234 for (key in S) S_is_set[key] = 1
16235 FS = ""
16236
16237}
16238{
16239 line = $ 0
16240 nfields = split(line, field, "@")
16241 substed = 0
16242 len = length(field[1])
16243 for (i = 2; i < nfields; i++) {
16244 key = field[i]
16245 keylen = length(key)
16246 if (S_is_set[key]) {
16247 value = S[key]
16248 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16249 len += length(value) + length(field[++i])
16250 substed = 1
16251 } else
16252 len += 1 + keylen
16253 }
16254
16255 print line
16256}
16257
16258_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +000016259_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16261if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16262 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16263else
16264 cat
16265fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16266 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016267_ACEOF
16268
mmentovai8c2a4de2006-09-20 16:20:15 +000016269# VPATH may cause trouble with some makes, so we remove $(srcdir),
16270# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16271# trailing colons and then remove the whole line if VPATH becomes empty
16272# (actually we leave an empty line to preserve line numbers).
16273if test "x$srcdir" = x.; then
16274 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16275s/:*\$(srcdir):*/:/
16276s/:*\${srcdir}:*/:/
16277s/:*@srcdir@:*/:/
16278s/^\([^=]*=[ ]*\):*/\1/
16279s/:*$//
16280s/^[^=]*=[ ]*$//
16281}'
16282fi
16283
jimblandy92b1f832009-12-23 22:23:49 +000016284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016285fi # test -n "$CONFIG_FILES"
16286
jimblandy92b1f832009-12-23 22:23:49 +000016287# Set up the scripts for CONFIG_HEADERS section.
16288# No need to generate them if there are no CONFIG_HEADERS.
16289# This happens for instance with `./config.status Makefile'.
16290if test -n "$CONFIG_HEADERS"; then
16291cat >"$tmp/defines.awk" <<\_ACAWK ||
16292BEGIN {
16293_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016294
jimblandy92b1f832009-12-23 22:23:49 +000016295# Transform confdefs.h into an awk script `defines.awk', embedded as
16296# here-document in config.status, that substitutes the proper values into
16297# config.h.in to produce config.h.
16298
16299# Create a delimiter string that does not exist in confdefs.h, to ease
16300# handling of long lines.
16301ac_delim='%!_!# '
16302for ac_last_try in false false :; do
16303 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16304 if test -z "$ac_t"; then
16305 break
16306 elif $ac_last_try; then
16307 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16308 else
16309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16310 fi
16311done
16312
16313# For the awk script, D is an array of macro values keyed by name,
16314# likewise P contains macro parameters if any. Preserve backslash
16315# newline sequences.
16316
16317ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16318sed -n '
16319s/.\{148\}/&'"$ac_delim"'/g
16320t rset
16321:rset
16322s/^[ ]*#[ ]*define[ ][ ]*/ /
16323t def
16324d
16325:def
16326s/\\$//
16327t bsnl
16328s/["\\]/\\&/g
16329s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16330D["\1"]=" \3"/p
16331s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16332d
16333:bsnl
16334s/["\\]/\\&/g
16335s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16336D["\1"]=" \3\\\\\\n"\\/p
16337t cont
16338s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16339t cont
16340d
16341:cont
16342n
16343s/.\{148\}/&'"$ac_delim"'/g
16344t clear
16345:clear
16346s/\\$//
16347t bsnlc
16348s/["\\]/\\&/g; s/^/"/; s/$/"/p
16349d
16350:bsnlc
16351s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16352b cont
16353' <confdefs.h | sed '
16354s/'"$ac_delim"'/"\\\
16355"/g' >>$CONFIG_STATUS || ac_write_fail=1
16356
16357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16358 for (key in D) D_is_set[key] = 1
16359 FS = ""
16360}
16361/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16362 line = \$ 0
16363 split(line, arg, " ")
16364 if (arg[1] == "#") {
16365 defundef = arg[2]
16366 mac1 = arg[3]
16367 } else {
16368 defundef = substr(arg[1], 2)
16369 mac1 = arg[2]
16370 }
16371 split(mac1, mac2, "(") #)
16372 macro = mac2[1]
16373 prefix = substr(line, 1, index(line, defundef) - 1)
16374 if (D_is_set[macro]) {
16375 # Preserve the white space surrounding the "#".
16376 print prefix "define", macro P[macro] D[macro]
16377 next
16378 } else {
16379 # Replace #undef with comments. This is necessary, for example,
16380 # in the case of _POSIX_SOURCE, which is predefined and required
16381 # on some systems where configure will not decide to define it.
16382 if (defundef == "undef") {
16383 print "/*", prefix defundef, macro, "*/"
16384 next
16385 }
16386 }
16387}
16388{ print }
16389_ACAWK
16390_ACEOF
16391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16392 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16393fi # test -n "$CONFIG_HEADERS"
16394
16395
16396eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16397shift
16398for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +000016399do
16400 case $ac_tag in
16401 :[FHLC]) ac_mode=$ac_tag; continue;;
16402 esac
16403 case $ac_mode$ac_tag in
16404 :[FHL]*:*);;
jimblandy92b1f832009-12-23 22:23:49 +000016405 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016406 :[FH]-) ac_tag=-:-;;
16407 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16408 esac
16409 ac_save_IFS=$IFS
16410 IFS=:
16411 set x $ac_tag
16412 IFS=$ac_save_IFS
16413 shift
16414 ac_file=$1
16415 shift
16416
16417 case $ac_mode in
16418 :L) ac_source=$1;;
16419 :[FH])
16420 ac_file_inputs=
16421 for ac_f
16422 do
16423 case $ac_f in
16424 -) ac_f="$tmp/stdin";;
16425 *) # Look for the file first in the build tree, then in the source tree
16426 # (if the path is not absolute). The absolute path cannot be DOS-style,
16427 # because $ac_f cannot contain `:'.
16428 test -f "$ac_f" ||
16429 case $ac_f in
16430 [\\/$]*) false;;
16431 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16432 esac ||
jimblandy92b1f832009-12-23 22:23:49 +000016433 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016434 esac
jimblandy92b1f832009-12-23 22:23:49 +000016435 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16436 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +000016437 done
16438
16439 # Let's still pretend it is `configure' which instantiates (i.e., don't
16440 # use $as_me), people would be surprised to read:
16441 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +000016442 configure_input='Generated from '`
16443 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16444 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +000016445 if test x"$ac_file" != x-; then
16446 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +000016447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16448$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016449 fi
jimblandy92b1f832009-12-23 22:23:49 +000016450 # Neutralize special characters interpreted by sed in replacement strings.
16451 case $configure_input in #(
16452 *\&* | *\|* | *\\* )
16453 ac_sed_conf_input=`$as_echo "$configure_input" |
16454 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16455 *) ac_sed_conf_input=$configure_input;;
16456 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016457
16458 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +000016459 *:-:* | *:-) cat >"$tmp/stdin" \
16460 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016461 esac
16462 ;;
brynercb91a2f2006-08-25 21:14:45 +000016463 esac
16464
mmentovai8c2a4de2006-09-20 16:20:15 +000016465 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000016466$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16467 X"$ac_file" : 'X\(//\)[^/]' \| \
16468 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016469 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016470$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16472 s//\1/
16473 q
16474 }
16475 /^X\(\/\/\)[^/].*/{
16476 s//\1/
16477 q
16478 }
16479 /^X\(\/\/\)$/{
16480 s//\1/
16481 q
16482 }
16483 /^X\(\/\).*/{
16484 s//\1/
16485 q
16486 }
16487 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016488 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000016489 ac_builddir=.
16490
mmentovai8c2a4de2006-09-20 16:20:15 +000016491case "$ac_dir" in
16492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16493*)
jimblandy92b1f832009-12-23 22:23:49 +000016494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016495 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +000016496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016497 case $ac_top_builddir_sub in
16498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16500 esac ;;
16501esac
16502ac_abs_top_builddir=$ac_pwd
16503ac_abs_builddir=$ac_pwd$ac_dir_suffix
16504# for backward compatibility:
16505ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000016506
16507case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000016508 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000016509 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000016510 ac_top_srcdir=$ac_top_builddir_sub
16511 ac_abs_top_srcdir=$ac_pwd ;;
16512 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000016513 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000016514 ac_top_srcdir=$srcdir
16515 ac_abs_top_srcdir=$srcdir ;;
16516 *) # Relative name.
16517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16518 ac_top_srcdir=$ac_top_build_prefix$srcdir
16519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000016520esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000016522
brynercb91a2f2006-08-25 21:14:45 +000016523
mmentovai8c2a4de2006-09-20 16:20:15 +000016524 case $ac_mode in
16525 :F)
16526 #
16527 # CONFIG_FILE
16528 #
brynercb91a2f2006-08-25 21:14:45 +000016529
16530 case $INSTALL in
16531 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016532 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000016533 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000016534 ac_MKDIR_P=$MKDIR_P
16535 case $MKDIR_P in
16536 [\\/$]* | ?:[\\/]* ) ;;
16537 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16538 esac
brynercb91a2f2006-08-25 21:14:45 +000016539_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016540
jimblandy92b1f832009-12-23 22:23:49 +000016541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016542# If the template does not know about datarootdir, expand it.
16543# FIXME: This hack should be removed a few years after 2.60.
16544ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +000016545ac_sed_dataroot='
16546/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +000016547 p
16548 q
16549}
16550/@datadir@/p
16551/@docdir@/p
16552/@infodir@/p
16553/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +000016554/@mandir@/p'
16555case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +000016556*datarootdir*) ac_datarootdir_seen=yes;;
16557*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +000016558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16559$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016560_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016562 ac_datarootdir_hack='
16563 s&@datadir@&$datadir&g
16564 s&@docdir@&$docdir&g
16565 s&@infodir@&$infodir&g
16566 s&@localedir@&$localedir&g
16567 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +000016568 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016569esac
16570_ACEOF
16571
16572# Neutralize VPATH when `$srcdir' = `.'.
16573# Shell code in configure.ac might set extrasub.
16574# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +000016575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +000016577$extrasub
16578_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016580:t
16581/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +000016582s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016583s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +000016584s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016585s&@srcdir@&$ac_srcdir&;t t
16586s&@abs_srcdir@&$ac_abs_srcdir&;t t
16587s&@top_srcdir@&$ac_top_srcdir&;t t
16588s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16589s&@builddir@&$ac_builddir&;t t
16590s&@abs_builddir@&$ac_abs_builddir&;t t
16591s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16592s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000016593s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016594$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +000016595"
16596eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16597 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016598
mmentovai8c2a4de2006-09-20 16:20:15 +000016599test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16600 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16601 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +000016602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000016603which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +000016604$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000016605which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000016606
mmentovai8c2a4de2006-09-20 16:20:15 +000016607 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000016608 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +000016609 -) cat "$tmp/out" && rm -f "$tmp/out";;
16610 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16611 esac \
16612 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016613 ;;
16614 :H)
16615 #
16616 # CONFIG_HEADER
16617 #
brynercb91a2f2006-08-25 21:14:45 +000016618 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +000016619 {
16620 $as_echo "/* $configure_input */" \
16621 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16622 } >"$tmp/config.h" \
16623 || as_fn_error "could not create $ac_file" "$LINENO" 5
16624 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16626$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000016627 else
jimblandy92b1f832009-12-23 22:23:49 +000016628 rm -f "$ac_file"
16629 mv "$tmp/config.h" "$ac_file" \
16630 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016631 fi
16632 else
jimblandy92b1f832009-12-23 22:23:49 +000016633 $as_echo "/* $configure_input */" \
16634 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16635 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016636 fi
jimblandy92b1f832009-12-23 22:23:49 +000016637# Compute "$ac_file"'s index in $config_headers.
16638_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +000016639_am_stamp_count=1
16640for _am_header in $config_headers :; do
16641 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +000016642 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +000016643 break ;;
16644 * )
16645 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16646 esac
16647done
jimblandy92b1f832009-12-23 22:23:49 +000016648echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16649$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16650 X"$_am_arg" : 'X\(//\)[^/]' \| \
16651 X"$_am_arg" : 'X\(//\)$' \| \
16652 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16653$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16655 s//\1/
16656 q
16657 }
16658 /^X\(\/\/\)[^/].*/{
16659 s//\1/
16660 q
16661 }
16662 /^X\(\/\/\)$/{
16663 s//\1/
16664 q
16665 }
16666 /^X\(\/\).*/{
16667 s//\1/
16668 q
16669 }
16670 s/.*/./; q'`/stamp-h$_am_stamp_count
16671 ;;
brynercb91a2f2006-08-25 21:14:45 +000016672
jimblandy92b1f832009-12-23 22:23:49 +000016673 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16674$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016675 ;;
16676 esac
brynercb91a2f2006-08-25 21:14:45 +000016677
16678
mmentovai8c2a4de2006-09-20 16:20:15 +000016679 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +000016680 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16681 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16682 # are listed without --file. Let's play safe and only enable the eval
16683 # if we detect the quoting.
16684 case $CONFIG_FILES in
16685 *\'*) eval set x "$CONFIG_FILES" ;;
16686 *) set x $CONFIG_FILES ;;
16687 esac
16688 shift
16689 for mf
16690 do
16691 # Strip MF so we end up with the name of the file.
16692 mf=`echo "$mf" | sed -e 's/:.*$//'`
16693 # Check whether this is an Automake generated Makefile or not.
16694 # We used to match only the files named `Makefile.in', but
16695 # some people rename them; so instead we look at the file content.
16696 # Grep'ing the first line is not enough: some people post-process
16697 # each Makefile.in and add a new line on top of each file to say so.
16698 # Grep'ing the whole file is not good either: AIX grep has a line
16699 # limit of 2048, but all sed's we know have understand at least 4000.
16700 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16701 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000016702$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16703 X"$mf" : 'X\(//\)[^/]' \| \
16704 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016705 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016706$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16708 s//\1/
16709 q
16710 }
16711 /^X\(\/\/\)[^/].*/{
16712 s//\1/
16713 q
16714 }
16715 /^X\(\/\/\)$/{
16716 s//\1/
16717 q
16718 }
16719 /^X\(\/\).*/{
16720 s//\1/
16721 q
16722 }
16723 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016724 else
16725 continue
16726 fi
16727 # Extract the definition of DEPDIR, am__include, and am__quote
16728 # from the Makefile without running `make'.
16729 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16730 test -z "$DEPDIR" && continue
16731 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16732 test -z "am__include" && continue
16733 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16734 # When using ansi2knr, U may be empty or an underscore; expand it
16735 U=`sed -n 's/^U = //p' < "$mf"`
16736 # Find all dependency output files, they are included files with
16737 # $(DEPDIR) in their names. We invoke sed twice because it is the
16738 # simplest approach to changing $(DEPDIR) to its actual value in the
16739 # expansion.
16740 for file in `sed -n "
16741 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16742 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16743 # Make sure the directory exists.
16744 test -f "$dirpart/$file" && continue
16745 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000016746$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16747 X"$file" : 'X\(//\)[^/]' \| \
16748 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016749 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016750$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16752 s//\1/
16753 q
16754 }
16755 /^X\(\/\/\)[^/].*/{
16756 s//\1/
16757 q
16758 }
16759 /^X\(\/\/\)$/{
16760 s//\1/
16761 q
16762 }
16763 /^X\(\/\).*/{
16764 s//\1/
16765 q
16766 }
16767 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016768 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16769 # echo "creating $dirpart/$file"
16770 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +000016771 done
brynercb91a2f2006-08-25 21:14:45 +000016772 done
jimblandy92b1f832009-12-23 22:23:49 +000016773}
16774 ;;
16775 "libtool":C)
16776
16777 # See if we are running on zsh, and set the options which allow our
16778 # commands through without removal of \ escapes.
16779 if test -n "${ZSH_VERSION+set}" ; then
16780 setopt NO_GLOB_SUBST
16781 fi
16782
16783 cfgfile="${ofile}T"
16784 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16785 $RM "$cfgfile"
16786
16787 cat <<_LT_EOF >> "$cfgfile"
16788#! $SHELL
16789
16790# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16791# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16792# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16793# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16794#
16795# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16796# 2006, 2007, 2008 Free Software Foundation, Inc.
16797# Written by Gordon Matzigkeit, 1996
16798#
16799# This file is part of GNU Libtool.
16800#
16801# GNU Libtool is free software; you can redistribute it and/or
16802# modify it under the terms of the GNU General Public License as
16803# published by the Free Software Foundation; either version 2 of
16804# the License, or (at your option) any later version.
16805#
16806# As a special exception to the GNU General Public License,
16807# if you distribute this file as part of a program or library that
16808# is built using GNU Libtool, you may include this file under the
16809# same distribution terms that you use for the rest of that program.
16810#
16811# GNU Libtool is distributed in the hope that it will be useful,
16812# but WITHOUT ANY WARRANTY; without even the implied warranty of
16813# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16814# GNU General Public License for more details.
16815#
16816# You should have received a copy of the GNU General Public License
16817# along with GNU Libtool; see the file COPYING. If not, a copy
16818# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16819# obtained by writing to the Free Software Foundation, Inc.,
16820# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16821
16822
16823# The names of the tagged configurations supported by this script.
16824available_tags="CXX "
16825
16826# ### BEGIN LIBTOOL CONFIG
16827
16828# Which release of libtool.m4 was used?
16829macro_version=$macro_version
16830macro_revision=$macro_revision
16831
16832# Whether or not to build shared libraries.
16833build_libtool_libs=$enable_shared
16834
16835# Whether or not to build static libraries.
16836build_old_libs=$enable_static
16837
16838# What type of objects to build.
16839pic_mode=$pic_mode
16840
16841# Whether or not to optimize for fast installation.
16842fast_install=$enable_fast_install
16843
16844# The host system.
16845host_alias=$host_alias
16846host=$host
16847host_os=$host_os
16848
16849# The build system.
16850build_alias=$build_alias
16851build=$build
16852build_os=$build_os
16853
16854# A sed program that does not truncate output.
16855SED=$lt_SED
16856
16857# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16858Xsed="\$SED -e 1s/^X//"
16859
16860# A grep program that handles long lines.
16861GREP=$lt_GREP
16862
16863# An ERE matcher.
16864EGREP=$lt_EGREP
16865
16866# A literal string matcher.
16867FGREP=$lt_FGREP
16868
16869# A BSD- or MS-compatible name lister.
16870NM=$lt_NM
16871
16872# Whether we need soft or hard links.
16873LN_S=$lt_LN_S
16874
16875# What is the maximum length of a command?
16876max_cmd_len=$max_cmd_len
16877
16878# Object file suffix (normally "o").
16879objext=$ac_objext
16880
16881# Executable file suffix (normally "").
16882exeext=$exeext
16883
16884# whether the shell understands "unset".
16885lt_unset=$lt_unset
16886
16887# turn spaces into newlines.
16888SP2NL=$lt_lt_SP2NL
16889
16890# turn newlines into spaces.
16891NL2SP=$lt_lt_NL2SP
16892
16893# How to create reloadable object files.
16894reload_flag=$lt_reload_flag
16895reload_cmds=$lt_reload_cmds
16896
16897# An object symbol dumper.
16898OBJDUMP=$lt_OBJDUMP
16899
16900# Method to check whether dependent libraries are shared objects.
16901deplibs_check_method=$lt_deplibs_check_method
16902
16903# Command to use when deplibs_check_method == "file_magic".
16904file_magic_cmd=$lt_file_magic_cmd
16905
16906# The archiver.
16907AR=$lt_AR
16908AR_FLAGS=$lt_AR_FLAGS
16909
16910# A symbol stripping program.
16911STRIP=$lt_STRIP
16912
16913# Commands used to install an old-style archive.
16914RANLIB=$lt_RANLIB
16915old_postinstall_cmds=$lt_old_postinstall_cmds
16916old_postuninstall_cmds=$lt_old_postuninstall_cmds
16917
16918# A C compiler.
16919LTCC=$lt_CC
16920
16921# LTCC compiler flags.
16922LTCFLAGS=$lt_CFLAGS
16923
16924# Take the output of nm and produce a listing of raw symbols and C names.
16925global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16926
16927# Transform the output of nm in a proper C declaration.
16928global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16929
16930# Transform the output of nm in a C name address pair.
16931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16932
16933# Transform the output of nm in a C name address pair when lib prefix is needed.
16934global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16935
16936# The name of the directory that contains temporary libtool files.
16937objdir=$objdir
16938
16939# Shell to use when invoking shell scripts.
16940SHELL=$lt_SHELL
16941
16942# An echo program that does not interpret backslashes.
16943ECHO=$lt_ECHO
16944
16945# Used to examine libraries when file_magic_cmd begins with "file".
16946MAGIC_CMD=$MAGIC_CMD
16947
16948# Must we lock files when doing compilation?
16949need_locks=$lt_need_locks
16950
16951# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16952DSYMUTIL=$lt_DSYMUTIL
16953
16954# Tool to change global to local symbols on Mac OS X.
16955NMEDIT=$lt_NMEDIT
16956
16957# Tool to manipulate fat objects and archives on Mac OS X.
16958LIPO=$lt_LIPO
16959
16960# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16961OTOOL=$lt_OTOOL
16962
16963# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16964OTOOL64=$lt_OTOOL64
16965
16966# Old archive suffix (normally "a").
16967libext=$libext
16968
16969# Shared library suffix (normally ".so").
16970shrext_cmds=$lt_shrext_cmds
16971
16972# The commands to extract the exported symbol list from a shared archive.
16973extract_expsyms_cmds=$lt_extract_expsyms_cmds
16974
16975# Variables whose values should be saved in libtool wrapper scripts and
16976# restored at link time.
16977variables_saved_for_relink=$lt_variables_saved_for_relink
16978
16979# Do we need the "lib" prefix for modules?
16980need_lib_prefix=$need_lib_prefix
16981
16982# Do we need a version for libraries?
16983need_version=$need_version
16984
16985# Library versioning type.
16986version_type=$version_type
16987
16988# Shared library runtime path variable.
16989runpath_var=$runpath_var
16990
16991# Shared library path variable.
16992shlibpath_var=$shlibpath_var
16993
16994# Is shlibpath searched before the hard-coded library search path?
16995shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16996
16997# Format of library name prefix.
16998libname_spec=$lt_libname_spec
16999
17000# List of archive names. First name is the real one, the rest are links.
17001# The last name is the one that the linker finds with -lNAME
17002library_names_spec=$lt_library_names_spec
17003
17004# The coded name of the library, if different from the real name.
17005soname_spec=$lt_soname_spec
17006
17007# Command to use after installation of a shared archive.
17008postinstall_cmds=$lt_postinstall_cmds
17009
17010# Command to use after uninstallation of a shared archive.
17011postuninstall_cmds=$lt_postuninstall_cmds
17012
17013# Commands used to finish a libtool library installation in a directory.
17014finish_cmds=$lt_finish_cmds
17015
17016# As "finish_cmds", except a single script fragment to be evaled but
17017# not shown.
17018finish_eval=$lt_finish_eval
17019
17020# Whether we should hardcode library paths into libraries.
17021hardcode_into_libs=$hardcode_into_libs
17022
17023# Compile-time system search path for libraries.
17024sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17025
17026# Run-time system search path for libraries.
17027sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17028
17029# Whether dlopen is supported.
17030dlopen_support=$enable_dlopen
17031
17032# Whether dlopen of programs is supported.
17033dlopen_self=$enable_dlopen_self
17034
17035# Whether dlopen of statically linked programs is supported.
17036dlopen_self_static=$enable_dlopen_self_static
17037
17038# Commands to strip libraries.
17039old_striplib=$lt_old_striplib
17040striplib=$lt_striplib
17041
17042
17043# The linker used to build libraries.
17044LD=$lt_LD
17045
17046# Commands used to build an old-style archive.
17047old_archive_cmds=$lt_old_archive_cmds
17048
17049# A language specific compiler.
17050CC=$lt_compiler
17051
17052# Is the compiler the GNU compiler?
17053with_gcc=$GCC
17054
17055# Compiler flag to turn off builtin functions.
17056no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17057
17058# How to pass a linker flag through the compiler.
17059wl=$lt_lt_prog_compiler_wl
17060
17061# Additional compiler flags for building library objects.
17062pic_flag=$lt_lt_prog_compiler_pic
17063
17064# Compiler flag to prevent dynamic linking.
17065link_static_flag=$lt_lt_prog_compiler_static
17066
17067# Does compiler simultaneously support -c and -o options?
17068compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17069
17070# Whether or not to add -lc for building shared libraries.
17071build_libtool_need_lc=$archive_cmds_need_lc
17072
17073# Whether or not to disallow shared libs when runtime libs are static.
17074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17075
17076# Compiler flag to allow reflexive dlopens.
17077export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17078
17079# Compiler flag to generate shared objects directly from archives.
17080whole_archive_flag_spec=$lt_whole_archive_flag_spec
17081
17082# Whether the compiler copes with passing no objects directly.
17083compiler_needs_object=$lt_compiler_needs_object
17084
17085# Create an old-style archive from a shared archive.
17086old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17087
17088# Create a temporary old-style archive to link instead of a shared archive.
17089old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17090
17091# Commands used to build a shared archive.
17092archive_cmds=$lt_archive_cmds
17093archive_expsym_cmds=$lt_archive_expsym_cmds
17094
17095# Commands used to build a loadable module if different from building
17096# a shared archive.
17097module_cmds=$lt_module_cmds
17098module_expsym_cmds=$lt_module_expsym_cmds
17099
17100# Whether we are building with GNU ld or not.
17101with_gnu_ld=$lt_with_gnu_ld
17102
17103# Flag that allows shared libraries with undefined symbols to be built.
17104allow_undefined_flag=$lt_allow_undefined_flag
17105
17106# Flag that enforces no undefined symbols.
17107no_undefined_flag=$lt_no_undefined_flag
17108
17109# Flag to hardcode \$libdir into a binary during linking.
17110# This must work even if \$libdir does not exist
17111hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17112
17113# If ld is used when linking, flag to hardcode \$libdir into a binary
17114# during linking. This must work even if \$libdir does not exist.
17115hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17116
17117# Whether we need a single "-rpath" flag with a separated argument.
17118hardcode_libdir_separator=$lt_hardcode_libdir_separator
17119
17120# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17121# DIR into the resulting binary.
17122hardcode_direct=$hardcode_direct
17123
17124# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17125# DIR into the resulting binary and the resulting library dependency is
17126# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17127# library is relocated.
17128hardcode_direct_absolute=$hardcode_direct_absolute
17129
17130# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17131# into the resulting binary.
17132hardcode_minus_L=$hardcode_minus_L
17133
17134# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17135# into the resulting binary.
17136hardcode_shlibpath_var=$hardcode_shlibpath_var
17137
17138# Set to "yes" if building a shared library automatically hardcodes DIR
17139# into the library and all subsequent libraries and executables linked
17140# against it.
17141hardcode_automatic=$hardcode_automatic
17142
17143# Set to yes if linker adds runtime paths of dependent libraries
17144# to runtime path list.
17145inherit_rpath=$inherit_rpath
17146
17147# Whether libtool must link a program against all its dependency libraries.
17148link_all_deplibs=$link_all_deplibs
17149
17150# Fix the shell variable \$srcfile for the compiler.
17151fix_srcfile_path=$lt_fix_srcfile_path
17152
17153# Set to "yes" if exported symbols are required.
17154always_export_symbols=$always_export_symbols
17155
17156# The commands to list exported symbols.
17157export_symbols_cmds=$lt_export_symbols_cmds
17158
17159# Symbols that should not be listed in the preloaded symbols.
17160exclude_expsyms=$lt_exclude_expsyms
17161
17162# Symbols that must always be exported.
17163include_expsyms=$lt_include_expsyms
17164
17165# Commands necessary for linking programs (against libraries) with templates.
17166prelink_cmds=$lt_prelink_cmds
17167
17168# Specify filename containing input files.
17169file_list_spec=$lt_file_list_spec
17170
17171# How to hardcode a shared library path into an executable.
17172hardcode_action=$hardcode_action
17173
17174# The directories searched by this compiler when creating a shared library.
17175compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17176
17177# Dependencies to place before and after the objects being linked to
17178# create a shared library.
17179predep_objects=$lt_predep_objects
17180postdep_objects=$lt_postdep_objects
17181predeps=$lt_predeps
17182postdeps=$lt_postdeps
17183
17184# The library search path used internally by the compiler when linking
17185# a shared library.
17186compiler_lib_search_path=$lt_compiler_lib_search_path
17187
17188# ### END LIBTOOL CONFIG
17189
17190_LT_EOF
17191
17192 case $host_os in
17193 aix3*)
17194 cat <<\_LT_EOF >> "$cfgfile"
17195# AIX sometimes has problems with the GCC collect2 program. For some
17196# reason, if we set the COLLECT_NAMES environment variable, the problems
17197# vanish in a puff of smoke.
17198if test "X${COLLECT_NAMES+set}" != Xset; then
17199 COLLECT_NAMES=
17200 export COLLECT_NAMES
17201fi
17202_LT_EOF
17203 ;;
17204 esac
17205
17206
17207ltmain="$ac_aux_dir/ltmain.sh"
17208
17209
17210 # We use sed instead of cat because bash on DJGPP gets confused if
17211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17212 # text mode, it properly converts lines to CR/LF. This bash problem
17213 # is reportedly fixed, but why not run on old versions too?
17214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17215 || (rm -f "$cfgfile"; exit 1)
17216
17217 case $xsi_shell in
17218 yes)
17219 cat << \_LT_EOF >> "$cfgfile"
17220
17221# func_dirname file append nondir_replacement
17222# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17223# otherwise set result to NONDIR_REPLACEMENT.
17224func_dirname ()
17225{
17226 case ${1} in
17227 */*) func_dirname_result="${1%/*}${2}" ;;
17228 * ) func_dirname_result="${3}" ;;
17229 esac
17230}
17231
17232# func_basename file
17233func_basename ()
17234{
17235 func_basename_result="${1##*/}"
17236}
17237
17238# func_dirname_and_basename file append nondir_replacement
17239# perform func_basename and func_dirname in a single function
17240# call:
17241# dirname: Compute the dirname of FILE. If nonempty,
17242# add APPEND to the result, otherwise set result
17243# to NONDIR_REPLACEMENT.
17244# value returned in "$func_dirname_result"
17245# basename: Compute filename of FILE.
17246# value retuned in "$func_basename_result"
17247# Implementation must be kept synchronized with func_dirname
17248# and func_basename. For efficiency, we do not delegate to
17249# those functions but instead duplicate the functionality here.
17250func_dirname_and_basename ()
17251{
17252 case ${1} in
17253 */*) func_dirname_result="${1%/*}${2}" ;;
17254 * ) func_dirname_result="${3}" ;;
17255 esac
17256 func_basename_result="${1##*/}"
17257}
17258
17259# func_stripname prefix suffix name
17260# strip PREFIX and SUFFIX off of NAME.
17261# PREFIX and SUFFIX must not contain globbing or regex special
17262# characters, hashes, percent signs, but SUFFIX may contain a leading
17263# dot (in which case that matches only a dot).
17264func_stripname ()
17265{
17266 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17267 # positional parameters, so assign one to ordinary parameter first.
17268 func_stripname_result=${3}
17269 func_stripname_result=${func_stripname_result#"${1}"}
17270 func_stripname_result=${func_stripname_result%"${2}"}
17271}
17272
17273# func_opt_split
17274func_opt_split ()
17275{
17276 func_opt_split_opt=${1%%=*}
17277 func_opt_split_arg=${1#*=}
17278}
17279
17280# func_lo2o object
17281func_lo2o ()
17282{
17283 case ${1} in
17284 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17285 *) func_lo2o_result=${1} ;;
17286 esac
17287}
17288
17289# func_xform libobj-or-source
17290func_xform ()
17291{
17292 func_xform_result=${1%.*}.lo
17293}
17294
17295# func_arith arithmetic-term...
17296func_arith ()
17297{
17298 func_arith_result=$(( $* ))
17299}
17300
17301# func_len string
17302# STRING may not start with a hyphen.
17303func_len ()
17304{
17305 func_len_result=${#1}
17306}
17307
17308_LT_EOF
17309 ;;
17310 *) # Bourne compatible functions.
17311 cat << \_LT_EOF >> "$cfgfile"
17312
17313# func_dirname file append nondir_replacement
17314# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17315# otherwise set result to NONDIR_REPLACEMENT.
17316func_dirname ()
17317{
17318 # Extract subdirectory from the argument.
17319 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17320 if test "X$func_dirname_result" = "X${1}"; then
17321 func_dirname_result="${3}"
17322 else
17323 func_dirname_result="$func_dirname_result${2}"
17324 fi
17325}
17326
17327# func_basename file
17328func_basename ()
17329{
17330 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17331}
17332
17333
17334# func_stripname prefix suffix name
17335# strip PREFIX and SUFFIX off of NAME.
17336# PREFIX and SUFFIX must not contain globbing or regex special
17337# characters, hashes, percent signs, but SUFFIX may contain a leading
17338# dot (in which case that matches only a dot).
17339# func_strip_suffix prefix name
17340func_stripname ()
17341{
17342 case ${2} in
17343 .*) func_stripname_result=`$ECHO "X${3}" \
17344 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17345 *) func_stripname_result=`$ECHO "X${3}" \
17346 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17347 esac
17348}
17349
17350# sed scripts:
17351my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17352my_sed_long_arg='1s/^-[^=]*=//'
17353
17354# func_opt_split
17355func_opt_split ()
17356{
17357 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17358 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17359}
17360
17361# func_lo2o object
17362func_lo2o ()
17363{
17364 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17365}
17366
17367# func_xform libobj-or-source
17368func_xform ()
17369{
17370 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17371}
17372
17373# func_arith arithmetic-term...
17374func_arith ()
17375{
17376 func_arith_result=`expr "$@"`
17377}
17378
17379# func_len string
17380# STRING may not start with a hyphen.
17381func_len ()
17382{
17383 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17384}
17385
17386_LT_EOF
17387esac
17388
17389case $lt_shell_append in
17390 yes)
17391 cat << \_LT_EOF >> "$cfgfile"
17392
17393# func_append var value
17394# Append VALUE to the end of shell variable VAR.
17395func_append ()
17396{
17397 eval "$1+=\$2"
17398}
17399_LT_EOF
17400 ;;
17401 *)
17402 cat << \_LT_EOF >> "$cfgfile"
17403
17404# func_append var value
17405# Append VALUE to the end of shell variable VAR.
17406func_append ()
17407{
17408 eval "$1=\$$1\$2"
17409}
17410
17411_LT_EOF
17412 ;;
17413 esac
17414
17415
17416 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17417 || (rm -f "$cfgfile"; exit 1)
17418
17419 mv -f "$cfgfile" "$ofile" ||
17420 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17421 chmod +x "$ofile"
17422
17423
17424 cat <<_LT_EOF >> "$ofile"
17425
17426# ### BEGIN LIBTOOL TAG CONFIG: CXX
17427
17428# The linker used to build libraries.
17429LD=$lt_LD_CXX
17430
17431# Commands used to build an old-style archive.
17432old_archive_cmds=$lt_old_archive_cmds_CXX
17433
17434# A language specific compiler.
17435CC=$lt_compiler_CXX
17436
17437# Is the compiler the GNU compiler?
17438with_gcc=$GCC_CXX
17439
17440# Compiler flag to turn off builtin functions.
17441no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17442
17443# How to pass a linker flag through the compiler.
17444wl=$lt_lt_prog_compiler_wl_CXX
17445
17446# Additional compiler flags for building library objects.
17447pic_flag=$lt_lt_prog_compiler_pic_CXX
17448
17449# Compiler flag to prevent dynamic linking.
17450link_static_flag=$lt_lt_prog_compiler_static_CXX
17451
17452# Does compiler simultaneously support -c and -o options?
17453compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17454
17455# Whether or not to add -lc for building shared libraries.
17456build_libtool_need_lc=$archive_cmds_need_lc_CXX
17457
17458# Whether or not to disallow shared libs when runtime libs are static.
17459allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17460
17461# Compiler flag to allow reflexive dlopens.
17462export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17463
17464# Compiler flag to generate shared objects directly from archives.
17465whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17466
17467# Whether the compiler copes with passing no objects directly.
17468compiler_needs_object=$lt_compiler_needs_object_CXX
17469
17470# Create an old-style archive from a shared archive.
17471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17472
17473# Create a temporary old-style archive to link instead of a shared archive.
17474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17475
17476# Commands used to build a shared archive.
17477archive_cmds=$lt_archive_cmds_CXX
17478archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17479
17480# Commands used to build a loadable module if different from building
17481# a shared archive.
17482module_cmds=$lt_module_cmds_CXX
17483module_expsym_cmds=$lt_module_expsym_cmds_CXX
17484
17485# Whether we are building with GNU ld or not.
17486with_gnu_ld=$lt_with_gnu_ld_CXX
17487
17488# Flag that allows shared libraries with undefined symbols to be built.
17489allow_undefined_flag=$lt_allow_undefined_flag_CXX
17490
17491# Flag that enforces no undefined symbols.
17492no_undefined_flag=$lt_no_undefined_flag_CXX
17493
17494# Flag to hardcode \$libdir into a binary during linking.
17495# This must work even if \$libdir does not exist
17496hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17497
17498# If ld is used when linking, flag to hardcode \$libdir into a binary
17499# during linking. This must work even if \$libdir does not exist.
17500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17501
17502# Whether we need a single "-rpath" flag with a separated argument.
17503hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17504
17505# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17506# DIR into the resulting binary.
17507hardcode_direct=$hardcode_direct_CXX
17508
17509# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17510# DIR into the resulting binary and the resulting library dependency is
17511# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17512# library is relocated.
17513hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17514
17515# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17516# into the resulting binary.
17517hardcode_minus_L=$hardcode_minus_L_CXX
17518
17519# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17520# into the resulting binary.
17521hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17522
17523# Set to "yes" if building a shared library automatically hardcodes DIR
17524# into the library and all subsequent libraries and executables linked
17525# against it.
17526hardcode_automatic=$hardcode_automatic_CXX
17527
17528# Set to yes if linker adds runtime paths of dependent libraries
17529# to runtime path list.
17530inherit_rpath=$inherit_rpath_CXX
17531
17532# Whether libtool must link a program against all its dependency libraries.
17533link_all_deplibs=$link_all_deplibs_CXX
17534
17535# Fix the shell variable \$srcfile for the compiler.
17536fix_srcfile_path=$lt_fix_srcfile_path_CXX
17537
17538# Set to "yes" if exported symbols are required.
17539always_export_symbols=$always_export_symbols_CXX
17540
17541# The commands to list exported symbols.
17542export_symbols_cmds=$lt_export_symbols_cmds_CXX
17543
17544# Symbols that should not be listed in the preloaded symbols.
17545exclude_expsyms=$lt_exclude_expsyms_CXX
17546
17547# Symbols that must always be exported.
17548include_expsyms=$lt_include_expsyms_CXX
17549
17550# Commands necessary for linking programs (against libraries) with templates.
17551prelink_cmds=$lt_prelink_cmds_CXX
17552
17553# Specify filename containing input files.
17554file_list_spec=$lt_file_list_spec_CXX
17555
17556# How to hardcode a shared library path into an executable.
17557hardcode_action=$hardcode_action_CXX
17558
17559# The directories searched by this compiler when creating a shared library.
17560compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17561
17562# Dependencies to place before and after the objects being linked to
17563# create a shared library.
17564predep_objects=$lt_predep_objects_CXX
17565postdep_objects=$lt_postdep_objects_CXX
17566predeps=$lt_predeps_CXX
17567postdeps=$lt_postdeps_CXX
17568
17569# The library search path used internally by the compiler when linking
17570# a shared library.
17571compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17572
17573# ### END LIBTOOL TAG CONFIG: CXX
17574_LT_EOF
17575
brynercb91a2f2006-08-25 21:14:45 +000017576 ;;
brynercb91a2f2006-08-25 21:14:45 +000017577
mmentovai8c2a4de2006-09-20 16:20:15 +000017578 esac
17579done # for ac_tag
17580
brynercb91a2f2006-08-25 21:14:45 +000017581
jimblandy92b1f832009-12-23 22:23:49 +000017582as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +000017583_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000017584ac_clean_files=$ac_clean_files_save
17585
jimblandy92b1f832009-12-23 22:23:49 +000017586test $ac_write_fail = 0 ||
17587 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17588
brynercb91a2f2006-08-25 21:14:45 +000017589
17590# configure is writing to config.log, and then calls config.status.
17591# config.status does its own redirection, appending to config.log.
17592# Unfortunately, on DOS this fails, as config.log is still kept open
17593# by configure, so config.status won't be able to write to it; its
17594# output is simply discarded. So we exec the FD to /dev/null,
17595# effectively closing config.log, so it can be properly (re)opened and
17596# appended to by config.status. When coming back to configure, we
17597# need to make the FD available again.
17598if test "$no_create" != yes; then
17599 ac_cs_success=:
17600 ac_config_status_args=
17601 test "$silent" = yes &&
17602 ac_config_status_args="$ac_config_status_args --quiet"
17603 exec 5>/dev/null
17604 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17605 exec 5>>config.log
17606 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17607 # would make configure fail if this is the last instruction.
jimblandy92b1f832009-12-23 22:23:49 +000017608 $ac_cs_success || as_fn_exit $?
17609fi
17610if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17612$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000017613fi
17614