blob: 05f3a8d710acffb050d3619347c6e1af984d316d [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ted.mielczareke574a2a2010-10-05 19:38:22 +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,
ted.mielczareke574a2a2010-10-05 19:38:22 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
jimblandydc4029a2010-02-02 17:39:51 +000011#
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"
ted.mielczareke574a2a2010-10-05 19:38:22 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +0000323
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
ted.mielczareke574a2a2010-10-05 19:38:22 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +0000364# 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
ted.mielczareke574a2a2010-10-05 19:38:22 +0000366# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +0000367as_fn_error ()
368{
ted.mielczareke574a2a2010-10-05 19:38:22 +0000369 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
jimblandy92b1f832009-12-23 22:23:49 +0000373 fi
ted.mielczareke574a2a2010-10-05 19:38:22 +0000374 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +0000375 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.
ted.mielczareke574a2a2010-10-05 19:38:22 +0000685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
brynercb91a2f2006-08-25 21:14:45 +0000686# 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.mielczareke574a2a2010-10-05 19:38:22 +0000752DISABLE_PROCESSOR_FALSE
753DISABLE_PROCESSOR_TRUE
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000754LINUX_HOST_FALSE
755LINUX_HOST_TRUE
nealsidde545c02010-03-02 00:39:48 +0000756PTHREAD_CFLAGS
757PTHREAD_LIBS
758PTHREAD_CC
759ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000760LIBTOOL_DEPS
761CXXCPP
762OTOOL64
763OTOOL
764LIPO
765NMEDIT
766DSYMUTIL
767lt_ECHO
768RANLIB
769AR
770OBJDUMP
771LN_S
772NM
773ac_ct_DUMPBIN
774DUMPBIN
775LD
776FGREP
777EGREP
778GREP
779SED
jimblandy92b1f832009-12-23 22:23:49 +0000780LIBTOOL
781am__fastdepCXX_FALSE
782am__fastdepCXX_TRUE
783CXXDEPMODE
784ac_ct_CXX
785CXXFLAGS
786CXX
787CPP
788am__fastdepCC_FALSE
789am__fastdepCC_TRUE
790CCDEPMODE
791AMDEPBACKSLASH
792AMDEP_FALSE
793AMDEP_TRUE
794am__quote
795am__include
796DEPDIR
797OBJEXT
798EXEEXT
799ac_ct_CC
800CPPFLAGS
801LDFLAGS
802CFLAGS
803CC
804am__untar
805am__tar
806AMTAR
807am__leading_dot
808SET_MAKE
809AWK
810mkdir_p
811MKDIR_P
812INSTALL_STRIP_PROGRAM
813STRIP
814install_sh
815MAKEINFO
816AUTOHEADER
817AUTOMAKE
818AUTOCONF
819ACLOCAL
820VERSION
821PACKAGE
822CYGPATH_W
823am__isrc
824INSTALL_DATA
825INSTALL_SCRIPT
826INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000827host_os
828host_vendor
829host_cpu
830host
831build_os
832build_vendor
833build_cpu
834build
jimblandy92b1f832009-12-23 22:23:49 +0000835target_alias
836host_alias
837build_alias
838LIBS
839ECHO_T
840ECHO_N
841ECHO_C
842DEFS
843mandir
844localedir
845libdir
846psdir
847pdfdir
848dvidir
849htmldir
850infodir
851docdir
852oldincludedir
853includedir
854localstatedir
855sharedstatedir
856sysconfdir
857datadir
858datarootdir
859libexecdir
860sbindir
861bindir
862program_transform_name
863prefix
864exec_prefix
865PACKAGE_URL
866PACKAGE_BUGREPORT
867PACKAGE_STRING
868PACKAGE_VERSION
869PACKAGE_TARNAME
870PACKAGE_NAME
871PATH_SEPARATOR
872SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000873ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000874ac_user_opts='
875enable_option_checking
876enable_dependency_tracking
877enable_shared
878enable_static
879with_pic
880enable_fast_install
881with_gnu_ld
882enable_libtool_lock
nealsidde545c02010-03-02 00:39:48 +0000883enable_m32
ted.mielczareke574a2a2010-10-05 19:38:22 +0000884enable_processor
jimblandy92b1f832009-12-23 22:23:49 +0000885enable_selftest
886'
mmentovai8c2a4de2006-09-20 16:20:15 +0000887 ac_precious_vars='build_alias
888host_alias
889target_alias
890CC
891CFLAGS
892LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000893LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000894CPPFLAGS
895CPP
896CXX
897CXXFLAGS
898CCC
jimblandy92b1f832009-12-23 22:23:49 +0000899CXXCPP'
mmentovai8c2a4de2006-09-20 16:20:15 +0000900
brynercb91a2f2006-08-25 21:14:45 +0000901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000905ac_unrecognized_opts=
906ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000907# The variables have the same names as the options, with
908# dashes changed to underlines.
909cache_file=/dev/null
910exec_prefix=NONE
911no_create=
912no_recursion=
913prefix=NONE
914program_prefix=NONE
915program_suffix=NONE
916program_transform_name=s,x,x,
917silent=
918site=
919srcdir=
920verbose=
921x_includes=NONE
922x_libraries=NONE
923
924# Installation directory options.
925# These are left unexpanded so users can "make install exec_prefix=/foo"
926# and all the variables that are supposed to be based on exec_prefix
927# by default will actually change.
928# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000929# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000930bindir='${exec_prefix}/bin'
931sbindir='${exec_prefix}/sbin'
932libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000933datarootdir='${prefix}/share'
934datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000935sysconfdir='${prefix}/etc'
936sharedstatedir='${prefix}/com'
937localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000938includedir='${prefix}/include'
939oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941infodir='${datarootdir}/info'
942htmldir='${docdir}'
943dvidir='${docdir}'
944pdfdir='${docdir}'
945psdir='${docdir}'
946libdir='${exec_prefix}/lib'
947localedir='${datarootdir}/locale'
948mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000949
950ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000951ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000952for ac_option
953do
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000956 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000957 ac_prev=
958 continue
959 fi
960
mmentovai8c2a4de2006-09-20 16:20:15 +0000961 case $ac_option in
ted.mielczareke574a2a2010-10-05 19:38:22 +0000962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000964 esac
brynercb91a2f2006-08-25 21:14:45 +0000965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
mmentovai8c2a4de2006-09-20 16:20:15 +0000968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
mmentovai8c2a4de2006-09-20 16:20:15 +0000992 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000993 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000995 datadir=$ac_optarg ;;
996
mmentovai8c2a4de2006-09-20 16:20:15 +0000997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
brynercb91a2f2006-08-25 21:14:45 +00001004 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001006 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001008 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001029
1030 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001032 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001034 as_fn_error "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
mmentovai8c2a4de2006-09-20 16:20:15 +00001071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
brynercb91a2f2006-08-25 21:14:45 +00001077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
mmentovai8c2a4de2006-09-20 16:20:15 +00001101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
brynercb91a2f2006-08-25 21:14:45 +00001106 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001107 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
mmentovai8c2a4de2006-09-20 16:20:15 +00001175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
brynercb91a2f2006-08-25 21:14:45 +00001185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001236 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001238 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001249
1250 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001252 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00001254 as_fn_error "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
ted.mielczareke574a2a2010-10-05 19:38:22 +00001284 -*) as_fn_error "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
ted.mielczareke574a2a2010-10-05 19:38:22 +00001293 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001294 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001295 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001303 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304 ;;
1305
1306 esac
1307done
1308
1309if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00001311 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001312fi
1313
jimblandy92b1f832009-12-23 22:23:49 +00001314if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00001317 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320fi
1321
1322# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001327do
mmentovai8c2a4de2006-09-20 16:20:15 +00001328 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001336 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001339 esac
ted.mielczareke574a2a2010-10-05 19:38:22 +00001340 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
ted.mielczareke574a2a2010-10-05 19:38:22 +00001354 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used." >&2
brynercb91a2f2006-08-25 21:14:45 +00001356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
1365
1366
mmentovai8c2a4de2006-09-20 16:20:15 +00001367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00001370 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001371test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00001372 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001373
1374
brynercb91a2f2006-08-25 21:14:45 +00001375# Find the source files, if location was not specified.
1376if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001378 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001402 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001403 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001404 srcdir=..
1405 fi
1406else
1407 ac_srcdir_defaulted=no
1408fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001409if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ted.mielczareke574a2a2010-10-05 19:38:22 +00001411 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001412fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001413ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414ac_abs_confdir=`(
ted.mielczareke574a2a2010-10-05 19:38:22 +00001415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
1427for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432done
brynercb91a2f2006-08-25 21:14:45 +00001433
1434#
1435# Report the --help message.
1436#
1437if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001441\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001442
1443Usage: $0 [OPTION]... [VAR=VALUE]...
1444
1445To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446VAR=VALUE. See below for descriptions of some of the useful variables.
1447
1448Defaults for the options are specified in brackets.
1449
1450Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
ted.mielczareke574a2a2010-10-05 19:38:22 +00001455 -q, --quiet, --silent do not print \`checking...' messages
brynercb91a2f2006-08-25 21:14:45 +00001456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460
brynercb91a2f2006-08-25 21:14:45 +00001461Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001463 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001465 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001466
1467By default, \`make install' will install all the files in
1468\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470for instance \`--prefix=\$HOME'.
1471
1472For better control, use the options below.
1473
1474Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001494_ACEOF
1495
1496 cat <<\_ACEOF
1497
1498Program names:
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502
1503System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506_ACEOF
1507fi
1508
1509if test -n "$ac_init_help"; then
1510 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001511 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001512 esac
1513 cat <<\_ACEOF
1514
1515Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001516 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001523 --enable-fast-install[=PKGS]
1524 optimize for fast installation [default=yes]
1525 --disable-libtool-lock avoid locking (might break parallel builds)
nealsidde545c02010-03-02 00:39:48 +00001526 --enable-m32 Compile/build with -m32 (default is no)
ted.mielczareke574a2a2010-10-05 19:38:22 +00001527 --disable-processor Don't build processor library (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001528 --enable-selftest Run extra tests with "make check" (may conflict with
1529 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001530
1531Optional Packages:
1532 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1533 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
brynercb91a2f2006-08-25 21:14:45 +00001534 --with-pic try to use only PIC/non-PIC objects [default=use
1535 both]
jimblandy92b1f832009-12-23 22:23:49 +00001536 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
brynercb91a2f2006-08-25 21:14:45 +00001537
1538Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001543 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001545 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001546 CPP C preprocessor
1547 CXX C++ compiler command
1548 CXXFLAGS C++ compiler flags
1549 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001550
1551Use these variables to override the choices made by `configure' or to help
1552it to find libraries and programs with nonstandard names/locations.
1553
1554Report bugs to <opensource@google.com>.
1555_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001556ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001557fi
1558
1559if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
brynercb91a2f2006-08-25 21:14:45 +00001565 ac_builddir=.
1566
mmentovai8c2a4de2006-09-20 16:20:15 +00001567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
jimblandy92b1f832009-12-23 22:23:49 +00001570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001571 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001582
1583case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001584 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001585 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001589 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001596esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001598
mmentovai8c2a4de2006-09-20 16:20:15 +00001599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001607 else
jimblandy92b1f832009-12-23 22:23:49 +00001608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001611 done
1612fi
1613
mmentovai8c2a4de2006-09-20 16:20:15 +00001614test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001615if $ac_init_version; then
1616 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001617breakpad configure 0.1
ted.mielczareke574a2a2010-10-05 19:38:22 +00001618generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001619
ted.mielczareke574a2a2010-10-05 19:38:22 +00001620Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001621This configure script is free software; the Free Software Foundation
1622gives unlimited permission to copy, distribute and modify it.
1623_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001624 exit
brynercb91a2f2006-08-25 21:14:45 +00001625fi
jimblandy92b1f832009-12-23 22:23:49 +00001626
1627## ------------------------ ##
1628## Autoconf initialization. ##
1629## ------------------------ ##
1630
1631# ac_fn_c_try_compile LINENO
1632# --------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_c_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001665 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001666
1667} # ac_fn_c_try_compile
1668
1669# ac_fn_c_try_cpp LINENO
1670# ----------------------
1671# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_cpp ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00001690 test $ac_status = 0; } >/dev/null && {
jimblandy92b1f832009-12-23 22:23:49 +00001691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700fi
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001702 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001703
1704} # ac_fn_c_try_cpp
1705
1706# ac_fn_cxx_try_compile LINENO
1707# ----------------------------
1708# Try to compile conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_cxx_try_compile ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_cxx_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.$ac_objext; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001740 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001741
1742} # ac_fn_cxx_try_compile
1743
1744# ac_fn_c_try_link LINENO
1745# -----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_link ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 $as_test_x conftest$ac_exeext
1772 }; then :
1773 ac_retval=0
1774else
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779fi
1780 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782 # interfere with the next link command; also delete a directory that is
1783 # left behind by Apple's compiler. We do this before executing the actions.
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001786 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001787
1788} # ac_fn_c_try_link
1789
1790# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791# -------------------------------------------------------
1792# Tests whether HEADER exists and can be compiled using the include files in
1793# INCLUDES, setting the cache variable VAR accordingly.
1794ac_fn_c_check_header_compile ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
ted.mielczareke574a2a2010-10-05 19:38:22 +00001799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
jimblandy92b1f832009-12-23 22:23:49 +00001800 $as_echo_n "(cached) " >&6
1801else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804$4
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$3=yes"
1809else
1810 eval "$3=no"
1811fi
1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819} # ac_fn_c_check_header_compile
1820
1821# ac_fn_c_try_run LINENO
1822# ----------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824# that executables *can* be run.
1825ac_fn_c_try_run ()
1826{
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=$ac_status
1856fi
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001859 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001860
1861} # ac_fn_c_try_run
1862
1863# ac_fn_c_check_func LINENO FUNC VAR
1864# ----------------------------------
1865# Tests whether FUNC exists, setting the cache variable VAR accordingly
1866ac_fn_c_check_func ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
ted.mielczareke574a2a2010-10-05 19:38:22 +00001871if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
jimblandy92b1f832009-12-23 22:23:49 +00001872 $as_echo_n "(cached) " >&6
1873else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878#define $2 innocuous_$2
1879
1880/* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1884
1885#ifdef __STDC__
1886# include <limits.h>
1887#else
1888# include <assert.h>
1889#endif
1890
1891#undef $2
1892
1893/* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1896#ifdef __cplusplus
1897extern "C"
1898#endif
1899char $2 ();
1900/* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903#if defined __stub_$2 || defined __stub___$2
1904choke me
1905#endif
1906
1907int
1908main ()
1909{
1910return $2 ();
1911 ;
1912 return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_link "$LINENO"; then :
1916 eval "$3=yes"
1917else
1918 eval "$3=no"
1919fi
1920rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1922fi
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927
1928} # ac_fn_c_check_func
1929
1930# ac_fn_cxx_try_cpp LINENO
1931# ------------------------
1932# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1933ac_fn_cxx_try_cpp ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940esac
1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942$as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 ac_status=$?
1945 if test -s conftest.err; then
1946 grep -v '^ *+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1949 fi
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00001951 test $ac_status = 0; } >/dev/null && {
jimblandy92b1f832009-12-23 22:23:49 +00001952 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1953 test ! -s conftest.err
1954 }; then :
1955 ac_retval=0
1956else
1957 $as_echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 ac_retval=1
1961fi
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001963 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001964
1965} # ac_fn_cxx_try_cpp
1966
1967# ac_fn_cxx_try_link LINENO
1968# -------------------------
1969# Try to link conftest.$ac_ext, and return whether this succeeded.
1970ac_fn_cxx_try_link ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 rm -f conftest.$ac_objext conftest$ac_exeext
1974 if { { ac_try="$ac_link"
1975case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978esac
1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980$as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_link") 2>conftest.err
1982 ac_status=$?
1983 if test -s conftest.err; then
1984 grep -v '^ *+' conftest.err >conftest.er1
1985 cat conftest.er1 >&5
1986 mv -f conftest.er1 conftest.err
1987 fi
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && {
1990 test -z "$ac_cxx_werror_flag" ||
1991 test ! -s conftest.err
1992 } && test -s conftest$ac_exeext && {
1993 test "$cross_compiling" = yes ||
1994 $as_test_x conftest$ac_exeext
1995 }; then :
1996 ac_retval=0
1997else
1998 $as_echo "$as_me: failed program was:" >&5
1999sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 ac_retval=1
2002fi
2003 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2004 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2005 # interfere with the next link command; also delete a directory that is
2006 # left behind by Apple's compiler. We do this before executing the actions.
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00002009 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00002010
2011} # ac_fn_cxx_try_link
ted.mielczarekb2236272010-04-08 23:06:23 +00002012
2013# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2014# ----------------------------------------------------
2015# Tries to find if the field MEMBER exists in type AGGR, after including
2016# INCLUDES, setting cache variable VAR accordingly.
2017ac_fn_c_check_member ()
2018{
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2021$as_echo_n "checking for $2.$3... " >&6; }
ted.mielczareke574a2a2010-10-05 19:38:22 +00002022if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
ted.mielczarekb2236272010-04-08 23:06:23 +00002023 $as_echo_n "(cached) " >&6
2024else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027$5
2028int
2029main ()
2030{
2031static $2 ac_aggr;
2032if (ac_aggr.$3)
2033return 0;
2034 ;
2035 return 0;
2036}
2037_ACEOF
2038if ac_fn_c_try_compile "$LINENO"; then :
2039 eval "$4=yes"
2040else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h. */
2043$5
2044int
2045main ()
2046{
2047static $2 ac_aggr;
2048if (sizeof ac_aggr.$3)
2049return 0;
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055 eval "$4=yes"
2056else
2057 eval "$4=no"
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062fi
2063eval ac_res=\$$4
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067
2068} # ac_fn_c_check_member
mmentovai8c2a4de2006-09-20 16:20:15 +00002069cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00002070This file contains any messages produced by compilers while
2071running configure, to aid debugging if configure makes a mistake.
2072
mmentovaie5dc6082007-02-14 19:51:05 +00002073It was created by breakpad $as_me 0.1, which was
ted.mielczareke574a2a2010-10-05 19:38:22 +00002074generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00002075
2076 $ $0 $@
2077
2078_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002079exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00002080{
2081cat <<_ASUNAME
2082## --------- ##
2083## Platform. ##
2084## --------- ##
2085
2086hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2087uname -m = `(uname -m) 2>/dev/null || echo unknown`
2088uname -r = `(uname -r) 2>/dev/null || echo unknown`
2089uname -s = `(uname -s) 2>/dev/null || echo unknown`
2090uname -v = `(uname -v) 2>/dev/null || echo unknown`
2091
2092/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2093/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2094
2095/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2096/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2097/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00002098/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00002099/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2100/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2101/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2102
2103_ASUNAME
2104
2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002110 $as_echo "PATH: $as_dir"
2111 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002112IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002113
2114} >&5
2115
2116cat >&5 <<_ACEOF
2117
2118
2119## ----------- ##
2120## Core tests. ##
2121## ----------- ##
2122
2123_ACEOF
2124
2125
2126# Keep a trace of the command line.
2127# Strip out --no-create and --no-recursion so they do not pile up.
2128# Strip out --silent because we don't want to record it for future runs.
2129# Also quote any args containing shell meta-characters.
2130# Make two passes to allow for proper duplicate-argument suppression.
2131ac_configure_args=
2132ac_configure_args0=
2133ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002134ac_must_keep_next=false
2135for ac_pass in 1 2
2136do
2137 for ac_arg
2138 do
2139 case $ac_arg in
2140 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2142 | -silent | --silent | --silen | --sile | --sil)
2143 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002144 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002145 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002146 esac
2147 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002148 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002149 2)
jimblandy92b1f832009-12-23 22:23:49 +00002150 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002151 if test $ac_must_keep_next = true; then
2152 ac_must_keep_next=false # Got value, back to normal.
2153 else
2154 case $ac_arg in
2155 *=* | --config-cache | -C | -disable-* | --disable-* \
2156 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2157 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2158 | -with-* | --with-* | -without-* | --without-* | --x)
2159 case "$ac_configure_args0 " in
2160 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2161 esac
2162 ;;
2163 -* ) ac_must_keep_next=true ;;
2164 esac
2165 fi
jimblandy92b1f832009-12-23 22:23:49 +00002166 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002167 ;;
2168 esac
2169 done
2170done
jimblandy92b1f832009-12-23 22:23:49 +00002171{ ac_configure_args0=; unset ac_configure_args0;}
2172{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002173
2174# When interrupted or exit'd, cleanup temporary files, and complete
2175# config.log. We remove comments because anyway the quotes in there
2176# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002177# WARNING: Use '\'' to represent an apostrophe within the trap.
2178# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002179trap 'exit_status=$?
2180 # Save into config.log some information that might help in debugging.
2181 {
2182 echo
2183
ted.mielczareke574a2a2010-10-05 19:38:22 +00002184 cat <<\_ASBOX
2185## ---------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002186## Cache variables. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00002187## ---------------- ##
2188_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00002189 echo
2190 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002191(
2192 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2193 eval ac_val=\$$ac_var
2194 case $ac_val in #(
2195 *${as_nl}*)
2196 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002197 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2198$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002199 esac
2200 case $ac_var in #(
2201 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002202 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2203 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002204 esac ;;
2205 esac
2206 done
brynercb91a2f2006-08-25 21:14:45 +00002207 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002208 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2209 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002210 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002211 "s/'\''/'\''\\\\'\'''\''/g;
2212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2213 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002214 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002216 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002217 esac |
2218 sort
2219)
brynercb91a2f2006-08-25 21:14:45 +00002220 echo
2221
ted.mielczareke574a2a2010-10-05 19:38:22 +00002222 cat <<\_ASBOX
2223## ----------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002224## Output variables. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00002225## ----------------- ##
2226_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00002227 echo
2228 for ac_var in $ac_subst_vars
2229 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002230 eval ac_val=\$$ac_var
2231 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002233 esac
jimblandy92b1f832009-12-23 22:23:49 +00002234 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002235 done | sort
2236 echo
2237
2238 if test -n "$ac_subst_files"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002239 cat <<\_ASBOX
2240## ------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002241## File substitutions. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00002242## ------------------- ##
2243_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00002244 echo
2245 for ac_var in $ac_subst_files
2246 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002247 eval ac_val=\$$ac_var
2248 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002250 esac
jimblandy92b1f832009-12-23 22:23:49 +00002251 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002252 done | sort
2253 echo
2254 fi
2255
2256 if test -s confdefs.h; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002257 cat <<\_ASBOX
2258## ----------- ##
brynercb91a2f2006-08-25 21:14:45 +00002259## confdefs.h. ##
ted.mielczareke574a2a2010-10-05 19:38:22 +00002260## ----------- ##
2261_ASBOX
brynercb91a2f2006-08-25 21:14:45 +00002262 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002263 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002264 echo
2265 fi
2266 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002267 $as_echo "$as_me: caught signal $ac_signal"
2268 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002269 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002270 rm -f core *.core core.conftest.* &&
2271 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002272 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002273' 0
brynercb91a2f2006-08-25 21:14:45 +00002274for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002275 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002276done
2277ac_signal=0
2278
2279# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002280rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002281
jimblandy92b1f832009-12-23 22:23:49 +00002282$as_echo "/* confdefs.h */" > confdefs.h
2283
brynercb91a2f2006-08-25 21:14:45 +00002284# Predefined preprocessor variables.
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_NAME "$PACKAGE_NAME"
2288_ACEOF
2289
brynercb91a2f2006-08-25 21:14:45 +00002290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2292_ACEOF
2293
brynercb91a2f2006-08-25 21:14:45 +00002294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_VERSION "$PACKAGE_VERSION"
2296_ACEOF
2297
brynercb91a2f2006-08-25 21:14:45 +00002298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE_STRING "$PACKAGE_STRING"
2300_ACEOF
2301
brynercb91a2f2006-08-25 21:14:45 +00002302cat >>confdefs.h <<_ACEOF
2303#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2304_ACEOF
2305
jimblandy92b1f832009-12-23 22:23:49 +00002306cat >>confdefs.h <<_ACEOF
2307#define PACKAGE_URL "$PACKAGE_URL"
2308_ACEOF
2309
brynercb91a2f2006-08-25 21:14:45 +00002310
2311# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002312# Prefer an explicitly selected file to automatically selected ones.
2313ac_site_file1=NONE
2314ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002315if test -n "$CONFIG_SITE"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002316 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002317elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002318 ac_site_file1=$prefix/share/config.site
2319 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002320else
jimblandy92b1f832009-12-23 22:23:49 +00002321 ac_site_file1=$ac_default_prefix/share/config.site
2322 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002323fi
jimblandy92b1f832009-12-23 22:23:49 +00002324for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002325do
jimblandy92b1f832009-12-23 22:23:49 +00002326 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002327 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2329$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002330 sed 's/^/| /' "$ac_site_file" >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00002331 . "$ac_site_file"
brynercb91a2f2006-08-25 21:14:45 +00002332 fi
2333done
2334
2335if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002336 # Some versions of bash will fail to source /dev/null (special files
2337 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2338 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2340$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002341 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002342 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2343 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002344 esac
2345 fi
2346else
jimblandy92b1f832009-12-23 22:23:49 +00002347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2348$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002349 >$cache_file
2350fi
2351
2352# Check that the precious variables saved in the cache have kept the same
2353# value.
2354ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002355for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2357 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002358 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2359 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002360 case $ac_old_set,$ac_new_set in
2361 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2363$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002364 ac_cache_corrupted=: ;;
2365 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2367$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002368 ac_cache_corrupted=: ;;
2369 ,);;
2370 *)
2371 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002372 # differences in whitespace do not lead to failure.
2373 ac_old_val_w=`echo x $ac_old_val`
2374 ac_new_val_w=`echo x $ac_new_val`
2375 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2377$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2378 ac_cache_corrupted=:
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2381$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2382 eval $ac_var=\$ac_old_val
2383 fi
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2385$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2387$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002388 fi;;
2389 esac
2390 # Pass precious variables to config.status.
2391 if test "$ac_new_set" = set; then
2392 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002393 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002394 *) ac_arg=$ac_var=$ac_new_val ;;
2395 esac
2396 case " $ac_configure_args " in
2397 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002398 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002399 esac
2400 fi
2401done
2402if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2406$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00002407 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002408fi
jimblandy92b1f832009-12-23 22:23:49 +00002409## -------------------- ##
2410## Main body of script. ##
2411## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002412
brynercb91a2f2006-08-25 21:14:45 +00002413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418
2419
2420
brynercb91a2f2006-08-25 21:14:45 +00002421ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002422for ac_dir in autotools "$srcdir"/autotools; do
ted.mielczareke574a2a2010-10-05 19:38:22 +00002423 for ac_t in install-sh install.sh shtool; do
2424 if test -f "$ac_dir/$ac_t"; then
2425 ac_aux_dir=$ac_dir
2426 ac_install_sh="$ac_aux_dir/$ac_t -c"
2427 break 2
2428 fi
2429 done
brynercb91a2f2006-08-25 21:14:45 +00002430done
2431if test -z "$ac_aux_dir"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002432 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002433fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002434
2435# These three variables are undocumented and unsupported,
2436# and are intended to be withdrawn in a future Autoconf release.
2437# They can cause serious problems if a builder's source tree is in a directory
2438# whose full name contains unusual characters.
2439ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2440ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2441ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2442
brynercb91a2f2006-08-25 21:14:45 +00002443
mmentovai425d2562006-08-30 20:05:05 +00002444
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002445# Make sure we can run config.sub.
2446$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002447 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002448
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2450$as_echo_n "checking build system type... " >&6; }
2451if test "${ac_cv_build+set}" = set; then :
2452 $as_echo_n "(cached) " >&6
2453else
2454 ac_build_alias=$build_alias
2455test "x$ac_build_alias" = x &&
2456 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2457test "x$ac_build_alias" = x &&
ted.mielczareke574a2a2010-10-05 19:38:22 +00002458 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002459ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002460 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002461
2462fi
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2464$as_echo "$ac_cv_build" >&6; }
2465case $ac_cv_build in
2466*-*-*) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00002467*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002468esac
2469build=$ac_cv_build
2470ac_save_IFS=$IFS; IFS='-'
2471set x $ac_cv_build
2472shift
2473build_cpu=$1
2474build_vendor=$2
2475shift; shift
2476# Remember, the first character of IFS is used to create $*,
2477# except with old shells:
2478build_os=$*
2479IFS=$ac_save_IFS
2480case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2481
2482
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2484$as_echo_n "checking host system type... " >&6; }
2485if test "${ac_cv_host+set}" = set; then :
2486 $as_echo_n "(cached) " >&6
2487else
2488 if test "x$host_alias" = x; then
2489 ac_cv_host=$ac_cv_build
2490else
2491 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ted.mielczareke574a2a2010-10-05 19:38:22 +00002492 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002493fi
2494
2495fi
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2497$as_echo "$ac_cv_host" >&6; }
2498case $ac_cv_host in
2499*-*-*) ;;
ted.mielczareke574a2a2010-10-05 19:38:22 +00002500*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002501esac
2502host=$ac_cv_host
2503ac_save_IFS=$IFS; IFS='-'
2504set x $ac_cv_host
2505shift
2506host_cpu=$1
2507host_vendor=$2
2508shift; shift
2509# Remember, the first character of IFS is used to create $*,
2510# except with old shells:
2511host_os=$*
2512IFS=$ac_save_IFS
2513case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2514
2515
2516
jimblandy92b1f832009-12-23 22:23:49 +00002517am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002518
brynercb91a2f2006-08-25 21:14:45 +00002519# Find a good install program. We prefer a C program (faster),
2520# so one script is as good as another. But avoid the broken or
2521# incompatible versions:
2522# SysV /etc/install, /usr/sbin/install
2523# SunOS /usr/etc/install
2524# IRIX /sbin/install
2525# AIX /bin/install
2526# AmigaOS /C/install, which installs bootblocks on floppy discs
2527# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530# OS/2's system install, which has a completely different semantic
2531# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002532# Reject install programs that cannot install multiple files.
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002535if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002536if test "${ac_cv_path_install+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002538else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002544 # Account for people who put trailing slashes in PATH elements.
2545case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002549 /usr/ucb/* ) ;;
2550 *)
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2553 # by default.
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002556 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 +00002557 if test $ac_prog = install &&
2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2560 :
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2564 :
2565 else
jimblandy92b1f832009-12-23 22:23:49 +00002566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2569 mkdir conftest.dir
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2574 then
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576 break 3
2577 fi
brynercb91a2f2006-08-25 21:14:45 +00002578 fi
2579 fi
2580 done
2581 done
2582 ;;
2583esac
jimblandy92b1f832009-12-23 22:23:49 +00002584
2585 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002586IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002587
jimblandy92b1f832009-12-23 22:23:49 +00002588rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002589
2590fi
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL=$ac_cv_path_install
2593 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002596 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002597 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002598 INSTALL=$ac_install_sh
2599 fi
2600fi
jimblandy92b1f832009-12-23 22:23:49 +00002601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002603
2604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605# It thinks the first close brace ends the variable substitution.
2606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
jimblandy92b1f832009-12-23 22:23:49 +00002612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2613$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002614# Just in case
2615sleep 1
2616echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002617# Reject unsafe characters in $srcdir or the absolute working directory
2618# name. Accept space and tab only in the latter.
2619am_lf='
2620'
2621case `pwd` in
2622 *[\\\"\#\$\&\'\`$am_lf]*)
ted.mielczareke574a2a2010-10-05 19:38:22 +00002623 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002624esac
2625case $srcdir in
2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
ted.mielczareke574a2a2010-10-05 19:38:22 +00002627 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002628esac
2629
brynercb91a2f2006-08-25 21:14:45 +00002630# Do `set' in a subshell so we don't clobber the current shell's
2631# arguments. Must try -L first in case configure is actually a
2632# symlink; some systems play weird games with the mod time of symlinks
2633# (eg FreeBSD returns the mod time of the symlink's containing
2634# directory).
2635if (
jimblandy92b1f832009-12-23 22:23:49 +00002636 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002637 if test "$*" = "X"; then
2638 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002639 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002640 fi
2641 rm -f conftest.file
2642 if test "$*" != "X $srcdir/configure conftest.file" \
2643 && test "$*" != "X conftest.file $srcdir/configure"; then
2644
2645 # If neither matched, then we have a broken ls. This can happen
2646 # if, for instance, CONFIG_SHELL is bash and it inherits a
2647 # broken ls alias from the environment. This has actually
2648 # happened. Such a system could not be considered "sane".
ted.mielczareke574a2a2010-10-05 19:38:22 +00002649 as_fn_error "ls -t appears to fail. Make sure there is not a broken
jimblandy92b1f832009-12-23 22:23:49 +00002650alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002651 fi
2652
2653 test "$2" = conftest.file
2654 )
2655then
2656 # Ok.
2657 :
2658else
ted.mielczareke574a2a2010-10-05 19:38:22 +00002659 as_fn_error "newly created file is older than distributed files!
jimblandy92b1f832009-12-23 22:23:49 +00002660Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002661fi
jimblandy92b1f832009-12-23 22:23:49 +00002662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002664test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002665 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002666# Use a double $ so make ignores it.
2667test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002668 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002669# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002670# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002671ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2672program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002673
2674# expand $ac_aux_dir to an absolute path
2675am_aux_dir=`cd $ac_aux_dir && pwd`
2676
jimblandy92b1f832009-12-23 22:23:49 +00002677if test x"${MISSING+set}" != xset; then
2678 case $am_aux_dir in
2679 *\ * | *\ *)
2680 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2681 *)
2682 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2683 esac
2684fi
brynercb91a2f2006-08-25 21:14:45 +00002685# Use eval to expand $SHELL
2686if eval "$MISSING --run true"; then
2687 am_missing_run="$MISSING --run "
2688else
2689 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2691$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002692fi
2693
jimblandy92b1f832009-12-23 22:23:49 +00002694if test x"${install_sh}" != xset; then
2695 case $am_aux_dir in
2696 *\ * | *\ *)
2697 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2698 *)
2699 install_sh="\${SHELL} $am_aux_dir/install-sh"
2700 esac
2701fi
2702
2703# Installed binaries are usually stripped using `strip' when the user
2704# run `make install-strip'. However `strip' might not be the right
2705# tool to use in cross-compilation environments, therefore Automake
2706# will honor the `STRIP' environment variable to overrule this program.
2707if test "$cross_compiling" != no; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710set dummy ${ac_tool_prefix}strip; ac_word=$2
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712$as_echo_n "checking for $ac_word... " >&6; }
2713if test "${ac_cv_prog_STRIP+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2715else
2716 if test -n "$STRIP"; then
2717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730done
2731 done
2732IFS=$as_save_IFS
2733
2734fi
2735fi
2736STRIP=$ac_cv_prog_STRIP
2737if test -n "$STRIP"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739$as_echo "$STRIP" >&6; }
2740else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742$as_echo "no" >&6; }
2743fi
2744
2745
2746fi
2747if test -z "$ac_cv_prog_STRIP"; then
2748 ac_ct_STRIP=$STRIP
2749 # Extract the first word of "strip", so it can be a program name with args.
2750set dummy strip; ac_word=$2
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
2753if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2755else
2756 if test -n "$ac_ct_STRIP"; then
2757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_STRIP="strip"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770done
2771 done
2772IFS=$as_save_IFS
2773
2774fi
2775fi
2776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2777if test -n "$ac_ct_STRIP"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2779$as_echo "$ac_ct_STRIP" >&6; }
2780else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
2783fi
2784
2785 if test "x$ac_ct_STRIP" = x; then
2786 STRIP=":"
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789yes:)
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792ac_tool_warned=yes ;;
2793esac
2794 STRIP=$ac_ct_STRIP
2795 fi
2796else
2797 STRIP="$ac_cv_prog_STRIP"
2798fi
2799
2800fi
2801INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2802
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2804$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002805if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002806 if test "${ac_cv_path_mkdir+set}" = set; then :
2807 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002808else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2811do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002814 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2817 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2818 'mkdir (GNU coreutils) '* | \
2819 'mkdir (coreutils) '* | \
2820 'mkdir (fileutils) '4.1*)
2821 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2822 break 3;;
2823 esac
2824 done
2825 done
jimblandy92b1f832009-12-23 22:23:49 +00002826 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002827IFS=$as_save_IFS
2828
2829fi
2830
jimblandydc4029a2010-02-02 17:39:51 +00002831 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002832 if test "${ac_cv_path_mkdir+set}" = set; then
2833 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002834 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002835 # As a last resort, use the slow shell script. Don't cache a
2836 # value for MKDIR_P within a source directory, because that will
2837 # break other packages using the cache if that directory is
2838 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002839 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002840 fi
2841fi
jimblandy92b1f832009-12-23 22:23:49 +00002842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2843$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002844
2845mkdir_p="$MKDIR_P"
2846case $mkdir_p in
2847 [\\/$]* | ?:[\\/]*) ;;
2848 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2849esac
brynercb91a2f2006-08-25 21:14:45 +00002850
2851for ac_prog in gawk mawk nawk awk
2852do
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856$as_echo_n "checking for $ac_word... " >&6; }
2857if test "${ac_cv_prog_AWK+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002859else
2860 if test -n "$AWK"; then
2861 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002868 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002869 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 +00002870 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002872 break 2
2873 fi
2874done
jimblandy92b1f832009-12-23 22:23:49 +00002875 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002876IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002877
2878fi
2879fi
2880AWK=$ac_cv_prog_AWK
2881if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2883$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002884else
jimblandy92b1f832009-12-23 22:23:49 +00002885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002887fi
2888
mmentovai8c2a4de2006-09-20 16:20:15 +00002889
brynercb91a2f2006-08-25 21:14:45 +00002890 test -n "$AWK" && break
2891done
2892
jimblandy92b1f832009-12-23 22:23:49 +00002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2894$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2895set x ${MAKE-make}
2896ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00002897if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
jimblandy92b1f832009-12-23 22:23:49 +00002898 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002899else
2900 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002901SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002902all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002903 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002904_ACEOF
ted.mielczareke574a2a2010-10-05 19:38:22 +00002905# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002906case `${MAKE-make} -f conftest.make 2>/dev/null` in
2907 *@@@%%%=?*=@@@%%%*)
2908 eval ac_cv_prog_make_${ac_make}_set=yes;;
2909 *)
2910 eval ac_cv_prog_make_${ac_make}_set=no;;
2911esac
brynercb91a2f2006-08-25 21:14:45 +00002912rm -f conftest.make
2913fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002914if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002917 SET_MAKE=
2918else
jimblandy92b1f832009-12-23 22:23:49 +00002919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002921 SET_MAKE="MAKE=${MAKE-make}"
2922fi
2923
2924rm -rf .tst 2>/dev/null
2925mkdir .tst 2>/dev/null
2926if test -d .tst; then
2927 am__leading_dot=.
2928else
2929 am__leading_dot=_
2930fi
2931rmdir .tst 2>/dev/null
2932
mmentovaiaf3c43f2007-05-17 18:34:37 +00002933if test "`cd $srcdir && pwd`" != "`pwd`"; then
2934 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2935 # is not polluted with repeated "-I."
2936 am__isrc=' -I$(srcdir)'
2937 # test to see if srcdir already configured
2938 if test -f $srcdir/config.status; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00002939 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002940 fi
brynercb91a2f2006-08-25 21:14:45 +00002941fi
2942
2943# test whether we have cygpath
2944if test -z "$CYGPATH_W"; then
2945 if (cygpath --version) >/dev/null 2>/dev/null; then
2946 CYGPATH_W='cygpath -w'
2947 else
2948 CYGPATH_W=echo
2949 fi
2950fi
2951
2952
2953# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002954 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002955 VERSION='0.1'
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define PACKAGE "$PACKAGE"
2960_ACEOF
2961
2962
2963cat >>confdefs.h <<_ACEOF
2964#define VERSION "$VERSION"
2965_ACEOF
2966
2967# Some tools Automake needs.
2968
2969ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
brynercb91a2f2006-08-25 21:14:45 +00002983# We need awk for the "check" target. The system "awk" is bad on
2984# some platforms.
2985# Always define AMTAR for backward compatibility.
2986
2987AMTAR=${AMTAR-"${am_missing_run}tar"}
2988
mmentovaidb3342a2006-12-05 22:52:28 +00002989
jimblandy92b1f832009-12-23 22:23:49 +00002990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2991$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002992# Loop over all known methods to create a tar archive until one works.
2993_am_tools='gnutar plaintar pax cpio none'
2994_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2995# Do not fold the above two line into one, because Tru64 sh and
2996# Solaris sh will not grok spaces in the rhs of `-'.
2997for _am_tool in $_am_tools
2998do
2999 case $_am_tool in
3000 gnutar)
3001 for _am_tar in tar gnutar gtar;
3002 do
3003 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3004 ($_am_tar --version) >&5 2>&5
3005 ac_status=$?
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } && break
3008 done
3009 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3010 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3011 am__untar="$_am_tar -xf -"
3012 ;;
3013 plaintar)
3014 # Must skip GNU tar: if it does not support --format= it doesn't create
3015 # ustar tarball either.
3016 (tar --version) >/dev/null 2>&1 && continue
3017 am__tar='tar chf - "$$tardir"'
3018 am__tar_='tar chf - "$tardir"'
3019 am__untar='tar xf -'
3020 ;;
3021 pax)
3022 am__tar='pax -L -x ustar -w "$$tardir"'
3023 am__tar_='pax -L -x ustar -w "$tardir"'
3024 am__untar='pax -r'
3025 ;;
3026 cpio)
3027 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3028 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3029 am__untar='cpio -i -H ustar -d'
3030 ;;
3031 none)
3032 am__tar=false
3033 am__tar_=false
3034 am__untar=false
3035 ;;
3036 esac
3037
3038 # If the value was cached, stop now. We just wanted to have am__tar
3039 # and am__untar set.
3040 test -n "${am_cv_prog_tar_ustar}" && break
3041
3042 # tar/untar a dummy directory, and stop if the command works
3043 rm -rf conftest.dir
3044 mkdir conftest.dir
3045 echo GrepMe > conftest.dir/file
3046 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3047 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051 rm -rf conftest.dir
3052 if test -s conftest.tar; then
3053 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3054 ($am__untar <conftest.tar) >&5 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3058 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3059 fi
3060done
3061rm -rf conftest.dir
3062
jimblandy92b1f832009-12-23 22:23:49 +00003063if test "${am_cv_prog_tar_ustar+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00003065else
3066 am_cv_prog_tar_ustar=$_am_tool
3067fi
3068
jimblandy92b1f832009-12-23 22:23:49 +00003069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3070$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003071
3072
3073
3074
3075
mmentovai8c2a4de2006-09-20 16:20:15 +00003076ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00003077
3078
brynercb91a2f2006-08-25 21:14:45 +00003079ac_ext=c
3080ac_cpp='$CPP $CPPFLAGS'
3081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3086set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
3089if test "${ac_cv_prog_CC+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003091else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003100 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003101 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 +00003102 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003104 break 2
3105 fi
3106done
jimblandy92b1f832009-12-23 22:23:49 +00003107 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003108IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003109
3110fi
3111fi
3112CC=$ac_cv_prog_CC
3113if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003116else
jimblandy92b1f832009-12-23 22:23:49 +00003117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003119fi
3120
mmentovai8c2a4de2006-09-20 16:20:15 +00003121
brynercb91a2f2006-08-25 21:14:45 +00003122fi
3123if test -z "$ac_cv_prog_CC"; then
3124 ac_ct_CC=$CC
3125 # Extract the first word of "gcc", so it can be a program name with args.
3126set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
3129if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003131else
3132 if test -n "$ac_ct_CC"; then
3133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003140 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003141 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 +00003142 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003144 break 2
3145 fi
3146done
jimblandy92b1f832009-12-23 22:23:49 +00003147 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003148IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003149
3150fi
3151fi
3152ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003156else
jimblandy92b1f832009-12-23 22:23:49 +00003157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003159fi
3160
mmentovai8c2a4de2006-09-20 16:20:15 +00003161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003168ac_tool_warned=yes ;;
3169esac
3170 CC=$ac_ct_CC
3171 fi
brynercb91a2f2006-08-25 21:14:45 +00003172else
3173 CC="$ac_cv_prog_CC"
3174fi
3175
3176if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003179set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
3182if test "${ac_cv_prog_CC+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003184else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003193 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003194 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 +00003195 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003197 break 2
3198 fi
3199done
jimblandy92b1f832009-12-23 22:23:49 +00003200 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003201IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003202
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003209else
jimblandy92b1f832009-12-23 22:23:49 +00003210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003212fi
3213
mmentovai8c2a4de2006-09-20 16:20:15 +00003214
brynercb91a2f2006-08-25 21:14:45 +00003215 fi
brynercb91a2f2006-08-25 21:14:45 +00003216fi
3217if test -z "$CC"; then
3218 # Extract the first word of "cc", so it can be a program name with args.
3219set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
3222if test "${ac_cv_prog_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003224else
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3227else
3228 ac_prog_rejected=no
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003234 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003235 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 +00003236 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3237 ac_prog_rejected=yes
3238 continue
3239 fi
3240 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003242 break 2
3243 fi
3244done
jimblandy92b1f832009-12-23 22:23:49 +00003245 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003246IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003247
3248if test $ac_prog_rejected = yes; then
3249 # We found a bogon in the path, so make sure we never use it.
3250 set dummy $ac_cv_prog_CC
3251 shift
3252 if test $# != 0; then
3253 # We chose a different compiler from the bogus one.
3254 # However, it has the same basename, so the bogon will be chosen
3255 # first if we set CC to just the basename; use the full file name.
3256 shift
3257 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3258 fi
3259fi
3260fi
3261fi
3262CC=$ac_cv_prog_CC
3263if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003266else
jimblandy92b1f832009-12-23 22:23:49 +00003267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003269fi
3270
mmentovai8c2a4de2006-09-20 16:20:15 +00003271
brynercb91a2f2006-08-25 21:14:45 +00003272fi
3273if test -z "$CC"; then
3274 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003275 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003276 do
3277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if test "${ac_cv_prog_CC+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003283else
3284 if test -n "$CC"; then
3285 ac_cv_prog_CC="$CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003292 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003293 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 +00003294 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003296 break 2
3297 fi
3298done
jimblandy92b1f832009-12-23 22:23:49 +00003299 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003300IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003301
3302fi
3303fi
3304CC=$ac_cv_prog_CC
3305if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003308else
jimblandy92b1f832009-12-23 22:23:49 +00003309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003311fi
3312
mmentovai8c2a4de2006-09-20 16:20:15 +00003313
brynercb91a2f2006-08-25 21:14:45 +00003314 test -n "$CC" && break
3315 done
3316fi
3317if test -z "$CC"; then
3318 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003319 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003320do
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003327else
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003336 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003337 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 +00003338 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003340 break 2
3341 fi
3342done
jimblandy92b1f832009-12-23 22:23:49 +00003343 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003344IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003345
3346fi
3347fi
3348ac_ct_CC=$ac_cv_prog_ac_ct_CC
3349if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3351$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003352else
jimblandy92b1f832009-12-23 22:23:49 +00003353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003355fi
3356
mmentovai8c2a4de2006-09-20 16:20:15 +00003357
brynercb91a2f2006-08-25 21:14:45 +00003358 test -n "$ac_ct_CC" && break
3359done
3360
mmentovai8c2a4de2006-09-20 16:20:15 +00003361 if test "x$ac_ct_CC" = x; then
3362 CC=""
3363 else
3364 case $cross_compiling:$ac_tool_warned in
3365yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003368ac_tool_warned=yes ;;
3369esac
3370 CC=$ac_ct_CC
3371 fi
brynercb91a2f2006-08-25 21:14:45 +00003372fi
3373
3374fi
3375
3376
jimblandy92b1f832009-12-23 22:23:49 +00003377test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003379as_fn_error "no acceptable C compiler found in \$PATH
3380See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003381
3382# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003383$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3384set X $ac_compile
3385ac_compiler=$2
3386for ac_option in --version -v -V -qversion; do
3387 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
jimblandy92b1f832009-12-23 22:23:49 +00003392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003395 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003396 if test -s conftest.err; then
3397 sed '10a\
3398... rest of stderr output deleted ...
3399 10q' conftest.err >conftest.er1
3400 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003401 fi
jimblandydc4029a2010-02-02 17:39:51 +00003402 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }
3405done
brynercb91a2f2006-08-25 21:14:45 +00003406
jimblandy92b1f832009-12-23 22:23:49 +00003407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003408/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003409
brynercb91a2f2006-08-25 21:14:45 +00003410int
3411main ()
3412{
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
3418ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003419ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003420# Try to create an executable without -o first, disregard a.out.
3421# It will help us diagnose broken compilers, and finding out an intuition
3422# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3424$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003425ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3426
3427# The possible output files:
3428ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3429
mmentovai8c2a4de2006-09-20 16:20:15 +00003430ac_rmfiles=
3431for ac_file in $ac_files
3432do
3433 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003435 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3436 esac
3437done
3438rm -f $ac_rmfiles
3439
jimblandy92b1f832009-12-23 22:23:49 +00003440if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003441case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
jimblandy92b1f832009-12-23 22:23:49 +00003445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003447 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003448 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003451 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3452# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3453# in a Makefile. We should not override ac_cv_exeext if it was cached,
3454# so that the user can short-circuit this test for compilers unknown to
3455# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003456for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003457do
3458 test -f "$ac_file" || continue
3459 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003461 ;;
3462 [ab].out )
3463 # We found the default executable, but exeext='' is most
3464 # certainly right.
3465 break;;
3466 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003467 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003468 then :; else
3469 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470 fi
3471 # We set ac_cv_exeext here because the later test for it is not
3472 # safe: cross compilers may not add the suffix if given an `-o'
3473 # argument, so we may need to know it at that point already.
3474 # Even if this section looks crufty: it has the advantage of
3475 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003476 break;;
3477 * )
3478 break;;
3479 esac
3480done
mmentovai8c2a4de2006-09-20 16:20:15 +00003481test "$ac_cv_exeext" = no && ac_cv_exeext=
3482
brynercb91a2f2006-08-25 21:14:45 +00003483else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003484 ac_file=''
3485fi
jimblandy92b1f832009-12-23 22:23:49 +00003486if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003490sed 's/^/| /' conftest.$ac_ext >&5
3491
jimblandy92b1f832009-12-23 22:23:49 +00003492{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003494{ as_fn_set_status 77
3495as_fn_error "C compiler cannot create executables
3496See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003497else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3499$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003500fi
jimblandydc4029a2010-02-02 17:39:51 +00003501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3502$as_echo_n "checking for C compiler default output file name... " >&6; }
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3504$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003505ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003506
jimblandydc4029a2010-02-02 17:39:51 +00003507rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003508ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3510$as_echo_n "checking for suffix of executables... " >&6; }
3511if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003512case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515esac
jimblandy92b1f832009-12-23 22:23:49 +00003516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003518 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003519 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003522 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3523# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3524# work properly (i.e., refer to `conftest.exe'), while it won't with
3525# `rm'.
3526for ac_file in conftest.exe conftest conftest.*; do
3527 test -f "$ac_file" || continue
3528 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003530 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003531 break;;
3532 * ) break;;
3533 esac
3534done
3535else
jimblandy92b1f832009-12-23 22:23:49 +00003536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003538as_fn_error "cannot compute suffix of executables: cannot compile and link
3539See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003540fi
jimblandydc4029a2010-02-02 17:39:51 +00003541rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3543$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003544
3545rm -f conftest.$ac_ext
3546EXEEXT=$ac_cv_exeext
3547ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h. */
3550#include <stdio.h>
3551int
3552main ()
3553{
3554FILE *f = fopen ("conftest.out", "w");
3555 return ferror (f) || fclose (f) != 0;
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561ac_clean_files="$ac_clean_files conftest.out"
3562# Check that the compiler produces executables we can run. If not, either
3563# the compiler is broken, or we cross compile.
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3565$as_echo_n "checking whether we are cross compiling... " >&6; }
3566if test "$cross_compiling" != yes; then
3567 { { ac_try="$ac_link"
3568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_link") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3578 if { ac_try='./conftest$ac_cv_exeext'
3579 { { case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584$as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_try") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; }; then
3589 cross_compiling=no
3590 else
3591 if test "$cross_compiling" = maybe; then
3592 cross_compiling=yes
3593 else
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003596as_fn_error "cannot run C compiled programs.
jimblandydc4029a2010-02-02 17:39:51 +00003597If you meant to cross compile, use \`--host'.
ted.mielczareke574a2a2010-10-05 19:38:22 +00003598See \`config.log' for more details." "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003599 fi
3600 fi
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3603$as_echo "$cross_compiling" >&6; }
3604
3605rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3606ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3608$as_echo_n "checking for suffix of object files... " >&6; }
3609if test "${ac_cv_objext+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003611else
jimblandy92b1f832009-12-23 22:23:49 +00003612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003613/* end confdefs.h. */
3614
3615int
3616main ()
3617{
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003624if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
jimblandy92b1f832009-12-23 22:23:49 +00003629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003631 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003632 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003635 for ac_file in conftest.o conftest.obj conftest.*; do
3636 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003637 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3640 break;;
3641 esac
3642done
3643else
jimblandy92b1f832009-12-23 22:23:49 +00003644 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003645sed 's/^/| /' conftest.$ac_ext >&5
3646
jimblandy92b1f832009-12-23 22:23:49 +00003647{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00003649as_fn_error "cannot compute suffix of object files: cannot compile
3650See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003651fi
brynercb91a2f2006-08-25 21:14:45 +00003652rm -f conftest.$ac_cv_objext conftest.$ac_ext
3653fi
jimblandy92b1f832009-12-23 22:23:49 +00003654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3655$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003656OBJEXT=$ac_cv_objext
3657ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3659$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3660if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003662else
jimblandy92b1f832009-12-23 22:23:49 +00003663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003664/* end confdefs.h. */
3665
3666int
3667main ()
3668{
3669#ifndef __GNUC__
3670 choke me
3671#endif
3672
3673 ;
3674 return 0;
3675}
3676_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003677if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003678 ac_compiler_gnu=yes
3679else
jimblandy92b1f832009-12-23 22:23:49 +00003680 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003681fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003683ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684
3685fi
jimblandy92b1f832009-12-23 22:23:49 +00003686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3687$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688if test $ac_compiler_gnu = yes; then
3689 GCC=yes
3690else
3691 GCC=
3692fi
brynercb91a2f2006-08-25 21:14:45 +00003693ac_test_CFLAGS=${CFLAGS+set}
3694ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3696$as_echo_n "checking whether $CC accepts -g... " >&6; }
3697if test "${ac_cv_prog_cc_g+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003699else
mmentovai8c2a4de2006-09-20 16:20:15 +00003700 ac_save_c_werror_flag=$ac_c_werror_flag
3701 ac_c_werror_flag=yes
3702 ac_cv_prog_cc_g=no
3703 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003705/* end confdefs.h. */
3706
3707int
3708main ()
3709{
3710
3711 ;
3712 return 0;
3713}
3714_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003715if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003716 ac_cv_prog_cc_g=yes
3717else
jimblandy92b1f832009-12-23 22:23:49 +00003718 CFLAGS=""
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003720/* end confdefs.h. */
3721
3722int
3723main ()
3724{
3725
3726 ;
3727 return 0;
3728}
3729_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003730if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003731
jimblandy92b1f832009-12-23 22:23:49 +00003732else
3733 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003734 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003736/* end confdefs.h. */
3737
3738int
3739main ()
3740{
3741
3742 ;
3743 return 0;
3744}
3745_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003746if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003747 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003748fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003750fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_c_werror_flag=$ac_save_c_werror_flag
3755fi
jimblandy92b1f832009-12-23 22:23:49 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3757$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003758if test "$ac_test_CFLAGS" = set; then
3759 CFLAGS=$ac_save_CFLAGS
3760elif test $ac_cv_prog_cc_g = yes; then
3761 if test "$GCC" = yes; then
3762 CFLAGS="-g -O2"
3763 else
3764 CFLAGS="-g"
3765 fi
3766else
3767 if test "$GCC" = yes; then
3768 CFLAGS="-O2"
3769 else
3770 CFLAGS=
3771 fi
3772fi
jimblandy92b1f832009-12-23 22:23:49 +00003773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3774$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3775if test "${ac_cv_prog_cc_c89+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003777else
mmentovai8c2a4de2006-09-20 16:20:15 +00003778 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003779ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003781/* end confdefs.h. */
3782#include <stdarg.h>
3783#include <stdio.h>
3784#include <sys/types.h>
3785#include <sys/stat.h>
3786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787struct buf { int x; };
3788FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789static char *e (p, i)
3790 char **p;
3791 int i;
3792{
3793 return p[i];
3794}
3795static char *f (char * (*g) (char **, int), char **p, ...)
3796{
3797 char *s;
3798 va_list v;
3799 va_start (v,p);
3800 s = g (p, va_arg (v,int));
3801 va_end (v);
3802 return s;
3803}
3804
3805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003808 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003811 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003812int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3813
mmentovai8c2a4de2006-09-20 16:20:15 +00003814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3816#define FOO(x) 'x'
3817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3818
brynercb91a2f2006-08-25 21:14:45 +00003819int test (int i, double x);
3820struct s1 {int (*f) (int a);};
3821struct s2 {int (*f) (double a);};
3822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823int argc;
3824char **argv;
3825int
3826main ()
3827{
3828return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3829 ;
3830 return 0;
3831}
3832_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003835do
3836 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003837 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003838 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003839fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003840rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003842done
mmentovai8c2a4de2006-09-20 16:20:15 +00003843rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003844CC=$ac_save_CC
3845
3846fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003847# AC_CACHE_VAL
3848case "x$ac_cv_prog_cc_c89" in
3849 x)
jimblandy92b1f832009-12-23 22:23:49 +00003850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003852 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003855 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003856 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003859esac
jimblandy92b1f832009-12-23 22:23:49 +00003860if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003861
jimblandy92b1f832009-12-23 22:23:49 +00003862fi
brynercb91a2f2006-08-25 21:14:45 +00003863
brynercb91a2f2006-08-25 21:14:45 +00003864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869DEPDIR="${am__leading_dot}deps"
3870
mmentovai8c2a4de2006-09-20 16:20:15 +00003871ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003872
3873
3874am_make=${MAKE-make}
3875cat > confinc << 'END'
3876am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003877 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003878.PHONY: am__doit
3879END
3880# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3882$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003883am__include="#"
3884am__quote=
3885_am_result=none
3886# First try GNU make style include.
3887echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003888# Ignore all kinds of additional output from `make'.
3889case `$am_make -s -f confmf 2> /dev/null` in #(
3890*the\ am__doit\ target*)
3891 am__include=include
3892 am__quote=
3893 _am_result=GNU
3894 ;;
3895esac
brynercb91a2f2006-08-25 21:14:45 +00003896# Now try BSD make style include.
3897if test "$am__include" = "#"; then
3898 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003899 case `$am_make -s -f confmf 2> /dev/null` in #(
3900 *the\ am__doit\ target*)
3901 am__include=.include
3902 am__quote="\""
3903 _am_result=BSD
3904 ;;
3905 esac
brynercb91a2f2006-08-25 21:14:45 +00003906fi
3907
3908
jimblandy92b1f832009-12-23 22:23:49 +00003909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3910$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003911rm -f confinc confmf
3912
mmentovai8c2a4de2006-09-20 16:20:15 +00003913# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003914if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003915 enableval=$enable_dependency_tracking;
3916fi
brynercb91a2f2006-08-25 21:14:45 +00003917
brynercb91a2f2006-08-25 21:14:45 +00003918if test "x$enable_dependency_tracking" != xno; then
3919 am_depcomp="$ac_aux_dir/depcomp"
3920 AMDEPBACKSLASH='\'
3921fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003922 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003923 AMDEP_TRUE=
3924 AMDEP_FALSE='#'
3925else
3926 AMDEP_TRUE='#'
3927 AMDEP_FALSE=
3928fi
3929
3930
3931
brynercb91a2f2006-08-25 21:14:45 +00003932depcc="$CC" am_compiler_list=
3933
jimblandy92b1f832009-12-23 22:23:49 +00003934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3935$as_echo_n "checking dependency style of $depcc... " >&6; }
3936if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003938else
3939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3940 # We make a subdir and do the tests there. Otherwise we can end up
3941 # making bogus files that we don't know about and never remove. For
3942 # instance it was reported that on HP-UX the gcc test will end up
3943 # making a dummy file named `D' -- because `-MD' means `put the output
3944 # in D'.
3945 mkdir conftest.dir
3946 # Copy depcomp to subdir because otherwise we won't find it if we're
3947 # using a relative directory.
3948 cp "$am_depcomp" conftest.dir
3949 cd conftest.dir
3950 # We will build objects and dependencies in a subdirectory because
3951 # it helps to detect inapplicable dependency modes. For instance
3952 # both Tru64's cc and ICC support -MD to output dependencies as a
3953 # side effect of compilation, but ICC will put the dependencies in
3954 # the current directory while Tru64 will put them in the object
3955 # directory.
3956 mkdir sub
3957
3958 am_cv_CC_dependencies_compiler_type=none
3959 if test "$am_compiler_list" = ""; then
3960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3961 fi
jimblandy92b1f832009-12-23 22:23:49 +00003962 am__universal=false
3963 case " $depcc " in #(
3964 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3965 esac
3966
brynercb91a2f2006-08-25 21:14:45 +00003967 for depmode in $am_compiler_list; do
3968 # Setup a source with many dependencies, because some compilers
3969 # like to wrap large dependency lists on column 80 (with \), and
3970 # we should not choose a depcomp mode which is confused by this.
3971 #
3972 # We need to recreate these files for each test, as the compiler may
3973 # overwrite some of them when testing with obscure command lines.
3974 # This happens at least with the AIX C compiler.
3975 : > sub/conftest.c
3976 for i in 1 2 3 4 5 6; do
3977 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3978 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3979 # Solaris 8's {/usr,}/bin/sh.
3980 touch sub/conftst$i.h
3981 done
3982 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3983
jimblandy92b1f832009-12-23 22:23:49 +00003984 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3985 # mode. It turns out that the SunPro C++ compiler does not properly
3986 # handle `-M -o', and we need to detect this. Also, some Intel
3987 # versions had trouble with output in subdirs
3988 am__obj=sub/conftest.${OBJEXT-o}
3989 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003990 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003991 gcc)
3992 # This depmode causes a compiler race in universal mode.
3993 test "$am__universal" = false || continue
3994 ;;
brynercb91a2f2006-08-25 21:14:45 +00003995 nosideeffect)
3996 # after this tag, mechanisms are not by side-effect, so they'll
3997 # only be used when explicitly requested
3998 if test "x$enable_dependency_tracking" = xyes; then
3999 continue
4000 else
4001 break
4002 fi
4003 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004004 msvisualcpp | msvcmsys)
4005 # This compiler won't grok `-c -o', but also, the minuso test has
4006 # not run yet. These depmodes are late enough in the game, and
4007 # so weak that their functioning should not be impacted.
4008 am__obj=conftest.${OBJEXT-o}
4009 am__minus_obj=
4010 ;;
brynercb91a2f2006-08-25 21:14:45 +00004011 none) break ;;
4012 esac
brynercb91a2f2006-08-25 21:14:45 +00004013 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004014 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004015 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004016 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004017 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004018 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004019 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004020 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004021 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4022 # icc doesn't choke on unknown options, it will just issue warnings
4023 # or remarks (even with -Werror). So we grep stderr for any message
4024 # that says an option was ignored or not supported.
4025 # When given -MP, icc 7.0 and 7.1 complain thusly:
4026 # icc: Command line warning: ignoring option '-M'; no argument required
4027 # The diagnosis changed in icc 8.0:
4028 # icc: Command line remark: option '-MP' not supported
4029 if (grep 'ignoring option' conftest.err ||
4030 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4031 am_cv_CC_dependencies_compiler_type=$depmode
4032 break
4033 fi
4034 fi
4035 done
4036
4037 cd ..
4038 rm -rf conftest.dir
4039else
4040 am_cv_CC_dependencies_compiler_type=none
4041fi
4042
4043fi
jimblandy92b1f832009-12-23 22:23:49 +00004044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4045$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004046CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4047
mmentovaiaf3c43f2007-05-17 18:34:37 +00004048 if
brynercb91a2f2006-08-25 21:14:45 +00004049 test "x$enable_dependency_tracking" != xno \
4050 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4051 am__fastdepCC_TRUE=
4052 am__fastdepCC_FALSE='#'
4053else
4054 am__fastdepCC_TRUE='#'
4055 am__fastdepCC_FALSE=
4056fi
4057
4058
4059ac_ext=c
4060ac_cpp='$CPP $CPPFLAGS'
4061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00004064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4065$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004066# On Suns, sometimes $CPP names a directory.
4067if test -n "$CPP" && test -d "$CPP"; then
4068 CPP=
4069fi
4070if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00004071 if test "${ac_cv_prog_CPP+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004073else
4074 # Double quotes because CPP needs to be expanded
4075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4076 do
4077 ac_preproc_ok=false
4078for ac_c_preproc_warn_flag in '' yes
4079do
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004087/* end confdefs.h. */
4088#ifdef __STDC__
4089# include <limits.h>
4090#else
4091# include <assert.h>
4092#endif
4093 Syntax error
4094_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004095if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004096
jimblandy92b1f832009-12-23 22:23:49 +00004097else
brynercb91a2f2006-08-25 21:14:45 +00004098 # Broken: fails on valid input.
4099continue
4100fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004101rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004102
mmentovai8c2a4de2006-09-20 16:20:15 +00004103 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004104 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004106/* end confdefs.h. */
4107#include <ac_nonexistent.h>
4108_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004109if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004110 # Broken: success on invalid input.
4111continue
4112else
brynercb91a2f2006-08-25 21:14:45 +00004113 # Passes both tests.
4114ac_preproc_ok=:
4115break
4116fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004117rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004118
4119done
4120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00004121rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004122if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00004123 break
4124fi
4125
4126 done
4127 ac_cv_prog_CPP=$CPP
4128
4129fi
4130 CPP=$ac_cv_prog_CPP
4131else
4132 ac_cv_prog_CPP=$CPP
4133fi
jimblandy92b1f832009-12-23 22:23:49 +00004134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4135$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004136ac_preproc_ok=false
4137for ac_c_preproc_warn_flag in '' yes
4138do
4139 # Use a header file that comes with gcc, so configuring glibc
4140 # with a fresh cross-compiler works.
4141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4142 # <limits.h> exists even on freestanding compilers.
4143 # On the NeXT, cc -E runs the code through the compiler's parser,
4144 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004146/* end confdefs.h. */
4147#ifdef __STDC__
4148# include <limits.h>
4149#else
4150# include <assert.h>
4151#endif
4152 Syntax error
4153_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004154if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004155
jimblandy92b1f832009-12-23 22:23:49 +00004156else
brynercb91a2f2006-08-25 21:14:45 +00004157 # Broken: fails on valid input.
4158continue
4159fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004160rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004161
mmentovai8c2a4de2006-09-20 16:20:15 +00004162 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004163 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004165/* end confdefs.h. */
4166#include <ac_nonexistent.h>
4167_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004168if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004169 # Broken: success on invalid input.
4170continue
4171else
brynercb91a2f2006-08-25 21:14:45 +00004172 # Passes both tests.
4173ac_preproc_ok=:
4174break
4175fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004176rm -f conftest.err conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004177
4178done
4179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00004180rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004181if $ac_preproc_ok; then :
4182
brynercb91a2f2006-08-25 21:14:45 +00004183else
jimblandy92b1f832009-12-23 22:23:49 +00004184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ted.mielczareke574a2a2010-10-05 19:38:22 +00004186as_fn_error "C preprocessor \"$CPP\" fails sanity check
4187See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004188fi
4189
4190ac_ext=c
4191ac_cpp='$CPP $CPPFLAGS'
4192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
mmentovai8c2a4de2006-09-20 16:20:15 +00004196ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004197ac_cpp='$CXXCPP $CPPFLAGS'
4198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004201if test -z "$CXX"; then
4202 if test -n "$CCC"; then
4203 CXX=$CCC
4204 else
4205 if test -n "$ac_tool_prefix"; then
4206 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 +00004207 do
4208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if test "${ac_cv_prog_CXX+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004214else
4215 if test -n "$CXX"; then
4216 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004223 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004224 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 +00004225 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004227 break 2
4228 fi
4229done
jimblandy92b1f832009-12-23 22:23:49 +00004230 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004231IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004232
4233fi
4234fi
4235CXX=$ac_cv_prog_CXX
4236if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4238$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004239else
jimblandy92b1f832009-12-23 22:23:49 +00004240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004242fi
4243
mmentovai8c2a4de2006-09-20 16:20:15 +00004244
brynercb91a2f2006-08-25 21:14:45 +00004245 test -n "$CXX" && break
4246 done
4247fi
4248if test -z "$CXX"; then
4249 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004250 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 +00004251do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255$as_echo_n "checking for $ac_word... " >&6; }
4256if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004258else
4259 if test -n "$ac_ct_CXX"; then
4260 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004267 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004268 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 +00004269 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004271 break 2
4272 fi
4273done
jimblandy92b1f832009-12-23 22:23:49 +00004274 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004275IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004276
4277fi
4278fi
4279ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4280if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4282$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004283else
jimblandy92b1f832009-12-23 22:23:49 +00004284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004286fi
4287
mmentovai8c2a4de2006-09-20 16:20:15 +00004288
brynercb91a2f2006-08-25 21:14:45 +00004289 test -n "$ac_ct_CXX" && break
4290done
brynercb91a2f2006-08-25 21:14:45 +00004291
mmentovai8c2a4de2006-09-20 16:20:15 +00004292 if test "x$ac_ct_CXX" = x; then
4293 CXX="g++"
4294 else
4295 case $cross_compiling:$ac_tool_warned in
4296yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004299ac_tool_warned=yes ;;
4300esac
4301 CXX=$ac_ct_CXX
4302 fi
brynercb91a2f2006-08-25 21:14:45 +00004303fi
4304
mmentovai8c2a4de2006-09-20 16:20:15 +00004305 fi
4306fi
brynercb91a2f2006-08-25 21:14:45 +00004307# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004308$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4309set X $ac_compile
4310ac_compiler=$2
4311for ac_option in --version -v -V -qversion; do
4312 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004313case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316esac
jimblandy92b1f832009-12-23 22:23:49 +00004317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318$as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004320 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004321 if test -s conftest.err; then
4322 sed '10a\
4323... rest of stderr output deleted ...
4324 10q' conftest.err >conftest.er1
4325 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004326 fi
jimblandydc4029a2010-02-02 17:39:51 +00004327 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }
4330done
brynercb91a2f2006-08-25 21:14:45 +00004331
jimblandy92b1f832009-12-23 22:23:49 +00004332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4333$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4334if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004336else
jimblandy92b1f832009-12-23 22:23:49 +00004337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004338/* end confdefs.h. */
4339
4340int
4341main ()
4342{
4343#ifndef __GNUC__
4344 choke me
4345#endif
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004351if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004352 ac_compiler_gnu=yes
4353else
jimblandy92b1f832009-12-23 22:23:49 +00004354 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004355fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004357ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4358
4359fi
jimblandy92b1f832009-12-23 22:23:49 +00004360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4361$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4362if test $ac_compiler_gnu = yes; then
4363 GXX=yes
4364else
4365 GXX=
4366fi
brynercb91a2f2006-08-25 21:14:45 +00004367ac_test_CXXFLAGS=${CXXFLAGS+set}
4368ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4370$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4371if test "${ac_cv_prog_cxx_g+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004373else
mmentovai8c2a4de2006-09-20 16:20:15 +00004374 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4375 ac_cxx_werror_flag=yes
4376 ac_cv_prog_cxx_g=no
4377 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004379/* end confdefs.h. */
4380
4381int
4382main ()
4383{
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004389if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004390 ac_cv_prog_cxx_g=yes
4391else
jimblandy92b1f832009-12-23 22:23:49 +00004392 CXXFLAGS=""
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004394/* end confdefs.h. */
4395
4396int
4397main ()
4398{
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004404if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004405
jimblandy92b1f832009-12-23 22:23:49 +00004406else
4407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004408 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004410/* end confdefs.h. */
4411
4412int
4413main ()
4414{
4415
4416 ;
4417 return 0;
4418}
4419_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004420if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004421 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004422fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004424fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4429fi
jimblandy92b1f832009-12-23 22:23:49 +00004430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4431$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004432if test "$ac_test_CXXFLAGS" = set; then
4433 CXXFLAGS=$ac_save_CXXFLAGS
4434elif test $ac_cv_prog_cxx_g = yes; then
4435 if test "$GXX" = yes; then
4436 CXXFLAGS="-g -O2"
4437 else
4438 CXXFLAGS="-g"
4439 fi
4440else
4441 if test "$GXX" = yes; then
4442 CXXFLAGS="-O2"
4443 else
4444 CXXFLAGS=
4445 fi
4446fi
brynercb91a2f2006-08-25 21:14:45 +00004447ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452
4453depcc="$CXX" am_compiler_list=
4454
jimblandy92b1f832009-12-23 22:23:49 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456$as_echo_n "checking dependency style of $depcc... " >&6; }
4457if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004459else
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named `D' -- because `-MD' means `put the output
4465 # in D'.
4466 mkdir conftest.dir
4467 # Copy depcomp to subdir because otherwise we won't find it if we're
4468 # using a relative directory.
4469 cp "$am_depcomp" conftest.dir
4470 cd conftest.dir
4471 # We will build objects and dependencies in a subdirectory because
4472 # it helps to detect inapplicable dependency modes. For instance
4473 # both Tru64's cc and ICC support -MD to output dependencies as a
4474 # side effect of compilation, but ICC will put the dependencies in
4475 # the current directory while Tru64 will put them in the object
4476 # directory.
4477 mkdir sub
4478
4479 am_cv_CXX_dependencies_compiler_type=none
4480 if test "$am_compiler_list" = ""; then
4481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4482 fi
jimblandy92b1f832009-12-23 22:23:49 +00004483 am__universal=false
4484 case " $depcc " in #(
4485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4486 esac
4487
brynercb91a2f2006-08-25 21:14:45 +00004488 for depmode in $am_compiler_list; do
4489 # Setup a source with many dependencies, because some compilers
4490 # like to wrap large dependency lists on column 80 (with \), and
4491 # we should not choose a depcomp mode which is confused by this.
4492 #
4493 # We need to recreate these files for each test, as the compiler may
4494 # overwrite some of them when testing with obscure command lines.
4495 # This happens at least with the AIX C compiler.
4496 : > sub/conftest.c
4497 for i in 1 2 3 4 5 6; do
4498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4500 # Solaris 8's {/usr,}/bin/sh.
4501 touch sub/conftst$i.h
4502 done
4503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504
jimblandy92b1f832009-12-23 22:23:49 +00004505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4506 # mode. It turns out that the SunPro C++ compiler does not properly
4507 # handle `-M -o', and we need to detect this. Also, some Intel
4508 # versions had trouble with output in subdirs
4509 am__obj=sub/conftest.${OBJEXT-o}
4510 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004511 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004512 gcc)
4513 # This depmode causes a compiler race in universal mode.
4514 test "$am__universal" = false || continue
4515 ;;
brynercb91a2f2006-08-25 21:14:45 +00004516 nosideeffect)
4517 # after this tag, mechanisms are not by side-effect, so they'll
4518 # only be used when explicitly requested
4519 if test "x$enable_dependency_tracking" = xyes; then
4520 continue
4521 else
4522 break
4523 fi
4524 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004525 msvisualcpp | msvcmsys)
4526 # This compiler won't grok `-c -o', but also, the minuso test has
4527 # not run yet. These depmodes are late enough in the game, and
4528 # so weak that their functioning should not be impacted.
4529 am__obj=conftest.${OBJEXT-o}
4530 am__minus_obj=
4531 ;;
brynercb91a2f2006-08-25 21:14:45 +00004532 none) break ;;
4533 esac
brynercb91a2f2006-08-25 21:14:45 +00004534 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004535 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004538 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4543 # icc doesn't choke on unknown options, it will just issue warnings
4544 # or remarks (even with -Werror). So we grep stderr for any message
4545 # that says an option was ignored or not supported.
4546 # When given -MP, icc 7.0 and 7.1 complain thusly:
4547 # icc: Command line warning: ignoring option '-M'; no argument required
4548 # The diagnosis changed in icc 8.0:
4549 # icc: Command line remark: option '-MP' not supported
4550 if (grep 'ignoring option' conftest.err ||
4551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4552 am_cv_CXX_dependencies_compiler_type=$depmode
4553 break
4554 fi
4555 fi
4556 done
4557
4558 cd ..
4559 rm -rf conftest.dir
4560else
4561 am_cv_CXX_dependencies_compiler_type=none
4562fi
4563
4564fi
jimblandy92b1f832009-12-23 22:23:49 +00004565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4566$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004567CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4568
mmentovaiaf3c43f2007-05-17 18:34:37 +00004569 if
brynercb91a2f2006-08-25 21:14:45 +00004570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCXX_TRUE=
4573 am__fastdepCXX_FALSE='#'
4574else
4575 am__fastdepCXX_TRUE='#'
4576 am__fastdepCXX_FALSE=
4577fi
4578
4579
4580
jimblandy92b1f832009-12-23 22:23:49 +00004581case `pwd` in
4582 *\ * | *\ *)
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4584$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4585esac
brynercb91a2f2006-08-25 21:14:45 +00004586
mmentovai8c2a4de2006-09-20 16:20:15 +00004587
jimblandy92b1f832009-12-23 22:23:49 +00004588
jimblandydc4029a2010-02-02 17:39:51 +00004589macro_version='2.2.6b'
4590macro_revision='1.3017'
brynercb91a2f2006-08-25 21:14:45 +00004591
mmentovai8c2a4de2006-09-20 16:20:15 +00004592
mmentovai8c2a4de2006-09-20 16:20:15 +00004593
brynercb91a2f2006-08-25 21:14:45 +00004594
jimblandy92b1f832009-12-23 22:23:49 +00004595
4596
4597
4598
4599
4600
4601
4602
4603
4604ltmain="$ac_aux_dir/ltmain.sh"
4605
jimblandy92b1f832009-12-23 22:23:49 +00004606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4607$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4608if test "${ac_cv_path_SED+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004610else
jimblandy92b1f832009-12-23 22:23:49 +00004611 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4612 for ac_i in 1 2 3 4 5 6 7; do
4613 ac_script="$ac_script$as_nl$ac_script"
4614 done
4615 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4616 { ac_script=; unset ac_script;}
4617 if test -z "$SED"; then
4618 ac_path_SED_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004625 for ac_prog in sed gsed; do
brynercb91a2f2006-08-25 21:14:45 +00004626 for ac_exec_ext in '' $ac_executable_extensions; do
jimblandy92b1f832009-12-23 22:23:49 +00004627 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4629# Check for GNU ac_path_SED and select it if it is found.
4630 # Check for GNU $ac_path_SED
4631case `"$ac_path_SED" --version 2>&1` in
4632*GNU*)
4633 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4634*)
4635 ac_count=0
4636 $as_echo_n 0123456789 >"conftest.in"
4637 while :
4638 do
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo '' >> "conftest.nl"
4643 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_SED_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_SED="$ac_path_SED"
4649 ac_path_SED_max=$ac_count
4650 fi
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4653 done
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655esac
4656
4657 $ac_path_SED_found && break 3
brynercb91a2f2006-08-25 21:14:45 +00004658 done
4659 done
brynercb91a2f2006-08-25 21:14:45 +00004660 done
jimblandy92b1f832009-12-23 22:23:49 +00004661IFS=$as_save_IFS
4662 if test -z "$ac_cv_path_SED"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004663 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004664 fi
4665else
4666 ac_cv_path_SED=$SED
brynercb91a2f2006-08-25 21:14:45 +00004667fi
4668
jimblandy92b1f832009-12-23 22:23:49 +00004669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4671$as_echo "$ac_cv_path_SED" >&6; }
4672 SED="$ac_cv_path_SED"
4673 rm -f conftest.sed
ted.mielczarek1adb1842009-12-21 13:12:20 +00004674
jimblandy92b1f832009-12-23 22:23:49 +00004675test -z "$SED" && SED=sed
4676Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00004677
jimblandy92b1f832009-12-23 22:23:49 +00004678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4689$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4690if test "${ac_cv_path_GREP+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004692else
jimblandy92b1f832009-12-23 22:23:49 +00004693 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004694 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004701 for ac_prog in grep ggrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4704 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4705# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004706 # Check for GNU $ac_path_GREP
4707case `"$ac_path_GREP" --version 2>&1` in
4708*GNU*)
4709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4710*)
4711 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004712 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004713 while :
4714 do
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004718 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004721 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_GREP="$ac_path_GREP"
4725 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004726 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4729 done
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731esac
4732
jimblandy92b1f832009-12-23 22:23:49 +00004733 $ac_path_GREP_found && break 3
4734 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004735 done
jimblandy92b1f832009-12-23 22:23:49 +00004736 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004737IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004738 if test -z "$ac_cv_path_GREP"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004739 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004740 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004741else
4742 ac_cv_path_GREP=$GREP
4743fi
4744
mmentovai8c2a4de2006-09-20 16:20:15 +00004745fi
jimblandy92b1f832009-12-23 22:23:49 +00004746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4747$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004748 GREP="$ac_cv_path_GREP"
4749
4750
jimblandy92b1f832009-12-23 22:23:49 +00004751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4752$as_echo_n "checking for egrep... " >&6; }
4753if test "${ac_cv_path_EGREP+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004755else
4756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4757 then ac_cv_path_EGREP="$GREP -E"
4758 else
jimblandy92b1f832009-12-23 22:23:49 +00004759 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004760 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004767 for ac_prog in egrep; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4770 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4771# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004772 # Check for GNU $ac_path_EGREP
4773case `"$ac_path_EGREP" --version 2>&1` in
4774*GNU*)
4775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4776*)
4777 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004778 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004779 while :
4780 do
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004784 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004787 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_EGREP="$ac_path_EGREP"
4791 ac_path_EGREP_max=$ac_count
4792 fi
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797esac
4798
jimblandy92b1f832009-12-23 22:23:49 +00004799 $ac_path_EGREP_found && break 3
4800 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004801 done
jimblandy92b1f832009-12-23 22:23:49 +00004802 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004803IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004804 if test -z "$ac_cv_path_EGREP"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004805 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004806 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004807else
4808 ac_cv_path_EGREP=$EGREP
4809fi
4810
jimblandy92b1f832009-12-23 22:23:49 +00004811 fi
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4814$as_echo "$ac_cv_path_EGREP" >&6; }
4815 EGREP="$ac_cv_path_EGREP"
4816
4817
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4819$as_echo_n "checking for fgrep... " >&6; }
4820if test "${ac_cv_path_FGREP+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822else
4823 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4824 then ac_cv_path_FGREP="$GREP -F"
4825 else
4826 if test -z "$FGREP"; then
4827 ac_path_FGREP_found=false
4828 # Loop through the user's path and test for each of PROGNAME-LIST
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_prog in fgrep; do
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4837 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4838# Check for GNU ac_path_FGREP and select it if it is found.
4839 # Check for GNU $ac_path_FGREP
4840case `"$ac_path_FGREP" --version 2>&1` in
4841*GNU*)
4842 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4843*)
4844 ac_count=0
4845 $as_echo_n 0123456789 >"conftest.in"
4846 while :
4847 do
4848 cat "conftest.in" "conftest.in" >"conftest.tmp"
4849 mv "conftest.tmp" "conftest.in"
4850 cp "conftest.in" "conftest.nl"
4851 $as_echo 'FGREP' >> "conftest.nl"
4852 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854 as_fn_arith $ac_count + 1 && ac_count=$as_val
4855 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4856 # Best one so far, save it but keep looking for a better one
4857 ac_cv_path_FGREP="$ac_path_FGREP"
4858 ac_path_FGREP_max=$ac_count
4859 fi
4860 # 10*(2^10) chars as input seems more than enough
4861 test $ac_count -gt 10 && break
4862 done
4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864esac
4865
4866 $ac_path_FGREP_found && break 3
4867 done
4868 done
4869 done
4870IFS=$as_save_IFS
4871 if test -z "$ac_cv_path_FGREP"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +00004872 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004873 fi
4874else
4875 ac_cv_path_FGREP=$FGREP
4876fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004877
4878 fi
4879fi
jimblandy92b1f832009-12-23 22:23:49 +00004880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4881$as_echo "$ac_cv_path_FGREP" >&6; }
4882 FGREP="$ac_cv_path_FGREP"
4883
4884
4885test -z "$GREP" && GREP=grep
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
brynercb91a2f2006-08-25 21:14:45 +00004902
4903
4904
mmentovai8c2a4de2006-09-20 16:20:15 +00004905# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +00004906if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004907 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004908else
4909 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004910fi
4911
brynercb91a2f2006-08-25 21:14:45 +00004912ac_prog=ld
4913if test "$GCC" = yes; then
4914 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +00004915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4916$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004917 case $host in
4918 *-*-mingw*)
4919 # gcc leaves a trailing carriage return which upsets mingw
4920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4921 *)
4922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4923 esac
4924 case $ac_prog in
4925 # Accept absolute paths.
4926 [\\/]* | ?:[\\/]*)
4927 re_direlt='/[^/][^/]*/\.\./'
4928 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +00004929 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4930 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4931 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +00004932 done
4933 test -z "$LD" && LD="$ac_prog"
4934 ;;
4935 "")
4936 # If it fails, then pretend we aren't using GCC.
4937 ac_prog=ld
4938 ;;
4939 *)
4940 # If it is relative, then search for the first ld in PATH.
4941 with_gnu_ld=unknown
4942 ;;
4943 esac
4944elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00004945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4946$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004947else
jimblandy92b1f832009-12-23 22:23:49 +00004948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4949$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004950fi
jimblandy92b1f832009-12-23 22:23:49 +00004951if test "${lt_cv_path_LD+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004953else
4954 if test -z "$LD"; then
4955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956 for ac_dir in $PATH; do
4957 IFS="$lt_save_ifs"
4958 test -z "$ac_dir" && ac_dir=.
4959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4960 lt_cv_path_LD="$ac_dir/$ac_prog"
4961 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004962 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004963 # Break only if it was the GNU/non-GNU ld that we prefer.
4964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4965 *GNU* | *'with BFD'*)
4966 test "$with_gnu_ld" != no && break
4967 ;;
4968 *)
4969 test "$with_gnu_ld" != yes && break
4970 ;;
4971 esac
4972 fi
4973 done
4974 IFS="$lt_save_ifs"
4975else
4976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4977fi
4978fi
4979
4980LD="$lt_cv_path_LD"
4981if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +00004982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4983$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004984else
jimblandy92b1f832009-12-23 22:23:49 +00004985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004987fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00004988test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4990$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4991if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004993else
mmentovai8c2a4de2006-09-20 16:20:15 +00004994 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004995case `$LD -v 2>&1 </dev/null` in
4996*GNU* | *'with BFD'*)
4997 lt_cv_prog_gnu_ld=yes
4998 ;;
4999*)
5000 lt_cv_prog_gnu_ld=no
5001 ;;
5002esac
5003fi
jimblandy92b1f832009-12-23 22:23:49 +00005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5005$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005006with_gnu_ld=$lt_cv_prog_gnu_ld
5007
5008
brynercb91a2f2006-08-25 21:14:45 +00005009
jimblandy92b1f832009-12-23 22:23:49 +00005010
5011
5012
5013
5014
5015
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5017$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5018if test "${lt_cv_path_NM+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005020else
5021 if test -n "$NM"; then
5022 # Let the user override the test.
5023 lt_cv_path_NM="$NM"
5024else
mmentovai8c2a4de2006-09-20 16:20:15 +00005025 lt_nm_to_check="${ac_tool_prefix}nm"
5026 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5027 lt_nm_to_check="$lt_nm_to_check nm"
5028 fi
5029 for lt_tmp_nm in $lt_nm_to_check; do
5030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5032 IFS="$lt_save_ifs"
5033 test -z "$ac_dir" && ac_dir=.
5034 tmp_nm="$ac_dir/$lt_tmp_nm"
5035 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5036 # Check to see if the nm accepts a BSD-compat flag.
5037 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5038 # nm: unknown option "B" ignored
5039 # Tru64's nm complains that /dev/null is an invalid object file
5040 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5041 */dev/null* | *'Invalid file or object type'*)
5042 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00005043 break
5044 ;;
5045 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00005046 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5047 */dev/null*)
5048 lt_cv_path_NM="$tmp_nm -p"
5049 break
5050 ;;
5051 *)
5052 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5053 continue # so that we can try to find one that supports BSD flags
5054 ;;
5055 esac
brynercb91a2f2006-08-25 21:14:45 +00005056 ;;
5057 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005058 fi
5059 done
5060 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00005061 done
jimblandy92b1f832009-12-23 22:23:49 +00005062 : ${lt_cv_path_NM=no}
brynercb91a2f2006-08-25 21:14:45 +00005063fi
5064fi
jimblandy92b1f832009-12-23 22:23:49 +00005065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5066$as_echo "$lt_cv_path_NM" >&6; }
5067if test "$lt_cv_path_NM" != "no"; then
5068 NM="$lt_cv_path_NM"
5069else
5070 # Didn't find any BSD compatible name lister, look for dumpbin.
5071 if test -n "$ac_tool_prefix"; then
5072 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5073 do
5074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077$as_echo_n "checking for $ac_word... " >&6; }
5078if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 if test -n "$DUMPBIN"; then
5082 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5083else
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5094 fi
5095done
5096 done
5097IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005098
jimblandy92b1f832009-12-23 22:23:49 +00005099fi
5100fi
5101DUMPBIN=$ac_cv_prog_DUMPBIN
5102if test -n "$DUMPBIN"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5104$as_echo "$DUMPBIN" >&6; }
5105else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107$as_echo "no" >&6; }
5108fi
5109
5110
5111 test -n "$DUMPBIN" && break
5112 done
5113fi
5114if test -z "$DUMPBIN"; then
5115 ac_ct_DUMPBIN=$DUMPBIN
5116 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5117do
5118 # Extract the first word of "$ac_prog", so it can be a program name with args.
5119set dummy $ac_prog; ac_word=$2
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121$as_echo_n "checking for $ac_word... " >&6; }
5122if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124else
5125 if test -n "$ac_ct_DUMPBIN"; then
5126 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5127else
5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129for as_dir in $PATH
5130do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139done
5140 done
5141IFS=$as_save_IFS
5142
5143fi
5144fi
5145ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5146if test -n "$ac_ct_DUMPBIN"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5148$as_echo "$ac_ct_DUMPBIN" >&6; }
5149else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151$as_echo "no" >&6; }
5152fi
5153
5154
5155 test -n "$ac_ct_DUMPBIN" && break
5156done
5157
5158 if test "x$ac_ct_DUMPBIN" = x; then
5159 DUMPBIN=":"
5160 else
5161 case $cross_compiling:$ac_tool_warned in
5162yes:)
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5165ac_tool_warned=yes ;;
5166esac
5167 DUMPBIN=$ac_ct_DUMPBIN
5168 fi
5169fi
5170
5171
5172 if test "$DUMPBIN" != ":"; then
5173 NM="$DUMPBIN"
5174 fi
5175fi
5176test -z "$NM" && NM=nm
5177
5178
5179
5180
5181
5182
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5184$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5185if test "${lt_cv_nm_interface+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187else
5188 lt_cv_nm_interface="BSD nm"
5189 echo "int some_variable = 0;" > conftest.$ac_ext
ted.mielczareke574a2a2010-10-05 19:38:22 +00005190 (eval echo "\"\$as_me:5190: $ac_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005191 (eval "$ac_compile" 2>conftest.err)
5192 cat conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00005193 (eval echo "\"\$as_me:5193: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005194 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5195 cat conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00005196 (eval echo "\"\$as_me:5196: output\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005197 cat conftest.out >&5
5198 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5199 lt_cv_nm_interface="MS dumpbin"
5200 fi
5201 rm -f conftest*
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5204$as_echo "$lt_cv_nm_interface" >&6; }
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5207$as_echo_n "checking whether ln -s works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005208LN_S=$as_ln_s
5209if test "$LN_S" = "ln -s"; then
jimblandy92b1f832009-12-23 22:23:49 +00005210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005212else
jimblandy92b1f832009-12-23 22:23:49 +00005213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5214$as_echo "no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005215fi
5216
jimblandy92b1f832009-12-23 22:23:49 +00005217# find the maximum length of command line arguments
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5219$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5220if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 i=0
5224 teststring="ABCD"
5225
5226 case $build_os in
5227 msdosdjgpp*)
5228 # On DJGPP, this test can blow up pretty badly due to problems in libc
5229 # (any single argument exceeding 2000 bytes causes a buffer overrun
5230 # during glob expansion). Even if it were fixed, the result of this
5231 # check would be larger than it should be.
5232 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5233 ;;
5234
5235 gnu*)
5236 # Under GNU Hurd, this test is not required because there is
5237 # no limit to the length of command line arguments.
5238 # Libtool will interpret -1 as no limit whatsoever
5239 lt_cv_sys_max_cmd_len=-1;
5240 ;;
5241
5242 cygwin* | mingw* | cegcc*)
5243 # On Win9x/ME, this test blows up -- it succeeds, but takes
5244 # about 5 minutes as the teststring grows exponentially.
5245 # Worse, since 9x/ME are not pre-emptively multitasking,
5246 # you end up with a "frozen" computer, even though with patience
5247 # the test eventually succeeds (with a max line length of 256k).
5248 # Instead, let's just punt: use the minimum linelength reported by
5249 # all of the supported platforms: 8192 (on NT/2K/XP).
5250 lt_cv_sys_max_cmd_len=8192;
5251 ;;
5252
5253 amigaos*)
5254 # On AmigaOS with pdksh, this test takes hours, literally.
5255 # So we just punt and use a minimum line length of 8192.
5256 lt_cv_sys_max_cmd_len=8192;
5257 ;;
5258
5259 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5260 # This has been around since 386BSD, at least. Likely further.
5261 if test -x /sbin/sysctl; then
5262 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5263 elif test -x /usr/sbin/sysctl; then
5264 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5265 else
5266 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5267 fi
5268 # And add a safety zone
5269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5271 ;;
5272
5273 interix*)
5274 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5275 lt_cv_sys_max_cmd_len=196608
5276 ;;
5277
5278 osf*)
5279 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5280 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5281 # nice to cause kernel panics so lets avoid the loop below.
5282 # First set a reasonable default.
5283 lt_cv_sys_max_cmd_len=16384
5284 #
5285 if test -x /sbin/sysconfig; then
5286 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5287 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5288 esac
5289 fi
5290 ;;
5291 sco3.2v5*)
5292 lt_cv_sys_max_cmd_len=102400
5293 ;;
5294 sysv5* | sco5v6* | sysv4.2uw2*)
5295 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5296 if test -n "$kargmax"; then
5297 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5298 else
5299 lt_cv_sys_max_cmd_len=32768
5300 fi
5301 ;;
5302 *)
5303 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5304 if test -n "$lt_cv_sys_max_cmd_len"; then
5305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5307 else
5308 # Make teststring a little bigger before we do anything with it.
5309 # a 1K string should be a reasonable start.
5310 for i in 1 2 3 4 5 6 7 8 ; do
5311 teststring=$teststring$teststring
5312 done
5313 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5314 # If test is not a shell built-in, we'll probably end up computing a
5315 # maximum length that is only half of the actual maximum length, but
5316 # we can't tell.
5317 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5318 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5319 test $i != 17 # 1/2 MB should be enough
5320 do
5321 i=`expr $i + 1`
5322 teststring=$teststring$teststring
5323 done
5324 # Only check the string length outside the loop.
5325 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5326 teststring=
5327 # Add a significant safety factor because C++ compilers can tack on
5328 # massive amounts of additional arguments before passing them to the
5329 # linker. It appears as though 1/2 is a usable value.
5330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5331 fi
5332 ;;
5333 esac
5334
5335fi
5336
5337if test -n $lt_cv_sys_max_cmd_len ; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5339$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5340else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5342$as_echo "none" >&6; }
5343fi
5344max_cmd_len=$lt_cv_sys_max_cmd_len
5345
5346
5347
5348
5349
5350
5351: ${CP="cp -f"}
5352: ${MV="mv -f"}
5353: ${RM="rm -f"}
5354
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5356$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5357# Try some XSI features
5358xsi_shell=no
5359( _lt_dummy="a/b/c"
5360 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5361 = c,a/b,, \
5362 && eval 'test $(( 1 + 1 )) -eq 2 \
5363 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5364 && xsi_shell=yes
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5366$as_echo "$xsi_shell" >&6; }
5367
5368
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5370$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5371lt_shell_append=no
5372( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5373 >/dev/null 2>&1 \
5374 && lt_shell_append=yes
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5376$as_echo "$lt_shell_append" >&6; }
5377
5378
5379if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5380 lt_unset=unset
5381else
5382 lt_unset=false
5383fi
5384
5385
5386
5387
5388
5389# test EBCDIC or ASCII
5390case `echo X|tr X '\101'` in
5391 A) # ASCII based system
5392 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5393 lt_SP2NL='tr \040 \012'
5394 lt_NL2SP='tr \015\012 \040\040'
5395 ;;
5396 *) # EBCDIC based system
5397 lt_SP2NL='tr \100 \n'
5398 lt_NL2SP='tr \r\n \100\100'
5399 ;;
5400esac
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5411$as_echo_n "checking for $LD option to reload object files... " >&6; }
5412if test "${lt_cv_ld_reload_flag+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414else
5415 lt_cv_ld_reload_flag='-r'
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5418$as_echo "$lt_cv_ld_reload_flag" >&6; }
5419reload_flag=$lt_cv_ld_reload_flag
5420case $reload_flag in
5421"" | " "*) ;;
5422*) reload_flag=" $reload_flag" ;;
5423esac
5424reload_cmds='$LD$reload_flag -o $output$reload_objs'
5425case $host_os in
5426 darwin*)
5427 if test "$GCC" = yes; then
5428 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5429 else
5430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5431 fi
5432 ;;
5433esac
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5445set dummy ${ac_tool_prefix}objdump; ac_word=$2
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447$as_echo_n "checking for $ac_word... " >&6; }
5448if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5450else
5451 if test -n "$OBJDUMP"; then
5452 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5453else
5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465done
5466 done
5467IFS=$as_save_IFS
5468
5469fi
5470fi
5471OBJDUMP=$ac_cv_prog_OBJDUMP
5472if test -n "$OBJDUMP"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5474$as_echo "$OBJDUMP" >&6; }
5475else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478fi
5479
5480
5481fi
5482if test -z "$ac_cv_prog_OBJDUMP"; then
5483 ac_ct_OBJDUMP=$OBJDUMP
5484 # Extract the first word of "objdump", so it can be a program name with args.
5485set dummy objdump; ac_word=$2
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487$as_echo_n "checking for $ac_word... " >&6; }
5488if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490else
5491 if test -n "$ac_ct_OBJDUMP"; then
5492 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5493else
5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH
5496do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505done
5506 done
5507IFS=$as_save_IFS
5508
5509fi
5510fi
5511ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5512if test -n "$ac_ct_OBJDUMP"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5514$as_echo "$ac_ct_OBJDUMP" >&6; }
5515else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517$as_echo "no" >&6; }
5518fi
5519
5520 if test "x$ac_ct_OBJDUMP" = x; then
5521 OBJDUMP="false"
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524yes:)
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527ac_tool_warned=yes ;;
5528esac
5529 OBJDUMP=$ac_ct_OBJDUMP
5530 fi
5531else
5532 OBJDUMP="$ac_cv_prog_OBJDUMP"
5533fi
5534
5535test -z "$OBJDUMP" && OBJDUMP=objdump
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5546$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5547if test "${lt_cv_deplibs_check_method+set}" = set; then :
5548 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005549else
5550 lt_cv_file_magic_cmd='$MAGIC_CMD'
5551lt_cv_file_magic_test_file=
5552lt_cv_deplibs_check_method='unknown'
5553# Need to set the preceding variable on all platforms that support
5554# interlibrary dependencies.
5555# 'none' -- dependencies not supported.
5556# `unknown' -- same as none, but documents that we really don't know.
5557# 'pass_all' -- all dependencies passed with no checks.
5558# 'test_compile' -- check by making test program.
5559# 'file_magic [[regex]]' -- check by looking for files in library path
5560# which responds to the $file_magic_cmd with a given extended regex.
5561# If you have `file' or equivalent on your system and you're not sure
5562# whether `pass_all' will *always* work, you probably want this one.
5563
5564case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005565aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00005566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569beos*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
mmentovai8c2a4de2006-09-20 16:20:15 +00005573bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5575 lt_cv_file_magic_cmd='/usr/bin/file -L'
5576 lt_cv_file_magic_test_file=/shlib/libc.so
5577 ;;
5578
5579cygwin*)
5580 # func_win32_libid is a shell function defined in ltmain.sh
5581 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5582 lt_cv_file_magic_cmd='func_win32_libid'
5583 ;;
5584
5585mingw* | pw32*)
5586 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00005587 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5588 # unless we find 'file', for example because we are cross-compiling.
5589 if ( file / ) >/dev/null 2>&1; then
5590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5591 lt_cv_file_magic_cmd='func_win32_libid'
5592 else
5593 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5594 lt_cv_file_magic_cmd='$OBJDUMP -f'
5595 fi
brynercb91a2f2006-08-25 21:14:45 +00005596 ;;
5597
jimblandy92b1f832009-12-23 22:23:49 +00005598cegcc)
5599 # use the weaker test based on 'objdump'. See mingw*.
5600 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5601 lt_cv_file_magic_cmd='$OBJDUMP -f'
5602 ;;
5603
brynercb91a2f2006-08-25 21:14:45 +00005604darwin* | rhapsody*)
5605 lt_cv_deplibs_check_method=pass_all
5606 ;;
5607
ted.mielczarek1adb1842009-12-21 13:12:20 +00005608freebsd* | dragonfly*)
jimblandy92b1f832009-12-23 22:23:49 +00005609 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005610 case $host_cpu in
5611 i*86 )
5612 # Not sure whether the presence of OpenBSD here was a mistake.
5613 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005614 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 +00005615 lt_cv_file_magic_cmd=/usr/bin/file
5616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5617 ;;
5618 esac
5619 else
5620 lt_cv_deplibs_check_method=pass_all
5621 fi
5622 ;;
5623
5624gnu*)
5625 lt_cv_deplibs_check_method=pass_all
5626 ;;
5627
5628hpux10.20* | hpux11*)
5629 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005630 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005631 ia64*)
5632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5633 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5634 ;;
5635 hppa*64*)
5636 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]'
5637 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5638 ;;
5639 *)
5640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5641 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5642 ;;
5643 esac
5644 ;;
5645
ted.mielczarek1adb1842009-12-21 13:12:20 +00005646interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005647 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5649 ;;
5650
brynercb91a2f2006-08-25 21:14:45 +00005651irix5* | irix6* | nonstopux*)
5652 case $LD in
5653 *-32|*"-32 ") libmagic=32-bit;;
5654 *-n32|*"-n32 ") libmagic=N32;;
5655 *-64|*"-64 ") libmagic=64-bit;;
5656 *) libmagic=never-match;;
5657 esac
5658 lt_cv_deplibs_check_method=pass_all
5659 ;;
5660
5661# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +00005662linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00005663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665
ted.mielczarekb2236272010-04-08 23:06:23 +00005666netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00005667 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5669 else
5670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5671 fi
5672 ;;
5673
5674newos6*)
5675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5676 lt_cv_file_magic_cmd=/usr/bin/file
5677 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5678 ;;
5679
jimblandy92b1f832009-12-23 22:23:49 +00005680*nto* | *qnx*)
5681 lt_cv_deplibs_check_method=pass_all
brynercb91a2f2006-08-25 21:14:45 +00005682 ;;
5683
5684openbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005687 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005689 fi
5690 ;;
5691
5692osf3* | osf4* | osf5*)
5693 lt_cv_deplibs_check_method=pass_all
5694 ;;
5695
ted.mielczarek1adb1842009-12-21 13:12:20 +00005696rdos*)
5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699
brynercb91a2f2006-08-25 21:14:45 +00005700solaris*)
5701 lt_cv_deplibs_check_method=pass_all
5702 ;;
5703
jimblandy92b1f832009-12-23 22:23:49 +00005704sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707
mmentovai8c2a4de2006-09-20 16:20:15 +00005708sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005709 case $host_vendor in
5710 motorola)
5711 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]'
5712 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5713 ;;
5714 ncr)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717 sequent)
5718 lt_cv_file_magic_cmd='/bin/file'
5719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5720 ;;
5721 sni)
5722 lt_cv_file_magic_cmd='/bin/file'
5723 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5724 lt_cv_file_magic_test_file=/lib/libc.so
5725 ;;
5726 siemens)
5727 lt_cv_deplibs_check_method=pass_all
5728 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005729 pc)
5730 lt_cv_deplibs_check_method=pass_all
5731 ;;
brynercb91a2f2006-08-25 21:14:45 +00005732 esac
5733 ;;
5734
jimblandy92b1f832009-12-23 22:23:49 +00005735tpf*)
brynercb91a2f2006-08-25 21:14:45 +00005736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738esac
5739
5740fi
jimblandy92b1f832009-12-23 22:23:49 +00005741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5742$as_echo "$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005743file_magic_cmd=$lt_cv_file_magic_cmd
5744deplibs_check_method=$lt_cv_deplibs_check_method
5745test -z "$deplibs_check_method" && deplibs_check_method=unknown
5746
5747
5748
5749
jimblandy92b1f832009-12-23 22:23:49 +00005750
5751
5752
5753
5754
5755
5756
5757
5758if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5760set dummy ${ac_tool_prefix}ar; ac_word=$2
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if test "${ac_cv_prog_AR+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765else
5766 if test -n "$AR"; then
5767 ac_cv_prog_AR="$AR" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_AR="${ac_tool_prefix}ar"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781 done
5782IFS=$as_save_IFS
5783
5784fi
5785fi
5786AR=$ac_cv_prog_AR
5787if test -n "$AR"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5789$as_echo "$AR" >&6; }
5790else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794
5795
5796fi
5797if test -z "$ac_cv_prog_AR"; then
5798 ac_ct_AR=$AR
5799 # Extract the first word of "ar", so it can be a program name with args.
5800set dummy ar; ac_word=$2
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802$as_echo_n "checking for $ac_word... " >&6; }
5803if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805else
5806 if test -n "$ac_ct_AR"; then
5807 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_ac_ct_AR="ar"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820done
5821 done
5822IFS=$as_save_IFS
5823
5824fi
5825fi
5826ac_ct_AR=$ac_cv_prog_ac_ct_AR
5827if test -n "$ac_ct_AR"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5829$as_echo "$ac_ct_AR" >&6; }
5830else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832$as_echo "no" >&6; }
5833fi
5834
5835 if test "x$ac_ct_AR" = x; then
5836 AR="false"
5837 else
5838 case $cross_compiling:$ac_tool_warned in
5839yes:)
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842ac_tool_warned=yes ;;
5843esac
5844 AR=$ac_ct_AR
5845 fi
5846else
5847 AR="$ac_cv_prog_AR"
5848fi
5849
5850test -z "$AR" && AR=ar
5851test -z "$AR_FLAGS" && AR_FLAGS=cru
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863if test -n "$ac_tool_prefix"; then
5864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5865set dummy ${ac_tool_prefix}strip; ac_word=$2
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867$as_echo_n "checking for $ac_word... " >&6; }
5868if test "${ac_cv_prog_STRIP+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5870else
5871 if test -n "$STRIP"; then
5872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886 done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891STRIP=$ac_cv_prog_STRIP
5892if test -n "$STRIP"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5894$as_echo "$STRIP" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900
5901fi
5902if test -z "$ac_cv_prog_STRIP"; then
5903 ac_ct_STRIP=$STRIP
5904 # Extract the first word of "strip", so it can be a program name with args.
5905set dummy strip; ac_word=$2
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907$as_echo_n "checking for $ac_word... " >&6; }
5908if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5910else
5911 if test -n "$ac_ct_STRIP"; then
5912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_ac_ct_STRIP="strip"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925done
5926 done
5927IFS=$as_save_IFS
5928
5929fi
5930fi
5931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5932if test -n "$ac_ct_STRIP"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5934$as_echo "$ac_ct_STRIP" >&6; }
5935else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937$as_echo "no" >&6; }
5938fi
5939
5940 if test "x$ac_ct_STRIP" = x; then
5941 STRIP=":"
5942 else
5943 case $cross_compiling:$ac_tool_warned in
5944yes:)
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947ac_tool_warned=yes ;;
5948esac
5949 STRIP=$ac_ct_STRIP
5950 fi
5951else
5952 STRIP="$ac_cv_prog_STRIP"
5953fi
5954
5955test -z "$STRIP" && STRIP=:
5956
5957
5958
5959
5960
5961
5962if test -n "$ac_tool_prefix"; then
5963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5964set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966$as_echo_n "checking for $ac_word... " >&6; }
5967if test "${ac_cv_prog_RANLIB+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5969else
5970 if test -n "$RANLIB"; then
5971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5972else
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984done
5985 done
5986IFS=$as_save_IFS
5987
5988fi
5989fi
5990RANLIB=$ac_cv_prog_RANLIB
5991if test -n "$RANLIB"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5993$as_echo "$RANLIB" >&6; }
5994else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996$as_echo "no" >&6; }
5997fi
5998
5999
6000fi
6001if test -z "$ac_cv_prog_RANLIB"; then
6002 ac_ct_RANLIB=$RANLIB
6003 # Extract the first word of "ranlib", so it can be a program name with args.
6004set dummy ranlib; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009else
6010 if test -n "$ac_ct_RANLIB"; then
6011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_ac_ct_RANLIB="ranlib"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024done
6025 done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6031if test -n "$ac_ct_RANLIB"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6033$as_echo "$ac_ct_RANLIB" >&6; }
6034else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039 if test "x$ac_ct_RANLIB" = x; then
6040 RANLIB=":"
6041 else
6042 case $cross_compiling:$ac_tool_warned in
6043yes:)
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046ac_tool_warned=yes ;;
6047esac
6048 RANLIB=$ac_ct_RANLIB
6049 fi
6050else
6051 RANLIB="$ac_cv_prog_RANLIB"
6052fi
6053
6054test -z "$RANLIB" && RANLIB=:
6055
6056
6057
6058
6059
6060
6061# Determine commands to create old-style static archives.
6062old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6063old_postinstall_cmds='chmod 644 $oldlib'
6064old_postuninstall_cmds=
6065
6066if test -n "$RANLIB"; then
6067 case $host_os in
6068 openbsd*)
6069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6070 ;;
6071 *)
6072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6073 ;;
6074 esac
6075 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6076fi
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
6107
6108
6109
6110
brynercb91a2f2006-08-25 21:14:45 +00006111# If no C compiler was specified, use CC.
6112LTCC=${LTCC-"$CC"}
6113
mmentovai8c2a4de2006-09-20 16:20:15 +00006114# If no C compiler flags were specified, use CFLAGS.
6115LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6116
brynercb91a2f2006-08-25 21:14:45 +00006117# Allow CC to be a program name with arguments.
6118compiler=$CC
6119
6120
brynercb91a2f2006-08-25 21:14:45 +00006121# Check for command to grab the raw symbol name followed by C symbol from nm.
jimblandy92b1f832009-12-23 22:23:49 +00006122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6123$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6124if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00006126else
6127
6128# These are sane defaults that work on at least a few old systems.
6129# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6130
6131# Character class describing NM global symbol codes.
6132symcode='[BCDEGRST]'
6133
6134# Regexp to match symbols that can be accessed directly from C.
6135sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6136
brynercb91a2f2006-08-25 21:14:45 +00006137# Define system-specific variables.
6138case $host_os in
6139aix*)
6140 symcode='[BCDT]'
6141 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006142cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00006143 symcode='[ABCDGISTW]'
6144 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006145hpux*)
brynercb91a2f2006-08-25 21:14:45 +00006146 if test "$host_cpu" = ia64; then
6147 symcode='[ABCDEGRST]'
6148 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006149 ;;
brynercb91a2f2006-08-25 21:14:45 +00006150irix* | nonstopux*)
6151 symcode='[BCDEGRST]'
6152 ;;
6153osf*)
6154 symcode='[BCDEGQRST]'
6155 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006156solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006157 symcode='[BDRT]'
6158 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006159sco3.2v5*)
6160 symcode='[DT]'
6161 ;;
6162sysv4.2uw2*)
6163 symcode='[DT]'
6164 ;;
6165sysv5* | sco5v6* | unixware* | OpenUNIX*)
6166 symcode='[ABDT]'
6167 ;;
brynercb91a2f2006-08-25 21:14:45 +00006168sysv4)
6169 symcode='[DFNSTU]'
6170 ;;
6171esac
6172
brynercb91a2f2006-08-25 21:14:45 +00006173# If we're using GNU nm, then use its standard symbol codes.
6174case `$NM -V 2>&1` in
6175*GNU* | *'with BFD'*)
6176 symcode='[ABCDGIRSTW]' ;;
6177esac
6178
jimblandy92b1f832009-12-23 22:23:49 +00006179# Transform an extracted symbol line into a proper C declaration.
6180# Some systems (esp. on ia64) link data and code symbols differently,
6181# so use this general approach.
6182lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6183
6184# Transform an extracted symbol line into symbol name and symbol address
6185lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6186lt_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'"
6187
6188# Handle CRLF in mingw tool chain
6189opt_cr=
6190case $build_os in
6191mingw*)
6192 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6193 ;;
6194esac
6195
6196# Try without a prefix underscore, then with it.
brynercb91a2f2006-08-25 21:14:45 +00006197for ac_symprfx in "" "_"; do
6198
mmentovai8c2a4de2006-09-20 16:20:15 +00006199 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6200 symxfrm="\\1 $ac_symprfx\\2 \\2"
6201
brynercb91a2f2006-08-25 21:14:45 +00006202 # Write the raw and C identifiers.
jimblandy92b1f832009-12-23 22:23:49 +00006203 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6204 # Fake it for dumpbin and say T for any non-static function
6205 # and D for any global variable.
6206 # Also find C++ and __fastcall symbols from MSVC++,
6207 # which start with @ or ?.
6208 lt_cv_sys_global_symbol_pipe="$AWK '"\
6209" {last_section=section; section=\$ 3};"\
6210" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6211" \$ 0!~/External *\|/{next};"\
6212" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6213" {if(hide[section]) next};"\
6214" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6215" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6216" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6217" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6218" ' prfx=^$ac_symprfx"
6219 else
6220 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6221 fi
brynercb91a2f2006-08-25 21:14:45 +00006222
6223 # Check to see that the pipe works correctly.
6224 pipe_works=no
6225
6226 rm -f conftest*
jimblandy92b1f832009-12-23 22:23:49 +00006227 cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006228#ifdef __cplusplus
6229extern "C" {
6230#endif
6231char nm_test_var;
jimblandy92b1f832009-12-23 22:23:49 +00006232void nm_test_func(void);
6233void nm_test_func(void){}
brynercb91a2f2006-08-25 21:14:45 +00006234#ifdef __cplusplus
6235}
6236#endif
6237int main(){nm_test_var='a';nm_test_func();return(0);}
jimblandy92b1f832009-12-23 22:23:49 +00006238_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006239
jimblandy92b1f832009-12-23 22:23:49 +00006240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006241 (eval $ac_compile) 2>&5
6242 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +00006245 # Now try to grab the symbols.
6246 nlist=conftest.nm
jimblandy92b1f832009-12-23 22:23:49 +00006247 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 +00006248 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6249 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251 test $ac_status = 0; } && test -s "$nlist"; then
brynercb91a2f2006-08-25 21:14:45 +00006252 # Try sorting and uniquifying the output.
6253 if sort "$nlist" | uniq > "$nlist"T; then
6254 mv -f "$nlist"T "$nlist"
6255 else
6256 rm -f "$nlist"T
6257 fi
6258
6259 # Make sure that we snagged all the symbols we need.
jimblandy92b1f832009-12-23 22:23:49 +00006260 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6261 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6262 cat <<_LT_EOF > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006263#ifdef __cplusplus
6264extern "C" {
6265#endif
6266
jimblandy92b1f832009-12-23 22:23:49 +00006267_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006268 # Now generate the symbol file.
jimblandy92b1f832009-12-23 22:23:49 +00006269 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
brynercb91a2f2006-08-25 21:14:45 +00006270
jimblandy92b1f832009-12-23 22:23:49 +00006271 cat <<_LT_EOF >> conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006272
jimblandy92b1f832009-12-23 22:23:49 +00006273/* The mapping between symbol names and symbols. */
brynercb91a2f2006-08-25 21:14:45 +00006274const struct {
6275 const char *name;
jimblandy92b1f832009-12-23 22:23:49 +00006276 void *address;
brynercb91a2f2006-08-25 21:14:45 +00006277}
jimblandy92b1f832009-12-23 22:23:49 +00006278lt__PROGRAM__LTX_preloaded_symbols[] =
brynercb91a2f2006-08-25 21:14:45 +00006279{
jimblandy92b1f832009-12-23 22:23:49 +00006280 { "@PROGRAM@", (void *) 0 },
6281_LT_EOF
6282 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6283 cat <<\_LT_EOF >> conftest.$ac_ext
6284 {0, (void *) 0}
brynercb91a2f2006-08-25 21:14:45 +00006285};
6286
jimblandy92b1f832009-12-23 22:23:49 +00006287/* This works around a problem in FreeBSD linker */
6288#ifdef FREEBSD_WORKAROUND
6289static const void *lt_preloaded_setup() {
6290 return lt__PROGRAM__LTX_preloaded_symbols;
6291}
6292#endif
6293
brynercb91a2f2006-08-25 21:14:45 +00006294#ifdef __cplusplus
6295}
6296#endif
jimblandy92b1f832009-12-23 22:23:49 +00006297_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006298 # Now try linking the two files.
6299 mv conftest.$ac_objext conftstm.$ac_objext
6300 lt_save_LIBS="$LIBS"
6301 lt_save_CFLAGS="$CFLAGS"
6302 LIBS="conftstm.$ac_objext"
6303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jimblandy92b1f832009-12-23 22:23:49 +00006304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006305 (eval $ac_link) 2>&5
6306 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
brynercb91a2f2006-08-25 21:14:45 +00006309 pipe_works=yes
6310 fi
6311 LIBS="$lt_save_LIBS"
6312 CFLAGS="$lt_save_CFLAGS"
6313 else
6314 echo "cannot find nm_test_func in $nlist" >&5
6315 fi
6316 else
6317 echo "cannot find nm_test_var in $nlist" >&5
6318 fi
6319 else
6320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6321 fi
6322 else
6323 echo "$progname: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6325 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006326 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006327
6328 # Do not use the global_symbol_pipe unless it works.
6329 if test "$pipe_works" = yes; then
6330 break
6331 else
6332 lt_cv_sys_global_symbol_pipe=
6333 fi
6334done
6335
6336fi
6337
6338if test -z "$lt_cv_sys_global_symbol_pipe"; then
6339 lt_cv_sys_global_symbol_to_cdecl=
6340fi
6341if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jimblandy92b1f832009-12-23 22:23:49 +00006342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6343$as_echo "failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006344else
jimblandy92b1f832009-12-23 22:23:49 +00006345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6346$as_echo "ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006347fi
6348
jimblandy92b1f832009-12-23 22:23:49 +00006349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371# Check whether --enable-libtool-lock was given.
6372if test "${enable_libtool_lock+set}" = set; then :
6373 enableval=$enable_libtool_lock;
6374fi
6375
6376test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6377
6378# Some flags need to be propagated to the compiler or linker for good
6379# libtool support.
6380case $host in
6381ia64-*-hpux*)
6382 # Find out which ABI we are using.
6383 echo 'int i;' > conftest.$ac_ext
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6385 (eval $ac_compile) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; }; then
6389 case `/usr/bin/file conftest.$ac_objext` in
6390 *ELF-32*)
6391 HPUX_IA64_MODE="32"
6392 ;;
6393 *ELF-64*)
6394 HPUX_IA64_MODE="64"
6395 ;;
6396 esac
6397 fi
6398 rm -rf conftest*
6399 ;;
6400*-*-irix6*)
6401 # Find out which ABI we are using.
ted.mielczareke574a2a2010-10-05 19:38:22 +00006402 echo '#line 6402 "configure"' > conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00006403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 if test "$lt_cv_prog_gnu_ld" = yes; then
6409 case `/usr/bin/file conftest.$ac_objext` in
6410 *32-bit*)
6411 LD="${LD-ld} -melf32bsmip"
6412 ;;
6413 *N32*)
6414 LD="${LD-ld} -melf32bmipn32"
6415 ;;
6416 *64-bit*)
6417 LD="${LD-ld} -melf64bmip"
6418 ;;
6419 esac
6420 else
6421 case `/usr/bin/file conftest.$ac_objext` in
6422 *32-bit*)
6423 LD="${LD-ld} -32"
6424 ;;
6425 *N32*)
6426 LD="${LD-ld} -n32"
6427 ;;
6428 *64-bit*)
6429 LD="${LD-ld} -64"
6430 ;;
6431 esac
6432 fi
6433 fi
6434 rm -rf conftest*
6435 ;;
6436
6437x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6438s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6439 # Find out which ABI we are using.
6440 echo 'int i;' > conftest.$ac_ext
6441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6442 (eval $ac_compile) 2>&5
6443 ac_status=$?
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445 test $ac_status = 0; }; then
6446 case `/usr/bin/file conftest.o` in
6447 *32-bit*)
6448 case $host in
6449 x86_64-*kfreebsd*-gnu)
6450 LD="${LD-ld} -m elf_i386_fbsd"
6451 ;;
6452 x86_64-*linux*)
6453 LD="${LD-ld} -m elf_i386"
6454 ;;
6455 ppc64-*linux*|powerpc64-*linux*)
6456 LD="${LD-ld} -m elf32ppclinux"
6457 ;;
6458 s390x-*linux*)
6459 LD="${LD-ld} -m elf_s390"
6460 ;;
6461 sparc64-*linux*)
6462 LD="${LD-ld} -m elf32_sparc"
6463 ;;
6464 esac
6465 ;;
6466 *64-bit*)
6467 case $host in
6468 x86_64-*kfreebsd*-gnu)
6469 LD="${LD-ld} -m elf_x86_64_fbsd"
6470 ;;
6471 x86_64-*linux*)
6472 LD="${LD-ld} -m elf_x86_64"
6473 ;;
6474 ppc*-*linux*|powerpc*-*linux*)
6475 LD="${LD-ld} -m elf64ppc"
6476 ;;
6477 s390*-*linux*|s390*-*tpf*)
6478 LD="${LD-ld} -m elf64_s390"
6479 ;;
6480 sparc*-*linux*)
6481 LD="${LD-ld} -m elf64_sparc"
6482 ;;
6483 esac
6484 ;;
6485 esac
6486 fi
6487 rm -rf conftest*
6488 ;;
6489
6490*-*-sco3.2v5*)
6491 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6492 SAVE_CFLAGS="$CFLAGS"
6493 CFLAGS="$CFLAGS -belf"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6495$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6496if test "${lt_cv_cc_needs_belf+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498else
6499 ac_ext=c
6500ac_cpp='$CPP $CPPFLAGS'
6501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6503ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h. */
6507
6508int
6509main ()
6510{
6511
6512 ;
6513 return 0;
6514}
6515_ACEOF
6516if ac_fn_c_try_link "$LINENO"; then :
6517 lt_cv_cc_needs_belf=yes
6518else
6519 lt_cv_cc_needs_belf=no
6520fi
6521rm -f core conftest.err conftest.$ac_objext \
6522 conftest$ac_exeext conftest.$ac_ext
6523 ac_ext=c
6524ac_cpp='$CPP $CPPFLAGS'
6525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6527ac_compiler_gnu=$ac_cv_c_compiler_gnu
6528
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6531$as_echo "$lt_cv_cc_needs_belf" >&6; }
6532 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6533 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6534 CFLAGS="$SAVE_CFLAGS"
6535 fi
6536 ;;
6537sparc*-*solaris*)
6538 # Find out which ABI we are using.
6539 echo 'int i;' > conftest.$ac_ext
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 case `/usr/bin/file conftest.o` in
6546 *64-bit*)
6547 case $lt_cv_prog_gnu_ld in
6548 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6549 *)
6550 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6551 LD="${LD-ld} -64"
6552 fi
6553 ;;
6554 esac
6555 ;;
6556 esac
6557 fi
6558 rm -rf conftest*
6559 ;;
6560esac
6561
6562need_locks="$enable_libtool_lock"
6563
6564
6565 case $host_os in
6566 rhapsody* | darwin*)
6567 if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6569set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
6572if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574else
6575 if test -n "$DSYMUTIL"; then
6576 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590 done
6591IFS=$as_save_IFS
6592
6593fi
6594fi
6595DSYMUTIL=$ac_cv_prog_DSYMUTIL
6596if test -n "$DSYMUTIL"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6598$as_echo "$DSYMUTIL" >&6; }
6599else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
6602fi
6603
6604
6605fi
6606if test -z "$ac_cv_prog_DSYMUTIL"; then
6607 ac_ct_DSYMUTIL=$DSYMUTIL
6608 # Extract the first word of "dsymutil", so it can be a program name with args.
6609set dummy dsymutil; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6614else
6615 if test -n "$ac_ct_DSYMUTIL"; then
6616 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630 done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6636if test -n "$ac_ct_DSYMUTIL"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6638$as_echo "$ac_ct_DSYMUTIL" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644 if test "x$ac_ct_DSYMUTIL" = x; then
6645 DSYMUTIL=":"
6646 else
6647 case $cross_compiling:$ac_tool_warned in
6648yes:)
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651ac_tool_warned=yes ;;
6652esac
6653 DSYMUTIL=$ac_ct_DSYMUTIL
6654 fi
6655else
6656 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6657fi
6658
6659 if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6661set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663$as_echo_n "checking for $ac_word... " >&6; }
6664if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6666else
6667 if test -n "$NMEDIT"; then
6668 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682 done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687NMEDIT=$ac_cv_prog_NMEDIT
6688if test -n "$NMEDIT"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6690$as_echo "$NMEDIT" >&6; }
6691else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693$as_echo "no" >&6; }
6694fi
6695
6696
6697fi
6698if test -z "$ac_cv_prog_NMEDIT"; then
6699 ac_ct_NMEDIT=$NMEDIT
6700 # Extract the first word of "nmedit", so it can be a program name with args.
6701set dummy nmedit; ac_word=$2
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703$as_echo_n "checking for $ac_word... " >&6; }
6704if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6706else
6707 if test -n "$ac_ct_NMEDIT"; then
6708 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722 done
6723IFS=$as_save_IFS
6724
6725fi
6726fi
6727ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6728if test -n "$ac_ct_NMEDIT"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6730$as_echo "$ac_ct_NMEDIT" >&6; }
6731else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733$as_echo "no" >&6; }
6734fi
6735
6736 if test "x$ac_ct_NMEDIT" = x; then
6737 NMEDIT=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740yes:)
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743ac_tool_warned=yes ;;
6744esac
6745 NMEDIT=$ac_ct_NMEDIT
6746 fi
6747else
6748 NMEDIT="$ac_cv_prog_NMEDIT"
6749fi
6750
6751 if test -n "$ac_tool_prefix"; then
6752 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6753set dummy ${ac_tool_prefix}lipo; ac_word=$2
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755$as_echo_n "checking for $ac_word... " >&6; }
6756if test "${ac_cv_prog_LIPO+set}" = set; then :
6757 $as_echo_n "(cached) " >&6
6758else
6759 if test -n "$LIPO"; then
6760 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774 done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779LIPO=$ac_cv_prog_LIPO
6780if test -n "$LIPO"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6782$as_echo "$LIPO" >&6; }
6783else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785$as_echo "no" >&6; }
6786fi
6787
6788
6789fi
6790if test -z "$ac_cv_prog_LIPO"; then
6791 ac_ct_LIPO=$LIPO
6792 # Extract the first word of "lipo", so it can be a program name with args.
6793set dummy lipo; ac_word=$2
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795$as_echo_n "checking for $ac_word... " >&6; }
6796if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6797 $as_echo_n "(cached) " >&6
6798else
6799 if test -n "$ac_ct_LIPO"; then
6800 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6801else
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809 ac_cv_prog_ac_ct_LIPO="lipo"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814 done
6815IFS=$as_save_IFS
6816
6817fi
6818fi
6819ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6820if test -n "$ac_ct_LIPO"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6822$as_echo "$ac_ct_LIPO" >&6; }
6823else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825$as_echo "no" >&6; }
6826fi
6827
6828 if test "x$ac_ct_LIPO" = x; then
6829 LIPO=":"
6830 else
6831 case $cross_compiling:$ac_tool_warned in
6832yes:)
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6835ac_tool_warned=yes ;;
6836esac
6837 LIPO=$ac_ct_LIPO
6838 fi
6839else
6840 LIPO="$ac_cv_prog_LIPO"
6841fi
6842
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6845set dummy ${ac_tool_prefix}otool; ac_word=$2
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847$as_echo_n "checking for $ac_word... " >&6; }
6848if test "${ac_cv_prog_OTOOL+set}" = set; then :
6849 $as_echo_n "(cached) " >&6
6850else
6851 if test -n "$OTOOL"; then
6852 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865done
6866 done
6867IFS=$as_save_IFS
6868
6869fi
6870fi
6871OTOOL=$ac_cv_prog_OTOOL
6872if test -n "$OTOOL"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6874$as_echo "$OTOOL" >&6; }
6875else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878fi
6879
6880
6881fi
6882if test -z "$ac_cv_prog_OTOOL"; then
6883 ac_ct_OTOOL=$OTOOL
6884 # Extract the first word of "otool", so it can be a program name with args.
6885set dummy otool; ac_word=$2
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
6888if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890else
6891 if test -n "$ac_ct_OTOOL"; then
6892 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_ac_ct_OTOOL="otool"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906 done
6907IFS=$as_save_IFS
6908
6909fi
6910fi
6911ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6912if test -n "$ac_ct_OTOOL"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6914$as_echo "$ac_ct_OTOOL" >&6; }
6915else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917$as_echo "no" >&6; }
6918fi
6919
6920 if test "x$ac_ct_OTOOL" = x; then
6921 OTOOL=":"
6922 else
6923 case $cross_compiling:$ac_tool_warned in
6924yes:)
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927ac_tool_warned=yes ;;
6928esac
6929 OTOOL=$ac_ct_OTOOL
6930 fi
6931else
6932 OTOOL="$ac_cv_prog_OTOOL"
6933fi
6934
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6937set dummy ${ac_tool_prefix}otool64; ac_word=$2
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
6940if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
6942else
6943 if test -n "$OTOOL64"; then
6944 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957done
6958 done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963OTOOL64=$ac_cv_prog_OTOOL64
6964if test -n "$OTOOL64"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6966$as_echo "$OTOOL64" >&6; }
6967else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972
6973fi
6974if test -z "$ac_cv_prog_OTOOL64"; then
6975 ac_ct_OTOOL64=$OTOOL64
6976 # Extract the first word of "otool64", so it can be a program name with args.
6977set dummy otool64; ac_word=$2
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979$as_echo_n "checking for $ac_word... " >&6; }
6980if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6981 $as_echo_n "(cached) " >&6
6982else
6983 if test -n "$ac_ct_OTOOL64"; then
6984 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_prog_ac_ct_OTOOL64="otool64"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997done
6998 done
6999IFS=$as_save_IFS
7000
7001fi
7002fi
7003ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7004if test -n "$ac_ct_OTOOL64"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7006$as_echo "$ac_ct_OTOOL64" >&6; }
7007else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009$as_echo "no" >&6; }
7010fi
7011
7012 if test "x$ac_ct_OTOOL64" = x; then
7013 OTOOL64=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016yes:)
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019ac_tool_warned=yes ;;
7020esac
7021 OTOOL64=$ac_ct_OTOOL64
7022 fi
7023else
7024 OTOOL64="$ac_cv_prog_OTOOL64"
7025fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7054$as_echo_n "checking for -single_module linker flag... " >&6; }
7055if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7057else
7058 lt_cv_apple_cc_single_mod=no
7059 if test -z "${LT_MULTI_MODULE}"; then
7060 # By default we will add the -single_module flag. You can override
7061 # by either setting the environment variable LT_MULTI_MODULE
7062 # non-empty at configure time, or by adding -multi_module to the
7063 # link flags.
7064 rm -rf libconftest.dylib*
7065 echo "int foo(void){return 1;}" > conftest.c
7066 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7067-dynamiclib -Wl,-single_module conftest.c" >&5
7068 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7069 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7070 _lt_result=$?
7071 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7072 lt_cv_apple_cc_single_mod=yes
7073 else
7074 cat conftest.err >&5
7075 fi
7076 rm -rf libconftest.dylib*
7077 rm -f conftest.*
7078 fi
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7081$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7083$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7084if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7086else
7087 lt_cv_ld_exported_symbols_list=no
7088 save_LDFLAGS=$LDFLAGS
7089 echo "_main" > conftest.sym
7090 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h. */
7093
7094int
7095main ()
7096{
7097
7098 ;
7099 return 0;
7100}
7101_ACEOF
7102if ac_fn_c_try_link "$LINENO"; then :
7103 lt_cv_ld_exported_symbols_list=yes
7104else
7105 lt_cv_ld_exported_symbols_list=no
7106fi
7107rm -f core conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7109 LDFLAGS="$save_LDFLAGS"
7110
7111fi
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7113$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7114 case $host_os in
7115 rhapsody* | darwin1.[012])
7116 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7117 darwin1.*)
7118 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7119 darwin*) # darwin 5.x on
7120 # if running on 10.5 or later, the deployment target defaults
7121 # to the OS version, if on x86, and 10.4, the deployment
7122 # target defaults to 10.4. Don't you love it?
7123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7124 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7125 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7126 10.[012]*)
7127 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7128 10.*)
7129 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7130 esac
7131 ;;
7132 esac
7133 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7134 _lt_dar_single_mod='$single_module'
7135 fi
7136 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7137 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7138 else
7139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7140 fi
7141 if test "$DSYMUTIL" != ":"; then
7142 _lt_dsymutil='~$DSYMUTIL $lib || :'
7143 else
7144 _lt_dsymutil=
7145 fi
7146 ;;
7147 esac
7148
7149
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7151$as_echo_n "checking for ANSI C header files... " >&6; }
7152if test "${ac_cv_header_stdc+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154else
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h. */
7157#include <stdlib.h>
7158#include <stdarg.h>
7159#include <string.h>
7160#include <float.h>
7161
7162int
7163main ()
7164{
7165
7166 ;
7167 return 0;
7168}
7169_ACEOF
7170if ac_fn_c_try_compile "$LINENO"; then :
7171 ac_cv_header_stdc=yes
7172else
7173 ac_cv_header_stdc=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176
7177if test $ac_cv_header_stdc = yes; then
7178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181#include <string.h>
7182
7183_ACEOF
7184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185 $EGREP "memchr" >/dev/null 2>&1; then :
7186
7187else
7188 ac_cv_header_stdc=no
7189fi
7190rm -f conftest*
7191
7192fi
7193
7194if test $ac_cv_header_stdc = yes; then
7195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h. */
7198#include <stdlib.h>
7199
7200_ACEOF
7201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 $EGREP "free" >/dev/null 2>&1; then :
7203
7204else
7205 ac_cv_header_stdc=no
7206fi
7207rm -f conftest*
7208
7209fi
7210
7211if test $ac_cv_header_stdc = yes; then
7212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7213 if test "$cross_compiling" = yes; then :
7214 :
7215else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217/* end confdefs.h. */
7218#include <ctype.h>
7219#include <stdlib.h>
7220#if ((' ' & 0x0FF) == 0x020)
7221# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7222# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7223#else
7224# define ISLOWER(c) \
7225 (('a' <= (c) && (c) <= 'i') \
7226 || ('j' <= (c) && (c) <= 'r') \
7227 || ('s' <= (c) && (c) <= 'z'))
7228# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7229#endif
7230
7231#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7232int
7233main ()
7234{
7235 int i;
7236 for (i = 0; i < 256; i++)
7237 if (XOR (islower (i), ISLOWER (i))
7238 || toupper (i) != TOUPPER (i))
7239 return 2;
7240 return 0;
7241}
7242_ACEOF
7243if ac_fn_c_try_run "$LINENO"; then :
7244
7245else
7246 ac_cv_header_stdc=no
7247fi
7248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249 conftest.$ac_objext conftest.beam conftest.$ac_ext
7250fi
7251
7252fi
7253fi
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7255$as_echo "$ac_cv_header_stdc" >&6; }
7256if test $ac_cv_header_stdc = yes; then
7257
7258$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7259
7260fi
7261
7262# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7263for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7264 inttypes.h stdint.h unistd.h
7265do :
7266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7267ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7268"
ted.mielczareke574a2a2010-10-05 19:38:22 +00007269eval as_val=\$$as_ac_Header
7270 if test "x$as_val" = x""yes; then :
jimblandy92b1f832009-12-23 22:23:49 +00007271 cat >>confdefs.h <<_ACEOF
7272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273_ACEOF
7274
7275fi
7276
7277done
7278
7279
7280for ac_header in dlfcn.h
7281do :
7282 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7283"
7284if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7285 cat >>confdefs.h <<_ACEOF
7286#define HAVE_DLFCN_H 1
7287_ACEOF
7288
7289fi
7290
7291done
7292
7293
7294
7295ac_ext=cpp
7296ac_cpp='$CXXCPP $CPPFLAGS'
7297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7300if test -z "$CXX"; then
7301 if test -n "$CCC"; then
7302 CXX=$CCC
7303 else
7304 if test -n "$ac_tool_prefix"; then
7305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7306 do
7307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7308set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310$as_echo_n "checking for $ac_word... " >&6; }
7311if test "${ac_cv_prog_CXX+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7313else
7314 if test -n "$CXX"; then
7315 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7327 fi
7328done
7329 done
7330IFS=$as_save_IFS
7331
7332fi
7333fi
7334CXX=$ac_cv_prog_CXX
7335if test -n "$CXX"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7337$as_echo "$CXX" >&6; }
7338else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340$as_echo "no" >&6; }
7341fi
7342
7343
7344 test -n "$CXX" && break
7345 done
7346fi
7347if test -z "$CXX"; then
7348 ac_ct_CXX=$CXX
7349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7350do
7351 # Extract the first word of "$ac_prog", so it can be a program name with args.
7352set dummy $ac_prog; ac_word=$2
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357else
7358 if test -n "$ac_ct_CXX"; then
7359 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_ac_ct_CXX="$ac_prog"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372done
7373 done
7374IFS=$as_save_IFS
7375
7376fi
7377fi
7378ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7379if test -n "$ac_ct_CXX"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7381$as_echo "$ac_ct_CXX" >&6; }
7382else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384$as_echo "no" >&6; }
7385fi
7386
7387
7388 test -n "$ac_ct_CXX" && break
7389done
7390
7391 if test "x$ac_ct_CXX" = x; then
7392 CXX="g++"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395yes:)
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398ac_tool_warned=yes ;;
7399esac
7400 CXX=$ac_ct_CXX
7401 fi
7402fi
7403
7404 fi
7405fi
7406# Provide some information about the compiler.
7407$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7408set X $ac_compile
7409ac_compiler=$2
7410for ac_option in --version -v -V -qversion; do
7411 { { ac_try="$ac_compiler $ac_option >&5"
7412case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415esac
7416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7417$as_echo "$ac_try_echo"; } >&5
7418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7419 ac_status=$?
7420 if test -s conftest.err; then
7421 sed '10a\
7422... rest of stderr output deleted ...
7423 10q' conftest.err >conftest.er1
7424 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00007425 fi
jimblandydc4029a2010-02-02 17:39:51 +00007426 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00007427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428 test $ac_status = 0; }
7429done
7430
7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7432$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7433if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7435else
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h. */
7438
7439int
7440main ()
7441{
7442#ifndef __GNUC__
7443 choke me
7444#endif
7445
7446 ;
7447 return 0;
7448}
7449_ACEOF
7450if ac_fn_cxx_try_compile "$LINENO"; then :
7451 ac_compiler_gnu=yes
7452else
7453 ac_compiler_gnu=no
7454fi
7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7457
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7460$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7461if test $ac_compiler_gnu = yes; then
7462 GXX=yes
7463else
7464 GXX=
7465fi
7466ac_test_CXXFLAGS=${CXXFLAGS+set}
7467ac_save_CXXFLAGS=$CXXFLAGS
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7469$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7470if test "${ac_cv_prog_cxx_g+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472else
7473 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7474 ac_cxx_werror_flag=yes
7475 ac_cv_prog_cxx_g=no
7476 CXXFLAGS="-g"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478/* end confdefs.h. */
7479
7480int
7481main ()
7482{
7483
7484 ;
7485 return 0;
7486}
7487_ACEOF
7488if ac_fn_cxx_try_compile "$LINENO"; then :
7489 ac_cv_prog_cxx_g=yes
7490else
7491 CXXFLAGS=""
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493/* end confdefs.h. */
7494
7495int
7496main ()
7497{
7498
7499 ;
7500 return 0;
7501}
7502_ACEOF
7503if ac_fn_cxx_try_compile "$LINENO"; then :
7504
7505else
7506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7507 CXXFLAGS="-g"
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h. */
7510
7511int
7512main ()
7513{
7514
7515 ;
7516 return 0;
7517}
7518_ACEOF
7519if ac_fn_cxx_try_compile "$LINENO"; then :
7520 ac_cv_prog_cxx_g=yes
7521fi
7522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523fi
7524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525fi
7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7528fi
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7530$as_echo "$ac_cv_prog_cxx_g" >&6; }
7531if test "$ac_test_CXXFLAGS" = set; then
7532 CXXFLAGS=$ac_save_CXXFLAGS
7533elif test $ac_cv_prog_cxx_g = yes; then
7534 if test "$GXX" = yes; then
7535 CXXFLAGS="-g -O2"
7536 else
7537 CXXFLAGS="-g"
7538 fi
7539else
7540 if test "$GXX" = yes; then
7541 CXXFLAGS="-O2"
7542 else
7543 CXXFLAGS=
7544 fi
7545fi
7546ac_ext=c
7547ac_cpp='$CPP $CPPFLAGS'
7548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551
7552depcc="$CXX" am_compiler_list=
7553
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7555$as_echo_n "checking dependency style of $depcc... " >&6; }
7556if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558else
7559 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7560 # We make a subdir and do the tests there. Otherwise we can end up
7561 # making bogus files that we don't know about and never remove. For
7562 # instance it was reported that on HP-UX the gcc test will end up
7563 # making a dummy file named `D' -- because `-MD' means `put the output
7564 # in D'.
7565 mkdir conftest.dir
7566 # Copy depcomp to subdir because otherwise we won't find it if we're
7567 # using a relative directory.
7568 cp "$am_depcomp" conftest.dir
7569 cd conftest.dir
7570 # We will build objects and dependencies in a subdirectory because
7571 # it helps to detect inapplicable dependency modes. For instance
7572 # both Tru64's cc and ICC support -MD to output dependencies as a
7573 # side effect of compilation, but ICC will put the dependencies in
7574 # the current directory while Tru64 will put them in the object
7575 # directory.
7576 mkdir sub
7577
7578 am_cv_CXX_dependencies_compiler_type=none
7579 if test "$am_compiler_list" = ""; then
7580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7581 fi
7582 am__universal=false
7583 case " $depcc " in #(
7584 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7585 esac
7586
7587 for depmode in $am_compiler_list; do
7588 # Setup a source with many dependencies, because some compilers
7589 # like to wrap large dependency lists on column 80 (with \), and
7590 # we should not choose a depcomp mode which is confused by this.
7591 #
7592 # We need to recreate these files for each test, as the compiler may
7593 # overwrite some of them when testing with obscure command lines.
7594 # This happens at least with the AIX C compiler.
7595 : > sub/conftest.c
7596 for i in 1 2 3 4 5 6; do
7597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7598 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7599 # Solaris 8's {/usr,}/bin/sh.
7600 touch sub/conftst$i.h
7601 done
7602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7603
7604 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7605 # mode. It turns out that the SunPro C++ compiler does not properly
7606 # handle `-M -o', and we need to detect this. Also, some Intel
7607 # versions had trouble with output in subdirs
7608 am__obj=sub/conftest.${OBJEXT-o}
7609 am__minus_obj="-o $am__obj"
7610 case $depmode in
7611 gcc)
7612 # This depmode causes a compiler race in universal mode.
7613 test "$am__universal" = false || continue
7614 ;;
7615 nosideeffect)
7616 # after this tag, mechanisms are not by side-effect, so they'll
7617 # only be used when explicitly requested
7618 if test "x$enable_dependency_tracking" = xyes; then
7619 continue
7620 else
7621 break
7622 fi
7623 ;;
7624 msvisualcpp | msvcmsys)
7625 # This compiler won't grok `-c -o', but also, the minuso test has
7626 # not run yet. These depmodes are late enough in the game, and
7627 # so weak that their functioning should not be impacted.
7628 am__obj=conftest.${OBJEXT-o}
7629 am__minus_obj=
7630 ;;
7631 none) break ;;
7632 esac
7633 if depmode=$depmode \
7634 source=sub/conftest.c object=$am__obj \
7635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7636 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7637 >/dev/null 2>conftest.err &&
7638 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7639 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7640 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7641 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7642 # icc doesn't choke on unknown options, it will just issue warnings
7643 # or remarks (even with -Werror). So we grep stderr for any message
7644 # that says an option was ignored or not supported.
7645 # When given -MP, icc 7.0 and 7.1 complain thusly:
7646 # icc: Command line warning: ignoring option '-M'; no argument required
7647 # The diagnosis changed in icc 8.0:
7648 # icc: Command line remark: option '-MP' not supported
7649 if (grep 'ignoring option' conftest.err ||
7650 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7651 am_cv_CXX_dependencies_compiler_type=$depmode
7652 break
7653 fi
7654 fi
7655 done
7656
7657 cd ..
7658 rm -rf conftest.dir
7659else
7660 am_cv_CXX_dependencies_compiler_type=none
7661fi
7662
7663fi
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7665$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7666CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7667
7668 if
7669 test "x$enable_dependency_tracking" != xno \
7670 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7671 am__fastdepCXX_TRUE=
7672 am__fastdepCXX_FALSE='#'
7673else
7674 am__fastdepCXX_TRUE='#'
7675 am__fastdepCXX_FALSE=
7676fi
7677
7678
7679if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7680 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7681 (test "X$CXX" != "Xg++"))) ; then
7682 ac_ext=cpp
7683ac_cpp='$CXXCPP $CPPFLAGS'
7684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7688$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7689if test -z "$CXXCPP"; then
7690 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
7692else
7693 # Double quotes because CXXCPP needs to be expanded
7694 for CXXCPP in "$CXX -E" "/lib/cpp"
7695 do
7696 ac_preproc_ok=false
7697for ac_cxx_preproc_warn_flag in '' yes
7698do
7699 # Use a header file that comes with gcc, so configuring glibc
7700 # with a fresh cross-compiler works.
7701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7702 # <limits.h> exists even on freestanding compilers.
7703 # On the NeXT, cc -E runs the code through the compiler's parser,
7704 # not just through cpp. "Syntax error" is here to catch this case.
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h. */
7707#ifdef __STDC__
7708# include <limits.h>
7709#else
7710# include <assert.h>
7711#endif
7712 Syntax error
7713_ACEOF
7714if ac_fn_cxx_try_cpp "$LINENO"; then :
7715
7716else
7717 # Broken: fails on valid input.
7718continue
7719fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00007720rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007721
7722 # OK, works on sane cases. Now check whether nonexistent headers
7723 # can be detected and how.
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h. */
7726#include <ac_nonexistent.h>
7727_ACEOF
7728if ac_fn_cxx_try_cpp "$LINENO"; then :
7729 # Broken: success on invalid input.
7730continue
7731else
7732 # Passes both tests.
7733ac_preproc_ok=:
7734break
7735fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00007736rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007737
7738done
7739# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00007740rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007741if $ac_preproc_ok; then :
7742 break
7743fi
7744
7745 done
7746 ac_cv_prog_CXXCPP=$CXXCPP
7747
7748fi
7749 CXXCPP=$ac_cv_prog_CXXCPP
7750else
7751 ac_cv_prog_CXXCPP=$CXXCPP
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7754$as_echo "$CXXCPP" >&6; }
7755ac_preproc_ok=false
7756for ac_cxx_preproc_warn_flag in '' yes
7757do
7758 # Use a header file that comes with gcc, so configuring glibc
7759 # with a fresh cross-compiler works.
7760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7761 # <limits.h> exists even on freestanding compilers.
7762 # On the NeXT, cc -E runs the code through the compiler's parser,
7763 # not just through cpp. "Syntax error" is here to catch this case.
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765/* end confdefs.h. */
7766#ifdef __STDC__
7767# include <limits.h>
7768#else
7769# include <assert.h>
7770#endif
7771 Syntax error
7772_ACEOF
7773if ac_fn_cxx_try_cpp "$LINENO"; then :
7774
7775else
7776 # Broken: fails on valid input.
7777continue
7778fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00007779rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007780
7781 # OK, works on sane cases. Now check whether nonexistent headers
7782 # can be detected and how.
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784/* end confdefs.h. */
7785#include <ac_nonexistent.h>
7786_ACEOF
7787if ac_fn_cxx_try_cpp "$LINENO"; then :
7788 # Broken: success on invalid input.
7789continue
7790else
7791 # Passes both tests.
7792ac_preproc_ok=:
7793break
7794fi
ted.mielczareke574a2a2010-10-05 19:38:22 +00007795rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007796
7797done
7798# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ted.mielczareke574a2a2010-10-05 19:38:22 +00007799rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007800if $ac_preproc_ok; then :
7801
7802else
7803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7805_lt_caught_CXX_error=yes; }
7806fi
7807
7808ac_ext=c
7809ac_cpp='$CPP $CPPFLAGS'
7810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813
7814else
7815 _lt_caught_CXX_error=yes
7816fi
7817
7818
7819
7820
7821
7822# Set options
7823
7824
7825
7826 enable_dlopen=no
7827
7828
7829 enable_win32_dll=no
7830
7831
7832 # Check whether --enable-shared was given.
7833if test "${enable_shared+set}" = set; then :
7834 enableval=$enable_shared; p=${PACKAGE-default}
7835 case $enableval in
7836 yes) enable_shared=yes ;;
7837 no) enable_shared=no ;;
7838 *)
7839 enable_shared=no
7840 # Look at the argument we got. We use all the common list separators.
7841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7842 for pkg in $enableval; do
7843 IFS="$lt_save_ifs"
7844 if test "X$pkg" = "X$p"; then
7845 enable_shared=yes
7846 fi
7847 done
7848 IFS="$lt_save_ifs"
7849 ;;
7850 esac
7851else
7852 enable_shared=yes
7853fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863 # Check whether --enable-static was given.
7864if test "${enable_static+set}" = set; then :
7865 enableval=$enable_static; p=${PACKAGE-default}
7866 case $enableval in
7867 yes) enable_static=yes ;;
7868 no) enable_static=no ;;
7869 *)
7870 enable_static=no
7871 # Look at the argument we got. We use all the common list separators.
7872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7873 for pkg in $enableval; do
7874 IFS="$lt_save_ifs"
7875 if test "X$pkg" = "X$p"; then
7876 enable_static=yes
7877 fi
7878 done
7879 IFS="$lt_save_ifs"
7880 ;;
7881 esac
7882else
7883 enable_static=yes
7884fi
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895# Check whether --with-pic was given.
7896if test "${with_pic+set}" = set; then :
7897 withval=$with_pic; pic_mode="$withval"
7898else
7899 pic_mode=default
7900fi
7901
7902
7903test -z "$pic_mode" && pic_mode=default
7904
7905
7906
7907
7908
7909
7910
7911 # Check whether --enable-fast-install was given.
7912if test "${enable_fast_install+set}" = set; then :
7913 enableval=$enable_fast_install; p=${PACKAGE-default}
7914 case $enableval in
7915 yes) enable_fast_install=yes ;;
7916 no) enable_fast_install=no ;;
7917 *)
7918 enable_fast_install=no
7919 # Look at the argument we got. We use all the common list separators.
7920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7921 for pkg in $enableval; do
7922 IFS="$lt_save_ifs"
7923 if test "X$pkg" = "X$p"; then
7924 enable_fast_install=yes
7925 fi
7926 done
7927 IFS="$lt_save_ifs"
7928 ;;
7929 esac
7930else
7931 enable_fast_install=yes
7932fi
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944# This can be used to rebuild libtool when needed
7945LIBTOOL_DEPS="$ltmain"
7946
7947# Always use our own libtool.
7948LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974test -z "$LN_S" && LN_S="ln -s"
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989if test -n "${ZSH_VERSION+set}" ; then
7990 setopt NO_GLOB_SUBST
7991fi
7992
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7994$as_echo_n "checking for objdir... " >&6; }
7995if test "${lt_cv_objdir+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00007997else
7998 rm -f .libs 2>/dev/null
7999mkdir .libs 2>/dev/null
8000if test -d .libs; then
8001 lt_cv_objdir=.libs
8002else
8003 # MS-DOS does not allow filenames that begin with a dot.
8004 lt_cv_objdir=_libs
8005fi
8006rmdir .libs 2>/dev/null
8007fi
jimblandy92b1f832009-12-23 22:23:49 +00008008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8009$as_echo "$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008010objdir=$lt_cv_objdir
8011
8012
8013
8014
8015
jimblandy92b1f832009-12-23 22:23:49 +00008016cat >>confdefs.h <<_ACEOF
8017#define LT_OBJDIR "$lt_cv_objdir/"
8018_ACEOF
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
brynercb91a2f2006-08-25 21:14:45 +00008036case $host_os in
8037aix3*)
8038 # AIX sometimes has problems with the GCC collect2 program. For some
8039 # reason, if we set the COLLECT_NAMES environment variable, the problems
8040 # vanish in a puff of smoke.
8041 if test "X${COLLECT_NAMES+set}" != Xset; then
8042 COLLECT_NAMES=
8043 export COLLECT_NAMES
8044 fi
8045 ;;
8046esac
8047
8048# Sed substitution that helps us do robust quoting. It backslashifies
8049# metacharacters that are still active within double-quoted strings.
jimblandy92b1f832009-12-23 22:23:49 +00008050sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008051
8052# Same as above, but do not quote variable references.
jimblandy92b1f832009-12-23 22:23:49 +00008053double_quote_subst='s/\(["`\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008054
8055# Sed substitution to delay expansion of an escaped shell variable in a
8056# double_quote_subst'ed string.
8057delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8058
jimblandy92b1f832009-12-23 22:23:49 +00008059# Sed substitution to delay expansion of an escaped single quote.
8060delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8061
brynercb91a2f2006-08-25 21:14:45 +00008062# Sed substitution to avoid accidental globbing in evaled expressions
8063no_glob_subst='s/\*/\\\*/g'
8064
brynercb91a2f2006-08-25 21:14:45 +00008065# Global variables:
jimblandy92b1f832009-12-23 22:23:49 +00008066ofile=libtool
brynercb91a2f2006-08-25 21:14:45 +00008067can_build_shared=yes
8068
mmentovai8c2a4de2006-09-20 16:20:15 +00008069# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00008070# which needs '.lib').
8071libext=a
jimblandy92b1f832009-12-23 22:23:49 +00008072
brynercb91a2f2006-08-25 21:14:45 +00008073with_gnu_ld="$lt_cv_prog_gnu_ld"
8074
brynercb91a2f2006-08-25 21:14:45 +00008075old_CC="$CC"
8076old_CFLAGS="$CFLAGS"
8077
8078# Set sane defaults for various variables
brynercb91a2f2006-08-25 21:14:45 +00008079test -z "$CC" && CC=cc
8080test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00008081test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00008082test -z "$LD" && LD=ld
brynercb91a2f2006-08-25 21:14:45 +00008083test -z "$ac_objext" && ac_objext=o
8084
mmentovai8c2a4de2006-09-20 16:20:15 +00008085for cc_temp in $compiler""; do
8086 case $cc_temp in
8087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8089 \-*) ;;
8090 *) break;;
8091 esac
8092done
jimblandy92b1f832009-12-23 22:23:49 +00008093cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +00008094
8095
brynercb91a2f2006-08-25 21:14:45 +00008096# Only perform the check for file, if the check method requires it
jimblandy92b1f832009-12-23 22:23:49 +00008097test -z "$MAGIC_CMD" && MAGIC_CMD=file
brynercb91a2f2006-08-25 21:14:45 +00008098case $deplibs_check_method in
8099file_magic*)
8100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
jimblandy92b1f832009-12-23 22:23:49 +00008101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8102$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8103if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008105else
8106 case $MAGIC_CMD in
8107[\\/*] | ?:[\\/]*)
8108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8109 ;;
8110*)
8111 lt_save_MAGIC_CMD="$MAGIC_CMD"
8112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8114 for ac_dir in $ac_dummy; do
8115 IFS="$lt_save_ifs"
8116 test -z "$ac_dir" && ac_dir=.
8117 if test -f $ac_dir/${ac_tool_prefix}file; then
8118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8119 if test -n "$file_magic_test_file"; then
8120 case $deplibs_check_method in
8121 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8125 $EGREP "$file_magic_regex" > /dev/null; then
8126 :
8127 else
jimblandy92b1f832009-12-23 22:23:49 +00008128 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008129
8130*** Warning: the command libtool uses to detect shared libraries,
8131*** $file_magic_cmd, produces output that libtool cannot recognize.
8132*** The result is that libtool may fail to recognize shared libraries
8133*** as such. This will affect the creation of libtool libraries that
8134*** depend on shared libraries, but programs linked with such libtool
8135*** libraries will work regardless of this problem. Nevertheless, you
8136*** may want to report the problem to your system manager and/or to
8137*** bug-libtool@gnu.org
8138
jimblandy92b1f832009-12-23 22:23:49 +00008139_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008140 fi ;;
8141 esac
8142 fi
8143 break
8144 fi
8145 done
8146 IFS="$lt_save_ifs"
8147 MAGIC_CMD="$lt_save_MAGIC_CMD"
8148 ;;
8149esac
8150fi
8151
8152MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8155$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008156else
jimblandy92b1f832009-12-23 22:23:49 +00008157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008159fi
8160
jimblandy92b1f832009-12-23 22:23:49 +00008161
8162
8163
8164
brynercb91a2f2006-08-25 21:14:45 +00008165if test -z "$lt_cv_path_MAGIC_CMD"; then
8166 if test -n "$ac_tool_prefix"; then
jimblandy92b1f832009-12-23 22:23:49 +00008167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8168$as_echo_n "checking for file... " >&6; }
8169if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008171else
8172 case $MAGIC_CMD in
8173[\\/*] | ?:[\\/]*)
8174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 ;;
8176*)
8177 lt_save_MAGIC_CMD="$MAGIC_CMD"
8178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8180 for ac_dir in $ac_dummy; do
8181 IFS="$lt_save_ifs"
8182 test -z "$ac_dir" && ac_dir=.
8183 if test -f $ac_dir/file; then
8184 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8185 if test -n "$file_magic_test_file"; then
8186 case $deplibs_check_method in
8187 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8191 $EGREP "$file_magic_regex" > /dev/null; then
8192 :
8193 else
jimblandy92b1f832009-12-23 22:23:49 +00008194 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008195
8196*** Warning: the command libtool uses to detect shared libraries,
8197*** $file_magic_cmd, produces output that libtool cannot recognize.
8198*** The result is that libtool may fail to recognize shared libraries
8199*** as such. This will affect the creation of libtool libraries that
8200*** depend on shared libraries, but programs linked with such libtool
8201*** libraries will work regardless of this problem. Nevertheless, you
8202*** may want to report the problem to your system manager and/or to
8203*** bug-libtool@gnu.org
8204
jimblandy92b1f832009-12-23 22:23:49 +00008205_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008206 fi ;;
8207 esac
8208 fi
8209 break
8210 fi
8211 done
8212 IFS="$lt_save_ifs"
8213 MAGIC_CMD="$lt_save_MAGIC_CMD"
8214 ;;
8215esac
8216fi
8217
8218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8221$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008222else
jimblandy92b1f832009-12-23 22:23:49 +00008223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008225fi
8226
jimblandy92b1f832009-12-23 22:23:49 +00008227
brynercb91a2f2006-08-25 21:14:45 +00008228 else
8229 MAGIC_CMD=:
8230 fi
8231fi
8232
8233 fi
8234 ;;
8235esac
8236
brynercb91a2f2006-08-25 21:14:45 +00008237# Use C for the default configuration in the libtool script
jimblandy92b1f832009-12-23 22:23:49 +00008238
brynercb91a2f2006-08-25 21:14:45 +00008239lt_save_CC="$CC"
8240ac_ext=c
8241ac_cpp='$CPP $CPPFLAGS'
8242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8244ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245
8246
8247# Source file extension for C test sources.
8248ac_ext=c
8249
8250# Object file extension for compiled C test sources.
8251objext=o
8252objext=$objext
8253
8254# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008255lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00008256
8257# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008258lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00008259
8260
jimblandy92b1f832009-12-23 22:23:49 +00008261
8262
8263
8264
8265
brynercb91a2f2006-08-25 21:14:45 +00008266# If no C compiler was specified, use CC.
8267LTCC=${LTCC-"$CC"}
8268
mmentovai8c2a4de2006-09-20 16:20:15 +00008269# If no C compiler flags were specified, use CFLAGS.
8270LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8271
brynercb91a2f2006-08-25 21:14:45 +00008272# Allow CC to be a program name with arguments.
8273compiler=$CC
8274
jimblandy92b1f832009-12-23 22:23:49 +00008275# Save the default compiler, since it gets overwritten when the other
8276# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8277compiler_DEFAULT=$CC
brynercb91a2f2006-08-25 21:14:45 +00008278
mmentovai8c2a4de2006-09-20 16:20:15 +00008279# save warnings/boilerplate of simple test code
8280ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008281echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8283_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008284$RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008285
mmentovai8c2a4de2006-09-20 16:20:15 +00008286ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008287echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8289_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008290$RM -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00008291
8292
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008293## CAVEAT EMPTOR:
8294## There is no encapsulation within the following macros, do not change
8295## the running order or otherwise move them around unless you know exactly
8296## what you are doing...
jimblandy92b1f832009-12-23 22:23:49 +00008297if test -n "$compiler"; then
brynercb91a2f2006-08-25 21:14:45 +00008298
8299lt_prog_compiler_no_builtin_flag=
8300
8301if test "$GCC" = yes; then
8302 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8303
jimblandy92b1f832009-12-23 22:23:49 +00008304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8305$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8306if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008308else
8309 lt_cv_prog_compiler_rtti_exceptions=no
jimblandy92b1f832009-12-23 22:23:49 +00008310 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008312 lt_compiler_flag="-fno-rtti -fno-exceptions"
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 # The option is referenced via a variable to avoid confusing sed.
8318 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321 -e 's:$: $lt_compiler_flag:'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00008322 (eval echo "\"\$as_me:8322: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008323 (eval "$lt_compile" 2>conftest.err)
8324 ac_status=$?
8325 cat conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00008326 echo "$as_me:8326: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008327 if (exit $ac_status) && test -s "$ac_outfile"; then
8328 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008329 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008330 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008333 lt_cv_prog_compiler_rtti_exceptions=yes
8334 fi
8335 fi
jimblandy92b1f832009-12-23 22:23:49 +00008336 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008337
8338fi
jimblandy92b1f832009-12-23 22:23:49 +00008339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8340$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008341
8342if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8343 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8344else
8345 :
8346fi
8347
8348fi
8349
jimblandy92b1f832009-12-23 22:23:49 +00008350
8351
8352
8353
8354
8355 lt_prog_compiler_wl=
brynercb91a2f2006-08-25 21:14:45 +00008356lt_prog_compiler_pic=
8357lt_prog_compiler_static=
8358
jimblandy92b1f832009-12-23 22:23:49 +00008359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8360$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008361
8362 if test "$GCC" = yes; then
8363 lt_prog_compiler_wl='-Wl,'
8364 lt_prog_compiler_static='-static'
8365
8366 case $host_os in
8367 aix*)
8368 # All AIX code is PIC.
8369 if test "$host_cpu" = ia64; then
8370 # AIX 5 now supports IA64 processor
8371 lt_prog_compiler_static='-Bstatic'
8372 fi
8373 ;;
8374
8375 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008376 case $host_cpu in
8377 powerpc)
8378 # see comment about AmigaOS4 .so support
8379 lt_prog_compiler_pic='-fPIC'
8380 ;;
8381 m68k)
8382 # FIXME: we need at least 68020 code to build shared libraries, but
8383 # adding the `-m68020' flag to GCC prevents building anything better,
8384 # like `-m68040'.
8385 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8386 ;;
8387 esac
brynercb91a2f2006-08-25 21:14:45 +00008388 ;;
8389
ted.mielczarek1adb1842009-12-21 13:12:20 +00008390 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00008391 # PIC is the default for these OSes.
8392 ;;
8393
jimblandy92b1f832009-12-23 22:23:49 +00008394 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008395 # This hack is so that the source file can tell whether it is being
8396 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00008397 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8398 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00008399 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 ;;
8401
8402 darwin* | rhapsody*)
8403 # PIC is the default on this platform
8404 # Common symbols not allowed in MH_DYLIB files
8405 lt_prog_compiler_pic='-fno-common'
8406 ;;
8407
jimblandy92b1f832009-12-23 22:23:49 +00008408 hpux*)
8409 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8410 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8411 # sets the default TLS model and affects inlining.
8412 case $host_cpu in
8413 hppa*64*)
8414 # +Z the default
8415 ;;
8416 *)
8417 lt_prog_compiler_pic='-fPIC'
8418 ;;
8419 esac
8420 ;;
8421
ted.mielczarek1adb1842009-12-21 13:12:20 +00008422 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8424 # Instead, we relocate shared libraries at runtime.
8425 ;;
8426
brynercb91a2f2006-08-25 21:14:45 +00008427 msdosdjgpp*)
8428 # Just because we use GCC doesn't mean we suddenly get shared libraries
8429 # on systems that don't support them.
8430 lt_prog_compiler_can_build_shared=no
8431 enable_shared=no
8432 ;;
8433
jimblandy92b1f832009-12-23 22:23:49 +00008434 *nto* | *qnx*)
8435 # QNX uses GNU C++, but need to define -shared option too, otherwise
8436 # it will coredump.
8437 lt_prog_compiler_pic='-fPIC -shared'
8438 ;;
8439
brynercb91a2f2006-08-25 21:14:45 +00008440 sysv4*MP*)
8441 if test -d /usr/nec; then
8442 lt_prog_compiler_pic=-Kconform_pic
8443 fi
8444 ;;
8445
brynercb91a2f2006-08-25 21:14:45 +00008446 *)
8447 lt_prog_compiler_pic='-fPIC'
8448 ;;
8449 esac
8450 else
8451 # PORTME Check for flag to pass linker flags through the system compiler.
8452 case $host_os in
8453 aix*)
8454 lt_prog_compiler_wl='-Wl,'
8455 if test "$host_cpu" = ia64; then
8456 # AIX 5 now supports IA64 processor
8457 lt_prog_compiler_static='-Bstatic'
8458 else
8459 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8460 fi
8461 ;;
8462
jimblandy92b1f832009-12-23 22:23:49 +00008463 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008464 # This hack is so that the source file can tell whether it is being
8465 # built for inclusion in a dll (and should export symbols for example).
8466 lt_prog_compiler_pic='-DDLL_EXPORT'
8467 ;;
8468
8469 hpux9* | hpux10* | hpux11*)
8470 lt_prog_compiler_wl='-Wl,'
8471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8472 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00008473 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008474 hppa*64*|ia64*)
8475 # +Z the default
8476 ;;
8477 *)
8478 lt_prog_compiler_pic='+Z'
8479 ;;
8480 esac
8481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8482 lt_prog_compiler_static='${wl}-a ${wl}archive'
8483 ;;
8484
8485 irix5* | irix6* | nonstopux*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # PIC (with -KPIC) is the default.
8488 lt_prog_compiler_static='-non_shared'
8489 ;;
8490
ted.mielczarekb2236272010-04-08 23:06:23 +00008491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008492 case $cc_basename in
jimblandy92b1f832009-12-23 22:23:49 +00008493 # old Intel for x86_64 which still supported -KPIC.
8494 ecc*)
brynercb91a2f2006-08-25 21:14:45 +00008495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-static'
8498 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008499 # icc used to be incompatible with GCC.
8500 # ICC 10 doesn't accept -KPIC any more.
8501 icc* | ifort*)
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_pic='-fPIC'
8504 lt_prog_compiler_static='-static'
8505 ;;
8506 # Lahey Fortran 8.1.
8507 lf95*)
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_pic='--shared'
8510 lt_prog_compiler_static='--static'
8511 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008512 pgcc* | pgf77* | pgf90* | pgf95*)
8513 # Portland Group compilers (*not* the Pentium gcc compiler,
8514 # which looks to be a dead project)
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_pic='-fpic'
8517 lt_prog_compiler_static='-Bstatic'
8518 ;;
brynercb91a2f2006-08-25 21:14:45 +00008519 ccc*)
8520 lt_prog_compiler_wl='-Wl,'
8521 # All Alpha code is PIC.
8522 lt_prog_compiler_static='-non_shared'
8523 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008524 xl*)
8525 # IBM XL C 8.0/Fortran 10.1 on PPC
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-qpic'
8528 lt_prog_compiler_static='-qstaticlink'
8529 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008530 *)
jimblandy92b1f832009-12-23 22:23:49 +00008531 case `$CC -V 2>&1 | sed 5q` in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008532 *Sun\ C*)
8533 # Sun C 5.9
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-Bstatic'
8536 lt_prog_compiler_wl='-Wl,'
8537 ;;
8538 *Sun\ F*)
8539 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8540 lt_prog_compiler_pic='-KPIC'
8541 lt_prog_compiler_static='-Bstatic'
8542 lt_prog_compiler_wl=''
8543 ;;
8544 esac
8545 ;;
brynercb91a2f2006-08-25 21:14:45 +00008546 esac
8547 ;;
8548
jimblandy92b1f832009-12-23 22:23:49 +00008549 newsos6)
8550 lt_prog_compiler_pic='-KPIC'
8551 lt_prog_compiler_static='-Bstatic'
8552 ;;
8553
8554 *nto* | *qnx*)
8555 # QNX uses GNU C++, but need to define -shared option too, otherwise
8556 # it will coredump.
8557 lt_prog_compiler_pic='-fPIC -shared'
8558 ;;
8559
brynercb91a2f2006-08-25 21:14:45 +00008560 osf3* | osf4* | osf5*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # All OSF/1 code is PIC.
8563 lt_prog_compiler_static='-non_shared'
8564 ;;
8565
ted.mielczarek1adb1842009-12-21 13:12:20 +00008566 rdos*)
8567 lt_prog_compiler_static='-non_shared'
8568 ;;
8569
brynercb91a2f2006-08-25 21:14:45 +00008570 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00008573 case $cc_basename in
8574 f77* | f90* | f95*)
8575 lt_prog_compiler_wl='-Qoption ld ';;
8576 *)
8577 lt_prog_compiler_wl='-Wl,';;
8578 esac
brynercb91a2f2006-08-25 21:14:45 +00008579 ;;
8580
8581 sunos4*)
8582 lt_prog_compiler_wl='-Qoption ld '
8583 lt_prog_compiler_pic='-PIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
mmentovai8c2a4de2006-09-20 16:20:15 +00008587 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-Bstatic'
8591 ;;
8592
8593 sysv4*MP*)
8594 if test -d /usr/nec ;then
8595 lt_prog_compiler_pic='-Kconform_pic'
8596 lt_prog_compiler_static='-Bstatic'
8597 fi
8598 ;;
8599
mmentovai8c2a4de2006-09-20 16:20:15 +00008600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_pic='-KPIC'
8603 lt_prog_compiler_static='-Bstatic'
8604 ;;
8605
8606 unicos*)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_can_build_shared=no
8609 ;;
8610
brynercb91a2f2006-08-25 21:14:45 +00008611 uts4*)
8612 lt_prog_compiler_pic='-pic'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615
8616 *)
8617 lt_prog_compiler_can_build_shared=no
8618 ;;
8619 esac
8620 fi
8621
jimblandy92b1f832009-12-23 22:23:49 +00008622case $host_os in
8623 # For platforms which do not support PIC, -DPIC is meaningless:
8624 *djgpp*)
8625 lt_prog_compiler_pic=
8626 ;;
8627 *)
8628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8629 ;;
8630esac
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8632$as_echo "$lt_prog_compiler_pic" >&6; }
8633
8634
8635
8636
8637
brynercb91a2f2006-08-25 21:14:45 +00008638
8639#
8640# Check to make sure the PIC flag actually works.
8641#
8642if test -n "$lt_prog_compiler_pic"; then
jimblandy92b1f832009-12-23 22:23:49 +00008643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8644$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8645if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008647else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008648 lt_cv_prog_compiler_pic_works=no
jimblandy92b1f832009-12-23 22:23:49 +00008649 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008651 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8652 # Insert the option either (1) after the last *FLAGS variable, or
8653 # (2) before a word containing "conftest.", or (3) at the end.
8654 # Note that $ac_compile itself does not contain backslashes and begins
8655 # with a dollar sign (not a hyphen), so the echo should work correctly.
8656 # The option is referenced via a variable to avoid confusing sed.
8657 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8660 -e 's:$: $lt_compiler_flag:'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00008661 (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008662 (eval "$lt_compile" 2>conftest.err)
8663 ac_status=$?
8664 cat conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00008665 echo "$as_me:8665: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008666 if (exit $ac_status) && test -s "$ac_outfile"; then
8667 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008668 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008669 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008672 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00008673 fi
8674 fi
jimblandy92b1f832009-12-23 22:23:49 +00008675 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008676
8677fi
jimblandy92b1f832009-12-23 22:23:49 +00008678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8679$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008680
ted.mielczarek1adb1842009-12-21 13:12:20 +00008681if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00008682 case $lt_prog_compiler_pic in
8683 "" | " "*) ;;
8684 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8685 esac
8686else
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_can_build_shared=no
8689fi
8690
8691fi
jimblandy92b1f832009-12-23 22:23:49 +00008692
8693
8694
8695
8696
brynercb91a2f2006-08-25 21:14:45 +00008697
mmentovai8c2a4de2006-09-20 16:20:15 +00008698#
8699# Check to make sure the static flag actually works.
8700#
8701wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +00008702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8703$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8704if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8705 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00008706else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008707 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008708 save_LDFLAGS="$LDFLAGS"
8709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8712 # The linker can only warn and ignore the option if not recognized
8713 # So say no if there are warnings
8714 if test -s conftest.err; then
8715 # Append any errors to the config.log.
8716 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +00008717 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8719 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008720 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008721 fi
8722 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008723 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008724 fi
8725 fi
jimblandy92b1f832009-12-23 22:23:49 +00008726 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008727 LDFLAGS="$save_LDFLAGS"
8728
8729fi
jimblandy92b1f832009-12-23 22:23:49 +00008730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8731$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00008732
ted.mielczarek1adb1842009-12-21 13:12:20 +00008733if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008734 :
8735else
8736 lt_prog_compiler_static=
8737fi
8738
8739
jimblandy92b1f832009-12-23 22:23:49 +00008740
8741
8742
8743
8744
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8746$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8747if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8748 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008749else
8750 lt_cv_prog_compiler_c_o=no
jimblandy92b1f832009-12-23 22:23:49 +00008751 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008752 mkdir conftest
8753 cd conftest
8754 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00008755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008756
8757 lt_compiler_flag="-o out/conftest2.$ac_objext"
8758 # Insert the option either (1) after the last *FLAGS variable, or
8759 # (2) before a word containing "conftest.", or (3) at the end.
8760 # Note that $ac_compile itself does not contain backslashes and begins
8761 # with a dollar sign (not a hyphen), so the echo should work correctly.
8762 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00008766 (eval echo "\"\$as_me:8766: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008767 (eval "$lt_compile" 2>out/conftest.err)
8768 ac_status=$?
8769 cat out/conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00008770 echo "$as_me:8770: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8772 then
8773 # The compiler can only warn and ignore the option if not recognized
8774 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +00008775 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008778 lt_cv_prog_compiler_c_o=yes
8779 fi
8780 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008781 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +00008782 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008783 # SGI C++ compiler will create directory out/ii_files/ for
8784 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +00008785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8786 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +00008787 cd ..
jimblandy92b1f832009-12-23 22:23:49 +00008788 $RM -r conftest
8789 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008790
8791fi
jimblandy92b1f832009-12-23 22:23:49 +00008792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8793$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8794
8795
8796
8797
8798
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8801$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8802if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804else
8805 lt_cv_prog_compiler_c_o=no
8806 $RM -r conftest 2>/dev/null
8807 mkdir conftest
8808 cd conftest
8809 mkdir out
8810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8811
8812 lt_compiler_flag="-o out/conftest2.$ac_objext"
8813 # Insert the option either (1) after the last *FLAGS variable, or
8814 # (2) before a word containing "conftest.", or (3) at the end.
8815 # Note that $ac_compile itself does not contain backslashes and begins
8816 # with a dollar sign (not a hyphen), so the echo should work correctly.
8817 lt_compile=`echo "$ac_compile" | $SED \
8818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8820 -e 's:$: $lt_compiler_flag:'`
ted.mielczareke574a2a2010-10-05 19:38:22 +00008821 (eval echo "\"\$as_me:8821: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00008822 (eval "$lt_compile" 2>out/conftest.err)
8823 ac_status=$?
8824 cat out/conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +00008825 echo "$as_me:8825: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +00008826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8827 then
8828 # The compiler can only warn and ignore the option if not recognized
8829 # So say no if there are warnings
8830 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8833 lt_cv_prog_compiler_c_o=yes
8834 fi
8835 fi
8836 chmod u+w . 2>&5
8837 $RM conftest*
8838 # SGI C++ compiler will create directory out/ii_files/ for
8839 # template instantiation
8840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8841 $RM out/* && rmdir out
8842 cd ..
8843 $RM -r conftest
8844 $RM conftest*
8845
8846fi
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8848$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8849
8850
brynercb91a2f2006-08-25 21:14:45 +00008851
8852
8853hard_links="nottested"
8854if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8855 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +00008856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8857$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008858 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +00008859 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8861 touch conftest.a
8862 ln conftest.a conftest.b 2>&5 || hard_links=no
8863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +00008864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8865$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008866 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +00008867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8868$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00008869 need_locks=warn
8870 fi
8871else
8872 need_locks=no
8873fi
8874
jimblandy92b1f832009-12-23 22:23:49 +00008875
8876
8877
8878
8879
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8881$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008882
8883 runpath_var=
8884 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00008885 always_export_symbols=no
brynercb91a2f2006-08-25 21:14:45 +00008886 archive_cmds=
8887 archive_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008888 compiler_needs_object=no
8889 enable_shared_with_static_runtimes=no
brynercb91a2f2006-08-25 21:14:45 +00008890 export_dynamic_flag_spec=
jimblandy92b1f832009-12-23 22:23:49 +00008891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8892 hardcode_automatic=no
8893 hardcode_direct=no
8894 hardcode_direct_absolute=no
brynercb91a2f2006-08-25 21:14:45 +00008895 hardcode_libdir_flag_spec=
8896 hardcode_libdir_flag_spec_ld=
8897 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00008898 hardcode_minus_L=no
8899 hardcode_shlibpath_var=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00008900 inherit_rpath=no
brynercb91a2f2006-08-25 21:14:45 +00008901 link_all_deplibs=unknown
brynercb91a2f2006-08-25 21:14:45 +00008902 module_cmds=
8903 module_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008904 old_archive_from_new_cmds=
8905 old_archive_from_expsyms_cmds=
8906 thread_safe_flag_spec=
8907 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008908 # include_expsyms should be a list of space-separated symbols to be *always*
8909 # included in the symbol list
8910 include_expsyms=
8911 # exclude_expsyms can be an extended regexp of symbols to exclude
8912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8914 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008915 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00008916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8917 # platforms (ab)use it in PIC code, but their linkers get confused if
8918 # the symbol is explicitly referenced. Since portable code cannot
8919 # rely on this symbol name, it's probably fine to never include it in
8920 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008921 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00008922 extract_expsyms_cmds=
8923
8924 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +00008925 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008926 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8927 # When not using gcc, we currently assume that we are using
8928 # Microsoft Visual C++.
8929 if test "$GCC" != yes; then
8930 with_gnu_ld=no
8931 fi
8932 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008933 interix*)
8934 # we just hope/assume this is gcc and not c89 (= MSVC++)
8935 with_gnu_ld=yes
8936 ;;
brynercb91a2f2006-08-25 21:14:45 +00008937 openbsd*)
8938 with_gnu_ld=no
8939 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +00008940 linux* | k*bsd*-gnu)
8941 link_all_deplibs=no
8942 ;;
brynercb91a2f2006-08-25 21:14:45 +00008943 esac
8944
8945 ld_shlibs=yes
8946 if test "$with_gnu_ld" = yes; then
8947 # If archive_cmds runs LD, not CC, wlarc should be empty
8948 wlarc='${wl}'
8949
mmentovai8c2a4de2006-09-20 16:20:15 +00008950 # Set some defaults for GNU ld with shared library support. These
8951 # are reset later if shared libraries are not supported. Putting them
8952 # here allows them to be overridden if necessary.
8953 runpath_var=LD_RUN_PATH
jimblandy92b1f832009-12-23 22:23:49 +00008954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00008955 export_dynamic_flag_spec='${wl}--export-dynamic'
8956 # ancient GNU ld didn't support --whole-archive et. al.
jimblandy92b1f832009-12-23 22:23:49 +00008957 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8958 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8959 else
8960 whole_archive_flag_spec=
mmentovai8c2a4de2006-09-20 16:20:15 +00008961 fi
8962 supports_anon_versioning=no
jimblandy92b1f832009-12-23 22:23:49 +00008963 case `$LD -v 2>&1` in
ted.mielczarekb2236272010-04-08 23:06:23 +00008964 *GNU\ gold*) supports_anon_versioning=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008965 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8966 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8967 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8968 *\ 2.11.*) ;; # other 2.11 versions
8969 *) supports_anon_versioning=yes ;;
8970 esac
8971
brynercb91a2f2006-08-25 21:14:45 +00008972 # See if GNU ld supports shared libraries.
8973 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008974 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008975 # On AIX/PPC, the GNU linker is very broken
8976 if test "$host_cpu" != ia64; then
8977 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00008978 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008979
8980*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8981*** to be unable to reliably create shared libraries on AIX.
8982*** Therefore, libtool is disabling shared libraries support. If you
8983*** really care for shared libraries, you may want to modify your PATH
8984*** so that a non-GNU linker is found, and then restart.
8985
jimblandy92b1f832009-12-23 22:23:49 +00008986_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008987 fi
8988 ;;
8989
8990 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008991 case $host_cpu in
8992 powerpc)
8993 # see comment about AmigaOS4 .so support
8994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8995 archive_expsym_cmds=''
8996 ;;
8997 m68k)
8998 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)'
8999 hardcode_libdir_flag_spec='-L$libdir'
9000 hardcode_minus_L=yes
9001 ;;
9002 esac
brynercb91a2f2006-08-25 21:14:45 +00009003 ;;
9004
9005 beos*)
jimblandy92b1f832009-12-23 22:23:49 +00009006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009007 allow_undefined_flag=unsupported
9008 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9009 # support --undefined. This deserves some investigation. FIXME
9010 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 else
9012 ld_shlibs=no
9013 fi
9014 ;;
9015
jimblandy92b1f832009-12-23 22:23:49 +00009016 cygwin* | mingw* | pw32* | cegcc*)
9017 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
brynercb91a2f2006-08-25 21:14:45 +00009018 # as there is no search path for DLLs.
9019 hardcode_libdir_flag_spec='-L$libdir'
9020 allow_undefined_flag=unsupported
9021 always_export_symbols=no
9022 enable_shared_with_static_runtimes=yes
jimblandy92b1f832009-12-23 22:23:49 +00009023 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 +00009024
jimblandy92b1f832009-12-23 22:23:49 +00009025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009026 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 +00009027 # If the export-symbols file already is a .def file (1st line
9028 # is EXPORTS), use it as is; otherwise, prepend...
9029 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9030 cp $export_symbols $output_objdir/$soname.def;
9031 else
9032 echo EXPORTS > $output_objdir/$soname.def;
9033 cat $export_symbols >> $output_objdir/$soname.def;
9034 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00009035 $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 +00009036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040
ted.mielczarek1adb1842009-12-21 13:12:20 +00009041 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009042 hardcode_direct=no
9043 hardcode_shlibpath_var=no
9044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9045 export_dynamic_flag_spec='${wl}-E'
9046 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9047 # Instead, shared libraries are loaded at an image base (0x10000000 by
9048 # default) and relocated if they conflict, which is a slow very memory
9049 # consuming and fragmenting process. To avoid this, we pick a random,
9050 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9051 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9053 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'
9054 ;;
9055
ted.mielczarekb2236272010-04-08 23:06:23 +00009056 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009057 tmp_diet=no
9058 if test "$host_os" = linux-dietlibc; then
9059 case $cc_basename in
9060 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9061 esac
9062 fi
9063 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9064 && test "$tmp_diet" = no
9065 then
mmentovai8c2a4de2006-09-20 16:20:15 +00009066 tmp_addflag=
jimblandy92b1f832009-12-23 22:23:49 +00009067 tmp_sharedflag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009068 case $cc_basename,$host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +00009069 pgcc*) # Portland Group C compiler
9070 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'
9072 ;;
9073 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
jimblandy92b1f832009-12-23 22:23:49 +00009074 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 +00009075 tmp_addflag=' $pic_flag -Mnomain' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009076 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
mmentovai8c2a4de2006-09-20 16:20:15 +00009077 tmp_addflag=' -i_dynamic' ;;
9078 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9079 tmp_addflag=' -i_dynamic -nofor_main' ;;
9080 ifc* | ifort*) # Intel Fortran compiler
9081 tmp_addflag=' -nofor_main' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009082 lf95*) # Lahey Fortran 8.1
9083 whole_archive_flag_spec=
9084 tmp_sharedflag='--shared' ;;
9085 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9086 tmp_sharedflag='-qmkshrobj'
9087 tmp_addflag= ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009088 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00009089 case `$CC -V 2>&1 | sed 5q` in
9090 *Sun\ C*) # Sun C 5.9
jimblandy92b1f832009-12-23 22:23:49 +00009091 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'
9092 compiler_needs_object=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00009093 tmp_sharedflag='-G' ;;
9094 *Sun\ F*) # Sun Fortran 8.3
9095 tmp_sharedflag='-G' ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00009096 esac
9097 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009098
jimblandy92b1f832009-12-23 22:23:49 +00009099 if test "x$supports_anon_versioning" = xyes; then
9100 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9102 echo "local: *; };" >> $output_objdir/$libname.ver~
9103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9104 fi
9105
9106 case $cc_basename in
9107 xlf*)
9108 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9109 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9110 hardcode_libdir_flag_spec=
9111 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9112 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9113 if test "x$supports_anon_versioning" = xyes; then
9114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9116 echo "local: *; };" >> $output_objdir/$libname.ver~
9117 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9118 fi
9119 ;;
9120 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009121 else
jimblandy92b1f832009-12-23 22:23:49 +00009122 ld_shlibs=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009123 fi
9124 ;;
9125
ted.mielczarekb2236272010-04-08 23:06:23 +00009126 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9129 wlarc=
9130 else
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9133 fi
9134 ;;
9135
mmentovai8c2a4de2006-09-20 16:20:15 +00009136 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009137 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009138 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00009139 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00009140
9141*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9142*** create shared libraries on Solaris systems. Therefore, libtool
9143*** is disabling shared libraries support. We urge you to upgrade GNU
9144*** binutils to release 2.9.1 or newer. Another option is to modify
9145*** your PATH or compiler configuration so that the native linker is
9146*** used, and then restart.
9147
jimblandy92b1f832009-12-23 22:23:49 +00009148_LT_EOF
9149 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
mmentovai8c2a4de2006-09-20 16:20:15 +00009157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9158 case `$LD -v 2>&1` in
9159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9160 ld_shlibs=no
9161 cat <<_LT_EOF 1>&2
9162
9163*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9164*** reliably create shared libraries on SCO systems. Therefore, libtool
9165*** is disabling shared libraries support. We urge you to upgrade GNU
9166*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9167*** your PATH or compiler configuration so that the native linker is
9168*** used, and then restart.
9169
9170_LT_EOF
9171 ;;
9172 *)
jimblandy92b1f832009-12-23 22:23:49 +00009173 # For security reasons, it is highly recommended that you always
9174 # use absolute paths for naming shared libraries, and exclude the
9175 # DT_RUNPATH tag from executables and libraries. But doing so
9176 # requires that you compile everything twice, which is a pain.
9177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180 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 +00009181 else
9182 ld_shlibs=no
9183 fi
9184 ;;
9185 esac
9186 ;;
9187
brynercb91a2f2006-08-25 21:14:45 +00009188 sunos4*)
9189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9190 wlarc=
9191 hardcode_direct=yes
9192 hardcode_shlibpath_var=no
9193 ;;
9194
brynercb91a2f2006-08-25 21:14:45 +00009195 *)
jimblandy92b1f832009-12-23 22:23:49 +00009196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9199 else
9200 ld_shlibs=no
9201 fi
9202 ;;
9203 esac
9204
mmentovai8c2a4de2006-09-20 16:20:15 +00009205 if test "$ld_shlibs" = no; then
9206 runpath_var=
9207 hardcode_libdir_flag_spec=
9208 export_dynamic_flag_spec=
9209 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00009210 fi
9211 else
9212 # PORTME fill in a description of your system's linker (not GNU ld)
9213 case $host_os in
9214 aix3*)
9215 allow_undefined_flag=unsupported
9216 always_export_symbols=yes
9217 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'
9218 # Note: this linker hardcodes the directories in LIBPATH if there
9219 # are no directories specified by -L.
9220 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00009222 # Neither direct hardcoding nor static linking is supported with a
9223 # broken collect2.
9224 hardcode_direct=unsupported
9225 fi
9226 ;;
9227
ted.mielczarek1adb1842009-12-21 13:12:20 +00009228 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009229 if test "$host_cpu" = ia64; then
9230 # On IA64, the linker does run time linking by default, so we don't
9231 # have to do anything special.
9232 aix_use_runtimelinking=no
9233 exp_sym_flag='-Bexport'
9234 no_entry_flag=""
9235 else
9236 # If we're using GNU nm, then we don't want the "-C" option.
9237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +00009238 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9239 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 +00009240 else
jimblandy92b1f832009-12-23 22:23:49 +00009241 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 +00009242 fi
9243 aix_use_runtimelinking=no
9244
9245 # Test if we are trying to use run time linking or normal
9246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9247 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009248 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009249 for ld_flag in $LDFLAGS; do
jimblandy92b1f832009-12-23 22:23:49 +00009250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9251 aix_use_runtimelinking=yes
9252 break
9253 fi
brynercb91a2f2006-08-25 21:14:45 +00009254 done
mmentovai8c2a4de2006-09-20 16:20:15 +00009255 ;;
brynercb91a2f2006-08-25 21:14:45 +00009256 esac
9257
9258 exp_sym_flag='-bexport'
9259 no_entry_flag='-bnoentry'
9260 fi
9261
9262 # When large executables or shared objects are built, AIX ld can
9263 # have problems creating the table of contents. If linking a library
9264 # or program results in "error TOC overflow" add -mminimal-toc to
9265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9267
9268 archive_cmds=''
9269 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009270 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009271 hardcode_libdir_separator=':'
9272 link_all_deplibs=yes
jimblandy92b1f832009-12-23 22:23:49 +00009273 file_list_spec='${wl}-f,'
brynercb91a2f2006-08-25 21:14:45 +00009274
9275 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009276 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009277 # We only want to do this on AIX 4.2 and lower, the check
9278 # below for broken collect2 doesn't work under 4.3+
9279 collect2name=`${CC} -print-prog-name=collect2`
jimblandy92b1f832009-12-23 22:23:49 +00009280 if test -f "$collect2name" &&
9281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009282 then
jimblandy92b1f832009-12-23 22:23:49 +00009283 # We have reworked collect2
9284 :
brynercb91a2f2006-08-25 21:14:45 +00009285 else
jimblandy92b1f832009-12-23 22:23:49 +00009286 # We have old collect2
9287 hardcode_direct=unsupported
9288 # It fails to find uninstalled libraries when the uninstalled
9289 # path is not listed in the libpath. Setting hardcode_minus_L
9290 # to unsupported forces relinking
9291 hardcode_minus_L=yes
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00009294 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009295 ;;
brynercb91a2f2006-08-25 21:14:45 +00009296 esac
9297 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009298 if test "$aix_use_runtimelinking" = yes; then
9299 shared_flag="$shared_flag "'${wl}-G'
9300 fi
ted.mielczarekb2236272010-04-08 23:06:23 +00009301 link_all_deplibs=no
brynercb91a2f2006-08-25 21:14:45 +00009302 else
9303 # not using gcc
9304 if test "$host_cpu" = ia64; then
jimblandy92b1f832009-12-23 22:23:49 +00009305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9306 # chokes on -Wl,-G. The following line is correct:
brynercb91a2f2006-08-25 21:14:45 +00009307 shared_flag='-G'
9308 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009309 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00009310 shared_flag='${wl}-G'
9311 else
9312 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00009313 fi
brynercb91a2f2006-08-25 21:14:45 +00009314 fi
9315 fi
9316
jimblandy92b1f832009-12-23 22:23:49 +00009317 export_dynamic_flag_spec='${wl}-bexpall'
brynercb91a2f2006-08-25 21:14:45 +00009318 # It seems that -bexpall does not export symbols beginning with
9319 # underscore (_), so it is better to generate a list of symbols to export.
9320 always_export_symbols=yes
9321 if test "$aix_use_runtimelinking" = yes; then
9322 # Warning - without using the other runtime loading flags (-brtl),
9323 # -berok will link without error, but may produce a broken library.
9324 allow_undefined_flag='-berok'
jimblandy92b1f832009-12-23 22:23:49 +00009325 # Determine the default libpath from the value encoded in an
9326 # empty executable.
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009328/* end confdefs.h. */
9329
9330int
9331main ()
9332{
9333
9334 ;
9335 return 0;
9336}
9337_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009338if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009339
ted.mielczarek1adb1842009-12-21 13:12:20 +00009340lt_aix_libpath_sed='
9341 /Import File Strings/,/^$/ {
9342 /^0/ {
9343 s/^0 *\(.*\)$/\1/
9344 p
9345 }
9346 }'
9347aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009348# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009349if test -z "$aix_libpath"; then
9350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9351fi
brynercb91a2f2006-08-25 21:14:45 +00009352fi
jimblandy92b1f832009-12-23 22:23:49 +00009353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009355if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9356
jimblandy92b1f832009-12-23 22:23:49 +00009357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9358 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"
9359 else
brynercb91a2f2006-08-25 21:14:45 +00009360 if test "$host_cpu" = ia64; then
9361 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9362 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00009363 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 +00009364 else
jimblandy92b1f832009-12-23 22:23:49 +00009365 # Determine the default libpath from the value encoded in an
9366 # empty executable.
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009368/* end confdefs.h. */
9369
9370int
9371main ()
9372{
9373
9374 ;
9375 return 0;
9376}
9377_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009378if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009379
ted.mielczarek1adb1842009-12-21 13:12:20 +00009380lt_aix_libpath_sed='
9381 /Import File Strings/,/^$/ {
9382 /^0/ {
9383 s/^0 *\(.*\)$/\1/
9384 p
9385 }
9386 }'
9387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009388# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009389if test -z "$aix_libpath"; then
9390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9391fi
brynercb91a2f2006-08-25 21:14:45 +00009392fi
jimblandy92b1f832009-12-23 22:23:49 +00009393rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009395if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9396
9397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9398 # Warning - without using the other run time loading flags,
9399 # -berok will link without error, but may produce a broken library.
9400 no_undefined_flag=' ${wl}-bernotok'
9401 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00009402 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00009403 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00009404 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009405 # This is similar to how AIX traditionally builds its shared libraries.
9406 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 +00009407 fi
9408 fi
9409 ;;
9410
9411 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00009412 case $host_cpu in
9413 powerpc)
9414 # see comment about AmigaOS4 .so support
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds=''
9417 ;;
9418 m68k)
9419 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)'
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_minus_L=yes
9422 ;;
9423 esac
brynercb91a2f2006-08-25 21:14:45 +00009424 ;;
9425
mmentovai8c2a4de2006-09-20 16:20:15 +00009426 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009427 export_dynamic_flag_spec=-rdynamic
9428 ;;
9429
jimblandy92b1f832009-12-23 22:23:49 +00009430 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00009431 # When not using gcc, we currently assume that we are using
9432 # Microsoft Visual C++.
9433 # hardcode_libdir_flag_spec is actually meaningless, as there is
9434 # no search path for DLLs.
9435 hardcode_libdir_flag_spec=' '
9436 allow_undefined_flag=unsupported
9437 # Tell ltmain to make .lib files, not .a files.
9438 libext=lib
9439 # Tell ltmain to make .dll files, not .so files.
9440 shrext_cmds=".dll"
9441 # FIXME: Setting linknames here is a bad hack.
jimblandy92b1f832009-12-23 22:23:49 +00009442 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
brynercb91a2f2006-08-25 21:14:45 +00009443 # The linker will automatically build a .lib file if we build a DLL.
jimblandy92b1f832009-12-23 22:23:49 +00009444 old_archive_from_new_cmds='true'
brynercb91a2f2006-08-25 21:14:45 +00009445 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009446 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009447 fix_srcfile_path='`cygpath -w "$srcfile"`'
9448 enable_shared_with_static_runtimes=yes
9449 ;;
9450
9451 darwin* | rhapsody*)
jimblandy92b1f832009-12-23 22:23:49 +00009452
9453
9454 archive_cmds_need_lc=no
9455 hardcode_direct=no
9456 hardcode_automatic=yes
9457 hardcode_shlibpath_var=unsupported
9458 whole_archive_flag_spec=''
9459 link_all_deplibs=yes
9460 allow_undefined_flag="$_lt_dar_allow_undefined"
9461 case $cc_basename in
9462 ifort*) _lt_dar_can_shared=yes ;;
9463 *) _lt_dar_can_shared=$GCC ;;
9464 esac
9465 if test "$_lt_dar_can_shared" = "yes"; then
9466 output_verbose_link_cmd=echo
9467 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9468 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9469 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}"
9470 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}"
9471
9472 else
9473 ld_shlibs=no
9474 fi
9475
brynercb91a2f2006-08-25 21:14:45 +00009476 ;;
9477
9478 dgux*)
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_libdir_flag_spec='-L$libdir'
9481 hardcode_shlibpath_var=no
9482 ;;
9483
9484 freebsd1*)
9485 ld_shlibs=no
9486 ;;
9487
9488 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9489 # support. Future versions do this automatically, but an explicit c++rt0.o
9490 # does not break anything, and helps significantly (at the cost of a little
9491 # extra space).
9492 freebsd2.2*)
9493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_direct=yes
9496 hardcode_shlibpath_var=no
9497 ;;
9498
9499 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9500 freebsd2*)
9501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_direct=yes
9503 hardcode_minus_L=yes
9504 hardcode_shlibpath_var=no
9505 ;;
9506
9507 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009508 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00009509 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9513 ;;
9514
9515 hpux9*)
9516 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009517 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 +00009518 else
jimblandy92b1f832009-12-23 22:23:49 +00009519 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 +00009520 fi
9521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9522 hardcode_libdir_separator=:
9523 hardcode_direct=yes
9524
9525 # hardcode_minus_L: Not really in the search PATH,
9526 # but as the default location of the library.
9527 hardcode_minus_L=yes
9528 export_dynamic_flag_spec='${wl}-E'
9529 ;;
9530
mmentovai8c2a4de2006-09-20 16:20:15 +00009531 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00009532 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009533 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9534 else
9535 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9536 fi
9537 if test "$with_gnu_ld" = no; then
9538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jimblandy92b1f832009-12-23 22:23:49 +00009539 hardcode_libdir_flag_spec_ld='+b $libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009540 hardcode_libdir_separator=:
mmentovai8c2a4de2006-09-20 16:20:15 +00009541 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009542 hardcode_direct_absolute=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009543 export_dynamic_flag_spec='${wl}-E'
mmentovai8c2a4de2006-09-20 16:20:15 +00009544 # hardcode_minus_L: Not really in the search PATH,
9545 # but as the default location of the library.
9546 hardcode_minus_L=yes
9547 fi
9548 ;;
9549
9550 hpux11*)
9551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9552 case $host_cpu in
9553 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009554 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009556 ia64*)
jimblandy92b1f832009-12-23 22:23:49 +00009557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009558 ;;
brynercb91a2f2006-08-25 21:14:45 +00009559 *)
9560 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9561 ;;
9562 esac
9563 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009564 case $host_cpu in
9565 hppa*64*)
9566 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 ;;
9568 ia64*)
9569 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009570 ;;
9571 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009572 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 +00009573 ;;
9574 esac
9575 fi
9576 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00009579
mmentovai8c2a4de2006-09-20 16:20:15 +00009580 case $host_cpu in
9581 hppa*64*|ia64*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009582 hardcode_direct=no
9583 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00009584 ;;
brynercb91a2f2006-08-25 21:14:45 +00009585 *)
brynercb91a2f2006-08-25 21:14:45 +00009586 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009587 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009588 export_dynamic_flag_spec='${wl}-E'
9589
9590 # hardcode_minus_L: Not really in the search PATH,
9591 # but as the default location of the library.
9592 hardcode_minus_L=yes
9593 ;;
9594 esac
9595 fi
9596 ;;
9597
9598 irix5* | irix6* | nonstopux*)
9599 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009600 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'
9601 # Try to use the -exported_symbol ld option, if it does not
9602 # work, assume that -exports_file does not work either and
9603 # implicitly export all symbols.
9604 save_LDFLAGS="$LDFLAGS"
9605 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h. */
9608int foo(void) {}
9609_ACEOF
9610if ac_fn_c_try_link "$LINENO"; then :
9611 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'
9612
9613fi
9614rm -f core conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616 LDFLAGS="$save_LDFLAGS"
brynercb91a2f2006-08-25 21:14:45 +00009617 else
jimblandy92b1f832009-12-23 22:23:49 +00009618 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'
9619 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 +00009620 fi
jimblandy92b1f832009-12-23 22:23:49 +00009621 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 hardcode_libdir_separator=:
jimblandy92b1f832009-12-23 22:23:49 +00009624 inherit_rpath=yes
brynercb91a2f2006-08-25 21:14:45 +00009625 link_all_deplibs=yes
9626 ;;
9627
ted.mielczarekb2236272010-04-08 23:06:23 +00009628 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9631 else
9632 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9633 fi
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 newsos6)
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_direct=yes
9642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643 hardcode_libdir_separator=:
9644 hardcode_shlibpath_var=no
9645 ;;
9646
jimblandy92b1f832009-12-23 22:23:49 +00009647 *nto* | *qnx*)
9648 ;;
9649
brynercb91a2f2006-08-25 21:14:45 +00009650 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009651 if test -f /usr/libexec/ld.so; then
9652 hardcode_direct=yes
9653 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009654 hardcode_direct_absolute=yes
9655 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 +00009656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9659 export_dynamic_flag_spec='${wl}-E'
9660 else
9661 case $host_os in
9662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_libdir_flag_spec='-R$libdir'
9665 ;;
9666 *)
9667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9669 ;;
9670 esac
jimblandy92b1f832009-12-23 22:23:49 +00009671 fi
brynercb91a2f2006-08-25 21:14:45 +00009672 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00009673 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00009674 fi
9675 ;;
9676
9677 os2*)
9678 hardcode_libdir_flag_spec='-L$libdir'
9679 hardcode_minus_L=yes
9680 allow_undefined_flag=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00009681 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'
9682 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
brynercb91a2f2006-08-25 21:14:45 +00009683 ;;
9684
9685 osf3*)
9686 if test "$GCC" = yes; then
9687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009688 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 +00009689 else
9690 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009691 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 +00009692 fi
jimblandy92b1f832009-12-23 22:23:49 +00009693 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695 hardcode_libdir_separator=:
9696 ;;
9697
9698 osf4* | osf5*) # as osf3* with the addition of -msym flag
9699 if test "$GCC" = yes; then
9700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009701 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 +00009702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703 else
9704 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009705 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'
9706 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~
9707 $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 +00009708
9709 # Both c and cxx compiler support -rpath directly
9710 hardcode_libdir_flag_spec='-rpath $libdir'
9711 fi
jimblandy92b1f832009-12-23 22:23:49 +00009712 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009713 hardcode_libdir_separator=:
9714 ;;
9715
brynercb91a2f2006-08-25 21:14:45 +00009716 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009717 no_undefined_flag=' -z defs'
brynercb91a2f2006-08-25 21:14:45 +00009718 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009719 wlarc='${wl}'
jimblandy92b1f832009-12-23 22:23:49 +00009720 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9722 $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 +00009723 else
jimblandy92b1f832009-12-23 22:23:49 +00009724 case `$CC -V 2>&1` in
9725 *"Compilers 5.0"*)
9726 wlarc=''
9727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9730 ;;
9731 *)
9732 wlarc='${wl}'
9733 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9735 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9736 ;;
9737 esac
brynercb91a2f2006-08-25 21:14:45 +00009738 fi
9739 hardcode_libdir_flag_spec='-R$libdir'
9740 hardcode_shlibpath_var=no
9741 case $host_os in
9742 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009743 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009744 # The compiler driver will combine and reorder linker options,
9745 # but understands `-z linker_flag'. GCC discards it without `$wl',
9746 # but is careful enough not to reorder.
jimblandy92b1f832009-12-23 22:23:49 +00009747 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009748 if test "$GCC" = yes; then
9749 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9750 else
9751 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9752 fi
9753 ;;
brynercb91a2f2006-08-25 21:14:45 +00009754 esac
9755 link_all_deplibs=yes
9756 ;;
9757
9758 sunos4*)
9759 if test "x$host_vendor" = xsequent; then
9760 # Use $CC to link under sequent, because it throws in some extra .o
9761 # files that make .init and .fini sections work.
9762 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9763 else
9764 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9765 fi
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_direct=yes
9768 hardcode_minus_L=yes
9769 hardcode_shlibpath_var=no
9770 ;;
9771
9772 sysv4)
9773 case $host_vendor in
9774 sni)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_direct=yes # is this really true???
9777 ;;
9778 siemens)
9779 ## LD is ld it makes a PLAMLIB
9780 ## CC just makes a GrossModule.
9781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9782 reload_cmds='$CC -r -o $output$reload_objs'
9783 hardcode_direct=no
9784 ;;
9785 motorola)
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9788 ;;
9789 esac
9790 runpath_var='LD_RUN_PATH'
9791 hardcode_shlibpath_var=no
9792 ;;
9793
9794 sysv4.3*)
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_shlibpath_var=no
9797 export_dynamic_flag_spec='-Bexport'
9798 ;;
9799
9800 sysv4*MP*)
9801 if test -d /usr/nec; then
9802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_shlibpath_var=no
9804 runpath_var=LD_RUN_PATH
9805 hardcode_runpath_var=yes
9806 ld_shlibs=yes
9807 fi
9808 ;;
9809
ted.mielczarek1adb1842009-12-21 13:12:20 +00009810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009811 no_undefined_flag='${wl}-z,text'
9812 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00009813 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009814 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00009815
mmentovai3261e8b2006-09-06 02:56:44 +00009816 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009817 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009819 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009820 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009822 fi
brynerd5e66382006-09-08 02:35:53 +00009823 ;;
9824
mmentovai8c2a4de2006-09-20 16:20:15 +00009825 sysv5* | sco3.2v5* | sco5v6*)
9826 # Note: We can NOT use -z defs as we might desire, because we do not
9827 # link with -lc, and that would cause any symbols used from libc to
9828 # always be unresolved, which means just about no library would
9829 # ever link correctly. If we're not using GNU ld we use -z text
9830 # though, which does catch some bad symbols but isn't as heavy-handed
9831 # as -z defs.
9832 no_undefined_flag='${wl}-z,text'
9833 allow_undefined_flag='${wl}-z,nodefs'
9834 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00009835 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009836 hardcode_libdir_flag_spec='${wl}-R,$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009837 hardcode_libdir_separator=':'
9838 link_all_deplibs=yes
9839 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00009840 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00009841
9842 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009845 else
jimblandy92b1f832009-12-23 22:23:49 +00009846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009848 fi
brynercb91a2f2006-08-25 21:14:45 +00009849 ;;
9850
9851 uts4*)
9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_shlibpath_var=no
9855 ;;
9856
9857 *)
9858 ld_shlibs=no
9859 ;;
9860 esac
jimblandy92b1f832009-12-23 22:23:49 +00009861
9862 if test x$host_vendor = xsni; then
9863 case $host in
9864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9865 export_dynamic_flag_spec='${wl}-Blargedynsym'
9866 ;;
9867 esac
9868 fi
brynercb91a2f2006-08-25 21:14:45 +00009869 fi
9870
jimblandy92b1f832009-12-23 22:23:49 +00009871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9872$as_echo "$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009873test "$ld_shlibs" = no && can_build_shared=no
9874
jimblandy92b1f832009-12-23 22:23:49 +00009875with_gnu_ld=$with_gnu_ld
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
brynercb91a2f2006-08-25 21:14:45 +00009891#
9892# Do we need to explicitly link libc?
9893#
9894case "x$archive_cmds_need_lc" in
9895x|xyes)
9896 # Assume -lc should be added
9897 archive_cmds_need_lc=yes
9898
9899 if test "$enable_shared" = yes && test "$GCC" = yes; then
9900 case $archive_cmds in
9901 *'~'*)
9902 # FIXME: we may have to deal with multi-command sequences.
9903 ;;
9904 '$CC '*)
9905 # Test whether the compiler implicitly links with -lc since on some
9906 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9907 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +00009908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9909$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9910 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00009911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009912
jimblandy92b1f832009-12-23 22:23:49 +00009913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00009914 (eval $ac_compile) 2>&5
9915 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00009918 soname=conftest
9919 lib=conftest
9920 libobjs=conftest.$ac_objext
9921 deplibs=
9922 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00009923 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00009924 compiler_flags=-v
9925 linker_flags=-v
9926 verstring=
9927 output_objdir=.
9928 libname=conftest
9929 lt_save_allow_undefined_flag=$allow_undefined_flag
9930 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00009931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9932 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009933 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9935 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +00009936 then
9937 archive_cmds_need_lc=no
9938 else
9939 archive_cmds_need_lc=yes
9940 fi
9941 allow_undefined_flag=$lt_save_allow_undefined_flag
9942 else
9943 cat conftest.err 1>&5
9944 fi
jimblandy92b1f832009-12-23 22:23:49 +00009945 $RM conftest*
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9947$as_echo "$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009948 ;;
9949 esac
9950 fi
9951 ;;
9952esac
9953
jimblandy92b1f832009-12-23 22:23:49 +00009954
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
10107
10108
10109
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10111$as_echo_n "checking dynamic linker characteristics... " >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000010112
brynercb91a2f2006-08-25 21:14:45 +000010113if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010114 case $host_os in
10115 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10116 *) lt_awk_arg="/^libraries:/" ;;
10117 esac
10118 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 +000010119 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +000010120 # if the path contains ";" then we assume it to be the separator
10121 # otherwise default to the standard path separator (i.e. ":") - it is
10122 # assumed that no part of a normal pathname contains ";" but that should
10123 # okay in the real world where ";" in dirpaths is itself problematic.
jimblandy92b1f832009-12-23 22:23:49 +000010124 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010125 else
jimblandy92b1f832009-12-23 22:23:49 +000010126 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010127 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000010128 # Ok, now we have the path, separated by spaces, we can step through it
10129 # and add multilib dir if necessary.
10130 lt_tmp_lt_search_path_spec=
10131 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10132 for lt_sys_path in $lt_search_path_spec; do
10133 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10135 else
10136 test -d "$lt_sys_path" && \
10137 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10138 fi
10139 done
jimblandy92b1f832009-12-23 22:23:49 +000010140 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
ted.mielczarek1adb1842009-12-21 13:12:20 +000010141BEGIN {RS=" "; FS="/|\n";} {
10142 lt_foo="";
10143 lt_count=0;
10144 for (lt_i = NF; lt_i > 0; lt_i--) {
10145 if ($lt_i != "" && $lt_i != ".") {
10146 if ($lt_i == "..") {
10147 lt_count++;
10148 } else {
10149 if (lt_count == 0) {
10150 lt_foo="/" $lt_i lt_foo;
10151 } else {
10152 lt_count--;
10153 }
10154 }
10155 }
10156 }
10157 if (lt_foo != "") { lt_freq[lt_foo]++; }
10158 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10159}'`
jimblandy92b1f832009-12-23 22:23:49 +000010160 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +000010161else
10162 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10163fi
jimblandy92b1f832009-12-23 22:23:49 +000010164library_names_spec=
10165libname_spec='lib$name'
10166soname_spec=
10167shrext_cmds=".so"
10168postinstall_cmds=
10169postuninstall_cmds=
10170finish_cmds=
10171finish_eval=
10172shlibpath_var=
10173shlibpath_overrides_runpath=unknown
10174version_type=none
10175dynamic_linker="$host_os ld.so"
10176sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010177need_lib_prefix=unknown
10178hardcode_into_libs=no
10179
10180# when you set need_version to no, make sure it does not cause -set_version
10181# flags to be left without arguments
10182need_version=unknown
10183
10184case $host_os in
10185aix3*)
10186 version_type=linux
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10188 shlibpath_var=LIBPATH
10189
10190 # AIX 3 has no versioning support, so we append a major version to the name.
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 ;;
10193
ted.mielczarek1adb1842009-12-21 13:12:20 +000010194aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 hardcode_into_libs=yes
10199 if test "$host_cpu" = ia64; then
10200 # AIX 5 supports IA64
10201 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 else
10204 # With GCC up to 2.95.x, collect2 would create an import file
10205 # for dependence libraries. The import file would start with
10206 # the line `#! .'. This would cause the generated library to
10207 # depend on `.', always an invalid library. This was fixed in
10208 # development snapshots of GCC prior to 3.0.
10209 case $host_os in
10210 aix4 | aix4.[01] | aix4.[01].*)
10211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10212 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000010213 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010214 :
10215 else
10216 can_build_shared=no
10217 fi
10218 ;;
10219 esac
10220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10221 # soname into executable. Probably we can add versioning support to
10222 # collect2, so additional links can be useful in future.
10223 if test "$aix_use_runtimelinking" = yes; then
10224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10225 # instead of lib<name>.a to let people know that these are not
10226 # typical AIX shared libraries.
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 else
10229 # We preserve .a as extension for shared libraries through AIX4.2
10230 # and later when we are not doing run time linking.
10231 library_names_spec='${libname}${release}.a $libname.a'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 fi
10234 shlibpath_var=LIBPATH
10235 fi
10236 ;;
10237
10238amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000010239 case $host_cpu in
10240 powerpc)
10241 # Since July 2007 AmigaOS4 officially supports .so libraries.
10242 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 ;;
10245 m68k)
10246 library_names_spec='$libname.ixlibrary $libname.a'
10247 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10248 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'
10249 ;;
10250 esac
brynercb91a2f2006-08-25 21:14:45 +000010251 ;;
10252
10253beos*)
10254 library_names_spec='${libname}${shared_ext}'
10255 dynamic_linker="$host_os ld.so"
10256 shlibpath_var=LIBRARY_PATH
10257 ;;
10258
mmentovai8c2a4de2006-09-20 16:20:15 +000010259bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000010260 version_type=linux
10261 need_version=no
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10265 shlibpath_var=LD_LIBRARY_PATH
10266 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10267 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10268 # the default ld.so.conf also contains /usr/contrib/lib and
10269 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10270 # libtool to hard-code these into programs
10271 ;;
10272
jimblandy92b1f832009-12-23 22:23:49 +000010273cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010274 version_type=windows
10275 shrext_cmds=".dll"
10276 need_version=no
10277 need_lib_prefix=no
10278
10279 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010280 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010281 library_names_spec='$libname.dll.a'
10282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10283 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000010284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000010285 dldir=$destdir/`dirname \$dlpath`~
10286 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000010287 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000010288 chmod a+x \$dldir/$dlname~
10289 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10290 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10291 fi'
brynercb91a2f2006-08-25 21:14:45 +000010292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10293 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000010294 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000010295 shlibpath_overrides_runpath=yes
10296
10297 case $host_os in
10298 cygwin*)
10299 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10300 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10301 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10302 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010303 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010304 # MinGW DLLs use traditional 'lib' prefix
10305 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000010306 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10307 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010308 # It is most probably a Windows format PATH printed by
10309 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10310 # path with ; separators, and with drive letters. We can handle the
10311 # drive letters (cygwin fileutils understands them), so leave them,
10312 # especially as we might pass files found there to a mingw objdump,
10313 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000010314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010315 else
jimblandy92b1f832009-12-23 22:23:49 +000010316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010317 fi
10318 ;;
10319 pw32*)
10320 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010321 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 +000010322 ;;
10323 esac
10324 ;;
10325
10326 *)
10327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10328 ;;
10329 esac
10330 dynamic_linker='Win32 ld.exe'
10331 # FIXME: first we should search . and the directory the executable is in
10332 shlibpath_var=PATH
10333 ;;
10334
10335darwin* | rhapsody*)
10336 dynamic_linker="$host_os dyld"
10337 version_type=darwin
10338 need_lib_prefix=no
10339 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000010341 soname_spec='${libname}${release}${major}$shared_ext'
10342 shlibpath_overrides_runpath=yes
10343 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000010344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000010345
10346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +000010347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10348 ;;
10349
10350dgux*)
10351 version_type=linux
10352 need_lib_prefix=no
10353 need_version=no
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 ;;
10358
10359freebsd1*)
10360 dynamic_linker=no
10361 ;;
10362
mmentovai8c2a4de2006-09-20 16:20:15 +000010363freebsd* | dragonfly*)
10364 # DragonFly does not have aout. When/if they implement a new
10365 # versioning mechanism, adjust this.
10366 if test -x /usr/bin/objformat; then
10367 objformat=`/usr/bin/objformat`
10368 else
10369 case $host_os in
10370 freebsd[123]*) objformat=aout ;;
10371 *) objformat=elf ;;
10372 esac
10373 fi
brynercb91a2f2006-08-25 21:14:45 +000010374 version_type=freebsd-$objformat
10375 case $version_type in
10376 freebsd-elf*)
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10378 need_version=no
10379 need_lib_prefix=no
10380 ;;
10381 freebsd-*)
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10383 need_version=yes
10384 ;;
10385 esac
10386 shlibpath_var=LD_LIBRARY_PATH
10387 case $host_os in
10388 freebsd2*)
10389 shlibpath_overrides_runpath=yes
10390 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010391 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000010392 shlibpath_overrides_runpath=yes
10393 hardcode_into_libs=yes
10394 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010395 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10396 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000010397 shlibpath_overrides_runpath=no
10398 hardcode_into_libs=yes
10399 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000010400 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000010401 shlibpath_overrides_runpath=yes
10402 hardcode_into_libs=yes
10403 ;;
brynercb91a2f2006-08-25 21:14:45 +000010404 esac
10405 ;;
10406
10407gnu*)
10408 version_type=linux
10409 need_lib_prefix=no
10410 need_version=no
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 hardcode_into_libs=yes
10415 ;;
10416
10417hpux9* | hpux10* | hpux11*)
10418 # Give a soname corresponding to the major version so that dld.sl refuses to
10419 # link against other versions.
10420 version_type=sunos
10421 need_lib_prefix=no
10422 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010423 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000010424 ia64*)
10425 shrext_cmds='.so'
10426 hardcode_into_libs=yes
10427 dynamic_linker="$host_os dld.so"
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 if test "X$HPUX_IA64_MODE" = X32; then
10433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10434 else
10435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10436 fi
10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10438 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010439 hppa*64*)
10440 shrext_cmds='.sl'
10441 hardcode_into_libs=yes
10442 dynamic_linker="$host_os dld.sl"
10443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10449 ;;
10450 *)
brynercb91a2f2006-08-25 21:14:45 +000010451 shrext_cmds='.sl'
10452 dynamic_linker="$host_os dld.sl"
10453 shlibpath_var=SHLIB_PATH
10454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 ;;
10458 esac
10459 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10460 postinstall_cmds='chmod 555 $lib'
10461 ;;
10462
ted.mielczarek1adb1842009-12-21 13:12:20 +000010463interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000010464 version_type=linux
10465 need_lib_prefix=no
10466 need_version=no
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10473 ;;
10474
brynercb91a2f2006-08-25 21:14:45 +000010475irix5* | irix6* | nonstopux*)
10476 case $host_os in
10477 nonstopux*) version_type=nonstopux ;;
10478 *)
10479 if test "$lt_cv_prog_gnu_ld" = yes; then
10480 version_type=linux
10481 else
10482 version_type=irix
10483 fi ;;
10484 esac
10485 need_lib_prefix=no
10486 need_version=no
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10489 case $host_os in
10490 irix5* | nonstopux*)
10491 libsuff= shlibsuff=
10492 ;;
10493 *)
10494 case $LD in # libtool.m4 will add one of these switches to LD
10495 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10496 libsuff= shlibsuff= libmagic=32-bit;;
10497 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10498 libsuff=32 shlibsuff=N32 libmagic=N32;;
10499 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10500 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10501 *) libsuff= shlibsuff= libmagic=never-match;;
10502 esac
10503 ;;
10504 esac
10505 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10506 shlibpath_overrides_runpath=no
10507 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10508 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10509 hardcode_into_libs=yes
10510 ;;
10511
10512# No shared lib support for Linux oldld, aout, or coff.
10513linux*oldld* | linux*aout* | linux*coff*)
10514 dynamic_linker=no
10515 ;;
10516
10517# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000010518linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010519 version_type=linux
10520 need_lib_prefix=no
10521 need_version=no
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000010527 # Some binutils ld are patched to set DT_RUNPATH
10528 save_LDFLAGS=$LDFLAGS
10529 save_libdir=$libdir
10530 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10531 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h. */
10534
10535int
10536main ()
10537{
10538
10539 ;
10540 return 0;
10541}
10542_ACEOF
10543if ac_fn_c_try_link "$LINENO"; then :
10544 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10545 shlibpath_overrides_runpath=yes
10546fi
10547fi
10548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550 LDFLAGS=$save_LDFLAGS
10551 libdir=$save_libdir
10552
brynercb91a2f2006-08-25 21:14:45 +000010553 # This implies no fast_install, which is unacceptable.
10554 # Some rework will be needed to allow for fast_install
10555 # before this can be enabled.
10556 hardcode_into_libs=yes
10557
10558 # Append ld.so.conf contents to the search path
10559 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000010560 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 +000010561 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10562 fi
10563
10564 # We used to test for /lib/ld.so.1 and disable shared libraries on
10565 # powerpc, because MkLinux only supported shared libraries with the
10566 # GNU dynamic linker. Since this was broken with cross compilers,
10567 # most powerpc-linux boxes support dynamic linking these days and
10568 # people can always --disable-shared, the test was removed, and we
10569 # assume the GNU/Linux dynamic linker is in use.
10570 dynamic_linker='GNU/Linux ld.so'
10571 ;;
10572
ted.mielczarekb2236272010-04-08 23:06:23 +000010573netbsdelf*-gnu)
10574 version_type=linux
10575 need_lib_prefix=no
10576 need_version=no
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=no
10581 hardcode_into_libs=yes
10582 dynamic_linker='NetBSD ld.elf_so'
10583 ;;
10584
brynercb91a2f2006-08-25 21:14:45 +000010585netbsd*)
10586 version_type=sunos
10587 need_lib_prefix=no
10588 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10592 dynamic_linker='NetBSD (a.out) ld.so'
10593 else
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 dynamic_linker='NetBSD ld.elf_so'
10597 fi
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 hardcode_into_libs=yes
10601 ;;
10602
10603newsos6)
10604 version_type=linux
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=yes
10608 ;;
10609
jimblandy92b1f832009-12-23 22:23:49 +000010610*nto* | *qnx*)
10611 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000010612 need_lib_prefix=no
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010617 shlibpath_overrides_runpath=no
10618 hardcode_into_libs=yes
10619 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000010620 ;;
10621
10622openbsd*)
10623 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000010624 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010625 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010626 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10627 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010628 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10629 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010630 esac
brynercb91a2f2006-08-25 21:14:45 +000010631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10633 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000010635 case $host_os in
10636 openbsd2.[89] | openbsd2.[89].*)
10637 shlibpath_overrides_runpath=no
10638 ;;
10639 *)
10640 shlibpath_overrides_runpath=yes
10641 ;;
10642 esac
10643 else
10644 shlibpath_overrides_runpath=yes
10645 fi
10646 ;;
10647
10648os2*)
10649 libname_spec='$name'
10650 shrext_cmds=".dll"
10651 need_lib_prefix=no
10652 library_names_spec='$libname${shared_ext} $libname.a'
10653 dynamic_linker='OS/2 ld.exe'
10654 shlibpath_var=LIBPATH
10655 ;;
10656
10657osf3* | osf4* | osf5*)
10658 version_type=osf
10659 need_lib_prefix=no
10660 need_version=no
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10665 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10666 ;;
10667
ted.mielczarek1adb1842009-12-21 13:12:20 +000010668rdos*)
10669 dynamic_linker=no
10670 ;;
10671
brynercb91a2f2006-08-25 21:14:45 +000010672solaris*)
10673 version_type=linux
10674 need_lib_prefix=no
10675 need_version=no
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 shlibpath_var=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath=yes
10680 hardcode_into_libs=yes
10681 # ldd complains unless libraries are executable
10682 postinstall_cmds='chmod +x $lib'
10683 ;;
10684
10685sunos4*)
10686 version_type=sunos
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10688 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 shlibpath_overrides_runpath=yes
10691 if test "$with_gnu_ld" = yes; then
10692 need_lib_prefix=no
10693 fi
10694 need_version=yes
10695 ;;
10696
mmentovai8c2a4de2006-09-20 16:20:15 +000010697sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000010698 version_type=linux
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 case $host_vendor in
10703 sni)
10704 shlibpath_overrides_runpath=no
10705 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000010706 runpath_var=LD_RUN_PATH
10707 ;;
10708 siemens)
10709 need_lib_prefix=no
10710 ;;
10711 motorola)
10712 need_lib_prefix=no
10713 need_version=no
10714 shlibpath_overrides_runpath=no
10715 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10716 ;;
10717 esac
10718 ;;
10719
10720sysv4*MP*)
10721 if test -d /usr/nec ;then
10722 version_type=linux
10723 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10724 soname_spec='$libname${shared_ext}.$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 fi
10727 ;;
10728
mmentovai8c2a4de2006-09-20 16:20:15 +000010729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10730 version_type=freebsd-elf
10731 need_lib_prefix=no
10732 need_version=no
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010736 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010737 hardcode_into_libs=yes
10738 if test "$with_gnu_ld" = yes; then
10739 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010740 else
10741 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010742 case $host_os in
10743 sco3.2v5*)
10744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10745 ;;
10746 esac
10747 fi
10748 sys_lib_dlsearch_path_spec='/usr/lib'
10749 ;;
10750
jimblandy92b1f832009-12-23 22:23:49 +000010751tpf*)
10752 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10753 version_type=linux
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=no
10759 hardcode_into_libs=yes
10760 ;;
10761
brynercb91a2f2006-08-25 21:14:45 +000010762uts4*)
10763 version_type=linux
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 ;;
10768
10769*)
10770 dynamic_linker=no
10771 ;;
10772esac
jimblandy92b1f832009-12-23 22:23:49 +000010773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10774$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010775test "$dynamic_linker" = no && can_build_shared=no
10776
mmentovai8c2a4de2006-09-20 16:20:15 +000010777variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10778if test "$GCC" = yes; then
10779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10780fi
10781
jimblandy92b1f832009-12-23 22:23:49 +000010782if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10783 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10784fi
10785if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10786 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10787fi
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
10872
10873
10874
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10876$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010877hardcode_action=
jimblandy92b1f832009-12-23 22:23:49 +000010878if test -n "$hardcode_libdir_flag_spec" ||
10879 test -n "$runpath_var" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000010880 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000010881
jimblandy92b1f832009-12-23 22:23:49 +000010882 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000010883 if test "$hardcode_direct" != no &&
10884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10885 # have to relink, otherwise we might link with an installed library
10886 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000010887 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
brynercb91a2f2006-08-25 21:14:45 +000010888 test "$hardcode_minus_L" != no; then
10889 # Linking always hardcodes the temporary library directory.
10890 hardcode_action=relink
10891 else
10892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10893 hardcode_action=immediate
10894 fi
10895else
10896 # We cannot hardcode anything, or else we can only hardcode existing
10897 # directories.
10898 hardcode_action=unsupported
10899fi
jimblandy92b1f832009-12-23 22:23:49 +000010900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10901$as_echo "$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010902
jimblandy92b1f832009-12-23 22:23:49 +000010903if test "$hardcode_action" = relink ||
10904 test "$inherit_rpath" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000010905 # Fast installation is not supported
10906 enable_fast_install=no
10907elif test "$shlibpath_overrides_runpath" = yes ||
10908 test "$enable_shared" = no; then
10909 # Fast installation is not necessary
10910 enable_fast_install=needless
10911fi
10912
brynercb91a2f2006-08-25 21:14:45 +000010913
jimblandy92b1f832009-12-23 22:23:49 +000010914
10915
10916
10917
10918 if test "x$enable_dlopen" != xyes; then
brynercb91a2f2006-08-25 21:14:45 +000010919 enable_dlopen=unknown
10920 enable_dlopen_self=unknown
10921 enable_dlopen_self_static=unknown
10922else
10923 lt_cv_dlopen=no
10924 lt_cv_dlopen_libs=
10925
10926 case $host_os in
10927 beos*)
10928 lt_cv_dlopen="load_add_on"
10929 lt_cv_dlopen_libs=
10930 lt_cv_dlopen_self=yes
10931 ;;
10932
jimblandy92b1f832009-12-23 22:23:49 +000010933 mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010934 lt_cv_dlopen="LoadLibrary"
10935 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010936 ;;
brynercb91a2f2006-08-25 21:14:45 +000010937
10938 cygwin*)
10939 lt_cv_dlopen="dlopen"
10940 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010941 ;;
brynercb91a2f2006-08-25 21:14:45 +000010942
10943 darwin*)
10944 # if libdl is installed we need to link against it
jimblandy92b1f832009-12-23 22:23:49 +000010945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10946$as_echo_n "checking for dlopen in -ldl... " >&6; }
10947if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010949else
10950 ac_check_lib_save_LIBS=$LIBS
10951LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010953/* end confdefs.h. */
10954
mmentovai8c2a4de2006-09-20 16:20:15 +000010955/* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010958#ifdef __cplusplus
10959extern "C"
10960#endif
brynercb91a2f2006-08-25 21:14:45 +000010961char dlopen ();
10962int
10963main ()
10964{
mmentovai8c2a4de2006-09-20 16:20:15 +000010965return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010966 ;
10967 return 0;
10968}
10969_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010970if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010971 ac_cv_lib_dl_dlopen=yes
10972else
jimblandy92b1f832009-12-23 22:23:49 +000010973 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010974fi
jimblandy92b1f832009-12-23 22:23:49 +000010975rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010977LIBS=$ac_check_lib_save_LIBS
10978fi
jimblandy92b1f832009-12-23 22:23:49 +000010979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10980$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10981if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10983else
10984
10985 lt_cv_dlopen="dyld"
10986 lt_cv_dlopen_libs=
10987 lt_cv_dlopen_self=yes
10988
10989fi
10990
jimblandy92b1f832009-12-23 22:23:49 +000010991 ;;
brynercb91a2f2006-08-25 21:14:45 +000010992
10993 *)
jimblandy92b1f832009-12-23 22:23:49 +000010994 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10995if test "x$ac_cv_func_shl_load" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010996 lt_cv_dlopen="shl_load"
10997else
jimblandy92b1f832009-12-23 22:23:49 +000010998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10999$as_echo_n "checking for shl_load in -ldld... " >&6; }
11000if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011002else
11003 ac_check_lib_save_LIBS=$LIBS
11004LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011006/* end confdefs.h. */
11007
mmentovai8c2a4de2006-09-20 16:20:15 +000011008/* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011011#ifdef __cplusplus
11012extern "C"
11013#endif
brynercb91a2f2006-08-25 21:14:45 +000011014char shl_load ();
11015int
11016main ()
11017{
mmentovai8c2a4de2006-09-20 16:20:15 +000011018return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +000011019 ;
11020 return 0;
11021}
11022_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011023if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011024 ac_cv_lib_dld_shl_load=yes
11025else
jimblandy92b1f832009-12-23 22:23:49 +000011026 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +000011027fi
jimblandy92b1f832009-12-23 22:23:49 +000011028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011030LIBS=$ac_check_lib_save_LIBS
11031fi
jimblandy92b1f832009-12-23 22:23:49 +000011032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11033$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11034if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011035 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011036else
jimblandy92b1f832009-12-23 22:23:49 +000011037 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11038if test "x$ac_cv_func_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011039 lt_cv_dlopen="dlopen"
11040else
jimblandy92b1f832009-12-23 22:23:49 +000011041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11042$as_echo_n "checking for dlopen in -ldl... " >&6; }
11043if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11044 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011045else
11046 ac_check_lib_save_LIBS=$LIBS
11047LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011049/* end confdefs.h. */
11050
mmentovai8c2a4de2006-09-20 16:20:15 +000011051/* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011054#ifdef __cplusplus
11055extern "C"
11056#endif
brynercb91a2f2006-08-25 21:14:45 +000011057char dlopen ();
11058int
11059main ()
11060{
mmentovai8c2a4de2006-09-20 16:20:15 +000011061return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011062 ;
11063 return 0;
11064}
11065_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011066if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011067 ac_cv_lib_dl_dlopen=yes
11068else
jimblandy92b1f832009-12-23 22:23:49 +000011069 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011070fi
jimblandy92b1f832009-12-23 22:23:49 +000011071rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011073LIBS=$ac_check_lib_save_LIBS
11074fi
jimblandy92b1f832009-12-23 22:23:49 +000011075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11076$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11077if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11079else
jimblandy92b1f832009-12-23 22:23:49 +000011080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11081$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11082if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011084else
11085 ac_check_lib_save_LIBS=$LIBS
11086LIBS="-lsvld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011088/* end confdefs.h. */
11089
mmentovai8c2a4de2006-09-20 16:20:15 +000011090/* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011093#ifdef __cplusplus
11094extern "C"
11095#endif
brynercb91a2f2006-08-25 21:14:45 +000011096char dlopen ();
11097int
11098main ()
11099{
mmentovai8c2a4de2006-09-20 16:20:15 +000011100return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011101 ;
11102 return 0;
11103}
11104_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011105if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011106 ac_cv_lib_svld_dlopen=yes
11107else
jimblandy92b1f832009-12-23 22:23:49 +000011108 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011109fi
jimblandy92b1f832009-12-23 22:23:49 +000011110rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011112LIBS=$ac_check_lib_save_LIBS
11113fi
jimblandy92b1f832009-12-23 22:23:49 +000011114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11115$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11116if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11118else
jimblandy92b1f832009-12-23 22:23:49 +000011119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11120$as_echo_n "checking for dld_link in -ldld... " >&6; }
11121if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011123else
11124 ac_check_lib_save_LIBS=$LIBS
11125LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011127/* end confdefs.h. */
11128
mmentovai8c2a4de2006-09-20 16:20:15 +000011129/* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011132#ifdef __cplusplus
11133extern "C"
11134#endif
brynercb91a2f2006-08-25 21:14:45 +000011135char dld_link ();
11136int
11137main ()
11138{
mmentovai8c2a4de2006-09-20 16:20:15 +000011139return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000011140 ;
11141 return 0;
11142}
11143_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011144if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011145 ac_cv_lib_dld_dld_link=yes
11146else
jimblandy92b1f832009-12-23 22:23:49 +000011147 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000011148fi
jimblandy92b1f832009-12-23 22:23:49 +000011149rm -f core conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011151LIBS=$ac_check_lib_save_LIBS
11152fi
jimblandy92b1f832009-12-23 22:23:49 +000011153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11154$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11155if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011157fi
11158
11159
11160fi
11161
11162
11163fi
11164
11165
11166fi
11167
11168
11169fi
11170
11171
11172fi
11173
11174 ;;
11175 esac
11176
11177 if test "x$lt_cv_dlopen" != xno; then
11178 enable_dlopen=yes
11179 else
11180 enable_dlopen=no
11181 fi
11182
11183 case $lt_cv_dlopen in
11184 dlopen)
11185 save_CPPFLAGS="$CPPFLAGS"
11186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11187
11188 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000011189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000011190
11191 save_LIBS="$LIBS"
11192 LIBS="$lt_cv_dlopen_libs $LIBS"
11193
jimblandy92b1f832009-12-23 22:23:49 +000011194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11195$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11196if test "${lt_cv_dlopen_self+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011198else
11199 if test "$cross_compiling" = yes; then :
11200 lt_cv_dlopen_self=cross
11201else
11202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11203 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011204 cat > conftest.$ac_ext <<_LT_EOF
ted.mielczareke574a2a2010-10-05 19:38:22 +000011205#line 11205 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011206#include "confdefs.h"
11207
11208#if HAVE_DLFCN_H
11209#include <dlfcn.h>
11210#endif
11211
11212#include <stdio.h>
11213
11214#ifdef RTLD_GLOBAL
11215# define LT_DLGLOBAL RTLD_GLOBAL
11216#else
11217# ifdef DL_GLOBAL
11218# define LT_DLGLOBAL DL_GLOBAL
11219# else
11220# define LT_DLGLOBAL 0
11221# endif
11222#endif
11223
11224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11225 find out it does not work in some platform. */
11226#ifndef LT_DLLAZY_OR_NOW
11227# ifdef RTLD_LAZY
11228# define LT_DLLAZY_OR_NOW RTLD_LAZY
11229# else
11230# ifdef DL_LAZY
11231# define LT_DLLAZY_OR_NOW DL_LAZY
11232# else
11233# ifdef RTLD_NOW
11234# define LT_DLLAZY_OR_NOW RTLD_NOW
11235# else
11236# ifdef DL_NOW
11237# define LT_DLLAZY_OR_NOW DL_NOW
11238# else
11239# define LT_DLLAZY_OR_NOW 0
11240# endif
11241# endif
11242# endif
11243# endif
11244#endif
11245
brynercb91a2f2006-08-25 21:14:45 +000011246void fnord() { int i=42;}
11247int main ()
11248{
11249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11250 int status = $lt_dlunknown;
11251
11252 if (self)
11253 {
11254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11256 /* dlclose (self); */
11257 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011258 else
11259 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011260
jimblandy92b1f832009-12-23 22:23:49 +000011261 return status;
brynercb91a2f2006-08-25 21:14:45 +000011262}
jimblandy92b1f832009-12-23 22:23:49 +000011263_LT_EOF
11264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011265 (eval $ac_link) 2>&5
11266 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11268 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011269 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011270 lt_status=$?
11271 case x$lt_status in
11272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011275 esac
11276 else :
11277 # compilation failed
11278 lt_cv_dlopen_self=no
11279 fi
11280fi
11281rm -fr conftest*
11282
11283
11284fi
jimblandy92b1f832009-12-23 22:23:49 +000011285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11286$as_echo "$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011287
11288 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +000011290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11291$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11292if test "${lt_cv_dlopen_self_static+set}" = set; then :
11293 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011294else
11295 if test "$cross_compiling" = yes; then :
11296 lt_cv_dlopen_self_static=cross
11297else
11298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11299 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011300 cat > conftest.$ac_ext <<_LT_EOF
ted.mielczareke574a2a2010-10-05 19:38:22 +000011301#line 11301 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011302#include "confdefs.h"
11303
11304#if HAVE_DLFCN_H
11305#include <dlfcn.h>
11306#endif
11307
11308#include <stdio.h>
11309
11310#ifdef RTLD_GLOBAL
11311# define LT_DLGLOBAL RTLD_GLOBAL
11312#else
11313# ifdef DL_GLOBAL
11314# define LT_DLGLOBAL DL_GLOBAL
11315# else
11316# define LT_DLGLOBAL 0
11317# endif
11318#endif
11319
11320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11321 find out it does not work in some platform. */
11322#ifndef LT_DLLAZY_OR_NOW
11323# ifdef RTLD_LAZY
11324# define LT_DLLAZY_OR_NOW RTLD_LAZY
11325# else
11326# ifdef DL_LAZY
11327# define LT_DLLAZY_OR_NOW DL_LAZY
11328# else
11329# ifdef RTLD_NOW
11330# define LT_DLLAZY_OR_NOW RTLD_NOW
11331# else
11332# ifdef DL_NOW
11333# define LT_DLLAZY_OR_NOW DL_NOW
11334# else
11335# define LT_DLLAZY_OR_NOW 0
11336# endif
11337# endif
11338# endif
11339# endif
11340#endif
11341
brynercb91a2f2006-08-25 21:14:45 +000011342void fnord() { int i=42;}
11343int main ()
11344{
11345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11346 int status = $lt_dlunknown;
11347
11348 if (self)
11349 {
11350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11352 /* dlclose (self); */
11353 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011354 else
11355 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011356
jimblandy92b1f832009-12-23 22:23:49 +000011357 return status;
brynercb91a2f2006-08-25 21:14:45 +000011358}
jimblandy92b1f832009-12-23 22:23:49 +000011359_LT_EOF
11360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011361 (eval $ac_link) 2>&5
11362 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11364 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011365 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011366 lt_status=$?
11367 case x$lt_status in
11368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011370 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011371 esac
11372 else :
11373 # compilation failed
11374 lt_cv_dlopen_self_static=no
11375 fi
11376fi
11377rm -fr conftest*
11378
11379
11380fi
jimblandy92b1f832009-12-23 22:23:49 +000011381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11382$as_echo "$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011383 fi
11384
11385 CPPFLAGS="$save_CPPFLAGS"
11386 LDFLAGS="$save_LDFLAGS"
11387 LIBS="$save_LIBS"
11388 ;;
11389 esac
11390
11391 case $lt_cv_dlopen_self in
11392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11393 *) enable_dlopen_self=unknown ;;
11394 esac
11395
11396 case $lt_cv_dlopen_self_static in
11397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11398 *) enable_dlopen_self_static=unknown ;;
11399 esac
11400fi
11401
11402
brynercb91a2f2006-08-25 21:14:45 +000011403
brynercb91a2f2006-08-25 21:14:45 +000011404
brynercb91a2f2006-08-25 21:14:45 +000011405
jimblandy92b1f832009-12-23 22:23:49 +000011406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418striplib=
11419old_striplib=
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11421$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11422if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11423 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11424 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11426$as_echo "yes" >&6; }
11427else
11428# FIXME - insert some real tests, host_os isn't really good enough
11429 case $host_os in
11430 darwin*)
11431 if test -n "$STRIP" ; then
11432 striplib="$STRIP -x"
11433 old_striplib="$STRIP -S"
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11435$as_echo "yes" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
11439 fi
brynercb91a2f2006-08-25 21:14:45 +000011440 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011441 *)
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011444 ;;
11445 esac
jimblandy92b1f832009-12-23 22:23:49 +000011446fi
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
brynercb91a2f2006-08-25 21:14:45 +000011455
brynercb91a2f2006-08-25 21:14:45 +000011456
brynercb91a2f2006-08-25 21:14:45 +000011457
brynercb91a2f2006-08-25 21:14:45 +000011458
jimblandy92b1f832009-12-23 22:23:49 +000011459 # Report which library types will actually be built
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11461$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11463$as_echo "$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011464
jimblandy92b1f832009-12-23 22:23:49 +000011465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11466$as_echo_n "checking whether to build shared libraries... " >&6; }
11467 test "$can_build_shared" = "no" && enable_shared=no
brynercb91a2f2006-08-25 21:14:45 +000011468
jimblandy92b1f832009-12-23 22:23:49 +000011469 # On AIX, shared libraries and static libraries use the same namespace, and
11470 # are all built from PIC.
brynercb91a2f2006-08-25 21:14:45 +000011471 case $host_os in
11472 aix3*)
jimblandy92b1f832009-12-23 22:23:49 +000011473 test "$enable_shared" = yes && enable_static=no
11474 if test -n "$RANLIB"; then
11475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11476 postinstall_cmds='$RANLIB $lib'
11477 fi
11478 ;;
brynercb91a2f2006-08-25 21:14:45 +000011479
jimblandy92b1f832009-12-23 22:23:49 +000011480 aix[4-9]*)
11481 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11482 test "$enable_shared" = yes && enable_static=no
11483 fi
brynercb91a2f2006-08-25 21:14:45 +000011484 ;;
11485 esac
jimblandy92b1f832009-12-23 22:23:49 +000011486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11487$as_echo "$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011488
jimblandy92b1f832009-12-23 22:23:49 +000011489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11490$as_echo_n "checking whether to build static libraries... " >&6; }
11491 # Make sure either enable_shared or enable_static is yes.
11492 test "$enable_shared" = yes || enable_static=yes
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11494$as_echo "$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011495
brynercb91a2f2006-08-25 21:14:45 +000011496
jimblandy92b1f832009-12-23 22:23:49 +000011497
11498
brynercb91a2f2006-08-25 21:14:45 +000011499fi
brynercb91a2f2006-08-25 21:14:45 +000011500ac_ext=c
11501ac_cpp='$CPP $CPPFLAGS'
11502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505
11506CC="$lt_save_CC"
11507
11508
jimblandy92b1f832009-12-23 22:23:49 +000011509ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011510ac_cpp='$CXXCPP $CPPFLAGS'
11511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11514
brynercb91a2f2006-08-25 21:14:45 +000011515archive_cmds_need_lc_CXX=no
11516allow_undefined_flag_CXX=
11517always_export_symbols_CXX=no
11518archive_expsym_cmds_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000011519compiler_needs_object_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011520export_dynamic_flag_spec_CXX=
11521hardcode_direct_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011522hardcode_direct_absolute_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011523hardcode_libdir_flag_spec_CXX=
11524hardcode_libdir_flag_spec_ld_CXX=
11525hardcode_libdir_separator_CXX=
11526hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011527hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011528hardcode_automatic_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011529inherit_rpath_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011530module_cmds_CXX=
11531module_expsym_cmds_CXX=
11532link_all_deplibs_CXX=unknown
11533old_archive_cmds_CXX=$old_archive_cmds
11534no_undefined_flag_CXX=
11535whole_archive_flag_spec_CXX=
11536enable_shared_with_static_runtimes_CXX=no
11537
brynercb91a2f2006-08-25 21:14:45 +000011538# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011539ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011540
11541# Object file extension for compiled C++ test sources.
11542objext=o
11543objext_CXX=$objext
11544
jimblandy92b1f832009-12-23 22:23:49 +000011545# No sense in running all these tests if we already determined that
11546# the CXX compiler isn't working. Some variables (like enable_shared)
11547# are currently assumed to apply to all compilers on this platform,
11548# and will be corrupted by setting them based on a non-working compiler.
11549if test "$_lt_caught_CXX_error" != yes; then
11550 # Code to be used in simple compile tests
11551 lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011552
jimblandy92b1f832009-12-23 22:23:49 +000011553 # Code to be used in simple link tests
11554 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011555
jimblandy92b1f832009-12-23 22:23:49 +000011556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11557
11558
11559
11560
11561
brynercb91a2f2006-08-25 21:14:45 +000011562
11563# If no C compiler was specified, use CC.
11564LTCC=${LTCC-"$CC"}
11565
mmentovai8c2a4de2006-09-20 16:20:15 +000011566# If no C compiler flags were specified, use CFLAGS.
11567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11568
brynercb91a2f2006-08-25 21:14:45 +000011569# Allow CC to be a program name with arguments.
11570compiler=$CC
11571
11572
jimblandy92b1f832009-12-23 22:23:49 +000011573 # save warnings/boilerplate of simple test code
11574 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011575echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011576eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11577_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011578$RM conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011579
jimblandy92b1f832009-12-23 22:23:49 +000011580 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011581echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011582eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11583_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011584$RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011585
11586
jimblandy92b1f832009-12-23 22:23:49 +000011587 # Allow CC to be a program name with arguments.
11588 lt_save_CC=$CC
11589 lt_save_LD=$LD
11590 lt_save_GCC=$GCC
11591 GCC=$GXX
11592 lt_save_with_gnu_ld=$with_gnu_ld
11593 lt_save_path_LD=$lt_cv_path_LD
11594 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11595 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11596 else
11597 $as_unset lt_cv_prog_gnu_ld
11598 fi
11599 if test -n "${lt_cv_path_LDCXX+set}"; then
11600 lt_cv_path_LD=$lt_cv_path_LDCXX
11601 else
11602 $as_unset lt_cv_path_LD
11603 fi
11604 test -z "${LDCXX+set}" || LD=$LDCXX
11605 CC=${CXX-"c++"}
11606 compiler=$CC
11607 compiler_CXX=$CC
11608 for cc_temp in $compiler""; do
mmentovai8c2a4de2006-09-20 16:20:15 +000011609 case $cc_temp in
11610 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11611 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11612 \-*) ;;
11613 *) break;;
11614 esac
11615done
jimblandy92b1f832009-12-23 22:23:49 +000011616cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +000011617
brynercb91a2f2006-08-25 21:14:45 +000011618
jimblandy92b1f832009-12-23 22:23:49 +000011619 if test -n "$compiler"; then
11620 # We don't want -fno-exception when compiling C++ code, so set the
11621 # no_builtin_flag separately
11622 if test "$GXX" = yes; then
11623 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11624 else
11625 lt_prog_compiler_no_builtin_flag_CXX=
11626 fi
brynercb91a2f2006-08-25 21:14:45 +000011627
jimblandy92b1f832009-12-23 22:23:49 +000011628 if test "$GXX" = yes; then
11629 # Set up default GNU C++ configuration
11630
brynercb91a2f2006-08-25 21:14:45 +000011631
11632
mmentovai8c2a4de2006-09-20 16:20:15 +000011633# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +000011634if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +000011635 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011636else
11637 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011638fi
11639
brynercb91a2f2006-08-25 21:14:45 +000011640ac_prog=ld
11641if test "$GCC" = yes; then
11642 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +000011643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11644$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011645 case $host in
11646 *-*-mingw*)
11647 # gcc leaves a trailing carriage return which upsets mingw
11648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11649 *)
11650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11651 esac
11652 case $ac_prog in
11653 # Accept absolute paths.
11654 [\\/]* | ?:[\\/]*)
11655 re_direlt='/[^/][^/]*/\.\./'
11656 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +000011657 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11658 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11659 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +000011660 done
11661 test -z "$LD" && LD="$ac_prog"
11662 ;;
11663 "")
11664 # If it fails, then pretend we aren't using GCC.
11665 ac_prog=ld
11666 ;;
11667 *)
11668 # If it is relative, then search for the first ld in PATH.
11669 with_gnu_ld=unknown
11670 ;;
11671 esac
11672elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +000011673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11674$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011675else
jimblandy92b1f832009-12-23 22:23:49 +000011676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11677$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011678fi
jimblandy92b1f832009-12-23 22:23:49 +000011679if test "${lt_cv_path_LD+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011681else
11682 if test -z "$LD"; then
11683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11684 for ac_dir in $PATH; do
11685 IFS="$lt_save_ifs"
11686 test -z "$ac_dir" && ac_dir=.
11687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11688 lt_cv_path_LD="$ac_dir/$ac_prog"
11689 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011690 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011691 # Break only if it was the GNU/non-GNU ld that we prefer.
11692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11693 *GNU* | *'with BFD'*)
11694 test "$with_gnu_ld" != no && break
11695 ;;
11696 *)
11697 test "$with_gnu_ld" != yes && break
11698 ;;
11699 esac
11700 fi
11701 done
11702 IFS="$lt_save_ifs"
11703else
11704 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11705fi
11706fi
11707
11708LD="$lt_cv_path_LD"
11709if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +000011710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11711$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011712else
jimblandy92b1f832009-12-23 22:23:49 +000011713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011715fi
ted.mielczareke574a2a2010-10-05 19:38:22 +000011716test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000011717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11718$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11719if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011721else
mmentovai8c2a4de2006-09-20 16:20:15 +000011722 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011723case `$LD -v 2>&1 </dev/null` in
11724*GNU* | *'with BFD'*)
11725 lt_cv_prog_gnu_ld=yes
11726 ;;
11727*)
11728 lt_cv_prog_gnu_ld=no
11729 ;;
11730esac
11731fi
jimblandy92b1f832009-12-23 22:23:49 +000011732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11733$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011734with_gnu_ld=$lt_cv_prog_gnu_ld
11735
11736
11737
brynercb91a2f2006-08-25 21:14:45 +000011738
brynercb91a2f2006-08-25 21:14:45 +000011739
brynercb91a2f2006-08-25 21:14:45 +000011740
brynercb91a2f2006-08-25 21:14:45 +000011741
jimblandy92b1f832009-12-23 22:23:49 +000011742 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11743 # archiving commands below assume that GNU ld is being used.
11744 if test "$with_gnu_ld" = yes; then
11745 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11746 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 +000011747
jimblandy92b1f832009-12-23 22:23:49 +000011748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
brynercb91a2f2006-08-25 21:14:45 +000011750
jimblandy92b1f832009-12-23 22:23:49 +000011751 # If archive_cmds runs LD, not CC, wlarc should be empty
11752 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11753 # investigate it a little bit more. (MM)
11754 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000011755
jimblandy92b1f832009-12-23 22:23:49 +000011756 # ancient GNU ld didn't support --whole-archive et. al.
11757 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11758 $GREP 'no-whole-archive' > /dev/null; then
11759 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11760 else
11761 whole_archive_flag_spec_CXX=
11762 fi
brynercb91a2f2006-08-25 21:14:45 +000011763 else
jimblandy92b1f832009-12-23 22:23:49 +000011764 with_gnu_ld=no
11765 wlarc=
11766
11767 # A generic and very simple default shared library creation
11768 # command for GNU C++ for the case where it uses the native
11769 # linker, instead of GNU ld. If possible, this setting should
11770 # overridden to take advantage of the native linker features on
11771 # the platform it is being used on.
11772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011773 fi
brynercb91a2f2006-08-25 21:14:45 +000011774
brynercb91a2f2006-08-25 21:14:45 +000011775 # Commands to make compiler produce verbose output that lists
11776 # what "hidden" libraries, object files and flags are used when
11777 # linking a shared library.
jimblandy92b1f832009-12-23 22:23:49 +000011778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11779
11780 else
11781 GXX=no
11782 with_gnu_ld=no
11783 wlarc=
11784 fi
11785
11786 # PORTME: fill in a description of your system's C++ link characteristics
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11788$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11789 ld_shlibs_CXX=yes
11790 case $host_os in
11791 aix3*)
brynercb91a2f2006-08-25 21:14:45 +000011792 # FIXME: insert proper C++ library support
11793 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011794 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011795 aix[4-9]*)
11796 if test "$host_cpu" = ia64; then
11797 # On IA64, the linker does run time linking by default, so we don't
11798 # have to do anything special.
11799 aix_use_runtimelinking=no
11800 exp_sym_flag='-Bexport'
11801 no_entry_flag=""
11802 else
11803 aix_use_runtimelinking=no
brynercb91a2f2006-08-25 21:14:45 +000011804
jimblandy92b1f832009-12-23 22:23:49 +000011805 # Test if we are trying to use run time linking or normal
11806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11807 # need to do runtime linking.
11808 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11809 for ld_flag in $LDFLAGS; do
11810 case $ld_flag in
11811 *-brtl*)
11812 aix_use_runtimelinking=yes
11813 break
11814 ;;
11815 esac
11816 done
11817 ;;
11818 esac
11819
11820 exp_sym_flag='-bexport'
11821 no_entry_flag='-bnoentry'
11822 fi
11823
11824 # When large executables or shared objects are built, AIX ld can
11825 # have problems creating the table of contents. If linking a library
11826 # or program results in "error TOC overflow" add -mminimal-toc to
11827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11829
11830 archive_cmds_CXX=''
11831 hardcode_direct_CXX=yes
11832 hardcode_direct_absolute_CXX=yes
11833 hardcode_libdir_separator_CXX=':'
11834 link_all_deplibs_CXX=yes
11835 file_list_spec_CXX='${wl}-f,'
11836
11837 if test "$GXX" = yes; then
11838 case $host_os in aix4.[012]|aix4.[012].*)
11839 # We only want to do this on AIX 4.2 and lower, the check
11840 # below for broken collect2 doesn't work under 4.3+
11841 collect2name=`${CC} -print-prog-name=collect2`
11842 if test -f "$collect2name" &&
11843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11844 then
11845 # We have reworked collect2
11846 :
11847 else
11848 # We have old collect2
11849 hardcode_direct_CXX=unsupported
11850 # It fails to find uninstalled libraries when the uninstalled
11851 # path is not listed in the libpath. Setting hardcode_minus_L
11852 # to unsupported forces relinking
11853 hardcode_minus_L_CXX=yes
11854 hardcode_libdir_flag_spec_CXX='-L$libdir'
11855 hardcode_libdir_separator_CXX=
11856 fi
11857 esac
11858 shared_flag='-shared'
11859 if test "$aix_use_runtimelinking" = yes; then
11860 shared_flag="$shared_flag "'${wl}-G'
11861 fi
11862 else
11863 # not using gcc
11864 if test "$host_cpu" = ia64; then
11865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11866 # chokes on -Wl,-G. The following line is correct:
11867 shared_flag='-G'
11868 else
11869 if test "$aix_use_runtimelinking" = yes; then
11870 shared_flag='${wl}-G'
11871 else
11872 shared_flag='${wl}-bM:SRE'
11873 fi
11874 fi
11875 fi
11876
11877 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11878 # It seems that -bexpall does not export symbols beginning with
11879 # underscore (_), so it is better to generate a list of symbols to
11880 # export.
11881 always_export_symbols_CXX=yes
11882 if test "$aix_use_runtimelinking" = yes; then
11883 # Warning - without using the other runtime loading flags (-brtl),
11884 # -berok will link without error, but may produce a broken library.
11885 allow_undefined_flag_CXX='-berok'
11886 # Determine the default libpath from the value encoded in an empty
11887 # executable.
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889/* end confdefs.h. */
11890
11891int
11892main ()
11893{
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899if ac_fn_cxx_try_link "$LINENO"; then :
11900
11901lt_aix_libpath_sed='
11902 /Import File Strings/,/^$/ {
11903 /^0/ {
11904 s/^0 *\(.*\)$/\1/
11905 p
11906 }
11907 }'
11908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11909# Check for a 64-bit object if we didn't find anything.
11910if test -z "$aix_libpath"; then
11911 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11912fi
11913fi
11914rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11916if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11917
11918 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11919
11920 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"
11921 else
11922 if test "$host_cpu" = ia64; then
11923 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11924 allow_undefined_flag_CXX="-z nodefs"
11925 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"
11926 else
11927 # Determine the default libpath from the value encoded in an
11928 # empty executable.
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930/* end confdefs.h. */
11931
11932int
11933main ()
11934{
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940if ac_fn_cxx_try_link "$LINENO"; then :
11941
11942lt_aix_libpath_sed='
11943 /Import File Strings/,/^$/ {
11944 /^0/ {
11945 s/^0 *\(.*\)$/\1/
11946 p
11947 }
11948 }'
11949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11950# Check for a 64-bit object if we didn't find anything.
11951if test -z "$aix_libpath"; then
11952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11953fi
11954fi
11955rm -f core conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11958
11959 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11960 # Warning - without using the other run time loading flags,
11961 # -berok will link without error, but may produce a broken library.
11962 no_undefined_flag_CXX=' ${wl}-bernotok'
11963 allow_undefined_flag_CXX=' ${wl}-berok'
11964 # Exported symbols can be pulled into shared objects from archives
11965 whole_archive_flag_spec_CXX='$convenience'
11966 archive_cmds_need_lc_CXX=yes
11967 # This is similar to how AIX traditionally builds its shared
11968 # libraries.
11969 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'
11970 fi
11971 fi
11972 ;;
11973
11974 beos*)
11975 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11976 allow_undefined_flag_CXX=unsupported
11977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11978 # support --undefined. This deserves some investigation. FIXME
11979 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11980 else
11981 ld_shlibs_CXX=no
11982 fi
brynercb91a2f2006-08-25 21:14:45 +000011983 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011984
11985 chorus*)
11986 case $cc_basename in
11987 *)
11988 # FIXME: insert proper C++ library support
11989 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011990 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011991 esac
11992 ;;
11993
11994 cygwin* | mingw* | pw32* | cegcc*)
11995 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11996 # as there is no search path for DLLs.
11997 hardcode_libdir_flag_spec_CXX='-L$libdir'
11998 allow_undefined_flag_CXX=unsupported
11999 always_export_symbols_CXX=no
12000 enable_shared_with_static_runtimes_CXX=yes
12001
12002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12003 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'
12004 # If the export-symbols file already is a .def file (1st line
12005 # is EXPORTS), use it as is; otherwise, prepend...
12006 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12007 cp $export_symbols $output_objdir/$soname.def;
12008 else
12009 echo EXPORTS > $output_objdir/$soname.def;
12010 cat $export_symbols >> $output_objdir/$soname.def;
12011 fi~
12012 $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'
12013 else
12014 ld_shlibs_CXX=no
12015 fi
12016 ;;
12017 darwin* | rhapsody*)
12018
12019
12020 archive_cmds_need_lc_CXX=no
12021 hardcode_direct_CXX=no
12022 hardcode_automatic_CXX=yes
12023 hardcode_shlibpath_var_CXX=unsupported
12024 whole_archive_flag_spec_CXX=''
12025 link_all_deplibs_CXX=yes
12026 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12027 case $cc_basename in
12028 ifort*) _lt_dar_can_shared=yes ;;
12029 *) _lt_dar_can_shared=$GCC ;;
12030 esac
12031 if test "$_lt_dar_can_shared" = "yes"; then
12032 output_verbose_link_cmd=echo
12033 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}"
12034 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12035 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}"
12036 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}"
12037 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12038 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}"
12039 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}"
12040 fi
12041
12042 else
12043 ld_shlibs_CXX=no
12044 fi
12045
brynercb91a2f2006-08-25 21:14:45 +000012046 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012047
12048 dgux*)
12049 case $cc_basename in
12050 ec++*)
12051 # FIXME: insert proper C++ library support
12052 ld_shlibs_CXX=no
12053 ;;
12054 ghcx*)
12055 # Green Hills C++ Compiler
12056 # FIXME: insert proper C++ library support
12057 ld_shlibs_CXX=no
12058 ;;
12059 *)
12060 # FIXME: insert proper C++ library support
12061 ld_shlibs_CXX=no
12062 ;;
12063 esac
12064 ;;
12065
12066 freebsd[12]*)
12067 # C++ shared libraries reported to be fairly broken before
12068 # switch to ELF
12069 ld_shlibs_CXX=no
12070 ;;
12071
12072 freebsd-elf*)
12073 archive_cmds_need_lc_CXX=no
12074 ;;
12075
12076 freebsd* | dragonfly*)
12077 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12078 # conventions
12079 ld_shlibs_CXX=yes
12080 ;;
12081
12082 gnu*)
12083 ;;
12084
12085 hpux9*)
12086 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12087 hardcode_libdir_separator_CXX=:
12088 export_dynamic_flag_spec_CXX='${wl}-E'
12089 hardcode_direct_CXX=yes
12090 hardcode_minus_L_CXX=yes # Not in the search PATH,
12091 # but as the default
12092 # location of the library.
12093
12094 case $cc_basename in
12095 CC*)
12096 # FIXME: insert proper C++ library support
12097 ld_shlibs_CXX=no
12098 ;;
12099 aCC*)
12100 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'
12101 # Commands to make compiler produce verbose output that lists
12102 # what "hidden" libraries, object files and flags are used when
12103 # linking a shared library.
12104 #
12105 # There doesn't appear to be a way to prevent this compiler from
12106 # explicitly linking system object files so we need to strip them
12107 # from the output so that they don't get included in the library
12108 # dependencies.
12109 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'
12110 ;;
12111 *)
12112 if test "$GXX" = yes; then
12113 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'
12114 else
12115 # FIXME: insert proper C++ library support
12116 ld_shlibs_CXX=no
12117 fi
12118 ;;
12119 esac
12120 ;;
12121
12122 hpux10*|hpux11*)
12123 if test $with_gnu_ld = no; then
12124 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12125 hardcode_libdir_separator_CXX=:
12126
12127 case $host_cpu in
12128 hppa*64*|ia64*)
12129 ;;
12130 *)
12131 export_dynamic_flag_spec_CXX='${wl}-E'
12132 ;;
12133 esac
12134 fi
12135 case $host_cpu in
12136 hppa*64*|ia64*)
12137 hardcode_direct_CXX=no
12138 hardcode_shlibpath_var_CXX=no
12139 ;;
12140 *)
12141 hardcode_direct_CXX=yes
12142 hardcode_direct_absolute_CXX=yes
12143 hardcode_minus_L_CXX=yes # Not in the search PATH,
12144 # but as the default
12145 # location of the library.
12146 ;;
12147 esac
12148
12149 case $cc_basename in
12150 CC*)
12151 # FIXME: insert proper C++ library support
12152 ld_shlibs_CXX=no
12153 ;;
12154 aCC*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012155 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012156 hppa*64*)
12157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12158 ;;
12159 ia64*)
12160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12161 ;;
12162 *)
12163 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12164 ;;
12165 esac
12166 # Commands to make compiler produce verbose output that lists
12167 # what "hidden" libraries, object files and flags are used when
12168 # linking a shared library.
12169 #
12170 # There doesn't appear to be a way to prevent this compiler from
12171 # explicitly linking system object files so we need to strip them
12172 # from the output so that they don't get included in the library
12173 # dependencies.
12174 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'
12175 ;;
12176 *)
12177 if test "$GXX" = yes; then
12178 if test $with_gnu_ld = no; then
12179 case $host_cpu in
12180 hppa*64*)
12181 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12182 ;;
12183 ia64*)
12184 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12185 ;;
12186 *)
12187 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'
12188 ;;
12189 esac
12190 fi
12191 else
12192 # FIXME: insert proper C++ library support
12193 ld_shlibs_CXX=no
12194 fi
12195 ;;
12196 esac
12197 ;;
12198
12199 interix[3-9]*)
12200 hardcode_direct_CXX=no
12201 hardcode_shlibpath_var_CXX=no
12202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12203 export_dynamic_flag_spec_CXX='${wl}-E'
12204 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12205 # Instead, shared libraries are loaded at an image base (0x10000000 by
12206 # default) and relocated if they conflict, which is a slow very memory
12207 # consuming and fragmenting process. To avoid this, we pick a random,
12208 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12209 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12210 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'
12211 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'
12212 ;;
12213 irix5* | irix6*)
12214 case $cc_basename in
12215 CC*)
12216 # SGI C++
12217 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'
12218
12219 # Archives containing C++ object files must be created using
12220 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12221 # necessary to make sure instantiated templates are included
12222 # in the archive.
12223 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12224 ;;
12225 *)
12226 if test "$GXX" = yes; then
12227 if test "$with_gnu_ld" = no; then
12228 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'
12229 else
12230 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'
12231 fi
12232 fi
12233 link_all_deplibs_CXX=yes
12234 ;;
12235 esac
12236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12237 hardcode_libdir_separator_CXX=:
12238 inherit_rpath_CXX=yes
12239 ;;
12240
ted.mielczarekb2236272010-04-08 23:06:23 +000012241 linux* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +000012242 case $cc_basename in
12243 KCC*)
12244 # Kuck and Associates, Inc. (KAI) C++ Compiler
12245
12246 # KCC will only create a shared library if the output file
12247 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12248 # to its proper name (with version) after linking.
12249 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'
12250 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'
12251 # Commands to make compiler produce verbose output that lists
12252 # what "hidden" libraries, object files and flags are used when
12253 # linking a shared library.
12254 #
12255 # There doesn't appear to be a way to prevent this compiler from
12256 # explicitly linking system object files so we need to strip them
12257 # from the output so that they don't get included in the library
12258 # dependencies.
12259 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'
12260
12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263
12264 # Archives containing C++ object files must be created using
12265 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12266 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12267 ;;
12268 icpc* | ecpc* )
12269 # Intel C++
12270 with_gnu_ld=yes
12271 # version 8.0 and above of icpc choke on multiply defined symbols
12272 # if we add $predep_objects and $postdep_objects, however 7.1 and
12273 # earlier do not add the objects themselves.
12274 case `$CC -V 2>&1` in
12275 *"Version 7."*)
12276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277 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'
12278 ;;
12279 *) # Version 8.0 or newer
12280 tmp_idyn=
12281 case $host_cpu in
12282 ia64*) tmp_idyn=' -i_dynamic';;
12283 esac
12284 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12285 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'
12286 ;;
12287 esac
12288 archive_cmds_need_lc_CXX=no
12289 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12291 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12292 ;;
12293 pgCC* | pgcpp*)
12294 # Portland Group C++ compiler
12295 case `$CC -V` in
12296 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12297 prelink_cmds_CXX='tpldir=Template.dir~
12298 rm -rf $tpldir~
12299 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12300 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12301 old_archive_cmds_CXX='tpldir=Template.dir~
12302 rm -rf $tpldir~
12303 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12304 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12305 $RANLIB $oldlib'
12306 archive_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 -o $lib'
12310 archive_expsym_cmds_CXX='tpldir=Template.dir~
12311 rm -rf $tpldir~
12312 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12313 $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 +000012314 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012315 *) # Version 6 will use weak symbols
12316 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12317 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 +000012318 ;;
12319 esac
brynercb91a2f2006-08-25 21:14:45 +000012320
jimblandy92b1f832009-12-23 22:23:49 +000012321 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12323 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'
12324 ;;
12325 cxx*)
12326 # Compaq C++
12327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12328 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 +000012329
jimblandy92b1f832009-12-23 22:23:49 +000012330 runpath_var=LD_RUN_PATH
12331 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12332 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +000012333
jimblandy92b1f832009-12-23 22:23:49 +000012334 # Commands to make compiler produce verbose output that lists
12335 # what "hidden" libraries, object files and flags are used when
12336 # linking a shared library.
12337 #
12338 # There doesn't appear to be a way to prevent this compiler from
12339 # explicitly linking system object files so we need to strip them
12340 # from the output so that they don't get included in the library
12341 # dependencies.
12342 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'
12343 ;;
12344 xl*)
12345 # IBM XL 8.0 on PPC, with GNU ld
12346 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12347 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12348 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12349 if test "x$supports_anon_versioning" = xyes; then
12350 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12352 echo "local: *; };" >> $output_objdir/$libname.ver~
12353 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12354 fi
12355 ;;
12356 *)
12357 case `$CC -V 2>&1 | sed 5q` in
12358 *Sun\ C*)
12359 # Sun C++ 5.9
12360 no_undefined_flag_CXX=' -zdefs'
12361 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12362 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'
12363 hardcode_libdir_flag_spec_CXX='-R$libdir'
12364 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'
12365 compiler_needs_object_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012366
jimblandy92b1f832009-12-23 22:23:49 +000012367 # Not sure whether something based on
12368 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12369 # would be better.
12370 output_verbose_link_cmd='echo'
12371
12372 # Archives containing C++ object files must be created using
12373 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12374 # necessary to make sure instantiated templates are included
12375 # in the archive.
12376 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12377 ;;
12378 esac
12379 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012380 esac
brynercb91a2f2006-08-25 21:14:45 +000012381 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012382
jimblandy92b1f832009-12-23 22:23:49 +000012383 lynxos*)
12384 # FIXME: insert proper C++ library support
12385 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012386 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012387
12388 m88k*)
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12391 ;;
12392
12393 mvs*)
12394 case $cc_basename in
12395 cxx*)
12396 # FIXME: insert proper C++ library support
12397 ld_shlibs_CXX=no
12398 ;;
12399 *)
12400 # FIXME: insert proper C++ library support
12401 ld_shlibs_CXX=no
12402 ;;
12403 esac
12404 ;;
12405
12406 netbsd*)
12407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12408 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12409 wlarc=
ted.mielczarek1adb1842009-12-21 13:12:20 +000012410 hardcode_libdir_flag_spec_CXX='-R$libdir'
jimblandy92b1f832009-12-23 22:23:49 +000012411 hardcode_direct_CXX=yes
12412 hardcode_shlibpath_var_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012413 fi
jimblandy92b1f832009-12-23 22:23:49 +000012414 # Workaround some broken pre-1.5 toolchains
12415 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 +000012416 ;;
brynercb91a2f2006-08-25 21:14:45 +000012417
jimblandy92b1f832009-12-23 22:23:49 +000012418 *nto* | *qnx*)
12419 ld_shlibs_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012420 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012421
12422 openbsd2*)
12423 # C++ shared libraries are fairly broken
brynercb91a2f2006-08-25 21:14:45 +000012424 ld_shlibs_CXX=no
12425 ;;
brynercb91a2f2006-08-25 21:14:45 +000012426
jimblandy92b1f832009-12-23 22:23:49 +000012427 openbsd*)
12428 if test -f /usr/libexec/ld.so; then
12429 hardcode_direct_CXX=yes
12430 hardcode_shlibpath_var_CXX=no
12431 hardcode_direct_absolute_CXX=yes
12432 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12435 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12436 export_dynamic_flag_spec_CXX='${wl}-E'
12437 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
brynercb91a2f2006-08-25 21:14:45 +000012438 fi
jimblandy92b1f832009-12-23 22:23:49 +000012439 output_verbose_link_cmd=echo
12440 else
12441 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012442 fi
12443 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012444
jimblandy92b1f832009-12-23 22:23:49 +000012445 osf3* | osf4* | osf5*)
12446 case $cc_basename in
12447 KCC*)
12448 # Kuck and Associates, Inc. (KAI) C++ Compiler
12449
12450 # KCC will only create a shared library if the output file
12451 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12452 # to its proper name (with version) after linking.
12453 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'
12454
12455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12456 hardcode_libdir_separator_CXX=:
12457
12458 # Archives containing C++ object files must be created using
12459 # the KAI C++ compiler.
12460 case $host in
12461 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12462 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12463 esac
12464 ;;
12465 RCC*)
12466 # Rational C++ 2.4.1
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12469 ;;
12470 cxx*)
12471 case $host in
12472 osf3*)
12473 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12474 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'
12475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12476 ;;
12477 *)
12478 allow_undefined_flag_CXX=' -expect_unresolved \*'
12479 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'
12480 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12481 echo "-hidden">> $lib.exp~
12482 $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~
12483 $RM $lib.exp'
12484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12485 ;;
12486 esac
12487
12488 hardcode_libdir_separator_CXX=:
12489
12490 # Commands to make compiler produce verbose output that lists
12491 # what "hidden" libraries, object files and flags are used when
12492 # linking a shared library.
12493 #
12494 # There doesn't appear to be a way to prevent this compiler from
12495 # explicitly linking system object files so we need to strip them
12496 # from the output so that they don't get included in the library
12497 # dependencies.
12498 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'
12499 ;;
12500 *)
12501 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12502 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12503 case $host in
12504 osf3*)
12505 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'
12506 ;;
12507 *)
12508 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'
12509 ;;
12510 esac
12511
12512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12513 hardcode_libdir_separator_CXX=:
12514
12515 # Commands to make compiler produce verbose output that lists
12516 # what "hidden" libraries, object files and flags are used when
12517 # linking a shared library.
12518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12519
12520 else
12521 # FIXME: insert proper C++ library support
12522 ld_shlibs_CXX=no
12523 fi
12524 ;;
12525 esac
12526 ;;
12527
12528 psos*)
12529 # FIXME: insert proper C++ library support
12530 ld_shlibs_CXX=no
12531 ;;
12532
12533 sunos4*)
12534 case $cc_basename in
12535 CC*)
12536 # Sun C++ 4.x
12537 # FIXME: insert proper C++ library support
12538 ld_shlibs_CXX=no
12539 ;;
12540 lcc*)
12541 # Lucid
12542 # FIXME: insert proper C++ library support
12543 ld_shlibs_CXX=no
12544 ;;
12545 *)
12546 # FIXME: insert proper C++ library support
12547 ld_shlibs_CXX=no
12548 ;;
12549 esac
12550 ;;
12551
12552 solaris*)
12553 case $cc_basename in
12554 CC*)
12555 # Sun C++ 4.2, 5.x and Centerline C++
12556 archive_cmds_need_lc_CXX=yes
12557 no_undefined_flag_CXX=' -zdefs'
12558 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12559 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12560 $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'
12561
12562 hardcode_libdir_flag_spec_CXX='-R$libdir'
12563 hardcode_shlibpath_var_CXX=no
12564 case $host_os in
12565 solaris2.[0-5] | solaris2.[0-5].*) ;;
12566 *)
12567 # The compiler driver will combine and reorder linker options,
12568 # but understands `-z linker_flag'.
12569 # Supported since Solaris 2.6 (maybe 2.5.1?)
12570 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12571 ;;
12572 esac
12573 link_all_deplibs_CXX=yes
12574
12575 output_verbose_link_cmd='echo'
12576
12577 # Archives containing C++ object files must be created using
12578 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12579 # necessary to make sure instantiated templates are included
12580 # in the archive.
12581 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12582 ;;
12583 gcx*)
12584 # Green Hills C++ Compiler
12585 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12586
12587 # The C++ compiler must be used to create the archive.
12588 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12589 ;;
12590 *)
12591 # GNU C++ compiler with Solaris linker
12592 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12593 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12594 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12595 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12596 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12597 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12598
12599 # Commands to make compiler produce verbose output that lists
12600 # what "hidden" libraries, object files and flags are used when
12601 # linking a shared library.
12602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12603 else
12604 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12605 # platform.
12606 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12607 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12608 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12609
12610 # Commands to make compiler produce verbose output that lists
12611 # what "hidden" libraries, object files and flags are used when
12612 # linking a shared library.
12613 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12614 fi
12615
12616 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12617 case $host_os in
12618 solaris2.[0-5] | solaris2.[0-5].*) ;;
12619 *)
12620 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12621 ;;
12622 esac
12623 fi
12624 ;;
12625 esac
12626 ;;
12627
12628 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12629 no_undefined_flag_CXX='${wl}-z,text'
12630 archive_cmds_need_lc_CXX=no
12631 hardcode_shlibpath_var_CXX=no
12632 runpath_var='LD_RUN_PATH'
12633
12634 case $cc_basename in
12635 CC*)
12636 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12637 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12638 ;;
12639 *)
12640 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642 ;;
12643 esac
12644 ;;
12645
12646 sysv5* | sco3.2v5* | sco5v6*)
12647 # Note: We can NOT use -z defs as we might desire, because we do not
12648 # link with -lc, and that would cause any symbols used from libc to
12649 # always be unresolved, which means just about no library would
12650 # ever link correctly. If we're not using GNU ld we use -z text
12651 # though, which does catch some bad symbols but isn't as heavy-handed
12652 # as -z defs.
12653 no_undefined_flag_CXX='${wl}-z,text'
12654 allow_undefined_flag_CXX='${wl}-z,nodefs'
12655 archive_cmds_need_lc_CXX=no
12656 hardcode_shlibpath_var_CXX=no
12657 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12658 hardcode_libdir_separator_CXX=':'
12659 link_all_deplibs_CXX=yes
12660 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12661 runpath_var='LD_RUN_PATH'
12662
12663 case $cc_basename in
12664 CC*)
12665 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12666 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12667 ;;
12668 *)
12669 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12670 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671 ;;
12672 esac
12673 ;;
12674
12675 tandem*)
12676 case $cc_basename in
12677 NCC*)
12678 # NonStop-UX NCC 3.20
12679 # FIXME: insert proper C++ library support
12680 ld_shlibs_CXX=no
12681 ;;
12682 *)
12683 # FIXME: insert proper C++ library support
12684 ld_shlibs_CXX=no
12685 ;;
12686 esac
12687 ;;
12688
12689 vxworks*)
12690 # FIXME: insert proper C++ library support
12691 ld_shlibs_CXX=no
12692 ;;
12693
mmentovai8c2a4de2006-09-20 16:20:15 +000012694 *)
jimblandy92b1f832009-12-23 22:23:49 +000012695 # FIXME: insert proper C++ library support
12696 ld_shlibs_CXX=no
12697 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012698 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012699
jimblandy92b1f832009-12-23 22:23:49 +000012700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12701$as_echo "$ld_shlibs_CXX" >&6; }
12702 test "$ld_shlibs_CXX" = no && can_build_shared=no
brynercb91a2f2006-08-25 21:14:45 +000012703
jimblandy92b1f832009-12-23 22:23:49 +000012704 GCC_CXX="$GXX"
12705 LD_CXX="$LD"
brynercb91a2f2006-08-25 21:14:45 +000012706
jimblandy92b1f832009-12-23 22:23:49 +000012707 ## CAVEAT EMPTOR:
12708 ## There is no encapsulation within the following macros, do not change
12709 ## the running order or otherwise move them around unless you know exactly
12710 ## what you are doing...
12711 # Dependencies to place before and after the object being linked:
12712predep_objects_CXX=
12713postdep_objects_CXX=
12714predeps_CXX=
12715postdeps_CXX=
12716compiler_lib_search_path_CXX=
12717
12718cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012719class Foo
12720{
12721public:
12722 Foo (void) { a = 0; }
12723private:
12724 int a;
12725};
jimblandy92b1f832009-12-23 22:23:49 +000012726_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012727
jimblandy92b1f832009-12-23 22:23:49 +000012728if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000012729 (eval $ac_compile) 2>&5
12730 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000012731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12732 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +000012733 # Parse the compiler output and extract the necessary
12734 # objects, libraries and library flags.
12735
12736 # Sentinel used to keep track of whether or not we are before
12737 # the conftest object file.
12738 pre_test_object_deps_done=no
12739
jimblandy92b1f832009-12-23 22:23:49 +000012740 for p in `eval "$output_verbose_link_cmd"`; do
brynercb91a2f2006-08-25 21:14:45 +000012741 case $p in
12742
12743 -L* | -R* | -l*)
12744 # Some compilers place space between "-{L,R}" and the path.
12745 # Remove the space.
jimblandy92b1f832009-12-23 22:23:49 +000012746 if test $p = "-L" ||
12747 test $p = "-R"; then
brynercb91a2f2006-08-25 21:14:45 +000012748 prev=$p
12749 continue
12750 else
12751 prev=
12752 fi
12753
12754 if test "$pre_test_object_deps_done" = no; then
12755 case $p in
12756 -L* | -R*)
12757 # Internal compiler library paths should come after those
12758 # provided the user. The postdeps already come after the
12759 # user supplied libs so there is no need to process them.
12760 if test -z "$compiler_lib_search_path_CXX"; then
12761 compiler_lib_search_path_CXX="${prev}${p}"
12762 else
12763 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12764 fi
12765 ;;
12766 # The "-l" case would never come before the object being
12767 # linked, so don't bother handling this case.
12768 esac
12769 else
12770 if test -z "$postdeps_CXX"; then
12771 postdeps_CXX="${prev}${p}"
12772 else
12773 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12774 fi
12775 fi
12776 ;;
12777
12778 *.$objext)
12779 # This assumes that the test object file only shows up
12780 # once in the compiler output.
12781 if test "$p" = "conftest.$objext"; then
12782 pre_test_object_deps_done=yes
12783 continue
12784 fi
12785
12786 if test "$pre_test_object_deps_done" = no; then
12787 if test -z "$predep_objects_CXX"; then
12788 predep_objects_CXX="$p"
12789 else
12790 predep_objects_CXX="$predep_objects_CXX $p"
12791 fi
12792 else
12793 if test -z "$postdep_objects_CXX"; then
12794 postdep_objects_CXX="$p"
12795 else
12796 postdep_objects_CXX="$postdep_objects_CXX $p"
12797 fi
12798 fi
12799 ;;
12800
12801 *) ;; # Ignore the rest.
12802
12803 esac
12804 done
12805
12806 # Clean up.
12807 rm -f a.out a.exe
12808else
12809 echo "libtool.m4: error: problem compiling CXX test program"
12810fi
12811
jimblandy92b1f832009-12-23 22:23:49 +000012812$RM -f confest.$objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012813
mmentovai8c2a4de2006-09-20 16:20:15 +000012814# PORTME: override above test on systems where it is broken
12815case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012816interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012817 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12818 # hack all around it, let's just trust "g++" to DTRT.
12819 predep_objects_CXX=
12820 postdep_objects_CXX=
12821 postdeps_CXX=
12822 ;;
12823
ted.mielczarek1adb1842009-12-21 13:12:20 +000012824linux*)
12825 case `$CC -V 2>&1 | sed 5q` in
12826 *Sun\ C*)
12827 # Sun C++ 5.9
jimblandy92b1f832009-12-23 22:23:49 +000012828
ted.mielczarek1adb1842009-12-21 13:12:20 +000012829 # The more standards-conforming stlport4 library is
12830 # incompatible with the Cstd library. Avoid specifying
12831 # it if it's in CXXFLAGS. Ignore libCrun as
12832 # -library=stlport4 depends on it.
12833 case " $CXX $CXXFLAGS " in
12834 *" -library=stlport4 "*)
12835 solaris_use_stlport4=yes
12836 ;;
12837 esac
jimblandy92b1f832009-12-23 22:23:49 +000012838
ted.mielczarek1adb1842009-12-21 13:12:20 +000012839 if test "$solaris_use_stlport4" != yes; then
12840 postdeps_CXX='-library=Cstd -library=Crun'
12841 fi
12842 ;;
12843 esac
12844 ;;
12845
mmentovai8c2a4de2006-09-20 16:20:15 +000012846solaris*)
12847 case $cc_basename in
12848 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012849 # The more standards-conforming stlport4 library is
12850 # incompatible with the Cstd library. Avoid specifying
12851 # it if it's in CXXFLAGS. Ignore libCrun as
12852 # -library=stlport4 depends on it.
12853 case " $CXX $CXXFLAGS " in
12854 *" -library=stlport4 "*)
12855 solaris_use_stlport4=yes
12856 ;;
12857 esac
12858
mmentovai8c2a4de2006-09-20 16:20:15 +000012859 # Adding this requires a known-good setup of shared libraries for
12860 # Sun compiler versions before 5.6, else PIC objects from an old
12861 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012862 if test "$solaris_use_stlport4" != yes; then
12863 postdeps_CXX='-library=Cstd -library=Crun'
12864 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012865 ;;
12866 esac
12867 ;;
12868esac
12869
jimblandy92b1f832009-12-23 22:23:49 +000012870
brynercb91a2f2006-08-25 21:14:45 +000012871case " $postdeps_CXX " in
12872*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12873esac
jimblandy92b1f832009-12-23 22:23:49 +000012874 compiler_lib_search_dirs_CXX=
12875if test -n "${compiler_lib_search_path_CXX}"; then
12876 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12877fi
brynercb91a2f2006-08-25 21:14:45 +000012878
jimblandy92b1f832009-12-23 22:23:49 +000012879
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
12906
12907
12908
12909 lt_prog_compiler_wl_CXX=
brynercb91a2f2006-08-25 21:14:45 +000012910lt_prog_compiler_pic_CXX=
12911lt_prog_compiler_static_CXX=
12912
jimblandy92b1f832009-12-23 22:23:49 +000012913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12914$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012915
12916 # C++ specific cases for pic, static, wl, etc.
12917 if test "$GXX" = yes; then
12918 lt_prog_compiler_wl_CXX='-Wl,'
12919 lt_prog_compiler_static_CXX='-static'
12920
12921 case $host_os in
12922 aix*)
12923 # All AIX code is PIC.
12924 if test "$host_cpu" = ia64; then
12925 # AIX 5 now supports IA64 processor
12926 lt_prog_compiler_static_CXX='-Bstatic'
12927 fi
12928 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012929
brynercb91a2f2006-08-25 21:14:45 +000012930 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000012931 case $host_cpu in
12932 powerpc)
12933 # see comment about AmigaOS4 .so support
12934 lt_prog_compiler_pic_CXX='-fPIC'
12935 ;;
12936 m68k)
12937 # FIXME: we need at least 68020 code to build shared libraries, but
12938 # adding the `-m68020' flag to GCC prevents building anything better,
12939 # like `-m68040'.
12940 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12941 ;;
12942 esac
brynercb91a2f2006-08-25 21:14:45 +000012943 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012944
ted.mielczarek1adb1842009-12-21 13:12:20 +000012945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012946 # PIC is the default for these OSes.
12947 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012948 mingw* | cygwin* | os2* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000012949 # This hack is so that the source file can tell whether it is being
12950 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012951 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12952 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012953 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12954 ;;
12955 darwin* | rhapsody*)
12956 # PIC is the default on this platform
12957 # Common symbols not allowed in MH_DYLIB files
12958 lt_prog_compiler_pic_CXX='-fno-common'
12959 ;;
12960 *djgpp*)
12961 # DJGPP does not support shared libraries at all
12962 lt_prog_compiler_pic_CXX=
12963 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012964 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012965 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12966 # Instead, we relocate shared libraries at runtime.
12967 ;;
brynercb91a2f2006-08-25 21:14:45 +000012968 sysv4*MP*)
12969 if test -d /usr/nec; then
12970 lt_prog_compiler_pic_CXX=-Kconform_pic
12971 fi
12972 ;;
12973 hpux*)
jimblandy92b1f832009-12-23 22:23:49 +000012974 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12975 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12976 # sets the default TLS model and affects inlining.
mmentovai8c2a4de2006-09-20 16:20:15 +000012977 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012978 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000012979 ;;
12980 *)
12981 lt_prog_compiler_pic_CXX='-fPIC'
12982 ;;
12983 esac
12984 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012985 *qnx* | *nto*)
12986 # QNX uses GNU C++, but need to define -shared option too, otherwise
12987 # it will coredump.
12988 lt_prog_compiler_pic_CXX='-fPIC -shared'
12989 ;;
brynercb91a2f2006-08-25 21:14:45 +000012990 *)
12991 lt_prog_compiler_pic_CXX='-fPIC'
12992 ;;
12993 esac
12994 else
12995 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012996 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012997 # All AIX code is PIC.
12998 if test "$host_cpu" = ia64; then
12999 # AIX 5 now supports IA64 processor
13000 lt_prog_compiler_static_CXX='-Bstatic'
13001 else
13002 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13003 fi
13004 ;;
13005 chorus*)
13006 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013007 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000013008 # Green Hills C++ Compiler
jimblandy92b1f832009-12-23 22:23:49 +000013009 # _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 +000013010 ;;
13011 esac
13012 ;;
13013 dgux*)
13014 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013015 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000013016 lt_prog_compiler_pic_CXX='-KPIC'
13017 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013018 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000013019 # Green Hills C++ Compiler
13020 lt_prog_compiler_pic_CXX='-pic'
13021 ;;
13022 *)
13023 ;;
13024 esac
13025 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013026 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000013027 # FreeBSD uses GNU C++
13028 ;;
13029 hpux9* | hpux10* | hpux11*)
13030 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013031 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013032 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000013033 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000013034 if test "$host_cpu" != ia64; then
13035 lt_prog_compiler_pic_CXX='+Z'
13036 fi
13037 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013038 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000013039 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000013040 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13041 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013042 hppa*64*|ia64*)
13043 # +Z the default
13044 ;;
13045 *)
13046 lt_prog_compiler_pic_CXX='+Z'
13047 ;;
13048 esac
13049 ;;
13050 *)
13051 ;;
13052 esac
13053 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013054 interix*)
13055 # This is c89, which is MS Visual C++ (no shared libs)
13056 # Anyone wants to do a port?
13057 ;;
brynercb91a2f2006-08-25 21:14:45 +000013058 irix5* | irix6* | nonstopux*)
13059 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013060 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013061 lt_prog_compiler_wl_CXX='-Wl,'
13062 lt_prog_compiler_static_CXX='-non_shared'
13063 # CC pic flag -KPIC is the default.
13064 ;;
13065 *)
13066 ;;
13067 esac
13068 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013069 linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013070 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013071 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013072 # KAI C++ Compiler
13073 lt_prog_compiler_wl_CXX='--backend -Wl,'
13074 lt_prog_compiler_pic_CXX='-fPIC'
13075 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013076 ecpc* )
13077 # old Intel C++ for x86_64 which still supported -KPIC.
brynercb91a2f2006-08-25 21:14:45 +000013078 lt_prog_compiler_wl_CXX='-Wl,'
13079 lt_prog_compiler_pic_CXX='-KPIC'
13080 lt_prog_compiler_static_CXX='-static'
13081 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013082 icpc* )
13083 # Intel C++, used to be incompatible with GCC.
13084 # ICC 10 doesn't accept -KPIC any more.
13085 lt_prog_compiler_wl_CXX='-Wl,'
13086 lt_prog_compiler_pic_CXX='-fPIC'
13087 lt_prog_compiler_static_CXX='-static'
13088 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013089 pgCC* | pgcpp*)
jimblandy92b1f832009-12-23 22:23:49 +000013090 # Portland Group C++ compiler
mmentovai8c2a4de2006-09-20 16:20:15 +000013091 lt_prog_compiler_wl_CXX='-Wl,'
13092 lt_prog_compiler_pic_CXX='-fpic'
13093 lt_prog_compiler_static_CXX='-Bstatic'
13094 ;;
13095 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013096 # Compaq C++
13097 # Make sure the PIC flag is empty. It appears that all Alpha
13098 # Linux and Compaq Tru64 Unix objects are PIC.
13099 lt_prog_compiler_pic_CXX=
13100 lt_prog_compiler_static_CXX='-non_shared'
13101 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013102 xlc* | xlC*)
13103 # IBM XL 8.0 on PPC
13104 lt_prog_compiler_wl_CXX='-Wl,'
13105 lt_prog_compiler_pic_CXX='-qpic'
13106 lt_prog_compiler_static_CXX='-qstaticlink'
13107 ;;
brynercb91a2f2006-08-25 21:14:45 +000013108 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000013109 case `$CC -V 2>&1 | sed 5q` in
13110 *Sun\ C*)
13111 # Sun C++ 5.9
13112 lt_prog_compiler_pic_CXX='-KPIC'
13113 lt_prog_compiler_static_CXX='-Bstatic'
13114 lt_prog_compiler_wl_CXX='-Qoption ld '
13115 ;;
13116 esac
brynercb91a2f2006-08-25 21:14:45 +000013117 ;;
13118 esac
13119 ;;
13120 lynxos*)
13121 ;;
13122 m88k*)
13123 ;;
13124 mvs*)
13125 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013126 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013127 lt_prog_compiler_pic_CXX='-W c,exportall'
13128 ;;
13129 *)
13130 ;;
13131 esac
13132 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013133 netbsd* | netbsdelf*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013134 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013135 *qnx* | *nto*)
13136 # QNX uses GNU C++, but need to define -shared option too, otherwise
13137 # it will coredump.
13138 lt_prog_compiler_pic_CXX='-fPIC -shared'
13139 ;;
brynercb91a2f2006-08-25 21:14:45 +000013140 osf3* | osf4* | osf5*)
13141 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013142 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013143 lt_prog_compiler_wl_CXX='--backend -Wl,'
13144 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013145 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000013146 # Rational C++ 2.4.1
13147 lt_prog_compiler_pic_CXX='-pic'
13148 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013149 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013150 # Digital/Compaq C++
13151 lt_prog_compiler_wl_CXX='-Wl,'
13152 # Make sure the PIC flag is empty. It appears that all Alpha
13153 # Linux and Compaq Tru64 Unix objects are PIC.
13154 lt_prog_compiler_pic_CXX=
13155 lt_prog_compiler_static_CXX='-non_shared'
13156 ;;
13157 *)
13158 ;;
13159 esac
13160 ;;
13161 psos*)
13162 ;;
brynercb91a2f2006-08-25 21:14:45 +000013163 solaris*)
13164 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013165 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013166 # Sun C++ 4.2, 5.x and Centerline C++
13167 lt_prog_compiler_pic_CXX='-KPIC'
13168 lt_prog_compiler_static_CXX='-Bstatic'
13169 lt_prog_compiler_wl_CXX='-Qoption ld '
13170 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013171 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000013172 # Green Hills C++ Compiler
13173 lt_prog_compiler_pic_CXX='-PIC'
13174 ;;
13175 *)
13176 ;;
13177 esac
13178 ;;
13179 sunos4*)
13180 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013181 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013182 # Sun C++ 4.x
13183 lt_prog_compiler_pic_CXX='-pic'
13184 lt_prog_compiler_static_CXX='-Bstatic'
13185 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013186 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000013187 # Lucid
13188 lt_prog_compiler_pic_CXX='-pic'
13189 ;;
13190 *)
13191 ;;
13192 esac
13193 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13195 case $cc_basename in
13196 CC*)
13197 lt_prog_compiler_wl_CXX='-Wl,'
13198 lt_prog_compiler_pic_CXX='-KPIC'
13199 lt_prog_compiler_static_CXX='-Bstatic'
13200 ;;
13201 esac
13202 ;;
brynercb91a2f2006-08-25 21:14:45 +000013203 tandem*)
13204 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013205 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000013206 # NonStop-UX NCC 3.20
13207 lt_prog_compiler_pic_CXX='-KPIC'
13208 ;;
13209 *)
13210 ;;
13211 esac
13212 ;;
brynercb91a2f2006-08-25 21:14:45 +000013213 vxworks*)
13214 ;;
13215 *)
13216 lt_prog_compiler_can_build_shared_CXX=no
13217 ;;
13218 esac
13219 fi
13220
jimblandy92b1f832009-12-23 22:23:49 +000013221case $host_os in
13222 # For platforms which do not support PIC, -DPIC is meaningless:
13223 *djgpp*)
13224 lt_prog_compiler_pic_CXX=
13225 ;;
13226 *)
13227 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13228 ;;
13229esac
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13231$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13232
13233
brynercb91a2f2006-08-25 21:14:45 +000013234
13235#
13236# Check to make sure the PIC flag actually works.
13237#
13238if test -n "$lt_prog_compiler_pic_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +000013239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13240$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13241if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13242 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013243else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013244 lt_cv_prog_compiler_pic_works_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013245 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000013246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013247 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13248 # Insert the option either (1) after the last *FLAGS variable, or
13249 # (2) before a word containing "conftest.", or (3) at the end.
13250 # Note that $ac_compile itself does not contain backslashes and begins
13251 # with a dollar sign (not a hyphen), so the echo should work correctly.
13252 # The option is referenced via a variable to avoid confusing sed.
13253 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13256 -e 's:$: $lt_compiler_flag:'`
ted.mielczareke574a2a2010-10-05 19:38:22 +000013257 (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013258 (eval "$lt_compile" 2>conftest.err)
13259 ac_status=$?
13260 cat conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +000013261 echo "$as_me:13261: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013262 if (exit $ac_status) && test -s "$ac_outfile"; then
13263 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013264 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +000013265 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013268 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000013269 fi
13270 fi
jimblandy92b1f832009-12-23 22:23:49 +000013271 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013272
13273fi
jimblandy92b1f832009-12-23 22:23:49 +000013274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13275$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013276
ted.mielczarek1adb1842009-12-21 13:12:20 +000013277if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000013278 case $lt_prog_compiler_pic_CXX in
13279 "" | " "*) ;;
13280 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13281 esac
13282else
13283 lt_prog_compiler_pic_CXX=
13284 lt_prog_compiler_can_build_shared_CXX=no
13285fi
13286
13287fi
jimblandy92b1f832009-12-23 22:23:49 +000013288
13289
brynercb91a2f2006-08-25 21:14:45 +000013290
mmentovai8c2a4de2006-09-20 16:20:15 +000013291#
13292# Check to make sure the static flag actually works.
13293#
13294wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
jimblandy92b1f832009-12-23 22:23:49 +000013295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13296$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13297if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13298 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +000013299else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013300 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013301 save_LDFLAGS="$LDFLAGS"
13302 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000013303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000013304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13305 # The linker can only warn and ignore the option if not recognized
13306 # So say no if there are warnings
13307 if test -s conftest.err; then
13308 # Append any errors to the config.log.
13309 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +000013310 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13312 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013313 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013314 fi
13315 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013316 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013317 fi
13318 fi
jimblandy92b1f832009-12-23 22:23:49 +000013319 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000013320 LDFLAGS="$save_LDFLAGS"
13321
13322fi
jimblandy92b1f832009-12-23 22:23:49 +000013323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13324$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000013325
ted.mielczarek1adb1842009-12-21 13:12:20 +000013326if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013327 :
13328else
13329 lt_prog_compiler_static_CXX=
13330fi
13331
13332
jimblandy92b1f832009-12-23 22:23:49 +000013333
13334
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13336$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13337if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013339else
13340 lt_cv_prog_compiler_c_o_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013341 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000013342 mkdir conftest
13343 cd conftest
13344 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000013345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013346
13347 lt_compiler_flag="-o out/conftest2.$ac_objext"
13348 # Insert the option either (1) after the last *FLAGS variable, or
13349 # (2) before a word containing "conftest.", or (3) at the end.
13350 # Note that $ac_compile itself does not contain backslashes and begins
13351 # with a dollar sign (not a hyphen), so the echo should work correctly.
13352 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13355 -e 's:$: $lt_compiler_flag:'`
ted.mielczareke574a2a2010-10-05 19:38:22 +000013356 (eval echo "\"\$as_me:13356: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013357 (eval "$lt_compile" 2>out/conftest.err)
13358 ac_status=$?
13359 cat out/conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +000013360 echo "$as_me:13360: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13362 then
13363 # The compiler can only warn and ignore the option if not recognized
13364 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +000013365 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013368 lt_cv_prog_compiler_c_o_CXX=yes
13369 fi
13370 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013371 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +000013372 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013373 # SGI C++ compiler will create directory out/ii_files/ for
13374 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +000013375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13376 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +000013377 cd ..
jimblandy92b1f832009-12-23 22:23:49 +000013378 $RM -r conftest
13379 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013380
13381fi
jimblandy92b1f832009-12-23 22:23:49 +000013382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13383$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13384
13385
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13388$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13389if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391else
13392 lt_cv_prog_compiler_c_o_CXX=no
13393 $RM -r conftest 2>/dev/null
13394 mkdir conftest
13395 cd conftest
13396 mkdir out
13397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13398
13399 lt_compiler_flag="-o out/conftest2.$ac_objext"
13400 # Insert the option either (1) after the last *FLAGS variable, or
13401 # (2) before a word containing "conftest.", or (3) at the end.
13402 # Note that $ac_compile itself does not contain backslashes and begins
13403 # with a dollar sign (not a hyphen), so the echo should work correctly.
13404 lt_compile=`echo "$ac_compile" | $SED \
13405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13407 -e 's:$: $lt_compiler_flag:'`
ted.mielczareke574a2a2010-10-05 19:38:22 +000013408 (eval echo "\"\$as_me:13408: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +000013409 (eval "$lt_compile" 2>out/conftest.err)
13410 ac_status=$?
13411 cat out/conftest.err >&5
ted.mielczareke574a2a2010-10-05 19:38:22 +000013412 echo "$as_me:13412: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +000013413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13414 then
13415 # The compiler can only warn and ignore the option if not recognized
13416 # So say no if there are warnings
13417 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13420 lt_cv_prog_compiler_c_o_CXX=yes
13421 fi
13422 fi
13423 chmod u+w . 2>&5
13424 $RM conftest*
13425 # SGI C++ compiler will create directory out/ii_files/ for
13426 # template instantiation
13427 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13428 $RM out/* && rmdir out
13429 cd ..
13430 $RM -r conftest
13431 $RM conftest*
13432
13433fi
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13435$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13436
13437
brynercb91a2f2006-08-25 21:14:45 +000013438
13439
13440hard_links="nottested"
13441if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13442 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +000013443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13444$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013445 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +000013446 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13448 touch conftest.a
13449 ln conftest.a conftest.b 2>&5 || hard_links=no
13450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +000013451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13452$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013453 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +000013454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13455$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000013456 need_locks=warn
13457 fi
13458else
13459 need_locks=no
13460fi
13461
jimblandy92b1f832009-12-23 22:23:49 +000013462
13463
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013466
13467 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13468 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000013469 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013470 # If we're using GNU nm, then we don't want the "-C" option.
13471 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +000013472 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13473 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 +000013474 else
jimblandy92b1f832009-12-23 22:23:49 +000013475 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 +000013476 fi
13477 ;;
13478 pw32*)
13479 export_symbols_cmds_CXX="$ltdll_cmds"
13480 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013481 cygwin* | mingw* | cegcc*)
13482 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'
13483 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013484 linux* | k*bsd*-gnu)
13485 link_all_deplibs_CXX=no
13486 ;;
brynercb91a2f2006-08-25 21:14:45 +000013487 *)
13488 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13489 ;;
13490 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000013491 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000013492
jimblandy92b1f832009-12-23 22:23:49 +000013493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13494$as_echo "$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013495test "$ld_shlibs_CXX" = no && can_build_shared=no
13496
jimblandy92b1f832009-12-23 22:23:49 +000013497with_gnu_ld_CXX=$with_gnu_ld
13498
13499
13500
13501
13502
13503
brynercb91a2f2006-08-25 21:14:45 +000013504#
13505# Do we need to explicitly link libc?
13506#
13507case "x$archive_cmds_need_lc_CXX" in
13508x|xyes)
13509 # Assume -lc should be added
13510 archive_cmds_need_lc_CXX=yes
13511
13512 if test "$enable_shared" = yes && test "$GCC" = yes; then
13513 case $archive_cmds_CXX in
13514 *'~'*)
13515 # FIXME: we may have to deal with multi-command sequences.
13516 ;;
13517 '$CC '*)
13518 # Test whether the compiler implicitly links with -lc since on some
13519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13520 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +000013521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13522$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13523 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000013524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013525
jimblandy92b1f832009-12-23 22:23:49 +000013526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000013527 (eval $ac_compile) 2>&5
13528 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13530 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013531 soname=conftest
13532 lib=conftest
13533 libobjs=conftest.$ac_objext
13534 deplibs=
13535 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000013536 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000013537 compiler_flags=-v
13538 linker_flags=-v
13539 verstring=
13540 output_objdir=.
13541 libname=conftest
13542 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13543 allow_undefined_flag_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000013544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13545 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013546 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +000013549 then
13550 archive_cmds_need_lc_CXX=no
13551 else
13552 archive_cmds_need_lc_CXX=yes
13553 fi
13554 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13555 else
13556 cat conftest.err 1>&5
13557 fi
jimblandy92b1f832009-12-23 22:23:49 +000013558 $RM conftest*
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13560$as_echo "$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013561 ;;
13562 esac
13563 fi
13564 ;;
13565esac
13566
jimblandy92b1f832009-12-23 22:23:49 +000013567
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
13627
13628
13629
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13631$as_echo_n "checking dynamic linker characteristics... " >&6; }
13632
brynercb91a2f2006-08-25 21:14:45 +000013633library_names_spec=
13634libname_spec='lib$name'
13635soname_spec=
13636shrext_cmds=".so"
13637postinstall_cmds=
13638postuninstall_cmds=
13639finish_cmds=
13640finish_eval=
13641shlibpath_var=
13642shlibpath_overrides_runpath=unknown
13643version_type=none
13644dynamic_linker="$host_os ld.so"
13645sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013646need_lib_prefix=unknown
13647hardcode_into_libs=no
13648
13649# when you set need_version to no, make sure it does not cause -set_version
13650# flags to be left without arguments
13651need_version=unknown
13652
13653case $host_os in
13654aix3*)
13655 version_type=linux
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13657 shlibpath_var=LIBPATH
13658
13659 # AIX 3 has no versioning support, so we append a major version to the name.
13660 soname_spec='${libname}${release}${shared_ext}$major'
13661 ;;
13662
ted.mielczarek1adb1842009-12-21 13:12:20 +000013663aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013664 version_type=linux
13665 need_lib_prefix=no
13666 need_version=no
13667 hardcode_into_libs=yes
13668 if test "$host_cpu" = ia64; then
13669 # AIX 5 supports IA64
13670 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13671 shlibpath_var=LD_LIBRARY_PATH
13672 else
13673 # With GCC up to 2.95.x, collect2 would create an import file
13674 # for dependence libraries. The import file would start with
13675 # the line `#! .'. This would cause the generated library to
13676 # depend on `.', always an invalid library. This was fixed in
13677 # development snapshots of GCC prior to 3.0.
13678 case $host_os in
13679 aix4 | aix4.[01] | aix4.[01].*)
13680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13681 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000013682 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013683 :
13684 else
13685 can_build_shared=no
13686 fi
13687 ;;
13688 esac
13689 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13690 # soname into executable. Probably we can add versioning support to
13691 # collect2, so additional links can be useful in future.
13692 if test "$aix_use_runtimelinking" = yes; then
13693 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13694 # instead of lib<name>.a to let people know that these are not
13695 # typical AIX shared libraries.
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697 else
13698 # We preserve .a as extension for shared libraries through AIX4.2
13699 # and later when we are not doing run time linking.
13700 library_names_spec='${libname}${release}.a $libname.a'
13701 soname_spec='${libname}${release}${shared_ext}$major'
13702 fi
13703 shlibpath_var=LIBPATH
13704 fi
13705 ;;
13706
13707amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000013708 case $host_cpu in
13709 powerpc)
13710 # Since July 2007 AmigaOS4 officially supports .so libraries.
13711 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713 ;;
13714 m68k)
13715 library_names_spec='$libname.ixlibrary $libname.a'
13716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13717 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'
13718 ;;
13719 esac
brynercb91a2f2006-08-25 21:14:45 +000013720 ;;
13721
13722beos*)
13723 library_names_spec='${libname}${shared_ext}'
13724 dynamic_linker="$host_os ld.so"
13725 shlibpath_var=LIBRARY_PATH
13726 ;;
13727
mmentovai8c2a4de2006-09-20 16:20:15 +000013728bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013729 version_type=linux
13730 need_version=no
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 soname_spec='${libname}${release}${shared_ext}$major'
13733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13737 # the default ld.so.conf also contains /usr/contrib/lib and
13738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13739 # libtool to hard-code these into programs
13740 ;;
13741
jimblandy92b1f832009-12-23 22:23:49 +000013742cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013743 version_type=windows
13744 shrext_cmds=".dll"
13745 need_version=no
13746 need_lib_prefix=no
13747
13748 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013749 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013750 library_names_spec='$libname.dll.a'
13751 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13752 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000013753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000013754 dldir=$destdir/`dirname \$dlpath`~
13755 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013756 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000013757 chmod a+x \$dldir/$dlname~
13758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13760 fi'
brynercb91a2f2006-08-25 21:14:45 +000013761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13762 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000013763 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000013764 shlibpath_overrides_runpath=yes
13765
13766 case $host_os in
13767 cygwin*)
13768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13771 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013772 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013773 # MinGW DLLs use traditional 'lib' prefix
13774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000013775 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13776 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013777 # It is most probably a Windows format PATH printed by
13778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13779 # path with ; separators, and with drive letters. We can handle the
13780 # drive letters (cygwin fileutils understands them), so leave them,
13781 # especially as we might pass files found there to a mingw objdump,
13782 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000013783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000013784 else
jimblandy92b1f832009-12-23 22:23:49 +000013785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000013786 fi
13787 ;;
13788 pw32*)
13789 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013790 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 +000013791 ;;
13792 esac
13793 ;;
13794
13795 *)
13796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13797 ;;
13798 esac
13799 dynamic_linker='Win32 ld.exe'
13800 # FIXME: first we should search . and the directory the executable is in
13801 shlibpath_var=PATH
13802 ;;
13803
13804darwin* | rhapsody*)
13805 dynamic_linker="$host_os dyld"
13806 version_type=darwin
13807 need_lib_prefix=no
13808 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013809 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000013810 soname_spec='${libname}${release}${major}$shared_ext'
13811 shlibpath_overrides_runpath=yes
13812 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013813 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013814
brynercb91a2f2006-08-25 21:14:45 +000013815 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13816 ;;
13817
13818dgux*)
13819 version_type=linux
13820 need_lib_prefix=no
13821 need_version=no
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13823 soname_spec='${libname}${release}${shared_ext}$major'
13824 shlibpath_var=LD_LIBRARY_PATH
13825 ;;
13826
13827freebsd1*)
13828 dynamic_linker=no
13829 ;;
13830
mmentovai8c2a4de2006-09-20 16:20:15 +000013831freebsd* | dragonfly*)
13832 # DragonFly does not have aout. When/if they implement a new
13833 # versioning mechanism, adjust this.
13834 if test -x /usr/bin/objformat; then
13835 objformat=`/usr/bin/objformat`
13836 else
13837 case $host_os in
13838 freebsd[123]*) objformat=aout ;;
13839 *) objformat=elf ;;
13840 esac
13841 fi
brynercb91a2f2006-08-25 21:14:45 +000013842 version_type=freebsd-$objformat
13843 case $version_type in
13844 freebsd-elf*)
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13846 need_version=no
13847 need_lib_prefix=no
13848 ;;
13849 freebsd-*)
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13851 need_version=yes
13852 ;;
13853 esac
13854 shlibpath_var=LD_LIBRARY_PATH
13855 case $host_os in
13856 freebsd2*)
13857 shlibpath_overrides_runpath=yes
13858 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013859 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013860 shlibpath_overrides_runpath=yes
13861 hardcode_into_libs=yes
13862 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013865 shlibpath_overrides_runpath=no
13866 hardcode_into_libs=yes
13867 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013868 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013869 shlibpath_overrides_runpath=yes
13870 hardcode_into_libs=yes
13871 ;;
brynercb91a2f2006-08-25 21:14:45 +000013872 esac
13873 ;;
13874
13875gnu*)
13876 version_type=linux
13877 need_lib_prefix=no
13878 need_version=no
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13880 soname_spec='${libname}${release}${shared_ext}$major'
13881 shlibpath_var=LD_LIBRARY_PATH
13882 hardcode_into_libs=yes
13883 ;;
13884
13885hpux9* | hpux10* | hpux11*)
13886 # Give a soname corresponding to the major version so that dld.sl refuses to
13887 # link against other versions.
13888 version_type=sunos
13889 need_lib_prefix=no
13890 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013891 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013892 ia64*)
13893 shrext_cmds='.so'
13894 hardcode_into_libs=yes
13895 dynamic_linker="$host_os dld.so"
13896 shlibpath_var=LD_LIBRARY_PATH
13897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899 soname_spec='${libname}${release}${shared_ext}$major'
13900 if test "X$HPUX_IA64_MODE" = X32; then
13901 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13902 else
13903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13904 fi
13905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13906 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013907 hppa*64*)
13908 shrext_cmds='.sl'
13909 hardcode_into_libs=yes
13910 dynamic_linker="$host_os dld.sl"
13911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13917 ;;
13918 *)
brynercb91a2f2006-08-25 21:14:45 +000013919 shrext_cmds='.sl'
13920 dynamic_linker="$host_os dld.sl"
13921 shlibpath_var=SHLIB_PATH
13922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 ;;
13926 esac
13927 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13928 postinstall_cmds='chmod 555 $lib'
13929 ;;
13930
ted.mielczarek1adb1842009-12-21 13:12:20 +000013931interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013932 version_type=linux
13933 need_lib_prefix=no
13934 need_version=no
13935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13936 soname_spec='${libname}${release}${shared_ext}$major'
13937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 shlibpath_overrides_runpath=no
13940 hardcode_into_libs=yes
13941 ;;
13942
brynercb91a2f2006-08-25 21:14:45 +000013943irix5* | irix6* | nonstopux*)
13944 case $host_os in
13945 nonstopux*) version_type=nonstopux ;;
13946 *)
13947 if test "$lt_cv_prog_gnu_ld" = yes; then
13948 version_type=linux
13949 else
13950 version_type=irix
13951 fi ;;
13952 esac
13953 need_lib_prefix=no
13954 need_version=no
13955 soname_spec='${libname}${release}${shared_ext}$major'
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13957 case $host_os in
13958 irix5* | nonstopux*)
13959 libsuff= shlibsuff=
13960 ;;
13961 *)
13962 case $LD in # libtool.m4 will add one of these switches to LD
13963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13964 libsuff= shlibsuff= libmagic=32-bit;;
13965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13966 libsuff=32 shlibsuff=N32 libmagic=N32;;
13967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13969 *) libsuff= shlibsuff= libmagic=never-match;;
13970 esac
13971 ;;
13972 esac
13973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13974 shlibpath_overrides_runpath=no
13975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13977 hardcode_into_libs=yes
13978 ;;
13979
13980# No shared lib support for Linux oldld, aout, or coff.
13981linux*oldld* | linux*aout* | linux*coff*)
13982 dynamic_linker=no
13983 ;;
13984
13985# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000013986linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013987 version_type=linux
13988 need_lib_prefix=no
13989 need_version=no
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13991 soname_spec='${libname}${release}${shared_ext}$major'
13992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13993 shlibpath_var=LD_LIBRARY_PATH
13994 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000013995 # Some binutils ld are patched to set DT_RUNPATH
13996 save_LDFLAGS=$LDFLAGS
13997 save_libdir=$libdir
13998 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13999 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001/* end confdefs.h. */
14002
14003int
14004main ()
14005{
14006
14007 ;
14008 return 0;
14009}
14010_ACEOF
14011if ac_fn_cxx_try_link "$LINENO"; then :
14012 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14013 shlibpath_overrides_runpath=yes
14014fi
14015fi
14016rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LDFLAGS=$save_LDFLAGS
14019 libdir=$save_libdir
14020
brynercb91a2f2006-08-25 21:14:45 +000014021 # This implies no fast_install, which is unacceptable.
14022 # Some rework will be needed to allow for fast_install
14023 # before this can be enabled.
14024 hardcode_into_libs=yes
14025
14026 # Append ld.so.conf contents to the search path
14027 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000014028 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 +000014029 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14030 fi
14031
14032 # We used to test for /lib/ld.so.1 and disable shared libraries on
14033 # powerpc, because MkLinux only supported shared libraries with the
14034 # GNU dynamic linker. Since this was broken with cross compilers,
14035 # most powerpc-linux boxes support dynamic linking these days and
14036 # people can always --disable-shared, the test was removed, and we
14037 # assume the GNU/Linux dynamic linker is in use.
14038 dynamic_linker='GNU/Linux ld.so'
14039 ;;
14040
ted.mielczarekb2236272010-04-08 23:06:23 +000014041netbsdelf*-gnu)
14042 version_type=linux
14043 need_lib_prefix=no
14044 need_version=no
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14046 soname_spec='${libname}${release}${shared_ext}$major'
14047 shlibpath_var=LD_LIBRARY_PATH
14048 shlibpath_overrides_runpath=no
14049 hardcode_into_libs=yes
14050 dynamic_linker='NetBSD ld.elf_so'
14051 ;;
14052
brynercb91a2f2006-08-25 21:14:45 +000014053netbsd*)
14054 version_type=sunos
14055 need_lib_prefix=no
14056 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000014057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14060 dynamic_linker='NetBSD (a.out) ld.so'
14061 else
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 dynamic_linker='NetBSD ld.elf_so'
14065 fi
14066 shlibpath_var=LD_LIBRARY_PATH
14067 shlibpath_overrides_runpath=yes
14068 hardcode_into_libs=yes
14069 ;;
14070
14071newsos6)
14072 version_type=linux
14073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=yes
14076 ;;
14077
jimblandy92b1f832009-12-23 22:23:49 +000014078*nto* | *qnx*)
14079 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000014080 need_lib_prefix=no
14081 need_version=no
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014085 shlibpath_overrides_runpath=no
14086 hardcode_into_libs=yes
14087 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000014088 ;;
14089
14090openbsd*)
14091 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000014092 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000014093 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14095 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000014096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14097 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014098 esac
brynercb91a2f2006-08-25 21:14:45 +000014099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14101 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000014103 case $host_os in
14104 openbsd2.[89] | openbsd2.[89].*)
14105 shlibpath_overrides_runpath=no
14106 ;;
14107 *)
14108 shlibpath_overrides_runpath=yes
14109 ;;
14110 esac
14111 else
14112 shlibpath_overrides_runpath=yes
14113 fi
14114 ;;
14115
14116os2*)
14117 libname_spec='$name'
14118 shrext_cmds=".dll"
14119 need_lib_prefix=no
14120 library_names_spec='$libname${shared_ext} $libname.a'
14121 dynamic_linker='OS/2 ld.exe'
14122 shlibpath_var=LIBPATH
14123 ;;
14124
14125osf3* | osf4* | osf5*)
14126 version_type=osf
14127 need_lib_prefix=no
14128 need_version=no
14129 soname_spec='${libname}${release}${shared_ext}$major'
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14134 ;;
14135
ted.mielczarek1adb1842009-12-21 13:12:20 +000014136rdos*)
14137 dynamic_linker=no
14138 ;;
14139
brynercb91a2f2006-08-25 21:14:45 +000014140solaris*)
14141 version_type=linux
14142 need_lib_prefix=no
14143 need_version=no
14144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 soname_spec='${libname}${release}${shared_ext}$major'
14146 shlibpath_var=LD_LIBRARY_PATH
14147 shlibpath_overrides_runpath=yes
14148 hardcode_into_libs=yes
14149 # ldd complains unless libraries are executable
14150 postinstall_cmds='chmod +x $lib'
14151 ;;
14152
14153sunos4*)
14154 version_type=sunos
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14156 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14157 shlibpath_var=LD_LIBRARY_PATH
14158 shlibpath_overrides_runpath=yes
14159 if test "$with_gnu_ld" = yes; then
14160 need_lib_prefix=no
14161 fi
14162 need_version=yes
14163 ;;
14164
mmentovai8c2a4de2006-09-20 16:20:15 +000014165sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014166 version_type=linux
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 case $host_vendor in
14171 sni)
14172 shlibpath_overrides_runpath=no
14173 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000014174 runpath_var=LD_RUN_PATH
14175 ;;
14176 siemens)
14177 need_lib_prefix=no
14178 ;;
14179 motorola)
14180 need_lib_prefix=no
14181 need_version=no
14182 shlibpath_overrides_runpath=no
14183 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14184 ;;
14185 esac
14186 ;;
14187
14188sysv4*MP*)
14189 if test -d /usr/nec ;then
14190 version_type=linux
14191 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14192 soname_spec='$libname${shared_ext}.$major'
14193 shlibpath_var=LD_LIBRARY_PATH
14194 fi
14195 ;;
14196
mmentovai8c2a4de2006-09-20 16:20:15 +000014197sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14198 version_type=freebsd-elf
14199 need_lib_prefix=no
14200 need_version=no
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14203 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014204 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014205 hardcode_into_libs=yes
14206 if test "$with_gnu_ld" = yes; then
14207 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014208 else
14209 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014210 case $host_os in
14211 sco3.2v5*)
14212 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14213 ;;
14214 esac
14215 fi
14216 sys_lib_dlsearch_path_spec='/usr/lib'
14217 ;;
14218
jimblandy92b1f832009-12-23 22:23:49 +000014219tpf*)
14220 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14221 version_type=linux
14222 need_lib_prefix=no
14223 need_version=no
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 shlibpath_overrides_runpath=no
14227 hardcode_into_libs=yes
14228 ;;
14229
brynercb91a2f2006-08-25 21:14:45 +000014230uts4*)
14231 version_type=linux
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 ;;
14236
14237*)
14238 dynamic_linker=no
14239 ;;
14240esac
jimblandy92b1f832009-12-23 22:23:49 +000014241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14242$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014243test "$dynamic_linker" = no && can_build_shared=no
14244
mmentovai8c2a4de2006-09-20 16:20:15 +000014245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14246if test "$GCC" = yes; then
14247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14248fi
14249
jimblandy92b1f832009-12-23 22:23:49 +000014250if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14251 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14252fi
14253if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14254 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14255fi
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
14289
14290
14291
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14293$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014294hardcode_action_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000014295if test -n "$hardcode_libdir_flag_spec_CXX" ||
14296 test -n "$runpath_var_CXX" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000014297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014298
jimblandy92b1f832009-12-23 22:23:49 +000014299 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000014300 if test "$hardcode_direct_CXX" != no &&
14301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14302 # have to relink, otherwise we might link with an installed library
14303 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000014304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
brynercb91a2f2006-08-25 21:14:45 +000014305 test "$hardcode_minus_L_CXX" != no; then
14306 # Linking always hardcodes the temporary library directory.
14307 hardcode_action_CXX=relink
14308 else
14309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14310 hardcode_action_CXX=immediate
14311 fi
14312else
14313 # We cannot hardcode anything, or else we can only hardcode existing
14314 # directories.
14315 hardcode_action_CXX=unsupported
14316fi
jimblandy92b1f832009-12-23 22:23:49 +000014317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14318$as_echo "$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014319
jimblandy92b1f832009-12-23 22:23:49 +000014320if test "$hardcode_action_CXX" = relink ||
14321 test "$inherit_rpath_CXX" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014322 # Fast installation is not supported
14323 enable_fast_install=no
14324elif test "$shlibpath_overrides_runpath" = yes ||
14325 test "$enable_shared" = no; then
14326 # Fast installation is not necessary
14327 enable_fast_install=needless
14328fi
14329
brynercb91a2f2006-08-25 21:14:45 +000014330
brynercb91a2f2006-08-25 21:14:45 +000014331
brynercb91a2f2006-08-25 21:14:45 +000014332
brynercb91a2f2006-08-25 21:14:45 +000014333
brynercb91a2f2006-08-25 21:14:45 +000014334
brynercb91a2f2006-08-25 21:14:45 +000014335
jimblandy92b1f832009-12-23 22:23:49 +000014336 fi # test -n "$compiler"
brynercb91a2f2006-08-25 21:14:45 +000014337
jimblandy92b1f832009-12-23 22:23:49 +000014338 CC=$lt_save_CC
14339 LDCXX=$LD
14340 LD=$lt_save_LD
14341 GCC=$lt_save_GCC
14342 with_gnu_ld=$lt_save_with_gnu_ld
14343 lt_cv_path_LDCXX=$lt_cv_path_LD
14344 lt_cv_path_LD=$lt_save_path_LD
14345 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14346 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14347fi # test "$_lt_caught_CXX_error" != yes
brynercb91a2f2006-08-25 21:14:45 +000014348
14349ac_ext=c
14350ac_cpp='$CPP $CPPFLAGS'
14351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14353ac_compiler_gnu=$ac_cv_c_compiler_gnu
14354
brynercb91a2f2006-08-25 21:14:45 +000014355
14356
brynercb91a2f2006-08-25 21:14:45 +000014357
14358
mmentovai8c2a4de2006-09-20 16:20:15 +000014359
14360
brynercb91a2f2006-08-25 21:14:45 +000014361
brynercb91a2f2006-08-25 21:14:45 +000014362
mmentovai8c2a4de2006-09-20 16:20:15 +000014363
brynercb91a2f2006-08-25 21:14:45 +000014364
brynercb91a2f2006-08-25 21:14:45 +000014365
brynerd5e66382006-09-08 02:35:53 +000014366
jimblandy92b1f832009-12-23 22:23:49 +000014367 ac_config_commands="$ac_config_commands libtool"
brynercb91a2f2006-08-25 21:14:45 +000014368
brynercb91a2f2006-08-25 21:14:45 +000014369
brynercb91a2f2006-08-25 21:14:45 +000014370
brynercb91a2f2006-08-25 21:14:45 +000014371
jimblandy92b1f832009-12-23 22:23:49 +000014372# Only expand once:
brynercb91a2f2006-08-25 21:14:45 +000014373
brynercb91a2f2006-08-25 21:14:45 +000014374
brynercb91a2f2006-08-25 21:14:45 +000014375
brynercb91a2f2006-08-25 21:14:45 +000014376
jimblandy92b1f832009-12-23 22:23:49 +000014377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14378$as_echo_n "checking for ANSI C header files... " >&6; }
14379if test "${ac_cv_header_stdc+set}" = set; then :
14380 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000014381else
jimblandy92b1f832009-12-23 22:23:49 +000014382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014383/* end confdefs.h. */
14384#include <stdlib.h>
14385#include <stdarg.h>
14386#include <string.h>
14387#include <float.h>
14388
14389int
14390main ()
14391{
14392
14393 ;
14394 return 0;
14395}
14396_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014397if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000014398 ac_cv_header_stdc=yes
14399else
jimblandy92b1f832009-12-23 22:23:49 +000014400 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014401fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014403
14404if test $ac_cv_header_stdc = yes; then
14405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014407/* end confdefs.h. */
14408#include <string.h>
14409
14410_ACEOF
14411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014412 $EGREP "memchr" >/dev/null 2>&1; then :
14413
brynercb91a2f2006-08-25 21:14:45 +000014414else
14415 ac_cv_header_stdc=no
14416fi
14417rm -f conftest*
14418
14419fi
14420
14421if test $ac_cv_header_stdc = yes; then
14422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014424/* end confdefs.h. */
14425#include <stdlib.h>
14426
14427_ACEOF
14428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014429 $EGREP "free" >/dev/null 2>&1; then :
14430
brynercb91a2f2006-08-25 21:14:45 +000014431else
14432 ac_cv_header_stdc=no
14433fi
14434rm -f conftest*
14435
14436fi
14437
14438if test $ac_cv_header_stdc = yes; then
14439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +000014440 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +000014441 :
14442else
jimblandy92b1f832009-12-23 22:23:49 +000014443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014444/* end confdefs.h. */
14445#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000014446#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000014447#if ((' ' & 0x0FF) == 0x020)
14448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14450#else
14451# define ISLOWER(c) \
14452 (('a' <= (c) && (c) <= 'i') \
14453 || ('j' <= (c) && (c) <= 'r') \
14454 || ('s' <= (c) && (c) <= 'z'))
14455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14456#endif
14457
14458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14459int
14460main ()
14461{
14462 int i;
14463 for (i = 0; i < 256; i++)
14464 if (XOR (islower (i), ISLOWER (i))
14465 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000014466 return 2;
14467 return 0;
brynercb91a2f2006-08-25 21:14:45 +000014468}
14469_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014470if ac_fn_c_try_run "$LINENO"; then :
14471
brynercb91a2f2006-08-25 21:14:45 +000014472else
jimblandy92b1f832009-12-23 22:23:49 +000014473 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014474fi
jimblandy92b1f832009-12-23 22:23:49 +000014475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14476 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014477fi
14478
brynercb91a2f2006-08-25 21:14:45 +000014479fi
14480fi
jimblandy92b1f832009-12-23 22:23:49 +000014481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14482$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014483if test $ac_cv_header_stdc = yes; then
14484
jimblandy92b1f832009-12-23 22:23:49 +000014485$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +000014486
14487fi
14488
nealsidde545c02010-03-02 00:39:48 +000014489# ===========================================================================
14490# http://www.nongnu.org/autoconf-archive/ax_pthread.html
14491# ===========================================================================
14492#
14493# SYNOPSIS
14494#
14495# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
14496#
14497# DESCRIPTION
14498#
14499# This macro figures out how to build C programs using POSIX threads. It
14500# sets the PTHREAD_LIBS output variable to the threads library and linker
14501# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
14502# flags that are needed. (The user can also force certain compiler
14503# flags/libs to be tested by setting these environment variables.)
14504#
14505# Also sets PTHREAD_CC to any special C compiler that is needed for
14506# multi-threaded programs (defaults to the value of CC otherwise). (This
14507# is necessary on AIX to use the special cc_r compiler alias.)
14508#
14509# NOTE: You are assumed to not only compile your program with these flags,
14510# but also link it with them as well. e.g. you should link with
14511# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
14512#
14513# If you are only building threads programs, you may wish to use these
14514# variables in your default LIBS, CFLAGS, and CC:
14515#
14516# LIBS="$PTHREAD_LIBS $LIBS"
14517# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14518# CC="$PTHREAD_CC"
14519#
14520# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
14521# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
14522# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
14523#
14524# ACTION-IF-FOUND is a list of shell commands to run if a threads library
14525# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
14526# is not found. If ACTION-IF-FOUND is not specified, the default action
14527# will define HAVE_PTHREAD.
14528#
14529# Please let the authors know if this macro fails on any platform, or if
14530# you have any other suggestions or comments. This macro was based on work
14531# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
14532# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
14533# Alejandro Forero Cuervo to the autoconf macro repository. We are also
14534# grateful for the helpful feedback of numerous users.
14535#
14536# LICENSE
14537#
14538# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
14539#
14540# This program is free software: you can redistribute it and/or modify it
14541# under the terms of the GNU General Public License as published by the
14542# Free Software Foundation, either version 3 of the License, or (at your
14543# option) any later version.
14544#
14545# This program is distributed in the hope that it will be useful, but
14546# WITHOUT ANY WARRANTY; without even the implied warranty of
14547# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14548# Public License for more details.
14549#
14550# You should have received a copy of the GNU General Public License along
14551# with this program. If not, see <http://www.gnu.org/licenses/>.
14552#
14553# As a special exception, the respective Autoconf Macro's copyright owner
14554# gives unlimited permission to copy, distribute and modify the configure
14555# scripts that are the output of Autoconf when processing the Macro. You
14556# need not follow the terms of the GNU General Public License when using
14557# or distributing such scripts, even though portions of the text of the
14558# Macro appear in them. The GNU General Public License (GPL) does govern
14559# all other use of the material that constitutes the Autoconf Macro.
14560#
14561# This special exception to the GPL applies to versions of the Autoconf
14562# Macro released by the Autoconf Archive. When you make and distribute a
14563# modified version of the Autoconf Macro, you may extend this special
14564# exception to the GPL to apply to your modified version as well.
14565
14566#serial 6
14567
14568# This is what autoupdate's m4 run will expand. It fires
14569# the warning (with _au_warn_XXX), outputs it into the
14570# updated configure.ac (with AC_DIAGNOSE), and then outputs
14571# the replacement expansion.
14572
14573
14574# This is an auxiliary macro that is also run when
14575# autoupdate runs m4. It simply calls m4_warning, but
14576# we need a wrapper so that each warning is emitted only
14577# once. We break the quoting in m4_warning's argument in
14578# order to expand this macro's arguments, not AU_DEFUN's.
14579
14580
14581# Finally, this is the expansion that is picked up by
14582# autoconf. It tells the user to run autoupdate, and
14583# then outputs the replacement expansion. We do not care
14584# about autoupdate's warning because that contains
14585# information on what to do *after* running autoupdate.
14586
14587
14588
14589
14590ac_ext=c
14591ac_cpp='$CPP $CPPFLAGS'
14592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594ac_compiler_gnu=$ac_cv_c_compiler_gnu
14595
14596ax_pthread_ok=no
14597
14598# We used to check for pthread.h first, but this fails if pthread.h
14599# requires special compiler flags (e.g. on True64 or Sequent).
14600# It gets checked for in the link test anyway.
14601
14602# First of all, check if the user has set any of the PTHREAD_LIBS,
14603# etcetera environment variables, and if threads linking works using
14604# them:
14605if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14606 save_CFLAGS="$CFLAGS"
14607 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14608 save_LIBS="$LIBS"
14609 LIBS="$PTHREAD_LIBS $LIBS"
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14611$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613/* end confdefs.h. */
14614
14615/* Override any GCC internal prototype to avoid an error.
14616 Use char because int might match the return type of a GCC
14617 builtin and then its argument prototype would still apply. */
14618#ifdef __cplusplus
14619extern "C"
14620#endif
14621char pthread_join ();
14622int
14623main ()
14624{
14625return pthread_join ();
14626 ;
14627 return 0;
14628}
14629_ACEOF
14630if ac_fn_c_try_link "$LINENO"; then :
14631 ax_pthread_ok=yes
14632fi
14633rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14636$as_echo "$ax_pthread_ok" >&6; }
14637 if test x"$ax_pthread_ok" = xno; then
14638 PTHREAD_LIBS=""
14639 PTHREAD_CFLAGS=""
14640 fi
14641 LIBS="$save_LIBS"
14642 CFLAGS="$save_CFLAGS"
14643fi
14644
14645# We must check for the threads library under a number of different
14646# names; the ordering is very important because some systems
14647# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14648# libraries is broken (non-POSIX).
14649
14650# Create a list of thread flags to try. Items starting with a "-" are
14651# C compiler flags, and other items are library names, except for "none"
14652# which indicates that we try without any flags at all, and "pthread-config"
14653# which is a program returning the flags for the Pth emulation library.
14654
14655ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14656
14657# The ordering *is* (sometimes) important. Some notes on the
14658# individual items follow:
14659
14660# pthreads: AIX (must check this before -lpthread)
14661# none: in case threads are in libc; should be tried before -Kthread and
14662# other compiler flags to prevent continual compiler warnings
14663# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14664# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14665# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14666# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14667# -pthreads: Solaris/gcc
14668# -mthreads: Mingw32/gcc, Lynx/gcc
14669# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14670# doesn't hurt to check since this sometimes defines pthreads too;
14671# also defines -D_REENTRANT)
14672# ... -mt is also the pthreads flag for HP/aCC
14673# pthread: Linux, etcetera
14674# --thread-safe: KAI C++
14675# pthread-config: use pthread-config program (for GNU Pth library)
14676
14677case "${host_cpu}-${host_os}" in
14678 *solaris*)
14679
14680 # On Solaris (at least, for some versions), libc contains stubbed
14681 # (non-functional) versions of the pthreads routines, so link-based
14682 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14683 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14684 # a function called by this macro, so we could check for that, but
14685 # who knows whether they'll stub that too in a future libc.) So,
14686 # we'll just look for -pthreads and -lpthread first:
14687
14688 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14689 ;;
14690
14691 *-darwin*)
14692 acx_pthread_flags="-pthread $acx_pthread_flags"
14693 ;;
14694esac
14695
14696if test x"$ax_pthread_ok" = xno; then
14697for flag in $ax_pthread_flags; do
14698
14699 case $flag in
14700 none)
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14702$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14703 ;;
14704
14705 -*)
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14707$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14708 PTHREAD_CFLAGS="$flag"
14709 ;;
14710
14711 pthread-config)
14712 # Extract the first word of "pthread-config", so it can be a program name with args.
14713set dummy pthread-config; ac_word=$2
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14715$as_echo_n "checking for $ac_word... " >&6; }
14716if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718else
14719 if test -n "$ax_pthread_config"; then
14720 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14721else
14722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723for as_dir in $PATH
14724do
14725 IFS=$as_save_IFS
14726 test -z "$as_dir" && as_dir=.
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14729 ac_cv_prog_ax_pthread_config="yes"
14730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14731 break 2
14732 fi
14733done
14734 done
14735IFS=$as_save_IFS
14736
14737 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14738fi
14739fi
14740ax_pthread_config=$ac_cv_prog_ax_pthread_config
14741if test -n "$ax_pthread_config"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14743$as_echo "$ax_pthread_config" >&6; }
14744else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746$as_echo "no" >&6; }
14747fi
14748
14749
14750 if test x"$ax_pthread_config" = xno; then continue; fi
14751 PTHREAD_CFLAGS="`pthread-config --cflags`"
14752 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14753 ;;
14754
14755 *)
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14757$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14758 PTHREAD_LIBS="-l$flag"
14759 ;;
14760 esac
14761
14762 save_LIBS="$LIBS"
14763 save_CFLAGS="$CFLAGS"
14764 LIBS="$PTHREAD_LIBS $LIBS"
14765 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14766
14767 # Check for various functions. We must include pthread.h,
14768 # since some functions may be macros. (On the Sequent, we
14769 # need a special flag -Kthread to make this header compile.)
14770 # We check for pthread_join because it is in -lpthread on IRIX
14771 # while pthread_create is in libc. We check for pthread_attr_init
14772 # due to DEC craziness with -lpthreads. We check for
14773 # pthread_cleanup_push because it is one of the few pthread
14774 # functions on Solaris that doesn't have a non-functional libc stub.
14775 # We try pthread_create on general principles.
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777/* end confdefs.h. */
14778#include <pthread.h>
14779 static void routine(void* a) {a=0;}
14780 static void* start_routine(void* a) {return a;}
14781int
14782main ()
14783{
14784pthread_t th; pthread_attr_t attr;
14785 pthread_join(th, 0);
14786 pthread_attr_init(&attr);
14787 pthread_cleanup_push(routine, 0);
14788 pthread_create(&th,0,start_routine,0);
14789 pthread_cleanup_pop(0);
14790 ;
14791 return 0;
14792}
14793_ACEOF
14794if ac_fn_c_try_link "$LINENO"; then :
14795 ax_pthread_ok=yes
14796fi
14797rm -f core conftest.err conftest.$ac_objext \
14798 conftest$ac_exeext conftest.$ac_ext
14799
14800 LIBS="$save_LIBS"
14801 CFLAGS="$save_CFLAGS"
14802
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14804$as_echo "$ax_pthread_ok" >&6; }
14805 if test "x$ax_pthread_ok" = xyes; then
14806 break;
14807 fi
14808
14809 PTHREAD_LIBS=""
14810 PTHREAD_CFLAGS=""
14811done
14812fi
14813
14814# Various other checks:
14815if test "x$ax_pthread_ok" = xyes; then
14816 save_LIBS="$LIBS"
14817 LIBS="$PTHREAD_LIBS $LIBS"
14818 save_CFLAGS="$CFLAGS"
14819 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14820
14821 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14823$as_echo_n "checking for joinable pthread attribute... " >&6; }
14824 attr_name=unknown
14825 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h. */
14828#include <pthread.h>
14829int
14830main ()
14831{
14832int attr=$attr; return attr;
14833 ;
14834 return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_link "$LINENO"; then :
14838 attr_name=$attr; break
14839fi
14840rm -f core conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
14842 done
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14844$as_echo "$attr_name" >&6; }
14845 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14846
14847cat >>confdefs.h <<_ACEOF
14848#define PTHREAD_CREATE_JOINABLE $attr_name
14849_ACEOF
14850
14851 fi
14852
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14854$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14855 flag=no
14856 case "${host_cpu}-${host_os}" in
14857 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14858 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14859 esac
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14861$as_echo "${flag}" >&6; }
14862 if test "x$flag" != xno; then
14863 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14864 fi
14865
14866 LIBS="$save_LIBS"
14867 CFLAGS="$save_CFLAGS"
14868
14869 # More AIX lossage: must compile with xlc_r or cc_r
14870 if test x"$GCC" != xyes; then
14871 for ac_prog in xlc_r cc_r
14872do
14873 # Extract the first word of "$ac_prog", so it can be a program name with args.
14874set dummy $ac_prog; ac_word=$2
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876$as_echo_n "checking for $ac_word... " >&6; }
14877if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879else
14880 if test -n "$PTHREAD_CC"; then
14881 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14882else
14883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884for as_dir in $PATH
14885do
14886 IFS=$as_save_IFS
14887 test -z "$as_dir" && as_dir=.
14888 for ac_exec_ext in '' $ac_executable_extensions; do
14889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14890 ac_cv_prog_PTHREAD_CC="$ac_prog"
14891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14892 break 2
14893 fi
14894done
14895 done
14896IFS=$as_save_IFS
14897
14898fi
14899fi
14900PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14901if test -n "$PTHREAD_CC"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14903$as_echo "$PTHREAD_CC" >&6; }
14904else
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906$as_echo "no" >&6; }
14907fi
14908
14909
14910 test -n "$PTHREAD_CC" && break
14911done
14912test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14913
14914 else
14915 PTHREAD_CC=$CC
14916 fi
14917else
14918 PTHREAD_CC="$CC"
14919fi
14920
14921
14922
14923
14924
14925# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14926if test x"$ax_pthread_ok" = xyes; then
14927
14928$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14929
14930 :
14931else
14932 ax_pthread_ok=no
14933
14934fi
14935ac_ext=c
14936ac_cpp='$CPP $CPPFLAGS'
14937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14939ac_compiler_gnu=$ac_cv_c_compiler_gnu
14940
14941
14942
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000014943# Only build Linux client libs when compiling for Linux
14944case $host in
14945 *-*-linux*)
14946 LINUX_HOST=true
14947 ;;
14948esac
14949 if test x$LINUX_HOST = xtrue; then
14950 LINUX_HOST_TRUE=
14951 LINUX_HOST_FALSE='#'
14952else
14953 LINUX_HOST_TRUE='#'
14954 LINUX_HOST_FALSE=
14955fi
14956
14957
nealsidde545c02010-03-02 00:39:48 +000014958# Check whether --enable-m32 was given.
14959if test "${enable_m32+set}" = set; then :
14960 enableval=$enable_m32; case "${enableval}" in
14961 yes)
ted.mielczarekefa30c12010-09-17 13:36:11 +000014962 CFLAGS="${CFLAGS} -m32"
14963 CXXFLAGS="${CXXFLAGS} -m32"
nealsidde545c02010-03-02 00:39:48 +000014964 usem32=true
14965 ;;
14966 no)
14967 usem32=false
14968 ;;
14969 *)
ted.mielczareke574a2a2010-10-05 19:38:22 +000014970 as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5
nealsidde545c02010-03-02 00:39:48 +000014971 ;;
14972 esac
14973else
14974 usem32=false
14975fi
14976
brynercb91a2f2006-08-25 21:14:45 +000014977
ted.mielczareke574a2a2010-10-05 19:38:22 +000014978# Check whether --enable-processor was given.
14979if test "${enable_processor+set}" = set; then :
14980 enableval=$enable_processor; case "${enableval}" in
14981 yes)
14982 disable_processor=false
14983 ;;
14984 no)
14985 disable_processor=true
14986 ;;
14987 *)
14988 as_fn_error "bad value ${enableval} for --disable-processor" "$LINENO" 5
14989 ;;
14990 esac
14991else
14992 disable_processor=false
14993fi
14994
14995 if test x$disable_processor = xtrue; then
14996 DISABLE_PROCESSOR_TRUE=
14997 DISABLE_PROCESSOR_FALSE='#'
14998else
14999 DISABLE_PROCESSOR_TRUE='#'
15000 DISABLE_PROCESSOR_FALSE=
15001fi
15002
15003
15004if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue; then
15005 as_fn_error "--disable-processor was specified, and not building for Linux. Nothing to build!" "$LINENO" 5
15006fi
15007
ted.mielczarekb2236272010-04-08 23:06:23 +000015008ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
15009"
15010if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
15011
15012$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h
15013
15014else
15015
15016$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\
15017 ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h
15018
15019fi
15020
15021
mmentovai0dbedc92006-09-25 21:16:15 +000015022# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +000015023if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +000015024 enableval=$enable_selftest; case "${enableval}" in
15025 yes)
15026 selftest=true
15027 ;;
15028 no)
15029 selftest=false
15030 ;;
15031 *)
ted.mielczareke574a2a2010-10-05 19:38:22 +000015032 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000015033 ;;
15034 esac
15035else
15036 selftest=false
15037fi
15038
mmentovaiaf3c43f2007-05-17 18:34:37 +000015039 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000015040 SELFTEST_TRUE=
15041 SELFTEST_FALSE='#'
15042else
15043 SELFTEST_TRUE='#'
15044 SELFTEST_FALSE=
15045fi
15046
15047
mmentovai8c2a4de2006-09-20 16:20:15 +000015048ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000015049
15050cat >confcache <<\_ACEOF
15051# This file is a shell script that caches the results of configure
15052# tests run on this system so they can be shared between configure
15053# scripts and configure runs, see configure's option --config-cache.
15054# It is not useful on other systems. If it contains results you don't
15055# want to keep, you may remove or edit it.
15056#
15057# config.status only pays attention to the cache file if you give it
15058# the --recheck option to rerun configure.
15059#
15060# `ac_cv_env_foo' variables (set or unset) will be overridden when
15061# loading this file, other *unset* `ac_cv_foo' will be assigned the
15062# following values.
15063
15064_ACEOF
15065
15066# The following way of writing the cache mishandles newlines in values,
15067# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000015068# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000015069# Ultrix sh set writes to stderr and can't be redirected directly,
15070# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000015071(
15072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15073 eval ac_val=\$$ac_var
15074 case $ac_val in #(
15075 *${as_nl}*)
15076 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +000015077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015079 esac
15080 case $ac_var in #(
15081 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +000015082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15083 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015084 esac ;;
15085 esac
15086 done
15087
brynercb91a2f2006-08-25 21:14:45 +000015088 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000015089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15090 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +000015091 # `set' does not quote correctly, so add quotes: double-quote
15092 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +000015093 sed -n \
15094 "s/'/'\\\\''/g;
15095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000015096 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000015097 *)
15098 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000015099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000015100 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015101 esac |
15102 sort
15103) |
brynercb91a2f2006-08-25 21:14:45 +000015104 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000015105 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000015106 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000015107 :clear
brynercb91a2f2006-08-25 21:14:45 +000015108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15109 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000015110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15111 :end' >>confcache
15112if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15113 if test -w "$cache_file"; then
15114 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +000015115 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15116$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015117 cat confcache >$cache_file
15118 else
jimblandy92b1f832009-12-23 22:23:49 +000015119 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15120$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015121 fi
15122fi
15123rm -f confcache
15124
15125test "x$prefix" = xNONE && prefix=$ac_default_prefix
15126# Let make expand exec_prefix.
15127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15128
brynercb91a2f2006-08-25 21:14:45 +000015129DEFS=-DHAVE_CONFIG_H
15130
15131ac_libobjs=
15132ac_ltlibobjs=
15133for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15134 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000015135 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +000015136 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +000015137 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15138 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +000015139 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15140 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000015141done
15142LIBOBJS=$ac_libobjs
15143
15144LTLIBOBJS=$ac_ltlibobjs
15145
15146
jimblandy92b1f832009-12-23 22:23:49 +000015147 if test -n "$EXEEXT"; then
15148 am__EXEEXT_TRUE=
15149 am__EXEEXT_FALSE='#'
15150else
15151 am__EXEEXT_TRUE='#'
15152 am__EXEEXT_FALSE=
15153fi
15154
brynercb91a2f2006-08-25 21:14:45 +000015155if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000015156 as_fn_error "conditional \"AMDEP\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015157Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015158fi
15159if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000015160 as_fn_error "conditional \"am__fastdepCC\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015161Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015162fi
15163if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000015164 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015165Usually this means the macro was only invoked conditionally." "$LINENO" 5
15166fi
15167if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000015168 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015169Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015170fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000015171if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000015172 as_fn_error "conditional \"LINUX_HOST\" was never defined.
15173Usually this means the macro was only invoked conditionally." "$LINENO" 5
15174fi
15175if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
15176 as_fn_error "conditional \"DISABLE_PROCESSOR\" was never defined.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000015177Usually this means the macro was only invoked conditionally." "$LINENO" 5
15178fi
mmentovai0dbedc92006-09-25 21:16:15 +000015179if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000015180 as_fn_error "conditional \"SELFTEST\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015181Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000015182fi
brynercb91a2f2006-08-25 21:14:45 +000015183
15184: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +000015185ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +000015186ac_clean_files_save=$ac_clean_files
15187ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +000015188{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15189$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15190as_write_fail=0
15191cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015192#! $SHELL
15193# Generated by $as_me.
15194# Run this file to recreate the current configuration.
15195# Compiler output produced by configure, useful for debugging
15196# configure, is in config.log if it exists.
15197
15198debug=false
15199ac_cs_recheck=false
15200ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +000015201
jimblandy92b1f832009-12-23 22:23:49 +000015202SHELL=\${CONFIG_SHELL-$SHELL}
15203export SHELL
15204_ASEOF
15205cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15206## -------------------- ##
15207## M4sh Initialization. ##
15208## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000015209
mmentovaiaf3c43f2007-05-17 18:34:37 +000015210# Be more Bourne compatible
15211DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000015212if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000015213 emulate sh
15214 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000015215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000015216 # is contrary to our usage. Disable this feature.
15217 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000015218 setopt NO_GLOB_SUBST
15219else
jimblandy92b1f832009-12-23 22:23:49 +000015220 case `(set -o) 2>/dev/null` in #(
15221 *posix*) :
15222 set -o posix ;; #(
15223 *) :
15224 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015225esac
brynercb91a2f2006-08-25 21:14:45 +000015226fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015227
15228
jimblandy92b1f832009-12-23 22:23:49 +000015229as_nl='
15230'
15231export as_nl
15232# Printing a long string crashes Solaris 7 /usr/bin/printf.
15233as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15234as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15235as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15236# Prefer a ksh shell builtin over an external printf program on Solaris,
15237# but without wasting forks for bash or zsh.
15238if test -z "$BASH_VERSION$ZSH_VERSION" \
15239 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15240 as_echo='print -r --'
15241 as_echo_n='print -rn --'
15242elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15243 as_echo='printf %s\n'
15244 as_echo_n='printf %s'
15245else
15246 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15247 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15248 as_echo_n='/usr/ucb/echo -n'
15249 else
15250 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15251 as_echo_n_body='eval
15252 arg=$1;
15253 case $arg in #(
15254 *"$as_nl"*)
15255 expr "X$arg" : "X\\(.*\\)$as_nl";
15256 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15257 esac;
15258 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15259 '
15260 export as_echo_n_body
15261 as_echo_n='sh -c $as_echo_n_body as_echo'
15262 fi
15263 export as_echo_body
15264 as_echo='sh -c $as_echo_body as_echo'
15265fi
brynercb91a2f2006-08-25 21:14:45 +000015266
15267# The user is always right.
15268if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000015269 PATH_SEPARATOR=:
15270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15271 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15272 PATH_SEPARATOR=';'
15273 }
mmentovai8c2a4de2006-09-20 16:20:15 +000015274fi
brynercb91a2f2006-08-25 21:14:45 +000015275
mmentovai8c2a4de2006-09-20 16:20:15 +000015276
15277# IFS
15278# We need space, tab and new line, in precisely that order. Quoting is
15279# there to prevent editors from complaining about space-tab.
15280# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15281# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000015282IFS=" "" $as_nl"
15283
15284# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000015285case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000015286 *[\\/]* ) as_myself=$0 ;;
15287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000015288for as_dir in $PATH
15289do
15290 IFS=$as_save_IFS
15291 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000015292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15293 done
mmentovai8c2a4de2006-09-20 16:20:15 +000015294IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000015295
mmentovai8c2a4de2006-09-20 16:20:15 +000015296 ;;
15297esac
15298# We did not find ourselves, most probably we were run as `sh COMMAND'
15299# in which case we are not to be found in the path.
15300if test "x$as_myself" = x; then
15301 as_myself=$0
15302fi
15303if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +000015304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15305 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +000015306fi
15307
jimblandy92b1f832009-12-23 22:23:49 +000015308# Unset variables that we do not need and which cause bugs (e.g. in
15309# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15310# suppresses any "Segmentation fault" message there. '((' could
15311# trigger a bug in pdksh 5.2.14.
15312for as_var in BASH_ENV ENV MAIL MAILPATH
15313do eval test x\${$as_var+set} = xset \
15314 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +000015315done
15316PS1='$ '
15317PS2='> '
15318PS4='+ '
15319
15320# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +000015321LC_ALL=C
15322export LC_ALL
15323LANGUAGE=C
15324export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +000015325
jimblandy92b1f832009-12-23 22:23:49 +000015326# CDPATH.
15327(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15328
15329
ted.mielczareke574a2a2010-10-05 19:38:22 +000015330# as_fn_error ERROR [LINENO LOG_FD]
15331# ---------------------------------
jimblandy92b1f832009-12-23 22:23:49 +000015332# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15333# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ted.mielczareke574a2a2010-10-05 19:38:22 +000015334# script with status $?, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +000015335as_fn_error ()
15336{
ted.mielczareke574a2a2010-10-05 19:38:22 +000015337 as_status=$?; test $as_status -eq 0 && as_status=1
15338 if test "$3"; then
15339 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
jimblandy92b1f832009-12-23 22:23:49 +000015341 fi
ted.mielczareke574a2a2010-10-05 19:38:22 +000015342 $as_echo "$as_me: error: $1" >&2
jimblandy92b1f832009-12-23 22:23:49 +000015343 as_fn_exit $as_status
15344} # as_fn_error
15345
15346
15347# as_fn_set_status STATUS
15348# -----------------------
15349# Set $? to STATUS, without forking.
15350as_fn_set_status ()
15351{
15352 return $1
15353} # as_fn_set_status
15354
15355# as_fn_exit STATUS
15356# -----------------
15357# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15358as_fn_exit ()
15359{
15360 set +e
15361 as_fn_set_status $1
15362 exit $1
15363} # as_fn_exit
15364
15365# as_fn_unset VAR
15366# ---------------
15367# Portably unset VAR.
15368as_fn_unset ()
15369{
15370 { eval $1=; unset $1;}
15371}
15372as_unset=as_fn_unset
15373# as_fn_append VAR VALUE
15374# ----------------------
15375# Append the text in VALUE to the end of the definition contained in VAR. Take
15376# advantage of any shell optimizations that allow amortized linear growth over
15377# repeated appends, instead of the typical quadratic growth present in naive
15378# implementations.
15379if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15380 eval 'as_fn_append ()
15381 {
15382 eval $1+=\$2
15383 }'
15384else
15385 as_fn_append ()
15386 {
15387 eval $1=\$$1\$2
15388 }
15389fi # as_fn_append
15390
15391# as_fn_arith ARG...
15392# ------------------
15393# Perform arithmetic evaluation on the ARGs, and store the result in the
15394# global $as_val. Take advantage of shells that can avoid forks. The arguments
15395# must be portable across $(()) and expr.
15396if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15397 eval 'as_fn_arith ()
15398 {
15399 as_val=$(( $* ))
15400 }'
15401else
15402 as_fn_arith ()
15403 {
15404 as_val=`expr "$@" || test $? -eq 1`
15405 }
15406fi # as_fn_arith
15407
15408
mmentovai8c2a4de2006-09-20 16:20:15 +000015409if expr a : '\(a\)' >/dev/null 2>&1 &&
15410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15411 as_expr=expr
15412else
15413 as_expr=false
15414fi
15415
15416if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15417 as_basename=basename
15418else
15419 as_basename=false
15420fi
15421
jimblandy92b1f832009-12-23 22:23:49 +000015422if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15423 as_dirname=dirname
15424else
15425 as_dirname=false
15426fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015427
mmentovai8c2a4de2006-09-20 16:20:15 +000015428as_me=`$as_basename -- "$0" ||
15429$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15430 X"$0" : 'X\(//\)$' \| \
15431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000015432$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +000015433 sed '/^.*\/\([^/][^/]*\)\/*$/{
15434 s//\1/
15435 q
15436 }
15437 /^X\/\(\/\/\)$/{
15438 s//\1/
15439 q
15440 }
15441 /^X\/\(\/\).*/{
15442 s//\1/
15443 q
15444 }
15445 s/.*/./; q'`
15446
jimblandy92b1f832009-12-23 22:23:49 +000015447# Avoid depending upon Character Ranges.
15448as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15449as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15450as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15451as_cr_digits='0123456789'
15452as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +000015453
15454ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +000015455case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +000015456-n*)
jimblandy92b1f832009-12-23 22:23:49 +000015457 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +000015458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +000015459 xy) ECHO_C='\c';;
15460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15461 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +000015462 esac;;
15463*)
15464 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000015465esac
15466
brynercb91a2f2006-08-25 21:14:45 +000015467rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000015468if test -d conf$$.dir; then
15469 rm -f conf$$.dir/conf$$.file
15470else
15471 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +000015472 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +000015473fi
jimblandy92b1f832009-12-23 22:23:49 +000015474if (echo >conf$$.file) 2>/dev/null; then
15475 if ln -s conf$$.file conf$$ 2>/dev/null; then
15476 as_ln_s='ln -s'
15477 # ... but there are two gotchas:
15478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15480 # In both cases, we have to default to `cp -p'.
15481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15482 as_ln_s='cp -p'
15483 elif ln conf$$.file conf$$ 2>/dev/null; then
15484 as_ln_s=ln
15485 else
brynercb91a2f2006-08-25 21:14:45 +000015486 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +000015487 fi
brynercb91a2f2006-08-25 21:14:45 +000015488else
15489 as_ln_s='cp -p'
15490fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15492rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000015493
jimblandy92b1f832009-12-23 22:23:49 +000015494
15495# as_fn_mkdir_p
15496# -------------
15497# Create "$as_dir" as a directory, including parents if necessary.
15498as_fn_mkdir_p ()
15499{
15500
15501 case $as_dir in #(
15502 -*) as_dir=./$as_dir;;
15503 esac
15504 test -d "$as_dir" || eval $as_mkdir_p || {
15505 as_dirs=
15506 while :; do
15507 case $as_dir in #(
15508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15509 *) as_qdir=$as_dir;;
15510 esac
15511 as_dirs="'$as_qdir' $as_dirs"
15512 as_dir=`$as_dirname -- "$as_dir" ||
15513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15514 X"$as_dir" : 'X\(//\)[^/]' \| \
15515 X"$as_dir" : 'X\(//\)$' \| \
15516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15517$as_echo X"$as_dir" |
15518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15519 s//\1/
15520 q
15521 }
15522 /^X\(\/\/\)[^/].*/{
15523 s//\1/
15524 q
15525 }
15526 /^X\(\/\/\)$/{
15527 s//\1/
15528 q
15529 }
15530 /^X\(\/\).*/{
15531 s//\1/
15532 q
15533 }
15534 s/.*/./; q'`
15535 test -d "$as_dir" && break
15536 done
15537 test -z "$as_dirs" || eval "mkdir $as_dirs"
ted.mielczareke574a2a2010-10-05 19:38:22 +000015538 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +000015539
15540
15541} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000015542if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +000015543 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +000015544else
15545 test -d ./-p && rmdir ./-p
15546 as_mkdir_p=false
15547fi
15548
mmentovaiaf3c43f2007-05-17 18:34:37 +000015549if test -x / >/dev/null 2>&1; then
15550 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000015551else
mmentovaiaf3c43f2007-05-17 18:34:37 +000015552 if ls -dL / >/dev/null 2>&1; then
15553 as_ls_L_option=L
15554 else
15555 as_ls_L_option=
15556 fi
15557 as_test_x='
15558 eval sh -c '\''
15559 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +000015560 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +000015561 else
jimblandy92b1f832009-12-23 22:23:49 +000015562 case $1 in #(
15563 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015564 esac;
jimblandy92b1f832009-12-23 22:23:49 +000015565 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +000015566 ???[sx]*):;;*)false;;esac;fi
15567 '\'' sh
15568 '
mmentovai8c2a4de2006-09-20 16:20:15 +000015569fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015570as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000015571
15572# Sed expression to map a string onto a valid CPP name.
15573as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15574
15575# Sed expression to map a string onto a valid variable name.
15576as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15577
15578
brynercb91a2f2006-08-25 21:14:45 +000015579exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +000015580## ----------------------------------- ##
15581## Main body of $CONFIG_STATUS script. ##
15582## ----------------------------------- ##
15583_ASEOF
15584test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015585
jimblandy92b1f832009-12-23 22:23:49 +000015586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000015588# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000015589# values after options handling.
15590ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000015591This file was extended by breakpad $as_me 0.1, which was
ted.mielczareke574a2a2010-10-05 19:38:22 +000015592generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000015593
15594 CONFIG_FILES = $CONFIG_FILES
15595 CONFIG_HEADERS = $CONFIG_HEADERS
15596 CONFIG_LINKS = $CONFIG_LINKS
15597 CONFIG_COMMANDS = $CONFIG_COMMANDS
15598 $ $0 $@
15599
mmentovai8c2a4de2006-09-20 16:20:15 +000015600on `(hostname || uname -n) 2>/dev/null | sed 1q`
15601"
15602
brynercb91a2f2006-08-25 21:14:45 +000015603_ACEOF
15604
jimblandy92b1f832009-12-23 22:23:49 +000015605case $ac_config_files in *"
15606"*) set x $ac_config_files; shift; ac_config_files=$*;;
15607esac
15608
15609case $ac_config_headers in *"
15610"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15611esac
15612
15613
15614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015615# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000015616config_files="$ac_config_files"
15617config_headers="$ac_config_headers"
15618config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000015619
mmentovai8c2a4de2006-09-20 16:20:15 +000015620_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000015621
jimblandy92b1f832009-12-23 22:23:49 +000015622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015623ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +000015624\`$as_me' instantiates files and other configuration actions
15625from templates according to the current configuration. Unless the files
15626and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +000015627
jimblandy92b1f832009-12-23 22:23:49 +000015628Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +000015629
15630 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000015631 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +000015632 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +000015633 -q, --quiet, --silent
15634 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +000015635 -d, --debug don't remove temporary files
15636 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +000015637 --file=FILE[:TEMPLATE]
15638 instantiate the configuration file FILE
15639 --header=FILE[:TEMPLATE]
15640 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +000015641
15642Configuration files:
15643$config_files
15644
15645Configuration headers:
15646$config_headers
15647
15648Configuration commands:
15649$config_commands
15650
jimblandy92b1f832009-12-23 22:23:49 +000015651Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +000015652
mmentovai8c2a4de2006-09-20 16:20:15 +000015653_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +000015655ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +000015656ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000015657breakpad config.status 0.1
ted.mielczareke574a2a2010-10-05 19:38:22 +000015658configured by $0, generated by GNU Autoconf 2.65,
jimblandydc4029a2010-02-02 17:39:51 +000015659 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +000015660
ted.mielczareke574a2a2010-10-05 19:38:22 +000015661Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000015662This config.status script is free software; the Free Software Foundation
15663gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000015664
15665ac_pwd='$ac_pwd'
15666srcdir='$srcdir'
15667INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000015668MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +000015669AWK='$AWK'
15670test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +000015671_ACEOF
15672
jimblandy92b1f832009-12-23 22:23:49 +000015673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15674# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +000015675ac_need_defaults=:
15676while test $# != 0
15677do
15678 case $1 in
ted.mielczareke574a2a2010-10-05 19:38:22 +000015679 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15681 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000015682 ac_shift=:
15683 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015684 *)
brynercb91a2f2006-08-25 21:14:45 +000015685 ac_option=$1
15686 ac_optarg=$2
15687 ac_shift=shift
15688 ;;
brynercb91a2f2006-08-25 21:14:45 +000015689 esac
15690
15691 case $ac_option in
15692 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000015693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15694 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +000015696 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +000015697 --config | --confi | --conf | --con | --co | --c )
15698 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015699 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000015700 debug=: ;;
15701 --file | --fil | --fi | --f )
15702 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015703 case $ac_optarg in
15704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15705 esac
15706 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015707 ac_need_defaults=false;;
15708 --header | --heade | --head | --hea )
15709 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015710 case $ac_optarg in
15711 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15712 esac
15713 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015714 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015715 --he | --h)
15716 # Conflict between --help and --header
ted.mielczareke574a2a2010-10-05 19:38:22 +000015717 as_fn_error "ambiguous option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +000015718Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +000015719 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +000015720 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000015721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15722 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15723 ac_cs_silent=: ;;
15724
15725 # This is an error.
ted.mielczareke574a2a2010-10-05 19:38:22 +000015726 -*) as_fn_error "unrecognized option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +000015727Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +000015728
jimblandy92b1f832009-12-23 22:23:49 +000015729 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +000015730 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000015731
15732 esac
15733 shift
15734done
15735
15736ac_configure_extra_args=
15737
15738if $ac_cs_silent; then
15739 exec 6>/dev/null
15740 ac_configure_extra_args="$ac_configure_extra_args --silent"
15741fi
15742
15743_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015745if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +000015746 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15747 shift
15748 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15749 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +000015750 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +000015751 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +000015752fi
15753
15754_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015756exec 5>>config.log
15757{
15758 echo
15759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15760## Running $as_me. ##
15761_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +000015762 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +000015763} >&5
brynercb91a2f2006-08-25 21:14:45 +000015764
mmentovai8c2a4de2006-09-20 16:20:15 +000015765_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015767#
mmentovai8c2a4de2006-09-20 16:20:15 +000015768# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000015769#
brynercb91a2f2006-08-25 21:14:45 +000015770AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15771
jimblandy92b1f832009-12-23 22:23:49 +000015772
15773# The HP-UX ksh and POSIX shell print the target directory to stdout
15774# if CDPATH is set.
15775(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15776
15777sed_quote_subst='$sed_quote_subst'
15778double_quote_subst='$double_quote_subst'
15779delay_variable_subst='$delay_variable_subst'
15780macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15781macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15782enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15783enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15784pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15785enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15786host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15787host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15788host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15789build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15790build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15791build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15792SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15793Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15794GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15795EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15796FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15797LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15798NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15799LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15800max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15801ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15802exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15803lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15804lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15805lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15806reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15807reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15808OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15809deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15810file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15811AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15812AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15813STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15814RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15815old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15816old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15817old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15818CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15819CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15820compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15821GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15822lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15823lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15824lt_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"`'
15825lt_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"`'
15826objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15827SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15828ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15829MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15830lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15831lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15832lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15833lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15834lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15835need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15836DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15837NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15838LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15839OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15840OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15841libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15842shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15843extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15844archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15845enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15846export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15847whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15848compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15849old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15850old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15851archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15852archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15853module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15854module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15855with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15856allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15857no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15858hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15859hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15860hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15861hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15862hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15863hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15864hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15865hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15866inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15867link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15868fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15869always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15870export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15872include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15873prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15874file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15875variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15876need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15877need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15878version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15879runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15880shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15881shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15882libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15883library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15884soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15885postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15886postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15887finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15888finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15889hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15890sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15891sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15892hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15893enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15894enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15895enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15896old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15897striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15898compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15899predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15900postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15901predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15902postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15903compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15904LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15905old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15906compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15907GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15908lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15909lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15910lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15911lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15912lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15913archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15914enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15915export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15916whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15917compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15918old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15919old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15920archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15921archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15922module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15923module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15924with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15925allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15926no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15927hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15928hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15929hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15930hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15931hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15932hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15933hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15934hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15935inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15936link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15937fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15938always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15939export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15940exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15941include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15942prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15943file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15944hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15945compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15946predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15947postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15948predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15949postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15950compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15951
15952LTCC='$LTCC'
15953LTCFLAGS='$LTCFLAGS'
15954compiler='$compiler_DEFAULT'
15955
15956# Quote evaled strings.
15957for var in SED \
15958GREP \
15959EGREP \
15960FGREP \
15961LD \
15962NM \
15963LN_S \
15964lt_SP2NL \
15965lt_NL2SP \
15966reload_flag \
15967OBJDUMP \
15968deplibs_check_method \
15969file_magic_cmd \
15970AR \
15971AR_FLAGS \
15972STRIP \
15973RANLIB \
15974CC \
15975CFLAGS \
15976compiler \
15977lt_cv_sys_global_symbol_pipe \
15978lt_cv_sys_global_symbol_to_cdecl \
15979lt_cv_sys_global_symbol_to_c_name_address \
15980lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15981SHELL \
15982ECHO \
15983lt_prog_compiler_no_builtin_flag \
15984lt_prog_compiler_wl \
15985lt_prog_compiler_pic \
15986lt_prog_compiler_static \
15987lt_cv_prog_compiler_c_o \
15988need_locks \
15989DSYMUTIL \
15990NMEDIT \
15991LIPO \
15992OTOOL \
15993OTOOL64 \
15994shrext_cmds \
15995export_dynamic_flag_spec \
15996whole_archive_flag_spec \
15997compiler_needs_object \
15998with_gnu_ld \
15999allow_undefined_flag \
16000no_undefined_flag \
16001hardcode_libdir_flag_spec \
16002hardcode_libdir_flag_spec_ld \
16003hardcode_libdir_separator \
16004fix_srcfile_path \
16005exclude_expsyms \
16006include_expsyms \
16007file_list_spec \
16008variables_saved_for_relink \
16009libname_spec \
16010library_names_spec \
16011soname_spec \
16012finish_eval \
16013old_striplib \
16014striplib \
16015compiler_lib_search_dirs \
16016predep_objects \
16017postdep_objects \
16018predeps \
16019postdeps \
16020compiler_lib_search_path \
16021LD_CXX \
16022compiler_CXX \
16023lt_prog_compiler_no_builtin_flag_CXX \
16024lt_prog_compiler_wl_CXX \
16025lt_prog_compiler_pic_CXX \
16026lt_prog_compiler_static_CXX \
16027lt_cv_prog_compiler_c_o_CXX \
16028export_dynamic_flag_spec_CXX \
16029whole_archive_flag_spec_CXX \
16030compiler_needs_object_CXX \
16031with_gnu_ld_CXX \
16032allow_undefined_flag_CXX \
16033no_undefined_flag_CXX \
16034hardcode_libdir_flag_spec_CXX \
16035hardcode_libdir_flag_spec_ld_CXX \
16036hardcode_libdir_separator_CXX \
16037fix_srcfile_path_CXX \
16038exclude_expsyms_CXX \
16039include_expsyms_CXX \
16040file_list_spec_CXX \
16041compiler_lib_search_dirs_CXX \
16042predep_objects_CXX \
16043postdep_objects_CXX \
16044predeps_CXX \
16045postdeps_CXX \
16046compiler_lib_search_path_CXX; do
16047 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16048 *[\\\\\\\`\\"\\\$]*)
16049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16050 ;;
16051 *)
16052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16053 ;;
16054 esac
16055done
16056
16057# Double-quote double-evaled strings.
16058for var in reload_cmds \
16059old_postinstall_cmds \
16060old_postuninstall_cmds \
16061old_archive_cmds \
16062extract_expsyms_cmds \
16063old_archive_from_new_cmds \
16064old_archive_from_expsyms_cmds \
16065archive_cmds \
16066archive_expsym_cmds \
16067module_cmds \
16068module_expsym_cmds \
16069export_symbols_cmds \
16070prelink_cmds \
16071postinstall_cmds \
16072postuninstall_cmds \
16073finish_cmds \
16074sys_lib_search_path_spec \
16075sys_lib_dlsearch_path_spec \
16076old_archive_cmds_CXX \
16077old_archive_from_new_cmds_CXX \
16078old_archive_from_expsyms_cmds_CXX \
16079archive_cmds_CXX \
16080archive_expsym_cmds_CXX \
16081module_cmds_CXX \
16082module_expsym_cmds_CXX \
16083export_symbols_cmds_CXX \
16084prelink_cmds_CXX; do
16085 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16086 *[\\\\\\\`\\"\\\$]*)
16087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16088 ;;
16089 *)
16090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16091 ;;
16092 esac
16093done
16094
16095# Fix-up fallback echo if it was mangled by the above quoting rules.
16096case \$lt_ECHO in
16097*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16098 ;;
16099esac
16100
16101ac_aux_dir='$ac_aux_dir'
16102xsi_shell='$xsi_shell'
16103lt_shell_append='$lt_shell_append'
16104
16105# See if we are running on zsh, and set the options which allow our
16106# commands through without removal of \ escapes INIT.
16107if test -n "\${ZSH_VERSION+set}" ; then
16108 setopt NO_GLOB_SUBST
16109fi
16110
16111
16112 PACKAGE='$PACKAGE'
16113 VERSION='$VERSION'
16114 TIMESTAMP='$TIMESTAMP'
16115 RM='$RM'
16116 ofile='$ofile'
16117
16118
16119
16120
16121
16122
brynercb91a2f2006-08-25 21:14:45 +000016123_ACEOF
16124
jimblandy92b1f832009-12-23 22:23:49 +000016125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016126
16127# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000016128for ac_config_target in $ac_config_targets
16129do
mmentovai8c2a4de2006-09-20 16:20:15 +000016130 case $ac_config_target in
16131 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16132 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
jimblandy92b1f832009-12-23 22:23:49 +000016133 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16135
ted.mielczareke574a2a2010-10-05 19:38:22 +000016136 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +000016137 esac
16138done
16139
mmentovai8c2a4de2006-09-20 16:20:15 +000016140
brynercb91a2f2006-08-25 21:14:45 +000016141# If the user did not use the arguments to specify the items to instantiate,
16142# then the envvar interface is used. Set only those that are not.
16143# We use the long form for the default assignment because of an extremely
16144# bizarre bug on SunOS 4.1.3.
16145if $ac_need_defaults; then
16146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16149fi
16150
16151# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000016152# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000016153# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000016154# Hook for its removal unless debugging.
16155# Note that there is a small window in which the directory will not be cleaned:
16156# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000016157$debug ||
16158{
mmentovai8c2a4de2006-09-20 16:20:15 +000016159 tmp=
16160 trap 'exit_status=$?
16161 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16162' 0
jimblandy92b1f832009-12-23 22:23:49 +000016163 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +000016164}
brynercb91a2f2006-08-25 21:14:45 +000016165# Create a (secure) tmp directory for tmp files.
16166
16167{
mmentovai8c2a4de2006-09-20 16:20:15 +000016168 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000016169 test -n "$tmp" && test -d "$tmp"
16170} ||
16171{
mmentovai8c2a4de2006-09-20 16:20:15 +000016172 tmp=./conf$$-$RANDOM
16173 (umask 077 && mkdir "$tmp")
ted.mielczareke574a2a2010-10-05 19:38:22 +000016174} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016175
jimblandy92b1f832009-12-23 22:23:49 +000016176# Set up the scripts for CONFIG_FILES section.
16177# No need to generate them if there are no CONFIG_FILES.
16178# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +000016179if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000016180
jimblandy92b1f832009-12-23 22:23:49 +000016181
16182ac_cr=`echo X | tr X '\015'`
16183# On cygwin, bash can eat \r inside `` if the user requested igncr.
16184# But we know of no other shell where ac_cr would be empty at this
16185# point, so we can use a bashism as a fallback.
16186if test "x$ac_cr" = x; then
16187 eval ac_cr=\$\'\\r\'
16188fi
16189ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16190if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000016191 ac_cs_awk_cr='\r'
jimblandy92b1f832009-12-23 22:23:49 +000016192else
16193 ac_cs_awk_cr=$ac_cr
16194fi
16195
16196echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +000016197_ACEOF
16198
mmentovai8c2a4de2006-09-20 16:20:15 +000016199
jimblandy92b1f832009-12-23 22:23:49 +000016200{
16201 echo "cat >conf$$subs.awk <<_ACEOF" &&
16202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16203 echo "_ACEOF"
16204} >conf$$subs.sh ||
ted.mielczareke574a2a2010-10-05 19:38:22 +000016205 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16206ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016207ac_delim='%!_!# '
16208for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +000016209 . ./conf$$subs.sh ||
ted.mielczareke574a2a2010-10-05 19:38:22 +000016210 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016211
jimblandy92b1f832009-12-23 22:23:49 +000016212 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16213 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +000016214 break
16215 elif $ac_last_try; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000016216 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016217 else
16218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000016219 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016220done
jimblandy92b1f832009-12-23 22:23:49 +000016221rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +000016222
jimblandy92b1f832009-12-23 22:23:49 +000016223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +000016225_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016226sed -n '
16227h
16228s/^/S["/; s/!.*/"]=/
16229p
16230g
16231s/^[^!]*!//
16232:repl
16233t repl
16234s/'"$ac_delim"'$//
16235t delim
16236:nl
16237h
jimblandydc4029a2010-02-02 17:39:51 +000016238s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016239t more1
16240s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16241p
16242n
16243b repl
16244:more1
16245s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16246p
16247g
16248s/.\{148\}//
16249t nl
16250:delim
16251h
jimblandydc4029a2010-02-02 17:39:51 +000016252s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016253t more2
16254s/["\\]/\\&/g; s/^/"/; s/$/"/
16255p
16256b
16257:more2
16258s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16259p
16260g
16261s/.\{148\}//
16262t delim
16263' <conf$$subs.awk | sed '
16264/^[^""]/{
16265 N
16266 s/\n//
16267}
16268' >>$CONFIG_STATUS || ac_write_fail=1
16269rm -f conf$$subs.awk
16270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16271_ACAWK
16272cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16273 for (key in S) S_is_set[key] = 1
16274 FS = ""
16275
16276}
16277{
16278 line = $ 0
16279 nfields = split(line, field, "@")
16280 substed = 0
16281 len = length(field[1])
16282 for (i = 2; i < nfields; i++) {
16283 key = field[i]
16284 keylen = length(key)
16285 if (S_is_set[key]) {
16286 value = S[key]
16287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16288 len += length(value) + length(field[++i])
16289 substed = 1
16290 } else
16291 len += 1 + keylen
16292 }
16293
16294 print line
16295}
16296
16297_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +000016298_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16300if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16301 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16302else
16303 cat
16304fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
ted.mielczareke574a2a2010-10-05 19:38:22 +000016305 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016306_ACEOF
16307
ted.mielczareke574a2a2010-10-05 19:38:22 +000016308# VPATH may cause trouble with some makes, so we remove $(srcdir),
16309# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
mmentovai8c2a4de2006-09-20 16:20:15 +000016310# trailing colons and then remove the whole line if VPATH becomes empty
16311# (actually we leave an empty line to preserve line numbers).
16312if test "x$srcdir" = x.; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000016313 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16314s/:*\$(srcdir):*/:/
16315s/:*\${srcdir}:*/:/
16316s/:*@srcdir@:*/:/
16317s/^\([^=]*=[ ]*\):*/\1/
mmentovai8c2a4de2006-09-20 16:20:15 +000016318s/:*$//
16319s/^[^=]*=[ ]*$//
16320}'
16321fi
16322
jimblandy92b1f832009-12-23 22:23:49 +000016323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016324fi # test -n "$CONFIG_FILES"
16325
jimblandy92b1f832009-12-23 22:23:49 +000016326# Set up the scripts for CONFIG_HEADERS section.
16327# No need to generate them if there are no CONFIG_HEADERS.
16328# This happens for instance with `./config.status Makefile'.
16329if test -n "$CONFIG_HEADERS"; then
16330cat >"$tmp/defines.awk" <<\_ACAWK ||
16331BEGIN {
16332_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016333
jimblandy92b1f832009-12-23 22:23:49 +000016334# Transform confdefs.h into an awk script `defines.awk', embedded as
16335# here-document in config.status, that substitutes the proper values into
16336# config.h.in to produce config.h.
16337
16338# Create a delimiter string that does not exist in confdefs.h, to ease
16339# handling of long lines.
16340ac_delim='%!_!# '
16341for ac_last_try in false false :; do
16342 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16343 if test -z "$ac_t"; then
16344 break
16345 elif $ac_last_try; then
ted.mielczareke574a2a2010-10-05 19:38:22 +000016346 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000016347 else
16348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16349 fi
16350done
16351
16352# For the awk script, D is an array of macro values keyed by name,
16353# likewise P contains macro parameters if any. Preserve backslash
16354# newline sequences.
16355
16356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16357sed -n '
16358s/.\{148\}/&'"$ac_delim"'/g
16359t rset
16360:rset
16361s/^[ ]*#[ ]*define[ ][ ]*/ /
16362t def
16363d
16364:def
16365s/\\$//
16366t bsnl
16367s/["\\]/\\&/g
16368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16369D["\1"]=" \3"/p
16370s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16371d
16372:bsnl
16373s/["\\]/\\&/g
16374s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16375D["\1"]=" \3\\\\\\n"\\/p
16376t cont
16377s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16378t cont
16379d
16380:cont
16381n
16382s/.\{148\}/&'"$ac_delim"'/g
16383t clear
16384:clear
16385s/\\$//
16386t bsnlc
16387s/["\\]/\\&/g; s/^/"/; s/$/"/p
16388d
16389:bsnlc
16390s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16391b cont
16392' <confdefs.h | sed '
16393s/'"$ac_delim"'/"\\\
16394"/g' >>$CONFIG_STATUS || ac_write_fail=1
16395
16396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16397 for (key in D) D_is_set[key] = 1
16398 FS = ""
16399}
16400/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16401 line = \$ 0
16402 split(line, arg, " ")
16403 if (arg[1] == "#") {
16404 defundef = arg[2]
16405 mac1 = arg[3]
16406 } else {
16407 defundef = substr(arg[1], 2)
16408 mac1 = arg[2]
16409 }
16410 split(mac1, mac2, "(") #)
16411 macro = mac2[1]
16412 prefix = substr(line, 1, index(line, defundef) - 1)
16413 if (D_is_set[macro]) {
16414 # Preserve the white space surrounding the "#".
16415 print prefix "define", macro P[macro] D[macro]
16416 next
16417 } else {
16418 # Replace #undef with comments. This is necessary, for example,
16419 # in the case of _POSIX_SOURCE, which is predefined and required
16420 # on some systems where configure will not decide to define it.
16421 if (defundef == "undef") {
16422 print "/*", prefix defundef, macro, "*/"
16423 next
16424 }
16425 }
16426}
16427{ print }
16428_ACAWK
16429_ACEOF
16430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ted.mielczareke574a2a2010-10-05 19:38:22 +000016431 as_fn_error "could not setup config headers machinery" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000016432fi # test -n "$CONFIG_HEADERS"
16433
16434
16435eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16436shift
16437for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +000016438do
16439 case $ac_tag in
16440 :[FHLC]) ac_mode=$ac_tag; continue;;
16441 esac
16442 case $ac_mode$ac_tag in
16443 :[FHL]*:*);;
ted.mielczareke574a2a2010-10-05 19:38:22 +000016444 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016445 :[FH]-) ac_tag=-:-;;
16446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16447 esac
16448 ac_save_IFS=$IFS
16449 IFS=:
16450 set x $ac_tag
16451 IFS=$ac_save_IFS
16452 shift
16453 ac_file=$1
16454 shift
16455
16456 case $ac_mode in
16457 :L) ac_source=$1;;
16458 :[FH])
16459 ac_file_inputs=
16460 for ac_f
16461 do
16462 case $ac_f in
16463 -) ac_f="$tmp/stdin";;
16464 *) # Look for the file first in the build tree, then in the source tree
16465 # (if the path is not absolute). The absolute path cannot be DOS-style,
16466 # because $ac_f cannot contain `:'.
16467 test -f "$ac_f" ||
16468 case $ac_f in
16469 [\\/$]*) false;;
16470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16471 esac ||
ted.mielczareke574a2a2010-10-05 19:38:22 +000016472 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016473 esac
jimblandy92b1f832009-12-23 22:23:49 +000016474 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16475 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +000016476 done
16477
16478 # Let's still pretend it is `configure' which instantiates (i.e., don't
16479 # use $as_me), people would be surprised to read:
16480 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +000016481 configure_input='Generated from '`
16482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16483 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +000016484 if test x"$ac_file" != x-; then
16485 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +000016486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16487$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016488 fi
jimblandy92b1f832009-12-23 22:23:49 +000016489 # Neutralize special characters interpreted by sed in replacement strings.
16490 case $configure_input in #(
16491 *\&* | *\|* | *\\* )
16492 ac_sed_conf_input=`$as_echo "$configure_input" |
16493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16494 *) ac_sed_conf_input=$configure_input;;
16495 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016496
16497 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +000016498 *:-:* | *:-) cat >"$tmp/stdin" \
ted.mielczareke574a2a2010-10-05 19:38:22 +000016499 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016500 esac
16501 ;;
brynercb91a2f2006-08-25 21:14:45 +000016502 esac
16503
mmentovai8c2a4de2006-09-20 16:20:15 +000016504 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000016505$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16506 X"$ac_file" : 'X\(//\)[^/]' \| \
16507 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016509$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16511 s//\1/
16512 q
16513 }
16514 /^X\(\/\/\)[^/].*/{
16515 s//\1/
16516 q
16517 }
16518 /^X\(\/\/\)$/{
16519 s//\1/
16520 q
16521 }
16522 /^X\(\/\).*/{
16523 s//\1/
16524 q
16525 }
16526 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016527 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000016528 ac_builddir=.
16529
mmentovai8c2a4de2006-09-20 16:20:15 +000016530case "$ac_dir" in
16531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16532*)
jimblandy92b1f832009-12-23 22:23:49 +000016533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016534 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +000016535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016536 case $ac_top_builddir_sub in
16537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16539 esac ;;
16540esac
16541ac_abs_top_builddir=$ac_pwd
16542ac_abs_builddir=$ac_pwd$ac_dir_suffix
16543# for backward compatibility:
16544ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000016545
16546case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000016547 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000016548 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000016549 ac_top_srcdir=$ac_top_builddir_sub
16550 ac_abs_top_srcdir=$ac_pwd ;;
16551 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000016552 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000016553 ac_top_srcdir=$srcdir
16554 ac_abs_top_srcdir=$srcdir ;;
16555 *) # Relative name.
16556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16557 ac_top_srcdir=$ac_top_build_prefix$srcdir
16558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000016559esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000016561
brynercb91a2f2006-08-25 21:14:45 +000016562
mmentovai8c2a4de2006-09-20 16:20:15 +000016563 case $ac_mode in
16564 :F)
16565 #
16566 # CONFIG_FILE
16567 #
brynercb91a2f2006-08-25 21:14:45 +000016568
16569 case $INSTALL in
16570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000016572 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000016573 ac_MKDIR_P=$MKDIR_P
16574 case $MKDIR_P in
16575 [\\/$]* | ?:[\\/]* ) ;;
16576 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16577 esac
brynercb91a2f2006-08-25 21:14:45 +000016578_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016579
jimblandy92b1f832009-12-23 22:23:49 +000016580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016581# If the template does not know about datarootdir, expand it.
16582# FIXME: This hack should be removed a few years after 2.60.
16583ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +000016584ac_sed_dataroot='
16585/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +000016586 p
16587 q
16588}
16589/@datadir@/p
16590/@docdir@/p
16591/@infodir@/p
16592/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +000016593/@mandir@/p'
16594case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +000016595*datarootdir*) ac_datarootdir_seen=yes;;
16596*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +000016597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16598$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016599_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016601 ac_datarootdir_hack='
16602 s&@datadir@&$datadir&g
16603 s&@docdir@&$docdir&g
16604 s&@infodir@&$infodir&g
16605 s&@localedir@&$localedir&g
16606 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +000016607 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016608esac
16609_ACEOF
16610
16611# Neutralize VPATH when `$srcdir' = `.'.
16612# Shell code in configure.ac might set extrasub.
16613# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +000016614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16615ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +000016616$extrasub
16617_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016619:t
16620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +000016621s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016622s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +000016623s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016624s&@srcdir@&$ac_srcdir&;t t
16625s&@abs_srcdir@&$ac_abs_srcdir&;t t
16626s&@top_srcdir@&$ac_top_srcdir&;t t
16627s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16628s&@builddir@&$ac_builddir&;t t
16629s&@abs_builddir@&$ac_abs_builddir&;t t
16630s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16631s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000016632s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016633$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +000016634"
16635eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
ted.mielczareke574a2a2010-10-05 19:38:22 +000016636 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016637
mmentovai8c2a4de2006-09-20 16:20:15 +000016638test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16639 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +000016641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ted.mielczareke574a2a2010-10-05 19:38:22 +000016642which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +000016643$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ted.mielczareke574a2a2010-10-05 19:38:22 +000016644which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000016645
mmentovai8c2a4de2006-09-20 16:20:15 +000016646 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000016647 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +000016648 -) cat "$tmp/out" && rm -f "$tmp/out";;
16649 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16650 esac \
ted.mielczareke574a2a2010-10-05 19:38:22 +000016651 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016652 ;;
16653 :H)
16654 #
16655 # CONFIG_HEADER
16656 #
brynercb91a2f2006-08-25 21:14:45 +000016657 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +000016658 {
16659 $as_echo "/* $configure_input */" \
16660 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16661 } >"$tmp/config.h" \
ted.mielczareke574a2a2010-10-05 19:38:22 +000016662 || as_fn_error "could not create $ac_file" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000016663 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16665$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000016666 else
jimblandy92b1f832009-12-23 22:23:49 +000016667 rm -f "$ac_file"
16668 mv "$tmp/config.h" "$ac_file" \
ted.mielczareke574a2a2010-10-05 19:38:22 +000016669 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016670 fi
16671 else
jimblandy92b1f832009-12-23 22:23:49 +000016672 $as_echo "/* $configure_input */" \
16673 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
ted.mielczareke574a2a2010-10-05 19:38:22 +000016674 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016675 fi
jimblandy92b1f832009-12-23 22:23:49 +000016676# Compute "$ac_file"'s index in $config_headers.
16677_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +000016678_am_stamp_count=1
16679for _am_header in $config_headers :; do
16680 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +000016681 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +000016682 break ;;
16683 * )
16684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16685 esac
16686done
jimblandy92b1f832009-12-23 22:23:49 +000016687echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16688$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16689 X"$_am_arg" : 'X\(//\)[^/]' \| \
16690 X"$_am_arg" : 'X\(//\)$' \| \
16691 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16692$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16694 s//\1/
16695 q
16696 }
16697 /^X\(\/\/\)[^/].*/{
16698 s//\1/
16699 q
16700 }
16701 /^X\(\/\/\)$/{
16702 s//\1/
16703 q
16704 }
16705 /^X\(\/\).*/{
16706 s//\1/
16707 q
16708 }
16709 s/.*/./; q'`/stamp-h$_am_stamp_count
16710 ;;
brynercb91a2f2006-08-25 21:14:45 +000016711
jimblandy92b1f832009-12-23 22:23:49 +000016712 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16713$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016714 ;;
16715 esac
brynercb91a2f2006-08-25 21:14:45 +000016716
16717
mmentovai8c2a4de2006-09-20 16:20:15 +000016718 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +000016719 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16720 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16721 # are listed without --file. Let's play safe and only enable the eval
16722 # if we detect the quoting.
16723 case $CONFIG_FILES in
16724 *\'*) eval set x "$CONFIG_FILES" ;;
16725 *) set x $CONFIG_FILES ;;
16726 esac
16727 shift
16728 for mf
16729 do
16730 # Strip MF so we end up with the name of the file.
16731 mf=`echo "$mf" | sed -e 's/:.*$//'`
16732 # Check whether this is an Automake generated Makefile or not.
16733 # We used to match only the files named `Makefile.in', but
16734 # some people rename them; so instead we look at the file content.
16735 # Grep'ing the first line is not enough: some people post-process
16736 # each Makefile.in and add a new line on top of each file to say so.
16737 # Grep'ing the whole file is not good either: AIX grep has a line
16738 # limit of 2048, but all sed's we know have understand at least 4000.
16739 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16740 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000016741$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16742 X"$mf" : 'X\(//\)[^/]' \| \
16743 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016744 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016745$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16747 s//\1/
16748 q
16749 }
16750 /^X\(\/\/\)[^/].*/{
16751 s//\1/
16752 q
16753 }
16754 /^X\(\/\/\)$/{
16755 s//\1/
16756 q
16757 }
16758 /^X\(\/\).*/{
16759 s//\1/
16760 q
16761 }
16762 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016763 else
16764 continue
16765 fi
16766 # Extract the definition of DEPDIR, am__include, and am__quote
16767 # from the Makefile without running `make'.
16768 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16769 test -z "$DEPDIR" && continue
16770 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16771 test -z "am__include" && continue
16772 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16773 # When using ansi2knr, U may be empty or an underscore; expand it
16774 U=`sed -n 's/^U = //p' < "$mf"`
16775 # Find all dependency output files, they are included files with
16776 # $(DEPDIR) in their names. We invoke sed twice because it is the
16777 # simplest approach to changing $(DEPDIR) to its actual value in the
16778 # expansion.
16779 for file in `sed -n "
16780 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16781 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16782 # Make sure the directory exists.
16783 test -f "$dirpart/$file" && continue
16784 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000016785$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16786 X"$file" : 'X\(//\)[^/]' \| \
16787 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016788 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016789$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16791 s//\1/
16792 q
16793 }
16794 /^X\(\/\/\)[^/].*/{
16795 s//\1/
16796 q
16797 }
16798 /^X\(\/\/\)$/{
16799 s//\1/
16800 q
16801 }
16802 /^X\(\/\).*/{
16803 s//\1/
16804 q
16805 }
16806 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016807 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16808 # echo "creating $dirpart/$file"
16809 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +000016810 done
brynercb91a2f2006-08-25 21:14:45 +000016811 done
jimblandy92b1f832009-12-23 22:23:49 +000016812}
16813 ;;
16814 "libtool":C)
16815
16816 # See if we are running on zsh, and set the options which allow our
16817 # commands through without removal of \ escapes.
16818 if test -n "${ZSH_VERSION+set}" ; then
16819 setopt NO_GLOB_SUBST
16820 fi
16821
16822 cfgfile="${ofile}T"
16823 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16824 $RM "$cfgfile"
16825
16826 cat <<_LT_EOF >> "$cfgfile"
16827#! $SHELL
16828
16829# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16830# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16831# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16832# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16833#
16834# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16835# 2006, 2007, 2008 Free Software Foundation, Inc.
16836# Written by Gordon Matzigkeit, 1996
16837#
16838# This file is part of GNU Libtool.
16839#
16840# GNU Libtool is free software; you can redistribute it and/or
16841# modify it under the terms of the GNU General Public License as
16842# published by the Free Software Foundation; either version 2 of
16843# the License, or (at your option) any later version.
16844#
16845# As a special exception to the GNU General Public License,
16846# if you distribute this file as part of a program or library that
16847# is built using GNU Libtool, you may include this file under the
16848# same distribution terms that you use for the rest of that program.
16849#
16850# GNU Libtool is distributed in the hope that it will be useful,
16851# but WITHOUT ANY WARRANTY; without even the implied warranty of
16852# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16853# GNU General Public License for more details.
16854#
16855# You should have received a copy of the GNU General Public License
16856# along with GNU Libtool; see the file COPYING. If not, a copy
16857# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16858# obtained by writing to the Free Software Foundation, Inc.,
16859# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16860
16861
16862# The names of the tagged configurations supported by this script.
16863available_tags="CXX "
16864
16865# ### BEGIN LIBTOOL CONFIG
16866
16867# Which release of libtool.m4 was used?
16868macro_version=$macro_version
16869macro_revision=$macro_revision
16870
16871# Whether or not to build shared libraries.
16872build_libtool_libs=$enable_shared
16873
16874# Whether or not to build static libraries.
16875build_old_libs=$enable_static
16876
16877# What type of objects to build.
16878pic_mode=$pic_mode
16879
16880# Whether or not to optimize for fast installation.
16881fast_install=$enable_fast_install
16882
16883# The host system.
16884host_alias=$host_alias
16885host=$host
16886host_os=$host_os
16887
16888# The build system.
16889build_alias=$build_alias
16890build=$build
16891build_os=$build_os
16892
16893# A sed program that does not truncate output.
16894SED=$lt_SED
16895
16896# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16897Xsed="\$SED -e 1s/^X//"
16898
16899# A grep program that handles long lines.
16900GREP=$lt_GREP
16901
16902# An ERE matcher.
16903EGREP=$lt_EGREP
16904
16905# A literal string matcher.
16906FGREP=$lt_FGREP
16907
16908# A BSD- or MS-compatible name lister.
16909NM=$lt_NM
16910
16911# Whether we need soft or hard links.
16912LN_S=$lt_LN_S
16913
16914# What is the maximum length of a command?
16915max_cmd_len=$max_cmd_len
16916
16917# Object file suffix (normally "o").
16918objext=$ac_objext
16919
16920# Executable file suffix (normally "").
16921exeext=$exeext
16922
16923# whether the shell understands "unset".
16924lt_unset=$lt_unset
16925
16926# turn spaces into newlines.
16927SP2NL=$lt_lt_SP2NL
16928
16929# turn newlines into spaces.
16930NL2SP=$lt_lt_NL2SP
16931
16932# How to create reloadable object files.
16933reload_flag=$lt_reload_flag
16934reload_cmds=$lt_reload_cmds
16935
16936# An object symbol dumper.
16937OBJDUMP=$lt_OBJDUMP
16938
16939# Method to check whether dependent libraries are shared objects.
16940deplibs_check_method=$lt_deplibs_check_method
16941
16942# Command to use when deplibs_check_method == "file_magic".
16943file_magic_cmd=$lt_file_magic_cmd
16944
16945# The archiver.
16946AR=$lt_AR
16947AR_FLAGS=$lt_AR_FLAGS
16948
16949# A symbol stripping program.
16950STRIP=$lt_STRIP
16951
16952# Commands used to install an old-style archive.
16953RANLIB=$lt_RANLIB
16954old_postinstall_cmds=$lt_old_postinstall_cmds
16955old_postuninstall_cmds=$lt_old_postuninstall_cmds
16956
16957# A C compiler.
16958LTCC=$lt_CC
16959
16960# LTCC compiler flags.
16961LTCFLAGS=$lt_CFLAGS
16962
16963# Take the output of nm and produce a listing of raw symbols and C names.
16964global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16965
16966# Transform the output of nm in a proper C declaration.
16967global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16968
16969# Transform the output of nm in a C name address pair.
16970global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16971
16972# Transform the output of nm in a C name address pair when lib prefix is needed.
16973global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16974
16975# The name of the directory that contains temporary libtool files.
16976objdir=$objdir
16977
16978# Shell to use when invoking shell scripts.
16979SHELL=$lt_SHELL
16980
16981# An echo program that does not interpret backslashes.
16982ECHO=$lt_ECHO
16983
16984# Used to examine libraries when file_magic_cmd begins with "file".
16985MAGIC_CMD=$MAGIC_CMD
16986
16987# Must we lock files when doing compilation?
16988need_locks=$lt_need_locks
16989
16990# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16991DSYMUTIL=$lt_DSYMUTIL
16992
16993# Tool to change global to local symbols on Mac OS X.
16994NMEDIT=$lt_NMEDIT
16995
16996# Tool to manipulate fat objects and archives on Mac OS X.
16997LIPO=$lt_LIPO
16998
16999# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17000OTOOL=$lt_OTOOL
17001
17002# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17003OTOOL64=$lt_OTOOL64
17004
17005# Old archive suffix (normally "a").
17006libext=$libext
17007
17008# Shared library suffix (normally ".so").
17009shrext_cmds=$lt_shrext_cmds
17010
17011# The commands to extract the exported symbol list from a shared archive.
17012extract_expsyms_cmds=$lt_extract_expsyms_cmds
17013
17014# Variables whose values should be saved in libtool wrapper scripts and
17015# restored at link time.
17016variables_saved_for_relink=$lt_variables_saved_for_relink
17017
17018# Do we need the "lib" prefix for modules?
17019need_lib_prefix=$need_lib_prefix
17020
17021# Do we need a version for libraries?
17022need_version=$need_version
17023
17024# Library versioning type.
17025version_type=$version_type
17026
17027# Shared library runtime path variable.
17028runpath_var=$runpath_var
17029
17030# Shared library path variable.
17031shlibpath_var=$shlibpath_var
17032
17033# Is shlibpath searched before the hard-coded library search path?
17034shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17035
17036# Format of library name prefix.
17037libname_spec=$lt_libname_spec
17038
17039# List of archive names. First name is the real one, the rest are links.
17040# The last name is the one that the linker finds with -lNAME
17041library_names_spec=$lt_library_names_spec
17042
17043# The coded name of the library, if different from the real name.
17044soname_spec=$lt_soname_spec
17045
17046# Command to use after installation of a shared archive.
17047postinstall_cmds=$lt_postinstall_cmds
17048
17049# Command to use after uninstallation of a shared archive.
17050postuninstall_cmds=$lt_postuninstall_cmds
17051
17052# Commands used to finish a libtool library installation in a directory.
17053finish_cmds=$lt_finish_cmds
17054
17055# As "finish_cmds", except a single script fragment to be evaled but
17056# not shown.
17057finish_eval=$lt_finish_eval
17058
17059# Whether we should hardcode library paths into libraries.
17060hardcode_into_libs=$hardcode_into_libs
17061
17062# Compile-time system search path for libraries.
17063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17064
17065# Run-time system search path for libraries.
17066sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17067
17068# Whether dlopen is supported.
17069dlopen_support=$enable_dlopen
17070
17071# Whether dlopen of programs is supported.
17072dlopen_self=$enable_dlopen_self
17073
17074# Whether dlopen of statically linked programs is supported.
17075dlopen_self_static=$enable_dlopen_self_static
17076
17077# Commands to strip libraries.
17078old_striplib=$lt_old_striplib
17079striplib=$lt_striplib
17080
17081
17082# The linker used to build libraries.
17083LD=$lt_LD
17084
17085# Commands used to build an old-style archive.
17086old_archive_cmds=$lt_old_archive_cmds
17087
17088# A language specific compiler.
17089CC=$lt_compiler
17090
17091# Is the compiler the GNU compiler?
17092with_gcc=$GCC
17093
17094# Compiler flag to turn off builtin functions.
17095no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17096
17097# How to pass a linker flag through the compiler.
17098wl=$lt_lt_prog_compiler_wl
17099
17100# Additional compiler flags for building library objects.
17101pic_flag=$lt_lt_prog_compiler_pic
17102
17103# Compiler flag to prevent dynamic linking.
17104link_static_flag=$lt_lt_prog_compiler_static
17105
17106# Does compiler simultaneously support -c and -o options?
17107compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17108
17109# Whether or not to add -lc for building shared libraries.
17110build_libtool_need_lc=$archive_cmds_need_lc
17111
17112# Whether or not to disallow shared libs when runtime libs are static.
17113allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17114
17115# Compiler flag to allow reflexive dlopens.
17116export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17117
17118# Compiler flag to generate shared objects directly from archives.
17119whole_archive_flag_spec=$lt_whole_archive_flag_spec
17120
17121# Whether the compiler copes with passing no objects directly.
17122compiler_needs_object=$lt_compiler_needs_object
17123
17124# Create an old-style archive from a shared archive.
17125old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17126
17127# Create a temporary old-style archive to link instead of a shared archive.
17128old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17129
17130# Commands used to build a shared archive.
17131archive_cmds=$lt_archive_cmds
17132archive_expsym_cmds=$lt_archive_expsym_cmds
17133
17134# Commands used to build a loadable module if different from building
17135# a shared archive.
17136module_cmds=$lt_module_cmds
17137module_expsym_cmds=$lt_module_expsym_cmds
17138
17139# Whether we are building with GNU ld or not.
17140with_gnu_ld=$lt_with_gnu_ld
17141
17142# Flag that allows shared libraries with undefined symbols to be built.
17143allow_undefined_flag=$lt_allow_undefined_flag
17144
17145# Flag that enforces no undefined symbols.
17146no_undefined_flag=$lt_no_undefined_flag
17147
17148# Flag to hardcode \$libdir into a binary during linking.
17149# This must work even if \$libdir does not exist
17150hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17151
17152# If ld is used when linking, flag to hardcode \$libdir into a binary
17153# during linking. This must work even if \$libdir does not exist.
17154hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17155
17156# Whether we need a single "-rpath" flag with a separated argument.
17157hardcode_libdir_separator=$lt_hardcode_libdir_separator
17158
17159# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17160# DIR into the resulting binary.
17161hardcode_direct=$hardcode_direct
17162
17163# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17164# DIR into the resulting binary and the resulting library dependency is
17165# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17166# library is relocated.
17167hardcode_direct_absolute=$hardcode_direct_absolute
17168
17169# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17170# into the resulting binary.
17171hardcode_minus_L=$hardcode_minus_L
17172
17173# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17174# into the resulting binary.
17175hardcode_shlibpath_var=$hardcode_shlibpath_var
17176
17177# Set to "yes" if building a shared library automatically hardcodes DIR
17178# into the library and all subsequent libraries and executables linked
17179# against it.
17180hardcode_automatic=$hardcode_automatic
17181
17182# Set to yes if linker adds runtime paths of dependent libraries
17183# to runtime path list.
17184inherit_rpath=$inherit_rpath
17185
17186# Whether libtool must link a program against all its dependency libraries.
17187link_all_deplibs=$link_all_deplibs
17188
17189# Fix the shell variable \$srcfile for the compiler.
17190fix_srcfile_path=$lt_fix_srcfile_path
17191
17192# Set to "yes" if exported symbols are required.
17193always_export_symbols=$always_export_symbols
17194
17195# The commands to list exported symbols.
17196export_symbols_cmds=$lt_export_symbols_cmds
17197
17198# Symbols that should not be listed in the preloaded symbols.
17199exclude_expsyms=$lt_exclude_expsyms
17200
17201# Symbols that must always be exported.
17202include_expsyms=$lt_include_expsyms
17203
17204# Commands necessary for linking programs (against libraries) with templates.
17205prelink_cmds=$lt_prelink_cmds
17206
17207# Specify filename containing input files.
17208file_list_spec=$lt_file_list_spec
17209
17210# How to hardcode a shared library path into an executable.
17211hardcode_action=$hardcode_action
17212
17213# The directories searched by this compiler when creating a shared library.
17214compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17215
17216# Dependencies to place before and after the objects being linked to
17217# create a shared library.
17218predep_objects=$lt_predep_objects
17219postdep_objects=$lt_postdep_objects
17220predeps=$lt_predeps
17221postdeps=$lt_postdeps
17222
17223# The library search path used internally by the compiler when linking
17224# a shared library.
17225compiler_lib_search_path=$lt_compiler_lib_search_path
17226
17227# ### END LIBTOOL CONFIG
17228
17229_LT_EOF
17230
17231 case $host_os in
17232 aix3*)
17233 cat <<\_LT_EOF >> "$cfgfile"
17234# AIX sometimes has problems with the GCC collect2 program. For some
17235# reason, if we set the COLLECT_NAMES environment variable, the problems
17236# vanish in a puff of smoke.
17237if test "X${COLLECT_NAMES+set}" != Xset; then
17238 COLLECT_NAMES=
17239 export COLLECT_NAMES
17240fi
17241_LT_EOF
17242 ;;
17243 esac
17244
17245
17246ltmain="$ac_aux_dir/ltmain.sh"
17247
17248
17249 # We use sed instead of cat because bash on DJGPP gets confused if
17250 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17251 # text mode, it properly converts lines to CR/LF. This bash problem
17252 # is reportedly fixed, but why not run on old versions too?
17253 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17254 || (rm -f "$cfgfile"; exit 1)
17255
17256 case $xsi_shell in
17257 yes)
17258 cat << \_LT_EOF >> "$cfgfile"
17259
17260# func_dirname file append nondir_replacement
17261# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17262# otherwise set result to NONDIR_REPLACEMENT.
17263func_dirname ()
17264{
17265 case ${1} in
17266 */*) func_dirname_result="${1%/*}${2}" ;;
17267 * ) func_dirname_result="${3}" ;;
17268 esac
17269}
17270
17271# func_basename file
17272func_basename ()
17273{
17274 func_basename_result="${1##*/}"
17275}
17276
17277# func_dirname_and_basename file append nondir_replacement
17278# perform func_basename and func_dirname in a single function
17279# call:
17280# dirname: Compute the dirname of FILE. If nonempty,
17281# add APPEND to the result, otherwise set result
17282# to NONDIR_REPLACEMENT.
17283# value returned in "$func_dirname_result"
17284# basename: Compute filename of FILE.
17285# value retuned in "$func_basename_result"
17286# Implementation must be kept synchronized with func_dirname
17287# and func_basename. For efficiency, we do not delegate to
17288# those functions but instead duplicate the functionality here.
17289func_dirname_and_basename ()
17290{
17291 case ${1} in
17292 */*) func_dirname_result="${1%/*}${2}" ;;
17293 * ) func_dirname_result="${3}" ;;
17294 esac
17295 func_basename_result="${1##*/}"
17296}
17297
17298# func_stripname prefix suffix name
17299# strip PREFIX and SUFFIX off of NAME.
17300# PREFIX and SUFFIX must not contain globbing or regex special
17301# characters, hashes, percent signs, but SUFFIX may contain a leading
17302# dot (in which case that matches only a dot).
17303func_stripname ()
17304{
17305 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17306 # positional parameters, so assign one to ordinary parameter first.
17307 func_stripname_result=${3}
17308 func_stripname_result=${func_stripname_result#"${1}"}
17309 func_stripname_result=${func_stripname_result%"${2}"}
17310}
17311
17312# func_opt_split
17313func_opt_split ()
17314{
17315 func_opt_split_opt=${1%%=*}
17316 func_opt_split_arg=${1#*=}
17317}
17318
17319# func_lo2o object
17320func_lo2o ()
17321{
17322 case ${1} in
17323 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17324 *) func_lo2o_result=${1} ;;
17325 esac
17326}
17327
17328# func_xform libobj-or-source
17329func_xform ()
17330{
17331 func_xform_result=${1%.*}.lo
17332}
17333
17334# func_arith arithmetic-term...
17335func_arith ()
17336{
17337 func_arith_result=$(( $* ))
17338}
17339
17340# func_len string
17341# STRING may not start with a hyphen.
17342func_len ()
17343{
17344 func_len_result=${#1}
17345}
17346
17347_LT_EOF
17348 ;;
17349 *) # Bourne compatible functions.
17350 cat << \_LT_EOF >> "$cfgfile"
17351
17352# func_dirname file append nondir_replacement
17353# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17354# otherwise set result to NONDIR_REPLACEMENT.
17355func_dirname ()
17356{
17357 # Extract subdirectory from the argument.
17358 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17359 if test "X$func_dirname_result" = "X${1}"; then
17360 func_dirname_result="${3}"
17361 else
17362 func_dirname_result="$func_dirname_result${2}"
17363 fi
17364}
17365
17366# func_basename file
17367func_basename ()
17368{
17369 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17370}
17371
17372
17373# func_stripname prefix suffix name
17374# strip PREFIX and SUFFIX off of NAME.
17375# PREFIX and SUFFIX must not contain globbing or regex special
17376# characters, hashes, percent signs, but SUFFIX may contain a leading
17377# dot (in which case that matches only a dot).
17378# func_strip_suffix prefix name
17379func_stripname ()
17380{
17381 case ${2} in
17382 .*) func_stripname_result=`$ECHO "X${3}" \
17383 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17384 *) func_stripname_result=`$ECHO "X${3}" \
17385 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17386 esac
17387}
17388
17389# sed scripts:
17390my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17391my_sed_long_arg='1s/^-[^=]*=//'
17392
17393# func_opt_split
17394func_opt_split ()
17395{
17396 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17397 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17398}
17399
17400# func_lo2o object
17401func_lo2o ()
17402{
17403 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17404}
17405
17406# func_xform libobj-or-source
17407func_xform ()
17408{
17409 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17410}
17411
17412# func_arith arithmetic-term...
17413func_arith ()
17414{
17415 func_arith_result=`expr "$@"`
17416}
17417
17418# func_len string
17419# STRING may not start with a hyphen.
17420func_len ()
17421{
17422 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17423}
17424
17425_LT_EOF
17426esac
17427
17428case $lt_shell_append in
17429 yes)
17430 cat << \_LT_EOF >> "$cfgfile"
17431
17432# func_append var value
17433# Append VALUE to the end of shell variable VAR.
17434func_append ()
17435{
17436 eval "$1+=\$2"
17437}
17438_LT_EOF
17439 ;;
17440 *)
17441 cat << \_LT_EOF >> "$cfgfile"
17442
17443# func_append var value
17444# Append VALUE to the end of shell variable VAR.
17445func_append ()
17446{
17447 eval "$1=\$$1\$2"
17448}
17449
17450_LT_EOF
17451 ;;
17452 esac
17453
17454
17455 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17456 || (rm -f "$cfgfile"; exit 1)
17457
17458 mv -f "$cfgfile" "$ofile" ||
17459 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17460 chmod +x "$ofile"
17461
17462
17463 cat <<_LT_EOF >> "$ofile"
17464
17465# ### BEGIN LIBTOOL TAG CONFIG: CXX
17466
17467# The linker used to build libraries.
17468LD=$lt_LD_CXX
17469
17470# Commands used to build an old-style archive.
17471old_archive_cmds=$lt_old_archive_cmds_CXX
17472
17473# A language specific compiler.
17474CC=$lt_compiler_CXX
17475
17476# Is the compiler the GNU compiler?
17477with_gcc=$GCC_CXX
17478
17479# Compiler flag to turn off builtin functions.
17480no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17481
17482# How to pass a linker flag through the compiler.
17483wl=$lt_lt_prog_compiler_wl_CXX
17484
17485# Additional compiler flags for building library objects.
17486pic_flag=$lt_lt_prog_compiler_pic_CXX
17487
17488# Compiler flag to prevent dynamic linking.
17489link_static_flag=$lt_lt_prog_compiler_static_CXX
17490
17491# Does compiler simultaneously support -c and -o options?
17492compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17493
17494# Whether or not to add -lc for building shared libraries.
17495build_libtool_need_lc=$archive_cmds_need_lc_CXX
17496
17497# Whether or not to disallow shared libs when runtime libs are static.
17498allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17499
17500# Compiler flag to allow reflexive dlopens.
17501export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17502
17503# Compiler flag to generate shared objects directly from archives.
17504whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17505
17506# Whether the compiler copes with passing no objects directly.
17507compiler_needs_object=$lt_compiler_needs_object_CXX
17508
17509# Create an old-style archive from a shared archive.
17510old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17511
17512# Create a temporary old-style archive to link instead of a shared archive.
17513old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17514
17515# Commands used to build a shared archive.
17516archive_cmds=$lt_archive_cmds_CXX
17517archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17518
17519# Commands used to build a loadable module if different from building
17520# a shared archive.
17521module_cmds=$lt_module_cmds_CXX
17522module_expsym_cmds=$lt_module_expsym_cmds_CXX
17523
17524# Whether we are building with GNU ld or not.
17525with_gnu_ld=$lt_with_gnu_ld_CXX
17526
17527# Flag that allows shared libraries with undefined symbols to be built.
17528allow_undefined_flag=$lt_allow_undefined_flag_CXX
17529
17530# Flag that enforces no undefined symbols.
17531no_undefined_flag=$lt_no_undefined_flag_CXX
17532
17533# Flag to hardcode \$libdir into a binary during linking.
17534# This must work even if \$libdir does not exist
17535hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17536
17537# If ld is used when linking, flag to hardcode \$libdir into a binary
17538# during linking. This must work even if \$libdir does not exist.
17539hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17540
17541# Whether we need a single "-rpath" flag with a separated argument.
17542hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17543
17544# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17545# DIR into the resulting binary.
17546hardcode_direct=$hardcode_direct_CXX
17547
17548# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17549# DIR into the resulting binary and the resulting library dependency is
17550# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17551# library is relocated.
17552hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17553
17554# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17555# into the resulting binary.
17556hardcode_minus_L=$hardcode_minus_L_CXX
17557
17558# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17559# into the resulting binary.
17560hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17561
17562# Set to "yes" if building a shared library automatically hardcodes DIR
17563# into the library and all subsequent libraries and executables linked
17564# against it.
17565hardcode_automatic=$hardcode_automatic_CXX
17566
17567# Set to yes if linker adds runtime paths of dependent libraries
17568# to runtime path list.
17569inherit_rpath=$inherit_rpath_CXX
17570
17571# Whether libtool must link a program against all its dependency libraries.
17572link_all_deplibs=$link_all_deplibs_CXX
17573
17574# Fix the shell variable \$srcfile for the compiler.
17575fix_srcfile_path=$lt_fix_srcfile_path_CXX
17576
17577# Set to "yes" if exported symbols are required.
17578always_export_symbols=$always_export_symbols_CXX
17579
17580# The commands to list exported symbols.
17581export_symbols_cmds=$lt_export_symbols_cmds_CXX
17582
17583# Symbols that should not be listed in the preloaded symbols.
17584exclude_expsyms=$lt_exclude_expsyms_CXX
17585
17586# Symbols that must always be exported.
17587include_expsyms=$lt_include_expsyms_CXX
17588
17589# Commands necessary for linking programs (against libraries) with templates.
17590prelink_cmds=$lt_prelink_cmds_CXX
17591
17592# Specify filename containing input files.
17593file_list_spec=$lt_file_list_spec_CXX
17594
17595# How to hardcode a shared library path into an executable.
17596hardcode_action=$hardcode_action_CXX
17597
17598# The directories searched by this compiler when creating a shared library.
17599compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17600
17601# Dependencies to place before and after the objects being linked to
17602# create a shared library.
17603predep_objects=$lt_predep_objects_CXX
17604postdep_objects=$lt_postdep_objects_CXX
17605predeps=$lt_predeps_CXX
17606postdeps=$lt_postdeps_CXX
17607
17608# The library search path used internally by the compiler when linking
17609# a shared library.
17610compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17611
17612# ### END LIBTOOL TAG CONFIG: CXX
17613_LT_EOF
17614
brynercb91a2f2006-08-25 21:14:45 +000017615 ;;
brynercb91a2f2006-08-25 21:14:45 +000017616
mmentovai8c2a4de2006-09-20 16:20:15 +000017617 esac
17618done # for ac_tag
17619
brynercb91a2f2006-08-25 21:14:45 +000017620
jimblandy92b1f832009-12-23 22:23:49 +000017621as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +000017622_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000017623ac_clean_files=$ac_clean_files_save
17624
jimblandy92b1f832009-12-23 22:23:49 +000017625test $ac_write_fail = 0 ||
ted.mielczareke574a2a2010-10-05 19:38:22 +000017626 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000017627
brynercb91a2f2006-08-25 21:14:45 +000017628
17629# configure is writing to config.log, and then calls config.status.
17630# config.status does its own redirection, appending to config.log.
17631# Unfortunately, on DOS this fails, as config.log is still kept open
17632# by configure, so config.status won't be able to write to it; its
17633# output is simply discarded. So we exec the FD to /dev/null,
17634# effectively closing config.log, so it can be properly (re)opened and
17635# appended to by config.status. When coming back to configure, we
17636# need to make the FD available again.
17637if test "$no_create" != yes; then
17638 ac_cs_success=:
17639 ac_config_status_args=
17640 test "$silent" = yes &&
17641 ac_config_status_args="$ac_config_status_args --quiet"
17642 exec 5>/dev/null
17643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17644 exec 5>>config.log
17645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17646 # would make configure fail if this is the last instruction.
ted.mielczareke574a2a2010-10-05 19:38:22 +000017647 $ac_cs_success || as_fn_exit $?
jimblandy92b1f832009-12-23 22:23:49 +000017648fi
17649if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17651$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000017652fi
17653