blob: 1400d3ac854114bd5f216f60e9b4c42e6971eaa2 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003# Generated by GNU Autoconf 2.60.
Lev Walkinf15320b2004-06-03 03:38:44 +00004#
Lev Walkin27fd0b62007-08-27 23:57:45 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000020 setopt NO_GLOB_SUBST
21else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +000023fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000024BIN_SH=xpg4; export BIN_SH # for Tru64
Lev Walkin8e8b5482004-06-17 23:42:48 +000025DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000026
Lev Walkinf15320b2004-06-03 03:38:44 +000027
Lev Walkin27fd0b62007-08-27 23:57:45 +000028# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000029# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47fi
48
Lev Walkin27fd0b62007-08-27 23:57:45 +000049# Support unset when possible.
50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52else
53 as_unset=false
54fi
Lev Walkinf15320b2004-06-03 03:38:44 +000055
Lev Walkin27fd0b62007-08-27 23:57:45 +000056
57# IFS
58# We need space, tab and new line, in precisely that order. Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
62as_nl='
63'
64IFS=" "" $as_nl"
65
66# Find who we are. Look in the path if we contain no directory separator.
67case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000070for as_dir in $PATH
71do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
Lev Walkin27fd0b62007-08-27 23:57:45 +000076IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000077
Lev Walkin27fd0b62007-08-27 23:57:45 +000078 ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83 as_myself=$0
84fi
85if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88fi
89
90# Work around bugs in pre-3.0 UWIN ksh.
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Lev Walkinf15320b2004-06-03 03:38:44 +0000108 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000109done
110
111# Required to use basename.
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115else
116 as_expr=false
117fi
118
119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121else
122 as_basename=false
123fi
124
125
126# Name of the executable.
127as_me=`$as_basename -- "$0" ||
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146# CDPATH.
147$as_unset CDPATH
148
149
150if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153else
154 as_have_required=no
155fi
156
157 if test $as_have_required = yes && (eval ":
158(as_func_return () {
159 (exit \$1)
160}
161as_func_success () {
162 as_func_return 0
163}
164as_func_failure () {
165 as_func_return 1
166}
167as_func_ret_success () {
168 return 0
169}
170as_func_ret_failure () {
171 return 1
172}
173
174exitcode=0
175if as_func_success; then
176 :
177else
178 exitcode=1
179 echo as_func_success failed.
180fi
181
182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201else
202 exitcode=1
203 echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
Lev Walkin4da95cf2010-10-16 02:46:32 -0700213
214(
215 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
216 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
217 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
218 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
219 PATH=/empty FPATH=/empty; export PATH FPATH
220 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
221 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" )) || { (exit 1); exit 1; }
Lev Walkin27fd0b62007-08-27 23:57:45 +0000222") 2> /dev/null; then
223 :
224else
225 as_candidate_shells=
Lev Walkinf15320b2004-06-03 03:38:44 +0000226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +0000227for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +0000228do
229 IFS=$as_save_IFS
230 test -z "$as_dir" && as_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000231 case $as_dir in
Lev Walkinf15320b2004-06-03 03:38:44 +0000232 /*)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 done;;
236 esac
237done
238IFS=$as_save_IFS
239
240
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245# Be Bourne compatible
246if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 emulate sh
248 NULLCMD=:
249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
250 # is contrary to our usage. Disable this feature.
251 alias -g '${1+"$@"}'='"$@"'
252 setopt NO_GLOB_SUBST
253else
254 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
255fi
256BIN_SH=xpg4; export BIN_SH # for Tru64
257DUALCASE=1; export DUALCASE # for MKS sh
258
259:
260_ASEOF
261}; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265# Be Bourne compatible
266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 emulate sh
268 NULLCMD=:
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273else
274 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
275fi
276BIN_SH=xpg4; export BIN_SH # for Tru64
277DUALCASE=1; export DUALCASE # for MKS sh
278
279:
280(as_func_return () {
281 (exit $1)
282}
283as_func_success () {
284 as_func_return 0
285}
286as_func_failure () {
287 as_func_return 1
288}
289as_func_ret_success () {
290 return 0
291}
292as_func_ret_failure () {
293 return 1
294}
295
296exitcode=0
297if as_func_success; then
298 :
299else
300 exitcode=1
301 echo as_func_success failed.
302fi
303
304if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310 :
311else
312 exitcode=1
313 echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322 :
323else
324 exitcode=1
325 echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
Lev Walkinf15320b2004-06-03 03:38:44 +0000331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +0000333 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
Lev Walkin4da95cf2010-10-16 02:46:32 -0700336(
337 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
338 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
339 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
340 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
341 PATH=/empty FPATH=/empty; export PATH FPATH
342 test "X`printf %s $ECHO`" = "X$ECHO" \
343 || test "X`print -r -- $ECHO`" = "X$ECHO" )) || { (exit 1); exit 1; }
344
Lev Walkin27fd0b62007-08-27 23:57:45 +0000345_ASEOF
346}; then
347 break
348fi
349
350fi
351
352 done
353
354 if test "x$CONFIG_SHELL" != x; then
355 for as_var in BASH_ENV ENV
356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
357 done
358 export CONFIG_SHELL
359 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
360fi
361
362
363 if test $as_have_required = no; then
364 echo This script requires a shell more modern than all the
365 echo shells that I found on your system. Please install a
366 echo modern shell, or manually run the script under such a
367 echo shell if you do have one.
368 { (exit 1); exit 1; }
369fi
370
371
372fi
373
374fi
375
376
377
378(eval "as_func_return () {
379 (exit \$1)
380}
381as_func_success () {
382 as_func_return 0
383}
384as_func_failure () {
385 as_func_return 1
386}
387as_func_ret_success () {
388 return 0
389}
390as_func_ret_failure () {
391 return 1
392}
393
394exitcode=0
395if as_func_success; then
396 :
397else
398 exitcode=1
399 echo as_func_success failed.
400fi
401
402if as_func_failure; then
403 exitcode=1
404 echo as_func_failure succeeded.
405fi
406
407if as_func_ret_success; then
408 :
409else
410 exitcode=1
411 echo as_func_ret_success failed.
412fi
413
414if as_func_ret_failure; then
415 exitcode=1
416 echo as_func_ret_failure succeeded.
417fi
418
419if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
420 :
421else
422 exitcode=1
423 echo positional parameters were not saved.
424fi
425
426test \$exitcode = 0") || {
427 echo No shell found that supports shell functions.
428 echo Please tell autoconf@gnu.org about your system,
429 echo including any error possibly output before this
430 echo message
431}
432
433
434
435 as_lineno_1=$LINENO
436 as_lineno_2=$LINENO
437 test "x$as_lineno_1" != "x$as_lineno_2" &&
438 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +0000439
440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
441 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +0000442 # line-number line after each line using $LINENO; the second 'sed'
443 # does the real work. The second script uses 'N' to pair each
444 # line-number line with the line containing $LINENO, and appends
445 # trailing '-' during substitution so that $LINENO is not a special
446 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +0000447 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000448 # scripts with optimization help from Paolo Bonzini. Blame Lee
449 # E. McMahon (1931-1989) for sed's syntax. :-)
450 sed -n '
451 p
452 /[$]LINENO/=
453 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000454 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000455 s/[$]LINENO.*/&-/
456 t lineno
457 b
458 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000459 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000460 :loop
461 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000462 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000463 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000464 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000465 chmod +x "$as_me.lineno" ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000466 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
467 { (exit 1); exit 1; }; }
468
469 # Don't try to exec as it changes $[0], causing all sort of problems
470 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000471 # original and so on. Autoconf is especially sensitive to this).
472 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000473 # Exit status is that of the last command.
474 exit
475}
476
477
Lev Walkin27fd0b62007-08-27 23:57:45 +0000478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
479 as_dirname=dirname
480else
481 as_dirname=false
482fi
483
484ECHO_C= ECHO_N= ECHO_T=
485case `echo -n x` in
486-n*)
487 case `echo 'x\c'` in
488 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
489 *) ECHO_C='\c';;
490 esac;;
491*)
492 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000493esac
494
Lev Walkin27fd0b62007-08-27 23:57:45 +0000495if expr a : '\(a\)' >/dev/null 2>&1 &&
496 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +0000497 as_expr=expr
498else
499 as_expr=false
500fi
501
502rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000503if test -d conf$$.dir; then
504 rm -f conf$$.dir/conf$$.file
505else
506 rm -f conf$$.dir
507 mkdir conf$$.dir
508fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000509echo >conf$$.file
510if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000511 as_ln_s='ln -s'
512 # ... but there are two gotchas:
513 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
515 # In both cases, we have to default to `cp -p'.
516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000517 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +0000518elif ln conf$$.file conf$$ 2>/dev/null; then
519 as_ln_s=ln
520else
521 as_ln_s='cp -p'
522fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000523rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
524rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000525
526if mkdir -p . 2>/dev/null; then
527 as_mkdir_p=:
528else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000529 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000530 as_mkdir_p=false
531fi
532
Lev Walkin27fd0b62007-08-27 23:57:45 +0000533# Find out whether ``test -x'' works. Don't use a zero-byte file, as
534# systems may use methods other than mode bits to determine executability.
535cat >conf$$.file <<_ASEOF
536#! /bin/sh
537exit 0
538_ASEOF
539chmod +x conf$$.file
540if test -x conf$$.file >/dev/null 2>&1; then
541 as_executable_p="test -x"
542else
543 as_executable_p=:
544fi
545rm -f conf$$.file
Lev Walkinf15320b2004-06-03 03:38:44 +0000546
547# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000549
550# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000552
553
Lev Walkin8e8b5482004-06-17 23:42:48 +0000554SHELL=${CONFIG_SHELL-/bin/sh}
555
Lev Walkin8e8b5482004-06-17 23:42:48 +0000556
Lev Walkin27fd0b62007-08-27 23:57:45 +0000557exec 7<&0 </dev/null 6>&1
558
Lev Walkinf15320b2004-06-03 03:38:44 +0000559# Name of the host.
560# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
Lev Walkinf15320b2004-06-03 03:38:44 +0000564#
565# Initializations.
566#
567ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000568ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000569ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000570LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
575SHELL=${CONFIG_SHELL-/bin/sh}
576
Lev Walkinf15320b2004-06-03 03:38:44 +0000577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583
584ac_unique_file="libasn1parser/asn1p_y.y"
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#if HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#if HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#if STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# if HAVE_STDLIB_H
599# include <stdlib.h>
600# endif
601#endif
602#if HAVE_STRING_H
603# if !STDC_HEADERS && HAVE_MEMORY_H
604# include <memory.h>
605# endif
606# include <string.h>
607#endif
608#if HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#if HAVE_INTTYPES_H
612# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000613#endif
614#if HAVE_STDINT_H
615# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000616#endif
617#if HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
Lev Walkin27fd0b62007-08-27 23:57:45 +0000621ac_subst_vars='SHELL
622PATH_SEPARATOR
623PACKAGE_NAME
624PACKAGE_TARNAME
625PACKAGE_VERSION
626PACKAGE_STRING
627PACKAGE_BUGREPORT
628exec_prefix
629prefix
630program_transform_name
631bindir
632sbindir
633libexecdir
634datarootdir
635datadir
636sysconfdir
637sharedstatedir
638localstatedir
639includedir
640oldincludedir
641docdir
642infodir
643htmldir
644dvidir
645pdfdir
646psdir
647libdir
648localedir
649mandir
650DEFS
651ECHO_C
652ECHO_N
653ECHO_T
654LIBS
655build_alias
656host_alias
657target_alias
658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666target
667target_cpu
668target_vendor
669target_os
670INSTALL_PROGRAM
671INSTALL_SCRIPT
672INSTALL_DATA
673CYGPATH_W
674PACKAGE
675VERSION
676ACLOCAL
677AUTOCONF
678AUTOMAKE
679AUTOHEADER
680MAKEINFO
681install_sh
682STRIP
683INSTALL_STRIP_PROGRAM
684mkdir_p
685AWK
686SET_MAKE
687am__leading_dot
688AMTAR
689am__tar
690am__untar
691MAINTAINER_MODE_TRUE
692MAINTAINER_MODE_FALSE
693MAINT
Lev Walkin4da95cf2010-10-16 02:46:32 -0700694LIBTOOL
Lev Walkin27fd0b62007-08-27 23:57:45 +0000695CC
696CFLAGS
697LDFLAGS
698CPPFLAGS
699ac_ct_CC
700EXEEXT
701OBJEXT
702DEPDIR
703am__include
704am__quote
705AMDEP_TRUE
706AMDEP_FALSE
707AMDEPBACKSLASH
708CCDEPMODE
709am__fastdepCC_TRUE
710am__fastdepCC_FALSE
Lev Walkin4da95cf2010-10-16 02:46:32 -0700711SED
Lev Walkin27fd0b62007-08-27 23:57:45 +0000712GREP
713EGREP
Lev Walkin4da95cf2010-10-16 02:46:32 -0700714FGREP
715LD
716DUMPBIN
717ac_ct_DUMPBIN
718NM
Lev Walkin27fd0b62007-08-27 23:57:45 +0000719LN_S
Lev Walkin4da95cf2010-10-16 02:46:32 -0700720OBJDUMP
721DLLTOOL
Lev Walkin27fd0b62007-08-27 23:57:45 +0000722AR
Lev Walkin4da95cf2010-10-16 02:46:32 -0700723ac_ct_AR
Lev Walkin27fd0b62007-08-27 23:57:45 +0000724RANLIB
Lev Walkin4da95cf2010-10-16 02:46:32 -0700725MANIFEST_TOOL
726DSYMUTIL
727NMEDIT
728LIPO
729OTOOL
730OTOOL64
Lev Walkin27fd0b62007-08-27 23:57:45 +0000731CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000732CONFIGURE_DEPENDS
733YACC
734YFLAGS
735LEX
736LEXLIB
737LEX_OUTPUT_ROOT
738ADD_CFLAGS
739LIBOBJS
740LTLIBOBJS'
Lev Walkinf15320b2004-06-03 03:38:44 +0000741ac_subst_files=''
Lev Walkin27fd0b62007-08-27 23:57:45 +0000742 ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748CPPFLAGS
749CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000750YACC
751YFLAGS'
752
Lev Walkinf15320b2004-06-03 03:38:44 +0000753
754# Initialize some variables set by options.
755ac_init_help=
756ac_init_version=false
757# The variables have the same names as the options, with
758# dashes changed to underlines.
759cache_file=/dev/null
760exec_prefix=NONE
761no_create=
762no_recursion=
763prefix=NONE
764program_prefix=NONE
765program_suffix=NONE
766program_transform_name=s,x,x,
767silent=
768site=
769srcdir=
770verbose=
771x_includes=NONE
772x_libraries=NONE
773
774# Installation directory options.
775# These are left unexpanded so users can "make install exec_prefix=/foo"
776# and all the variables that are supposed to be based on exec_prefix
777# by default will actually change.
778# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000779# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000780bindir='${exec_prefix}/bin'
781sbindir='${exec_prefix}/sbin'
782libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000783datarootdir='${prefix}/share'
784datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000785sysconfdir='${prefix}/etc'
786sharedstatedir='${prefix}/com'
787localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000788includedir='${prefix}/include'
789oldincludedir='/usr/include'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000790docdir='${datarootdir}/doc/${PACKAGE}'
791infodir='${datarootdir}/info'
792htmldir='${docdir}'
793dvidir='${docdir}'
794pdfdir='${docdir}'
795psdir='${docdir}'
796libdir='${exec_prefix}/lib'
797localedir='${datarootdir}/locale'
798mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000799
800ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000801ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000802for ac_option
803do
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000806 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000807 ac_prev=
808 continue
809 fi
810
Lev Walkin27fd0b62007-08-27 23:57:45 +0000811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000815
816 # Accept the important Cygnus configure options, so we can diagnose typos.
817
Lev Walkin27fd0b62007-08-27 23:57:45 +0000818 case $ac_dashdash$ac_option in
819 --)
820 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000821
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
826
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
831
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
838
839 --config-cache | -C)
840 cache_file=config.cache ;;
841
Lev Walkin27fd0b62007-08-27 23:57:45 +0000842 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000843 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000845 datadir=$ac_optarg ;;
846
Lev Walkin27fd0b62007-08-27 23:57:45 +0000847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
853
Lev Walkinf15320b2004-06-03 03:38:44 +0000854 -disable-* | --disable-*)
855 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
860 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +0000861 eval enable_$ac_feature=no ;;
862
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
867
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000872
873 -enable-* | --enable-*)
874 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
877 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
878 { (exit 1); exit 1; }; }
879 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +0000880 eval enable_$ac_feature=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
901
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
906
Lev Walkin27fd0b62007-08-27 23:57:45 +0000907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
Lev Walkinf15320b2004-06-03 03:38:44 +0000913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
928 libdir=$ac_optarg ;;
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
936
Lev Walkin27fd0b62007-08-27 23:57:45 +0000937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
Lev Walkinf15320b2004-06-03 03:38:44 +0000942 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000943 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +0000944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000947 localstatedir=$ac_optarg ;;
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 mandir=$ac_optarg ;;
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978 prefix=$ac_optarg ;;
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1010
Lev Walkin27fd0b62007-08-27 23:57:45 +00001011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
Lev Walkinf15320b2004-06-03 03:38:44 +00001021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
1071 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package| sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001077 eval with_$ac_package=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001078
1079 -without-* | --without-*)
1080 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_package=`echo $ac_package | sed 's/-/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001086 eval with_$ac_package=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001087
1088 --x)
1089 # Obsolete; use --with-x.
1090 with_x=yes ;;
1091
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1098
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1105
1106 -*) { echo "$as_me: error: unrecognized option: $ac_option
1107Try \`$0 --help' for more information." >&2
1108 { (exit 1); exit 1; }; }
1109 ;;
1110
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1116 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001117 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001118 export $ac_envvar ;;
1119
1120 *)
1121 # FIXME: should be removed in autoconf 3.0.
1122 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 ;;
1127
1128 esac
1129done
1130
1131if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 { echo "$as_me: error: missing argument to $ac_option" >&2
1134 { (exit 1); exit 1; }; }
1135fi
1136
Lev Walkin27fd0b62007-08-27 23:57:45 +00001137# Be sure to have absolute directory names.
1138for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139 datadir sysconfdir sharedstatedir localstatedir includedir \
1140 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001142do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001143 eval ac_val=\$$ac_var
Lev Walkinf15320b2004-06-03 03:38:44 +00001144 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001145 [\\/$]* | ?:[\\/]* ) continue;;
1146 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001147 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001148 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1149 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001150done
1151
1152# There might be people who depend on the old broken behavior: `$host'
1153# used to hold the argument of --host etc.
1154# FIXME: To remove some day.
1155build=$build_alias
1156host=$host_alias
1157target=$target_alias
1158
1159# FIXME: To remove some day.
1160if test "x$host_alias" != x; then
1161 if test "x$build_alias" = x; then
1162 cross_compiling=maybe
1163 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1166 cross_compiling=yes
1167 fi
1168fi
1169
1170ac_tool_prefix=
1171test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172
1173test "$silent" = yes && exec 6>/dev/null
1174
1175
Lev Walkin27fd0b62007-08-27 23:57:45 +00001176ac_pwd=`pwd` && test -n "$ac_pwd" &&
1177ac_ls_di=`ls -di .` &&
1178ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1179 { echo "$as_me: error: Working directory cannot be determined" >&2
1180 { (exit 1); exit 1; }; }
1181test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182 { echo "$as_me: error: pwd does not report name of working directory" >&2
1183 { (exit 1); exit 1; }; }
1184
1185
Lev Walkinf15320b2004-06-03 03:38:44 +00001186# Find the source files, if location was not specified.
1187if test -z "$srcdir"; then
1188 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001189 # Try the directory containing this script, then the parent directory.
1190 ac_confdir=`$as_dirname -- "$0" ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001191$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001192 X"$0" : 'X\(//\)[^/]' \| \
1193 X"$0" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001194 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001195echo X"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)[^/].*/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)$/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\).*/{
1209 s//\1/
1210 q
1211 }
1212 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001213 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001214 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001215 srcdir=..
1216 fi
1217else
1218 ac_srcdir_defaulted=no
1219fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001220if test ! -r "$srcdir/$ac_unique_file"; then
1221 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001223 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001224fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001225ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226ac_abs_confdir=`(
1227 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001228 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001229 pwd)`
1230# When building in place, set srcdir=.
1231if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 srcdir=.
1233fi
1234# Remove unnecessary trailing slashes from srcdir.
1235# Double slashes in file names in object file debugging info
1236# mess up M-x gdb in Emacs.
1237case $srcdir in
1238*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239esac
1240for ac_var in $ac_precious_vars; do
1241 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1242 eval ac_env_${ac_var}_value=\$${ac_var}
1243 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1244 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245done
Lev Walkinf15320b2004-06-03 03:38:44 +00001246
1247#
1248# Report the --help message.
1249#
1250if test "$ac_init_help" = "long"; then
1251 # Omit some internal or obsolete options to make the list less imposing.
1252 # This message is too long to be a string in the A/UX 3.1 sh.
1253 cat <<_ACEOF
1254\`configure' configures this package to adapt to many kinds of systems.
1255
1256Usage: $0 [OPTION]... [VAR=VALUE]...
1257
1258To assign environment variables (e.g., CC, CFLAGS...), specify them as
1259VAR=VALUE. See below for descriptions of some of the useful variables.
1260
1261Defaults for the options are specified in brackets.
1262
1263Configuration:
1264 -h, --help display this help and exit
1265 --help=short display options specific to this package
1266 --help=recursive display the short help of all the included packages
1267 -V, --version display version information and exit
1268 -q, --quiet, --silent do not print \`checking...' messages
1269 --cache-file=FILE cache test results in FILE [disabled]
1270 -C, --config-cache alias for \`--cache-file=config.cache'
1271 -n, --no-create do not create output files
1272 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273
Lev Walkinf15320b2004-06-03 03:38:44 +00001274Installation directories:
1275 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001276 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001277 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001278 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001279
1280By default, \`make install' will install all the files in
1281\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1282an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1283for instance \`--prefix=\$HOME'.
1284
1285For better control, use the options below.
1286
1287Fine tuning of the installation directories:
1288 --bindir=DIR user executables [EPREFIX/bin]
1289 --sbindir=DIR system admin executables [EPREFIX/sbin]
1290 --libexecdir=DIR program executables [EPREFIX/libexec]
Lev Walkinf15320b2004-06-03 03:38:44 +00001291 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1292 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1293 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1294 --libdir=DIR object code libraries [EPREFIX/lib]
1295 --includedir=DIR C header files [PREFIX/include]
1296 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001297 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1298 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1299 --infodir=DIR info documentation [DATAROOTDIR/info]
1300 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1301 --mandir=DIR man documentation [DATAROOTDIR/man]
1302 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1303 --htmldir=DIR html documentation [DOCDIR]
1304 --dvidir=DIR dvi documentation [DOCDIR]
1305 --pdfdir=DIR pdf documentation [DOCDIR]
1306 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001307_ACEOF
1308
1309 cat <<\_ACEOF
1310
1311Program names:
1312 --program-prefix=PREFIX prepend PREFIX to installed program names
1313 --program-suffix=SUFFIX append SUFFIX to installed program names
1314 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1315
1316System types:
1317 --build=BUILD configure for building on BUILD [guessed]
1318 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1319 --target=TARGET configure for building compilers for TARGET [HOST]
1320_ACEOF
1321fi
1322
1323if test -n "$ac_init_help"; then
1324
1325 cat <<\_ACEOF
1326
1327Optional Features:
1328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001330 --enable-maintainer-mode enable make rules and dependencies not useful
1331 (and sometimes confusing) to the casual installer
Lev Walkin27fd0b62007-08-27 23:57:45 +00001332 --enable-shared[=PKGS] build shared libraries [default=yes]
1333 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001334 --enable-fast-install[=PKGS]
1335 optimize for fast installation [default=yes]
1336 --disable-dependency-tracking speeds up one-time build
1337 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001338 --disable-libtool-lock avoid locking (might break parallel builds)
1339 --disable-autoconf disable automatic generation of configure script
1340 --enable-Werror abort compilation after any C compiler warning
1341
1342Optional Packages:
1343 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1344 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001345 --with-pic try to use only PIC/non-PIC objects [default=use
1346 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001347 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1348 --with-sysroot=DIR Search for dependent libraries within DIR
1349 (or the compiler's sysroot if not specified).
Lev Walkinf15320b2004-06-03 03:38:44 +00001350
1351Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
Lev Walkin27fd0b62007-08-27 23:57:45 +00001356 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001358 CPP C preprocessor
Lev Walkin27fd0b62007-08-27 23:57:45 +00001359 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1360 the first program found out of: `bison -y', `byacc', `yacc'.
1361 YFLAGS The list of arguments that will be passed by default to $YACC.
1362 This script will default YFLAGS to the empty string to avoid a
1363 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001364
1365Use these variables to override the choices made by `configure' or to help
1366it to find libraries and programs with nonstandard names/locations.
1367
1368_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001369ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001370fi
1371
1372if test "$ac_init_help" = "recursive"; then
1373 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001374 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00001375 test -d "$ac_dir" || continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001376 ac_builddir=.
1377
Lev Walkin27fd0b62007-08-27 23:57:45 +00001378case "$ac_dir" in
1379.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001381 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001382 # A ".." for each directory in $ac_dir_suffix.
1383 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1384 case $ac_top_builddir_sub in
1385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 esac ;;
1388esac
1389ac_abs_top_builddir=$ac_pwd
1390ac_abs_builddir=$ac_pwd$ac_dir_suffix
1391# for backward compatibility:
1392ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001393
1394case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001395 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001396 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001397 ac_top_srcdir=$ac_top_builddir_sub
1398 ac_abs_top_srcdir=$ac_pwd ;;
1399 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001400 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001401 ac_top_srcdir=$srcdir
1402 ac_abs_top_srcdir=$srcdir ;;
1403 *) # Relative name.
1404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1405 ac_top_srcdir=$ac_top_build_prefix$srcdir
1406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001407esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001408ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001409
Lev Walkin27fd0b62007-08-27 23:57:45 +00001410 cd "$ac_dir" || { ac_status=$?; continue; }
1411 # Check for guested configure.
1412 if test -f "$ac_srcdir/configure.gnu"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1415 elif test -f "$ac_srcdir/configure"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001418 else
1419 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001420 fi || ac_status=$?
1421 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001422 done
1423fi
1424
Lev Walkin27fd0b62007-08-27 23:57:45 +00001425test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001426if $ac_init_version; then
1427 cat <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001428configure
1429generated by GNU Autoconf 2.60
Lev Walkinf15320b2004-06-03 03:38:44 +00001430
Lev Walkin27fd0b62007-08-27 23:57:45 +00001431Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14322002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001433This configure script is free software; the Free Software Foundation
1434gives unlimited permission to copy, distribute and modify it.
1435_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001436 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001437fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001438cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001439This file contains any messages produced by compilers while
1440running configure, to aid debugging if configure makes a mistake.
1441
1442It was created by $as_me, which was
Lev Walkin27fd0b62007-08-27 23:57:45 +00001443generated by GNU Autoconf 2.60. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001444
1445 $ $0 $@
1446
1447_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001448exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001449{
1450cat <<_ASUNAME
1451## --------- ##
1452## Platform. ##
1453## --------- ##
1454
1455hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1456uname -m = `(uname -m) 2>/dev/null || echo unknown`
1457uname -r = `(uname -r) 2>/dev/null || echo unknown`
1458uname -s = `(uname -s) 2>/dev/null || echo unknown`
1459uname -v = `(uname -v) 2>/dev/null || echo unknown`
1460
1461/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1462/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1463
1464/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1465/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1466/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001467/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001468/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1469/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1470/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471
1472_ASUNAME
1473
1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475for as_dir in $PATH
1476do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 echo "PATH: $as_dir"
1480done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001481IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001482
1483} >&5
1484
1485cat >&5 <<_ACEOF
1486
1487
1488## ----------- ##
1489## Core tests. ##
1490## ----------- ##
1491
1492_ACEOF
1493
1494
1495# Keep a trace of the command line.
1496# Strip out --no-create and --no-recursion so they do not pile up.
1497# Strip out --silent because we don't want to record it for future runs.
1498# Also quote any args containing shell meta-characters.
1499# Make two passes to allow for proper duplicate-argument suppression.
1500ac_configure_args=
1501ac_configure_args0=
1502ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001503ac_must_keep_next=false
1504for ac_pass in 1 2
1505do
1506 for ac_arg
1507 do
1508 case $ac_arg in
1509 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001513 *\'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001514 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 esac
1516 case $ac_pass in
1517 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 2)
1519 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1520 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001521 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001522 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001523 case $ac_arg in
1524 *=* | --config-cache | -C | -disable-* | --disable-* \
1525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1527 | -with-* | --with-* | -without-* | --without-* | --x)
1528 case "$ac_configure_args0 " in
1529 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 esac
1531 ;;
1532 -* ) ac_must_keep_next=true ;;
1533 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001534 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001535 ac_configure_args="$ac_configure_args '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001536 ;;
1537 esac
1538 done
1539done
1540$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1541$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542
1543# When interrupted or exit'd, cleanup temporary files, and complete
1544# config.log. We remove comments because anyway the quotes in there
1545# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001546# WARNING: Use '\'' to represent an apostrophe within the trap.
1547# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00001548trap 'exit_status=$?
1549 # Save into config.log some information that might help in debugging.
1550 {
1551 echo
1552
1553 cat <<\_ASBOX
1554## ---------------- ##
1555## Cache variables. ##
1556## ---------------- ##
1557_ASBOX
1558 echo
1559 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00001560(
1561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1562 eval ac_val=\$$ac_var
1563 case $ac_val in #(
1564 *${as_nl}*)
1565 case $ac_var in #(
1566 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1567echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1568 esac
1569 case $ac_var in #(
1570 _ | IFS | as_nl) ;; #(
1571 *) $as_unset $ac_var ;;
1572 esac ;;
1573 esac
1574 done
Lev Walkinf15320b2004-06-03 03:38:44 +00001575 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001576 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1577 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00001578 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001579 "s/'\''/'\''\\\\'\'''\''/g;
1580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00001582 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00001583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001584 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001585 esac |
1586 sort
1587)
Lev Walkinf15320b2004-06-03 03:38:44 +00001588 echo
1589
1590 cat <<\_ASBOX
1591## ----------------- ##
1592## Output variables. ##
1593## ----------------- ##
1594_ASBOX
1595 echo
1596 for ac_var in $ac_subst_vars
1597 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001598 eval ac_val=\$$ac_var
1599 case $ac_val in
1600 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 esac
1602 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001603 done | sort
1604 echo
1605
1606 if test -n "$ac_subst_files"; then
1607 cat <<\_ASBOX
Lev Walkin27fd0b62007-08-27 23:57:45 +00001608## ------------------- ##
1609## File substitutions. ##
1610## ------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00001611_ASBOX
1612 echo
1613 for ac_var in $ac_subst_files
1614 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001620 done | sort
1621 echo
1622 fi
1623
1624 if test -s confdefs.h; then
1625 cat <<\_ASBOX
1626## ----------- ##
1627## confdefs.h. ##
1628## ----------- ##
1629_ASBOX
1630 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00001631 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001632 echo
1633 fi
1634 test "$ac_signal" != 0 &&
1635 echo "$as_me: caught signal $ac_signal"
1636 echo "$as_me: exit $exit_status"
1637 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00001638 rm -f core *.core core.conftest.* &&
1639 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001640 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00001641' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00001642for ac_signal in 1 2 13 15; do
1643 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644done
1645ac_signal=0
1646
1647# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001648rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001649
1650# Predefined preprocessor variables.
1651
1652cat >>confdefs.h <<_ACEOF
1653#define PACKAGE_NAME "$PACKAGE_NAME"
1654_ACEOF
1655
1656
1657cat >>confdefs.h <<_ACEOF
1658#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659_ACEOF
1660
1661
1662cat >>confdefs.h <<_ACEOF
1663#define PACKAGE_VERSION "$PACKAGE_VERSION"
1664_ACEOF
1665
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_STRING "$PACKAGE_STRING"
1669_ACEOF
1670
1671
1672cat >>confdefs.h <<_ACEOF
1673#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674_ACEOF
1675
1676
1677# Let the site file select an alternate cache file if it wants to.
1678# Prefer explicitly selected file to automatically selected ones.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001679if test -n "$CONFIG_SITE"; then
1680 set x "$CONFIG_SITE"
1681elif test "x$prefix" != xNONE; then
1682 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1683else
1684 set x "$ac_default_prefix/share/config.site" \
1685 "$ac_default_prefix/etc/config.site"
Lev Walkinf15320b2004-06-03 03:38:44 +00001686fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001687shift
1688for ac_site_file
1689do
Lev Walkinf15320b2004-06-03 03:38:44 +00001690 if test -r "$ac_site_file"; then
1691 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1692echo "$as_me: loading site script $ac_site_file" >&6;}
1693 sed 's/^/| /' "$ac_site_file" >&5
1694 . "$ac_site_file"
1695 fi
1696done
1697
1698if test -r "$cache_file"; then
1699 # Some versions of bash will fail to source /dev/null (special
1700 # files actually), so we avoid doing that.
1701 if test -f "$cache_file"; then
1702 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1703echo "$as_me: loading cache $cache_file" >&6;}
1704 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001705 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1706 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00001707 esac
1708 fi
1709else
1710 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1711echo "$as_me: creating cache $cache_file" >&6;}
1712 >$cache_file
1713fi
1714
1715# Check that the precious variables saved in the cache have kept the same
1716# value.
1717ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00001718for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00001719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00001721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00001723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1733 *)
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001736echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001738echo "$as_me: former value: $ac_old_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001740echo "$as_me: current value: $ac_new_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001741 ac_cache_corrupted=:
Lev Walkinf15320b2004-06-03 03:38:44 +00001742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1754 fi
1755done
1756if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1762fi
1763
Lev Walkin27fd0b62007-08-27 23:57:45 +00001764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
Lev Walkinf15320b2004-06-03 03:38:44 +00001780ac_ext=c
1781ac_cpp='$CPP $CPPFLAGS'
1782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
Lev Walkinf15320b2004-06-03 03:38:44 +00001787ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00001788for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1789 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001790 ac_aux_dir=$ac_dir
1791 ac_install_sh="$ac_aux_dir/install-sh -c"
1792 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001793 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001794 ac_aux_dir=$ac_dir
1795 ac_install_sh="$ac_aux_dir/install.sh -c"
1796 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001797 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001798 ac_aux_dir=$ac_dir
1799 ac_install_sh="$ac_aux_dir/shtool install -c"
1800 break
1801 fi
1802done
1803if test -z "$ac_aux_dir"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00001804 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1805echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001806 { (exit 1); exit 1; }; }
1807fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001808
1809# These three variables are undocumented and unsupported,
1810# and are intended to be withdrawn in a future Autoconf release.
1811# They can cause serious problems if a builder's source tree is in a directory
1812# whose full name contains unusual characters.
1813ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1814ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1815ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1816
Lev Walkinf15320b2004-06-03 03:38:44 +00001817
1818# Make sure we can run config.sub.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001819$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1820 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1821echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001822 { (exit 1); exit 1; }; }
1823
Lev Walkin27fd0b62007-08-27 23:57:45 +00001824{ echo "$as_me:$LINENO: checking build system type" >&5
1825echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001826if test "${ac_cv_build+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
Lev Walkin27fd0b62007-08-27 23:57:45 +00001829 ac_build_alias=$build_alias
1830test "x$ac_build_alias" = x &&
1831 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1832test "x$ac_build_alias" = x &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001833 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1834echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1835 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001836ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1837 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1838echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001839 { (exit 1); exit 1; }; }
1840
1841fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001842{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1843echo "${ECHO_T}$ac_cv_build" >&6; }
1844case $ac_cv_build in
1845*-*-*) ;;
1846*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1847echo "$as_me: error: invalid value of canonical build" >&2;}
1848 { (exit 1); exit 1; }; };;
1849esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001850build=$ac_cv_build
Lev Walkin27fd0b62007-08-27 23:57:45 +00001851ac_save_IFS=$IFS; IFS='-'
1852set x $ac_cv_build
1853shift
1854build_cpu=$1
1855build_vendor=$2
1856shift; shift
1857# Remember, the first character of IFS is used to create $*,
1858# except with old shells:
1859build_os=$*
1860IFS=$ac_save_IFS
1861case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001862
1863
Lev Walkin27fd0b62007-08-27 23:57:45 +00001864{ echo "$as_me:$LINENO: checking host system type" >&5
1865echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001866if test "${ac_cv_host+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
Lev Walkin27fd0b62007-08-27 23:57:45 +00001869 if test "x$host_alias" = x; then
1870 ac_cv_host=$ac_cv_build
1871else
1872 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1873 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1874echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001875 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001876fi
Lev Walkinf15320b2004-06-03 03:38:44 +00001877
1878fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001879{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1880echo "${ECHO_T}$ac_cv_host" >&6; }
1881case $ac_cv_host in
1882*-*-*) ;;
1883*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1884echo "$as_me: error: invalid value of canonical host" >&2;}
1885 { (exit 1); exit 1; }; };;
1886esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001887host=$ac_cv_host
Lev Walkin27fd0b62007-08-27 23:57:45 +00001888ac_save_IFS=$IFS; IFS='-'
1889set x $ac_cv_host
1890shift
1891host_cpu=$1
1892host_vendor=$2
1893shift; shift
1894# Remember, the first character of IFS is used to create $*,
1895# except with old shells:
1896host_os=$*
1897IFS=$ac_save_IFS
1898case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001899
1900
Lev Walkin27fd0b62007-08-27 23:57:45 +00001901{ echo "$as_me:$LINENO: checking target system type" >&5
1902echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001903if test "${ac_cv_target+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
Lev Walkin27fd0b62007-08-27 23:57:45 +00001906 if test "x$target_alias" = x; then
1907 ac_cv_target=$ac_cv_host
1908else
1909 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1910 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1911echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001912 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001913fi
Lev Walkinf15320b2004-06-03 03:38:44 +00001914
1915fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001916{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1917echo "${ECHO_T}$ac_cv_target" >&6; }
1918case $ac_cv_target in
1919*-*-*) ;;
1920*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1921echo "$as_me: error: invalid value of canonical target" >&2;}
1922 { (exit 1); exit 1; }; };;
1923esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001924target=$ac_cv_target
Lev Walkin27fd0b62007-08-27 23:57:45 +00001925ac_save_IFS=$IFS; IFS='-'
1926set x $ac_cv_target
1927shift
1928target_cpu=$1
1929target_vendor=$2
1930shift; shift
1931# Remember, the first character of IFS is used to create $*,
1932# except with old shells:
1933target_os=$*
1934IFS=$ac_save_IFS
1935case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001936
1937
1938# The aliases save the names the user supplied, while $host etc.
1939# will get canonicalized.
1940test -n "$target_alias" &&
1941 test "$program_prefix$program_suffix$program_transform_name" = \
1942 NONENONEs,x,x, &&
1943 program_prefix=${target_alias}-
1944
Lev Walkinc46b7cb2006-08-18 02:27:55 +00001945am__api_version="1.9"
Lev Walkinf15320b2004-06-03 03:38:44 +00001946# Find a good install program. We prefer a C program (faster),
1947# so one script is as good as another. But avoid the broken or
1948# incompatible versions:
1949# SysV /etc/install, /usr/sbin/install
1950# SunOS /usr/etc/install
1951# IRIX /sbin/install
1952# AIX /bin/install
1953# AmigaOS /C/install, which installs bootblocks on floppy discs
1954# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1955# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1956# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00001957# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00001958# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001959{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1960echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001961if test -z "$INSTALL"; then
1962if test "${ac_cv_path_install+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
1970 # Account for people who put trailing slashes in PATH elements.
1971case $as_dir/ in
1972 ./ | .// | /cC/* | \
1973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001974 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00001975 /usr/ucb/* ) ;;
1976 *)
1977 # OSF1 and SCO ODT 3.0 have their own names for install.
1978 # Don't use installbsd from OSF since it installs stuff as root
1979 # by default.
1980 for ac_prog in ginstall scoinst install; do
1981 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001982 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001983 if test $ac_prog = install &&
1984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1985 # AIX install. It has an incompatible calling convention.
1986 :
1987 elif test $ac_prog = install &&
1988 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1989 # program-specific install script used by HP pwplus--don't use.
1990 :
1991 else
1992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1993 break 3
1994 fi
1995 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00001996 done
1997 done
1998 ;;
1999esac
2000done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002001IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002002
2003
2004fi
2005 if test "${ac_cv_path_install+set}" = set; then
2006 INSTALL=$ac_cv_path_install
2007 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002008 # As a last resort, use the slow shell script. Don't cache a
2009 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002010 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002011 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002012 INSTALL=$ac_install_sh
2013 fi
2014fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002015{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2016echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002017
2018# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2019# It thinks the first close brace ends the variable substitution.
2020test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2021
2022test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2023
2024test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2025
Lev Walkin27fd0b62007-08-27 23:57:45 +00002026{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2027echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002028# Just in case
2029sleep 1
2030echo timestamp > conftest.file
2031# Do `set' in a subshell so we don't clobber the current shell's
2032# arguments. Must try -L first in case configure is actually a
2033# symlink; some systems play weird games with the mod time of symlinks
2034# (eg FreeBSD returns the mod time of the symlink's containing
2035# directory).
2036if (
2037 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2038 if test "$*" = "X"; then
2039 # -L didn't work.
2040 set X `ls -t $srcdir/configure conftest.file`
2041 fi
2042 rm -f conftest.file
2043 if test "$*" != "X $srcdir/configure conftest.file" \
2044 && test "$*" != "X conftest.file $srcdir/configure"; then
2045
2046 # If neither matched, then we have a broken ls. This can happen
2047 # if, for instance, CONFIG_SHELL is bash and it inherits a
2048 # broken ls alias from the environment. This has actually
2049 # happened. Such a system could not be considered "sane".
2050 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2051alias in your environment" >&5
2052echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2053alias in your environment" >&2;}
2054 { (exit 1); exit 1; }; }
2055 fi
2056
2057 test "$2" = conftest.file
2058 )
2059then
2060 # Ok.
2061 :
2062else
2063 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2064Check your system clock" >&5
2065echo "$as_me: error: newly created file is older than distributed files!
2066Check your system clock" >&2;}
2067 { (exit 1); exit 1; }; }
2068fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002069{ echo "$as_me:$LINENO: result: yes" >&5
2070echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002071test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002072 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002073# Use a double $ so make ignores it.
2074test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002075 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002076# Double any \ or $. echo might interpret backslashes.
2077# By default was `s,x,x', remove it if useless.
2078cat <<\_ACEOF >conftest.sed
2079s/[\\$]/&&/g;s/;s,x,x,$//
2080_ACEOF
2081program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002082rm -f conftest.sed
Lev Walkinf15320b2004-06-03 03:38:44 +00002083
Lev Walkinf15320b2004-06-03 03:38:44 +00002084# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002085am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002086
2087test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2088# Use eval to expand $SHELL
2089if eval "$MISSING --run true"; then
2090 am_missing_run="$MISSING --run "
2091else
2092 am_missing_run=
Lev Walkin8e8b5482004-06-17 23:42:48 +00002093 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2094echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2095fi
2096
2097if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002098 # We used to keeping the `.' as first argument, in order to
2099 # allow $(mkdir_p) to be used without argument. As in
Lev Walkin8e8b5482004-06-17 23:42:48 +00002100 # $(mkdir_p) $(somedir)
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002101 # where $(somedir) is conditionally defined. However this is wrong
2102 # for two reasons:
2103 # 1. if the package is installed by a user who cannot write `.'
2104 # make install will fail,
2105 # 2. the above comment should most certainly read
2106 # $(mkdir_p) $(DESTDIR)$(somedir)
2107 # so it does not work when $(somedir) is undefined and
2108 # $(DESTDIR) is not.
2109 # To support the latter case, we have to write
2110 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2111 # so the `.' trick is pointless.
2112 mkdir_p='mkdir -p --'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002113else
2114 # On NextStep and OpenStep, the `mkdir' command does not
2115 # recognize any option. It will interpret all options as
2116 # directories to create, and then abort because `.' already
2117 # exists.
2118 for d in ./-p ./--version;
2119 do
2120 test -d $d && rmdir $d
2121 done
2122 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2123 if test -f "$ac_aux_dir/mkinstalldirs"; then
2124 mkdir_p='$(mkinstalldirs)'
2125 else
2126 mkdir_p='$(install_sh) -d'
2127 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002128fi
2129
2130for ac_prog in gawk mawk nawk awk
2131do
2132 # Extract the first word of "$ac_prog", so it can be a program name with args.
2133set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002136if test "${ac_cv_prog_AWK+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
2139 if test -n "$AWK"; then
2140 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2141else
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002149 ac_cv_prog_AWK="$ac_prog"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153done
2154done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002155IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002156
2157fi
2158fi
2159AWK=$ac_cv_prog_AWK
2160if test -n "$AWK"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002161 { echo "$as_me:$LINENO: result: $AWK" >&5
2162echo "${ECHO_T}$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002163else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002164 { echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002166fi
2167
Lev Walkin27fd0b62007-08-27 23:57:45 +00002168
Lev Walkinf15320b2004-06-03 03:38:44 +00002169 test -n "$AWK" && break
2170done
2171
Lev Walkin27fd0b62007-08-27 23:57:45 +00002172{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2173echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2174set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2175if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002179SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002180all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002181 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002182_ACEOF
2183# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002184case `${MAKE-make} -f conftest.make 2>/dev/null` in
2185 *@@@%%%=?*=@@@%%%*)
2186 eval ac_cv_prog_make_${ac_make}_set=yes;;
2187 *)
2188 eval ac_cv_prog_make_${ac_make}_set=no;;
2189esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002190rm -f conftest.make
2191fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002192if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2193 { echo "$as_me:$LINENO: result: yes" >&5
2194echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002195 SET_MAKE=
2196else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002197 { echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002199 SET_MAKE="MAKE=${MAKE-make}"
2200fi
2201
Lev Walkin8e8b5482004-06-17 23:42:48 +00002202rm -rf .tst 2>/dev/null
2203mkdir .tst 2>/dev/null
2204if test -d .tst; then
2205 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002206else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002207 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002208fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002209rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002210
2211# test to see if srcdir already configured
Lev Walkin8e8b5482004-06-17 23:42:48 +00002212if test "`cd $srcdir && pwd`" != "`pwd`" &&
Lev Walkinf15320b2004-06-03 03:38:44 +00002213 test -f $srcdir/config.status; then
2214 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2215echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2216 { (exit 1); exit 1; }; }
2217fi
2218
Lev Walkin8e8b5482004-06-17 23:42:48 +00002219# test whether we have cygpath
2220if test -z "$CYGPATH_W"; then
2221 if (cygpath --version) >/dev/null 2>/dev/null; then
2222 CYGPATH_W='cygpath -w'
2223 else
2224 CYGPATH_W=echo
2225 fi
2226fi
2227
2228
Lev Walkinf15320b2004-06-03 03:38:44 +00002229# Define the identity of the package.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002230 PACKAGE=asn1c
Lev Walkine73dc672006-10-09 12:29:34 +00002231 VERSION=0.9.22
Lev Walkin8e8b5482004-06-17 23:42:48 +00002232
Lev Walkinf15320b2004-06-03 03:38:44 +00002233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE "$PACKAGE"
2236_ACEOF
2237
2238
2239cat >>confdefs.h <<_ACEOF
2240#define VERSION "$VERSION"
2241_ACEOF
2242
Lev Walkinf15320b2004-06-03 03:38:44 +00002243# Some tools Automake needs.
2244
Lev Walkin8e8b5482004-06-17 23:42:48 +00002245ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002246
2247
2248AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2249
2250
Lev Walkin8e8b5482004-06-17 23:42:48 +00002251AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002252
2253
2254AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2255
2256
2257MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2258
Lev Walkinf15320b2004-06-03 03:38:44 +00002259install_sh=${install_sh-"$am_aux_dir/install-sh"}
2260
Lev Walkin8e8b5482004-06-17 23:42:48 +00002261# Installed binaries are usually stripped using `strip' when the user
2262# run `make install-strip'. However `strip' might not be the right
2263# tool to use in cross-compilation environments, therefore Automake
2264# will honor the `STRIP' environment variable to overrule this program.
2265if test "$cross_compiling" != no; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2268set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002271if test "${ac_cv_prog_STRIP+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274 if test -n "$STRIP"; then
2275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2276else
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002284 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288done
2289done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002290IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002291
2292fi
2293fi
2294STRIP=$ac_cv_prog_STRIP
2295if test -n "$STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002296 { echo "$as_me:$LINENO: result: $STRIP" >&5
2297echo "${ECHO_T}$STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002298else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002299 { echo "$as_me:$LINENO: result: no" >&5
2300echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002301fi
2302
Lev Walkin27fd0b62007-08-27 23:57:45 +00002303
Lev Walkin8e8b5482004-06-17 23:42:48 +00002304fi
2305if test -z "$ac_cv_prog_STRIP"; then
2306 ac_ct_STRIP=$STRIP
2307 # Extract the first word of "strip", so it can be a program name with args.
2308set dummy strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002311if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 if test -n "$ac_ct_STRIP"; then
2315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002324 ac_cv_prog_ac_ct_STRIP="strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002330IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002331
Lev Walkin8e8b5482004-06-17 23:42:48 +00002332fi
2333fi
2334ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2335if test -n "$ac_ct_STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002336 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2337echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002338else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002339 { echo "$as_me:$LINENO: result: no" >&5
2340echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002341fi
2342
Lev Walkin27fd0b62007-08-27 23:57:45 +00002343 if test "x$ac_ct_STRIP" = x; then
2344 STRIP=":"
2345 else
2346 case $cross_compiling:$ac_tool_warned in
2347yes:)
2348{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2349whose name does not start with the host triplet. If you think this
2350configuration is useful to you, please write to autoconf@gnu.org." >&5
2351echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2352whose name does not start with the host triplet. If you think this
2353configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2354ac_tool_warned=yes ;;
2355esac
2356 STRIP=$ac_ct_STRIP
2357 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002358else
2359 STRIP="$ac_cv_prog_STRIP"
2360fi
2361
2362fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002363INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2364
2365# We need awk for the "check" target. The system "awk" is bad on
2366# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002367# Always define AMTAR for backward compatibility.
2368
2369AMTAR=${AMTAR-"${am_missing_run}tar"}
2370
2371am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2372
2373
Lev Walkinf15320b2004-06-03 03:38:44 +00002374
2375
2376
2377
Lev Walkin27fd0b62007-08-27 23:57:45 +00002378{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2379echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2380 # Check whether --enable-maintainer-mode was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00002381if test "${enable_maintainer_mode+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002382 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Lev Walkinf15320b2004-06-03 03:38:44 +00002383else
2384 USE_MAINTAINER_MODE=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00002385fi
2386
2387 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2388echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002389
2390
2391if test $USE_MAINTAINER_MODE = yes; then
2392 MAINTAINER_MODE_TRUE=
2393 MAINTAINER_MODE_FALSE='#'
2394else
2395 MAINTAINER_MODE_TRUE='#'
2396 MAINTAINER_MODE_FALSE=
2397fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002398
Lev Walkinf15320b2004-06-03 03:38:44 +00002399 MAINT=$MAINTAINER_MODE_TRUE
2400
2401
2402
Lev Walkin4da95cf2010-10-16 02:46:32 -07002403case `pwd` in
2404 *\ * | *\ *)
2405 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2406echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2407esac
2408
2409
2410
2411macro_version='2.4'
2412macro_revision='1.3293'
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426ltmain="$ac_aux_dir/ltmain.sh"
2427
2428# Backslashify metacharacters that are still active within
2429# double-quoted strings.
2430sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2431
2432# Same as above, but do not quote variable references.
2433double_quote_subst='s/\(["`\\]\)/\\\1/g'
2434
2435# Sed substitution to delay expansion of an escaped shell variable in a
2436# double_quote_subst'ed string.
2437delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2438
2439# Sed substitution to delay expansion of an escaped single quote.
2440delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2441
2442# Sed substitution to avoid accidental globbing in evaled expressions
2443no_glob_subst='s/\*/\\\*/g'
2444
2445ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2446ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2447ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2448
2449{ echo "$as_me:$LINENO: checking how to print strings" >&5
2450echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; }
2451# Test print first, because it will be a builtin if present.
2452if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2453 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2454 ECHO='print -r --'
2455elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2456 ECHO='printf %s\n'
Lev Walkinf15320b2004-06-03 03:38:44 +00002457else
Lev Walkin4da95cf2010-10-16 02:46:32 -07002458 # Use this function as a fallback that always works.
2459 func_fallback_echo ()
2460 {
2461 eval 'cat <<_LTECHO_EOF
2462$1
2463_LTECHO_EOF'
2464 }
2465 ECHO='func_fallback_echo'
Lev Walkin27fd0b62007-08-27 23:57:45 +00002466fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002467
Lev Walkin4da95cf2010-10-16 02:46:32 -07002468# func_echo_all arg...
2469# Invoke $ECHO with all args, space-separated.
2470func_echo_all ()
2471{
2472 $ECHO ""
2473}
Lev Walkin27fd0b62007-08-27 23:57:45 +00002474
Lev Walkin4da95cf2010-10-16 02:46:32 -07002475case "$ECHO" in
2476 printf*) { echo "$as_me:$LINENO: result: printf" >&5
2477echo "${ECHO_T}printf" >&6; } ;;
2478 print*) { echo "$as_me:$LINENO: result: print -r" >&5
2479echo "${ECHO_T}print -r" >&6; } ;;
2480 *) { echo "$as_me:$LINENO: result: cat" >&5
2481echo "${ECHO_T}cat" >&6; } ;;
2482esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00002483
Lev Walkin27fd0b62007-08-27 23:57:45 +00002484
Lev Walkin4da95cf2010-10-16 02:46:32 -07002485
2486
2487
2488
2489
2490
2491
2492
2493
2494
Lev Walkin27fd0b62007-08-27 23:57:45 +00002495
Lev Walkinf15320b2004-06-03 03:38:44 +00002496
Lev Walkin8e8b5482004-06-17 23:42:48 +00002497DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002498
Lev Walkin27fd0b62007-08-27 23:57:45 +00002499ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002500
Lev Walkinf15320b2004-06-03 03:38:44 +00002501
2502am_make=${MAKE-make}
2503cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002504am__doit:
Lev Walkinf15320b2004-06-03 03:38:44 +00002505 @echo done
Lev Walkin8e8b5482004-06-17 23:42:48 +00002506.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002507END
2508# If we don't find an include directive, just comment out the code.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002509{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2510echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002511am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002512am__quote=
2513_am_result=none
2514# First try GNU make style include.
2515echo "include confinc" > confmf
2516# We grep out `Entering directory' and `Leaving directory'
2517# messages which can occur if `w' ends up in MAKEFLAGS.
2518# In particular we don't look at `^make:' because GNU make might
2519# be invoked under some other name (usually "gmake"), in which
2520# case it prints its new name instead of `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002521if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002522 am__include=include
2523 am__quote=
2524 _am_result=GNU
2525fi
2526# Now try BSD make style include.
2527if test "$am__include" = "#"; then
2528 echo '.include "confinc"' > confmf
2529 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2530 am__include=.include
Lev Walkin8e8b5482004-06-17 23:42:48 +00002531 am__quote="\""
Lev Walkinf15320b2004-06-03 03:38:44 +00002532 _am_result=BSD
2533 fi
2534fi
2535
2536
Lev Walkin27fd0b62007-08-27 23:57:45 +00002537{ echo "$as_me:$LINENO: result: $_am_result" >&5
2538echo "${ECHO_T}$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002539rm -f confinc confmf
2540
Lev Walkin27fd0b62007-08-27 23:57:45 +00002541# Check whether --enable-dependency-tracking was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002542if test "${enable_dependency_tracking+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002543 enableval=$enable_dependency_tracking;
2544fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002545
Lev Walkin8e8b5482004-06-17 23:42:48 +00002546if test "x$enable_dependency_tracking" != xno; then
2547 am_depcomp="$ac_aux_dir/depcomp"
2548 AMDEPBACKSLASH='\'
2549fi
2550
2551
2552if test "x$enable_dependency_tracking" != xno; then
2553 AMDEP_TRUE=
2554 AMDEP_FALSE='#'
2555else
2556 AMDEP_TRUE='#'
2557 AMDEP_FALSE=
2558fi
2559
2560
2561
Lev Walkinf15320b2004-06-03 03:38:44 +00002562ac_ext=c
2563ac_cpp='$CPP $CPPFLAGS'
2564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2569set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002572if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589done
2590done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002591IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002592
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002597 { echo "$as_me:$LINENO: result: $CC" >&5
2598echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002599else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002600 { echo "$as_me:$LINENO: result: no" >&5
2601echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002602fi
2603
Lev Walkin27fd0b62007-08-27 23:57:45 +00002604
Lev Walkinf15320b2004-06-03 03:38:44 +00002605fi
2606if test -z "$ac_cv_prog_CC"; then
2607 ac_ct_CC=$CC
2608 # Extract the first word of "gcc", so it can be a program name with args.
2609set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002612if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002625 ac_cv_prog_ac_ct_CC="gcc"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629done
2630done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002631IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002632
2633fi
2634fi
2635ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002637 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2638echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002639else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002640 { echo "$as_me:$LINENO: result: no" >&5
2641echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002642fi
2643
Lev Walkin27fd0b62007-08-27 23:57:45 +00002644 if test "x$ac_ct_CC" = x; then
2645 CC=""
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648yes:)
2649{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2650whose name does not start with the host triplet. If you think this
2651configuration is useful to you, please write to autoconf@gnu.org." >&5
2652echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2653whose name does not start with the host triplet. If you think this
2654configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2655ac_tool_warned=yes ;;
2656esac
2657 CC=$ac_ct_CC
2658 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002659else
2660 CC="$ac_cv_prog_CC"
2661fi
2662
2663if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +00002666set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002669if test "${ac_cv_prog_CC+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002682 ac_cv_prog_CC="${ac_tool_prefix}cc"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686done
2687done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002688IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002689
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002694 { echo "$as_me:$LINENO: result: $CC" >&5
2695echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002696else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002697 { echo "$as_me:$LINENO: result: no" >&5
2698echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002699fi
2700
Lev Walkin27fd0b62007-08-27 23:57:45 +00002701
Lev Walkinf15320b2004-06-03 03:38:44 +00002702 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002703fi
2704if test -z "$CC"; then
2705 # Extract the first word of "cc", so it can be a program name with args.
2706set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002709if test "${ac_cv_prog_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715 ac_prog_rejected=no
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2724 ac_prog_rejected=yes
2725 continue
2726 fi
2727 ac_cv_prog_CC="cc"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731done
2732done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002733IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002734
2735if test $ac_prog_rejected = yes; then
2736 # We found a bogon in the path, so make sure we never use it.
2737 set dummy $ac_cv_prog_CC
2738 shift
2739 if test $# != 0; then
2740 # We chose a different compiler from the bogus one.
2741 # However, it has the same basename, so the bogon will be chosen
2742 # first if we set CC to just the basename; use the full file name.
2743 shift
2744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2745 fi
2746fi
2747fi
2748fi
2749CC=$ac_cv_prog_CC
2750if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002751 { echo "$as_me:$LINENO: result: $CC" >&5
2752echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002753else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002754 { echo "$as_me:$LINENO: result: no" >&5
2755echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002756fi
2757
Lev Walkin27fd0b62007-08-27 23:57:45 +00002758
Lev Walkinf15320b2004-06-03 03:38:44 +00002759fi
2760if test -z "$CC"; then
2761 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002762 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002763 do
2764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2765set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002768if test "${ac_cv_prog_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002787IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002793 { echo "$as_me:$LINENO: result: $CC" >&5
2794echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002795else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002796 { echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002798fi
2799
Lev Walkin27fd0b62007-08-27 23:57:45 +00002800
Lev Walkinf15320b2004-06-03 03:38:44 +00002801 test -n "$CC" && break
2802 done
2803fi
2804if test -z "$CC"; then
2805 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00002806 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002807do
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002812if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002825 ac_cv_prog_ac_ct_CC="$ac_prog"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002831IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002832
2833fi
2834fi
2835ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002837 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002839else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002840 { echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002842fi
2843
Lev Walkin27fd0b62007-08-27 23:57:45 +00002844
Lev Walkinf15320b2004-06-03 03:38:44 +00002845 test -n "$ac_ct_CC" && break
2846done
2847
Lev Walkin27fd0b62007-08-27 23:57:45 +00002848 if test "x$ac_ct_CC" = x; then
2849 CC=""
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852yes:)
2853{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2854whose name does not start with the host triplet. If you think this
2855configuration is useful to you, please write to autoconf@gnu.org." >&5
2856echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2857whose name does not start with the host triplet. If you think this
2858configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2859ac_tool_warned=yes ;;
2860esac
2861 CC=$ac_ct_CC
2862 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002863fi
2864
2865fi
2866
2867
2868test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: no acceptable C compiler found in \$PATH
2871See \`config.log' for more details." >&2;}
2872 { (exit 1); exit 1; }; }
2873
2874# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002875echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002876ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002877{ (ac_try="$ac_compiler --version >&5"
2878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002887{ (ac_try="$ac_compiler -v >&5"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002897{ (ac_try="$ac_compiler -V >&5"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907
2908cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923ac_clean_files_save=$ac_clean_files
2924ac_clean_files="$ac_clean_files a.out a.exe b.out"
2925# Try to create an executable without -o first, disregard a.out.
2926# It will help us diagnose broken compilers, and finding out an intuition
2927# of exeext.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002928{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2929echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002930ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002931#
2932# List of possible output files, starting from the most likely.
2933# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2934# only as a last resort. b.out is created by i960 compilers.
2935ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2936#
2937# The IRIX 6 linker writes into existing files which may not be
2938# executable, retaining their permissions. Remove them first so a
2939# subsequent execution test works.
2940ac_rmfiles=
2941for ac_file in $ac_files
2942do
2943 case $ac_file in
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2946 esac
2947done
2948rm -f $ac_rmfiles
2949
2950if { (ac_try="$ac_link_default"
2951case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002960 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2961# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2962# in a Makefile. We should not override ac_cv_exeext if it was cached,
2963# so that the user can short-circuit this test for compilers unknown to
2964# Autoconf.
2965for ac_file in $ac_files
Lev Walkinf15320b2004-06-03 03:38:44 +00002966do
2967 test -f "$ac_file" || continue
2968 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00002969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002970 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002971 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002972 # We found the default executable, but exeext='' is most
2973 # certainly right.
2974 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002975 *.* )
Lev Walkin27fd0b62007-08-27 23:57:45 +00002976 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2977 then :; else
2978 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 fi
2980 # We set ac_cv_exeext here because the later test for it is not
2981 # safe: cross compilers may not add the suffix if given an `-o'
2982 # argument, so we may need to know it at that point already.
2983 # Even if this section looks crufty: it has the advantage of
2984 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002985 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002986 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002987 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002988 esac
2989done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002990test "$ac_cv_exeext" = no && ac_cv_exeext=
2991
Lev Walkinf15320b2004-06-03 03:38:44 +00002992else
2993 echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2997See \`config.log' for more details." >&5
2998echo "$as_me: error: C compiler cannot create executables
2999See \`config.log' for more details." >&2;}
3000 { (exit 77); exit 77; }; }
3001fi
3002
3003ac_exeext=$ac_cv_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003004{ echo "$as_me:$LINENO: result: $ac_file" >&5
3005echo "${ECHO_T}$ac_file" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003006
Lev Walkin27fd0b62007-08-27 23:57:45 +00003007# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003008# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003009{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3010echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003011# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3012# If not cross compiling, check that we can run a simple program.
3013if test "$cross_compiling" != yes; then
3014 if { ac_try='./$ac_file'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3024 cross_compiling=no
3025 else
3026 if test "$cross_compiling" = maybe; then
3027 cross_compiling=yes
3028 else
3029 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3030If you meant to cross compile, use \`--host'.
3031See \`config.log' for more details." >&5
3032echo "$as_me: error: cannot run C compiled programs.
3033If you meant to cross compile, use \`--host'.
3034See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3036 fi
3037 fi
3038fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003039{ echo "$as_me:$LINENO: result: yes" >&5
3040echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003041
3042rm -f a.out a.exe conftest$ac_cv_exeext b.out
3043ac_clean_files=$ac_clean_files_save
Lev Walkin27fd0b62007-08-27 23:57:45 +00003044# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003045# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003046{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3047echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3048{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3049echo "${ECHO_T}$cross_compiling" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003050
Lev Walkin27fd0b62007-08-27 23:57:45 +00003051{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3052echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3053if { (ac_try="$ac_link"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3065# work properly (i.e., refer to `conftest.exe'), while it won't with
3066# `rm'.
3067for ac_file in conftest.exe conftest conftest.*; do
3068 test -f "$ac_file" || continue
3069 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003072 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003073 * ) break;;
3074 esac
3075done
3076else
3077 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3078See \`config.log' for more details." >&5
3079echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3080See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }
3082fi
3083
3084rm -f conftest$ac_cv_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003085{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086echo "${ECHO_T}$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003087
3088rm -f conftest.$ac_ext
3089EXEEXT=$ac_cv_exeext
3090ac_exeext=$EXEEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003091{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3092echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003093if test "${ac_cv_objext+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003097/* confdefs.h. */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h. */
3102
3103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111rm -f conftest.o conftest.obj
Lev Walkin27fd0b62007-08-27 23:57:45 +00003112if { (ac_try="$ac_compile"
3113case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116esac
3117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003124 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3127 break;;
3128 esac
3129done
3130else
3131 echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3135See \`config.log' for more details." >&5
3136echo "$as_me: error: cannot compute suffix of object files: cannot compile
3137See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3139fi
3140
3141rm -f conftest.$ac_cv_objext conftest.$ac_ext
3142fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003143{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3144echo "${ECHO_T}$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003145OBJEXT=$ac_cv_objext
3146ac_objext=$OBJEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003147{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003149if test "${ac_cv_c_compiler_gnu+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003153/* confdefs.h. */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162#ifndef __GNUC__
3163 choke me
3164#endif
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003178 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00003184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 ac_compiler_gnu=yes
3205else
3206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
Lev Walkin27fd0b62007-08-27 23:57:45 +00003209 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003210fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003211
3212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003213ac_cv_c_compiler_gnu=$ac_compiler_gnu
3214
3215fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003216{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3217echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003218GCC=`test $ac_compiler_gnu = yes && echo yes`
3219ac_test_CFLAGS=${CFLAGS+set}
3220ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +00003221{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3222echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003223if test "${ac_cv_prog_cc_g+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003226 ac_save_c_werror_flag=$ac_c_werror_flag
3227 ac_c_werror_flag=yes
3228 ac_cv_prog_cc_g=no
3229 CFLAGS="-g"
3230 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
3236
3237int
3238main ()
3239{
3240
3241 ;
3242 return 0;
3243}
3244_ACEOF
3245rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003246if { (ac_try="$ac_compile"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003253 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00003259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3260 { (case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
3264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003270 { (case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_prog_cc_g=yes
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
Lev Walkin27fd0b62007-08-27 23:57:45 +00003284 CFLAGS=""
3285 cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300rm -f conftest.$ac_objext
3301if { (ac_try="$ac_compile"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compile") 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
3325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 :
3335else
3336 echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340 CFLAGS="-g"
3341 cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h. */
3347
3348int
3349main ()
3350{
3351
3352 ;
3353 return 0;
3354}
3355_ACEOF
3356rm -f conftest.$ac_objext
3357if { (ac_try="$ac_compile"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384esac
3385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_cv_prog_cc_g=yes
3391else
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395
Lev Walkinf15320b2004-06-03 03:38:44 +00003396fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003397
3398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003399fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003400
3401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402fi
3403
3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_c_werror_flag=$ac_save_c_werror_flag
3406fi
3407{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3408echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003409if test "$ac_test_CFLAGS" = set; then
3410 CFLAGS=$ac_save_CFLAGS
3411elif test $ac_cv_prog_cc_g = yes; then
3412 if test "$GCC" = yes; then
3413 CFLAGS="-g -O2"
3414 else
3415 CFLAGS="-g"
3416 fi
3417else
3418 if test "$GCC" = yes; then
3419 CFLAGS="-O2"
3420 else
3421 CFLAGS=
3422 fi
3423fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003424{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3425echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3426if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003429 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003430ac_save_CC=$CC
3431cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#include <stdarg.h>
3438#include <stdio.h>
3439#include <sys/types.h>
3440#include <sys/stat.h>
3441/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3442struct buf { int x; };
3443FILE * (*rcsopen) (struct buf *, struct stat *, int);
3444static char *e (p, i)
3445 char **p;
3446 int i;
3447{
3448 return p[i];
3449}
3450static char *f (char * (*g) (char **, int), char **p, ...)
3451{
3452 char *s;
3453 va_list v;
3454 va_start (v,p);
3455 s = g (p, va_arg (v,int));
3456 va_end (v);
3457 return s;
3458}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003459
3460/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3461 function prototypes and stuff, but not '\xHH' hex character constants.
3462 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003463 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3465 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003466 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003467int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3468
Lev Walkin27fd0b62007-08-27 23:57:45 +00003469/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3470 inside strings and character constants. */
3471#define FOO(x) 'x'
3472int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3473
Lev Walkinf15320b2004-06-03 03:38:44 +00003474int test (int i, double x);
3475struct s1 {int (*f) (int a);};
3476struct s2 {int (*f) (double a);};
3477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478int argc;
3479char **argv;
3480int
3481main ()
3482{
3483return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3484 ;
3485 return 0;
3486}
3487_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003488for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003490do
3491 CC="$ac_save_CC $ac_arg"
3492 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003493if { (ac_try="$ac_compile"
3494case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497esac
3498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003500 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00003506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3507 { (case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
3511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00003513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003517 { (case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003526 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003527else
3528 echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
Lev Walkin27fd0b62007-08-27 23:57:45 +00003531
Lev Walkinf15320b2004-06-03 03:38:44 +00003532fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003533
3534rm -f core conftest.err conftest.$ac_objext
3535 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003536done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003537rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003538CC=$ac_save_CC
3539
3540fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003541# AC_CACHE_VAL
3542case "x$ac_cv_prog_cc_c89" in
3543 x)
3544 { echo "$as_me:$LINENO: result: none needed" >&5
3545echo "${ECHO_T}none needed" >&6; } ;;
3546 xno)
3547 { echo "$as_me:$LINENO: result: unsupported" >&5
3548echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003549 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003550 CC="$CC $ac_cv_prog_cc_c89"
3551 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3552echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003553esac
3554
Lev Walkinf15320b2004-06-03 03:38:44 +00003555
Lev Walkinf15320b2004-06-03 03:38:44 +00003556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562depcc="$CC" am_compiler_list=
3563
Lev Walkin27fd0b62007-08-27 23:57:45 +00003564{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3565echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003566if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named `D' -- because `-MD' means `put the output
3574 # in D'.
3575 mkdir conftest.dir
3576 # Copy depcomp to subdir because otherwise we won't find it if we're
3577 # using a relative directory.
3578 cp "$am_depcomp" conftest.dir
3579 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003580 # We will build objects and dependencies in a subdirectory because
3581 # it helps to detect inapplicable dependency modes. For instance
3582 # both Tru64's cc and ICC support -MD to output dependencies as a
3583 # side effect of compilation, but ICC will put the dependencies in
3584 # the current directory while Tru64 will put them in the object
3585 # directory.
3586 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003587
3588 am_cv_CC_dependencies_compiler_type=none
3589 if test "$am_compiler_list" = ""; then
3590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3591 fi
3592 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003593 # Setup a source with many dependencies, because some compilers
3594 # like to wrap large dependency lists on column 80 (with \), and
3595 # we should not choose a depcomp mode which is confused by this.
3596 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003597 # We need to recreate these files for each test, as the compiler may
3598 # overwrite some of them when testing with obscure command lines.
3599 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003600 : > sub/conftest.c
3601 for i in 1 2 3 4 5 6; do
3602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3603 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3604 # Solaris 8's {/usr,}/bin/sh.
3605 touch sub/conftst$i.h
3606 done
3607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003608
3609 case $depmode in
3610 nosideeffect)
3611 # after this tag, mechanisms are not by side-effect, so they'll
3612 # only be used when explicitly requested
3613 if test "x$enable_dependency_tracking" = xyes; then
3614 continue
3615 else
3616 break
3617 fi
3618 ;;
3619 none) break ;;
3620 esac
3621 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3622 # mode. It turns out that the SunPro C++ compiler does not properly
3623 # handle `-M -o', and we need to detect this.
3624 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003625 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3626 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3628 >/dev/null 2>conftest.err &&
3629 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003631 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003632 # icc doesn't choke on unknown options, it will just issue warnings
3633 # or remarks (even with -Werror). So we grep stderr for any message
3634 # that says an option was ignored or not supported.
3635 # When given -MP, icc 7.0 and 7.1 complain thusly:
3636 # icc: Command line warning: ignoring option '-M'; no argument required
3637 # The diagnosis changed in icc 8.0:
3638 # icc: Command line remark: option '-MP' not supported
3639 if (grep 'ignoring option' conftest.err ||
3640 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3641 am_cv_CC_dependencies_compiler_type=$depmode
3642 break
3643 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003644 fi
3645 done
3646
3647 cd ..
3648 rm -rf conftest.dir
3649else
3650 am_cv_CC_dependencies_compiler_type=none
3651fi
3652
3653fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003654{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3655echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003656CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3657
3658
3659
3660if
3661 test "x$enable_dependency_tracking" != xno \
3662 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663 am__fastdepCC_TRUE=
3664 am__fastdepCC_FALSE='#'
3665else
3666 am__fastdepCC_TRUE='#'
3667 am__fastdepCC_FALSE=
3668fi
3669
3670
Lev Walkin27fd0b62007-08-27 23:57:45 +00003671{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3672echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07003673if test "${ac_cv_path_SED+set}" = set; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3677 for ac_i in 1 2 3 4 5 6 7; do
3678 ac_script="$ac_script$as_nl$ac_script"
3679 done
3680 echo "$ac_script" | sed 99q >conftest.sed
3681 $as_unset ac_script || ac_script=
3682 # Extract the first word of "sed gsed" to use in msg output
3683if test -z "$SED"; then
3684set dummy sed gsed; ac_prog_name=$2
3685if test "${ac_cv_path_SED+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688 ac_path_SED_found=false
3689# Loop through the user's path and test for each of PROGNAME-LIST
Lev Walkin8e8b5482004-06-17 23:42:48 +00003690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691for as_dir in $PATH
3692do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003695 for ac_prog in sed gsed; do
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3698 { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue
3699 # Check for GNU ac_path_SED and select it if it is found.
3700 # Check for GNU $ac_path_SED
3701case `"$ac_path_SED" --version 2>&1` in
3702*GNU*)
3703 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3704*)
3705 ac_count=0
3706 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3707 while :
3708 do
3709 cat "conftest.in" "conftest.in" >"conftest.tmp"
3710 mv "conftest.tmp" "conftest.in"
3711 cp "conftest.in" "conftest.nl"
3712 echo '' >> "conftest.nl"
3713 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715 ac_count=`expr $ac_count + 1`
3716 if test $ac_count -gt ${ac_path_SED_max-0}; then
3717 # Best one so far, save it but keep looking for a better one
3718 ac_cv_path_SED="$ac_path_SED"
3719 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003720 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003721 # 10*(2^10) chars as input seems more than enough
3722 test $ac_count -gt 10 && break
3723 done
3724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725esac
3726
3727
3728 $ac_path_SED_found && break 3
Lev Walkin8e8b5482004-06-17 23:42:48 +00003729 done
3730done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003731
Lev Walkin4da95cf2010-10-16 02:46:32 -07003732done
3733IFS=$as_save_IFS
3734
3735
Lev Walkin8e8b5482004-06-17 23:42:48 +00003736fi
3737
Lev Walkin4da95cf2010-10-16 02:46:32 -07003738SED="$ac_cv_path_SED"
3739if test -z "$SED"; then
3740 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3741echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3742 { (exit 1); exit 1; }; }
3743fi
3744
3745else
3746 ac_cv_path_SED=$SED
3747fi
3748
3749fi
3750{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3751echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3752 SED="$ac_cv_path_SED"
3753 rm -f conftest.sed
3754
3755test -z "$SED" && SED=sed
3756Xsed="$SED -e 1s/^X//"
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
Lev Walkin8e8b5482004-06-17 23:42:48 +00003767
Lev Walkin27fd0b62007-08-27 23:57:45 +00003768{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3769echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3770if test "${ac_cv_path_GREP+set}" = set; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003773 # Extract the first word of "grep ggrep" to use in msg output
3774if test -z "$GREP"; then
3775set dummy grep ggrep; ac_prog_name=$2
3776if test "${ac_cv_path_GREP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 ac_path_GREP_found=false
3780# Loop through the user's path and test for each of PROGNAME-LIST
3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_prog in grep ggrep; do
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3789 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3790 # Check for GNU ac_path_GREP and select it if it is found.
3791 # Check for GNU $ac_path_GREP
3792case `"$ac_path_GREP" --version 2>&1` in
3793*GNU*)
3794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3795*)
3796 ac_count=0
3797 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3798 while :
3799 do
3800 cat "conftest.in" "conftest.in" >"conftest.tmp"
3801 mv "conftest.tmp" "conftest.in"
3802 cp "conftest.in" "conftest.nl"
3803 echo 'GREP' >> "conftest.nl"
3804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3806 ac_count=`expr $ac_count + 1`
3807 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3808 # Best one so far, save it but keep looking for a better one
3809 ac_cv_path_GREP="$ac_path_GREP"
3810 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003811 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003812 # 10*(2^10) chars as input seems more than enough
3813 test $ac_count -gt 10 && break
3814 done
3815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816esac
3817
3818
3819 $ac_path_GREP_found && break 3
3820 done
3821done
3822
3823done
3824IFS=$as_save_IFS
3825
3826
Lev Walkin8e8b5482004-06-17 23:42:48 +00003827fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003828
3829GREP="$ac_cv_path_GREP"
3830if test -z "$GREP"; then
3831 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3832echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3833 { (exit 1); exit 1; }; }
3834fi
3835
3836else
3837 ac_cv_path_GREP=$GREP
3838fi
3839
3840
3841fi
3842{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3843echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3844 GREP="$ac_cv_path_GREP"
3845
3846
3847{ echo "$as_me:$LINENO: checking for egrep" >&5
3848echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3849if test "${ac_cv_path_EGREP+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
3852 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3853 then ac_cv_path_EGREP="$GREP -E"
3854 else
3855 # Extract the first word of "egrep" to use in msg output
3856if test -z "$EGREP"; then
3857set dummy egrep; ac_prog_name=$2
3858if test "${ac_cv_path_EGREP+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 ac_path_EGREP_found=false
3862# Loop through the user's path and test for each of PROGNAME-LIST
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_prog in egrep; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3871 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3872 # Check for GNU ac_path_EGREP and select it if it is found.
3873 # Check for GNU $ac_path_EGREP
3874case `"$ac_path_EGREP" --version 2>&1` in
3875*GNU*)
3876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3877*)
3878 ac_count=0
3879 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3880 while :
3881 do
3882 cat "conftest.in" "conftest.in" >"conftest.tmp"
3883 mv "conftest.tmp" "conftest.in"
3884 cp "conftest.in" "conftest.nl"
3885 echo 'EGREP' >> "conftest.nl"
3886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888 ac_count=`expr $ac_count + 1`
3889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3890 # Best one so far, save it but keep looking for a better one
3891 ac_cv_path_EGREP="$ac_path_EGREP"
3892 ac_path_EGREP_max=$ac_count
3893 fi
3894 # 10*(2^10) chars as input seems more than enough
3895 test $ac_count -gt 10 && break
3896 done
3897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898esac
3899
3900
3901 $ac_path_EGREP_found && break 3
3902 done
3903done
3904
3905done
3906IFS=$as_save_IFS
3907
3908
3909fi
3910
3911EGREP="$ac_cv_path_EGREP"
3912if test -z "$EGREP"; then
3913 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3914echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3915 { (exit 1); exit 1; }; }
3916fi
3917
3918else
3919 ac_cv_path_EGREP=$EGREP
3920fi
3921
3922
3923 fi
3924fi
3925{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3926echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3927 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00003928
3929
Lev Walkin4da95cf2010-10-16 02:46:32 -07003930{ echo "$as_me:$LINENO: checking for fgrep" >&5
3931echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3932if test "${ac_cv_path_FGREP+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3936 then ac_cv_path_FGREP="$GREP -F"
3937 else
3938 # Extract the first word of "fgrep" to use in msg output
3939if test -z "$FGREP"; then
3940set dummy fgrep; ac_prog_name=$2
3941if test "${ac_cv_path_FGREP+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944 ac_path_FGREP_found=false
3945# Loop through the user's path and test for each of PROGNAME-LIST
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in fgrep; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_FGREP" && $as_executable_p "$ac_path_FGREP"; } || continue
3955 # Check for GNU ac_path_FGREP and select it if it is found.
3956 # Check for GNU $ac_path_FGREP
3957case `"$ac_path_FGREP" --version 2>&1` in
3958*GNU*)
3959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3960*)
3961 ac_count=0
3962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3963 while :
3964 do
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 echo 'FGREP' >> "conftest.nl"
3969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 ac_count=`expr $ac_count + 1`
3972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_FGREP="$ac_path_FGREP"
3975 ac_path_FGREP_max=$ac_count
3976 fi
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981esac
3982
3983
3984 $ac_path_FGREP_found && break 3
3985 done
3986done
3987
3988done
3989IFS=$as_save_IFS
3990
3991
3992fi
3993
3994FGREP="$ac_cv_path_FGREP"
3995if test -z "$FGREP"; then
3996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3997echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3998 { (exit 1); exit 1; }; }
3999fi
4000
4001else
4002 ac_cv_path_FGREP=$FGREP
4003fi
4004
4005
4006 fi
4007fi
4008{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4009echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4010 FGREP="$ac_cv_path_FGREP"
4011
4012
4013test -z "$GREP" && GREP=grep
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
Lev Walkinf15320b2004-06-03 03:38:44 +00004032
Lev Walkin27fd0b62007-08-27 23:57:45 +00004033# Check whether --with-gnu-ld was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00004034if test "${with_gnu_ld+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004035 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004036else
4037 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004038fi
4039
Lev Walkinf15320b2004-06-03 03:38:44 +00004040ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004041if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004042 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004043 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4044echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004045 case $host in
4046 *-*-mingw*)
4047 # gcc leaves a trailing carriage return which upsets mingw
4048 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4049 *)
4050 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4051 esac
4052 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004053 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004054 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004055 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004056 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07004057 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4058 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4059 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004060 done
4061 test -z "$LD" && LD="$ac_prog"
4062 ;;
4063 "")
4064 # If it fails, then pretend we aren't using GCC.
4065 ac_prog=ld
4066 ;;
4067 *)
4068 # If it is relative, then search for the first ld in PATH.
4069 with_gnu_ld=unknown
4070 ;;
4071 esac
4072elif test "$with_gnu_ld" = yes; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004073 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4074echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004075else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004076 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4077echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004078fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00004079if test "${lt_cv_path_LD+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004084 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004085 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004086 test -z "$ac_dir" && ac_dir=.
4087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004088 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004089 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004090 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004091 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004092 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4093 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004094 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004095 ;;
4096 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004097 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004098 ;;
4099 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004100 fi
4101 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004102 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004103else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004104 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004105fi
4106fi
4107
Lev Walkin8e8b5482004-06-17 23:42:48 +00004108LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004109if test -n "$LD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004110 { echo "$as_me:$LINENO: result: $LD" >&5
4111echo "${ECHO_T}$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004112else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004113 { echo "$as_me:$LINENO: result: no" >&5
4114echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004115fi
4116test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4117echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4118 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004119{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4120echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004121if test "${lt_cv_prog_gnu_ld+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004124 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004125case `$LD -v 2>&1 </dev/null` in
4126*GNU* | *'with BFD'*)
4127 lt_cv_prog_gnu_ld=yes
4128 ;;
4129*)
4130 lt_cv_prog_gnu_ld=no
4131 ;;
4132esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004133fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004134{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4135echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004136with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004137
4138
Lev Walkin8e8b5482004-06-17 23:42:48 +00004139
Lev Walkin4da95cf2010-10-16 02:46:32 -07004140
4141
4142
4143
4144
4145
4146{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4147echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004148if test "${lt_cv_path_NM+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150else
4151 if test -n "$NM"; then
4152 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004153 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004154else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004155 lt_nm_to_check="${ac_tool_prefix}nm"
4156 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4157 lt_nm_to_check="$lt_nm_to_check nm"
4158 fi
4159 for lt_tmp_nm in $lt_nm_to_check; do
4160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4161 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4162 IFS="$lt_save_ifs"
4163 test -z "$ac_dir" && ac_dir=.
4164 tmp_nm="$ac_dir/$lt_tmp_nm"
4165 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4166 # Check to see if the nm accepts a BSD-compat flag.
4167 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4168 # nm: unknown option "B" ignored
4169 # Tru64's nm complains that /dev/null is an invalid object file
4170 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4171 */dev/null* | *'Invalid file or object type'*)
4172 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004173 break
4174 ;;
4175 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004176 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4177 */dev/null*)
4178 lt_cv_path_NM="$tmp_nm -p"
4179 break
4180 ;;
4181 *)
4182 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4183 continue # so that we can try to find one that supports BSD flags
4184 ;;
4185 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004186 ;;
4187 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004188 fi
4189 done
4190 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004191 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004192 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004193fi
4194fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004195{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4196echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004197if test "$lt_cv_path_NM" != "no"; then
4198 NM="$lt_cv_path_NM"
4199else
4200 # Didn't find any BSD compatible name lister, look for dumpbin.
4201 if test -n "$DUMPBIN"; then :
4202 # Let the user override the test.
4203 else
4204 if test -n "$ac_tool_prefix"; then
4205 for ac_prog in dumpbin "link -dump"
4206 do
4207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4211if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214 if test -n "$DUMPBIN"; then
4215 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4216else
4217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH
4219do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4227 fi
4228done
4229done
4230IFS=$as_save_IFS
4231
4232fi
4233fi
4234DUMPBIN=$ac_cv_prog_DUMPBIN
4235if test -n "$DUMPBIN"; then
4236 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4237echo "${ECHO_T}$DUMPBIN" >&6; }
4238else
4239 { echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6; }
4241fi
4242
4243
4244 test -n "$DUMPBIN" && break
4245 done
4246fi
4247if test -z "$DUMPBIN"; then
4248 ac_ct_DUMPBIN=$DUMPBIN
4249 for ac_prog in dumpbin "link -dump"
4250do
4251 # Extract the first word of "$ac_prog", so it can be a program name with args.
4252set dummy $ac_prog; ac_word=$2
4253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257else
4258 if test -n "$ac_ct_DUMPBIN"; then
4259 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4260else
4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272done
4273done
4274IFS=$as_save_IFS
4275
4276fi
4277fi
4278ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4279if test -n "$ac_ct_DUMPBIN"; then
4280 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4281echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4282else
4283 { echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6; }
4285fi
4286
4287
4288 test -n "$ac_ct_DUMPBIN" && break
4289done
4290
4291 if test "x$ac_ct_DUMPBIN" = x; then
4292 DUMPBIN=":"
4293 else
4294 case $cross_compiling:$ac_tool_warned in
4295yes:)
4296{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4297whose name does not start with the host triplet. If you think this
4298configuration is useful to you, please write to autoconf@gnu.org." >&5
4299echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4300whose name does not start with the host triplet. If you think this
4301configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4302ac_tool_warned=yes ;;
4303esac
4304 DUMPBIN=$ac_ct_DUMPBIN
4305 fi
4306fi
4307
4308 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4309 *COFF*)
4310 DUMPBIN="$DUMPBIN -symbols"
4311 ;;
4312 *)
4313 DUMPBIN=:
4314 ;;
4315 esac
4316 fi
4317
4318 if test "$DUMPBIN" != ":"; then
4319 NM="$DUMPBIN"
4320 fi
4321fi
4322test -z "$NM" && NM=nm
4323
4324
4325
4326
4327
4328
4329{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4330echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4331if test "${lt_cv_nm_interface+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 lt_cv_nm_interface="BSD nm"
4335 echo "int some_variable = 0;" > conftest.$ac_ext
4336 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4337 (eval "$ac_compile" 2>conftest.err)
4338 cat conftest.err >&5
4339 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4340 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4341 cat conftest.err >&5
4342 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4343 cat conftest.out >&5
4344 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4345 lt_cv_nm_interface="MS dumpbin"
4346 fi
4347 rm -f conftest*
4348fi
4349{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4350echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004351
Lev Walkin27fd0b62007-08-27 23:57:45 +00004352{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4353echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004354LN_S=$as_ln_s
4355if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004356 { echo "$as_me:$LINENO: result: yes" >&5
4357echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004358else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004359 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4360echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004361fi
4362
Lev Walkin4da95cf2010-10-16 02:46:32 -07004363# find the maximum length of command line arguments
4364{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4365echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4366if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369 i=0
4370 teststring="ABCD"
4371
4372 case $build_os in
4373 msdosdjgpp*)
4374 # On DJGPP, this test can blow up pretty badly due to problems in libc
4375 # (any single argument exceeding 2000 bytes causes a buffer overrun
4376 # during glob expansion). Even if it were fixed, the result of this
4377 # check would be larger than it should be.
4378 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4379 ;;
4380
4381 gnu*)
4382 # Under GNU Hurd, this test is not required because there is
4383 # no limit to the length of command line arguments.
4384 # Libtool will interpret -1 as no limit whatsoever
4385 lt_cv_sys_max_cmd_len=-1;
4386 ;;
4387
4388 cygwin* | mingw* | cegcc*)
4389 # On Win9x/ME, this test blows up -- it succeeds, but takes
4390 # about 5 minutes as the teststring grows exponentially.
4391 # Worse, since 9x/ME are not pre-emptively multitasking,
4392 # you end up with a "frozen" computer, even though with patience
4393 # the test eventually succeeds (with a max line length of 256k).
4394 # Instead, let's just punt: use the minimum linelength reported by
4395 # all of the supported platforms: 8192 (on NT/2K/XP).
4396 lt_cv_sys_max_cmd_len=8192;
4397 ;;
4398
4399 mint*)
4400 # On MiNT this can take a long time and run out of memory.
4401 lt_cv_sys_max_cmd_len=8192;
4402 ;;
4403
4404 amigaos*)
4405 # On AmigaOS with pdksh, this test takes hours, literally.
4406 # So we just punt and use a minimum line length of 8192.
4407 lt_cv_sys_max_cmd_len=8192;
4408 ;;
4409
4410 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4411 # This has been around since 386BSD, at least. Likely further.
4412 if test -x /sbin/sysctl; then
4413 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4414 elif test -x /usr/sbin/sysctl; then
4415 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4416 else
4417 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4418 fi
4419 # And add a safety zone
4420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4422 ;;
4423
4424 interix*)
4425 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4426 lt_cv_sys_max_cmd_len=196608
4427 ;;
4428
4429 osf*)
4430 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4431 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4432 # nice to cause kernel panics so lets avoid the loop below.
4433 # First set a reasonable default.
4434 lt_cv_sys_max_cmd_len=16384
4435 #
4436 if test -x /sbin/sysconfig; then
4437 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4438 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4439 esac
4440 fi
4441 ;;
4442 sco3.2v5*)
4443 lt_cv_sys_max_cmd_len=102400
4444 ;;
4445 sysv5* | sco5v6* | sysv4.2uw2*)
4446 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4447 if test -n "$kargmax"; then
4448 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4449 else
4450 lt_cv_sys_max_cmd_len=32768
4451 fi
4452 ;;
4453 *)
4454 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4455 if test -n "$lt_cv_sys_max_cmd_len"; then
4456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4458 else
4459 # Make teststring a little bigger before we do anything with it.
4460 # a 1K string should be a reasonable start.
4461 for i in 1 2 3 4 5 6 7 8 ; do
4462 teststring=$teststring$teststring
4463 done
4464 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4465 # If test is not a shell built-in, we'll probably end up computing a
4466 # maximum length that is only half of the actual maximum length, but
4467 # we can't tell.
4468 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4469 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4470 test $i != 17 # 1/2 MB should be enough
4471 do
4472 i=`expr $i + 1`
4473 teststring=$teststring$teststring
4474 done
4475 # Only check the string length outside the loop.
4476 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4477 teststring=
4478 # Add a significant safety factor because C++ compilers can tack on
4479 # massive amounts of additional arguments before passing them to the
4480 # linker. It appears as though 1/2 is a usable value.
4481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4482 fi
4483 ;;
4484 esac
4485
4486fi
4487
4488if test -n $lt_cv_sys_max_cmd_len ; then
4489 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4490echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4491else
4492 { echo "$as_me:$LINENO: result: none" >&5
4493echo "${ECHO_T}none" >&6; }
4494fi
4495max_cmd_len=$lt_cv_sys_max_cmd_len
4496
4497
4498
4499
4500
4501
4502: ${CP="cp -f"}
4503: ${MV="mv -f"}
4504: ${RM="rm -f"}
4505
4506{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4507echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4508# Try some XSI features
4509xsi_shell=no
4510( _lt_dummy="a/b/c"
4511 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4512 = c,a/b,b/c, \
4513 && eval 'test $(( 1 + 1 )) -eq 2 \
4514 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4515 && xsi_shell=yes
4516{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4517echo "${ECHO_T}$xsi_shell" >&6; }
4518
4519
4520{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4521echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4522lt_shell_append=no
4523( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4524 >/dev/null 2>&1 \
4525 && lt_shell_append=yes
4526{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4527echo "${ECHO_T}$lt_shell_append" >&6; }
4528
4529
4530if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4531 lt_unset=unset
4532else
4533 lt_unset=false
4534fi
4535
4536
4537
4538
4539
4540# test EBCDIC or ASCII
4541case `echo X|tr X '\101'` in
4542 A) # ASCII based system
4543 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4544 lt_SP2NL='tr \040 \012'
4545 lt_NL2SP='tr \015\012 \040\040'
4546 ;;
4547 *) # EBCDIC based system
4548 lt_SP2NL='tr \100 \n'
4549 lt_NL2SP='tr \r\n \100\100'
4550 ;;
4551esac
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561{ echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4562echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6; }
4563if test "${lt_cv_to_host_file_cmd+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565else
4566 case $host in
4567 *-*-mingw* )
4568 case $build in
4569 *-*-mingw* ) # actually msys
4570 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4571 ;;
4572 *-*-cygwin* )
4573 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4574 ;;
4575 * ) # otherwise, assume *nix
4576 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4577 ;;
4578 esac
4579 ;;
4580 *-*-cygwin* )
4581 case $build in
4582 *-*-mingw* ) # actually msys
4583 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4584 ;;
4585 *-*-cygwin* )
4586 lt_cv_to_host_file_cmd=func_convert_file_noop
4587 ;;
4588 * ) # otherwise, assume *nix
4589 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4590 ;;
4591 esac
4592 ;;
4593 * ) # unhandled hosts (and "normal" native builds)
4594 lt_cv_to_host_file_cmd=func_convert_file_noop
4595 ;;
4596esac
4597
4598fi
4599
4600to_host_file_cmd=$lt_cv_to_host_file_cmd
4601{ echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4602echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6; }
4603
4604
4605
4606
4607
4608{ echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4609echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6; }
4610if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613 #assume ordinary cross tools, or native build.
4614lt_cv_to_tool_file_cmd=func_convert_file_noop
4615case $host in
4616 *-*-mingw* )
4617 case $build in
4618 *-*-mingw* ) # actually msys
4619 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4620 ;;
4621 esac
4622 ;;
4623esac
4624
4625fi
4626
4627to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4628{ echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4629echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6; }
4630
4631
4632
4633
4634
4635{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4636echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4637if test "${lt_cv_ld_reload_flag+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 lt_cv_ld_reload_flag='-r'
4641fi
4642{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4643echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4644reload_flag=$lt_cv_ld_reload_flag
4645case $reload_flag in
4646"" | " "*) ;;
4647*) reload_flag=" $reload_flag" ;;
4648esac
4649reload_cmds='$LD$reload_flag -o $output$reload_objs'
4650case $host_os in
4651 cygwin* | mingw* | pw32* | cegcc*)
4652 if test "$GCC" != yes; then
4653 reload_cmds=false
4654 fi
4655 ;;
4656 darwin*)
4657 if test "$GCC" = yes; then
4658 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4659 else
4660 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4661 fi
4662 ;;
4663esac
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4675set dummy ${ac_tool_prefix}objdump; ac_word=$2
4676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681 if test -n "$OBJDUMP"; then
4682 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4683else
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4691 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695done
4696done
4697IFS=$as_save_IFS
4698
4699fi
4700fi
4701OBJDUMP=$ac_cv_prog_OBJDUMP
4702if test -n "$OBJDUMP"; then
4703 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4704echo "${ECHO_T}$OBJDUMP" >&6; }
4705else
4706 { echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6; }
4708fi
4709
4710
4711fi
4712if test -z "$ac_cv_prog_OBJDUMP"; then
4713 ac_ct_OBJDUMP=$OBJDUMP
4714 # Extract the first word of "objdump", so it can be a program name with args.
4715set dummy objdump; ac_word=$2
4716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720else
4721 if test -n "$ac_ct_OBJDUMP"; then
4722 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735done
4736done
4737IFS=$as_save_IFS
4738
4739fi
4740fi
4741ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4742if test -n "$ac_ct_OBJDUMP"; then
4743 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4744echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4745else
4746 { echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6; }
4748fi
4749
4750 if test "x$ac_ct_OBJDUMP" = x; then
4751 OBJDUMP="false"
4752 else
4753 case $cross_compiling:$ac_tool_warned in
4754yes:)
4755{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4756whose name does not start with the host triplet. If you think this
4757configuration is useful to you, please write to autoconf@gnu.org." >&5
4758echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4759whose name does not start with the host triplet. If you think this
4760configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4761ac_tool_warned=yes ;;
4762esac
4763 OBJDUMP=$ac_ct_OBJDUMP
4764 fi
4765else
4766 OBJDUMP="$ac_cv_prog_OBJDUMP"
4767fi
4768
4769test -z "$OBJDUMP" && OBJDUMP=objdump
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4780echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004781if test "${lt_cv_deplibs_check_method+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 lt_cv_file_magic_cmd='$MAGIC_CMD'
4785lt_cv_file_magic_test_file=
4786lt_cv_deplibs_check_method='unknown'
4787# Need to set the preceding variable on all platforms that support
4788# interlibrary dependencies.
4789# 'none' -- dependencies not supported.
4790# `unknown' -- same as none, but documents that we really don't know.
4791# 'pass_all' -- all dependencies passed with no checks.
4792# 'test_compile' -- check by making test program.
4793# 'file_magic [[regex]]' -- check by looking for files in library path
4794# which responds to the $file_magic_cmd with a given extended regex.
4795# If you have `file' or equivalent on your system and you're not sure
4796# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00004797
Lev Walkin8e8b5482004-06-17 23:42:48 +00004798case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004799aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004800 lt_cv_deplibs_check_method=pass_all
4801 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004802
Lev Walkin8e8b5482004-06-17 23:42:48 +00004803beos*)
4804 lt_cv_deplibs_check_method=pass_all
4805 ;;
4806
Lev Walkinfbf1d282007-12-03 14:58:39 +00004807bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4809 lt_cv_file_magic_cmd='/usr/bin/file -L'
4810 lt_cv_file_magic_test_file=/shlib/libc.so
4811 ;;
4812
4813cygwin*)
4814 # func_win32_libid is a shell function defined in ltmain.sh
4815 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4816 lt_cv_file_magic_cmd='func_win32_libid'
4817 ;;
4818
4819mingw* | pw32*)
4820 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07004821 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4822 # unless we find 'file', for example because we are cross-compiling.
4823 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4824 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4826 lt_cv_file_magic_cmd='func_win32_libid'
4827 else
4828 # Keep this pattern in sync with the one in func_win32_libid.
4829 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4830 lt_cv_file_magic_cmd='$OBJDUMP -f'
4831 fi
4832 ;;
4833
4834cegcc*)
4835 # use the weaker test based on 'objdump'. See mingw*.
4836 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004837 lt_cv_file_magic_cmd='$OBJDUMP -f'
4838 ;;
4839
4840darwin* | rhapsody*)
4841 lt_cv_deplibs_check_method=pass_all
4842 ;;
4843
Lev Walkin4da95cf2010-10-16 02:46:32 -07004844freebsd* | dragonfly*)
4845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004846 case $host_cpu in
4847 i*86 )
4848 # Not sure whether the presence of OpenBSD here was a mistake.
4849 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00004850 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004851 lt_cv_file_magic_cmd=/usr/bin/file
4852 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4853 ;;
4854 esac
4855 else
4856 lt_cv_deplibs_check_method=pass_all
4857 fi
4858 ;;
4859
4860gnu*)
4861 lt_cv_deplibs_check_method=pass_all
4862 ;;
4863
Lev Walkin4da95cf2010-10-16 02:46:32 -07004864haiku*)
4865 lt_cv_deplibs_check_method=pass_all
4866 ;;
4867
Lev Walkin8e8b5482004-06-17 23:42:48 +00004868hpux10.20* | hpux11*)
4869 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00004870 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00004871 ia64*)
4872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4874 ;;
4875 hppa*64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4878 ;;
4879 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4882 ;;
4883 esac
4884 ;;
4885
Lev Walkin4da95cf2010-10-16 02:46:32 -07004886interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4888 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4889 ;;
4890
Lev Walkin8e8b5482004-06-17 23:42:48 +00004891irix5* | irix6* | nonstopux*)
4892 case $LD in
4893 *-32|*"-32 ") libmagic=32-bit;;
4894 *-n32|*"-n32 ") libmagic=N32;;
4895 *-64|*"-64 ") libmagic=64-bit;;
4896 *) libmagic=never-match;;
4897 esac
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
4900
4901# This must be Linux ELF.
Lev Walkin4da95cf2010-10-16 02:46:32 -07004902linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4909 else
4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4911 fi
4912 ;;
4913
4914newos6*)
4915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4916 lt_cv_file_magic_cmd=/usr/bin/file
4917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4918 ;;
4919
Lev Walkin4da95cf2010-10-16 02:46:32 -07004920*nto* | *qnx*)
4921 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00004922 ;;
4923
4924openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00004926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004927 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004928 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004929 fi
4930 ;;
4931
4932osf3* | osf4* | osf5*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
Lev Walkin4da95cf2010-10-16 02:46:32 -07004936rdos*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
Lev Walkin8e8b5482004-06-17 23:42:48 +00004940solaris*)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943
Lev Walkin4da95cf2010-10-16 02:46:32 -07004944sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4945 lt_cv_deplibs_check_method=pass_all
4946 ;;
4947
Lev Walkinfbf1d282007-12-03 14:58:39 +00004948sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004949 case $host_vendor in
4950 motorola)
4951 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]'
4952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4953 ;;
4954 ncr)
4955 lt_cv_deplibs_check_method=pass_all
4956 ;;
4957 sequent)
4958 lt_cv_file_magic_cmd='/bin/file'
4959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4960 ;;
4961 sni)
4962 lt_cv_file_magic_cmd='/bin/file'
4963 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4964 lt_cv_file_magic_test_file=/lib/libc.so
4965 ;;
4966 siemens)
4967 lt_cv_deplibs_check_method=pass_all
4968 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00004969 pc)
4970 lt_cv_deplibs_check_method=pass_all
4971 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00004972 esac
4973 ;;
4974
Lev Walkin4da95cf2010-10-16 02:46:32 -07004975tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004976 lt_cv_deplibs_check_method=pass_all
4977 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004978esac
4979
Lev Walkin8e8b5482004-06-17 23:42:48 +00004980fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004981{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4982echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004983
4984file_magic_glob=
4985want_nocaseglob=no
4986if test "$build" = "$host"; then
4987 case $host_os in
4988 mingw* | pw32*)
4989 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4990 want_nocaseglob=yes
4991 else
4992 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4993 fi
4994 ;;
4995 esac
4996fi
4997
Lev Walkin8e8b5482004-06-17 23:42:48 +00004998file_magic_cmd=$lt_cv_file_magic_cmd
4999deplibs_check_method=$lt_cv_deplibs_check_method
5000test -z "$deplibs_check_method" && deplibs_check_method=unknown
5001
5002
5003
5004
Lev Walkin4da95cf2010-10-16 02:46:32 -07005005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5025set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031 if test -n "$DLLTOOL"; then
5032 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045done
5046done
5047IFS=$as_save_IFS
5048
5049fi
5050fi
5051DLLTOOL=$ac_cv_prog_DLLTOOL
5052if test -n "$DLLTOOL"; then
5053 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5054echo "${ECHO_T}$DLLTOOL" >&6; }
5055else
5056 { echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6; }
5058fi
5059
5060
5061fi
5062if test -z "$ac_cv_prog_DLLTOOL"; then
5063 ac_ct_DLLTOOL=$DLLTOOL
5064 # Extract the first word of "dlltool", so it can be a program name with args.
5065set dummy dlltool; ac_word=$2
5066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 if test -n "$ac_ct_DLLTOOL"; then
5072 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087IFS=$as_save_IFS
5088
5089fi
5090fi
5091ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5092if test -n "$ac_ct_DLLTOOL"; then
5093 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5094echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5095else
5096 { echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6; }
5098fi
5099
5100 if test "x$ac_ct_DLLTOOL" = x; then
5101 DLLTOOL="false"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104yes:)
5105{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106whose name does not start with the host triplet. If you think this
5107configuration is useful to you, please write to autoconf@gnu.org." >&5
5108echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109whose name does not start with the host triplet. If you think this
5110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111ac_tool_warned=yes ;;
5112esac
5113 DLLTOOL=$ac_ct_DLLTOOL
5114 fi
5115else
5116 DLLTOOL="$ac_cv_prog_DLLTOOL"
5117fi
5118
5119test -z "$DLLTOOL" && DLLTOOL=dlltool
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130{ echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
5131echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6; }
5132if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135 lt_cv_sharedlib_from_linklib_cmd='unknown'
5136
5137case $host_os in
5138cygwin* | mingw* | pw32* | cegcc*)
5139 # two different shell functions defined in ltmain.sh
5140 # decide which to use based on capabilities of $DLLTOOL
5141 case `$DLLTOOL --help 2>&1` in
5142 *--identify-strict*)
5143 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5144 ;;
5145 *)
5146 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5147 ;;
5148 esac
5149 ;;
5150*)
5151 # fallback: assume linklib IS sharedlib
5152 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5153 ;;
5154esac
5155
5156fi
5157{ echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5158echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5159sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5160test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5161
5162
5163
5164
5165
5166
5167
5168
5169if test -n "$ac_tool_prefix"; then
5170 for ac_prog in ar
5171 do
5172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5173set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176if test "${ac_cv_prog_AR+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179 if test -n "$AR"; then
5180 ac_cv_prog_AR="$AR" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193done
5194done
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199AR=$ac_cv_prog_AR
5200if test -n "$AR"; then
5201 { echo "$as_me:$LINENO: result: $AR" >&5
5202echo "${ECHO_T}$AR" >&6; }
5203else
5204 { echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6; }
5206fi
5207
5208
5209 test -n "$AR" && break
5210 done
5211fi
5212if test -z "$AR"; then
5213 ac_ct_AR=$AR
5214 for ac_prog in ar
5215do
5216 # Extract the first word of "$ac_prog", so it can be a program name with args.
5217set dummy $ac_prog; ac_word=$2
5218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5220if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223 if test -n "$ac_ct_AR"; then
5224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_ac_ct_AR="$ac_prog"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5236 fi
5237done
5238done
5239IFS=$as_save_IFS
5240
5241fi
5242fi
5243ac_ct_AR=$ac_cv_prog_ac_ct_AR
5244if test -n "$ac_ct_AR"; then
5245 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5246echo "${ECHO_T}$ac_ct_AR" >&6; }
5247else
5248 { echo "$as_me:$LINENO: result: no" >&5
5249echo "${ECHO_T}no" >&6; }
5250fi
5251
5252
5253 test -n "$ac_ct_AR" && break
5254done
5255
5256 if test "x$ac_ct_AR" = x; then
5257 AR="false"
5258 else
5259 case $cross_compiling:$ac_tool_warned in
5260yes:)
5261{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5262whose name does not start with the host triplet. If you think this
5263configuration is useful to you, please write to autoconf@gnu.org." >&5
5264echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5265whose name does not start with the host triplet. If you think this
5266configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5267ac_tool_warned=yes ;;
5268esac
5269 AR=$ac_ct_AR
5270 fi
5271fi
5272
5273: ${AR=ar}
5274: ${AR_FLAGS=cru}
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286{ echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
5287echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6; }
5288if test "${lt_cv_ar_at_file+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291 lt_cv_ar_at_file=no
5292 cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h. */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h. */
5298
5299int
5300main ()
5301{
5302
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307rm -f conftest.$ac_objext
5308if { (ac_try="$ac_compile"
5309case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312esac
5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_compile") 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5322 { (case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325esac
5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_try") 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335esac
5336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 (eval "$ac_try") 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 echo conftest.$ac_objext > conftest.lst
5342 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5343 { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5344 (eval $lt_ar_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }
5348 if test "$ac_status" -eq 0; then
5349 # Ensure the archiver fails upon bogus file names.
5350 rm -f conftest.$ac_objext libconftest.a
5351 { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5352 (eval $lt_ar_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }
5356 if test "$ac_status" -ne 0; then
5357 lt_cv_ar_at_file=@
5358 fi
5359 fi
5360 rm -f conftest.* libconftest.a
5361
5362else
5363 echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366
5367fi
5368
5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370
5371fi
5372{ echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5373echo "${ECHO_T}$lt_cv_ar_at_file" >&6; }
5374
5375if test "x$lt_cv_ar_at_file" = xno; then
5376 archiver_list_spec=
5377else
5378 archiver_list_spec=$lt_cv_ar_at_file
5379fi
5380
5381
5382
5383
5384
5385
5386
5387if test -n "$ac_tool_prefix"; then
5388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5389set dummy ${ac_tool_prefix}strip; ac_word=$2
5390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5392if test "${ac_cv_prog_STRIP+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 if test -n "$STRIP"; then
5396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5397else
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410done
5411IFS=$as_save_IFS
5412
5413fi
5414fi
5415STRIP=$ac_cv_prog_STRIP
5416if test -n "$STRIP"; then
5417 { echo "$as_me:$LINENO: result: $STRIP" >&5
5418echo "${ECHO_T}$STRIP" >&6; }
5419else
5420 { echo "$as_me:$LINENO: result: no" >&5
5421echo "${ECHO_T}no" >&6; }
5422fi
5423
5424
5425fi
5426if test -z "$ac_cv_prog_STRIP"; then
5427 ac_ct_STRIP=$STRIP
5428 # Extract the first word of "strip", so it can be a program name with args.
5429set dummy strip; ac_word=$2
5430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5432if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434else
5435 if test -n "$ac_ct_STRIP"; then
5436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5437else
5438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439for as_dir in $PATH
5440do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5445 ac_cv_prog_ac_ct_STRIP="strip"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5448 fi
5449done
5450done
5451IFS=$as_save_IFS
5452
5453fi
5454fi
5455ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5456if test -n "$ac_ct_STRIP"; then
5457 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5458echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5459else
5460 { echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6; }
5462fi
5463
5464 if test "x$ac_ct_STRIP" = x; then
5465 STRIP=":"
5466 else
5467 case $cross_compiling:$ac_tool_warned in
5468yes:)
5469{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5470whose name does not start with the host triplet. If you think this
5471configuration is useful to you, please write to autoconf@gnu.org." >&5
5472echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5473whose name does not start with the host triplet. If you think this
5474configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5475ac_tool_warned=yes ;;
5476esac
5477 STRIP=$ac_ct_STRIP
5478 fi
5479else
5480 STRIP="$ac_cv_prog_STRIP"
5481fi
5482
5483test -z "$STRIP" && STRIP=:
5484
5485
5486
5487
5488
5489
5490if test -n "$ac_tool_prefix"; then
5491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5492set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5495if test "${ac_cv_prog_RANLIB+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498 if test -n "$RANLIB"; then
5499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512done
5513done
5514IFS=$as_save_IFS
5515
5516fi
5517fi
5518RANLIB=$ac_cv_prog_RANLIB
5519if test -n "$RANLIB"; then
5520 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5521echo "${ECHO_T}$RANLIB" >&6; }
5522else
5523 { echo "$as_me:$LINENO: result: no" >&5
5524echo "${ECHO_T}no" >&6; }
5525fi
5526
5527
5528fi
5529if test -z "$ac_cv_prog_RANLIB"; then
5530 ac_ct_RANLIB=$RANLIB
5531 # Extract the first word of "ranlib", so it can be a program name with args.
5532set dummy ranlib; ac_word=$2
5533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5535if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538 if test -n "$ac_ct_RANLIB"; then
5539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_ac_ct_RANLIB="ranlib"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552done
5553done
5554IFS=$as_save_IFS
5555
5556fi
5557fi
5558ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5559if test -n "$ac_ct_RANLIB"; then
5560 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5561echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5562else
5563 { echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6; }
5565fi
5566
5567 if test "x$ac_ct_RANLIB" = x; then
5568 RANLIB=":"
5569 else
5570 case $cross_compiling:$ac_tool_warned in
5571yes:)
5572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5573whose name does not start with the host triplet. If you think this
5574configuration is useful to you, please write to autoconf@gnu.org." >&5
5575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5576whose name does not start with the host triplet. If you think this
5577configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5578ac_tool_warned=yes ;;
5579esac
5580 RANLIB=$ac_ct_RANLIB
5581 fi
5582else
5583 RANLIB="$ac_cv_prog_RANLIB"
5584fi
5585
5586test -z "$RANLIB" && RANLIB=:
5587
5588
5589
5590
5591
5592
5593# Determine commands to create old-style static archives.
5594old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5595old_postinstall_cmds='chmod 644 $oldlib'
5596old_postuninstall_cmds=
5597
5598if test -n "$RANLIB"; then
5599 case $host_os in
5600 openbsd*)
5601 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5602 ;;
5603 *)
5604 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5605 ;;
5606 esac
5607 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5608fi
5609
5610case $host_os in
5611 darwin*)
5612 lock_old_archive_extraction=yes ;;
5613 *)
5614 lock_old_archive_extraction=no ;;
5615esac
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
Lev Walkin8e8b5482004-06-17 23:42:48 +00005655# If no C compiler was specified, use CC.
5656LTCC=${LTCC-"$CC"}
5657
Lev Walkinfbf1d282007-12-03 14:58:39 +00005658# If no C compiler flags were specified, use CFLAGS.
5659LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5660
Lev Walkin8e8b5482004-06-17 23:42:48 +00005661# Allow CC to be a program name with arguments.
5662compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005663
5664
Lev Walkin4da95cf2010-10-16 02:46:32 -07005665# Check for command to grab the raw symbol name followed by C symbol from nm.
5666{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5667echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5668if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671
5672# These are sane defaults that work on at least a few old systems.
5673# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5674
5675# Character class describing NM global symbol codes.
5676symcode='[BCDEGRST]'
5677
5678# Regexp to match symbols that can be accessed directly from C.
5679sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5680
5681# Define system-specific variables.
5682case $host_os in
5683aix*)
5684 symcode='[BCDT]'
5685 ;;
5686cygwin* | mingw* | pw32* | cegcc*)
5687 symcode='[ABCDGISTW]'
5688 ;;
5689hpux*)
5690 if test "$host_cpu" = ia64; then
5691 symcode='[ABCDEGRST]'
5692 fi
5693 ;;
5694irix* | nonstopux*)
5695 symcode='[BCDEGRST]'
5696 ;;
5697osf*)
5698 symcode='[BCDEGQRST]'
5699 ;;
5700solaris*)
5701 symcode='[BDRT]'
5702 ;;
5703sco3.2v5*)
5704 symcode='[DT]'
5705 ;;
5706sysv4.2uw2*)
5707 symcode='[DT]'
5708 ;;
5709sysv5* | sco5v6* | unixware* | OpenUNIX*)
5710 symcode='[ABDT]'
5711 ;;
5712sysv4)
5713 symcode='[DFNSTU]'
5714 ;;
5715esac
5716
5717# If we're using GNU nm, then use its standard symbol codes.
5718case `$NM -V 2>&1` in
5719*GNU* | *'with BFD'*)
5720 symcode='[ABCDGIRSTW]' ;;
5721esac
5722
5723# Transform an extracted symbol line into a proper C declaration.
5724# Some systems (esp. on ia64) link data and code symbols differently,
5725# so use this general approach.
5726lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5727
5728# Transform an extracted symbol line into symbol name and symbol address
5729lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5730lt_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'"
5731
5732# Handle CRLF in mingw tool chain
5733opt_cr=
5734case $build_os in
5735mingw*)
5736 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5737 ;;
5738esac
5739
5740# Try without a prefix underscore, then with it.
5741for ac_symprfx in "" "_"; do
5742
5743 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5744 symxfrm="\\1 $ac_symprfx\\2 \\2"
5745
5746 # Write the raw and C identifiers.
5747 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5748 # Fake it for dumpbin and say T for any non-static function
5749 # and D for any global variable.
5750 # Also find C++ and __fastcall symbols from MSVC++,
5751 # which start with @ or ?.
5752 lt_cv_sys_global_symbol_pipe="$AWK '"\
5753" {last_section=section; section=\$ 3};"\
5754" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5755" \$ 0!~/External *\|/{next};"\
5756" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5757" {if(hide[section]) next};"\
5758" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5759" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5760" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5761" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5762" ' prfx=^$ac_symprfx"
5763 else
5764 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5765 fi
5766 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5767
5768 # Check to see that the pipe works correctly.
5769 pipe_works=no
5770
5771 rm -f conftest*
5772 cat > conftest.$ac_ext <<_LT_EOF
5773#ifdef __cplusplus
5774extern "C" {
5775#endif
5776char nm_test_var;
5777void nm_test_func(void);
5778void nm_test_func(void){}
5779#ifdef __cplusplus
5780}
5781#endif
5782int main(){nm_test_var='a';nm_test_func();return(0);}
5783_LT_EOF
5784
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; then
5790 # Now try to grab the symbols.
5791 nlist=conftest.nm
5792 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5793 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && test -s "$nlist"; then
5797 # Try sorting and uniquifying the output.
5798 if sort "$nlist" | uniq > "$nlist"T; then
5799 mv -f "$nlist"T "$nlist"
5800 else
5801 rm -f "$nlist"T
5802 fi
5803
5804 # Make sure that we snagged all the symbols we need.
5805 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5806 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5807 cat <<_LT_EOF > conftest.$ac_ext
5808/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5809#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5810/* DATA imports from DLLs on WIN32 con't be const, because runtime
5811 relocations are performed -- see ld's documentation on pseudo-relocs. */
5812# define LT_DLSYM_CONST
5813#elif defined(__osf__)
5814/* This system does not cope well with relocations in const data. */
5815# define LT_DLSYM_CONST
5816#else
5817# define LT_DLSYM_CONST const
5818#endif
5819
5820#ifdef __cplusplus
5821extern "C" {
5822#endif
5823
5824_LT_EOF
5825 # Now generate the symbol file.
5826 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5827
5828 cat <<_LT_EOF >> conftest.$ac_ext
5829
5830/* The mapping between symbol names and symbols. */
5831LT_DLSYM_CONST struct {
5832 const char *name;
5833 void *address;
5834}
5835lt__PROGRAM__LTX_preloaded_symbols[] =
5836{
5837 { "@PROGRAM@", (void *) 0 },
5838_LT_EOF
5839 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5840 cat <<\_LT_EOF >> conftest.$ac_ext
5841 {0, (void *) 0}
5842};
5843
5844/* This works around a problem in FreeBSD linker */
5845#ifdef FREEBSD_WORKAROUND
5846static const void *lt_preloaded_setup() {
5847 return lt__PROGRAM__LTX_preloaded_symbols;
5848}
5849#endif
5850
5851#ifdef __cplusplus
5852}
5853#endif
5854_LT_EOF
5855 # Now try linking the two files.
5856 mv conftest.$ac_objext conftstm.$ac_objext
5857 lt_globsym_save_LIBS=$LIBS
5858 lt_globsym_save_CFLAGS=$CFLAGS
5859 LIBS="conftstm.$ac_objext"
5860 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5862 (eval $ac_link) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5866 pipe_works=yes
5867 fi
5868 LIBS=$lt_globsym_save_LIBS
5869 CFLAGS=$lt_globsym_save_CFLAGS
5870 else
5871 echo "cannot find nm_test_func in $nlist" >&5
5872 fi
5873 else
5874 echo "cannot find nm_test_var in $nlist" >&5
5875 fi
5876 else
5877 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5878 fi
5879 else
5880 echo "$progname: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5882 fi
5883 rm -rf conftest* conftst*
5884
5885 # Do not use the global_symbol_pipe unless it works.
5886 if test "$pipe_works" = yes; then
5887 break
5888 else
5889 lt_cv_sys_global_symbol_pipe=
5890 fi
5891done
5892
5893fi
5894
5895if test -z "$lt_cv_sys_global_symbol_pipe"; then
5896 lt_cv_sys_global_symbol_to_cdecl=
5897fi
5898if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5899 { echo "$as_me:$LINENO: result: failed" >&5
5900echo "${ECHO_T}failed" >&6; }
5901else
5902 { echo "$as_me:$LINENO: result: ok" >&5
5903echo "${ECHO_T}ok" >&6; }
5904fi
5905
5906# Response file support.
5907if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5908 nm_file_list_spec='@'
5909elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5910 nm_file_list_spec='@'
5911fi
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939{ echo "$as_me:$LINENO: checking for sysroot" >&5
5940echo $ECHO_N "checking for sysroot... $ECHO_C" >&6; }
5941
5942# Check whether --with-sysroot was given.
5943if test "${with_sysroot+set}" = set; then
5944 withval=$with_sysroot;
5945else
5946 with_sysroot=no
5947fi
5948
5949
5950lt_sysroot=
5951case ${with_sysroot} in #(
5952 yes)
5953 if test "$GCC" = yes; then
5954 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5955 fi
5956 ;; #(
5957 /*)
5958 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5959 ;; #(
5960 no|'')
5961 ;; #(
5962 *)
5963 { echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5964echo "${ECHO_T}${with_sysroot}" >&6; }
5965 { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5966echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5967 { (exit 1); exit 1; }; }
5968 ;;
5969esac
5970
5971 { echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5972echo "${ECHO_T}${lt_sysroot:-no}" >&6; }
5973
5974
5975
5976
5977
Lev Walkin27fd0b62007-08-27 23:57:45 +00005978# Check whether --enable-libtool-lock was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00005979if test "${enable_libtool_lock+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00005980 enableval=$enable_libtool_lock;
5981fi
Lev Walkinf15320b2004-06-03 03:38:44 +00005982
Lev Walkin8e8b5482004-06-17 23:42:48 +00005983test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00005984
5985# Some flags need to be propagated to the compiler or linker for good
5986# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005987case $host in
5988ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00005989 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005990 echo 'int i;' > conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00005991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005996 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005997 *ELF-32*)
5998 HPUX_IA64_MODE="32"
5999 ;;
6000 *ELF-64*)
6001 HPUX_IA64_MODE="64"
6002 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006003 esac
6004 fi
6005 rm -rf conftest*
6006 ;;
6007*-*-irix6*)
6008 # Find out which ABI we are using.
Lev Walkin4da95cf2010-10-16 02:46:32 -07006009 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011 (eval $ac_compile) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006015 if test "$lt_cv_prog_gnu_ld" = yes; then
6016 case `/usr/bin/file conftest.$ac_objext` in
6017 *32-bit*)
6018 LD="${LD-ld} -melf32bsmip"
6019 ;;
6020 *N32*)
6021 LD="${LD-ld} -melf32bmipn32"
6022 ;;
6023 *64-bit*)
6024 LD="${LD-ld} -melf64bmip"
6025 ;;
6026 esac
6027 else
6028 case `/usr/bin/file conftest.$ac_objext` in
6029 *32-bit*)
6030 LD="${LD-ld} -32"
6031 ;;
6032 *N32*)
6033 LD="${LD-ld} -n32"
6034 ;;
6035 *64-bit*)
6036 LD="${LD-ld} -64"
6037 ;;
6038 esac
6039 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006040 fi
6041 rm -rf conftest*
6042 ;;
6043
Lev Walkin4da95cf2010-10-16 02:46:32 -07006044x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6045s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006046 # Find out which ABI we are using.
6047 echo 'int i;' > conftest.$ac_ext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006053 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006054 *32-bit*)
6055 case $host in
6056 x86_64-*kfreebsd*-gnu)
6057 LD="${LD-ld} -m elf_i386_fbsd"
6058 ;;
6059 x86_64-*linux*)
6060 LD="${LD-ld} -m elf_i386"
6061 ;;
6062 ppc64-*linux*|powerpc64-*linux*)
6063 LD="${LD-ld} -m elf32ppclinux"
6064 ;;
6065 s390x-*linux*)
6066 LD="${LD-ld} -m elf_s390"
6067 ;;
6068 sparc64-*linux*)
6069 LD="${LD-ld} -m elf32_sparc"
6070 ;;
6071 esac
6072 ;;
6073 *64-bit*)
6074 case $host in
6075 x86_64-*kfreebsd*-gnu)
6076 LD="${LD-ld} -m elf_x86_64_fbsd"
6077 ;;
6078 x86_64-*linux*)
6079 LD="${LD-ld} -m elf_x86_64"
6080 ;;
6081 ppc*-*linux*|powerpc*-*linux*)
6082 LD="${LD-ld} -m elf64ppc"
6083 ;;
6084 s390*-*linux*|s390*-*tpf*)
6085 LD="${LD-ld} -m elf64_s390"
6086 ;;
6087 sparc*-*linux*)
6088 LD="${LD-ld} -m elf64_sparc"
6089 ;;
6090 esac
6091 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006092 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006093 fi
6094 rm -rf conftest*
6095 ;;
6096
6097*-*-sco3.2v5*)
6098 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6099 SAVE_CFLAGS="$CFLAGS"
6100 CFLAGS="$CFLAGS -belf"
Lev Walkin27fd0b62007-08-27 23:57:45 +00006101 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6102echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00006103if test "${lt_cv_cc_needs_belf+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
Lev Walkin8e8b5482004-06-17 23:42:48 +00006106 ac_ext=c
6107ac_cpp='$CPP $CPPFLAGS'
6108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110ac_compiler_gnu=$ac_cv_c_compiler_gnu
6111
6112 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00006113/* confdefs.h. */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h. */
6118
6119int
6120main ()
6121{
6122
6123 ;
6124 return 0;
6125}
6126_ACEOF
6127rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006128if { (ac_try="$ac_link"
6129case "(($ac_try" in
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6132esac
6133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00006135 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00006136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00006139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00006141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6142 { (case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145esac
6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00006152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155esac
6156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00006158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 lt_cv_cc_needs_belf=yes
6162else
6163 echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
Lev Walkin27fd0b62007-08-27 23:57:45 +00006166 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00006167fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006168
6169rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00006170 conftest$ac_exeext conftest.$ac_ext
6171 ac_ext=c
6172ac_cpp='$CPP $CPPFLAGS'
6173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176
Lev Walkinf15320b2004-06-03 03:38:44 +00006177fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006178{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6179echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00006180 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6181 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6182 CFLAGS="$SAVE_CFLAGS"
6183 fi
6184 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006185sparc*-*solaris*)
6186 # Find out which ABI we are using.
6187 echo 'int i;' > conftest.$ac_ext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; then
6193 case `/usr/bin/file conftest.o` in
6194 *64-bit*)
6195 case $lt_cv_prog_gnu_ld in
6196 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07006197 *)
6198 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6199 LD="${LD-ld} -64"
6200 fi
6201 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006202 esac
6203 ;;
6204 esac
6205 fi
6206 rm -rf conftest*
6207 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00006208esac
6209
Lev Walkin8e8b5482004-06-17 23:42:48 +00006210need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00006211
Lev Walkin4da95cf2010-10-16 02:46:32 -07006212if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6214set dummy ${ac_tool_prefix}mt; ac_word=$2
6215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6219else
6220 if test -n "$MANIFEST_TOOL"; then
6221 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234done
6235done
6236IFS=$as_save_IFS
6237
6238fi
6239fi
6240MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6241if test -n "$MANIFEST_TOOL"; then
6242 { echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
6243echo "${ECHO_T}$MANIFEST_TOOL" >&6; }
6244else
6245 { echo "$as_me:$LINENO: result: no" >&5
6246echo "${ECHO_T}no" >&6; }
6247fi
6248
6249
6250fi
6251if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6252 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6253 # Extract the first word of "mt", so it can be a program name with args.
6254set dummy mt; ac_word=$2
6255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 if test -n "$ac_ct_MANIFEST_TOOL"; then
6261 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274done
6275done
6276IFS=$as_save_IFS
6277
6278fi
6279fi
6280ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6281if test -n "$ac_ct_MANIFEST_TOOL"; then
6282 { echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
6283echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6; }
6284else
6285 { echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6; }
6287fi
6288
6289 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6290 MANIFEST_TOOL=":"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293yes:)
6294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6295whose name does not start with the host triplet. If you think this
6296configuration is useful to you, please write to autoconf@gnu.org." >&5
6297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6298whose name does not start with the host triplet. If you think this
6299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6300ac_tool_warned=yes ;;
6301esac
6302 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6303 fi
6304else
6305 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6306fi
6307
6308test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6309{ echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
6310echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6; }
6311if test "${lt_cv_path_mainfest_tool+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314 lt_cv_path_mainfest_tool=no
6315 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6316 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6317 cat conftest.err >&5
6318 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6319 lt_cv_path_mainfest_tool=yes
6320 fi
6321 rm -f conftest*
6322fi
6323{ echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
6324echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6; }
6325if test "x$lt_cv_path_mainfest_tool" != xyes; then
6326 MANIFEST_TOOL=:
6327fi
6328
6329
6330
6331
6332
6333
6334 case $host_os in
6335 rhapsody* | darwin*)
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6338set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 if test -n "$DSYMUTIL"; then
6345 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358done
6359done
6360IFS=$as_save_IFS
6361
6362fi
6363fi
6364DSYMUTIL=$ac_cv_prog_DSYMUTIL
6365if test -n "$DSYMUTIL"; then
6366 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6367echo "${ECHO_T}$DSYMUTIL" >&6; }
6368else
6369 { echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6; }
6371fi
6372
6373
6374fi
6375if test -z "$ac_cv_prog_DSYMUTIL"; then
6376 ac_ct_DSYMUTIL=$DSYMUTIL
6377 # Extract the first word of "dsymutil", so it can be a program name with args.
6378set dummy dsymutil; ac_word=$2
6379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384 if test -n "$ac_ct_DSYMUTIL"; then
6385 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6405if test -n "$ac_ct_DSYMUTIL"; then
6406 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6407echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6408else
6409 { echo "$as_me:$LINENO: result: no" >&5
6410echo "${ECHO_T}no" >&6; }
6411fi
6412
6413 if test "x$ac_ct_DSYMUTIL" = x; then
6414 DSYMUTIL=":"
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417yes:)
6418{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6419whose name does not start with the host triplet. If you think this
6420configuration is useful to you, please write to autoconf@gnu.org." >&5
6421echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6422whose name does not start with the host triplet. If you think this
6423configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6424ac_tool_warned=yes ;;
6425esac
6426 DSYMUTIL=$ac_ct_DSYMUTIL
6427 fi
6428else
6429 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6430fi
6431
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6434set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437if test "${ac_cv_prog_NMEDIT+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440 if test -n "$NMEDIT"; then
6441 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455done
6456IFS=$as_save_IFS
6457
6458fi
6459fi
6460NMEDIT=$ac_cv_prog_NMEDIT
6461if test -n "$NMEDIT"; then
6462 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6463echo "${ECHO_T}$NMEDIT" >&6; }
6464else
6465 { echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6; }
6467fi
6468
6469
6470fi
6471if test -z "$ac_cv_prog_NMEDIT"; then
6472 ac_ct_NMEDIT=$NMEDIT
6473 # Extract the first word of "nmedit", so it can be a program name with args.
6474set dummy nmedit; ac_word=$2
6475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 if test -n "$ac_ct_NMEDIT"; then
6481 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6482else
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494done
6495done
6496IFS=$as_save_IFS
6497
6498fi
6499fi
6500ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6501if test -n "$ac_ct_NMEDIT"; then
6502 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6503echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6504else
6505 { echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6; }
6507fi
6508
6509 if test "x$ac_ct_NMEDIT" = x; then
6510 NMEDIT=":"
6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513yes:)
6514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6515whose name does not start with the host triplet. If you think this
6516configuration is useful to you, please write to autoconf@gnu.org." >&5
6517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6518whose name does not start with the host triplet. If you think this
6519configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6520ac_tool_warned=yes ;;
6521esac
6522 NMEDIT=$ac_ct_NMEDIT
6523 fi
6524else
6525 NMEDIT="$ac_cv_prog_NMEDIT"
6526fi
6527
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6530set dummy ${ac_tool_prefix}lipo; ac_word=$2
6531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533if test "${ac_cv_prog_LIPO+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536 if test -n "$LIPO"; then
6537 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551done
6552IFS=$as_save_IFS
6553
6554fi
6555fi
6556LIPO=$ac_cv_prog_LIPO
6557if test -n "$LIPO"; then
6558 { echo "$as_me:$LINENO: result: $LIPO" >&5
6559echo "${ECHO_T}$LIPO" >&6; }
6560else
6561 { echo "$as_me:$LINENO: result: no" >&5
6562echo "${ECHO_T}no" >&6; }
6563fi
6564
6565
6566fi
6567if test -z "$ac_cv_prog_LIPO"; then
6568 ac_ct_LIPO=$LIPO
6569 # Extract the first word of "lipo", so it can be a program name with args.
6570set dummy lipo; ac_word=$2
6571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576 if test -n "$ac_ct_LIPO"; then
6577 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_ac_ct_LIPO="lipo"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590done
6591done
6592IFS=$as_save_IFS
6593
6594fi
6595fi
6596ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6597if test -n "$ac_ct_LIPO"; then
6598 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6599echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6600else
6601 { echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6; }
6603fi
6604
6605 if test "x$ac_ct_LIPO" = x; then
6606 LIPO=":"
6607 else
6608 case $cross_compiling:$ac_tool_warned in
6609yes:)
6610{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6611whose name does not start with the host triplet. If you think this
6612configuration is useful to you, please write to autoconf@gnu.org." >&5
6613echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6614whose name does not start with the host triplet. If you think this
6615configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6616ac_tool_warned=yes ;;
6617esac
6618 LIPO=$ac_ct_LIPO
6619 fi
6620else
6621 LIPO="$ac_cv_prog_LIPO"
6622fi
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6626set dummy ${ac_tool_prefix}otool; ac_word=$2
6627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629if test "${ac_cv_prog_OTOOL+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632 if test -n "$OTOOL"; then
6633 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652OTOOL=$ac_cv_prog_OTOOL
6653if test -n "$OTOOL"; then
6654 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6655echo "${ECHO_T}$OTOOL" >&6; }
6656else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658echo "${ECHO_T}no" >&6; }
6659fi
6660
6661
6662fi
6663if test -z "$ac_cv_prog_OTOOL"; then
6664 ac_ct_OTOOL=$OTOOL
6665 # Extract the first word of "otool", so it can be a program name with args.
6666set dummy otool; ac_word=$2
6667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672 if test -n "$ac_ct_OTOOL"; then
6673 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_OTOOL="otool"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6693if test -n "$ac_ct_OTOOL"; then
6694 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6695echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6696else
6697 { echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6; }
6699fi
6700
6701 if test "x$ac_ct_OTOOL" = x; then
6702 OTOOL=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705yes:)
6706{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6707whose name does not start with the host triplet. If you think this
6708configuration is useful to you, please write to autoconf@gnu.org." >&5
6709echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6710whose name does not start with the host triplet. If you think this
6711configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6712ac_tool_warned=yes ;;
6713esac
6714 OTOOL=$ac_ct_OTOOL
6715 fi
6716else
6717 OTOOL="$ac_cv_prog_OTOOL"
6718fi
6719
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6722set dummy ${ac_tool_prefix}otool64; ac_word=$2
6723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725if test "${ac_cv_prog_OTOOL64+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728 if test -n "$OTOOL64"; then
6729 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748OTOOL64=$ac_cv_prog_OTOOL64
6749if test -n "$OTOOL64"; then
6750 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6751echo "${ECHO_T}$OTOOL64" >&6; }
6752else
6753 { echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6; }
6755fi
6756
6757
6758fi
6759if test -z "$ac_cv_prog_OTOOL64"; then
6760 ac_ct_OTOOL64=$OTOOL64
6761 # Extract the first word of "otool64", so it can be a program name with args.
6762set dummy otool64; ac_word=$2
6763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768 if test -n "$ac_ct_OTOOL64"; then
6769 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_OTOOL64="otool64"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782done
6783done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
6788ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6789if test -n "$ac_ct_OTOOL64"; then
6790 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6791echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6792else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6; }
6795fi
6796
6797 if test "x$ac_ct_OTOOL64" = x; then
6798 OTOOL64=":"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801yes:)
6802{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6803whose name does not start with the host triplet. If you think this
6804configuration is useful to you, please write to autoconf@gnu.org." >&5
6805echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6806whose name does not start with the host triplet. If you think this
6807configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810 OTOOL64=$ac_ct_OTOOL64
6811 fi
6812else
6813 OTOOL64="$ac_cv_prog_OTOOL64"
6814fi
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6843echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6844if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847 lt_cv_apple_cc_single_mod=no
6848 if test -z "${LT_MULTI_MODULE}"; then
6849 # By default we will add the -single_module flag. You can override
6850 # by either setting the environment variable LT_MULTI_MODULE
6851 # non-empty at configure time, or by adding -multi_module to the
6852 # link flags.
6853 rm -rf libconftest.dylib*
6854 echo "int foo(void){return 1;}" > conftest.c
6855 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6856-dynamiclib -Wl,-single_module conftest.c" >&5
6857 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6858 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6859 _lt_result=$?
6860 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6861 lt_cv_apple_cc_single_mod=yes
6862 else
6863 cat conftest.err >&5
6864 fi
6865 rm -rf libconftest.dylib*
6866 rm -f conftest.*
6867 fi
6868fi
6869{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6870echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6871 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6872echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6873if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875else
6876 lt_cv_ld_exported_symbols_list=no
6877 save_LDFLAGS=$LDFLAGS
6878 echo "_main" > conftest.sym
6879 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
6886
6887int
6888main ()
6889{
6890
6891 ;
6892 return 0;
6893}
6894_ACEOF
6895rm -f conftest.$ac_objext conftest$ac_exeext
6896if { (ac_try="$ac_link"
6897case "(($ac_try" in
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6900esac
6901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_link") 2>conftest.er1
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6910 { (case "(($ac_try" in
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6913esac
6914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_try") 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest$ac_exeext'
6920 { (case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923esac
6924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_try") 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 lt_cv_ld_exported_symbols_list=yes
6930else
6931 echo "$as_me: failed program was:" >&5
6932sed 's/^/| /' conftest.$ac_ext >&5
6933
6934 lt_cv_ld_exported_symbols_list=no
6935fi
6936
6937rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 LDFLAGS="$save_LDFLAGS"
6940
6941fi
6942{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6943echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6944 { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6945echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; }
6946if test "${lt_cv_ld_force_load+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 lt_cv_ld_force_load=no
6950 cat > conftest.c << _LT_EOF
6951int forced_loaded() { return 2;}
6952_LT_EOF
6953 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6954 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6955 echo "$AR cru libconftest.a conftest.o" >&5
6956 $AR cru libconftest.a conftest.o 2>&5
6957 echo "$RANLIB libconftest.a" >&5
6958 $RANLIB libconftest.a 2>&5
6959 cat > conftest.c << _LT_EOF
6960int main() { return 0;}
6961_LT_EOF
6962 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6963 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6964 _lt_result=$?
6965 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6966 lt_cv_ld_force_load=yes
6967 else
6968 cat conftest.err >&5
6969 fi
6970 rm -f conftest.err libconftest.a conftest conftest.c
6971 rm -rf conftest.dSYM
6972
6973fi
6974{ echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6975echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
6976 case $host_os in
6977 rhapsody* | darwin1.[012])
6978 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6979 darwin1.*)
6980 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6981 darwin*) # darwin 5.x on
6982 # if running on 10.5 or later, the deployment target defaults
6983 # to the OS version, if on x86, and 10.4, the deployment
6984 # target defaults to 10.4. Don't you love it?
6985 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6986 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6987 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6988 10.[012]*)
6989 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6990 10.*)
6991 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6992 esac
6993 ;;
6994 esac
6995 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6996 _lt_dar_single_mod='$single_module'
6997 fi
6998 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6999 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7000 else
7001 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7002 fi
7003 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7004 _lt_dsymutil='~$DSYMUTIL $lib || :'
7005 else
7006 _lt_dsymutil=
7007 fi
7008 ;;
7009 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00007010
Lev Walkin8e8b5482004-06-17 23:42:48 +00007011ac_ext=c
7012ac_cpp='$CPP $CPPFLAGS'
7013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +00007016{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7017echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007018# On Suns, sometimes $CPP names a directory.
7019if test -n "$CPP" && test -d "$CPP"; then
7020 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00007021fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007022if test -z "$CPP"; then
7023 if test "${ac_cv_prog_CPP+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 # Double quotes because CPP needs to be expanded
7027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7028 do
7029 ac_preproc_ok=false
7030for ac_c_preproc_warn_flag in '' yes
7031do
7032 # Use a header file that comes with gcc, so configuring glibc
7033 # with a fresh cross-compiler works.
7034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 # <limits.h> exists even on freestanding compilers.
7036 # On the NeXT, cc -E runs the code through the compiler's parser,
7037 # not just through cpp. "Syntax error" is here to catch this case.
7038 cat >conftest.$ac_ext <<_ACEOF
7039/* confdefs.h. */
7040_ACEOF
7041cat confdefs.h >>conftest.$ac_ext
7042cat >>conftest.$ac_ext <<_ACEOF
7043/* end confdefs.h. */
7044#ifdef __STDC__
7045# include <limits.h>
7046#else
7047# include <assert.h>
7048#endif
7049 Syntax error
7050_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00007051if { (ac_try="$ac_cpp conftest.$ac_ext"
7052case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055esac
7056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007058 ac_status=$?
7059 grep -v '^ *+' conftest.er1 >conftest.err
7060 rm -f conftest.er1
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } >/dev/null; then
7064 if test -s conftest.err; then
7065 ac_cpp_err=$ac_c_preproc_warn_flag
7066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7067 else
7068 ac_cpp_err=
Lev Walkinf15320b2004-06-03 03:38:44 +00007069 fi
7070else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007071 ac_cpp_err=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00007072fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007073if test -z "$ac_cpp_err"; then
7074 :
7075else
7076 echo "$as_me: failed program was:" >&5
7077sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 # Broken: fails on valid input.
7080continue
7081fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007082
Lev Walkin8e8b5482004-06-17 23:42:48 +00007083rm -f conftest.err conftest.$ac_ext
7084
Lev Walkin27fd0b62007-08-27 23:57:45 +00007085 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007086 # can be detected and how.
7087 cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093#include <ac_nonexistent.h>
7094_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00007095if { (ac_try="$ac_cpp conftest.$ac_ext"
7096case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7099esac
7100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007102 ac_status=$?
7103 grep -v '^ *+' conftest.er1 >conftest.err
7104 rm -f conftest.er1
7105 cat conftest.err >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } >/dev/null; then
7108 if test -s conftest.err; then
7109 ac_cpp_err=$ac_c_preproc_warn_flag
7110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7111 else
7112 ac_cpp_err=
7113 fi
7114else
7115 ac_cpp_err=yes
7116fi
7117if test -z "$ac_cpp_err"; then
7118 # Broken: success on invalid input.
7119continue
7120else
7121 echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 # Passes both tests.
7125ac_preproc_ok=:
7126break
7127fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007128
Lev Walkin8e8b5482004-06-17 23:42:48 +00007129rm -f conftest.err conftest.$ac_ext
7130
7131done
7132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7133rm -f conftest.err conftest.$ac_ext
7134if $ac_preproc_ok; then
7135 break
7136fi
7137
7138 done
7139 ac_cv_prog_CPP=$CPP
7140
7141fi
7142 CPP=$ac_cv_prog_CPP
7143else
7144 ac_cv_prog_CPP=$CPP
7145fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007146{ echo "$as_me:$LINENO: result: $CPP" >&5
7147echo "${ECHO_T}$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007148ac_preproc_ok=false
7149for ac_c_preproc_warn_flag in '' yes
7150do
7151 # Use a header file that comes with gcc, so configuring glibc
7152 # with a fresh cross-compiler works.
7153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7154 # <limits.h> exists even on freestanding compilers.
7155 # On the NeXT, cc -E runs the code through the compiler's parser,
7156 # not just through cpp. "Syntax error" is here to catch this case.
7157 cat >conftest.$ac_ext <<_ACEOF
7158/* confdefs.h. */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h. */
7163#ifdef __STDC__
7164# include <limits.h>
7165#else
7166# include <assert.h>
7167#endif
7168 Syntax error
7169_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00007170if { (ac_try="$ac_cpp conftest.$ac_ext"
7171case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174esac
7175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } >/dev/null; then
7183 if test -s conftest.err; then
7184 ac_cpp_err=$ac_c_preproc_warn_flag
7185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7186 else
7187 ac_cpp_err=
7188 fi
7189else
7190 ac_cpp_err=yes
7191fi
7192if test -z "$ac_cpp_err"; then
7193 :
7194else
7195 echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 # Broken: fails on valid input.
7199continue
7200fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007201
Lev Walkin8e8b5482004-06-17 23:42:48 +00007202rm -f conftest.err conftest.$ac_ext
7203
Lev Walkin27fd0b62007-08-27 23:57:45 +00007204 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007205 # can be detected and how.
7206 cat >conftest.$ac_ext <<_ACEOF
7207/* confdefs.h. */
7208_ACEOF
7209cat confdefs.h >>conftest.$ac_ext
7210cat >>conftest.$ac_ext <<_ACEOF
7211/* end confdefs.h. */
7212#include <ac_nonexistent.h>
7213_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00007214if { (ac_try="$ac_cpp conftest.$ac_ext"
7215case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218esac
7219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } >/dev/null; then
7227 if test -s conftest.err; then
7228 ac_cpp_err=$ac_c_preproc_warn_flag
7229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7230 else
7231 ac_cpp_err=
7232 fi
7233else
7234 ac_cpp_err=yes
7235fi
7236if test -z "$ac_cpp_err"; then
7237 # Broken: success on invalid input.
7238continue
7239else
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 # Passes both tests.
7244ac_preproc_ok=:
7245break
7246fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007247
Lev Walkin8e8b5482004-06-17 23:42:48 +00007248rm -f conftest.err conftest.$ac_ext
7249
7250done
7251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7252rm -f conftest.err conftest.$ac_ext
7253if $ac_preproc_ok; then
7254 :
7255else
7256 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7257See \`config.log' for more details." >&5
7258echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7259See \`config.log' for more details." >&2;}
7260 { (exit 1); exit 1; }; }
7261fi
7262
7263ac_ext=c
7264ac_cpp='$CPP $CPPFLAGS'
7265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268
7269
Lev Walkin27fd0b62007-08-27 23:57:45 +00007270{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7271echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007272if test "${ac_cv_header_stdc+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274else
7275 cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h. */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h. */
7281#include <stdlib.h>
7282#include <stdarg.h>
7283#include <string.h>
7284#include <float.h>
7285
7286int
7287main ()
7288{
7289
7290 ;
7291 return 0;
7292}
7293_ACEOF
7294rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007295if { (ac_try="$ac_compile"
7296case "(($ac_try" in
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7299esac
7300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00007308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7309 { (case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312esac
7313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00007319 { (case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322esac
7323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_header_stdc=yes
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
Lev Walkin27fd0b62007-08-27 23:57:45 +00007333 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007334fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007335
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007337
7338if test $ac_cv_header_stdc = yes; then
7339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7340 cat >conftest.$ac_ext <<_ACEOF
7341/* confdefs.h. */
7342_ACEOF
7343cat confdefs.h >>conftest.$ac_ext
7344cat >>conftest.$ac_ext <<_ACEOF
7345/* end confdefs.h. */
7346#include <string.h>
7347
7348_ACEOF
7349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350 $EGREP "memchr" >/dev/null 2>&1; then
7351 :
7352else
7353 ac_cv_header_stdc=no
7354fi
7355rm -f conftest*
7356
7357fi
7358
7359if test $ac_cv_header_stdc = yes; then
7360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7361 cat >conftest.$ac_ext <<_ACEOF
7362/* confdefs.h. */
7363_ACEOF
7364cat confdefs.h >>conftest.$ac_ext
7365cat >>conftest.$ac_ext <<_ACEOF
7366/* end confdefs.h. */
7367#include <stdlib.h>
7368
7369_ACEOF
7370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7371 $EGREP "free" >/dev/null 2>&1; then
7372 :
7373else
7374 ac_cv_header_stdc=no
7375fi
7376rm -f conftest*
7377
7378fi
7379
7380if test $ac_cv_header_stdc = yes; then
7381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7382 if test "$cross_compiling" = yes; then
7383 :
7384else
7385 cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h. */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h. */
7391#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00007392#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00007393#if ((' ' & 0x0FF) == 0x020)
7394# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7395# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7396#else
7397# define ISLOWER(c) \
7398 (('a' <= (c) && (c) <= 'i') \
7399 || ('j' <= (c) && (c) <= 'r') \
7400 || ('s' <= (c) && (c) <= 'z'))
7401# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7402#endif
7403
7404#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7405int
7406main ()
7407{
7408 int i;
7409 for (i = 0; i < 256; i++)
7410 if (XOR (islower (i), ISLOWER (i))
7411 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00007412 return 2;
7413 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007414}
7415_ACEOF
7416rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007417if { (ac_try="$ac_link"
7418case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421esac
7422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_link") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00007427 { (case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430esac
7431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 :
7437else
7438 echo "$as_me: program exited with status $ac_status" >&5
7439echo "$as_me: failed program was:" >&5
7440sed 's/^/| /' conftest.$ac_ext >&5
7441
7442( exit $ac_status )
7443ac_cv_header_stdc=no
7444fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7446fi
7447
7448
Lev Walkin8e8b5482004-06-17 23:42:48 +00007449fi
7450fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007451{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7452echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007453if test $ac_cv_header_stdc = yes; then
7454
7455cat >>confdefs.h <<\_ACEOF
7456#define STDC_HEADERS 1
7457_ACEOF
7458
7459fi
7460
7461# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7472 inttypes.h stdint.h unistd.h
7473do
7474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +00007475{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
7480 cat >conftest.$ac_ext <<_ACEOF
7481/* confdefs.h. */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h. */
7486$ac_includes_default
7487
7488#include <$ac_header>
7489_ACEOF
7490rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007491if { (ac_try="$ac_compile"
7492case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495esac
7496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00007504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7505 { (case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00007515 { (case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7518esac
7519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7520 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 eval "$as_ac_Header=yes"
7525else
7526 echo "$as_me: failed program was:" >&5
7527sed 's/^/| /' conftest.$ac_ext >&5
7528
Lev Walkin27fd0b62007-08-27 23:57:45 +00007529 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007530fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007531
7532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007533fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007534ac_res=`eval echo '${'$as_ac_Header'}'`
7535 { echo "$as_me:$LINENO: result: $ac_res" >&5
7536echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007537if test `eval echo '${'$as_ac_Header'}'` = yes; then
7538 cat >>confdefs.h <<_ACEOF
7539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7540_ACEOF
7541
7542fi
7543
7544done
7545
7546
7547
7548for ac_header in dlfcn.h
7549do
7550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007554 echo $ECHO_N "(cached) $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007555else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007556 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007557/* confdefs.h. */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h. */
7562$ac_includes_default
Lev Walkin4da95cf2010-10-16 02:46:32 -07007563
Lev Walkin8e8b5482004-06-17 23:42:48 +00007564#include <$ac_header>
7565_ACEOF
7566rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007567if { (ac_try="$ac_compile"
7568case "(($ac_try" in
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571esac
7572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007574 ac_status=$?
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00007580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7581 { (case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584esac
7585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00007591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594esac
7595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007600 eval "$as_ac_Header=yes"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007601else
7602 echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
Lev Walkin4da95cf2010-10-16 02:46:32 -07007605 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007606fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007607
7608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007609fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007610ac_res=`eval echo '${'$as_ac_Header'}'`
7611 { echo "$as_me:$LINENO: result: $ac_res" >&5
7612echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007613if test `eval echo '${'$as_ac_Header'}'` = yes; then
7614 cat >>confdefs.h <<_ACEOF
7615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7616_ACEOF
7617
7618fi
7619
7620done
7621
Lev Walkin8e8b5482004-06-17 23:42:48 +00007622
Lev Walkin8e8b5482004-06-17 23:42:48 +00007623
Lev Walkin27fd0b62007-08-27 23:57:45 +00007624
Lev Walkin8e8b5482004-06-17 23:42:48 +00007625
Lev Walkin4da95cf2010-10-16 02:46:32 -07007626# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00007627
Lev Walkin27fd0b62007-08-27 23:57:45 +00007628
Lev Walkin8e8b5482004-06-17 23:42:48 +00007629
Lev Walkin4da95cf2010-10-16 02:46:32 -07007630 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007631
Lev Walkin8e8b5482004-06-17 23:42:48 +00007632
Lev Walkin4da95cf2010-10-16 02:46:32 -07007633 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007634
Lev Walkin8e8b5482004-06-17 23:42:48 +00007635
Lev Walkin4da95cf2010-10-16 02:46:32 -07007636 # Check whether --enable-shared was given.
7637if test "${enable_shared+set}" = set; then
7638 enableval=$enable_shared; p=${PACKAGE-default}
7639 case $enableval in
7640 yes) enable_shared=yes ;;
7641 no) enable_shared=no ;;
7642 *)
7643 enable_shared=no
7644 # Look at the argument we got. We use all the common list separators.
7645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7646 for pkg in $enableval; do
7647 IFS="$lt_save_ifs"
7648 if test "X$pkg" = "X$p"; then
7649 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00007650 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007651 done
7652 IFS="$lt_save_ifs"
7653 ;;
7654 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007655else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007656 enable_shared=yes
7657fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667 # Check whether --enable-static was given.
7668if test "${enable_static+set}" = set; then
7669 enableval=$enable_static; p=${PACKAGE-default}
7670 case $enableval in
7671 yes) enable_static=yes ;;
7672 no) enable_static=no ;;
7673 *)
7674 enable_static=no
7675 # Look at the argument we got. We use all the common list separators.
7676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7677 for pkg in $enableval; do
7678 IFS="$lt_save_ifs"
7679 if test "X$pkg" = "X$p"; then
7680 enable_static=yes
7681 fi
7682 done
7683 IFS="$lt_save_ifs"
7684 ;;
7685 esac
7686else
7687 enable_static=yes
7688fi
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699# Check whether --with-pic was given.
7700if test "${with_pic+set}" = set; then
7701 withval=$with_pic; pic_mode="$withval"
7702else
7703 pic_mode=default
7704fi
7705
7706
7707test -z "$pic_mode" && pic_mode=default
7708
7709
7710
7711
7712
7713
7714
7715 # Check whether --enable-fast-install was given.
7716if test "${enable_fast_install+set}" = set; then
7717 enableval=$enable_fast_install; p=${PACKAGE-default}
7718 case $enableval in
7719 yes) enable_fast_install=yes ;;
7720 no) enable_fast_install=no ;;
7721 *)
7722 enable_fast_install=no
7723 # Look at the argument we got. We use all the common list separators.
7724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7725 for pkg in $enableval; do
7726 IFS="$lt_save_ifs"
7727 if test "X$pkg" = "X$p"; then
7728 enable_fast_install=yes
7729 fi
7730 done
7731 IFS="$lt_save_ifs"
7732 ;;
7733 esac
7734else
7735 enable_fast_install=yes
7736fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748# This can be used to rebuild libtool when needed
7749LIBTOOL_DEPS="$ltmain"
7750
7751# Always use our own libtool.
7752LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779test -z "$LN_S" && LN_S="ln -s"
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794if test -n "${ZSH_VERSION+set}" ; then
7795 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00007796fi
7797
Lev Walkin27fd0b62007-08-27 23:57:45 +00007798{ echo "$as_me:$LINENO: checking for objdir" >&5
7799echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007800if test "${lt_cv_objdir+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 rm -f .libs 2>/dev/null
7804mkdir .libs 2>/dev/null
7805if test -d .libs; then
7806 lt_cv_objdir=.libs
7807else
7808 # MS-DOS does not allow filenames that begin with a dot.
7809 lt_cv_objdir=_libs
7810fi
7811rmdir .libs 2>/dev/null
7812fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007813{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7814echo "${ECHO_T}$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007815objdir=$lt_cv_objdir
7816
7817
7818
7819
7820
Lev Walkin4da95cf2010-10-16 02:46:32 -07007821cat >>confdefs.h <<_ACEOF
7822#define LT_OBJDIR "$lt_cv_objdir/"
7823_ACEOF
7824
7825
7826
7827
Lev Walkin8e8b5482004-06-17 23:42:48 +00007828case $host_os in
7829aix3*)
7830 # AIX sometimes has problems with the GCC collect2 program. For some
7831 # reason, if we set the COLLECT_NAMES environment variable, the problems
7832 # vanish in a puff of smoke.
7833 if test "X${COLLECT_NAMES+set}" != Xset; then
7834 COLLECT_NAMES=
7835 export COLLECT_NAMES
7836 fi
7837 ;;
7838esac
7839
Lev Walkin8e8b5482004-06-17 23:42:48 +00007840# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07007841ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00007842can_build_shared=yes
7843
Lev Walkinfbf1d282007-12-03 14:58:39 +00007844# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007845# which needs '.lib').
7846libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07007847
Lev Walkin8e8b5482004-06-17 23:42:48 +00007848with_gnu_ld="$lt_cv_prog_gnu_ld"
7849
Lev Walkin8e8b5482004-06-17 23:42:48 +00007850old_CC="$CC"
7851old_CFLAGS="$CFLAGS"
7852
7853# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00007854test -z "$CC" && CC=cc
7855test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00007856test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00007857test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00007858test -z "$ac_objext" && ac_objext=o
7859
Lev Walkinfbf1d282007-12-03 14:58:39 +00007860for cc_temp in $compiler""; do
7861 case $cc_temp in
7862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7864 \-*) ;;
7865 *) break;;
7866 esac
7867done
Lev Walkin4da95cf2010-10-16 02:46:32 -07007868cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007869
7870
Lev Walkin8e8b5482004-06-17 23:42:48 +00007871# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007872test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007873case $deplibs_check_method in
7874file_magic*)
7875 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007876 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7877echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007878if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881 case $MAGIC_CMD in
7882[\\/*] | ?:[\\/]*)
7883 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7884 ;;
7885*)
7886 lt_save_MAGIC_CMD="$MAGIC_CMD"
7887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7888 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7889 for ac_dir in $ac_dummy; do
7890 IFS="$lt_save_ifs"
7891 test -z "$ac_dir" && ac_dir=.
7892 if test -f $ac_dir/${ac_tool_prefix}file; then
7893 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7894 if test -n "$file_magic_test_file"; then
7895 case $deplibs_check_method in
7896 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007897 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7899 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7900 $EGREP "$file_magic_regex" > /dev/null; then
7901 :
7902 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007903 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007904
7905*** Warning: the command libtool uses to detect shared libraries,
7906*** $file_magic_cmd, produces output that libtool cannot recognize.
7907*** The result is that libtool may fail to recognize shared libraries
7908*** as such. This will affect the creation of libtool libraries that
7909*** depend on shared libraries, but programs linked with such libtool
7910*** libraries will work regardless of this problem. Nevertheless, you
7911*** may want to report the problem to your system manager and/or to
7912*** bug-libtool@gnu.org
7913
Lev Walkin4da95cf2010-10-16 02:46:32 -07007914_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007915 fi ;;
7916 esac
7917 fi
7918 break
7919 fi
7920 done
7921 IFS="$lt_save_ifs"
7922 MAGIC_CMD="$lt_save_MAGIC_CMD"
7923 ;;
7924esac
7925fi
7926
7927MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7928if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007929 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7930echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007931else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007932 { echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007934fi
7935
Lev Walkin4da95cf2010-10-16 02:46:32 -07007936
7937
7938
7939
Lev Walkin8e8b5482004-06-17 23:42:48 +00007940if test -z "$lt_cv_path_MAGIC_CMD"; then
7941 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007942 { echo "$as_me:$LINENO: checking for file" >&5
7943echo $ECHO_N "checking for file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007944if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947 case $MAGIC_CMD in
7948[\\/*] | ?:[\\/]*)
7949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950 ;;
7951*)
7952 lt_save_MAGIC_CMD="$MAGIC_CMD"
7953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7955 for ac_dir in $ac_dummy; do
7956 IFS="$lt_save_ifs"
7957 test -z "$ac_dir" && ac_dir=.
7958 if test -f $ac_dir/file; then
7959 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7960 if test -n "$file_magic_test_file"; then
7961 case $deplibs_check_method in
7962 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7966 $EGREP "$file_magic_regex" > /dev/null; then
7967 :
7968 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007969 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007970
7971*** Warning: the command libtool uses to detect shared libraries,
7972*** $file_magic_cmd, produces output that libtool cannot recognize.
7973*** The result is that libtool may fail to recognize shared libraries
7974*** as such. This will affect the creation of libtool libraries that
7975*** depend on shared libraries, but programs linked with such libtool
7976*** libraries will work regardless of this problem. Nevertheless, you
7977*** may want to report the problem to your system manager and/or to
7978*** bug-libtool@gnu.org
7979
Lev Walkin4da95cf2010-10-16 02:46:32 -07007980_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007981 fi ;;
7982 esac
7983 fi
7984 break
7985 fi
7986 done
7987 IFS="$lt_save_ifs"
7988 MAGIC_CMD="$lt_save_MAGIC_CMD"
7989 ;;
7990esac
7991fi
7992
7993MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007995 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7996echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007997else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007998 { echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008000fi
8001
Lev Walkin4da95cf2010-10-16 02:46:32 -07008002
Lev Walkin8e8b5482004-06-17 23:42:48 +00008003 else
8004 MAGIC_CMD=:
8005 fi
8006fi
8007
8008 fi
8009 ;;
8010esac
8011
Lev Walkin8e8b5482004-06-17 23:42:48 +00008012# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07008013
Lev Walkin8e8b5482004-06-17 23:42:48 +00008014lt_save_CC="$CC"
8015ac_ext=c
8016ac_cpp='$CPP $CPPFLAGS'
8017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8019ac_compiler_gnu=$ac_cv_c_compiler_gnu
8020
8021
8022# Source file extension for C test sources.
8023ac_ext=c
8024
8025# Object file extension for compiled C test sources.
8026objext=o
8027objext=$objext
8028
8029# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07008030lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008031
8032# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07008033lt_simple_link_test_code='int main(){return(0);}'
8034
8035
8036
8037
8038
Lev Walkin8e8b5482004-06-17 23:42:48 +00008039
8040
8041# If no C compiler was specified, use CC.
8042LTCC=${LTCC-"$CC"}
8043
Lev Walkinfbf1d282007-12-03 14:58:39 +00008044# If no C compiler flags were specified, use CFLAGS.
8045LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8046
Lev Walkin8e8b5482004-06-17 23:42:48 +00008047# Allow CC to be a program name with arguments.
8048compiler=$CC
8049
Lev Walkin4da95cf2010-10-16 02:46:32 -07008050# Save the default compiler, since it gets overwritten when the other
8051# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8052compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00008053
Lev Walkinfbf1d282007-12-03 14:58:39 +00008054# save warnings/boilerplate of simple test code
8055ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07008056echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00008057eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8058_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008059$RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008060
Lev Walkinfbf1d282007-12-03 14:58:39 +00008061ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07008062echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00008063eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8064_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008065$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008066
8067
Lev Walkin4da95cf2010-10-16 02:46:32 -07008068if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008069
8070lt_prog_compiler_no_builtin_flag=
8071
8072if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008073 case $cc_basename in
8074 nvcc*)
8075 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8076 *)
8077 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8078 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008079
Lev Walkin4da95cf2010-10-16 02:46:32 -07008080 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00008081echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008082if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084else
8085 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008086 ac_outfile=conftest.$ac_objext
8087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008088 lt_compiler_flag="-fno-rtti -fno-exceptions"
8089 # Insert the option either (1) after the last *FLAGS variable, or
8090 # (2) before a word containing "conftest.", or (3) at the end.
8091 # Note that $ac_compile itself does not contain backslashes and begins
8092 # with a dollar sign (not a hyphen), so the echo should work correctly.
8093 # The option is referenced via a variable to avoid confusing sed.
8094 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00008095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8097 -e 's:$: $lt_compiler_flag:'`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008099 (eval "$lt_compile" 2>conftest.err)
8100 ac_status=$?
8101 cat conftest.err >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008103 if (exit $ac_status) && test -s "$ac_outfile"; then
8104 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00008105 # So say no if there are warnings other than the usual output.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008106 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008109 lt_cv_prog_compiler_rtti_exceptions=yes
8110 fi
8111 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008112 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008113
8114fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008115{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8116echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008117
8118if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8119 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8120else
8121 :
8122fi
8123
8124fi
8125
Lev Walkin4da95cf2010-10-16 02:46:32 -07008126
8127
8128
8129
8130
8131 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008132lt_prog_compiler_pic=
8133lt_prog_compiler_static=
8134
Lev Walkin8e8b5482004-06-17 23:42:48 +00008135
8136 if test "$GCC" = yes; then
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_static='-static'
8139
8140 case $host_os in
8141 aix*)
8142 # All AIX code is PIC.
8143 if test "$host_cpu" = ia64; then
8144 # AIX 5 now supports IA64 processor
8145 lt_prog_compiler_static='-Bstatic'
8146 fi
8147 ;;
8148
8149 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008150 case $host_cpu in
8151 powerpc)
8152 # see comment about AmigaOS4 .so support
8153 lt_prog_compiler_pic='-fPIC'
8154 ;;
8155 m68k)
8156 # FIXME: we need at least 68020 code to build shared libraries, but
8157 # adding the `-m68020' flag to GCC prevents building anything better,
8158 # like `-m68040'.
8159 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8160 ;;
8161 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008162 ;;
8163
Lev Walkin4da95cf2010-10-16 02:46:32 -07008164 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008165 # PIC is the default for these OSes.
8166 ;;
8167
Lev Walkin4da95cf2010-10-16 02:46:32 -07008168 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008169 # This hack is so that the source file can tell whether it is being
8170 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07008171 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8172 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00008173 lt_prog_compiler_pic='-DDLL_EXPORT'
8174 ;;
8175
8176 darwin* | rhapsody*)
8177 # PIC is the default on this platform
8178 # Common symbols not allowed in MH_DYLIB files
8179 lt_prog_compiler_pic='-fno-common'
8180 ;;
8181
Lev Walkin4da95cf2010-10-16 02:46:32 -07008182 haiku*)
8183 # PIC is the default for Haiku.
8184 # The "-static" flag exists, but is broken.
8185 lt_prog_compiler_static=
8186 ;;
8187
8188 hpux*)
8189 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8190 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8191 # sets the default TLS model and affects inlining.
8192 case $host_cpu in
8193 hppa*64*)
8194 # +Z the default
8195 ;;
8196 *)
8197 lt_prog_compiler_pic='-fPIC'
8198 ;;
8199 esac
8200 ;;
8201
8202 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8204 # Instead, we relocate shared libraries at runtime.
8205 ;;
8206
Lev Walkin8e8b5482004-06-17 23:42:48 +00008207 msdosdjgpp*)
8208 # Just because we use GCC doesn't mean we suddenly get shared libraries
8209 # on systems that don't support them.
8210 lt_prog_compiler_can_build_shared=no
8211 enable_shared=no
8212 ;;
8213
Lev Walkin4da95cf2010-10-16 02:46:32 -07008214 *nto* | *qnx*)
8215 # QNX uses GNU C++, but need to define -shared option too, otherwise
8216 # it will coredump.
8217 lt_prog_compiler_pic='-fPIC -shared'
8218 ;;
8219
Lev Walkin8e8b5482004-06-17 23:42:48 +00008220 sysv4*MP*)
8221 if test -d /usr/nec; then
8222 lt_prog_compiler_pic=-Kconform_pic
8223 fi
8224 ;;
8225
Lev Walkin8e8b5482004-06-17 23:42:48 +00008226 *)
8227 lt_prog_compiler_pic='-fPIC'
8228 ;;
8229 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008230
8231 case $cc_basename in
8232 nvcc*) # Cuda Compiler Driver 2.2
8233 lt_prog_compiler_wl='-Xlinker '
8234 lt_prog_compiler_pic='-Xcompiler -fPIC'
8235 ;;
8236 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008237 else
8238 # PORTME Check for flag to pass linker flags through the system compiler.
8239 case $host_os in
8240 aix*)
8241 lt_prog_compiler_wl='-Wl,'
8242 if test "$host_cpu" = ia64; then
8243 # AIX 5 now supports IA64 processor
8244 lt_prog_compiler_static='-Bstatic'
8245 else
8246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8247 fi
8248 ;;
8249
Lev Walkin4da95cf2010-10-16 02:46:32 -07008250 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008251 # This hack is so that the source file can tell whether it is being
8252 # built for inclusion in a dll (and should export symbols for example).
8253 lt_prog_compiler_pic='-DDLL_EXPORT'
8254 ;;
8255
8256 hpux9* | hpux10* | hpux11*)
8257 lt_prog_compiler_wl='-Wl,'
8258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8259 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00008260 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00008261 hppa*64*|ia64*)
8262 # +Z the default
8263 ;;
8264 *)
8265 lt_prog_compiler_pic='+Z'
8266 ;;
8267 esac
8268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8269 lt_prog_compiler_static='${wl}-a ${wl}archive'
8270 ;;
8271
8272 irix5* | irix6* | nonstopux*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # PIC (with -KPIC) is the default.
8275 lt_prog_compiler_static='-non_shared'
8276 ;;
8277
Lev Walkin4da95cf2010-10-16 02:46:32 -07008278 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008279 case $cc_basename in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008280 # old Intel for x86_64 which still supported -KPIC.
8281 ecc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_pic='-KPIC'
8284 lt_prog_compiler_static='-static'
8285 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008286 # icc used to be incompatible with GCC.
8287 # ICC 10 doesn't accept -KPIC any more.
8288 icc* | ifort*)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-fPIC'
8291 lt_prog_compiler_static='-static'
8292 ;;
8293 # Lahey Fortran 8.1.
8294 lf95*)
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_pic='--shared'
8297 lt_prog_compiler_static='--static'
8298 ;;
8299 nagfor*)
8300 # NAG Fortran compiler
8301 lt_prog_compiler_wl='-Wl,-Wl,,'
8302 lt_prog_compiler_pic='-PIC'
8303 lt_prog_compiler_static='-Bstatic'
8304 ;;
8305 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008306 # Portland Group compilers (*not* the Pentium gcc compiler,
8307 # which looks to be a dead project)
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_pic='-fpic'
8310 lt_prog_compiler_static='-Bstatic'
8311 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008312 ccc*)
8313 lt_prog_compiler_wl='-Wl,'
8314 # All Alpha code is PIC.
8315 lt_prog_compiler_static='-non_shared'
8316 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008317 xl* | bgxl* | bgf* | mpixl*)
8318 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-qpic'
8321 lt_prog_compiler_static='-qstaticlink'
8322 ;;
8323 *)
8324 case `$CC -V 2>&1 | sed 5q` in
8325 *Sun\ F* | *Sun*Fortran*)
8326 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8327 lt_prog_compiler_pic='-KPIC'
8328 lt_prog_compiler_static='-Bstatic'
8329 lt_prog_compiler_wl=''
8330 ;;
8331 *Sun\ C*)
8332 # Sun C 5.9
8333 lt_prog_compiler_pic='-KPIC'
8334 lt_prog_compiler_static='-Bstatic'
8335 lt_prog_compiler_wl='-Wl,'
8336 ;;
8337 esac
8338 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008339 esac
8340 ;;
8341
Lev Walkin4da95cf2010-10-16 02:46:32 -07008342 newsos6)
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 ;;
8346
8347 *nto* | *qnx*)
8348 # QNX uses GNU C++, but need to define -shared option too, otherwise
8349 # it will coredump.
8350 lt_prog_compiler_pic='-fPIC -shared'
8351 ;;
8352
Lev Walkin8e8b5482004-06-17 23:42:48 +00008353 osf3* | osf4* | osf5*)
8354 lt_prog_compiler_wl='-Wl,'
8355 # All OSF/1 code is PIC.
8356 lt_prog_compiler_static='-non_shared'
8357 ;;
8358
Lev Walkin4da95cf2010-10-16 02:46:32 -07008359 rdos*)
8360 lt_prog_compiler_static='-non_shared'
8361 ;;
8362
Lev Walkin8e8b5482004-06-17 23:42:48 +00008363 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008364 lt_prog_compiler_pic='-KPIC'
8365 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008366 case $cc_basename in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008367 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008368 lt_prog_compiler_wl='-Qoption ld ';;
8369 *)
8370 lt_prog_compiler_wl='-Wl,';;
8371 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008372 ;;
8373
8374 sunos4*)
8375 lt_prog_compiler_wl='-Qoption ld '
8376 lt_prog_compiler_pic='-PIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 ;;
8379
Lev Walkinfbf1d282007-12-03 14:58:39 +00008380 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8384 ;;
8385
8386 sysv4*MP*)
8387 if test -d /usr/nec ;then
8388 lt_prog_compiler_pic='-Kconform_pic'
8389 lt_prog_compiler_static='-Bstatic'
8390 fi
8391 ;;
8392
Lev Walkinfbf1d282007-12-03 14:58:39 +00008393 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_pic='-KPIC'
8396 lt_prog_compiler_static='-Bstatic'
8397 ;;
8398
8399 unicos*)
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_can_build_shared=no
8402 ;;
8403
Lev Walkin8e8b5482004-06-17 23:42:48 +00008404 uts4*)
8405 lt_prog_compiler_pic='-pic'
8406 lt_prog_compiler_static='-Bstatic'
8407 ;;
8408
8409 *)
8410 lt_prog_compiler_can_build_shared=no
8411 ;;
8412 esac
8413 fi
8414
Lev Walkinfbf1d282007-12-03 14:58:39 +00008415case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00008416 # For platforms which do not support PIC, -DPIC is meaningless:
8417 *djgpp*)
8418 lt_prog_compiler_pic=
8419 ;;
8420 *)
8421 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8422 ;;
8423esac
8424
Lev Walkin4da95cf2010-10-16 02:46:32 -07008425{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8426echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8427if test "${lt_cv_prog_compiler_pic+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8431fi
8432{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8433echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6; }
8434lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8435
8436#
8437# Check to make sure the PIC flag actually works.
8438#
8439if test -n "$lt_prog_compiler_pic"; then
8440 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8441echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8442if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445 lt_cv_prog_compiler_pic_works=no
8446 ac_outfile=conftest.$ac_objext
8447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8449 # Insert the option either (1) after the last *FLAGS variable, or
8450 # (2) before a word containing "conftest.", or (3) at the end.
8451 # Note that $ac_compile itself does not contain backslashes and begins
8452 # with a dollar sign (not a hyphen), so the echo should work correctly.
8453 # The option is referenced via a variable to avoid confusing sed.
8454 lt_compile=`echo "$ac_compile" | $SED \
8455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8457 -e 's:$: $lt_compiler_flag:'`
8458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8459 (eval "$lt_compile" 2>conftest.err)
8460 ac_status=$?
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 if (exit $ac_status) && test -s "$ac_outfile"; then
8464 # The compiler can only warn and ignore the option if not recognized
8465 # So say no if there are warnings other than the usual output.
8466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8469 lt_cv_prog_compiler_pic_works=yes
8470 fi
8471 fi
8472 $RM conftest*
8473
8474fi
8475{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8476echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8477
8478if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8479 case $lt_prog_compiler_pic in
8480 "" | " "*) ;;
8481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8482 esac
8483else
8484 lt_prog_compiler_pic=
8485 lt_prog_compiler_can_build_shared=no
8486fi
8487
8488fi
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
Lev Walkinfbf1d282007-12-03 14:58:39 +00008500#
8501# Check to make sure the static flag actually works.
8502#
8503wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8504{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8505echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008506if test "${lt_cv_prog_compiler_static_works+set}" = set; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008509 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008510 save_LDFLAGS="$LDFLAGS"
8511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00008513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8514 # The linker can only warn and ignore the option if not recognized
8515 # So say no if there are warnings
8516 if test -s conftest.err; then
8517 # Append any errors to the config.log.
8518 cat conftest.err 1>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008519 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008522 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008523 fi
8524 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008525 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008526 fi
8527 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008528 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00008529 LDFLAGS="$save_LDFLAGS"
8530
8531fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008532{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8533echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00008534
Lev Walkin4da95cf2010-10-16 02:46:32 -07008535if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008536 :
8537else
8538 lt_prog_compiler_static=
8539fi
8540
8541
Lev Walkin4da95cf2010-10-16 02:46:32 -07008542
8543
8544
8545
8546
8547 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00008548echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008549if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008553 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008554 mkdir conftest
8555 cd conftest
8556 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07008557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008558
8559 lt_compiler_flag="-o out/conftest2.$ac_objext"
8560 # Insert the option either (1) after the last *FLAGS variable, or
8561 # (2) before a word containing "conftest.", or (3) at the end.
8562 # Note that $ac_compile itself does not contain backslashes and begins
8563 # with a dollar sign (not a hyphen), so the echo should work correctly.
8564 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00008565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8567 -e 's:$: $lt_compiler_flag:'`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008569 (eval "$lt_compile" 2>out/conftest.err)
8570 ac_status=$?
8571 cat out/conftest.err >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8574 then
8575 # The compiler can only warn and ignore the option if not recognized
8576 # So say no if there are warnings
Lev Walkin4da95cf2010-10-16 02:46:32 -07008577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008580 lt_cv_prog_compiler_c_o=yes
8581 fi
8582 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008583 chmod u+w . 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008584 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008585 # SGI C++ compiler will create directory out/ii_files/ for
8586 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07008587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8588 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00008589 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07008590 $RM -r conftest
8591 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008592
8593fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008594{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8595echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008596
8597
Lev Walkin4da95cf2010-10-16 02:46:32 -07008598
8599
8600
8601
8602 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8603echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8604if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606else
8607 lt_cv_prog_compiler_c_o=no
8608 $RM -r conftest 2>/dev/null
8609 mkdir conftest
8610 cd conftest
8611 mkdir out
8612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613
8614 lt_compiler_flag="-o out/conftest2.$ac_objext"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 lt_compile=`echo "$ac_compile" | $SED \
8620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8622 -e 's:$: $lt_compiler_flag:'`
8623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8624 (eval "$lt_compile" 2>out/conftest.err)
8625 ac_status=$?
8626 cat out/conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8629 then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings
8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_c_o=yes
8636 fi
8637 fi
8638 chmod u+w . 2>&5
8639 $RM conftest*
8640 # SGI C++ compiler will create directory out/ii_files/ for
8641 # template instantiation
8642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8643 $RM out/* && rmdir out
8644 cd ..
8645 $RM -r conftest
8646 $RM conftest*
8647
8648fi
8649{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8650echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8651
8652
8653
8654
Lev Walkin8e8b5482004-06-17 23:42:48 +00008655hard_links="nottested"
8656if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8657 # do not overwrite the value of need_locks provided by the user
Lev Walkin27fd0b62007-08-27 23:57:45 +00008658 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8659echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008660 hard_links=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008661 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8663 touch conftest.a
8664 ln conftest.a conftest.b 2>&5 || hard_links=no
8665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00008666 { echo "$as_me:$LINENO: result: $hard_links" >&5
8667echo "${ECHO_T}$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008668 if test "$hard_links" = no; then
8669 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8670echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8671 need_locks=warn
8672 fi
8673else
8674 need_locks=no
8675fi
8676
Lev Walkin4da95cf2010-10-16 02:46:32 -07008677
8678
8679
8680
8681
8682 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00008683echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008684
8685 runpath_var=
8686 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008687 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008688 archive_cmds=
8689 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008690 compiler_needs_object=no
8691 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008692 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8694 hardcode_automatic=no
8695 hardcode_direct=no
8696 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008697 hardcode_libdir_flag_spec=
8698 hardcode_libdir_flag_spec_ld=
8699 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008700 hardcode_minus_L=no
8701 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07008702 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008703 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00008704 module_cmds=
8705 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008706 old_archive_from_new_cmds=
8707 old_archive_from_expsyms_cmds=
8708 thread_safe_flag_spec=
8709 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008710 # include_expsyms should be a list of space-separated symbols to be *always*
8711 # included in the symbol list
8712 include_expsyms=
8713 # exclude_expsyms can be an extended regexp of symbols to exclude
8714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008717 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719 # platforms (ab)use it in PIC code, but their linkers get confused if
8720 # the symbol is explicitly referenced. Since portable code cannot
8721 # rely on this symbol name, it's probably fine to never include it in
8722 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008723 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008724 extract_expsyms_cmds=
8725
8726 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008727 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8729 # When not using gcc, we currently assume that we are using
8730 # Microsoft Visual C++.
8731 if test "$GCC" != yes; then
8732 with_gnu_ld=no
8733 fi
8734 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008735 interix*)
8736 # we just hope/assume this is gcc and not c89 (= MSVC++)
8737 with_gnu_ld=yes
8738 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008739 openbsd*)
8740 with_gnu_ld=no
8741 ;;
8742 esac
8743
8744 ld_shlibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008745
8746 # On some targets, GNU ld is compatible enough with the native linker
8747 # that we're better off using the native interface for both.
8748 lt_use_gnu_ld_interface=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008749 if test "$with_gnu_ld" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008750 case $host_os in
8751 aix*)
8752 # The AIX port of GNU ld has always aspired to compatibility
8753 # with the native linker. However, as the warning in the GNU ld
8754 # block says, versions before 2.19.5* couldn't really create working
8755 # shared libraries, regardless of the interface used.
8756 case `$LD -v 2>&1` in
8757 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8758 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8759 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8760 *)
8761 lt_use_gnu_ld_interface=yes
8762 ;;
8763 esac
8764 ;;
8765 *)
8766 lt_use_gnu_ld_interface=yes
8767 ;;
8768 esac
8769 fi
8770
8771 if test "$lt_use_gnu_ld_interface" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008772 # If archive_cmds runs LD, not CC, wlarc should be empty
8773 wlarc='${wl}'
8774
Lev Walkinfbf1d282007-12-03 14:58:39 +00008775 # Set some defaults for GNU ld with shared library support. These
8776 # are reset later if shared libraries are not supported. Putting them
8777 # here allows them to be overridden if necessary.
8778 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07008779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008780 export_dynamic_flag_spec='${wl}--export-dynamic'
8781 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008782 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8783 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8784 else
8785 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00008786 fi
8787 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008788 case `$LD -v 2>&1` in
8789 *GNU\ gold*) supports_anon_versioning=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008790 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8791 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8792 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8793 *\ 2.11.*) ;; # other 2.11 versions
8794 *) supports_anon_versioning=yes ;;
8795 esac
8796
Lev Walkin8e8b5482004-06-17 23:42:48 +00008797 # See if GNU ld supports shared libraries.
8798 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008799 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008800 # On AIX/PPC, the GNU linker is very broken
8801 if test "$host_cpu" != ia64; then
8802 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008803 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008804
Lev Walkin4da95cf2010-10-16 02:46:32 -07008805*** Warning: the GNU linker, at least up to release 2.19, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00008806*** to be unable to reliably create shared libraries on AIX.
8807*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkin4da95cf2010-10-16 02:46:32 -07008808*** really care for shared libraries, you may want to install binutils
8809*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8810*** You will then need to restart the configuration process.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008811
Lev Walkin4da95cf2010-10-16 02:46:32 -07008812_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008813 fi
8814 ;;
8815
8816 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008817 case $host_cpu in
8818 powerpc)
8819 # see comment about AmigaOS4 .so support
8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821 archive_expsym_cmds=''
8822 ;;
8823 m68k)
8824 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)'
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8827 ;;
8828 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008829 ;;
8830
8831 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008833 allow_undefined_flag=unsupported
8834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8835 # support --undefined. This deserves some investigation. FIXME
8836 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 else
8838 ld_shlibs=no
8839 fi
8840 ;;
8841
Lev Walkin4da95cf2010-10-16 02:46:32 -07008842 cygwin* | mingw* | pw32* | cegcc*)
8843 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00008844 # as there is no search path for DLLs.
8845 hardcode_libdir_flag_spec='-L$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008846 export_dynamic_flag_spec='${wl}--export-all-symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008847 allow_undefined_flag=unsupported
8848 always_export_symbols=no
8849 enable_shared_with_static_runtimes=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8851 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008852
Lev Walkin4da95cf2010-10-16 02:46:32 -07008853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008855 # If the export-symbols file already is a .def file (1st line
8856 # is EXPORTS), use it as is; otherwise, prepend...
8857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8858 cp $export_symbols $output_objdir/$soname.def;
8859 else
8860 echo EXPORTS > $output_objdir/$soname.def;
8861 cat $export_symbols >> $output_objdir/$soname.def;
8862 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00008863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 else
8865 ld_shlibs=no
8866 fi
8867 ;;
8868
Lev Walkin4da95cf2010-10-16 02:46:32 -07008869 haiku*)
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 link_all_deplibs=yes
8872 ;;
8873
8874 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008875 hardcode_direct=no
8876 hardcode_shlibpath_var=no
8877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8878 export_dynamic_flag_spec='${wl}-E'
8879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8880 # Instead, shared libraries are loaded at an image base (0x10000000 by
8881 # default) and relocated if they conflict, which is a slow very memory
8882 # consuming and fragmenting process. To avoid this, we pick a random,
8883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8886 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'
8887 ;;
8888
Lev Walkin4da95cf2010-10-16 02:46:32 -07008889 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8890 tmp_diet=no
8891 if test "$host_os" = linux-dietlibc; then
8892 case $cc_basename in
8893 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8894 esac
8895 fi
8896 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8897 && test "$tmp_diet" = no
8898 then
8899 tmp_addflag=' $pic_flag'
8900 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008901 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008902 pgcc*) # Portland Group C compiler
8903 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008904 tmp_addflag=' $pic_flag'
8905 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008906 pgf77* | pgf90* | pgf95* | pgfortran*)
8907 # Portland Group f77 and f90 compilers
8908 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008909 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008910 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00008911 tmp_addflag=' -i_dynamic' ;;
8912 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8913 tmp_addflag=' -i_dynamic -nofor_main' ;;
8914 ifc* | ifort*) # Intel Fortran compiler
8915 tmp_addflag=' -nofor_main' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008916 lf95*) # Lahey Fortran 8.1
8917 whole_archive_flag_spec=
8918 tmp_sharedflag='--shared' ;;
8919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8920 tmp_sharedflag='-qmkshrobj'
8921 tmp_addflag= ;;
8922 nvcc*) # Cuda Compiler Driver 2.2
8923 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8924 compiler_needs_object=yes
8925 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008926 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008927 case `$CC -V 2>&1 | sed 5q` in
8928 *Sun\ C*) # Sun C 5.9
8929 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8930 compiler_needs_object=yes
8931 tmp_sharedflag='-G' ;;
8932 *Sun\ F*) # Sun Fortran 8.3
8933 tmp_sharedflag='-G' ;;
8934 esac
8935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008936
Lev Walkin4da95cf2010-10-16 02:46:32 -07008937 if test "x$supports_anon_versioning" = xyes; then
8938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8940 echo "local: *; };" >> $output_objdir/$libname.ver~
8941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8942 fi
8943
8944 case $cc_basename in
8945 xlf* | bgf* | bgxlf* | mpixlf*)
8946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8948 hardcode_libdir_flag_spec=
8949 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8950 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8951 if test "x$supports_anon_versioning" = xyes; then
8952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954 echo "local: *; };" >> $output_objdir/$libname.ver~
8955 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8956 fi
8957 ;;
8958 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008959 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008960 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008961 fi
8962 ;;
8963
8964 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8967 wlarc=
8968 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008969 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008971 fi
8972 ;;
8973
Lev Walkinfbf1d282007-12-03 14:58:39 +00008974 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008976 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008977 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008978
8979*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8980*** create shared libraries on Solaris systems. Therefore, libtool
8981*** is disabling shared libraries support. We urge you to upgrade GNU
8982*** binutils to release 2.9.1 or newer. Another option is to modify
8983*** your PATH or compiler configuration so that the native linker is
8984*** used, and then restart.
8985
Lev Walkin4da95cf2010-10-16 02:46:32 -07008986_LT_EOF
8987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8988 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008990 else
8991 ld_shlibs=no
8992 fi
8993 ;;
8994
Lev Walkinfbf1d282007-12-03 14:58:39 +00008995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8996 case `$LD -v 2>&1` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8998 ld_shlibs=no
8999 cat <<_LT_EOF 1>&2
9000
9001*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9002*** reliably create shared libraries on SCO systems. Therefore, libtool
9003*** is disabling shared libraries support. We urge you to upgrade GNU
9004*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9005*** your PATH or compiler configuration so that the native linker is
9006*** used, and then restart.
9007
9008_LT_EOF
9009 ;;
9010 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009011 # For security reasons, it is highly recommended that you always
9012 # use absolute paths for naming shared libraries, and exclude the
9013 # DT_RUNPATH tag from executables and libraries. But doing so
9014 # requires that you compile everything twice, which is a pain.
9015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009019 else
9020 ld_shlibs=no
9021 fi
9022 ;;
9023 esac
9024 ;;
9025
Lev Walkin8e8b5482004-06-17 23:42:48 +00009026 sunos4*)
9027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028 wlarc=
9029 hardcode_direct=yes
9030 hardcode_shlibpath_var=no
9031 ;;
9032
Lev Walkin8e8b5482004-06-17 23:42:48 +00009033 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009037 else
9038 ld_shlibs=no
9039 fi
9040 ;;
9041 esac
9042
Lev Walkinfbf1d282007-12-03 14:58:39 +00009043 if test "$ld_shlibs" = no; then
9044 runpath_var=
9045 hardcode_libdir_flag_spec=
9046 export_dynamic_flag_spec=
9047 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00009048 fi
9049 else
9050 # PORTME fill in a description of your system's linker (not GNU ld)
9051 case $host_os in
9052 aix3*)
9053 allow_undefined_flag=unsupported
9054 always_export_symbols=yes
9055 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'
9056 # Note: this linker hardcodes the directories in LIBPATH if there
9057 # are no directories specified by -L.
9058 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009060 # Neither direct hardcoding nor static linking is supported with a
9061 # broken collect2.
9062 hardcode_direct=unsupported
9063 fi
9064 ;;
9065
Lev Walkin4da95cf2010-10-16 02:46:32 -07009066 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009067 if test "$host_cpu" = ia64; then
9068 # On IA64, the linker does run time linking by default, so we don't
9069 # have to do anything special.
9070 aix_use_runtimelinking=no
9071 exp_sym_flag='-Bexport'
9072 no_entry_flag=""
9073 else
9074 # If we're using GNU nm, then we don't want the "-C" option.
9075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkin4da95cf2010-10-16 02:46:32 -07009076 # Also, AIX nm treats weak defined symbols like other global
9077 # defined symbols, whereas GNU nm marks them as "W".
9078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9079 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009080 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009081 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009082 fi
9083 aix_use_runtimelinking=no
9084
9085 # Test if we are trying to use run time linking or normal
9086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9087 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07009088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009089 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07009090 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9091 aix_use_runtimelinking=yes
9092 break
9093 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009094 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00009095 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009096 esac
9097
9098 exp_sym_flag='-bexport'
9099 no_entry_flag='-bnoentry'
9100 fi
9101
9102 # When large executables or shared objects are built, AIX ld can
9103 # have problems creating the table of contents. If linking a library
9104 # or program results in "error TOC overflow" add -mminimal-toc to
9105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9107
9108 archive_cmds=''
9109 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009110 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009111 hardcode_libdir_separator=':'
9112 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009113 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009114
9115 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009116 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009117 # We only want to do this on AIX 4.2 and lower, the check
9118 # below for broken collect2 doesn't work under 4.3+
9119 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009120 if test -f "$collect2name" &&
9121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00009122 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009123 # We have reworked collect2
9124 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00009125 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009126 # We have old collect2
9127 hardcode_direct=unsupported
9128 # It fails to find uninstalled libraries when the uninstalled
9129 # path is not listed in the libpath. Setting hardcode_minus_L
9130 # to unsupported forces relinking
9131 hardcode_minus_L=yes
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00009134 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00009135 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009136 esac
9137 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009138 if test "$aix_use_runtimelinking" = yes; then
9139 shared_flag="$shared_flag "'${wl}-G'
9140 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009141 else
9142 # not using gcc
9143 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9145 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00009146 shared_flag='-G'
9147 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009148 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009149 shared_flag='${wl}-G'
9150 else
9151 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009152 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009153 fi
9154 fi
9155
Lev Walkin4da95cf2010-10-16 02:46:32 -07009156 export_dynamic_flag_spec='${wl}-bexpall'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009157 # It seems that -bexpall does not export symbols beginning with
9158 # underscore (_), so it is better to generate a list of symbols to export.
9159 always_export_symbols=yes
9160 if test "$aix_use_runtimelinking" = yes; then
9161 # Warning - without using the other runtime loading flags (-brtl),
9162 # -berok will link without error, but may produce a broken library.
9163 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009164 # Determine the default libpath from the value encoded in an
9165 # empty executable.
9166 if test "${lt_cv_aix_libpath+set}" = set; then
9167 aix_libpath=$lt_cv_aix_libpath
9168else
9169 if test "${lt_cv_aix_libpath_+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
9172 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00009173/* confdefs.h. */
9174_ACEOF
9175cat confdefs.h >>conftest.$ac_ext
9176cat >>conftest.$ac_ext <<_ACEOF
9177/* end confdefs.h. */
9178
9179int
9180main ()
9181{
9182
9183 ;
9184 return 0;
9185}
9186_ACEOF
9187rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009188if { (ac_try="$ac_link"
9189case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192esac
9193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205esac
9206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009212 { (case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215esac
9216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221
Lev Walkin4da95cf2010-10-16 02:46:32 -07009222 lt_aix_libpath_sed='
9223 /Import File Strings/,/^$/ {
9224 /^0/ {
9225 s/^0 *\([^ ]*\) *$/\1/
9226 p
9227 }
9228 }'
9229 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 # Check for a 64-bit object if we didn't find anything.
9231 if test -z "$lt_cv_aix_libpath_"; then
9232 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9233 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009234else
9235 echo "$as_me: failed program was:" >&5
9236sed 's/^/| /' conftest.$ac_ext >&5
9237
Lev Walkin27fd0b62007-08-27 23:57:45 +00009238
Lev Walkin8e8b5482004-06-17 23:42:48 +00009239fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009240
9241rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009242 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07009243 if test -z "$lt_cv_aix_libpath_"; then
9244 lt_cv_aix_libpath_="/usr/lib:/lib"
9245 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009246
Lev Walkin4da95cf2010-10-16 02:46:32 -07009247fi
9248
9249 aix_libpath=$lt_cv_aix_libpath_
9250fi
9251
9252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9253 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9254 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00009255 if test "$host_cpu" = ia64; then
9256 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9257 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00009258 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"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009259 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009260 # Determine the default libpath from the value encoded in an
9261 # empty executable.
9262 if test "${lt_cv_aix_libpath+set}" = set; then
9263 aix_libpath=$lt_cv_aix_libpath
9264else
9265 if test "${lt_cv_aix_libpath_+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267else
9268 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00009269/* confdefs.h. */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h. */
9274
9275int
9276main ()
9277{
9278
9279 ;
9280 return 0;
9281}
9282_ACEOF
9283rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009284if { (ac_try="$ac_link"
9285case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288esac
9289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00009297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9298 { (case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9301esac
9302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00009308 { (case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311esac
9312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317
Lev Walkin4da95cf2010-10-16 02:46:32 -07009318 lt_aix_libpath_sed='
9319 /Import File Strings/,/^$/ {
9320 /^0/ {
9321 s/^0 *\([^ ]*\) *$/\1/
9322 p
9323 }
9324 }'
9325 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326 # Check for a 64-bit object if we didn't find anything.
9327 if test -z "$lt_cv_aix_libpath_"; then
9328 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9329 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009330else
9331 echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
Lev Walkin27fd0b62007-08-27 23:57:45 +00009334
Lev Walkin8e8b5482004-06-17 23:42:48 +00009335fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009336
9337rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009338 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07009339 if test -z "$lt_cv_aix_libpath_"; then
9340 lt_cv_aix_libpath_="/usr/lib:/lib"
9341 fi
9342
9343fi
9344
9345 aix_libpath=$lt_cv_aix_libpath_
9346fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009347
9348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9349 # Warning - without using the other run time loading flags,
9350 # -berok will link without error, but may produce a broken library.
9351 no_undefined_flag=' ${wl}-bernotok'
9352 allow_undefined_flag=' ${wl}-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009353 if test "$with_gnu_ld" = yes; then
9354 # We only use this code for GNU lds that support --whole-archive.
9355 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9356 else
9357 # Exported symbols can be pulled into shared objects from archives
9358 whole_archive_flag_spec='$convenience'
9359 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009360 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009361 # This is similar to how AIX traditionally builds its shared libraries.
9362 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009363 fi
9364 fi
9365 ;;
9366
9367 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009368 case $host_cpu in
9369 powerpc)
9370 # see comment about AmigaOS4 .so support
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds=''
9373 ;;
9374 m68k)
9375 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)'
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 hardcode_minus_L=yes
9378 ;;
9379 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009380 ;;
9381
Lev Walkinfbf1d282007-12-03 14:58:39 +00009382 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009383 export_dynamic_flag_spec=-rdynamic
9384 ;;
9385
Lev Walkin4da95cf2010-10-16 02:46:32 -07009386 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009387 # When not using gcc, we currently assume that we are using
9388 # Microsoft Visual C++.
9389 # hardcode_libdir_flag_spec is actually meaningless, as there is
9390 # no search path for DLLs.
Lev Walkin4da95cf2010-10-16 02:46:32 -07009391 case $cc_basename in
9392 cl*)
9393 # Native MSVC
9394 hardcode_libdir_flag_spec=' '
9395 allow_undefined_flag=unsupported
9396 always_export_symbols=yes
9397 file_list_spec='@'
9398 # Tell ltmain to make .lib files, not .a files.
9399 libext=lib
9400 # Tell ltmain to make .dll files, not .so files.
9401 shrext_cmds=".dll"
9402 # FIXME: Setting linknames here is a bad hack.
9403 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9404 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9405 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9406 else
9407 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9408 fi~
9409 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9410 linknames='
9411 # The linker will not automatically build a static lib if we build a DLL.
9412 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9413 enable_shared_with_static_runtimes=yes
9414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9415 # Don't use ranlib
9416 old_postinstall_cmds='chmod 644 $oldlib'
9417 postlink_cmds='lt_outputfile="@OUTPUT@"~
9418 lt_tool_outputfile="@TOOL_OUTPUT@"~
9419 case $lt_outputfile in
9420 *.exe|*.EXE) ;;
9421 *)
9422 lt_outputfile="$lt_outputfile.exe"
9423 lt_tool_outputfile="$lt_tool_outputfile.exe"
9424 ;;
9425 esac~
9426 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9427 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9428 $RM "$lt_outputfile.manifest";
9429 fi'
9430 ;;
9431 *)
9432 # Assume MSVC wrapper
9433 hardcode_libdir_flag_spec=' '
9434 allow_undefined_flag=unsupported
9435 # Tell ltmain to make .lib files, not .a files.
9436 libext=lib
9437 # Tell ltmain to make .dll files, not .so files.
9438 shrext_cmds=".dll"
9439 # FIXME: Setting linknames here is a bad hack.
9440 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9441 # The linker will automatically build a .lib file if we build a DLL.
9442 old_archive_from_new_cmds='true'
9443 # FIXME: Should let the user specify the lib program.
9444 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9445 enable_shared_with_static_runtimes=yes
9446 ;;
9447 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009448 ;;
9449
9450 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009451
9452
9453 archive_cmds_need_lc=no
9454 hardcode_direct=no
9455 hardcode_automatic=yes
9456 hardcode_shlibpath_var=unsupported
9457 if test "$lt_cv_ld_force_load" = "yes"; then
9458 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9459 else
9460 whole_archive_flag_spec=''
9461 fi
9462 link_all_deplibs=yes
9463 allow_undefined_flag="$_lt_dar_allow_undefined"
9464 case $cc_basename in
9465 ifort*) _lt_dar_can_shared=yes ;;
9466 *) _lt_dar_can_shared=$GCC ;;
9467 esac
9468 if test "$_lt_dar_can_shared" = "yes"; then
9469 output_verbose_link_cmd=func_echo_all
9470 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9471 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9472 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}"
9473 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}"
9474
9475 else
9476 ld_shlibs=no
9477 fi
9478
Lev Walkin8e8b5482004-06-17 23:42:48 +00009479 ;;
9480
9481 dgux*)
9482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_shlibpath_var=no
9485 ;;
9486
9487 freebsd1*)
9488 ld_shlibs=no
9489 ;;
9490
9491 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9492 # support. Future versions do this automatically, but an explicit c++rt0.o
9493 # does not break anything, and helps significantly (at the cost of a little
9494 # extra space).
9495 freebsd2.2*)
9496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9497 hardcode_libdir_flag_spec='-R$libdir'
9498 hardcode_direct=yes
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9503 freebsd2*)
9504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_direct=yes
9506 hardcode_minus_L=yes
9507 hardcode_shlibpath_var=no
9508 ;;
9509
9510 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07009511 freebsd* | dragonfly*)
9512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009513 hardcode_libdir_flag_spec='-R$libdir'
9514 hardcode_direct=yes
9515 hardcode_shlibpath_var=no
9516 ;;
9517
9518 hpux9*)
9519 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009520 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009521 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009522 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009523 fi
9524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 hardcode_direct=yes
9527
9528 # hardcode_minus_L: Not really in the search PATH,
9529 # but as the default location of the library.
9530 hardcode_minus_L=yes
9531 export_dynamic_flag_spec='${wl}-E'
9532 ;;
9533
Lev Walkinfbf1d282007-12-03 14:58:39 +00009534 hpux10*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009535 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9536 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009537 else
9538 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9539 fi
9540 if test "$with_gnu_ld" = no; then
9541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009542 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009543 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00009544 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009545 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009546 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009547 # hardcode_minus_L: Not really in the search PATH,
9548 # but as the default location of the library.
9549 hardcode_minus_L=yes
9550 fi
9551 ;;
9552
9553 hpux11*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009554 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009555 case $host_cpu in
9556 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009557 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009559 ia64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009560 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009561 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009562 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009563 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009564 ;;
9565 esac
9566 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009567 case $host_cpu in
9568 hppa*64*)
9569 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 ;;
9571 ia64*)
9572 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009573 ;;
9574 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009575
9576 # Older versions of the 11.00 compiler do not understand -b yet
9577 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9578 { echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9579echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; }
9580if test "${lt_cv_prog_compiler__b+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582else
9583 lt_cv_prog_compiler__b=no
9584 save_LDFLAGS="$LDFLAGS"
9585 LDFLAGS="$LDFLAGS -b"
9586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9588 # The linker can only warn and ignore the option if not recognized
9589 # So say no if there are warnings
9590 if test -s conftest.err; then
9591 # Append any errors to the config.log.
9592 cat conftest.err 1>&5
9593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9595 if diff conftest.exp conftest.er2 >/dev/null; then
9596 lt_cv_prog_compiler__b=yes
9597 fi
9598 else
9599 lt_cv_prog_compiler__b=yes
9600 fi
9601 fi
9602 $RM -r conftest*
9603 LDFLAGS="$save_LDFLAGS"
9604
9605fi
9606{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9607echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
9608
9609if test x"$lt_cv_prog_compiler__b" = xyes; then
9610 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9611else
9612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9613fi
9614
Lev Walkin8e8b5482004-06-17 23:42:48 +00009615 ;;
9616 esac
9617 fi
9618 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9620 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00009621
Lev Walkinfbf1d282007-12-03 14:58:39 +00009622 case $host_cpu in
9623 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009624 hardcode_direct=no
9625 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009626 ;;
9627 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009628 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009629 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009630 export_dynamic_flag_spec='${wl}-E'
9631
9632 # hardcode_minus_L: Not really in the search PATH,
9633 # but as the default location of the library.
9634 hardcode_minus_L=yes
9635 ;;
9636 esac
9637 fi
9638 ;;
9639
9640 irix5* | irix6* | nonstopux*)
9641 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9643 # Try to use the -exported_symbol ld option, if it does not
9644 # work, assume that -exports_file does not work either and
9645 # implicitly export all symbols.
9646 # This should be the same for all languages, so no per-tag cache variable.
9647 { echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9648echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6; }
9649if test "${lt_cv_irix_exported_symbol+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9651else
9652 save_LDFLAGS="$LDFLAGS"
9653 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660int foo (void) { return 0; }
9661_ACEOF
9662rm -f conftest.$ac_objext conftest$ac_exeext
9663if { (ac_try="$ac_link"
9664case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667esac
9668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9680esac
9681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 lt_cv_irix_exported_symbol=yes
9697else
9698 echo "$as_me: failed program was:" >&5
9699sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 lt_cv_irix_exported_symbol=no
9702fi
9703
9704rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 LDFLAGS="$save_LDFLAGS"
9707fi
9708{ echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9709echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6; }
9710 if test "$lt_cv_irix_exported_symbol" = yes; then
9711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9712 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009713 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9715 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009716 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009717 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9719 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07009720 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009721 link_all_deplibs=yes
9722 ;;
9723
9724 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9727 else
9728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9729 fi
9730 hardcode_libdir_flag_spec='-R$libdir'
9731 hardcode_direct=yes
9732 hardcode_shlibpath_var=no
9733 ;;
9734
9735 newsos6)
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_direct=yes
9738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9739 hardcode_libdir_separator=:
9740 hardcode_shlibpath_var=no
9741 ;;
9742
Lev Walkin4da95cf2010-10-16 02:46:32 -07009743 *nto* | *qnx*)
9744 ;;
9745
Lev Walkin8e8b5482004-06-17 23:42:48 +00009746 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009747 if test -f /usr/libexec/ld.so; then
9748 hardcode_direct=yes
9749 hardcode_shlibpath_var=no
9750 hardcode_direct_absolute=yes
9751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9754 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9755 export_dynamic_flag_spec='${wl}-E'
9756 else
9757 case $host_os in
9758 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_libdir_flag_spec='-R$libdir'
9761 ;;
9762 *)
9763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9765 ;;
9766 esac
9767 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009768 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009769 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009770 fi
9771 ;;
9772
9773 os2*)
9774 hardcode_libdir_flag_spec='-L$libdir'
9775 hardcode_minus_L=yes
9776 allow_undefined_flag=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07009777 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'
9778 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009779 ;;
9780
9781 osf3*)
9782 if test "$GCC" = yes; then
9783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009784 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009785 else
9786 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009787 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009788 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009789 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9791 hardcode_libdir_separator=:
9792 ;;
9793
9794 osf4* | osf5*) # as osf3* with the addition of -msym flag
9795 if test "$GCC" = yes; then
9796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009797 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9799 else
9800 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009801 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9802 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~
9803 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009804
9805 # Both c and cxx compiler support -rpath directly
9806 hardcode_libdir_flag_spec='-rpath $libdir'
9807 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009808 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009809 hardcode_libdir_separator=:
9810 ;;
9811
Lev Walkin8e8b5482004-06-17 23:42:48 +00009812 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009813 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009814 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009815 wlarc='${wl}'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009816 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9818 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009819 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009820 case `$CC -V 2>&1` in
9821 *"Compilers 5.0"*)
9822 wlarc=''
9823 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9826 ;;
9827 *)
9828 wlarc='${wl}'
9829 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9831 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9832 ;;
9833 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009834 fi
9835 hardcode_libdir_flag_spec='-R$libdir'
9836 hardcode_shlibpath_var=no
9837 case $host_os in
9838 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009839 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009840 # The compiler driver will combine and reorder linker options,
9841 # but understands `-z linker_flag'. GCC discards it without `$wl',
9842 # but is careful enough not to reorder.
9843 # Supported since Solaris 2.6 (maybe 2.5.1?)
9844 if test "$GCC" = yes; then
9845 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9846 else
9847 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9848 fi
9849 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009850 esac
9851 link_all_deplibs=yes
9852 ;;
9853
9854 sunos4*)
9855 if test "x$host_vendor" = xsequent; then
9856 # Use $CC to link under sequent, because it throws in some extra .o
9857 # files that make .init and .fini sections work.
9858 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9859 else
9860 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9861 fi
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_direct=yes
9864 hardcode_minus_L=yes
9865 hardcode_shlibpath_var=no
9866 ;;
9867
9868 sysv4)
9869 case $host_vendor in
9870 sni)
9871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_direct=yes # is this really true???
9873 ;;
9874 siemens)
9875 ## LD is ld it makes a PLAMLIB
9876 ## CC just makes a GrossModule.
9877 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9878 reload_cmds='$CC -r -o $output$reload_objs'
9879 hardcode_direct=no
9880 ;;
9881 motorola)
9882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9884 ;;
9885 esac
9886 runpath_var='LD_RUN_PATH'
9887 hardcode_shlibpath_var=no
9888 ;;
9889
9890 sysv4.3*)
9891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9892 hardcode_shlibpath_var=no
9893 export_dynamic_flag_spec='-Bexport'
9894 ;;
9895
9896 sysv4*MP*)
9897 if test -d /usr/nec; then
9898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9899 hardcode_shlibpath_var=no
9900 runpath_var=LD_RUN_PATH
9901 hardcode_runpath_var=yes
9902 ld_shlibs=yes
9903 fi
9904 ;;
9905
Lev Walkin4da95cf2010-10-16 02:46:32 -07009906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009907 no_undefined_flag='${wl}-z,text'
9908 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009909 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009910 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009911
Lev Walkin8e8b5482004-06-17 23:42:48 +00009912 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009913 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9914 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009915 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009916 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009918 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009919 ;;
9920
Lev Walkinfbf1d282007-12-03 14:58:39 +00009921 sysv5* | sco3.2v5* | sco5v6*)
9922 # Note: We can NOT use -z defs as we might desire, because we do not
9923 # link with -lc, and that would cause any symbols used from libc to
9924 # always be unresolved, which means just about no library would
9925 # ever link correctly. If we're not using GNU ld we use -z text
9926 # though, which does catch some bad symbols but isn't as heavy-handed
9927 # as -z defs.
9928 no_undefined_flag='${wl}-z,text'
9929 allow_undefined_flag='${wl}-z,nodefs'
9930 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009931 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009932 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009933 hardcode_libdir_separator=':'
9934 link_all_deplibs=yes
9935 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009936 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009937
9938 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009939 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009941 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009942 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009944 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009945 ;;
9946
9947 uts4*)
9948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949 hardcode_libdir_flag_spec='-L$libdir'
9950 hardcode_shlibpath_var=no
9951 ;;
9952
9953 *)
9954 ld_shlibs=no
9955 ;;
9956 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009957
9958 if test x$host_vendor = xsni; then
9959 case $host in
9960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9961 export_dynamic_flag_spec='${wl}-Blargedynsym'
9962 ;;
9963 esac
9964 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009965 fi
9966
Lev Walkin27fd0b62007-08-27 23:57:45 +00009967{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9968echo "${ECHO_T}$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009969test "$ld_shlibs" = no && can_build_shared=no
9970
Lev Walkin4da95cf2010-10-16 02:46:32 -07009971with_gnu_ld=$with_gnu_ld
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
Lev Walkin8e8b5482004-06-17 23:42:48 +00009987#
9988# Do we need to explicitly link libc?
9989#
9990case "x$archive_cmds_need_lc" in
9991x|xyes)
9992 # Assume -lc should be added
9993 archive_cmds_need_lc=yes
9994
9995 if test "$enable_shared" = yes && test "$GCC" = yes; then
9996 case $archive_cmds in
9997 *'~'*)
9998 # FIXME: we may have to deal with multi-command sequences.
9999 ;;
10000 '$CC '*)
10001 # Test whether the compiler implicitly links with -lc since on some
10002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10003 # to ld, don't add -lc before -lgcc.
Lev Walkin27fd0b62007-08-27 23:57:45 +000010004 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10005echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010006if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008else
10009 $RM conftest*
10010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010011
Lev Walkin4da95cf2010-10-16 02:46:32 -070010012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010013 (eval $ac_compile) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } 2>conftest.err; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010017 soname=conftest
10018 lib=conftest
10019 libobjs=conftest.$ac_objext
10020 deplibs=
10021 wl=$lt_prog_compiler_wl
10022 pic_flag=$lt_prog_compiler_pic
10023 compiler_flags=-v
10024 linker_flags=-v
10025 verstring=
10026 output_objdir=.
10027 libname=conftest
10028 lt_save_allow_undefined_flag=$allow_undefined_flag
10029 allow_undefined_flag=
10030 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10031 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000010032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010035 then
10036 lt_cv_archive_cmds_need_lc=no
10037 else
10038 lt_cv_archive_cmds_need_lc=yes
10039 fi
10040 allow_undefined_flag=$lt_save_allow_undefined_flag
10041 else
10042 cat conftest.err 1>&5
10043 fi
10044 $RM conftest*
10045
10046fi
10047{ echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10048echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
10049 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Lev Walkin8e8b5482004-06-17 23:42:48 +000010050 ;;
10051 esac
10052 fi
10053 ;;
10054esac
10055
Lev Walkin4da95cf2010-10-16 02:46:32 -070010056
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
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010213echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010214
10215if test "$GCC" = yes; then
10216 case $host_os in
10217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10218 *) lt_awk_arg="/^libraries:/" ;;
10219 esac
10220 case $host_os in
10221 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10222 *) lt_sed_strip_eq="s,=/,/,g" ;;
10223 esac
10224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10225 case $lt_search_path_spec in
10226 *\;*)
10227 # if the path contains ";" then we assume it to be the separator
10228 # otherwise default to the standard path separator (i.e. ":") - it is
10229 # assumed that no part of a normal pathname contains ";" but that should
10230 # okay in the real world where ";" in dirpaths is itself problematic.
10231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10232 ;;
10233 *)
10234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10235 ;;
10236 esac
10237 # Ok, now we have the path, separated by spaces, we can step through it
10238 # and add multilib dir if necessary.
10239 lt_tmp_lt_search_path_spec=
10240 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10241 for lt_sys_path in $lt_search_path_spec; do
10242 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10244 else
10245 test -d "$lt_sys_path" && \
10246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10247 fi
10248 done
10249 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10250BEGIN {RS=" "; FS="/|\n";} {
10251 lt_foo="";
10252 lt_count=0;
10253 for (lt_i = NF; lt_i > 0; lt_i--) {
10254 if ($lt_i != "" && $lt_i != ".") {
10255 if ($lt_i == "..") {
10256 lt_count++;
10257 } else {
10258 if (lt_count == 0) {
10259 lt_foo="/" $lt_i lt_foo;
10260 } else {
10261 lt_count--;
10262 }
10263 }
10264 }
10265 }
10266 if (lt_foo != "") { lt_freq[lt_foo]++; }
10267 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10268}'`
10269 # AWK program above erroneously prepends '/' to C:/dos/paths
10270 # for these hosts.
10271 case $host_os in
10272 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10273 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10274 esac
10275 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10276else
10277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10278fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010279library_names_spec=
10280libname_spec='lib$name'
10281soname_spec=
10282shrext_cmds=".so"
10283postinstall_cmds=
10284postuninstall_cmds=
10285finish_cmds=
10286finish_eval=
10287shlibpath_var=
10288shlibpath_overrides_runpath=unknown
10289version_type=none
10290dynamic_linker="$host_os ld.so"
10291sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010292need_lib_prefix=unknown
10293hardcode_into_libs=no
10294
10295# when you set need_version to no, make sure it does not cause -set_version
10296# flags to be left without arguments
10297need_version=unknown
10298
10299case $host_os in
10300aix3*)
10301 version_type=linux
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10303 shlibpath_var=LIBPATH
10304
10305 # AIX 3 has no versioning support, so we append a major version to the name.
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 ;;
10308
Lev Walkin4da95cf2010-10-16 02:46:32 -070010309aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 hardcode_into_libs=yes
10314 if test "$host_cpu" = ia64; then
10315 # AIX 5 supports IA64
10316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 else
10319 # With GCC up to 2.95.x, collect2 would create an import file
10320 # for dependence libraries. The import file would start with
10321 # the line `#! .'. This would cause the generated library to
10322 # depend on `.', always an invalid library. This was fixed in
10323 # development snapshots of GCC prior to 3.0.
10324 case $host_os in
10325 aix4 | aix4.[01] | aix4.[01].*)
10326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10327 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -070010328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010329 :
10330 else
10331 can_build_shared=no
10332 fi
10333 ;;
10334 esac
10335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10336 # soname into executable. Probably we can add versioning support to
10337 # collect2, so additional links can be useful in future.
10338 if test "$aix_use_runtimelinking" = yes; then
10339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10340 # instead of lib<name>.a to let people know that these are not
10341 # typical AIX shared libraries.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 else
10344 # We preserve .a as extension for shared libraries through AIX4.2
10345 # and later when we are not doing run time linking.
10346 library_names_spec='${libname}${release}.a $libname.a'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 fi
10349 shlibpath_var=LIBPATH
10350 fi
10351 ;;
10352
10353amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -070010354 case $host_cpu in
10355 powerpc)
10356 # Since July 2007 AmigaOS4 officially supports .so libraries.
10357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 ;;
10360 m68k)
10361 library_names_spec='$libname.ixlibrary $libname.a'
10362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10363 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10364 ;;
10365 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010366 ;;
10367
10368beos*)
10369 library_names_spec='${libname}${shared_ext}'
10370 dynamic_linker="$host_os ld.so"
10371 shlibpath_var=LIBRARY_PATH
10372 ;;
10373
Lev Walkinfbf1d282007-12-03 14:58:39 +000010374bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010375 version_type=linux
10376 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10383 # the default ld.so.conf also contains /usr/contrib/lib and
10384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10385 # libtool to hard-code these into programs
10386 ;;
10387
Lev Walkin4da95cf2010-10-16 02:46:32 -070010388cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010389 version_type=windows
10390 shrext_cmds=".dll"
10391 need_version=no
10392 need_lib_prefix=no
10393
Lev Walkin4da95cf2010-10-16 02:46:32 -070010394 case $GCC,$cc_basename in
10395 yes,*)
10396 # gcc
Lev Walkin8e8b5482004-06-17 23:42:48 +000010397 library_names_spec='$libname.dll.a'
10398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10399 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -070010400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +000010401 dldir=$destdir/`dirname \$dlpath`~
10402 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +000010403 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -070010404 chmod a+x \$dldir/$dlname~
10405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10407 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10409 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -070010410 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010411 shlibpath_overrides_runpath=yes
10412
10413 case $host_os in
10414 cygwin*)
10415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010417
10418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010419 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010420 mingw* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010421 # MinGW DLLs use traditional 'lib' prefix
10422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010423 ;;
10424 pw32*)
10425 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010427 ;;
10428 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -070010429 dynamic_linker='Win32 ld.exe'
10430 ;;
10431
10432 *,cl*)
10433 # Native MSVC
10434 libname_spec='$name'
10435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10436 library_names_spec='${libname}.dll.lib'
10437
10438 case $build_os in
10439 mingw*)
10440 sys_lib_search_path_spec=
10441 lt_save_ifs=$IFS
10442 IFS=';'
10443 for lt_path in $LIB
10444 do
10445 IFS=$lt_save_ifs
10446 # Let DOS variable expansion print the short 8.3 style file name.
10447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10449 done
10450 IFS=$lt_save_ifs
10451 # Convert to MSYS style.
10452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10453 ;;
10454 cygwin*)
10455 # Convert to unix form, then to dos form, then back to unix form
10456 # but this time dos style (no spaces!) so that the unix form looks
10457 # like /cygdrive/c/PROGRA~1:/cygdr...
10458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10461 ;;
10462 *)
10463 sys_lib_search_path_spec="$LIB"
10464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10465 # It is most probably a Windows format PATH.
10466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10467 else
10468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10469 fi
10470 # FIXME: find the short name or the path components, as spaces are
10471 # common. (e.g. "Program Files" -> "PROGRA~1")
10472 ;;
10473 esac
10474
10475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10476 postinstall_cmds='base_file=`basename \${file}`~
10477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10478 dldir=$destdir/`dirname \$dlpath`~
10479 test -d \$dldir || mkdir -p \$dldir~
10480 $install_prog $dir/$dlname \$dldir/$dlname'
10481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10482 dlpath=$dir/\$dldll~
10483 $RM \$dlpath'
10484 shlibpath_overrides_runpath=yes
10485 dynamic_linker='Win32 link.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010486 ;;
10487
10488 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -070010489 # Assume MSVC wrapper
Lev Walkin8e8b5482004-06-17 23:42:48 +000010490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010491 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010492 ;;
10493 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010494 # FIXME: first we should search . and the directory the executable is in
10495 shlibpath_var=PATH
10496 ;;
10497
10498darwin* | rhapsody*)
10499 dynamic_linker="$host_os dyld"
10500 version_type=darwin
10501 need_lib_prefix=no
10502 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010504 soname_spec='${libname}${release}${major}$shared_ext'
10505 shlibpath_overrides_runpath=yes
10506 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +000010507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010508
10509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10511 ;;
10512
10513dgux*)
10514 version_type=linux
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 ;;
10521
10522freebsd1*)
10523 dynamic_linker=no
10524 ;;
10525
Lev Walkinfbf1d282007-12-03 14:58:39 +000010526freebsd* | dragonfly*)
10527 # DragonFly does not have aout. When/if they implement a new
10528 # versioning mechanism, adjust this.
10529 if test -x /usr/bin/objformat; then
10530 objformat=`/usr/bin/objformat`
10531 else
10532 case $host_os in
10533 freebsd[123]*) objformat=aout ;;
10534 *) objformat=elf ;;
10535 esac
10536 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010537 version_type=freebsd-$objformat
10538 case $version_type in
10539 freebsd-elf*)
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10541 need_version=no
10542 need_lib_prefix=no
10543 ;;
10544 freebsd-*)
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10546 need_version=yes
10547 ;;
10548 esac
10549 shlibpath_var=LD_LIBRARY_PATH
10550 case $host_os in
10551 freebsd2*)
10552 shlibpath_overrides_runpath=yes
10553 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010554 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010555 shlibpath_overrides_runpath=yes
10556 hardcode_into_libs=yes
10557 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010560 shlibpath_overrides_runpath=no
10561 hardcode_into_libs=yes
10562 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010563 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +000010564 shlibpath_overrides_runpath=yes
10565 hardcode_into_libs=yes
10566 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010567 esac
10568 ;;
10569
10570gnu*)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 hardcode_into_libs=yes
10578 ;;
10579
Lev Walkin4da95cf2010-10-16 02:46:32 -070010580haiku*)
10581 version_type=linux
10582 need_lib_prefix=no
10583 need_version=no
10584 dynamic_linker="$host_os runtime_loader"
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 shlibpath_var=LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10590 hardcode_into_libs=yes
10591 ;;
10592
Lev Walkin8e8b5482004-06-17 23:42:48 +000010593hpux9* | hpux10* | hpux11*)
10594 # Give a soname corresponding to the major version so that dld.sl refuses to
10595 # link against other versions.
10596 version_type=sunos
10597 need_lib_prefix=no
10598 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010599 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +000010600 ia64*)
10601 shrext_cmds='.so'
10602 hardcode_into_libs=yes
10603 dynamic_linker="$host_os dld.so"
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 if test "X$HPUX_IA64_MODE" = X32; then
10609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10610 else
10611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10612 fi
10613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10614 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010615 hppa*64*)
10616 shrext_cmds='.sl'
10617 hardcode_into_libs=yes
10618 dynamic_linker="$host_os dld.sl"
10619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10625 ;;
10626 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010627 shrext_cmds='.sl'
10628 dynamic_linker="$host_os dld.sl"
10629 shlibpath_var=SHLIB_PATH
10630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 ;;
10634 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -070010635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Lev Walkin8e8b5482004-06-17 23:42:48 +000010636 postinstall_cmds='chmod 555 $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010637 # or fails outright, so override atomically:
10638 install_override_mode=555
Lev Walkin8e8b5482004-06-17 23:42:48 +000010639 ;;
10640
Lev Walkin4da95cf2010-10-16 02:46:32 -070010641interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010642 version_type=linux
10643 need_lib_prefix=no
10644 need_version=no
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 shlibpath_overrides_runpath=no
10650 hardcode_into_libs=yes
10651 ;;
10652
Lev Walkin8e8b5482004-06-17 23:42:48 +000010653irix5* | irix6* | nonstopux*)
10654 case $host_os in
10655 nonstopux*) version_type=nonstopux ;;
10656 *)
10657 if test "$lt_cv_prog_gnu_ld" = yes; then
10658 version_type=linux
10659 else
10660 version_type=irix
10661 fi ;;
10662 esac
10663 need_lib_prefix=no
10664 need_version=no
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10667 case $host_os in
10668 irix5* | nonstopux*)
10669 libsuff= shlibsuff=
10670 ;;
10671 *)
10672 case $LD in # libtool.m4 will add one of these switches to LD
10673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10674 libsuff= shlibsuff= libmagic=32-bit;;
10675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10676 libsuff=32 shlibsuff=N32 libmagic=N32;;
10677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10679 *) libsuff= shlibsuff= libmagic=never-match;;
10680 esac
10681 ;;
10682 esac
10683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10684 shlibpath_overrides_runpath=no
10685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10687 hardcode_into_libs=yes
10688 ;;
10689
10690# No shared lib support for Linux oldld, aout, or coff.
10691linux*oldld* | linux*aout* | linux*coff*)
10692 dynamic_linker=no
10693 ;;
10694
10695# This must be Linux ELF.
Lev Walkin4da95cf2010-10-16 02:46:32 -070010696linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010697 version_type=linux
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 shlibpath_overrides_runpath=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010705
10706 # Some binutils ld are patched to set DT_RUNPATH
10707 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709else
10710 lt_cv_shlibpath_overrides_runpath=no
10711 save_LDFLAGS=$LDFLAGS
10712 save_libdir=$libdir
10713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10715 cat >conftest.$ac_ext <<_ACEOF
10716/* confdefs.h. */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <<_ACEOF
10720/* end confdefs.h. */
10721
10722int
10723main ()
10724{
10725
10726 ;
10727 return 0;
10728}
10729_ACEOF
10730rm -f conftest.$ac_objext conftest$ac_exeext
10731if { (ac_try="$ac_link"
10732case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_link") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest$ac_exeext'
10755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758esac
10759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10765 lt_cv_shlibpath_overrides_runpath=yes
10766fi
10767
10768else
10769 echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772
10773fi
10774
10775rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LDFLAGS=$save_LDFLAGS
10778 libdir=$save_libdir
10779
10780fi
10781
10782 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10783
Lev Walkin8e8b5482004-06-17 23:42:48 +000010784 # This implies no fast_install, which is unacceptable.
10785 # Some rework will be needed to allow for fast_install
10786 # before this can be enabled.
10787 hardcode_into_libs=yes
10788
10789 # Append ld.so.conf contents to the search path
10790 if test -f /etc/ld.so.conf; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010791 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;s/"//g;/^$/d' | tr '\n' ' '`
Lev Walkin8e8b5482004-06-17 23:42:48 +000010792 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10793 fi
10794
10795 # We used to test for /lib/ld.so.1 and disable shared libraries on
10796 # powerpc, because MkLinux only supported shared libraries with the
10797 # GNU dynamic linker. Since this was broken with cross compilers,
10798 # most powerpc-linux boxes support dynamic linking these days and
10799 # people can always --disable-shared, the test was removed, and we
10800 # assume the GNU/Linux dynamic linker is in use.
10801 dynamic_linker='GNU/Linux ld.so'
10802 ;;
10803
Lev Walkin8e8b5482004-06-17 23:42:48 +000010804netbsd*)
10805 version_type=sunos
10806 need_lib_prefix=no
10807 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10811 dynamic_linker='NetBSD (a.out) ld.so'
10812 else
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 dynamic_linker='NetBSD ld.elf_so'
10816 fi
10817 shlibpath_var=LD_LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 ;;
10821
10822newsos6)
10823 version_type=linux
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 ;;
10828
Lev Walkin4da95cf2010-10-16 02:46:32 -070010829*nto* | *qnx*)
10830 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +000010831 need_lib_prefix=no
10832 need_version=no
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010836 shlibpath_overrides_runpath=no
10837 hardcode_into_libs=yes
10838 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010839 ;;
10840
10841openbsd*)
10842 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +000010843 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010844 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010845 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10846 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010847 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10848 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010849 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10852 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010854 case $host_os in
10855 openbsd2.[89] | openbsd2.[89].*)
10856 shlibpath_overrides_runpath=no
10857 ;;
10858 *)
10859 shlibpath_overrides_runpath=yes
10860 ;;
10861 esac
10862 else
10863 shlibpath_overrides_runpath=yes
10864 fi
10865 ;;
10866
10867os2*)
10868 libname_spec='$name'
10869 shrext_cmds=".dll"
10870 need_lib_prefix=no
10871 library_names_spec='$libname${shared_ext} $libname.a'
10872 dynamic_linker='OS/2 ld.exe'
10873 shlibpath_var=LIBPATH
10874 ;;
10875
10876osf3* | osf4* | osf5*)
10877 version_type=osf
10878 need_lib_prefix=no
10879 need_version=no
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10884 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10885 ;;
10886
Lev Walkin4da95cf2010-10-16 02:46:32 -070010887rdos*)
10888 dynamic_linker=no
10889 ;;
10890
Lev Walkin8e8b5482004-06-17 23:42:48 +000010891solaris*)
10892 version_type=linux
10893 need_lib_prefix=no
10894 need_version=no
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 # ldd complains unless libraries are executable
10901 postinstall_cmds='chmod +x $lib'
10902 ;;
10903
10904sunos4*)
10905 version_type=sunos
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10910 if test "$with_gnu_ld" = yes; then
10911 need_lib_prefix=no
10912 fi
10913 need_version=yes
10914 ;;
10915
Lev Walkinfbf1d282007-12-03 14:58:39 +000010916sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010917 version_type=linux
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 case $host_vendor in
10922 sni)
10923 shlibpath_overrides_runpath=no
10924 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010925 runpath_var=LD_RUN_PATH
10926 ;;
10927 siemens)
10928 need_lib_prefix=no
10929 ;;
10930 motorola)
10931 need_lib_prefix=no
10932 need_version=no
10933 shlibpath_overrides_runpath=no
10934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10935 ;;
10936 esac
10937 ;;
10938
10939sysv4*MP*)
10940 if test -d /usr/nec ;then
10941 version_type=linux
10942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10943 soname_spec='$libname${shared_ext}.$major'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 fi
10946 ;;
10947
Lev Walkinfbf1d282007-12-03 14:58:39 +000010948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10949 version_type=freebsd-elf
10950 need_lib_prefix=no
10951 need_version=no
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010955 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +000010956 hardcode_into_libs=yes
10957 if test "$with_gnu_ld" = yes; then
10958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010959 else
10960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010961 case $host_os in
10962 sco3.2v5*)
10963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10964 ;;
10965 esac
10966 fi
10967 sys_lib_dlsearch_path_spec='/usr/lib'
10968 ;;
10969
Lev Walkin4da95cf2010-10-16 02:46:32 -070010970tpf*)
10971 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10972 version_type=linux
10973 need_lib_prefix=no
10974 need_version=no
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=no
10978 hardcode_into_libs=yes
10979 ;;
10980
Lev Walkin8e8b5482004-06-17 23:42:48 +000010981uts4*)
10982 version_type=linux
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 ;;
10987
10988*)
10989 dynamic_linker=no
10990 ;;
10991esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000010992{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10993echo "${ECHO_T}$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010994test "$dynamic_linker" = no && can_build_shared=no
10995
Lev Walkinfbf1d282007-12-03 14:58:39 +000010996variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10997if test "$GCC" = yes; then
10998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10999fi
11000
Lev Walkin4da95cf2010-10-16 02:46:32 -070011001if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11002 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11003fi
11004if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11005 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11006fi
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000011100echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011101hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -070011102if test -n "$hardcode_libdir_flag_spec" ||
11103 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +000011104 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011105
Lev Walkin4da95cf2010-10-16 02:46:32 -070011106 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011107 if test "$hardcode_direct" != no &&
11108 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11109 # have to relink, otherwise we might link with an installed library
11110 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -070011111 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011112 test "$hardcode_minus_L" != no; then
11113 # Linking always hardcodes the temporary library directory.
11114 hardcode_action=relink
11115 else
11116 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11117 hardcode_action=immediate
11118 fi
11119else
11120 # We cannot hardcode anything, or else we can only hardcode existing
11121 # directories.
11122 hardcode_action=unsupported
11123fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011124{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11125echo "${ECHO_T}$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011126
Lev Walkin4da95cf2010-10-16 02:46:32 -070011127if test "$hardcode_action" = relink ||
11128 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011129 # Fast installation is not supported
11130 enable_fast_install=no
11131elif test "$shlibpath_overrides_runpath" = yes ||
11132 test "$enable_shared" = no; then
11133 # Fast installation is not necessary
11134 enable_fast_install=needless
11135fi
11136
Lev Walkin8e8b5482004-06-17 23:42:48 +000011137
Lev Walkin4da95cf2010-10-16 02:46:32 -070011138
11139
11140
11141
11142 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011143 enable_dlopen=unknown
11144 enable_dlopen_self=unknown
11145 enable_dlopen_self_static=unknown
11146else
11147 lt_cv_dlopen=no
11148 lt_cv_dlopen_libs=
11149
11150 case $host_os in
11151 beos*)
11152 lt_cv_dlopen="load_add_on"
11153 lt_cv_dlopen_libs=
11154 lt_cv_dlopen_self=yes
11155 ;;
11156
Lev Walkin4da95cf2010-10-16 02:46:32 -070011157 mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000011158 lt_cv_dlopen="LoadLibrary"
11159 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070011160 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011161
11162 cygwin*)
11163 lt_cv_dlopen="dlopen"
11164 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070011165 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011166
11167 darwin*)
11168 # if libdl is installed we need to link against it
Lev Walkin27fd0b62007-08-27 23:57:45 +000011169 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11170echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011171if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11173else
11174 ac_check_lib_save_LIBS=$LIBS
11175LIBS="-ldl $LIBS"
11176cat >conftest.$ac_ext <<_ACEOF
11177/* confdefs.h. */
11178_ACEOF
11179cat confdefs.h >>conftest.$ac_ext
11180cat >>conftest.$ac_ext <<_ACEOF
11181/* end confdefs.h. */
11182
Lev Walkin27fd0b62007-08-27 23:57:45 +000011183/* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011186#ifdef __cplusplus
11187extern "C"
11188#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011189char dlopen ();
11190int
11191main ()
11192{
Lev Walkin27fd0b62007-08-27 23:57:45 +000011193return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000011194 ;
11195 return 0;
11196}
11197_ACEOF
11198rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011199if { (ac_try="$ac_link"
11200case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11203esac
11204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11213 { (case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216esac
11217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011223 { (case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226esac
11227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 ac_cv_lib_dl_dlopen=yes
11233else
11234 echo "$as_me: failed program was:" >&5
11235sed 's/^/| /' conftest.$ac_ext >&5
11236
Lev Walkin27fd0b62007-08-27 23:57:45 +000011237 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011238fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011239
11240rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011241 conftest$ac_exeext conftest.$ac_ext
11242LIBS=$ac_check_lib_save_LIBS
11243fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011244{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11245echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011246if test $ac_cv_lib_dl_dlopen = yes; then
11247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11248else
11249
11250 lt_cv_dlopen="dyld"
11251 lt_cv_dlopen_libs=
11252 lt_cv_dlopen_self=yes
11253
11254fi
11255
Lev Walkin4da95cf2010-10-16 02:46:32 -070011256 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011257
11258 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011259 { echo "$as_me:$LINENO: checking for shl_load" >&5
11260echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011261if test "${ac_cv_func_shl_load+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11272#define shl_load innocuous_shl_load
11273
11274/* System header to define __stub macros and hopefully few prototypes,
11275 which can conflict with char shl_load (); below.
11276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11277 <limits.h> exists even on freestanding compilers. */
11278
11279#ifdef __STDC__
11280# include <limits.h>
11281#else
11282# include <assert.h>
11283#endif
11284
11285#undef shl_load
11286
Lev Walkin27fd0b62007-08-27 23:57:45 +000011287/* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011290#ifdef __cplusplus
11291extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011292#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011293char shl_load ();
11294/* The GNU C library defines this for functions which it implements
11295 to always fail with ENOSYS. Some functions are actually named
11296 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000011297#if defined __stub_shl_load || defined __stub___shl_load
Lev Walkin8e8b5482004-06-17 23:42:48 +000011298choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000011299#endif
11300
11301int
11302main ()
11303{
Lev Walkin27fd0b62007-08-27 23:57:45 +000011304return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000011305 ;
11306 return 0;
11307}
11308_ACEOF
11309rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011310if { (ac_try="$ac_link"
11311case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11314esac
11315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011317 ac_status=$?
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11324 { (case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327esac
11328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011334 { (case "(($ac_try" in
11335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336 *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_func_shl_load=yes
11344else
11345 echo "$as_me: failed program was:" >&5
11346sed 's/^/| /' conftest.$ac_ext >&5
11347
Lev Walkin27fd0b62007-08-27 23:57:45 +000011348 ac_cv_func_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011349fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011350
11351rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011352 conftest$ac_exeext conftest.$ac_ext
11353fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011354{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11355echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011356if test $ac_cv_func_shl_load = yes; then
11357 lt_cv_dlopen="shl_load"
11358else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011359 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11360echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011361if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363else
11364 ac_check_lib_save_LIBS=$LIBS
11365LIBS="-ldld $LIBS"
11366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372
Lev Walkin27fd0b62007-08-27 23:57:45 +000011373/* Override any GCC internal prototype to avoid an error.
11374 Use char because int might match the return type of a GCC
11375 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011376#ifdef __cplusplus
11377extern "C"
11378#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011379char shl_load ();
11380int
11381main ()
11382{
Lev Walkin27fd0b62007-08-27 23:57:45 +000011383return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000011384 ;
11385 return 0;
11386}
11387_ACEOF
11388rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011389if { (ac_try="$ac_link"
11390case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393esac
11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11403 { (case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406esac
11407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011413 { (case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416esac
11417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_cv_lib_dld_shl_load=yes
11423else
11424 echo "$as_me: failed program was:" >&5
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
Lev Walkin27fd0b62007-08-27 23:57:45 +000011427 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011428fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011429
11430rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011431 conftest$ac_exeext conftest.$ac_ext
11432LIBS=$ac_check_lib_save_LIBS
11433fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011434{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11435echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011436if test $ac_cv_lib_dld_shl_load = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070011437 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011438else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011439 { echo "$as_me:$LINENO: checking for dlopen" >&5
11440echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011441if test "${ac_cv_func_dlopen+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11452#define dlopen innocuous_dlopen
11453
11454/* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char dlopen (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11458
11459#ifdef __STDC__
11460# include <limits.h>
11461#else
11462# include <assert.h>
11463#endif
11464
11465#undef dlopen
11466
Lev Walkin27fd0b62007-08-27 23:57:45 +000011467/* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011470#ifdef __cplusplus
11471extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011472#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011473char dlopen ();
11474/* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000011477#if defined __stub_dlopen || defined __stub___dlopen
Lev Walkin8e8b5482004-06-17 23:42:48 +000011478choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000011479#endif
11480
11481int
11482main ()
11483{
Lev Walkin27fd0b62007-08-27 23:57:45 +000011484return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000011485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011490if { (ac_try="$ac_link"
11491case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11504 { (case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507esac
11508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011514 { (case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11517esac
11518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 ac_cv_func_dlopen=yes
11524else
11525 echo "$as_me: failed program was:" >&5
11526sed 's/^/| /' conftest.$ac_ext >&5
11527
Lev Walkin27fd0b62007-08-27 23:57:45 +000011528 ac_cv_func_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011529fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011530
11531rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011532 conftest$ac_exeext conftest.$ac_ext
11533fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011534{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11535echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011536if test $ac_cv_func_dlopen = yes; then
11537 lt_cv_dlopen="dlopen"
11538else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011539 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11540echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011541if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11543else
11544 ac_check_lib_save_LIBS=$LIBS
11545LIBS="-ldl $LIBS"
11546cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552
Lev Walkin27fd0b62007-08-27 23:57:45 +000011553/* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011556#ifdef __cplusplus
11557extern "C"
11558#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011559char dlopen ();
11560int
11561main ()
11562{
Lev Walkin27fd0b62007-08-27 23:57:45 +000011563return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000011564 ;
11565 return 0;
11566}
11567_ACEOF
11568rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011569if { (ac_try="$ac_link"
11570case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586esac
11587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_lib_dl_dlopen=yes
11603else
11604 echo "$as_me: failed program was:" >&5
11605sed 's/^/| /' conftest.$ac_ext >&5
11606
Lev Walkin27fd0b62007-08-27 23:57:45 +000011607 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011608fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011609
11610rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011611 conftest$ac_exeext conftest.$ac_ext
11612LIBS=$ac_check_lib_save_LIBS
11613fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011614{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11615echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011616if test $ac_cv_lib_dl_dlopen = yes; then
11617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11618else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011619 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11620echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011621if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624 ac_check_lib_save_LIBS=$LIBS
11625LIBS="-lsvld $LIBS"
11626cat >conftest.$ac_ext <<_ACEOF
11627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
11632
Lev Walkin27fd0b62007-08-27 23:57:45 +000011633/* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011636#ifdef __cplusplus
11637extern "C"
11638#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011639char dlopen ();
11640int
11641main ()
11642{
Lev Walkin27fd0b62007-08-27 23:57:45 +000011643return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000011644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011649if { (ac_try="$ac_link"
11650case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653esac
11654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11663 { (case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666esac
11667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676esac
11677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_lib_svld_dlopen=yes
11683else
11684 echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
Lev Walkin27fd0b62007-08-27 23:57:45 +000011687 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011688fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011689
11690rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011691 conftest$ac_exeext conftest.$ac_ext
11692LIBS=$ac_check_lib_save_LIBS
11693fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011694{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11695echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011696if test $ac_cv_lib_svld_dlopen = yes; then
11697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11698else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011699 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11700echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011701if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703else
11704 ac_check_lib_save_LIBS=$LIBS
11705LIBS="-ldld $LIBS"
11706cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712
Lev Walkin27fd0b62007-08-27 23:57:45 +000011713/* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011716#ifdef __cplusplus
11717extern "C"
11718#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011719char dld_link ();
11720int
11721main ()
11722{
Lev Walkin27fd0b62007-08-27 23:57:45 +000011723return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000011724 ;
11725 return 0;
11726}
11727_ACEOF
11728rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011729if { (ac_try="$ac_link"
11730case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11733esac
11734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000011736 ac_status=$?
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000011742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11743 { (case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746esac
11747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; } &&
11752 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000011753 { (case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756esac
11757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 ac_cv_lib_dld_dld_link=yes
11763else
11764 echo "$as_me: failed program was:" >&5
11765sed 's/^/| /' conftest.$ac_ext >&5
11766
Lev Walkin27fd0b62007-08-27 23:57:45 +000011767 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011768fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011769
11770rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011771 conftest$ac_exeext conftest.$ac_ext
11772LIBS=$ac_check_lib_save_LIBS
11773fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011774{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11775echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011776if test $ac_cv_lib_dld_dld_link = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070011777 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011778fi
11779
11780
11781fi
11782
11783
11784fi
11785
11786
11787fi
11788
11789
11790fi
11791
11792
11793fi
11794
11795 ;;
11796 esac
11797
11798 if test "x$lt_cv_dlopen" != xno; then
11799 enable_dlopen=yes
11800 else
11801 enable_dlopen=no
11802 fi
11803
11804 case $lt_cv_dlopen in
11805 dlopen)
11806 save_CPPFLAGS="$CPPFLAGS"
11807 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11808
11809 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000011810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011811
11812 save_LIBS="$LIBS"
11813 LIBS="$lt_cv_dlopen_libs $LIBS"
11814
Lev Walkin27fd0b62007-08-27 23:57:45 +000011815 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11816echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011817if test "${lt_cv_dlopen_self+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 if test "$cross_compiling" = yes; then :
11821 lt_cv_dlopen_self=cross
11822else
11823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11824 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070011825 cat > conftest.$ac_ext <<_LT_EOF
11826#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011827#include "confdefs.h"
11828
11829#if HAVE_DLFCN_H
11830#include <dlfcn.h>
11831#endif
11832
11833#include <stdio.h>
11834
11835#ifdef RTLD_GLOBAL
11836# define LT_DLGLOBAL RTLD_GLOBAL
11837#else
11838# ifdef DL_GLOBAL
11839# define LT_DLGLOBAL DL_GLOBAL
11840# else
11841# define LT_DLGLOBAL 0
11842# endif
11843#endif
11844
11845/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11846 find out it does not work in some platform. */
11847#ifndef LT_DLLAZY_OR_NOW
11848# ifdef RTLD_LAZY
11849# define LT_DLLAZY_OR_NOW RTLD_LAZY
11850# else
11851# ifdef DL_LAZY
11852# define LT_DLLAZY_OR_NOW DL_LAZY
11853# else
11854# ifdef RTLD_NOW
11855# define LT_DLLAZY_OR_NOW RTLD_NOW
11856# else
11857# ifdef DL_NOW
11858# define LT_DLLAZY_OR_NOW DL_NOW
11859# else
11860# define LT_DLLAZY_OR_NOW 0
11861# endif
11862# endif
11863# endif
11864# endif
11865#endif
11866
Lev Walkin4da95cf2010-10-16 02:46:32 -070011867/* When -fvisbility=hidden is used, assume the code has been annotated
11868 correspondingly for the symbols needed. */
11869#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11870int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011871#endif
11872
Lev Walkin4da95cf2010-10-16 02:46:32 -070011873int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011874int main ()
11875{
11876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11877 int status = $lt_dlunknown;
11878
11879 if (self)
11880 {
11881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4da95cf2010-10-16 02:46:32 -070011882 else
11883 {
11884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11885 else puts (dlerror ());
11886 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011887 /* dlclose (self); */
11888 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011889 else
11890 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011891
Lev Walkin4da95cf2010-10-16 02:46:32 -070011892 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011893}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011894_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000011895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011900 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011901 lt_status=$?
11902 case x$lt_status in
11903 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11904 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011905 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011906 esac
11907 else :
11908 # compilation failed
11909 lt_cv_dlopen_self=no
11910 fi
11911fi
11912rm -fr conftest*
11913
11914
11915fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011916{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11917echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011918
11919 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkin27fd0b62007-08-27 23:57:45 +000011921 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11922echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011923if test "${lt_cv_dlopen_self_static+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 if test "$cross_compiling" = yes; then :
11927 lt_cv_dlopen_self_static=cross
11928else
11929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11930 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070011931 cat > conftest.$ac_ext <<_LT_EOF
11932#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011933#include "confdefs.h"
11934
11935#if HAVE_DLFCN_H
11936#include <dlfcn.h>
11937#endif
11938
11939#include <stdio.h>
11940
11941#ifdef RTLD_GLOBAL
11942# define LT_DLGLOBAL RTLD_GLOBAL
11943#else
11944# ifdef DL_GLOBAL
11945# define LT_DLGLOBAL DL_GLOBAL
11946# else
11947# define LT_DLGLOBAL 0
11948# endif
11949#endif
11950
11951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11952 find out it does not work in some platform. */
11953#ifndef LT_DLLAZY_OR_NOW
11954# ifdef RTLD_LAZY
11955# define LT_DLLAZY_OR_NOW RTLD_LAZY
11956# else
11957# ifdef DL_LAZY
11958# define LT_DLLAZY_OR_NOW DL_LAZY
11959# else
11960# ifdef RTLD_NOW
11961# define LT_DLLAZY_OR_NOW RTLD_NOW
11962# else
11963# ifdef DL_NOW
11964# define LT_DLLAZY_OR_NOW DL_NOW
11965# else
11966# define LT_DLLAZY_OR_NOW 0
11967# endif
11968# endif
11969# endif
11970# endif
11971#endif
11972
Lev Walkin4da95cf2010-10-16 02:46:32 -070011973/* When -fvisbility=hidden is used, assume the code has been annotated
11974 correspondingly for the symbols needed. */
11975#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11976int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011977#endif
11978
Lev Walkin4da95cf2010-10-16 02:46:32 -070011979int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011980int main ()
11981{
11982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11983 int status = $lt_dlunknown;
11984
11985 if (self)
11986 {
11987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4da95cf2010-10-16 02:46:32 -070011988 else
11989 {
11990 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11991 else puts (dlerror ());
11992 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011993 /* dlclose (self); */
11994 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011995 else
11996 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011997
Lev Walkin4da95cf2010-10-16 02:46:32 -070011998 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011999}
Lev Walkin4da95cf2010-10-16 02:46:32 -070012000_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000012001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000012006 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000012007 lt_status=$?
12008 case x$lt_status in
12009 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12010 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000012011 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000012012 esac
12013 else :
12014 # compilation failed
12015 lt_cv_dlopen_self_static=no
12016 fi
12017fi
12018rm -fr conftest*
12019
12020
12021fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012022{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12023echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012024 fi
12025
12026 CPPFLAGS="$save_CPPFLAGS"
12027 LDFLAGS="$save_LDFLAGS"
12028 LIBS="$save_LIBS"
12029 ;;
12030 esac
12031
12032 case $lt_cv_dlopen_self in
12033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12034 *) enable_dlopen_self=unknown ;;
12035 esac
12036
12037 case $lt_cv_dlopen_self_static in
12038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12039 *) enable_dlopen_self_static=unknown ;;
12040 esac
12041fi
12042
12043
Lev Walkin8e8b5482004-06-17 23:42:48 +000012044
Lev Walkin8e8b5482004-06-17 23:42:48 +000012045
Lev Walkin8e8b5482004-06-17 23:42:48 +000012046
Lev Walkin8e8b5482004-06-17 23:42:48 +000012047
Lev Walkin8e8b5482004-06-17 23:42:48 +000012048
Lev Walkin8e8b5482004-06-17 23:42:48 +000012049
Lev Walkin8e8b5482004-06-17 23:42:48 +000012050
Lev Walkin8e8b5482004-06-17 23:42:48 +000012051
Lev Walkin8e8b5482004-06-17 23:42:48 +000012052
Lev Walkin8e8b5482004-06-17 23:42:48 +000012053
Lev Walkin8e8b5482004-06-17 23:42:48 +000012054
Lev Walkin8e8b5482004-06-17 23:42:48 +000012055
Lev Walkin8e8b5482004-06-17 23:42:48 +000012056
Lev Walkin8e8b5482004-06-17 23:42:48 +000012057
Lev Walkin8e8b5482004-06-17 23:42:48 +000012058
Lev Walkin4da95cf2010-10-16 02:46:32 -070012059striplib=
12060old_striplib=
12061{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12062echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12063if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12066 { echo "$as_me:$LINENO: result: yes" >&5
12067echo "${ECHO_T}yes" >&6; }
12068else
12069# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000012070 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070012071 darwin*)
12072 if test -n "$STRIP" ; then
12073 striplib="$STRIP -x"
12074 old_striplib="$STRIP -S"
12075 { echo "$as_me:$LINENO: result: yes" >&5
12076echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012077 else
Lev Walkin4da95cf2010-10-16 02:46:32 -070012078 { echo "$as_me:$LINENO: result: no" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012079echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012080 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012081 ;;
12082 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -070012083 { echo "$as_me:$LINENO: result: no" >&5
12084echo "${ECHO_T}no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000012085 ;;
12086 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000012087fi
12088
12089
Lev Walkin8e8b5482004-06-17 23:42:48 +000012090
Lev Walkin8e8b5482004-06-17 23:42:48 +000012091
Lev Walkin8e8b5482004-06-17 23:42:48 +000012092
12093
Lev Walkin8e8b5482004-06-17 23:42:48 +000012094
Lev Walkin8e8b5482004-06-17 23:42:48 +000012095
Lev Walkin8e8b5482004-06-17 23:42:48 +000012096
Lev Walkin8e8b5482004-06-17 23:42:48 +000012097
Lev Walkin8e8b5482004-06-17 23:42:48 +000012098
Lev Walkin8e8b5482004-06-17 23:42:48 +000012099
Lev Walkin4da95cf2010-10-16 02:46:32 -070012100 # Report which library types will actually be built
12101 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012102echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070012103 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012104echo "${ECHO_T}$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012105
Lev Walkin4da95cf2010-10-16 02:46:32 -070012106 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012107echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070012108 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000012109
Lev Walkin4da95cf2010-10-16 02:46:32 -070012110 # On AIX, shared libraries and static libraries use the same namespace, and
12111 # are all built from PIC.
12112 case $host_os in
12113 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000012114 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070012115 if test -n "$RANLIB"; then
12116 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12117 postinstall_cmds='$RANLIB $lib'
12118 fi
12119 ;;
12120
12121 aix[4-9]*)
12122 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12123 test "$enable_shared" = yes && enable_static=no
12124 fi
12125 ;;
12126 esac
12127 { echo "$as_me:$LINENO: result: $enable_shared" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012128echo "${ECHO_T}$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012129
Lev Walkin4da95cf2010-10-16 02:46:32 -070012130 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012131echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070012132 # Make sure either enable_shared or enable_static is yes.
12133 test "$enable_shared" = yes || enable_static=yes
12134 { echo "$as_me:$LINENO: result: $enable_static" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012135echo "${ECHO_T}$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000012136
Lev Walkin8e8b5482004-06-17 23:42:48 +000012137
Lev Walkin8e8b5482004-06-17 23:42:48 +000012138
Lev Walkin27fd0b62007-08-27 23:57:45 +000012139
Lev Walkin8e8b5482004-06-17 23:42:48 +000012140fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012141ac_ext=c
12142ac_cpp='$CPP $CPPFLAGS'
12143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145ac_compiler_gnu=$ac_cv_c_compiler_gnu
12146
12147CC="$lt_save_CC"
12148
Lev Walkin8e8b5482004-06-17 23:42:48 +000012149
Lev Walkin8e8b5482004-06-17 23:42:48 +000012150
12151
Lev Walkin8e8b5482004-06-17 23:42:48 +000012152
Lev Walkin8e8b5482004-06-17 23:42:48 +000012153
Lev Walkin8e8b5482004-06-17 23:42:48 +000012154
Lev Walkin8e8b5482004-06-17 23:42:48 +000012155
Lev Walkin8e8b5482004-06-17 23:42:48 +000012156
Lev Walkin8e8b5482004-06-17 23:42:48 +000012157
Lev Walkinfbf1d282007-12-03 14:58:39 +000012158
Lev Walkin8e8b5482004-06-17 23:42:48 +000012159
12160
Lev Walkin4da95cf2010-10-16 02:46:32 -070012161 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000012162
Lev Walkinfbf1d282007-12-03 14:58:39 +000012163
12164
Lev Walkinfbf1d282007-12-03 14:58:39 +000012165
Lev Walkin4da95cf2010-10-16 02:46:32 -070012166# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000012167
Lev Walkinf15320b2004-06-03 03:38:44 +000012168
12169
Lev Walkin27fd0b62007-08-27 23:57:45 +000012170# Check whether --enable-autoconf was given.
Lev Walkinf15320b2004-06-03 03:38:44 +000012171if test "${enable_autoconf+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012172 enableval=$enable_autoconf; enable_autoconf=$enableval
Lev Walkinf15320b2004-06-03 03:38:44 +000012173else
12174 enable_autoconf=yes
12175
Lev Walkin27fd0b62007-08-27 23:57:45 +000012176fi
12177
Lev Walkinf15320b2004-06-03 03:38:44 +000012178# Extract the first word of "autoconf", so it can be a program name with args.
12179set dummy autoconf; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012182if test "${ac_cv_path_AUTOCONF+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184else
12185 case $AUTOCONF in
12186 [\\/]* | ?:[\\/]*)
12187 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
12188 ;;
12189 *)
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012197 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
12198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12200 fi
12201done
12202done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012203IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012204
12205 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available"
12206 ;;
12207esac
12208fi
12209AUTOCONF=$ac_cv_path_AUTOCONF
Lev Walkinf15320b2004-06-03 03:38:44 +000012210if test -n "$AUTOCONF"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012211 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
12212echo "${ECHO_T}$AUTOCONF" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012213else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012214 { echo "$as_me:$LINENO: result: no" >&5
12215echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012216fi
12217
Lev Walkin27fd0b62007-08-27 23:57:45 +000012218
Lev Walkinf15320b2004-06-03 03:38:44 +000012219# Extract the first word of "autoheader", so it can be a program name with args.
12220set dummy autoheader; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012223if test "${ac_cv_path_AUTOHEADER+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 case $AUTOHEADER in
12227 [\\/]* | ?:[\\/]*)
12228 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
12229 ;;
12230 *)
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012238 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
12239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242done
12243done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012244IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012245
12246 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available"
12247 ;;
12248esac
12249fi
12250AUTOHEADER=$ac_cv_path_AUTOHEADER
Lev Walkinf15320b2004-06-03 03:38:44 +000012251if test -n "$AUTOHEADER"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012252 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
12253echo "${ECHO_T}$AUTOHEADER" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012254else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012255 { echo "$as_me:$LINENO: result: no" >&5
12256echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012257fi
12258
Lev Walkin27fd0b62007-08-27 23:57:45 +000012259
Lev Walkinf15320b2004-06-03 03:38:44 +000012260if test -z "$AUTOCONF"; then enable_autoconf=no ; fi
12261if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi
12262if test x$enable_autoconf = xyes; then
12263 CONFIGURE_DEPENDS="configure.in aclocal.m4"
12264fi
12265
12266
12267ac_ext=c
12268ac_cpp='$CPP $CPPFLAGS'
12269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271ac_compiler_gnu=$ac_cv_c_compiler_gnu
12272if test -n "$ac_tool_prefix"; then
12273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12274set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012277if test "${ac_cv_prog_CC+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 if test -n "$CC"; then
12281 ac_cv_prog_CC="$CC" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 break 2
12293 fi
12294done
12295done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012296IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012297
12298fi
12299fi
12300CC=$ac_cv_prog_CC
12301if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012302 { echo "$as_me:$LINENO: result: $CC" >&5
12303echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012304else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012305 { echo "$as_me:$LINENO: result: no" >&5
12306echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012307fi
12308
Lev Walkin27fd0b62007-08-27 23:57:45 +000012309
Lev Walkinf15320b2004-06-03 03:38:44 +000012310fi
12311if test -z "$ac_cv_prog_CC"; then
12312 ac_ct_CC=$CC
12313 # Extract the first word of "gcc", so it can be a program name with args.
12314set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12319else
12320 if test -n "$ac_ct_CC"; then
12321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12322else
12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324for as_dir in $PATH
12325do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012330 ac_cv_prog_ac_ct_CC="gcc"
12331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12333 fi
12334done
12335done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012336IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012337
12338fi
12339fi
12340ac_ct_CC=$ac_cv_prog_ac_ct_CC
12341if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12343echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012344else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012345 { echo "$as_me:$LINENO: result: no" >&5
12346echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012347fi
12348
Lev Walkin27fd0b62007-08-27 23:57:45 +000012349 if test "x$ac_ct_CC" = x; then
12350 CC=""
12351 else
12352 case $cross_compiling:$ac_tool_warned in
12353yes:)
12354{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12355whose name does not start with the host triplet. If you think this
12356configuration is useful to you, please write to autoconf@gnu.org." >&5
12357echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12358whose name does not start with the host triplet. If you think this
12359configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12360ac_tool_warned=yes ;;
12361esac
12362 CC=$ac_ct_CC
12363 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012364else
12365 CC="$ac_cv_prog_CC"
12366fi
12367
12368if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012369 if test -n "$ac_tool_prefix"; then
12370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +000012371set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012374if test "${ac_cv_prog_CC+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377 if test -n "$CC"; then
12378 ac_cv_prog_CC="$CC" # Let the user override the test.
12379else
12380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381for as_dir in $PATH
12382do
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012387 ac_cv_prog_CC="${ac_tool_prefix}cc"
12388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 break 2
12390 fi
12391done
12392done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012393IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012394
12395fi
12396fi
12397CC=$ac_cv_prog_CC
12398if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012399 { echo "$as_me:$LINENO: result: $CC" >&5
12400echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012401else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012402 { echo "$as_me:$LINENO: result: no" >&5
12403echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012404fi
12405
Lev Walkin27fd0b62007-08-27 23:57:45 +000012406
Lev Walkinf15320b2004-06-03 03:38:44 +000012407 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012408fi
12409if test -z "$CC"; then
12410 # Extract the first word of "cc", so it can be a program name with args.
12411set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012414if test "${ac_cv_prog_CC+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 if test -n "$CC"; then
12418 ac_cv_prog_CC="$CC" # Let the user override the test.
12419else
12420 ac_prog_rejected=no
12421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422for as_dir in $PATH
12423do
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12429 ac_prog_rejected=yes
12430 continue
12431 fi
12432 ac_cv_prog_CC="cc"
12433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12435 fi
12436done
12437done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012438IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012439
12440if test $ac_prog_rejected = yes; then
12441 # We found a bogon in the path, so make sure we never use it.
12442 set dummy $ac_cv_prog_CC
12443 shift
12444 if test $# != 0; then
12445 # We chose a different compiler from the bogus one.
12446 # However, it has the same basename, so the bogon will be chosen
12447 # first if we set CC to just the basename; use the full file name.
12448 shift
12449 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12450 fi
12451fi
12452fi
12453fi
12454CC=$ac_cv_prog_CC
12455if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012456 { echo "$as_me:$LINENO: result: $CC" >&5
12457echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012458else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012459 { echo "$as_me:$LINENO: result: no" >&5
12460echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012461fi
12462
Lev Walkin27fd0b62007-08-27 23:57:45 +000012463
Lev Walkinf15320b2004-06-03 03:38:44 +000012464fi
12465if test -z "$CC"; then
12466 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012467 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000012468 do
12469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012473if test "${ac_cv_prog_CC+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475else
12476 if test -n "$CC"; then
12477 ac_cv_prog_CC="$CC" # Let the user override the test.
12478else
12479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480for as_dir in $PATH
12481do
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12489 fi
12490done
12491done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012492IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012493
12494fi
12495fi
12496CC=$ac_cv_prog_CC
12497if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012498 { echo "$as_me:$LINENO: result: $CC" >&5
12499echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012500else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012501 { echo "$as_me:$LINENO: result: no" >&5
12502echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012503fi
12504
Lev Walkin27fd0b62007-08-27 23:57:45 +000012505
Lev Walkinf15320b2004-06-03 03:38:44 +000012506 test -n "$CC" && break
12507 done
12508fi
12509if test -z "$CC"; then
12510 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000012511 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000012512do
12513 # Extract the first word of "$ac_prog", so it can be a program name with args.
12514set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
12520 if test -n "$ac_ct_CC"; then
12521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12522else
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000012529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012530 ac_cv_prog_ac_ct_CC="$ac_prog"
12531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12533 fi
12534done
12535done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012536IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012537
12538fi
12539fi
12540ac_ct_CC=$ac_cv_prog_ac_ct_CC
12541if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12543echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012544else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012545 { echo "$as_me:$LINENO: result: no" >&5
12546echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012547fi
12548
Lev Walkin27fd0b62007-08-27 23:57:45 +000012549
Lev Walkinf15320b2004-06-03 03:38:44 +000012550 test -n "$ac_ct_CC" && break
12551done
12552
Lev Walkin27fd0b62007-08-27 23:57:45 +000012553 if test "x$ac_ct_CC" = x; then
12554 CC=""
12555 else
12556 case $cross_compiling:$ac_tool_warned in
12557yes:)
12558{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12559whose name does not start with the host triplet. If you think this
12560configuration is useful to you, please write to autoconf@gnu.org." >&5
12561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12562whose name does not start with the host triplet. If you think this
12563configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12564ac_tool_warned=yes ;;
12565esac
12566 CC=$ac_ct_CC
12567 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012568fi
12569
12570fi
12571
12572
12573test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12574See \`config.log' for more details." >&5
12575echo "$as_me: error: no acceptable C compiler found in \$PATH
12576See \`config.log' for more details." >&2;}
12577 { (exit 1); exit 1; }; }
12578
12579# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012580echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012581ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +000012582{ (ac_try="$ac_compiler --version >&5"
12583case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586esac
12587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000012592{ (ac_try="$ac_compiler -v >&5"
12593case "(($ac_try" in
12594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595 *) ac_try_echo=$ac_try;;
12596esac
12597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012599 ac_status=$?
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000012602{ (ac_try="$ac_compiler -V >&5"
12603case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606esac
12607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }
12612
Lev Walkin27fd0b62007-08-27 23:57:45 +000012613{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12614echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012615if test "${ac_cv_c_compiler_gnu+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617else
12618 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012619/* confdefs.h. */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h. */
12624
12625int
12626main ()
12627{
12628#ifndef __GNUC__
12629 choke me
12630#endif
12631
12632 ;
12633 return 0;
12634}
12635_ACEOF
12636rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012637if { (ac_try="$ac_compile"
12638case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012644 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000012650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12651 { (case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654esac
12655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000012657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; } &&
12660 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012661 { (case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12664esac
12665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_compiler_gnu=yes
12671else
12672 echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
Lev Walkin27fd0b62007-08-27 23:57:45 +000012675 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012676fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012677
12678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012679ac_cv_c_compiler_gnu=$ac_compiler_gnu
12680
12681fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012682{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12683echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012684GCC=`test $ac_compiler_gnu = yes && echo yes`
12685ac_test_CFLAGS=${CFLAGS+set}
12686ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +000012687{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12688echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012689if test "${ac_cv_prog_cc_g+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012692 ac_save_c_werror_flag=$ac_c_werror_flag
12693 ac_c_werror_flag=yes
12694 ac_cv_prog_cc_g=no
12695 CFLAGS="-g"
12696 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702
12703int
12704main ()
12705{
12706
12707 ;
12708 return 0;
12709}
12710_ACEOF
12711rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012712if { (ac_try="$ac_compile"
12713case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716esac
12717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012719 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000012725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12726 { (case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729esac
12730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000012732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_prog_cc_g=yes
12746else
12747 echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
Lev Walkin27fd0b62007-08-27 23:57:45 +000012750 CFLAGS=""
12751 cat >conftest.$ac_ext <<_ACEOF
12752/* confdefs.h. */
12753_ACEOF
12754cat confdefs.h >>conftest.$ac_ext
12755cat >>conftest.$ac_ext <<_ACEOF
12756/* end confdefs.h. */
12757
12758int
12759main ()
12760{
12761
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext
12767if { (ac_try="$ac_compile"
12768case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771esac
12772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_compile") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794esac
12795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 :
12801else
12802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 ac_c_werror_flag=$ac_save_c_werror_flag
12806 CFLAGS="-g"
12807 cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813
12814int
12815main ()
12816{
12817
12818 ;
12819 return 0;
12820}
12821_ACEOF
12822rm -f conftest.$ac_objext
12823if { (ac_try="$ac_compile"
12824case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827esac
12828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_compile") 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837 { (case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840esac
12841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_try") 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest.$ac_objext'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850esac
12851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_cv_prog_cc_g=yes
12857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
12861
Lev Walkinf15320b2004-06-03 03:38:44 +000012862fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012863
12864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012865fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012866
12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868fi
12869
12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 ac_c_werror_flag=$ac_save_c_werror_flag
12872fi
12873{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12874echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012875if test "$ac_test_CFLAGS" = set; then
12876 CFLAGS=$ac_save_CFLAGS
12877elif test $ac_cv_prog_cc_g = yes; then
12878 if test "$GCC" = yes; then
12879 CFLAGS="-g -O2"
12880 else
12881 CFLAGS="-g"
12882 fi
12883else
12884 if test "$GCC" = yes; then
12885 CFLAGS="-O2"
12886 else
12887 CFLAGS=
12888 fi
12889fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012890{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12891echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
12892if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012895 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012896ac_save_CC=$CC
12897cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
12903#include <stdarg.h>
12904#include <stdio.h>
12905#include <sys/types.h>
12906#include <sys/stat.h>
12907/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12908struct buf { int x; };
12909FILE * (*rcsopen) (struct buf *, struct stat *, int);
12910static char *e (p, i)
12911 char **p;
12912 int i;
12913{
12914 return p[i];
12915}
12916static char *f (char * (*g) (char **, int), char **p, ...)
12917{
12918 char *s;
12919 va_list v;
12920 va_start (v,p);
12921 s = g (p, va_arg (v,int));
12922 va_end (v);
12923 return s;
12924}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012925
12926/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12927 function prototypes and stuff, but not '\xHH' hex character constants.
12928 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000012929 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000012930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12931 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000012932 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000012933int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12934
Lev Walkin27fd0b62007-08-27 23:57:45 +000012935/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12936 inside strings and character constants. */
12937#define FOO(x) 'x'
12938int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12939
Lev Walkinf15320b2004-06-03 03:38:44 +000012940int test (int i, double x);
12941struct s1 {int (*f) (int a);};
12942struct s2 {int (*f) (double a);};
12943int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12944int argc;
12945char **argv;
12946int
12947main ()
12948{
12949return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12950 ;
12951 return 0;
12952}
12953_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012954for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000012956do
12957 CC="$ac_save_CC $ac_arg"
12958 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012959if { (ac_try="$ac_compile"
12960case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963esac
12964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012966 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000012972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12973 { (case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976esac
12977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000012979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; } &&
12982 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012983 { (case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986esac
12987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012992 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000012993else
12994 echo "$as_me: failed program was:" >&5
12995sed 's/^/| /' conftest.$ac_ext >&5
12996
Lev Walkin27fd0b62007-08-27 23:57:45 +000012997
Lev Walkinf15320b2004-06-03 03:38:44 +000012998fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012999
13000rm -f core conftest.err conftest.$ac_objext
13001 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000013002done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013003rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013004CC=$ac_save_CC
13005
13006fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013007# AC_CACHE_VAL
13008case "x$ac_cv_prog_cc_c89" in
13009 x)
13010 { echo "$as_me:$LINENO: result: none needed" >&5
13011echo "${ECHO_T}none needed" >&6; } ;;
13012 xno)
13013 { echo "$as_me:$LINENO: result: unsupported" >&5
13014echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013015 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013016 CC="$CC $ac_cv_prog_cc_c89"
13017 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13018echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013019esac
13020
Lev Walkinf15320b2004-06-03 03:38:44 +000013021
Lev Walkinf15320b2004-06-03 03:38:44 +000013022ac_ext=c
13023ac_cpp='$CPP $CPPFLAGS'
13024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13026ac_compiler_gnu=$ac_cv_c_compiler_gnu
13027
13028depcc="$CC" am_compiler_list=
13029
Lev Walkin27fd0b62007-08-27 23:57:45 +000013030{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13031echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013032if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13036 # We make a subdir and do the tests there. Otherwise we can end up
13037 # making bogus files that we don't know about and never remove. For
13038 # instance it was reported that on HP-UX the gcc test will end up
13039 # making a dummy file named `D' -- because `-MD' means `put the output
13040 # in D'.
13041 mkdir conftest.dir
13042 # Copy depcomp to subdir because otherwise we won't find it if we're
13043 # using a relative directory.
13044 cp "$am_depcomp" conftest.dir
13045 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000013046 # We will build objects and dependencies in a subdirectory because
13047 # it helps to detect inapplicable dependency modes. For instance
13048 # both Tru64's cc and ICC support -MD to output dependencies as a
13049 # side effect of compilation, but ICC will put the dependencies in
13050 # the current directory while Tru64 will put them in the object
13051 # directory.
13052 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000013053
13054 am_cv_CC_dependencies_compiler_type=none
13055 if test "$am_compiler_list" = ""; then
13056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13057 fi
13058 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000013059 # Setup a source with many dependencies, because some compilers
13060 # like to wrap large dependency lists on column 80 (with \), and
13061 # we should not choose a depcomp mode which is confused by this.
13062 #
Lev Walkinf15320b2004-06-03 03:38:44 +000013063 # We need to recreate these files for each test, as the compiler may
13064 # overwrite some of them when testing with obscure command lines.
13065 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013066 : > sub/conftest.c
13067 for i in 1 2 3 4 5 6; do
13068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13069 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13070 # Solaris 8's {/usr,}/bin/sh.
13071 touch sub/conftst$i.h
13072 done
13073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000013074
13075 case $depmode in
13076 nosideeffect)
13077 # after this tag, mechanisms are not by side-effect, so they'll
13078 # only be used when explicitly requested
13079 if test "x$enable_dependency_tracking" = xyes; then
13080 continue
13081 else
13082 break
13083 fi
13084 ;;
13085 none) break ;;
13086 esac
13087 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13088 # mode. It turns out that the SunPro C++ compiler does not properly
13089 # handle `-M -o', and we need to detect this.
13090 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013091 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13093 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13094 >/dev/null 2>conftest.err &&
13095 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13096 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000013097 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000013098 # icc doesn't choke on unknown options, it will just issue warnings
13099 # or remarks (even with -Werror). So we grep stderr for any message
13100 # that says an option was ignored or not supported.
13101 # When given -MP, icc 7.0 and 7.1 complain thusly:
13102 # icc: Command line warning: ignoring option '-M'; no argument required
13103 # The diagnosis changed in icc 8.0:
13104 # icc: Command line remark: option '-MP' not supported
13105 if (grep 'ignoring option' conftest.err ||
13106 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13107 am_cv_CC_dependencies_compiler_type=$depmode
13108 break
13109 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013110 fi
13111 done
13112
13113 cd ..
13114 rm -rf conftest.dir
13115else
13116 am_cv_CC_dependencies_compiler_type=none
13117fi
13118
13119fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013120{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13121echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000013122CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13123
13124
13125
13126if
13127 test "x$enable_dependency_tracking" != xno \
13128 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13129 am__fastdepCC_TRUE=
13130 am__fastdepCC_FALSE='#'
13131else
13132 am__fastdepCC_TRUE='#'
13133 am__fastdepCC_FALSE=
13134fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013135
13136
13137ac_ext=c
13138ac_cpp='$CPP $CPPFLAGS'
13139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +000013142{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13143echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013144# On Suns, sometimes $CPP names a directory.
13145if test -n "$CPP" && test -d "$CPP"; then
13146 CPP=
13147fi
13148if test -z "$CPP"; then
13149 if test "${ac_cv_prog_CPP+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151else
13152 # Double quotes because CPP needs to be expanded
13153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13154 do
13155 ac_preproc_ok=false
13156for ac_c_preproc_warn_flag in '' yes
13157do
13158 # Use a header file that comes with gcc, so configuring glibc
13159 # with a fresh cross-compiler works.
13160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 # <limits.h> exists even on freestanding compilers.
13162 # On the NeXT, cc -E runs the code through the compiler's parser,
13163 # not just through cpp. "Syntax error" is here to catch this case.
13164 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013165/* confdefs.h. */
13166_ACEOF
13167cat confdefs.h >>conftest.$ac_ext
13168cat >>conftest.$ac_ext <<_ACEOF
13169/* end confdefs.h. */
13170#ifdef __STDC__
13171# include <limits.h>
13172#else
13173# include <assert.h>
13174#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013175 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000013176_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013177if { (ac_try="$ac_cpp conftest.$ac_ext"
13178case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } >/dev/null; then
13190 if test -s conftest.err; then
13191 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000013192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000013193 else
13194 ac_cpp_err=
13195 fi
13196else
13197 ac_cpp_err=yes
13198fi
13199if test -z "$ac_cpp_err"; then
13200 :
13201else
13202 echo "$as_me: failed program was:" >&5
13203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 # Broken: fails on valid input.
13206continue
13207fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013208
Lev Walkinf15320b2004-06-03 03:38:44 +000013209rm -f conftest.err conftest.$ac_ext
13210
Lev Walkin27fd0b62007-08-27 23:57:45 +000013211 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000013212 # can be detected and how.
13213 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
13219#include <ac_nonexistent.h>
13220_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013221if { (ac_try="$ac_cpp conftest.$ac_ext"
13222case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225esac
13226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } >/dev/null; then
13234 if test -s conftest.err; then
13235 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000013236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000013237 else
13238 ac_cpp_err=
13239 fi
13240else
13241 ac_cpp_err=yes
13242fi
13243if test -z "$ac_cpp_err"; then
13244 # Broken: success on invalid input.
13245continue
13246else
13247 echo "$as_me: failed program was:" >&5
13248sed 's/^/| /' conftest.$ac_ext >&5
13249
13250 # Passes both tests.
13251ac_preproc_ok=:
13252break
13253fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013254
Lev Walkinf15320b2004-06-03 03:38:44 +000013255rm -f conftest.err conftest.$ac_ext
13256
13257done
13258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13259rm -f conftest.err conftest.$ac_ext
13260if $ac_preproc_ok; then
13261 break
13262fi
13263
13264 done
13265 ac_cv_prog_CPP=$CPP
13266
13267fi
13268 CPP=$ac_cv_prog_CPP
13269else
13270 ac_cv_prog_CPP=$CPP
13271fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013272{ echo "$as_me:$LINENO: result: $CPP" >&5
13273echo "${ECHO_T}$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013274ac_preproc_ok=false
13275for ac_c_preproc_warn_flag in '' yes
13276do
13277 # Use a header file that comes with gcc, so configuring glibc
13278 # with a fresh cross-compiler works.
13279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13280 # <limits.h> exists even on freestanding compilers.
13281 # On the NeXT, cc -E runs the code through the compiler's parser,
13282 # not just through cpp. "Syntax error" is here to catch this case.
13283 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013284/* confdefs.h. */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h. */
13289#ifdef __STDC__
13290# include <limits.h>
13291#else
13292# include <assert.h>
13293#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013294 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000013295_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013296if { (ac_try="$ac_cpp conftest.$ac_ext"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000013311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000013312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
13319 :
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 # Broken: fails on valid input.
13325continue
13326fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013327
Lev Walkinf15320b2004-06-03 03:38:44 +000013328rm -f conftest.err conftest.$ac_ext
13329
Lev Walkin27fd0b62007-08-27 23:57:45 +000013330 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000013331 # can be detected and how.
13332 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
13338#include <ac_nonexistent.h>
13339_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013340if { (ac_try="$ac_cpp conftest.$ac_ext"
13341case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344esac
13345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } >/dev/null; then
13353 if test -s conftest.err; then
13354 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000013355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000013356 else
13357 ac_cpp_err=
13358 fi
13359else
13360 ac_cpp_err=yes
13361fi
13362if test -z "$ac_cpp_err"; then
13363 # Broken: success on invalid input.
13364continue
13365else
13366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 # Passes both tests.
13370ac_preproc_ok=:
13371break
13372fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013373
Lev Walkinf15320b2004-06-03 03:38:44 +000013374rm -f conftest.err conftest.$ac_ext
13375
13376done
13377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13378rm -f conftest.err conftest.$ac_ext
13379if $ac_preproc_ok; then
13380 :
13381else
13382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13383See \`config.log' for more details." >&5
13384echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13385See \`config.log' for more details." >&2;}
13386 { (exit 1); exit 1; }; }
13387fi
13388
13389ac_ext=c
13390ac_cpp='$CPP $CPPFLAGS'
13391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394
13395# Find a good install program. We prefer a C program (faster),
13396# so one script is as good as another. But avoid the broken or
13397# incompatible versions:
13398# SysV /etc/install, /usr/sbin/install
13399# SunOS /usr/etc/install
13400# IRIX /sbin/install
13401# AIX /bin/install
13402# AmigaOS /C/install, which installs bootblocks on floppy discs
13403# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13404# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13405# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +000013406# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +000013407# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013408{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13409echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013410if test -z "$INSTALL"; then
13411if test "${ac_cv_path_install+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415for as_dir in $PATH
13416do
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 # Account for people who put trailing slashes in PATH elements.
13420case $as_dir/ in
13421 ./ | .// | /cC/* | \
13422 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013423 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +000013424 /usr/ucb/* ) ;;
13425 *)
13426 # OSF1 and SCO ODT 3.0 have their own names for install.
13427 # Don't use installbsd from OSF since it installs stuff as root
13428 # by default.
13429 for ac_prog in ginstall scoinst install; do
13430 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000013431 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000013432 if test $ac_prog = install &&
13433 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13434 # AIX install. It has an incompatible calling convention.
13435 :
13436 elif test $ac_prog = install &&
13437 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13438 # program-specific install script used by HP pwplus--don't use.
13439 :
13440 else
13441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13442 break 3
13443 fi
13444 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013445 done
13446 done
13447 ;;
13448esac
13449done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013450IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013451
13452
13453fi
13454 if test "${ac_cv_path_install+set}" = set; then
13455 INSTALL=$ac_cv_path_install
13456 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013457 # As a last resort, use the slow shell script. Don't cache a
13458 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +000013459 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +000013460 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +000013461 INSTALL=$ac_install_sh
13462 fi
13463fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013464{ echo "$as_me:$LINENO: result: $INSTALL" >&5
13465echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013466
13467# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13468# It thinks the first close brace ends the variable substitution.
13469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13470
13471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13472
13473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13474
Lev Walkin27fd0b62007-08-27 23:57:45 +000013475{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
13476echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013477LN_S=$as_ln_s
13478if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013479 { echo "$as_me:$LINENO: result: yes" >&5
13480echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013481else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013482 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13483echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013484fi
13485
Lev Walkin27fd0b62007-08-27 23:57:45 +000013486{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13487echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
13488set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13489if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
13492 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013493SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000013494all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000013495 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000013496_ACEOF
13497# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013498case `${MAKE-make} -f conftest.make 2>/dev/null` in
13499 *@@@%%%=?*=@@@%%%*)
13500 eval ac_cv_prog_make_${ac_make}_set=yes;;
13501 *)
13502 eval ac_cv_prog_make_${ac_make}_set=no;;
13503esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013504rm -f conftest.make
13505fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013506if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13507 { echo "$as_me:$LINENO: result: yes" >&5
13508echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013509 SET_MAKE=
13510else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013511 { echo "$as_me:$LINENO: result: no" >&5
13512echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013513 SET_MAKE="MAKE=${MAKE-make}"
13514fi
13515
13516for ac_prog in 'bison -y' byacc
13517do
13518 # Extract the first word of "$ac_prog", so it can be a program name with args.
13519set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000013520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013522if test "${ac_cv_prog_YACC+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
13525 if test -n "$YACC"; then
13526 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13527else
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000013534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013535 ac_cv_prog_YACC="$ac_prog"
13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539done
13540done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013541IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013542
13543fi
13544fi
13545YACC=$ac_cv_prog_YACC
13546if test -n "$YACC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013547 { echo "$as_me:$LINENO: result: $YACC" >&5
13548echo "${ECHO_T}$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013549else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013550 { echo "$as_me:$LINENO: result: no" >&5
13551echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013552fi
13553
Lev Walkin27fd0b62007-08-27 23:57:45 +000013554
Lev Walkinf15320b2004-06-03 03:38:44 +000013555 test -n "$YACC" && break
13556done
13557test -n "$YACC" || YACC="yacc"
13558
Lev Walkinf15320b2004-06-03 03:38:44 +000013559for ac_prog in flex lex
13560do
13561 # Extract the first word of "$ac_prog", so it can be a program name with args.
13562set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000013563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013565if test "${ac_cv_prog_LEX+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567else
13568 if test -n "$LEX"; then
13569 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13570else
13571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572for as_dir in $PATH
13573do
13574 IFS=$as_save_IFS
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000013577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013578 ac_cv_prog_LEX="$ac_prog"
13579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13580 break 2
13581 fi
13582done
13583done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013584IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013585
13586fi
13587fi
13588LEX=$ac_cv_prog_LEX
13589if test -n "$LEX"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013590 { echo "$as_me:$LINENO: result: $LEX" >&5
13591echo "${ECHO_T}$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013592else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013593 { echo "$as_me:$LINENO: result: no" >&5
13594echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013595fi
13596
Lev Walkin27fd0b62007-08-27 23:57:45 +000013597
Lev Walkinf15320b2004-06-03 03:38:44 +000013598 test -n "$LEX" && break
13599done
13600test -n "$LEX" || LEX=":"
13601
13602if test -z "$LEXLIB"
13603then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013604 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
13605echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013606if test "${ac_cv_lib_fl_yywrap+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609 ac_check_lib_save_LIBS=$LIBS
13610LIBS="-lfl $LIBS"
13611cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013612/* confdefs.h. */
13613_ACEOF
13614cat confdefs.h >>conftest.$ac_ext
13615cat >>conftest.$ac_ext <<_ACEOF
13616/* end confdefs.h. */
13617
Lev Walkin27fd0b62007-08-27 23:57:45 +000013618/* Override any GCC internal prototype to avoid an error.
13619 Use char because int might match the return type of a GCC
13620 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000013621#ifdef __cplusplus
13622extern "C"
13623#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000013624char yywrap ();
13625int
13626main ()
13627{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013628return yywrap ();
Lev Walkinf15320b2004-06-03 03:38:44 +000013629 ;
13630 return 0;
13631}
13632_ACEOF
13633rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013634if { (ac_try="$ac_link"
13635case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638esac
13639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013641 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13648 { (case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } &&
13657 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013658 { (case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13661esac
13662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 ac_cv_lib_fl_yywrap=yes
13668else
13669 echo "$as_me: failed program was:" >&5
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
Lev Walkin27fd0b62007-08-27 23:57:45 +000013672 ac_cv_lib_fl_yywrap=no
Lev Walkinf15320b2004-06-03 03:38:44 +000013673fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013674
13675rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013676 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013677LIBS=$ac_check_lib_save_LIBS
13678fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013679{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
13680echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013681if test $ac_cv_lib_fl_yywrap = yes; then
13682 LEXLIB="-lfl"
13683else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013684 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
13685echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013686if test "${ac_cv_lib_l_yywrap+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688else
13689 ac_check_lib_save_LIBS=$LIBS
13690LIBS="-ll $LIBS"
13691cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013692/* confdefs.h. */
13693_ACEOF
13694cat confdefs.h >>conftest.$ac_ext
13695cat >>conftest.$ac_ext <<_ACEOF
13696/* end confdefs.h. */
13697
Lev Walkin27fd0b62007-08-27 23:57:45 +000013698/* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000013701#ifdef __cplusplus
13702extern "C"
13703#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000013704char yywrap ();
13705int
13706main ()
13707{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013708return yywrap ();
Lev Walkinf15320b2004-06-03 03:38:44 +000013709 ;
13710 return 0;
13711}
13712_ACEOF
13713rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013714if { (ac_try="$ac_link"
13715case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013721 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13728 { (case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731esac
13732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013738 { (case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_lib_l_yywrap=yes
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
Lev Walkin27fd0b62007-08-27 23:57:45 +000013752 ac_cv_lib_l_yywrap=no
Lev Walkinf15320b2004-06-03 03:38:44 +000013753fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013754
13755rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013756 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013757LIBS=$ac_check_lib_save_LIBS
13758fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013759{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
13760echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013761if test $ac_cv_lib_l_yywrap = yes; then
13762 LEXLIB="-ll"
13763fi
13764
13765fi
13766
13767fi
13768
13769if test "x$LEX" != "x:"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013770 { echo "$as_me:$LINENO: checking lex output file root" >&5
13771echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013772if test "${ac_cv_prog_lex_root+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774else
13775 # The minimal lex program is just a single line: %%. But some broken lexes
13776# (Solaris, I think it was) want two %% lines, so accommodate them.
13777cat >conftest.l <<_ACEOF
13778%%
13779%%
13780_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013781{ (ac_try="$LEX conftest.l"
13782case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785esac
13786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }
13791if test -f lex.yy.c; then
13792 ac_cv_prog_lex_root=lex.yy
13793elif test -f lexyy.c; then
13794 ac_cv_prog_lex_root=lexyy
13795else
13796 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
13797echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
13798 { (exit 1); exit 1; }; }
13799fi
13800fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013801{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
13802echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013803rm -f conftest.l
13804LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13805
Lev Walkin27fd0b62007-08-27 23:57:45 +000013806{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
13807echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013808if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811 # POSIX says lex can declare yytext either as a pointer or an array; the
13812# default is implementation-dependent. Figure out which it is, since
13813# not all implementations provide the %pointer and %array declarations.
13814ac_cv_prog_lex_yytext_pointer=no
13815echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
13816ac_save_LIBS=$LIBS
13817LIBS="$LIBS $LEXLIB"
13818cat >conftest.$ac_ext <<_ACEOF
13819`cat $LEX_OUTPUT_ROOT.c`
13820_ACEOF
13821rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013822if { (ac_try="$ac_link"
13823case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13826esac
13827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13828 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013829 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013830 grep -v '^ *+' conftest.er1 >conftest.err
13831 rm -f conftest.er1
13832 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836 { (case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13839esac
13840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013846 { (case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13849esac
13850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_cv_prog_lex_yytext_pointer=yes
13856else
13857 echo "$as_me: failed program was:" >&5
13858sed 's/^/| /' conftest.$ac_ext >&5
13859
Lev Walkin27fd0b62007-08-27 23:57:45 +000013860
Lev Walkinf15320b2004-06-03 03:38:44 +000013861fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013862
13863rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013864 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013865LIBS=$ac_save_LIBS
13866rm -f "${LEX_OUTPUT_ROOT}.c"
13867
13868fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013869{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
13870echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013871if test $ac_cv_prog_lex_yytext_pointer = yes; then
13872
13873cat >>confdefs.h <<\_ACEOF
13874#define YYTEXT_POINTER 1
13875_ACEOF
13876
13877fi
13878
13879fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013880if test "$LEX" = :; then
13881 LEX=${am_missing_run}flex
13882fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000013883# Extract the first word of "ar", so it can be a program name with args.
13884set dummy ar; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000013885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000013887if test "${ac_cv_path_AR+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890 case $AR in
13891 [\\/]* | ?:[\\/]*)
13892 ac_cv_path_AR="$AR" # Let the user override the test with a path.
13893 ;;
13894 *)
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
13897for as_dir in $as_dummy
13898do
13899 IFS=$as_save_IFS
13900 test -z "$as_dir" && as_dir=.
13901 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin27fd0b62007-08-27 23:57:45 +000013902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000013903 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
13904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13905 break 2
13906 fi
13907done
13908done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013909IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000013910
13911 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
13912 ;;
13913esac
13914fi
13915AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000013916if test -n "$AR"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013917 { echo "$as_me:$LINENO: result: $AR" >&5
13918echo "${ECHO_T}$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000013919else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013920 { echo "$as_me:$LINENO: result: no" >&5
13921echo "${ECHO_T}no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000013922fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013923
Lev Walkin27fd0b62007-08-27 23:57:45 +000013924
Lev Walkin5f869d02004-08-23 10:41:38 +000013925case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000013926cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000013927 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000013928 *mingw*)
13929 CC="$CC -mno-cygwin"
13930 esac
13931 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000013932esac
13933
Lev Walkin27fd0b62007-08-27 23:57:45 +000013934# Check whether --enable-Werror was given.
Lev Walkin04c23172004-09-26 14:18:32 +000013935if test "${enable_Werror+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013936 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000013937else
13938 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000013939fi
13940
Lev Walkin04c23172004-09-26 14:18:32 +000013941if test x$enable_werror = xyes; then
13942 ADD_CFLAGS="-Werror -W -Wpointer-arith"
13943fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013944
13945
13946case "$GCC" in
13947 yes)
13948 CFLAGS="$CFLAGS -Wall"
13949 CFLAGS="$CFLAGS -Wshadow"
13950 CFLAGS="$CFLAGS -Wcast-qual"
13951 CFLAGS="$CFLAGS -Wcast-align"
Lev Walkin93636742004-09-26 13:16:33 +000013952 CFLAGS="$CFLAGS -Wchar-subscripts"
Lev Walkinf15320b2004-06-03 03:38:44 +000013953 CFLAGS="$CFLAGS -Wmissing-prototypes"
13954 CFLAGS="$CFLAGS -Wmissing-declarations"
Lev Walkinf15320b2004-06-03 03:38:44 +000013955 ;;
13956esac
13957
13958
Lev Walkin27fd0b62007-08-27 23:57:45 +000013959{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13960echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013961if test "${ac_cv_header_stdc+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963else
13964 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h. */
13970#include <stdlib.h>
13971#include <stdarg.h>
13972#include <string.h>
13973#include <float.h>
13974
13975int
13976main ()
13977{
13978
13979 ;
13980 return 0;
13981}
13982_ACEOF
13983rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013984if { (ac_try="$ac_compile"
13985case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988esac
13989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013991 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13998 { (case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001esac
14002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; } &&
14007 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014008 { (case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011esac
14012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_cv_header_stdc=yes
14018else
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
Lev Walkin27fd0b62007-08-27 23:57:45 +000014022 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000014023fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014024
14025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014026
14027if test $ac_cv_header_stdc = yes; then
14028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14029 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014030/* confdefs.h. */
14031_ACEOF
14032cat confdefs.h >>conftest.$ac_ext
14033cat >>conftest.$ac_ext <<_ACEOF
14034/* end confdefs.h. */
14035#include <string.h>
14036
14037_ACEOF
14038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14039 $EGREP "memchr" >/dev/null 2>&1; then
14040 :
14041else
14042 ac_cv_header_stdc=no
14043fi
14044rm -f conftest*
14045
14046fi
14047
14048if test $ac_cv_header_stdc = yes; then
14049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14050 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056#include <stdlib.h>
14057
14058_ACEOF
14059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14060 $EGREP "free" >/dev/null 2>&1; then
14061 :
14062else
14063 ac_cv_header_stdc=no
14064fi
14065rm -f conftest*
14066
14067fi
14068
14069if test $ac_cv_header_stdc = yes; then
14070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14071 if test "$cross_compiling" = yes; then
14072 :
14073else
14074 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014075/* confdefs.h. */
14076_ACEOF
14077cat confdefs.h >>conftest.$ac_ext
14078cat >>conftest.$ac_ext <<_ACEOF
14079/* end confdefs.h. */
14080#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000014081#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000014082#if ((' ' & 0x0FF) == 0x020)
14083# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14084# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14085#else
14086# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014087 (('a' <= (c) && (c) <= 'i') \
14088 || ('j' <= (c) && (c) <= 'r') \
14089 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000014090# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14091#endif
14092
14093#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14094int
14095main ()
14096{
14097 int i;
14098 for (i = 0; i < 256; i++)
14099 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000014100 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000014101 return 2;
14102 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000014103}
14104_ACEOF
14105rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014106if { (ac_try="$ac_link"
14107case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110esac
14111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014116 { (case "(($ac_try" in
14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118 *) ac_try_echo=$ac_try;;
14119esac
14120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14121 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 :
14126else
14127 echo "$as_me: program exited with status $ac_status" >&5
14128echo "$as_me: failed program was:" >&5
14129sed 's/^/| /' conftest.$ac_ext >&5
14130
14131( exit $ac_status )
14132ac_cv_header_stdc=no
14133fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14135fi
14136
14137
Lev Walkinf15320b2004-06-03 03:38:44 +000014138fi
14139fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014140{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14141echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014142if test $ac_cv_header_stdc = yes; then
14143
14144cat >>confdefs.h <<\_ACEOF
14145#define STDC_HEADERS 1
14146_ACEOF
14147
14148fi
14149
Lev Walkinf15320b2004-06-03 03:38:44 +000014150
Lev Walkin79f54952004-08-13 16:58:19 +000014151for ac_header in sys/param.h
Lev Walkinf15320b2004-06-03 03:38:44 +000014152do
14153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014160ac_res=`eval echo '${'$as_ac_Header'}'`
14161 { echo "$as_me:$LINENO: result: $ac_res" >&5
14162echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014163else
14164 # Is the header compilable?
Lev Walkin27fd0b62007-08-27 23:57:45 +000014165{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014167cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014168/* confdefs.h. */
14169_ACEOF
14170cat confdefs.h >>conftest.$ac_ext
14171cat >>conftest.$ac_ext <<_ACEOF
14172/* end confdefs.h. */
14173$ac_includes_default
14174#include <$ac_header>
14175_ACEOF
14176rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014177if { (ac_try="$ac_compile"
14178case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014184 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14191 { (case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194esac
14195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014201 { (case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204esac
14205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_header_compiler=yes
14211else
14212 echo "$as_me: failed program was:" >&5
14213sed 's/^/| /' conftest.$ac_ext >&5
14214
Lev Walkin27fd0b62007-08-27 23:57:45 +000014215 ac_header_compiler=no
Lev Walkinf15320b2004-06-03 03:38:44 +000014216fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014217
14218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14220echo "${ECHO_T}$ac_header_compiler" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014221
14222# Is the header present?
Lev Walkin27fd0b62007-08-27 23:57:45 +000014223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014225cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
14231#include <$ac_header>
14232_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014233if { (ac_try="$ac_cpp conftest.$ac_ext"
14234case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237esac
14238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014240 ac_status=$?
14241 grep -v '^ *+' conftest.er1 >conftest.err
14242 rm -f conftest.er1
14243 cat conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } >/dev/null; then
14246 if test -s conftest.err; then
14247 ac_cpp_err=$ac_c_preproc_warn_flag
Lev Walkin8e8b5482004-06-17 23:42:48 +000014248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Lev Walkinf15320b2004-06-03 03:38:44 +000014249 else
14250 ac_cpp_err=
14251 fi
14252else
14253 ac_cpp_err=yes
14254fi
14255if test -z "$ac_cpp_err"; then
14256 ac_header_preproc=yes
14257else
14258 echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 ac_header_preproc=no
14262fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014263
Lev Walkinf15320b2004-06-03 03:38:44 +000014264rm -f conftest.err conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14266echo "${ECHO_T}$ac_header_preproc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014267
14268# So? What about this header?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14270 yes:no: )
Lev Walkinf15320b2004-06-03 03:38:44 +000014271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000014273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14275 ac_header_preproc=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000014276 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000014277 no:yes:* )
Lev Walkinf15320b2004-06-03 03:38:44 +000014278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000014280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000014288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014290
Lev Walkinf15320b2004-06-03 03:38:44 +000014291 ;;
14292esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297else
Lev Walkin8e8b5482004-06-17 23:42:48 +000014298 eval "$as_ac_Header=\$ac_header_preproc"
Lev Walkinf15320b2004-06-03 03:38:44 +000014299fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014300ac_res=`eval echo '${'$as_ac_Header'}'`
14301 { echo "$as_me:$LINENO: result: $ac_res" >&5
14302echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014303
14304fi
14305if test `eval echo '${'$as_ac_Header'}'` = yes; then
14306 cat >>confdefs.h <<_ACEOF
14307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14308_ACEOF
14309
14310fi
14311
14312done
14313
14314
Lev Walkin27fd0b62007-08-27 23:57:45 +000014315{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14316echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014317if test "${ac_cv_c_bigendian+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 # See if sys/param.h defines the BYTE_ORDER macro.
14321cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327#include <sys/types.h>
14328#include <sys/param.h>
14329
14330int
14331main ()
14332{
14333#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14334 bogus endian macros
14335#endif
14336
14337 ;
14338 return 0;
14339}
14340_ACEOF
14341rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014342if { (ac_try="$ac_compile"
14343case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346esac
14347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014349 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14356 { (case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14359esac
14360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; } &&
14365 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014366 { (case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369esac
14370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }; then
14375 # It does; now see whether it defined to BIG_ENDIAN or not.
14376cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
14382#include <sys/types.h>
14383#include <sys/param.h>
14384
14385int
14386main ()
14387{
14388#if BYTE_ORDER != BIG_ENDIAN
14389 not big endian
14390#endif
14391
14392 ;
14393 return 0;
14394}
14395_ACEOF
14396rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014397if { (ac_try="$ac_compile"
14398case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014404 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414esac
14415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014421 { (case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_c_bigendian=yes
14431else
14432 echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
Lev Walkin27fd0b62007-08-27 23:57:45 +000014435 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000014436fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014437
14438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
Lev Walkin27fd0b62007-08-27 23:57:45 +000014443 # It does not; compile a test program.
Lev Walkinf15320b2004-06-03 03:38:44 +000014444if test "$cross_compiling" = yes; then
14445 # try to guess the endianness by grepping values into an object file
14446 ac_cv_c_bigendian=unknown
14447 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014448/* confdefs.h. */
14449_ACEOF
14450cat confdefs.h >>conftest.$ac_ext
14451cat >>conftest.$ac_ext <<_ACEOF
14452/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000014453short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14454short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000014455void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000014456short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14457short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000014458void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14459int
14460main ()
14461{
14462 _ascii (); _ebcdic ();
14463 ;
14464 return 0;
14465}
14466_ACEOF
14467rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014468if { (ac_try="$ac_compile"
14469case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14472esac
14473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014475 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14502 ac_cv_c_bigendian=yes
14503fi
14504if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14505 if test "$ac_cv_c_bigendian" = unknown; then
14506 ac_cv_c_bigendian=no
14507 else
14508 # finding both strings is unlikely to happen, but who knows?
14509 ac_cv_c_bigendian=unknown
14510 fi
14511fi
14512else
14513 echo "$as_me: failed program was:" >&5
14514sed 's/^/| /' conftest.$ac_ext >&5
14515
Lev Walkin27fd0b62007-08-27 23:57:45 +000014516
Lev Walkinf15320b2004-06-03 03:38:44 +000014517fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014518
14519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014520else
14521 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000014527$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000014528int
14529main ()
14530{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014531
Lev Walkinf15320b2004-06-03 03:38:44 +000014532 /* Are we little or big endian? From Harbison&Steele. */
14533 union
14534 {
Lev Walkin27fd0b62007-08-27 23:57:45 +000014535 long int l;
14536 char c[sizeof (long int)];
Lev Walkinf15320b2004-06-03 03:38:44 +000014537 } u;
14538 u.l = 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014539 return u.c[sizeof (long int) - 1] == 1;
14540
14541 ;
14542 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000014543}
14544_ACEOF
14545rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014546if { (ac_try="$ac_link"
14547case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559esac
14560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_cv_c_bigendian=no
14566else
14567 echo "$as_me: program exited with status $ac_status" >&5
14568echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
14571( exit $ac_status )
14572ac_cv_c_bigendian=yes
14573fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014575fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014576
14577
Lev Walkinf15320b2004-06-03 03:38:44 +000014578fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014579
14580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014581fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014582{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14583echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014584case $ac_cv_c_bigendian in
14585 yes)
14586
14587cat >>confdefs.h <<\_ACEOF
14588#define WORDS_BIGENDIAN 1
14589_ACEOF
14590 ;;
14591 no)
14592 ;;
14593 *)
14594 { { echo "$as_me:$LINENO: error: unknown endianness
14595presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14596echo "$as_me: error: unknown endianness
14597presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14598 { (exit 1); exit 1; }; } ;;
14599esac
14600
Lev Walkin27fd0b62007-08-27 23:57:45 +000014601{ echo "$as_me:$LINENO: checking for off_t" >&5
14602echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014603if test "${ac_cv_type_off_t+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605else
14606 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014607/* confdefs.h. */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h. */
14612$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000014613typedef off_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000014614int
14615main ()
14616{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014617if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000014618 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014619if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000014620 return 0;
14621 ;
14622 return 0;
14623}
14624_ACEOF
14625rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014626if { (ac_try="$ac_compile"
14627case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630esac
14631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014633 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14640 { (case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653esac
14654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_type_off_t=yes
14660else
14661 echo "$as_me: failed program was:" >&5
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
Lev Walkin27fd0b62007-08-27 23:57:45 +000014664 ac_cv_type_off_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000014665fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014666
14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014668fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014669{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14670echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014671if test $ac_cv_type_off_t = yes; then
14672 :
14673else
14674
14675cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014676#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000014677_ACEOF
14678
14679fi
14680
Lev Walkin27fd0b62007-08-27 23:57:45 +000014681{ echo "$as_me:$LINENO: checking for size_t" >&5
14682echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014683if test "${ac_cv_type_size_t+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685else
14686 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014687/* confdefs.h. */
14688_ACEOF
14689cat confdefs.h >>conftest.$ac_ext
14690cat >>conftest.$ac_ext <<_ACEOF
14691/* end confdefs.h. */
14692$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000014693typedef size_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000014694int
14695main ()
14696{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014697if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000014698 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014699if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000014700 return 0;
14701 ;
14702 return 0;
14703}
14704_ACEOF
14705rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014706if { (ac_try="$ac_compile"
14707case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014713 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014714 grep -v '^ *+' conftest.er1 >conftest.err
14715 rm -f conftest.er1
14716 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14720 { (case "(($ac_try" in
14721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722 *) ac_try_echo=$ac_try;;
14723esac
14724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; } &&
14729 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014730 { (case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14733esac
14734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_cv_type_size_t=yes
14740else
14741 echo "$as_me: failed program was:" >&5
14742sed 's/^/| /' conftest.$ac_ext >&5
14743
Lev Walkin27fd0b62007-08-27 23:57:45 +000014744 ac_cv_type_size_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000014745fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014746
14747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014748fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014749{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14750echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014751if test $ac_cv_type_size_t = yes; then
14752 :
14753else
14754
14755cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014756#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000014757_ACEOF
14758
14759fi
14760
Lev Walkin27fd0b62007-08-27 23:57:45 +000014761{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14762echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014763if test "${ac_cv_struct_tm+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772#include <sys/types.h>
14773#include <time.h>
14774
14775int
14776main ()
14777{
14778struct tm *tp; tp->tm_sec;
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014784if { (ac_try="$ac_compile"
14785case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788esac
14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014791 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801esac
14802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014808 { (case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811esac
14812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_cv_struct_tm=time.h
14818else
14819 echo "$as_me: failed program was:" >&5
14820sed 's/^/| /' conftest.$ac_ext >&5
14821
Lev Walkin27fd0b62007-08-27 23:57:45 +000014822 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000014823fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014824
14825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014826fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014827{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14828echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014829if test $ac_cv_struct_tm = sys/time.h; then
14830
14831cat >>confdefs.h <<\_ACEOF
14832#define TM_IN_SYS_TIME 1
14833_ACEOF
14834
14835fi
14836
Lev Walkin27fd0b62007-08-27 23:57:45 +000014837{ echo "$as_me:$LINENO: checking for intmax_t" >&5
14838echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014839if test "${ac_cv_type_intmax_t+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000014849typedef intmax_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000014850int
14851main ()
14852{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014853if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000014854 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014855if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000014856 return 0;
14857 ;
14858 return 0;
14859}
14860_ACEOF
14861rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000014862if { (ac_try="$ac_compile"
14863case "(($ac_try" in
14864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865 *) ac_try_echo=$ac_try;;
14866esac
14867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000014869 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000014870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14876 { (case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879esac
14880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000014882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest.$ac_objext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014886 { (case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14889esac
14890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_cv_type_intmax_t=yes
14896else
14897 echo "$as_me: failed program was:" >&5
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
Lev Walkin27fd0b62007-08-27 23:57:45 +000014900 ac_cv_type_intmax_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000014901fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014902
14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000014904fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014905{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
14906echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014907if test $ac_cv_type_intmax_t = yes; then
14908 :
14909else
14910
14911cat >>confdefs.h <<_ACEOF
14912#define intmax_t int64_t
14913_ACEOF
14914
14915fi
14916
14917
Lev Walkin058e2222007-12-04 00:27:38 +000014918{ echo "$as_me:$LINENO: checking for library containing getopt" >&5
14919echo $ECHO_N "checking for library containing getopt... $ECHO_C" >&6; }
14920if test "${ac_cv_search_getopt+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else
14923 ac_func_search_save_LIBS=$LIBS
14924cat >conftest.$ac_ext <<_ACEOF
14925/* confdefs.h. */
14926_ACEOF
14927cat confdefs.h >>conftest.$ac_ext
14928cat >>conftest.$ac_ext <<_ACEOF
14929/* end confdefs.h. */
14930
14931/* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply. */
14934#ifdef __cplusplus
14935extern "C"
14936#endif
14937char getopt ();
14938int
14939main ()
14940{
14941return getopt ();
14942 ;
14943 return 0;
14944}
14945_ACEOF
14946for ac_lib in '' iberty; do
14947 if test -z "$ac_lib"; then
14948 ac_res="none required"
14949 else
14950 ac_res=-l$ac_lib
14951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14952 fi
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954if { (ac_try="$ac_link"
14955case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_link") 2>conftest.er1
14961 ac_status=$?
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14968 { (case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971esac
14972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_try") 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest$ac_exeext'
14978 { (case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981esac
14982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_try") 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 ac_cv_search_getopt=$ac_res
14988else
14989 echo "$as_me: failed program was:" >&5
14990sed 's/^/| /' conftest.$ac_ext >&5
14991
14992
14993fi
14994
14995rm -f core conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext
14997 if test "${ac_cv_search_getopt+set}" = set; then
14998 break
14999fi
15000done
15001if test "${ac_cv_search_getopt+set}" = set; then
15002 :
15003else
15004 ac_cv_search_getopt=no
15005fi
15006rm conftest.$ac_ext
15007LIBS=$ac_func_search_save_LIBS
15008fi
15009{ echo "$as_me:$LINENO: result: $ac_cv_search_getopt" >&5
15010echo "${ECHO_T}$ac_cv_search_getopt" >&6; }
15011ac_res=$ac_cv_search_getopt
15012if test "$ac_res" != no; then
15013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15014
15015fi
15016
15017
Lev Walkinf15320b2004-06-03 03:38:44 +000015018
15019
15020for ac_func in strtoimax strtoll
15021do
15022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000015023{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15025if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000015026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
15028 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000015034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15036#define $ac_func innocuous_$ac_func
15037
Lev Walkinf15320b2004-06-03 03:38:44 +000015038/* System header to define __stub macros and hopefully few prototypes,
15039 which can conflict with char $ac_func (); below.
15040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15041 <limits.h> exists even on freestanding compilers. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000015042
Lev Walkinf15320b2004-06-03 03:38:44 +000015043#ifdef __STDC__
15044# include <limits.h>
15045#else
15046# include <assert.h>
15047#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000015048
15049#undef $ac_func
15050
Lev Walkin27fd0b62007-08-27 23:57:45 +000015051/* Override any GCC internal prototype to avoid an error.
15052 Use char because int might match the return type of a GCC
15053 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000015054#ifdef __cplusplus
15055extern "C"
Lev Walkinf15320b2004-06-03 03:38:44 +000015056#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000015057char $ac_func ();
15058/* The GNU C library defines this for functions which it implements
15059 to always fail with ENOSYS. Some functions are actually named
15060 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000015061#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkinf15320b2004-06-03 03:38:44 +000015062choke me
Lev Walkinf15320b2004-06-03 03:38:44 +000015063#endif
15064
15065int
15066main ()
15067{
Lev Walkin27fd0b62007-08-27 23:57:45 +000015068return $ac_func ();
Lev Walkinf15320b2004-06-03 03:38:44 +000015069 ;
15070 return 0;
15071}
15072_ACEOF
15073rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000015074if { (ac_try="$ac_link"
15075case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000015081 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000015082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000015085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000015087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15088 { (case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091esac
15092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000015094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015098 { (case "(($ac_try" in
15099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15100 *) ac_try_echo=$ac_try;;
15101esac
15102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15103 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000015104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 eval "$as_ac_var=yes"
15108else
15109 echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
Lev Walkin27fd0b62007-08-27 23:57:45 +000015112 eval "$as_ac_var=no"
Lev Walkinf15320b2004-06-03 03:38:44 +000015113fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015114
15115rm -f core conftest.err conftest.$ac_objext \
Lev Walkin8e8b5482004-06-17 23:42:48 +000015116 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000015117fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015118ac_res=`eval echo '${'$as_ac_var'}'`
15119 { echo "$as_me:$LINENO: result: $ac_res" >&5
15120echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000015121if test `eval echo '${'$as_ac_var'}'` = yes; then
15122 cat >>confdefs.h <<_ACEOF
15123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15124_ACEOF
15125
15126fi
15127done
15128
15129
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015130for ac_func in mergesort
15131do
15132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000015133{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15135if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else
15138 cat >conftest.$ac_ext <<_ACEOF
15139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
15144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15146#define $ac_func innocuous_$ac_func
15147
15148/* System header to define __stub macros and hopefully few prototypes,
15149 which can conflict with char $ac_func (); below.
15150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15151 <limits.h> exists even on freestanding compilers. */
15152
15153#ifdef __STDC__
15154# include <limits.h>
15155#else
15156# include <assert.h>
15157#endif
15158
15159#undef $ac_func
15160
Lev Walkin27fd0b62007-08-27 23:57:45 +000015161/* Override any GCC internal prototype to avoid an error.
15162 Use char because int might match the return type of a GCC
15163 builtin and then its argument prototype would still apply. */
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015164#ifdef __cplusplus
15165extern "C"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015166#endif
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015167char $ac_func ();
15168/* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000015171#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015172choke me
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015173#endif
15174
15175int
15176main ()
15177{
Lev Walkin27fd0b62007-08-27 23:57:45 +000015178return $ac_func ();
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015179 ;
15180 return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000015184if { (ac_try="$ac_link"
15185case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188esac
15189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_link") 2>conftest.er1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015191 ac_status=$?
15192 grep -v '^ *+' conftest.er1 >conftest.err
15193 rm -f conftest.er1
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000015197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15198 { (case "(($ac_try" in
15199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200 *) ac_try_echo=$ac_try;;
15201esac
15202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15203 (eval "$ac_try") 2>&5
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015204 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } &&
15207 { ac_try='test -s conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015208 { (case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_try") 2>&5
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015214 ac_status=$?
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 eval "$as_ac_var=yes"
15218else
15219 echo "$as_me: failed program was:" >&5
15220sed 's/^/| /' conftest.$ac_ext >&5
15221
Lev Walkin27fd0b62007-08-27 23:57:45 +000015222 eval "$as_ac_var=no"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015223fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015224
15225rm -f core conftest.err conftest.$ac_objext \
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015226 conftest$ac_exeext conftest.$ac_ext
15227fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015228ac_res=`eval echo '${'$as_ac_var'}'`
15229 { echo "$as_me:$LINENO: result: $ac_res" >&5
15230echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin49b0a3e2004-06-28 21:22:35 +000015231if test `eval echo '${'$as_ac_var'}'` = yes; then
15232 cat >>confdefs.h <<_ACEOF
15233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15234_ACEOF
15235
15236fi
15237done
15238
15239
Lev Walkin27fd0b62007-08-27 23:57:45 +000015240for ac_func in mkstemps
15241do
15242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else
15248 cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h. */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h. */
15254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15256#define $ac_func innocuous_$ac_func
15257
15258/* System header to define __stub macros and hopefully few prototypes,
15259 which can conflict with char $ac_func (); below.
15260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15261 <limits.h> exists even on freestanding compilers. */
15262
15263#ifdef __STDC__
15264# include <limits.h>
15265#else
15266# include <assert.h>
15267#endif
15268
15269#undef $ac_func
15270
15271/* Override any GCC internal prototype to avoid an error.
15272 Use char because int might match the return type of a GCC
15273 builtin and then its argument prototype would still apply. */
15274#ifdef __cplusplus
15275extern "C"
15276#endif
15277char $ac_func ();
15278/* The GNU C library defines this for functions which it implements
15279 to always fail with ENOSYS. Some functions are actually named
15280 something starting with __ and the normal name is an alias. */
15281#if defined __stub_$ac_func || defined __stub___$ac_func
15282choke me
15283#endif
15284
15285int
15286main ()
15287{
15288return $ac_func ();
15289 ;
15290 return 0;
15291}
15292_ACEOF
15293rm -f conftest.$ac_objext conftest$ac_exeext
15294if { (ac_try="$ac_link"
15295case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15298esac
15299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_link") 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15308 { (case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15311esac
15312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_try") 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; } &&
15317 { ac_try='test -s conftest$ac_exeext'
15318 { (case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321esac
15322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_try") 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 eval "$as_ac_var=yes"
15328else
15329 echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331
15332 eval "$as_ac_var=no"
15333fi
15334
15335rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
15337fi
15338ac_res=`eval echo '${'$as_ac_var'}'`
15339 { echo "$as_me:$LINENO: result: $ac_res" >&5
15340echo "${ECHO_T}$ac_res" >&6; }
15341if test `eval echo '${'$as_ac_var'}'` = yes; then
15342 cat >>confdefs.h <<_ACEOF
15343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15344_ACEOF
15345
15346fi
15347done
Lev Walkinf15320b2004-06-03 03:38:44 +000015348
15349
Lev Walkin27fd0b62007-08-27 23:57:45 +000015350ac_config_headers="$ac_config_headers config.h"
15351
15352
15353ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/webcgi/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
15354
Lev Walkinf15320b2004-06-03 03:38:44 +000015355cat >confcache <<\_ACEOF
15356# This file is a shell script that caches the results of configure
15357# tests run on this system so they can be shared between configure
15358# scripts and configure runs, see configure's option --config-cache.
15359# It is not useful on other systems. If it contains results you don't
15360# want to keep, you may remove or edit it.
15361#
15362# config.status only pays attention to the cache file if you give it
15363# the --recheck option to rerun configure.
15364#
15365# `ac_cv_env_foo' variables (set or unset) will be overridden when
15366# loading this file, other *unset* `ac_cv_foo' will be assigned the
15367# following values.
15368
15369_ACEOF
15370
15371# The following way of writing the cache mishandles newlines in values,
15372# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015373# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000015374# Ultrix sh set writes to stderr and can't be redirected directly,
15375# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015376(
15377 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15378 eval ac_val=\$$ac_var
15379 case $ac_val in #(
15380 *${as_nl}*)
15381 case $ac_var in #(
15382 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15383echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15384 esac
15385 case $ac_var in #(
15386 _ | IFS | as_nl) ;; #(
15387 *) $as_unset $ac_var ;;
15388 esac ;;
15389 esac
15390 done
15391
Lev Walkinf15320b2004-06-03 03:38:44 +000015392 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15394 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +000015395 # `set' does not quote correctly, so add quotes (double-quote
15396 # substitution turns \\\\ into \\, and sed turns \\ into \).
15397 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000015398 "s/'/'\\\\''/g;
15399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000015400 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000015401 *)
15402 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000015404 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000015405 esac |
15406 sort
15407) |
Lev Walkinf15320b2004-06-03 03:38:44 +000015408 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000015409 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000015410 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000015411 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000015412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15413 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000015414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15415 :end' >>confcache
15416if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15417 if test -w "$cache_file"; then
15418 test "x$cache_file" != "x/dev/null" &&
15419 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15420echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000015421 cat confcache >$cache_file
15422 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000015423 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15424echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000015425 fi
15426fi
15427rm -f confcache
15428
15429test "x$prefix" = xNONE && prefix=$ac_default_prefix
15430# Let make expand exec_prefix.
15431test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15432
Lev Walkinf15320b2004-06-03 03:38:44 +000015433DEFS=-DHAVE_CONFIG_H
15434
15435ac_libobjs=
15436ac_ltlibobjs=
15437for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15438 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015439 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15440 ac_i=`echo "$ac_i" | sed "$ac_script"`
15441 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15442 # will be set to the directory where LIBOBJS objects are built.
15443 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15444 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000015445done
15446LIBOBJS=$ac_libobjs
15447
15448LTLIBOBJS=$ac_ltlibobjs
15449
15450
Lev Walkin8e8b5482004-06-17 23:42:48 +000015451if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15452 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15453Usually this means the macro was only invoked conditionally." >&5
15454echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15455Usually this means the macro was only invoked conditionally." >&2;}
15456 { (exit 1); exit 1; }; }
15457fi
15458if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15459 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15460Usually this means the macro was only invoked conditionally." >&5
15461echo "$as_me: error: conditional \"AMDEP\" was never defined.
15462Usually this means the macro was only invoked conditionally." >&2;}
15463 { (exit 1); exit 1; }; }
15464fi
15465if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15466 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15467Usually this means the macro was only invoked conditionally." >&5
15468echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15469Usually this means the macro was only invoked conditionally." >&2;}
15470 { (exit 1); exit 1; }; }
15471fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000015472if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15473 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15474Usually this means the macro was only invoked conditionally." >&5
15475echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15476Usually this means the macro was only invoked conditionally." >&2;}
15477 { (exit 1); exit 1; }; }
15478fi
Lev Walkinf15320b2004-06-03 03:38:44 +000015479
15480: ${CONFIG_STATUS=./config.status}
15481ac_clean_files_save=$ac_clean_files
15482ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15483{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15484echo "$as_me: creating $CONFIG_STATUS" >&6;}
15485cat >$CONFIG_STATUS <<_ACEOF
15486#! $SHELL
15487# Generated by $as_me.
15488# Run this file to recreate the current configuration.
15489# Compiler output produced by configure, useful for debugging
15490# configure, is in config.log if it exists.
15491
15492debug=false
15493ac_cs_recheck=false
15494ac_cs_silent=false
15495SHELL=\${CONFIG_SHELL-$SHELL}
15496_ACEOF
15497
15498cat >>$CONFIG_STATUS <<\_ACEOF
15499## --------------------- ##
15500## M4sh Initialization. ##
15501## --------------------- ##
15502
15503# Be Bourne compatible
15504if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15505 emulate sh
15506 NULLCMD=:
15507 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15508 # is contrary to our usage. Disable this feature.
15509 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000015510 setopt NO_GLOB_SUBST
15511else
15512 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +000015513fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015514BIN_SH=xpg4; export BIN_SH # for Tru64
Lev Walkin8e8b5482004-06-17 23:42:48 +000015515DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000015516
Lev Walkinf15320b2004-06-03 03:38:44 +000015517
Lev Walkin27fd0b62007-08-27 23:57:45 +000015518# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000015519# Avoid depending upon Character Ranges.
15520as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15521as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15522as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15523as_cr_digits='0123456789'
15524as_cr_alnum=$as_cr_Letters$as_cr_digits
15525
15526# The user is always right.
15527if test "${PATH_SEPARATOR+set}" != set; then
15528 echo "#! /bin/sh" >conf$$.sh
15529 echo "exit 0" >>conf$$.sh
15530 chmod +x conf$$.sh
15531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15532 PATH_SEPARATOR=';'
15533 else
15534 PATH_SEPARATOR=:
15535 fi
15536 rm -f conf$$.sh
15537fi
15538
Lev Walkin27fd0b62007-08-27 23:57:45 +000015539# Support unset when possible.
15540if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15541 as_unset=unset
15542else
15543 as_unset=false
15544fi
Lev Walkinf15320b2004-06-03 03:38:44 +000015545
Lev Walkin27fd0b62007-08-27 23:57:45 +000015546
15547# IFS
15548# We need space, tab and new line, in precisely that order. Quoting is
15549# there to prevent editors from complaining about space-tab.
15550# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15551# splitting by setting IFS to empty value.)
15552as_nl='
15553'
15554IFS=" "" $as_nl"
15555
15556# Find who we are. Look in the path if we contain no directory separator.
15557case $0 in
15558 *[\\/]* ) as_myself=$0 ;;
15559 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000015560for as_dir in $PATH
15561do
15562 IFS=$as_save_IFS
15563 test -z "$as_dir" && as_dir=.
15564 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15565done
Lev Walkin27fd0b62007-08-27 23:57:45 +000015566IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000015567
Lev Walkin27fd0b62007-08-27 23:57:45 +000015568 ;;
15569esac
15570# We did not find ourselves, most probably we were run as `sh COMMAND'
15571# in which case we are not to be found in the path.
15572if test "x$as_myself" = x; then
15573 as_myself=$0
15574fi
15575if test ! -f "$as_myself"; then
15576 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15577 { (exit 1); exit 1; }
15578fi
15579
15580# Work around bugs in pre-3.0 UWIN ksh.
15581for as_var in ENV MAIL MAILPATH
15582do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15583done
15584PS1='$ '
15585PS2='> '
15586PS4='+ '
15587
15588# NLS nuisances.
15589for as_var in \
15590 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15591 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15592 LC_TELEPHONE LC_TIME
Lev Walkinf15320b2004-06-03 03:38:44 +000015593do
Lev Walkin27fd0b62007-08-27 23:57:45 +000015594 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15595 eval $as_var=C; export $as_var
15596 else
15597 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15598 fi
15599done
15600
15601# Required to use basename.
15602if expr a : '\(a\)' >/dev/null 2>&1 &&
15603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15604 as_expr=expr
15605else
15606 as_expr=false
15607fi
15608
15609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15610 as_basename=basename
15611else
15612 as_basename=false
15613fi
15614
15615
15616# Name of the executable.
15617as_me=`$as_basename -- "$0" ||
15618$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15619 X"$0" : 'X\(//\)$' \| \
15620 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15621echo X/"$0" |
15622 sed '/^.*\/\([^/][^/]*\)\/*$/{
15623 s//\1/
15624 q
15625 }
15626 /^X\/\(\/\/\)$/{
15627 s//\1/
15628 q
15629 }
15630 /^X\/\(\/\).*/{
15631 s//\1/
15632 q
15633 }
15634 s/.*/./; q'`
15635
15636# CDPATH.
15637$as_unset CDPATH
15638
15639
15640
Lev Walkinf15320b2004-06-03 03:38:44 +000015641 as_lineno_1=$LINENO
15642 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +000015643 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000015644 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +000015645
15646 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15647 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +000015648 # line-number line after each line using $LINENO; the second 'sed'
15649 # does the real work. The second script uses 'N' to pair each
15650 # line-number line with the line containing $LINENO, and appends
15651 # trailing '-' during substitution so that $LINENO is not a special
15652 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +000015653 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +000015654 # scripts with optimization help from Paolo Bonzini. Blame Lee
15655 # E. McMahon (1931-1989) for sed's syntax. :-)
15656 sed -n '
15657 p
15658 /[$]LINENO/=
15659 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +000015660 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000015661 s/[$]LINENO.*/&-/
15662 t lineno
15663 b
15664 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +000015665 N
Lev Walkin27fd0b62007-08-27 23:57:45 +000015666 :loop
15667 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +000015668 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +000015669 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +000015670 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000015671 chmod +x "$as_me.lineno" ||
15672 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000015673 { (exit 1); exit 1; }; }
15674
15675 # Don't try to exec as it changes $[0], causing all sort of problems
15676 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +000015677 # original and so on. Autoconf is especially sensitive to this).
15678 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +000015679 # Exit status is that of the last command.
15680 exit
15681}
15682
15683
Lev Walkin27fd0b62007-08-27 23:57:45 +000015684if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15685 as_dirname=dirname
15686else
15687 as_dirname=false
15688fi
15689
15690ECHO_C= ECHO_N= ECHO_T=
15691case `echo -n x` in
15692-n*)
15693 case `echo 'x\c'` in
15694 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15695 *) ECHO_C='\c';;
15696 esac;;
15697*)
15698 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000015699esac
15700
Lev Walkin27fd0b62007-08-27 23:57:45 +000015701if expr a : '\(a\)' >/dev/null 2>&1 &&
15702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +000015703 as_expr=expr
15704else
15705 as_expr=false
15706fi
15707
15708rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000015709if test -d conf$$.dir; then
15710 rm -f conf$$.dir/conf$$.file
15711else
15712 rm -f conf$$.dir
15713 mkdir conf$$.dir
15714fi
Lev Walkinf15320b2004-06-03 03:38:44 +000015715echo >conf$$.file
15716if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000015717 as_ln_s='ln -s'
15718 # ... but there are two gotchas:
15719 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15720 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15721 # In both cases, we have to default to `cp -p'.
15722 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinf15320b2004-06-03 03:38:44 +000015723 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +000015724elif ln conf$$.file conf$$ 2>/dev/null; then
15725 as_ln_s=ln
15726else
15727 as_ln_s='cp -p'
15728fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015729rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15730rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000015731
15732if mkdir -p . 2>/dev/null; then
15733 as_mkdir_p=:
15734else
Lev Walkin8e8b5482004-06-17 23:42:48 +000015735 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000015736 as_mkdir_p=false
15737fi
15738
Lev Walkin27fd0b62007-08-27 23:57:45 +000015739# Find out whether ``test -x'' works. Don't use a zero-byte file, as
15740# systems may use methods other than mode bits to determine executability.
15741cat >conf$$.file <<_ASEOF
15742#! /bin/sh
15743exit 0
15744_ASEOF
15745chmod +x conf$$.file
15746if test -x conf$$.file >/dev/null 2>&1; then
15747 as_executable_p="test -x"
15748else
15749 as_executable_p=:
15750fi
15751rm -f conf$$.file
Lev Walkinf15320b2004-06-03 03:38:44 +000015752
15753# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000015754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000015755
15756# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000015757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000015758
15759
Lev Walkinf15320b2004-06-03 03:38:44 +000015760exec 6>&1
15761
Lev Walkin27fd0b62007-08-27 23:57:45 +000015762# Save the log message, to keep $[0] and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000015763# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000015764# values after options handling.
15765ac_log="
Lev Walkinf15320b2004-06-03 03:38:44 +000015766This file was extended by $as_me, which was
Lev Walkin27fd0b62007-08-27 23:57:45 +000015767generated by GNU Autoconf 2.60. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000015768
15769 CONFIG_FILES = $CONFIG_FILES
15770 CONFIG_HEADERS = $CONFIG_HEADERS
15771 CONFIG_LINKS = $CONFIG_LINKS
15772 CONFIG_COMMANDS = $CONFIG_COMMANDS
15773 $ $0 $@
15774
Lev Walkin27fd0b62007-08-27 23:57:45 +000015775on `(hostname || uname -n) 2>/dev/null | sed 1q`
15776"
15777
Lev Walkinf15320b2004-06-03 03:38:44 +000015778_ACEOF
15779
Lev Walkin27fd0b62007-08-27 23:57:45 +000015780cat >>$CONFIG_STATUS <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015781# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015782config_files="$ac_config_files"
15783config_headers="$ac_config_headers"
15784config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000015785
Lev Walkin27fd0b62007-08-27 23:57:45 +000015786_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015787
15788cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015789ac_cs_usage="\
15790\`$as_me' instantiates files from templates according to the
15791current configuration.
15792
15793Usage: $0 [OPTIONS] [FILE]...
15794
15795 -h, --help print this help, then exit
15796 -V, --version print version number, then exit
15797 -q, --quiet do not print progress messages
15798 -d, --debug don't remove temporary files
15799 --recheck update $as_me by reconfiguring in the same conditions
15800 --file=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000015801 instantiate the configuration file FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000015802 --header=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000015803 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000015804
15805Configuration files:
15806$config_files
15807
15808Configuration headers:
15809$config_headers
15810
15811Configuration commands:
15812$config_commands
15813
15814Report bugs to <bug-autoconf@gnu.org>."
Lev Walkinf15320b2004-06-03 03:38:44 +000015815
Lev Walkin27fd0b62007-08-27 23:57:45 +000015816_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015817cat >>$CONFIG_STATUS <<_ACEOF
15818ac_cs_version="\\
15819config.status
Lev Walkin27fd0b62007-08-27 23:57:45 +000015820configured by $0, generated by GNU Autoconf 2.60,
15821 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000015822
Lev Walkin27fd0b62007-08-27 23:57:45 +000015823Copyright (C) 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000015824This config.status script is free software; the Free Software Foundation
15825gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000015826
15827ac_pwd='$ac_pwd'
15828srcdir='$srcdir'
15829INSTALL='$INSTALL'
Lev Walkinf15320b2004-06-03 03:38:44 +000015830_ACEOF
15831
15832cat >>$CONFIG_STATUS <<\_ACEOF
15833# If no file are specified by the user, then we need to provide default
15834# value. By we need to know if files were specified by the user.
15835ac_need_defaults=:
15836while test $# != 0
15837do
15838 case $1 in
15839 --*=*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000015840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000015842 ac_shift=:
15843 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000015844 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000015845 ac_option=$1
15846 ac_optarg=$2
15847 ac_shift=shift
15848 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015849 esac
15850
15851 case $ac_option in
15852 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000015853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15854 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000015855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15856 echo "$ac_cs_version"; exit ;;
15857 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000015858 debug=: ;;
15859 --file | --fil | --fi | --f )
15860 $ac_shift
15861 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15862 ac_need_defaults=false;;
15863 --header | --heade | --head | --hea )
15864 $ac_shift
15865 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15866 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000015867 --he | --h)
15868 # Conflict between --help and --header
15869 { echo "$as_me: error: ambiguous option: $1
15870Try \`$0 --help' for more information." >&2
15871 { (exit 1); exit 1; }; };;
15872 --help | --hel | -h )
15873 echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15875 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15876 ac_cs_silent=: ;;
15877
15878 # This is an error.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015879 -*) { echo "$as_me: error: unrecognized option: $1
15880Try \`$0 --help' for more information." >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000015881 { (exit 1); exit 1; }; } ;;
15882
Lev Walkin27fd0b62007-08-27 23:57:45 +000015883 *) ac_config_targets="$ac_config_targets $1"
15884 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015885
15886 esac
15887 shift
15888done
15889
15890ac_configure_extra_args=
15891
15892if $ac_cs_silent; then
15893 exec 6>/dev/null
15894 ac_configure_extra_args="$ac_configure_extra_args --silent"
15895fi
15896
15897_ACEOF
15898cat >>$CONFIG_STATUS <<_ACEOF
15899if \$ac_cs_recheck; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000015900 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15901 CONFIG_SHELL=$SHELL
15902 export CONFIG_SHELL
15903 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinf15320b2004-06-03 03:38:44 +000015904fi
15905
15906_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000015907cat >>$CONFIG_STATUS <<\_ACEOF
15908exec 5>>config.log
15909{
15910 echo
15911 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15912## Running $as_me. ##
15913_ASBOX
15914 echo "$ac_log"
15915} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000015916
Lev Walkin27fd0b62007-08-27 23:57:45 +000015917_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015918cat >>$CONFIG_STATUS <<_ACEOF
15919#
Lev Walkin27fd0b62007-08-27 23:57:45 +000015920# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000015921#
Lev Walkin8e8b5482004-06-17 23:42:48 +000015922AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000015923
Lev Walkin4da95cf2010-10-16 02:46:32 -070015924
15925# The HP-UX ksh and POSIX shell print the target directory to stdout
15926# if CDPATH is set.
15927(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15928
15929sed_quote_subst='$sed_quote_subst'
15930double_quote_subst='$double_quote_subst'
15931delay_variable_subst='$delay_variable_subst'
15932macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15933macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15934enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15935enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15936pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15937enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15938SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15939ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15940host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15941host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15942host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15943build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15944build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15945build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15946SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15947Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15948GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15949EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15950FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15951LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15952NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15953LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15954max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15955ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15956exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15957lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15958lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15959lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15960lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15961lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15962reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15963reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15964OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15965deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15966file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15967file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15968want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15969DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15970sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15971AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15972AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15973archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15974STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15975RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15976old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15977old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15978old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15979lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15980CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15981CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15982compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15983GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15984lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15985lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15986lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15987lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15988nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15989lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15990objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15991MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15992lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15993lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15994lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15995lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15996lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15997need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15998MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15999DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16000NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16001LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16002OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16003OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16004libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16005shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16006extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16007archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16008enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16009export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16010whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16011compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16012old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16013old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16014archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16015archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16016module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16017module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16018with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16019allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16020no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16021hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16022hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16023hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16024hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16025hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16026hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16027hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16028hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16029inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16030link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16031always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16032export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16033exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16034include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16035prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16036postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16037file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16038variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16039need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16040need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16041version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16042runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16043shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16044shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16045libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16046library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16047soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16048install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16049postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16050postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16051finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16052finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16053hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16054sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16055sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16056hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16057enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16058enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16059enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16060old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16061striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16062
16063LTCC='$LTCC'
16064LTCFLAGS='$LTCFLAGS'
16065compiler='$compiler_DEFAULT'
16066
16067# A function that is used when there is no print builtin or printf.
16068func_fallback_echo ()
16069{
16070 eval 'cat <<_LTECHO_EOF
16071\$1
16072_LTECHO_EOF'
16073}
16074
16075# Quote evaled strings.
16076for var in SHELL \
16077ECHO \
16078SED \
16079GREP \
16080EGREP \
16081FGREP \
16082LD \
16083NM \
16084LN_S \
16085lt_SP2NL \
16086lt_NL2SP \
16087reload_flag \
16088OBJDUMP \
16089deplibs_check_method \
16090file_magic_cmd \
16091file_magic_glob \
16092want_nocaseglob \
16093DLLTOOL \
16094sharedlib_from_linklib_cmd \
16095AR \
16096AR_FLAGS \
16097archiver_list_spec \
16098STRIP \
16099RANLIB \
16100CC \
16101CFLAGS \
16102compiler \
16103lt_cv_sys_global_symbol_pipe \
16104lt_cv_sys_global_symbol_to_cdecl \
16105lt_cv_sys_global_symbol_to_c_name_address \
16106lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16107nm_file_list_spec \
16108lt_prog_compiler_no_builtin_flag \
16109lt_prog_compiler_pic \
16110lt_prog_compiler_wl \
16111lt_prog_compiler_static \
16112lt_cv_prog_compiler_c_o \
16113need_locks \
16114MANIFEST_TOOL \
16115DSYMUTIL \
16116NMEDIT \
16117LIPO \
16118OTOOL \
16119OTOOL64 \
16120shrext_cmds \
16121export_dynamic_flag_spec \
16122whole_archive_flag_spec \
16123compiler_needs_object \
16124with_gnu_ld \
16125allow_undefined_flag \
16126no_undefined_flag \
16127hardcode_libdir_flag_spec \
16128hardcode_libdir_flag_spec_ld \
16129hardcode_libdir_separator \
16130exclude_expsyms \
16131include_expsyms \
16132file_list_spec \
16133variables_saved_for_relink \
16134libname_spec \
16135library_names_spec \
16136soname_spec \
16137install_override_mode \
16138finish_eval \
16139old_striplib \
16140striplib; do
16141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16142 *[\\\\\\\`\\"\\\$]*)
16143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16144 ;;
16145 *)
16146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16147 ;;
16148 esac
16149done
16150
16151# Double-quote double-evaled strings.
16152for var in reload_cmds \
16153old_postinstall_cmds \
16154old_postuninstall_cmds \
16155old_archive_cmds \
16156extract_expsyms_cmds \
16157old_archive_from_new_cmds \
16158old_archive_from_expsyms_cmds \
16159archive_cmds \
16160archive_expsym_cmds \
16161module_cmds \
16162module_expsym_cmds \
16163export_symbols_cmds \
16164prelink_cmds \
16165postlink_cmds \
16166postinstall_cmds \
16167postuninstall_cmds \
16168finish_cmds \
16169sys_lib_search_path_spec \
16170sys_lib_dlsearch_path_spec; do
16171 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16172 *[\\\\\\\`\\"\\\$]*)
16173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16174 ;;
16175 *)
16176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16177 ;;
16178 esac
16179done
16180
16181ac_aux_dir='$ac_aux_dir'
16182xsi_shell='$xsi_shell'
16183lt_shell_append='$lt_shell_append'
16184
16185# See if we are running on zsh, and set the options which allow our
16186# commands through without removal of \ escapes INIT.
16187if test -n "\${ZSH_VERSION+set}" ; then
16188 setopt NO_GLOB_SUBST
16189fi
16190
16191
16192 PACKAGE='$PACKAGE'
16193 VERSION='$VERSION'
16194 TIMESTAMP='$TIMESTAMP'
16195 RM='$RM'
16196 ofile='$ofile'
16197
16198
16199
16200
Lev Walkinf15320b2004-06-03 03:38:44 +000016201_ACEOF
16202
Lev Walkinf15320b2004-06-03 03:38:44 +000016203cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000016204
16205# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000016206for ac_config_target in $ac_config_targets
16207do
Lev Walkin27fd0b62007-08-27 23:57:45 +000016208 case $ac_config_target in
16209 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070016210 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000016211 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16212 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
16213 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
16214 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
16215 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
16216 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
16217 "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;;
16218 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
16219 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
16220 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
16221 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16222 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16223 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
16224 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16225 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
16226 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16227
Lev Walkinf15320b2004-06-03 03:38:44 +000016228 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16229echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16230 { (exit 1); exit 1; }; };;
16231 esac
16232done
16233
Lev Walkin27fd0b62007-08-27 23:57:45 +000016234
Lev Walkinf15320b2004-06-03 03:38:44 +000016235# If the user did not use the arguments to specify the items to instantiate,
16236# then the envvar interface is used. Set only those that are not.
16237# We use the long form for the default assignment because of an extremely
16238# bizarre bug on SunOS 4.1.3.
16239if $ac_need_defaults; then
16240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16243fi
16244
16245# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000016246# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000016247# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000016248# Hook for its removal unless debugging.
16249# Note that there is a small window in which the directory will not be cleaned:
16250# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000016251$debug ||
16252{
Lev Walkin27fd0b62007-08-27 23:57:45 +000016253 tmp=
16254 trap 'exit_status=$?
16255 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16256' 0
Lev Walkinf15320b2004-06-03 03:38:44 +000016257 trap '{ (exit 1); exit 1; }' 1 2 13 15
16258}
Lev Walkinf15320b2004-06-03 03:38:44 +000016259# Create a (secure) tmp directory for tmp files.
16260
16261{
Lev Walkin27fd0b62007-08-27 23:57:45 +000016262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinf15320b2004-06-03 03:38:44 +000016263 test -n "$tmp" && test -d "$tmp"
16264} ||
16265{
Lev Walkin27fd0b62007-08-27 23:57:45 +000016266 tmp=./conf$$-$RANDOM
16267 (umask 077 && mkdir "$tmp")
Lev Walkinf15320b2004-06-03 03:38:44 +000016268} ||
16269{
16270 echo "$me: cannot create a temporary directory in ." >&2
16271 { (exit 1); exit 1; }
16272}
16273
Lev Walkinf15320b2004-06-03 03:38:44 +000016274#
Lev Walkin27fd0b62007-08-27 23:57:45 +000016275# Set up the sed scripts for CONFIG_FILES section.
Lev Walkinf15320b2004-06-03 03:38:44 +000016276#
16277
16278# No need to generate the scripts if there are no CONFIG_FILES.
16279# This happens for instance when ./config.status config.h
Lev Walkin27fd0b62007-08-27 23:57:45 +000016280if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000016281
16282_ACEOF
16283
Lev Walkin27fd0b62007-08-27 23:57:45 +000016284
16285
16286ac_delim='%!_!# '
16287for ac_last_try in false false false false false :; do
16288 cat >conf$$subs.sed <<_ACEOF
16289SHELL!$SHELL$ac_delim
16290PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16291PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16292PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16293PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16294PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16295PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16296exec_prefix!$exec_prefix$ac_delim
16297prefix!$prefix$ac_delim
16298program_transform_name!$program_transform_name$ac_delim
16299bindir!$bindir$ac_delim
16300sbindir!$sbindir$ac_delim
16301libexecdir!$libexecdir$ac_delim
16302datarootdir!$datarootdir$ac_delim
16303datadir!$datadir$ac_delim
16304sysconfdir!$sysconfdir$ac_delim
16305sharedstatedir!$sharedstatedir$ac_delim
16306localstatedir!$localstatedir$ac_delim
16307includedir!$includedir$ac_delim
16308oldincludedir!$oldincludedir$ac_delim
16309docdir!$docdir$ac_delim
16310infodir!$infodir$ac_delim
16311htmldir!$htmldir$ac_delim
16312dvidir!$dvidir$ac_delim
16313pdfdir!$pdfdir$ac_delim
16314psdir!$psdir$ac_delim
16315libdir!$libdir$ac_delim
16316localedir!$localedir$ac_delim
16317mandir!$mandir$ac_delim
16318DEFS!$DEFS$ac_delim
16319ECHO_C!$ECHO_C$ac_delim
16320ECHO_N!$ECHO_N$ac_delim
16321ECHO_T!$ECHO_T$ac_delim
16322LIBS!$LIBS$ac_delim
16323build_alias!$build_alias$ac_delim
16324host_alias!$host_alias$ac_delim
16325target_alias!$target_alias$ac_delim
16326build!$build$ac_delim
16327build_cpu!$build_cpu$ac_delim
16328build_vendor!$build_vendor$ac_delim
16329build_os!$build_os$ac_delim
16330host!$host$ac_delim
16331host_cpu!$host_cpu$ac_delim
16332host_vendor!$host_vendor$ac_delim
16333host_os!$host_os$ac_delim
16334target!$target$ac_delim
16335target_cpu!$target_cpu$ac_delim
16336target_vendor!$target_vendor$ac_delim
16337target_os!$target_os$ac_delim
16338INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16339INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16340INSTALL_DATA!$INSTALL_DATA$ac_delim
16341CYGPATH_W!$CYGPATH_W$ac_delim
16342PACKAGE!$PACKAGE$ac_delim
16343VERSION!$VERSION$ac_delim
16344ACLOCAL!$ACLOCAL$ac_delim
16345AUTOCONF!$AUTOCONF$ac_delim
16346AUTOMAKE!$AUTOMAKE$ac_delim
16347AUTOHEADER!$AUTOHEADER$ac_delim
16348MAKEINFO!$MAKEINFO$ac_delim
16349install_sh!$install_sh$ac_delim
16350STRIP!$STRIP$ac_delim
16351INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16352mkdir_p!$mkdir_p$ac_delim
16353AWK!$AWK$ac_delim
16354SET_MAKE!$SET_MAKE$ac_delim
16355am__leading_dot!$am__leading_dot$ac_delim
16356AMTAR!$AMTAR$ac_delim
16357am__tar!$am__tar$ac_delim
16358am__untar!$am__untar$ac_delim
16359MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16360MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16361MAINT!$MAINT$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070016362LIBTOOL!$LIBTOOL$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000016363CC!$CC$ac_delim
16364CFLAGS!$CFLAGS$ac_delim
16365LDFLAGS!$LDFLAGS$ac_delim
16366CPPFLAGS!$CPPFLAGS$ac_delim
16367ac_ct_CC!$ac_ct_CC$ac_delim
16368EXEEXT!$EXEEXT$ac_delim
16369OBJEXT!$OBJEXT$ac_delim
16370DEPDIR!$DEPDIR$ac_delim
16371am__include!$am__include$ac_delim
16372am__quote!$am__quote$ac_delim
16373AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16374AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16375AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16376CCDEPMODE!$CCDEPMODE$ac_delim
16377am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16378am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070016379SED!$SED$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000016380GREP!$GREP$ac_delim
16381EGREP!$EGREP$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070016382FGREP!$FGREP$ac_delim
16383LD!$LD$ac_delim
16384DUMPBIN!$DUMPBIN$ac_delim
16385ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000016386_ACEOF
16387
16388 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16389 break
16390 elif $ac_last_try; then
16391 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16392echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16393 { (exit 1); exit 1; }; }
16394 else
16395 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000016396 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000016397done
16398
16399ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16400if test -n "$ac_eof"; then
16401 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16402 ac_eof=`expr $ac_eof + 1`
16403fi
16404
16405cat >>$CONFIG_STATUS <<_ACEOF
16406cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16408_ACEOF
16409sed '
16410s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16411s/^/s,@/; s/!/@,|#_!!_#|/
16412:n
16413t n
16414s/'"$ac_delim"'$/,g/; t
16415s/$/\\/; p
16416N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16417' >>$CONFIG_STATUS <conf$$subs.sed
16418rm -f conf$$subs.sed
16419cat >>$CONFIG_STATUS <<_ACEOF
16420CEOF$ac_eof
16421_ACEOF
16422
16423
16424ac_delim='%!_!# '
16425for ac_last_try in false false false false false :; do
16426 cat >conf$$subs.sed <<_ACEOF
Lev Walkin4da95cf2010-10-16 02:46:32 -070016427NM!$NM$ac_delim
16428LN_S!$LN_S$ac_delim
16429OBJDUMP!$OBJDUMP$ac_delim
16430DLLTOOL!$DLLTOOL$ac_delim
16431AR!$AR$ac_delim
16432ac_ct_AR!$ac_ct_AR$ac_delim
16433RANLIB!$RANLIB$ac_delim
16434MANIFEST_TOOL!$MANIFEST_TOOL$ac_delim
16435DSYMUTIL!$DSYMUTIL$ac_delim
16436NMEDIT!$NMEDIT$ac_delim
16437LIPO!$LIPO$ac_delim
16438OTOOL!$OTOOL$ac_delim
16439OTOOL64!$OTOOL64$ac_delim
16440CPP!$CPP$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000016441CONFIGURE_DEPENDS!$CONFIGURE_DEPENDS$ac_delim
16442YACC!$YACC$ac_delim
16443YFLAGS!$YFLAGS$ac_delim
16444LEX!$LEX$ac_delim
16445LEXLIB!$LEXLIB$ac_delim
16446LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
16447ADD_CFLAGS!$ADD_CFLAGS$ac_delim
16448LIBOBJS!$LIBOBJS$ac_delim
16449LTLIBOBJS!$LTLIBOBJS$ac_delim
16450_ACEOF
16451
Lev Walkin4da95cf2010-10-16 02:46:32 -070016452 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000016453 break
16454 elif $ac_last_try; then
16455 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16456echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16457 { (exit 1); exit 1; }; }
16458 else
16459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16460 fi
16461done
16462
16463ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16464if test -n "$ac_eof"; then
16465 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16466 ac_eof=`expr $ac_eof + 1`
16467fi
16468
16469cat >>$CONFIG_STATUS <<_ACEOF
16470cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16471/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16472_ACEOF
16473sed '
16474s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16475s/^/s,@/; s/!/@,|#_!!_#|/
16476:n
16477t n
16478s/'"$ac_delim"'$/,g/; t
16479s/$/\\/; p
16480N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16481' >>$CONFIG_STATUS <conf$$subs.sed
16482rm -f conf$$subs.sed
16483cat >>$CONFIG_STATUS <<_ACEOF
16484:end
16485s/|#_!!_#|//g
16486CEOF$ac_eof
16487_ACEOF
16488
16489
16490# VPATH may cause trouble with some makes, so we remove $(srcdir),
16491# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16492# trailing colons and then remove the whole line if VPATH becomes empty
16493# (actually we leave an empty line to preserve line numbers).
16494if test "x$srcdir" = x.; then
16495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16496s/:*\$(srcdir):*/:/
16497s/:*\${srcdir}:*/:/
16498s/:*@srcdir@:*/:/
16499s/^\([^=]*=[ ]*\):*/\1/
16500s/:*$//
16501s/^[^=]*=[ ]*$//
16502}'
16503fi
16504
16505cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000016506fi # test -n "$CONFIG_FILES"
16507
Lev Walkin27fd0b62007-08-27 23:57:45 +000016508
16509for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16510do
16511 case $ac_tag in
16512 :[FHLC]) ac_mode=$ac_tag; continue;;
16513 esac
16514 case $ac_mode$ac_tag in
16515 :[FHL]*:*);;
16516 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16517echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16518 { (exit 1); exit 1; }; };;
16519 :[FH]-) ac_tag=-:-;;
16520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16521 esac
16522 ac_save_IFS=$IFS
16523 IFS=:
16524 set x $ac_tag
16525 IFS=$ac_save_IFS
16526 shift
16527 ac_file=$1
16528 shift
16529
16530 case $ac_mode in
16531 :L) ac_source=$1;;
16532 :[FH])
16533 ac_file_inputs=
16534 for ac_f
16535 do
16536 case $ac_f in
16537 -) ac_f="$tmp/stdin";;
16538 *) # Look for the file first in the build tree, then in the source tree
16539 # (if the path is not absolute). The absolute path cannot be DOS-style,
16540 # because $ac_f cannot contain `:'.
16541 test -f "$ac_f" ||
16542 case $ac_f in
16543 [\\/$]*) false;;
16544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16545 esac ||
16546 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16547echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16548 { (exit 1); exit 1; }; };;
16549 esac
16550 ac_file_inputs="$ac_file_inputs $ac_f"
16551 done
16552
16553 # Let's still pretend it is `configure' which instantiates (i.e., don't
16554 # use $as_me), people would be surprised to read:
16555 # /* config.h. Generated by config.status. */
16556 configure_input="Generated from "`IFS=:
16557 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16558 if test x"$ac_file" != x-; then
16559 configure_input="$ac_file. $configure_input"
16560 { echo "$as_me:$LINENO: creating $ac_file" >&5
16561echo "$as_me: creating $ac_file" >&6;}
16562 fi
16563
16564 case $ac_tag in
16565 *:-:* | *:-) cat >"$tmp/stdin";;
16566 esac
16567 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000016568 esac
16569
Lev Walkin27fd0b62007-08-27 23:57:45 +000016570 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000016571$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000016572 X"$ac_file" : 'X\(//\)[^/]' \| \
16573 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000016574 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000016575echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000016576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16577 s//\1/
16578 q
16579 }
16580 /^X\(\/\/\)[^/].*/{
16581 s//\1/
16582 q
16583 }
16584 /^X\(\/\/\)$/{
16585 s//\1/
16586 q
16587 }
16588 /^X\(\/\).*/{
16589 s//\1/
16590 q
16591 }
16592 s/.*/./; q'`
16593 { as_dir="$ac_dir"
16594 case $as_dir in #(
16595 -*) as_dir=./$as_dir;;
16596 esac
16597 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkinf15320b2004-06-03 03:38:44 +000016598 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000016599 while :; do
16600 case $as_dir in #(
16601 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16602 *) as_qdir=$as_dir;;
16603 esac
16604 as_dirs="'$as_qdir' $as_dirs"
16605 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000016606$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000016607 X"$as_dir" : 'X\(//\)[^/]' \| \
16608 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000016609 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000016610echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000016611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16612 s//\1/
16613 q
16614 }
16615 /^X\(\/\/\)[^/].*/{
16616 s//\1/
16617 q
16618 }
16619 /^X\(\/\/\)$/{
16620 s//\1/
16621 q
16622 }
16623 /^X\(\/\).*/{
16624 s//\1/
16625 q
16626 }
16627 s/.*/./; q'`
16628 test -d "$as_dir" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000016629 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000016630 test -z "$as_dirs" || eval "mkdir $as_dirs"
16631 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16632echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000016633 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000016634 ac_builddir=.
16635
Lev Walkin27fd0b62007-08-27 23:57:45 +000016636case "$ac_dir" in
16637.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16638*)
Lev Walkinf15320b2004-06-03 03:38:44 +000016639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000016640 # A ".." for each directory in $ac_dir_suffix.
16641 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16642 case $ac_top_builddir_sub in
16643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16645 esac ;;
16646esac
16647ac_abs_top_builddir=$ac_pwd
16648ac_abs_builddir=$ac_pwd$ac_dir_suffix
16649# for backward compatibility:
16650ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000016651
16652case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000016653 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000016654 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000016655 ac_top_srcdir=$ac_top_builddir_sub
16656 ac_abs_top_srcdir=$ac_pwd ;;
16657 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000016658 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000016659 ac_top_srcdir=$srcdir
16660 ac_abs_top_srcdir=$srcdir ;;
16661 *) # Relative name.
16662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16663 ac_top_srcdir=$ac_top_build_prefix$srcdir
16664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000016665esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000016666ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000016667
Lev Walkinf15320b2004-06-03 03:38:44 +000016668
Lev Walkin27fd0b62007-08-27 23:57:45 +000016669 case $ac_mode in
16670 :F)
16671 #
16672 # CONFIG_FILE
16673 #
Lev Walkinf15320b2004-06-03 03:38:44 +000016674
16675 case $INSTALL in
16676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000016677 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000016678 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000016679_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000016680
16681cat >>$CONFIG_STATUS <<\_ACEOF
16682# If the template does not know about datarootdir, expand it.
16683# FIXME: This hack should be removed a few years after 2.60.
16684ac_datarootdir_hack=; ac_datarootdir_seen=
16685
16686case `sed -n '/datarootdir/ {
16687 p
16688 q
16689}
16690/@datadir@/p
16691/@docdir@/p
16692/@infodir@/p
16693/@localedir@/p
16694/@mandir@/p
16695' $ac_file_inputs` in
16696*datarootdir*) ac_datarootdir_seen=yes;;
16697*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16698 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16699echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16700_ACEOF
16701cat >>$CONFIG_STATUS <<_ACEOF
16702 ac_datarootdir_hack='
16703 s&@datadir@&$datadir&g
16704 s&@docdir@&$docdir&g
16705 s&@infodir@&$infodir&g
16706 s&@localedir@&$localedir&g
16707 s&@mandir@&$mandir&g
16708 s&\\\${datarootdir}&$datarootdir&g' ;;
16709esac
16710_ACEOF
16711
16712# Neutralize VPATH when `$srcdir' = `.'.
16713# Shell code in configure.ac might set extrasub.
16714# FIXME: do we really want to maintain this feature?
Lev Walkinf15320b2004-06-03 03:38:44 +000016715cat >>$CONFIG_STATUS <<_ACEOF
16716 sed "$ac_vpsub
16717$extrasub
16718_ACEOF
16719cat >>$CONFIG_STATUS <<\_ACEOF
16720:t
16721/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkin27fd0b62007-08-27 23:57:45 +000016722s&@configure_input@&$configure_input&;t t
16723s&@top_builddir@&$ac_top_builddir_sub&;t t
16724s&@srcdir@&$ac_srcdir&;t t
16725s&@abs_srcdir@&$ac_abs_srcdir&;t t
16726s&@top_srcdir@&$ac_top_srcdir&;t t
16727s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16728s&@builddir@&$ac_builddir&;t t
16729s&@abs_builddir@&$ac_abs_builddir&;t t
16730s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16731s&@INSTALL@&$ac_INSTALL&;t t
16732$ac_datarootdir_hack
16733" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Lev Walkinf15320b2004-06-03 03:38:44 +000016734
Lev Walkin27fd0b62007-08-27 23:57:45 +000016735test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16736 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16738 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16739which seems to be undefined. Please make sure it is defined." >&5
16740echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16741which seems to be undefined. Please make sure it is defined." >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000016742
Lev Walkin27fd0b62007-08-27 23:57:45 +000016743 rm -f "$tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000016744 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +000016745 -) cat "$tmp/out"; rm -f "$tmp/out";;
16746 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Lev Walkinf15320b2004-06-03 03:38:44 +000016747 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000016748 ;;
16749 :H)
16750 #
16751 # CONFIG_HEADER
16752 #
Lev Walkinf15320b2004-06-03 03:38:44 +000016753_ACEOF
16754
Lev Walkin27fd0b62007-08-27 23:57:45 +000016755# Transform confdefs.h into a sed script `conftest.defines', that
16756# substitutes the proper values into config.h.in to produce config.h.
16757rm -f conftest.defines conftest.tail
16758# First, append a space to every undef/define line, to ease matching.
16759echo 's/$/ /' >conftest.defines
16760# Then, protect against being on the right side of a sed subst, or in
16761# an unquoted here document, in config.status. If some macros were
16762# called several times there might be several #defines for the same
16763# symbol, which is useless. But do not sort them, since the last
16764# AC_DEFINE must be honored.
16765ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16766# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16767# NAME is the cpp macro being defined, VALUE is the value it is being given.
16768# PARAMS is the parameter list in the macro definition--in most cases, it's
16769# just an empty string.
16770ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16771ac_dB='\\)[ (].*,\\1define\\2'
16772ac_dC=' '
16773ac_dD=' ,'
Lev Walkinf15320b2004-06-03 03:38:44 +000016774
Lev Walkin27fd0b62007-08-27 23:57:45 +000016775uniq confdefs.h |
16776 sed -n '
16777 t rset
16778 :rset
16779 s/^[ ]*#[ ]*define[ ][ ]*//
16780 t ok
16781 d
16782 :ok
16783 s/[\\&,]/\\&/g
16784 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16785 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16786 ' >>conftest.defines
16787
16788# Remove the space that was appended to ease matching.
16789# Then replace #undef with comments. This is necessary, for
Lev Walkinf15320b2004-06-03 03:38:44 +000016790# example, in the case of _POSIX_SOURCE, which is predefined and required
16791# on some systems where configure will not decide to define it.
Lev Walkin27fd0b62007-08-27 23:57:45 +000016792# (The regexp can be short, since the line contains either #define or #undef.)
16793echo 's/ $//
16794s,^[ #]*u.*,/* & */,' >>conftest.defines
Lev Walkinf15320b2004-06-03 03:38:44 +000016795
Lev Walkin27fd0b62007-08-27 23:57:45 +000016796# Break up conftest.defines:
16797ac_max_sed_lines=50
16798
16799# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16800# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16801# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16802# et cetera.
16803ac_in='$ac_file_inputs'
16804ac_out='"$tmp/out1"'
16805ac_nxt='"$tmp/out2"'
16806
16807while :
Lev Walkinf15320b2004-06-03 03:38:44 +000016808do
Lev Walkin27fd0b62007-08-27 23:57:45 +000016809 # Write a here document:
16810 cat >>$CONFIG_STATUS <<_ACEOF
16811 # First, check the format of the line:
16812 cat >"\$tmp/defines.sed" <<\\CEOF
16813/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16814/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16815b
16816:def
16817_ACEOF
16818 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000016819 echo 'CEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000016820 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16821 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16822 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16823 grep . conftest.tail >/dev/null || break
Lev Walkinf15320b2004-06-03 03:38:44 +000016824 rm -f conftest.defines
16825 mv conftest.tail conftest.defines
16826done
Lev Walkin27fd0b62007-08-27 23:57:45 +000016827rm -f conftest.defines conftest.tail
Lev Walkinf15320b2004-06-03 03:38:44 +000016828
Lev Walkin27fd0b62007-08-27 23:57:45 +000016829echo "ac_result=$ac_in" >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000016830cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000016831 if test x"$ac_file" != x-; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000016832 echo "/* $configure_input */" >"$tmp/config.h"
16833 cat "$ac_result" >>"$tmp/config.h"
16834 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000016835 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16836echo "$as_me: $ac_file is unchanged" >&6;}
16837 else
Lev Walkinf15320b2004-06-03 03:38:44 +000016838 rm -f $ac_file
Lev Walkin27fd0b62007-08-27 23:57:45 +000016839 mv "$tmp/config.h" $ac_file
Lev Walkinf15320b2004-06-03 03:38:44 +000016840 fi
16841 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000016842 echo "/* $configure_input */"
16843 cat "$ac_result"
Lev Walkinf15320b2004-06-03 03:38:44 +000016844 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000016845 rm -f "$tmp/out12"
Lev Walkin8e8b5482004-06-17 23:42:48 +000016846# Compute $ac_file's index in $config_headers.
16847_am_stamp_count=1
16848for _am_header in $config_headers :; do
16849 case $_am_header in
16850 $ac_file | $ac_file:* )
16851 break ;;
16852 * )
16853 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000016854 esac
16855done
Lev Walkin27fd0b62007-08-27 23:57:45 +000016856echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016857$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16858 X$ac_file : 'X\(//\)[^/]' \| \
16859 X$ac_file : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000016860 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016861echo X$ac_file |
Lev Walkin27fd0b62007-08-27 23:57:45 +000016862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16863 s//\1/
16864 q
16865 }
16866 /^X\(\/\/\)[^/].*/{
16867 s//\1/
16868 q
16869 }
16870 /^X\(\/\/\)$/{
16871 s//\1/
16872 q
16873 }
16874 /^X\(\/\).*/{
16875 s//\1/
16876 q
16877 }
16878 s/.*/./; q'`/stamp-h$_am_stamp_count
16879 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000016880
Lev Walkin27fd0b62007-08-27 23:57:45 +000016881 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16882echo "$as_me: executing $ac_file commands" >&6;}
16883 ;;
16884 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000016885
16886
Lev Walkin27fd0b62007-08-27 23:57:45 +000016887 case $ac_file$ac_mode in
16888 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000016889 # Strip MF so we end up with the name of the file.
16890 mf=`echo "$mf" | sed -e 's/:.*$//'`
16891 # Check whether this is an Automake generated Makefile or not.
16892 # We used to match only the files named `Makefile.in', but
16893 # some people rename them; so instead we look at the file content.
16894 # Grep'ing the first line is not enough: some people post-process
16895 # each Makefile.in and add a new line on top of each file to say so.
16896 # So let's grep whole file.
16897 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000016898 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016899$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16900 X"$mf" : 'X\(//\)[^/]' \| \
16901 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000016902 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016903echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000016904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16905 s//\1/
16906 q
16907 }
16908 /^X\(\/\/\)[^/].*/{
16909 s//\1/
16910 q
16911 }
16912 /^X\(\/\/\)$/{
16913 s//\1/
16914 q
16915 }
16916 /^X\(\/\).*/{
16917 s//\1/
16918 q
16919 }
16920 s/.*/./; q'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000016921 else
16922 continue
16923 fi
Lev Walkinc46b7cb2006-08-18 02:27:55 +000016924 # Extract the definition of DEPDIR, am__include, and am__quote
16925 # from the Makefile without running `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +000016926 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000016927 test -z "$DEPDIR" && continue
Lev Walkinc46b7cb2006-08-18 02:27:55 +000016928 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16929 test -z "am__include" && continue
16930 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000016931 # When using ansi2knr, U may be empty or an underscore; expand it
Lev Walkin8e8b5482004-06-17 23:42:48 +000016932 U=`sed -n 's/^U = //p' < "$mf"`
Lev Walkinc46b7cb2006-08-18 02:27:55 +000016933 # Find all dependency output files, they are included files with
16934 # $(DEPDIR) in their names. We invoke sed twice because it is the
16935 # simplest approach to changing $(DEPDIR) to its actual value in the
16936 # expansion.
16937 for file in `sed -n "
16938 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Lev Walkinf15320b2004-06-03 03:38:44 +000016939 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16940 # Make sure the directory exists.
16941 test -f "$dirpart/$file" && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +000016942 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016943$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16944 X"$file" : 'X\(//\)[^/]' \| \
16945 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000016946 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016947echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000016948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16949 s//\1/
16950 q
16951 }
16952 /^X\(\/\/\)[^/].*/{
16953 s//\1/
16954 q
16955 }
16956 /^X\(\/\/\)$/{
16957 s//\1/
16958 q
16959 }
16960 /^X\(\/\).*/{
16961 s//\1/
16962 q
16963 }
16964 s/.*/./; q'`
16965 { as_dir=$dirpart/$fdir
16966 case $as_dir in #(
16967 -*) as_dir=./$as_dir;;
16968 esac
16969 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkin8e8b5482004-06-17 23:42:48 +000016970 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000016971 while :; do
16972 case $as_dir in #(
16973 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16974 *) as_qdir=$as_dir;;
16975 esac
16976 as_dirs="'$as_qdir' $as_dirs"
16977 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016978$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16979 X"$as_dir" : 'X\(//\)[^/]' \| \
16980 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000016981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000016982echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000016983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16984 s//\1/
16985 q
16986 }
16987 /^X\(\/\/\)[^/].*/{
16988 s//\1/
16989 q
16990 }
16991 /^X\(\/\/\)$/{
16992 s//\1/
16993 q
16994 }
16995 /^X\(\/\).*/{
16996 s//\1/
16997 q
16998 }
16999 s/.*/./; q'`
17000 test -d "$as_dir" && break
Lev Walkin8e8b5482004-06-17 23:42:48 +000017001 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000017002 test -z "$as_dirs" || eval "mkdir $as_dirs"
17003 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17004echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000017005 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000017006 # echo "creating $dirpart/$file"
17007 echo '# dummy' > "$dirpart/$file"
17008 done
17009done
17010 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070017011 "libtool":C)
17012
17013 # See if we are running on zsh, and set the options which allow our
17014 # commands through without removal of \ escapes.
17015 if test -n "${ZSH_VERSION+set}" ; then
17016 setopt NO_GLOB_SUBST
17017 fi
17018
17019 cfgfile="${ofile}T"
17020 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17021 $RM "$cfgfile"
17022
17023 cat <<_LT_EOF >> "$cfgfile"
17024#! $SHELL
17025
17026# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17027# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17028# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17029# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17030#
17031# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17032# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17033# Inc.
17034# Written by Gordon Matzigkeit, 1996
17035#
17036# This file is part of GNU Libtool.
17037#
17038# GNU Libtool is free software; you can redistribute it and/or
17039# modify it under the terms of the GNU General Public License as
17040# published by the Free Software Foundation; either version 2 of
17041# the License, or (at your option) any later version.
17042#
17043# As a special exception to the GNU General Public License,
17044# if you distribute this file as part of a program or library that
17045# is built using GNU Libtool, you may include this file under the
17046# same distribution terms that you use for the rest of that program.
17047#
17048# GNU Libtool is distributed in the hope that it will be useful,
17049# but WITHOUT ANY WARRANTY; without even the implied warranty of
17050# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17051# GNU General Public License for more details.
17052#
17053# You should have received a copy of the GNU General Public License
17054# along with GNU Libtool; see the file COPYING. If not, a copy
17055# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17056# obtained by writing to the Free Software Foundation, Inc.,
17057# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17058
17059
17060# The names of the tagged configurations supported by this script.
17061available_tags=""
17062
17063# ### BEGIN LIBTOOL CONFIG
17064
17065# Which release of libtool.m4 was used?
17066macro_version=$macro_version
17067macro_revision=$macro_revision
17068
17069# Whether or not to build shared libraries.
17070build_libtool_libs=$enable_shared
17071
17072# Whether or not to build static libraries.
17073build_old_libs=$enable_static
17074
17075# What type of objects to build.
17076pic_mode=$pic_mode
17077
17078# Whether or not to optimize for fast installation.
17079fast_install=$enable_fast_install
17080
17081# Shell to use when invoking shell scripts.
17082SHELL=$lt_SHELL
17083
17084# An echo program that protects backslashes.
17085ECHO=$lt_ECHO
17086
17087# The host system.
17088host_alias=$host_alias
17089host=$host
17090host_os=$host_os
17091
17092# The build system.
17093build_alias=$build_alias
17094build=$build
17095build_os=$build_os
17096
17097# A sed program that does not truncate output.
17098SED=$lt_SED
17099
17100# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17101Xsed="\$SED -e 1s/^X//"
17102
17103# A grep program that handles long lines.
17104GREP=$lt_GREP
17105
17106# An ERE matcher.
17107EGREP=$lt_EGREP
17108
17109# A literal string matcher.
17110FGREP=$lt_FGREP
17111
17112# A BSD- or MS-compatible name lister.
17113NM=$lt_NM
17114
17115# Whether we need soft or hard links.
17116LN_S=$lt_LN_S
17117
17118# What is the maximum length of a command?
17119max_cmd_len=$max_cmd_len
17120
17121# Object file suffix (normally "o").
17122objext=$ac_objext
17123
17124# Executable file suffix (normally "").
17125exeext=$exeext
17126
17127# whether the shell understands "unset".
17128lt_unset=$lt_unset
17129
17130# turn spaces into newlines.
17131SP2NL=$lt_lt_SP2NL
17132
17133# turn newlines into spaces.
17134NL2SP=$lt_lt_NL2SP
17135
17136# convert \$build file names to \$host format.
17137to_host_file_cmd=$lt_cv_to_host_file_cmd
17138
17139# convert \$build files to toolchain format.
17140to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17141
17142# An object symbol dumper.
17143OBJDUMP=$lt_OBJDUMP
17144
17145# Method to check whether dependent libraries are shared objects.
17146deplibs_check_method=$lt_deplibs_check_method
17147
17148# Command to use when deplibs_check_method = "file_magic".
17149file_magic_cmd=$lt_file_magic_cmd
17150
17151# How to find potential files when deplibs_check_method = "file_magic".
17152file_magic_glob=$lt_file_magic_glob
17153
17154# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17155want_nocaseglob=$lt_want_nocaseglob
17156
17157# DLL creation program.
17158DLLTOOL=$lt_DLLTOOL
17159
17160# Command to associate shared and link libraries.
17161sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17162
17163# The archiver.
17164AR=$lt_AR
17165
17166# Flags to create an archive.
17167AR_FLAGS=$lt_AR_FLAGS
17168
17169# How to feed a file listing to the archiver.
17170archiver_list_spec=$lt_archiver_list_spec
17171
17172# A symbol stripping program.
17173STRIP=$lt_STRIP
17174
17175# Commands used to install an old-style archive.
17176RANLIB=$lt_RANLIB
17177old_postinstall_cmds=$lt_old_postinstall_cmds
17178old_postuninstall_cmds=$lt_old_postuninstall_cmds
17179
17180# Whether to use a lock for old archive extraction.
17181lock_old_archive_extraction=$lock_old_archive_extraction
17182
17183# A C compiler.
17184LTCC=$lt_CC
17185
17186# LTCC compiler flags.
17187LTCFLAGS=$lt_CFLAGS
17188
17189# Take the output of nm and produce a listing of raw symbols and C names.
17190global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17191
17192# Transform the output of nm in a proper C declaration.
17193global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17194
17195# Transform the output of nm in a C name address pair.
17196global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17197
17198# Transform the output of nm in a C name address pair when lib prefix is needed.
17199global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17200
17201# Specify filename containing input files for \$NM.
17202nm_file_list_spec=$lt_nm_file_list_spec
17203
17204# The root where to search for dependent libraries,and in which our libraries should be installed.
17205lt_sysroot=$lt_sysroot
17206
17207# The name of the directory that contains temporary libtool files.
17208objdir=$objdir
17209
17210# Used to examine libraries when file_magic_cmd begins with "file".
17211MAGIC_CMD=$MAGIC_CMD
17212
17213# Must we lock files when doing compilation?
17214need_locks=$lt_need_locks
17215
17216# Manifest tool.
17217MANIFEST_TOOL=$lt_MANIFEST_TOOL
17218
17219# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17220DSYMUTIL=$lt_DSYMUTIL
17221
17222# Tool to change global to local symbols on Mac OS X.
17223NMEDIT=$lt_NMEDIT
17224
17225# Tool to manipulate fat objects and archives on Mac OS X.
17226LIPO=$lt_LIPO
17227
17228# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17229OTOOL=$lt_OTOOL
17230
17231# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17232OTOOL64=$lt_OTOOL64
17233
17234# Old archive suffix (normally "a").
17235libext=$libext
17236
17237# Shared library suffix (normally ".so").
17238shrext_cmds=$lt_shrext_cmds
17239
17240# The commands to extract the exported symbol list from a shared archive.
17241extract_expsyms_cmds=$lt_extract_expsyms_cmds
17242
17243# Variables whose values should be saved in libtool wrapper scripts and
17244# restored at link time.
17245variables_saved_for_relink=$lt_variables_saved_for_relink
17246
17247# Do we need the "lib" prefix for modules?
17248need_lib_prefix=$need_lib_prefix
17249
17250# Do we need a version for libraries?
17251need_version=$need_version
17252
17253# Library versioning type.
17254version_type=$version_type
17255
17256# Shared library runtime path variable.
17257runpath_var=$runpath_var
17258
17259# Shared library path variable.
17260shlibpath_var=$shlibpath_var
17261
17262# Is shlibpath searched before the hard-coded library search path?
17263shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17264
17265# Format of library name prefix.
17266libname_spec=$lt_libname_spec
17267
17268# List of archive names. First name is the real one, the rest are links.
17269# The last name is the one that the linker finds with -lNAME
17270library_names_spec=$lt_library_names_spec
17271
17272# The coded name of the library, if different from the real name.
17273soname_spec=$lt_soname_spec
17274
17275# Permission mode override for installation of shared libraries.
17276install_override_mode=$lt_install_override_mode
17277
17278# Command to use after installation of a shared archive.
17279postinstall_cmds=$lt_postinstall_cmds
17280
17281# Command to use after uninstallation of a shared archive.
17282postuninstall_cmds=$lt_postuninstall_cmds
17283
17284# Commands used to finish a libtool library installation in a directory.
17285finish_cmds=$lt_finish_cmds
17286
17287# As "finish_cmds", except a single script fragment to be evaled but
17288# not shown.
17289finish_eval=$lt_finish_eval
17290
17291# Whether we should hardcode library paths into libraries.
17292hardcode_into_libs=$hardcode_into_libs
17293
17294# Compile-time system search path for libraries.
17295sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17296
17297# Run-time system search path for libraries.
17298sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17299
17300# Whether dlopen is supported.
17301dlopen_support=$enable_dlopen
17302
17303# Whether dlopen of programs is supported.
17304dlopen_self=$enable_dlopen_self
17305
17306# Whether dlopen of statically linked programs is supported.
17307dlopen_self_static=$enable_dlopen_self_static
17308
17309# Commands to strip libraries.
17310old_striplib=$lt_old_striplib
17311striplib=$lt_striplib
17312
17313
17314# The linker used to build libraries.
17315LD=$lt_LD
17316
17317# How to create reloadable object files.
17318reload_flag=$lt_reload_flag
17319reload_cmds=$lt_reload_cmds
17320
17321# Commands used to build an old-style archive.
17322old_archive_cmds=$lt_old_archive_cmds
17323
17324# A language specific compiler.
17325CC=$lt_compiler
17326
17327# Is the compiler the GNU compiler?
17328with_gcc=$GCC
17329
17330# Compiler flag to turn off builtin functions.
17331no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17332
17333# Additional compiler flags for building library objects.
17334pic_flag=$lt_lt_prog_compiler_pic
17335
17336# How to pass a linker flag through the compiler.
17337wl=$lt_lt_prog_compiler_wl
17338
17339# Compiler flag to prevent dynamic linking.
17340link_static_flag=$lt_lt_prog_compiler_static
17341
17342# Does compiler simultaneously support -c and -o options?
17343compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17344
17345# Whether or not to add -lc for building shared libraries.
17346build_libtool_need_lc=$archive_cmds_need_lc
17347
17348# Whether or not to disallow shared libs when runtime libs are static.
17349allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17350
17351# Compiler flag to allow reflexive dlopens.
17352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17353
17354# Compiler flag to generate shared objects directly from archives.
17355whole_archive_flag_spec=$lt_whole_archive_flag_spec
17356
17357# Whether the compiler copes with passing no objects directly.
17358compiler_needs_object=$lt_compiler_needs_object
17359
17360# Create an old-style archive from a shared archive.
17361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17362
17363# Create a temporary old-style archive to link instead of a shared archive.
17364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17365
17366# Commands used to build a shared archive.
17367archive_cmds=$lt_archive_cmds
17368archive_expsym_cmds=$lt_archive_expsym_cmds
17369
17370# Commands used to build a loadable module if different from building
17371# a shared archive.
17372module_cmds=$lt_module_cmds
17373module_expsym_cmds=$lt_module_expsym_cmds
17374
17375# Whether we are building with GNU ld or not.
17376with_gnu_ld=$lt_with_gnu_ld
17377
17378# Flag that allows shared libraries with undefined symbols to be built.
17379allow_undefined_flag=$lt_allow_undefined_flag
17380
17381# Flag that enforces no undefined symbols.
17382no_undefined_flag=$lt_no_undefined_flag
17383
17384# Flag to hardcode \$libdir into a binary during linking.
17385# This must work even if \$libdir does not exist
17386hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17387
17388# If ld is used when linking, flag to hardcode \$libdir into a binary
17389# during linking. This must work even if \$libdir does not exist.
17390hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17391
17392# Whether we need a single "-rpath" flag with a separated argument.
17393hardcode_libdir_separator=$lt_hardcode_libdir_separator
17394
17395# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17396# DIR into the resulting binary.
17397hardcode_direct=$hardcode_direct
17398
17399# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17400# DIR into the resulting binary and the resulting library dependency is
17401# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17402# library is relocated.
17403hardcode_direct_absolute=$hardcode_direct_absolute
17404
17405# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17406# into the resulting binary.
17407hardcode_minus_L=$hardcode_minus_L
17408
17409# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17410# into the resulting binary.
17411hardcode_shlibpath_var=$hardcode_shlibpath_var
17412
17413# Set to "yes" if building a shared library automatically hardcodes DIR
17414# into the library and all subsequent libraries and executables linked
17415# against it.
17416hardcode_automatic=$hardcode_automatic
17417
17418# Set to yes if linker adds runtime paths of dependent libraries
17419# to runtime path list.
17420inherit_rpath=$inherit_rpath
17421
17422# Whether libtool must link a program against all its dependency libraries.
17423link_all_deplibs=$link_all_deplibs
17424
17425# Set to "yes" if exported symbols are required.
17426always_export_symbols=$always_export_symbols
17427
17428# The commands to list exported symbols.
17429export_symbols_cmds=$lt_export_symbols_cmds
17430
17431# Symbols that should not be listed in the preloaded symbols.
17432exclude_expsyms=$lt_exclude_expsyms
17433
17434# Symbols that must always be exported.
17435include_expsyms=$lt_include_expsyms
17436
17437# Commands necessary for linking programs (against libraries) with templates.
17438prelink_cmds=$lt_prelink_cmds
17439
17440# Commands necessary for finishing linking programs.
17441postlink_cmds=$lt_postlink_cmds
17442
17443# Specify filename containing input files.
17444file_list_spec=$lt_file_list_spec
17445
17446# How to hardcode a shared library path into an executable.
17447hardcode_action=$hardcode_action
17448
17449# ### END LIBTOOL CONFIG
17450
17451_LT_EOF
17452
17453 case $host_os in
17454 aix3*)
17455 cat <<\_LT_EOF >> "$cfgfile"
17456# AIX sometimes has problems with the GCC collect2 program. For some
17457# reason, if we set the COLLECT_NAMES environment variable, the problems
17458# vanish in a puff of smoke.
17459if test "X${COLLECT_NAMES+set}" != Xset; then
17460 COLLECT_NAMES=
17461 export COLLECT_NAMES
17462fi
17463_LT_EOF
17464 ;;
17465 esac
17466
17467
17468ltmain="$ac_aux_dir/ltmain.sh"
17469
17470
17471 # We use sed instead of cat because bash on DJGPP gets confused if
17472 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17473 # text mode, it properly converts lines to CR/LF. This bash problem
17474 # is reportedly fixed, but why not run on old versions too?
17475 sed '$q' "$ltmain" >> "$cfgfile" \
17476 || (rm -f "$cfgfile"; exit 1)
17477
17478 if test x"$xsi_shell" = xyes; then
17479 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17480func_dirname ()\
17481{\
17482\ case ${1} in\
17483\ */*) func_dirname_result="${1%/*}${2}" ;;\
17484\ * ) func_dirname_result="${3}" ;;\
17485\ esac\
17486} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17487 && mv -f "$cfgfile.tmp" "$cfgfile" \
17488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17489test 0 -eq $? || _lt_function_replace_fail=:
17490
17491
17492 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17493func_basename ()\
17494{\
17495\ func_basename_result="${1##*/}"\
17496} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17497 && mv -f "$cfgfile.tmp" "$cfgfile" \
17498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17499test 0 -eq $? || _lt_function_replace_fail=:
17500
17501
17502 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17503func_dirname_and_basename ()\
17504{\
17505\ case ${1} in\
17506\ */*) func_dirname_result="${1%/*}${2}" ;;\
17507\ * ) func_dirname_result="${3}" ;;\
17508\ esac\
17509\ func_basename_result="${1##*/}"\
17510} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17511 && mv -f "$cfgfile.tmp" "$cfgfile" \
17512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17513test 0 -eq $? || _lt_function_replace_fail=:
17514
17515
17516 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17517func_stripname ()\
17518{\
17519\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17520\ # positional parameters, so assign one to ordinary parameter first.\
17521\ func_stripname_result=${3}\
17522\ func_stripname_result=${func_stripname_result#"${1}"}\
17523\ func_stripname_result=${func_stripname_result%"${2}"}\
17524} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17525 && mv -f "$cfgfile.tmp" "$cfgfile" \
17526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17527test 0 -eq $? || _lt_function_replace_fail=:
17528
17529
17530 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17531func_split_long_opt ()\
17532{\
17533\ func_split_long_opt_name=${1%%=*}\
17534\ func_split_long_opt_arg=${1#*=}\
17535} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17536 && mv -f "$cfgfile.tmp" "$cfgfile" \
17537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17538test 0 -eq $? || _lt_function_replace_fail=:
17539
17540
17541 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17542func_split_short_opt ()\
17543{\
17544\ func_split_short_opt_arg=${1#??}\
17545\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17546} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17547 && mv -f "$cfgfile.tmp" "$cfgfile" \
17548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17549test 0 -eq $? || _lt_function_replace_fail=:
17550
17551
17552 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17553func_lo2o ()\
17554{\
17555\ case ${1} in\
17556\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17557\ *) func_lo2o_result=${1} ;;\
17558\ esac\
17559} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17560 && mv -f "$cfgfile.tmp" "$cfgfile" \
17561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17562test 0 -eq $? || _lt_function_replace_fail=:
17563
17564
17565 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17566func_xform ()\
17567{\
17568 func_xform_result=${1%.*}.lo\
17569} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17570 && mv -f "$cfgfile.tmp" "$cfgfile" \
17571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17572test 0 -eq $? || _lt_function_replace_fail=:
17573
17574
17575 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17576func_arith ()\
17577{\
17578 func_arith_result=$(( $* ))\
17579} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17580 && mv -f "$cfgfile.tmp" "$cfgfile" \
17581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17582test 0 -eq $? || _lt_function_replace_fail=:
17583
17584
17585 sed -e '/^func_len ()$/,/^} # func_len /c\
17586func_len ()\
17587{\
17588 func_len_result=${#1}\
17589} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17590 && mv -f "$cfgfile.tmp" "$cfgfile" \
17591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17592test 0 -eq $? || _lt_function_replace_fail=:
17593
17594fi
17595
17596if test x"$lt_shell_append" = xyes; then
17597 sed -e '/^func_append ()$/,/^} # func_append /c\
17598func_append ()\
17599{\
17600 eval "${1}+=\\${2}"\
17601} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17602 && mv -f "$cfgfile.tmp" "$cfgfile" \
17603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17604test 0 -eq $? || _lt_function_replace_fail=:
17605
17606
17607 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17608func_append_quoted ()\
17609{\
17610\ func_quote_for_eval "${2}"\
17611\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17612} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17613 && mv -f "$cfgfile.tmp" "$cfgfile" \
17614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17615test 0 -eq $? || _lt_function_replace_fail=:
17616
17617
17618 # Save a `func_append' function call where possible by direct use of '+='
17619 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17620 && mv -f "$cfgfile.tmp" "$cfgfile" \
17621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17622 test 0 -eq $? || _lt_function_replace_fail=:
17623else
17624 # Save a `func_append' function call even when '+=' is not available
17625 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17626 && mv -f "$cfgfile.tmp" "$cfgfile" \
17627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17628 test 0 -eq $? || _lt_function_replace_fail=:
17629fi
17630
17631if test x"$_lt_function_replace_fail" = x":"; then
17632 { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17633echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17634fi
17635
17636
17637 mv -f "$cfgfile" "$ofile" ||
17638 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17639 chmod +x "$ofile"
17640
17641 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000017642
Lev Walkin27fd0b62007-08-27 23:57:45 +000017643 esac
17644done # for ac_tag
17645
Lev Walkinf15320b2004-06-03 03:38:44 +000017646
17647{ (exit 0); exit 0; }
17648_ACEOF
17649chmod +x $CONFIG_STATUS
17650ac_clean_files=$ac_clean_files_save
17651
17652
17653# configure is writing to config.log, and then calls config.status.
17654# config.status does its own redirection, appending to config.log.
17655# Unfortunately, on DOS this fails, as config.log is still kept open
17656# by configure, so config.status won't be able to write to it; its
17657# output is simply discarded. So we exec the FD to /dev/null,
17658# effectively closing config.log, so it can be properly (re)opened and
17659# appended to by config.status. When coming back to configure, we
17660# need to make the FD available again.
17661if test "$no_create" != yes; then
17662 ac_cs_success=:
17663 ac_config_status_args=
17664 test "$silent" = yes &&
17665 ac_config_status_args="$ac_config_status_args --quiet"
17666 exec 5>/dev/null
17667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17668 exec 5>>config.log
17669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17670 # would make configure fail if this is the last instruction.
17671 $ac_cs_success || { (exit 1); exit 1; }
17672fi
17673
17674