blob: baf3908552730803780bcf9cc7882ecfbc34a76a [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkine7c4b962010-11-09 03:10:36 -08003# Generated by GNU Autoconf 2.61 for asn1c 0.9.23.
4#
5# Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00006#
Lev Walkin27fd0b62007-08-27 23:57:45 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Lev Walkin4c776e52010-11-08 02:07:31 -080015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000023 setopt NO_GLOB_SUBST
24else
Lev Walkin4c776e52010-11-08 02:07:31 -080025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
Lev Walkinf15320b2004-06-03 03:38:44 +000029fi
Lev Walkin4c776e52010-11-08 02:07:31 -080030
31
Lev Walkinf15320b2004-06-03 03:38:44 +000032
Lev Walkinf15320b2004-06-03 03:38:44 +000033
Lev Walkin27fd0b62007-08-27 23:57:45 +000034# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000035# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
Lev Walkin27fd0b62007-08-27 23:57:45 +000055# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
Lev Walkinf15320b2004-06-03 03:38:44 +000061
Lev Walkin27fd0b62007-08-27 23:57:45 +000062
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000076for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
Lev Walkin27fd0b62007-08-27 23:57:45 +000082IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000083
Lev Walkin27fd0b62007-08-27 23:57:45 +000084 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Lev Walkinf15320b2004-06-03 03:38:44 +0000114 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
Lev Walkinf15320b2004-06-03 03:38:44 +0000223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4c776e52010-11-08 02:07:31 -0800224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +0000225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000228 case $as_dir in
Lev Walkinf15320b2004-06-03 03:38:44 +0000229 /*)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +0000242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
Lev Walkin4c776e52010-11-08 02:07:31 -0800250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
Lev Walkin27fd0b62007-08-27 23:57:45 +0000254fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800255
Lev Walkin27fd0b62007-08-27 23:57:45 +0000256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +0000263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
Lev Walkin4c776e52010-11-08 02:07:31 -0800271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
Lev Walkin27fd0b62007-08-27 23:57:45 +0000275fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800276
Lev Walkin27fd0b62007-08-27 23:57:45 +0000277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
Lev Walkinf15320b2004-06-03 03:38:44 +0000330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +0000332 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +0000429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +0000432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +0000437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000444 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000449 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000452 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000453 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000454 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000455 chmod +x "$as_me.lineno" ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000463 # Exit status is that of the last command.
464 exit
465}
466
467
Lev Walkin27fd0b62007-08-27 23:57:45 +0000468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000483esac
484
Lev Walkin27fd0b62007-08-27 23:57:45 +0000485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +0000487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000507 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +0000508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000519 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000520 as_mkdir_p=false
521fi
522
Lev Walkin4c776e52010-11-08 02:07:31 -0800523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000525else
Lev Walkin4c776e52010-11-08 02:07:31 -0800526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000543fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800544as_executable_p=$as_test_x
Lev Walkinf15320b2004-06-03 03:38:44 +0000545
546# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000548
549# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000551
552
Lev Walkin4c776e52010-11-08 02:07:31 -0800553
554
555# Check that we are running under the correct shell.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000556SHELL=${CONFIG_SHELL-/bin/sh}
557
Lev Walkin4c776e52010-11-08 02:07:31 -0800558case X$lt_ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565ECHO=${lt_ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $ECHO works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<_LT_EOF
584$*
585_LT_EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$lt_ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
619 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 ECHO="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$ECHO" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 ECHO='print -r'
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 ECHO='printf %s\n'
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673 then
674 break
675 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 ECHO=echo
686 fi
687 fi
688 fi
689 fi
690 fi
691fi
692
693# Copy echo and quote the copy suitably for passing to libtool from
694# the Makefile, instead of quoting the original, which is used later.
695lt_ECHO=$ECHO
696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698fi
699
700
701
Lev Walkin8e8b5482004-06-17 23:42:48 +0000702
Lev Walkin27fd0b62007-08-27 23:57:45 +0000703exec 7<&0 </dev/null 6>&1
704
Lev Walkinf15320b2004-06-03 03:38:44 +0000705# Name of the host.
706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707# so uname gets run too.
708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
Lev Walkinf15320b2004-06-03 03:38:44 +0000710#
711# Initializations.
712#
713ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000714ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000715ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000716LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000717cross_compiling=no
718subdirs=
719MFLAGS=
720MAKEFLAGS=
721SHELL=${CONFIG_SHELL-/bin/sh}
722
Lev Walkinf15320b2004-06-03 03:38:44 +0000723# Identity of this package.
Lev Walkine7c4b962010-11-09 03:10:36 -0800724PACKAGE_NAME='asn1c'
725PACKAGE_TARNAME='asn1c'
726PACKAGE_VERSION='0.9.23'
727PACKAGE_STRING='asn1c 0.9.23'
728PACKAGE_BUGREPORT='vlm@lionet.info'
Lev Walkinf15320b2004-06-03 03:38:44 +0000729
Lev Walkinf15320b2004-06-03 03:38:44 +0000730# Factoring default headers for most tests.
731ac_includes_default="\
732#include <stdio.h>
Lev Walkin4c776e52010-11-08 02:07:31 -0800733#ifdef HAVE_SYS_TYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000734# include <sys/types.h>
735#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800736#ifdef HAVE_SYS_STAT_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000737# include <sys/stat.h>
738#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800739#ifdef STDC_HEADERS
Lev Walkinf15320b2004-06-03 03:38:44 +0000740# include <stdlib.h>
741# include <stddef.h>
742#else
Lev Walkin4c776e52010-11-08 02:07:31 -0800743# ifdef HAVE_STDLIB_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000744# include <stdlib.h>
745# endif
746#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800747#ifdef HAVE_STRING_H
748# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000749# include <memory.h>
750# endif
751# include <string.h>
752#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800753#ifdef HAVE_STRINGS_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000754# include <strings.h>
755#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800756#ifdef HAVE_INTTYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000757# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000758#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800759#ifdef HAVE_STDINT_H
Lev Walkin27fd0b62007-08-27 23:57:45 +0000760# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000761#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800762#ifdef HAVE_UNISTD_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000763# include <unistd.h>
764#endif"
765
Lev Walkin27fd0b62007-08-27 23:57:45 +0000766ac_subst_vars='SHELL
767PATH_SEPARATOR
768PACKAGE_NAME
769PACKAGE_TARNAME
770PACKAGE_VERSION
771PACKAGE_STRING
772PACKAGE_BUGREPORT
773exec_prefix
774prefix
775program_transform_name
776bindir
777sbindir
778libexecdir
779datarootdir
780datadir
781sysconfdir
782sharedstatedir
783localstatedir
784includedir
785oldincludedir
786docdir
787infodir
788htmldir
789dvidir
790pdfdir
791psdir
792libdir
793localedir
794mandir
795DEFS
796ECHO_C
797ECHO_N
798ECHO_T
799LIBS
800build_alias
801host_alias
802target_alias
Lev Walkin27fd0b62007-08-27 23:57:45 +0000803INSTALL_PROGRAM
804INSTALL_SCRIPT
805INSTALL_DATA
Lev Walkin4c776e52010-11-08 02:07:31 -0800806am__isrc
Lev Walkin27fd0b62007-08-27 23:57:45 +0000807CYGPATH_W
808PACKAGE
809VERSION
810ACLOCAL
811AUTOCONF
812AUTOMAKE
813AUTOHEADER
814MAKEINFO
815install_sh
816STRIP
817INSTALL_STRIP_PROGRAM
818mkdir_p
819AWK
820SET_MAKE
821am__leading_dot
822AMTAR
823am__tar
824am__untar
Lev Walkin4da95cf2010-10-16 02:46:32 -0700825LIBTOOL
Lev Walkine7c4b962010-11-09 03:10:36 -0800826build
827build_cpu
828build_vendor
829build_os
830host
831host_cpu
832host_vendor
833host_os
Lev Walkin27fd0b62007-08-27 23:57:45 +0000834CC
835CFLAGS
836LDFLAGS
837CPPFLAGS
838ac_ct_CC
839EXEEXT
840OBJEXT
841DEPDIR
842am__include
843am__quote
844AMDEP_TRUE
845AMDEP_FALSE
846AMDEPBACKSLASH
847CCDEPMODE
848am__fastdepCC_TRUE
849am__fastdepCC_FALSE
Lev Walkin4da95cf2010-10-16 02:46:32 -0700850SED
Lev Walkin27fd0b62007-08-27 23:57:45 +0000851GREP
852EGREP
Lev Walkin4da95cf2010-10-16 02:46:32 -0700853FGREP
854LD
855DUMPBIN
856ac_ct_DUMPBIN
857NM
Lev Walkin27fd0b62007-08-27 23:57:45 +0000858LN_S
Lev Walkin27fd0b62007-08-27 23:57:45 +0000859AR
860RANLIB
Lev Walkin4c776e52010-11-08 02:07:31 -0800861lt_ECHO
Lev Walkin4da95cf2010-10-16 02:46:32 -0700862DSYMUTIL
863NMEDIT
864LIPO
865OTOOL
866OTOOL64
Lev Walkin27fd0b62007-08-27 23:57:45 +0000867CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000868YACC
869YFLAGS
870LEX
Lev Walkin27fd0b62007-08-27 23:57:45 +0000871LEX_OUTPUT_ROOT
Lev Walkin4c776e52010-11-08 02:07:31 -0800872LEXLIB
Lev Walkin27fd0b62007-08-27 23:57:45 +0000873ADD_CFLAGS
874LIBOBJS
875LTLIBOBJS'
Lev Walkinf15320b2004-06-03 03:38:44 +0000876ac_subst_files=''
Lev Walkin27fd0b62007-08-27 23:57:45 +0000877 ac_precious_vars='build_alias
878host_alias
879target_alias
880CC
881CFLAGS
882LDFLAGS
Lev Walkin4c776e52010-11-08 02:07:31 -0800883LIBS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000884CPPFLAGS
885CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000886YACC
887YFLAGS'
888
Lev Walkinf15320b2004-06-03 03:38:44 +0000889
890# Initialize some variables set by options.
891ac_init_help=
892ac_init_version=false
893# The variables have the same names as the options, with
894# dashes changed to underlines.
895cache_file=/dev/null
896exec_prefix=NONE
897no_create=
898no_recursion=
899prefix=NONE
900program_prefix=NONE
901program_suffix=NONE
902program_transform_name=s,x,x,
903silent=
904site=
905srcdir=
906verbose=
907x_includes=NONE
908x_libraries=NONE
909
910# Installation directory options.
911# These are left unexpanded so users can "make install exec_prefix=/foo"
912# and all the variables that are supposed to be based on exec_prefix
913# by default will actually change.
914# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000915# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000916bindir='${exec_prefix}/bin'
917sbindir='${exec_prefix}/sbin'
918libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000919datarootdir='${prefix}/share'
920datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000921sysconfdir='${prefix}/etc'
922sharedstatedir='${prefix}/com'
923localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000924includedir='${prefix}/include'
925oldincludedir='/usr/include'
Lev Walkine7c4b962010-11-09 03:10:36 -0800926docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000927infodir='${datarootdir}/info'
928htmldir='${docdir}'
929dvidir='${docdir}'
930pdfdir='${docdir}'
931psdir='${docdir}'
932libdir='${exec_prefix}/lib'
933localedir='${datarootdir}/locale'
934mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000935
936ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000937ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000938for ac_option
939do
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000942 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000943 ac_prev=
944 continue
945 fi
946
Lev Walkin27fd0b62007-08-27 23:57:45 +0000947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
Lev Walkin27fd0b62007-08-27 23:57:45 +0000954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
962
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
977
Lev Walkin27fd0b62007-08-27 23:57:45 +0000978 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000979 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000981 datadir=$ac_optarg ;;
982
Lev Walkin27fd0b62007-08-27 23:57:45 +0000983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
Lev Walkinf15320b2004-06-03 03:38:44 +0000990 -disable-* | --disable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -0800993 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +0000994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -0800996 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +0000997 eval enable_$ac_feature=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001008
1009 -enable-* | --enable-*)
1010 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -08001012 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08001015 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001016 eval enable_$ac_feature=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1037
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1042
Lev Walkin27fd0b62007-08-27 23:57:45 +00001043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
Lev Walkinf15320b2004-06-03 03:38:44 +00001049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1072
Lev Walkin27fd0b62007-08-27 23:57:45 +00001073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
Lev Walkinf15320b2004-06-03 03:38:44 +00001078 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001079 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +00001080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001083 localstatedir=$ac_optarg ;;
1084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1089
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1110
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1146
Lev Walkin27fd0b62007-08-27 23:57:45 +00001147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
Lev Walkinf15320b2004-06-03 03:38:44 +00001157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1166
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1177
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1182
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1187
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1194
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1199
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1202
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1205
1206 -with-* | --with-*)
1207 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -08001209 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08001212 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001213 eval with_$ac_package=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001214
1215 -without-* | --without-*)
1216 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -08001218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08001221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001222 eval with_$ac_package=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) { echo "$as_me: error: unrecognized option: $ac_option
1243Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001253 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 { echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1271fi
1272
Lev Walkin27fd0b62007-08-27 23:57:45 +00001273# Be sure to have absolute directory names.
1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001278do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001279 eval ac_val=\$$ac_var
Lev Walkinf15320b2004-06-03 03:38:44 +00001280 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001283 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001284 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001286done
1287
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
1294
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
1310
1311
Lev Walkin27fd0b62007-08-27 23:57:45 +00001312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 { echo "$as_me: error: Working directory cannot be determined" >&2
1316 { (exit 1); exit 1; }; }
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 { echo "$as_me: error: pwd does not report name of working directory" >&2
1319 { (exit 1); exit 1; }; }
1320
1321
Lev Walkinf15320b2004-06-03 03:38:44 +00001322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$0" ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001327$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001328 X"$0" : 'X\(//\)[^/]' \| \
1329 X"$0" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001331echo X"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001349 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001350 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001359 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001360fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001364 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001365 pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
Lev Walkinf15320b2004-06-03 03:38:44 +00001382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
Lev Walkine7c4b962010-11-09 03:10:36 -08001390\`configure' configures asn1c 0.9.23 to adapt to many kinds of systems.
Lev Walkinf15320b2004-06-03 03:38:44 +00001391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
Lev Walkinf15320b2004-06-03 03:38:44 +00001410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001412 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001414 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
Lev Walkinf15320b2004-06-03 03:38:44 +00001427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
Lev Walkine7c4b962010-11-09 03:10:36 -08001438 --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Lev Walkinf15320b2004-06-03 03:38:44 +00001455_ACEOF
1456fi
1457
1458if test -n "$ac_init_help"; then
Lev Walkine7c4b962010-11-09 03:10:36 -08001459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of asn1c 0.9.23:";;
1461 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001462 cat <<\_ACEOF
1463
1464Optional Features:
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001473 --disable-libtool-lock avoid locking (might break parallel builds)
Lev Walkinf15320b2004-06-03 03:38:44 +00001474 --enable-Werror abort compilation after any C compiler warning
1475
1476Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001479 --with-pic try to use only PIC/non-PIC objects [default=use
1480 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Lev Walkinf15320b2004-06-03 03:38:44 +00001482
1483Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
Lev Walkin4c776e52010-11-08 02:07:31 -08001488 LIBS libraries to pass to the linker, e.g. -l<library>
Lev Walkin27fd0b62007-08-27 23:57:45 +00001489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001491 CPP C preprocessor
Lev Walkin27fd0b62007-08-27 23:57:45 +00001492 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1493 the first program found out of: `bison -y', `byacc', `yacc'.
1494 YFLAGS The list of arguments that will be passed by default to $YACC.
1495 This script will default YFLAGS to the empty string to avoid a
1496 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001497
1498Use these variables to override the choices made by `configure' or to help
1499it to find libraries and programs with nonstandard names/locations.
1500
Lev Walkine7c4b962010-11-09 03:10:36 -08001501Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00001502_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001503ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001504fi
1505
1506if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00001509 test -d "$ac_dir" || continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001510 ac_builddir=.
1511
Lev Walkin27fd0b62007-08-27 23:57:45 +00001512case "$ac_dir" in
1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522esac
1523ac_abs_top_builddir=$ac_pwd
1524ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525# for backward compatibility:
1526ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001527
1528case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001529 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001530 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001534 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001541esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001543
Lev Walkin27fd0b62007-08-27 23:57:45 +00001544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001552 else
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001556 done
1557fi
1558
Lev Walkin27fd0b62007-08-27 23:57:45 +00001559test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001560if $ac_init_version; then
1561 cat <<\_ACEOF
Lev Walkine7c4b962010-11-09 03:10:36 -08001562asn1c configure 0.9.23
Lev Walkin4c776e52010-11-08 02:07:31 -08001563generated by GNU Autoconf 2.61
Lev Walkinf15320b2004-06-03 03:38:44 +00001564
Lev Walkin27fd0b62007-08-27 23:57:45 +00001565Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
1569_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001570 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001571fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001572cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001573This file contains any messages produced by compilers while
1574running configure, to aid debugging if configure makes a mistake.
1575
Lev Walkine7c4b962010-11-09 03:10:36 -08001576It was created by asn1c $as_me 0.9.23, which was
Lev Walkin4c776e52010-11-08 02:07:31 -08001577generated by GNU Autoconf 2.61. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001578
1579 $ $0 $@
1580
1581_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001582exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001583{
1584cat <<_ASUNAME
1585## --------- ##
1586## Platform. ##
1587## --------- ##
1588
1589hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594
1595/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1597
1598/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1599/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1600/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001601/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001602/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1603/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1604/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1605
1606_ASUNAME
1607
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611 IFS=$as_save_IFS
1612 test -z "$as_dir" && as_dir=.
1613 echo "PATH: $as_dir"
1614done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001615IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001616
1617} >&5
1618
1619cat >&5 <<_ACEOF
1620
1621
1622## ----------- ##
1623## Core tests. ##
1624## ----------- ##
1625
1626_ACEOF
1627
1628
1629# Keep a trace of the command line.
1630# Strip out --no-create and --no-recursion so they do not pile up.
1631# Strip out --silent because we don't want to record it for future runs.
1632# Also quote any args containing shell meta-characters.
1633# Make two passes to allow for proper duplicate-argument suppression.
1634ac_configure_args=
1635ac_configure_args0=
1636ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001637ac_must_keep_next=false
1638for ac_pass in 1 2
1639do
1640 for ac_arg
1641 do
1642 case $ac_arg in
1643 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645 | -silent | --silent | --silen | --sile | --sil)
1646 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001647 *\'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001648 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 esac
1650 case $ac_pass in
1651 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652 2)
1653 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001655 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001656 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001657 case $ac_arg in
1658 *=* | --config-cache | -C | -disable-* | --disable-* \
1659 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661 | -with-* | --with-* | -without-* | --without-* | --x)
1662 case "$ac_configure_args0 " in
1663 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 esac
1665 ;;
1666 -* ) ac_must_keep_next=true ;;
1667 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001668 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001669 ac_configure_args="$ac_configure_args '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001670 ;;
1671 esac
1672 done
1673done
1674$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676
1677# When interrupted or exit'd, cleanup temporary files, and complete
1678# config.log. We remove comments because anyway the quotes in there
1679# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001680# WARNING: Use '\'' to represent an apostrophe within the trap.
1681# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00001682trap 'exit_status=$?
1683 # Save into config.log some information that might help in debugging.
1684 {
1685 echo
1686
1687 cat <<\_ASBOX
1688## ---------------- ##
1689## Cache variables. ##
1690## ---------------- ##
1691_ASBOX
1692 echo
1693 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00001694(
1695 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696 eval ac_val=\$$ac_var
1697 case $ac_val in #(
1698 *${as_nl}*)
1699 case $ac_var in #(
1700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 esac
1703 case $ac_var in #(
1704 _ | IFS | as_nl) ;; #(
1705 *) $as_unset $ac_var ;;
1706 esac ;;
1707 esac
1708 done
Lev Walkinf15320b2004-06-03 03:38:44 +00001709 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00001712 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001713 "s/'\''/'\''\\\\'\'''\''/g;
1714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00001716 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00001717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001718 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001719 esac |
1720 sort
1721)
Lev Walkinf15320b2004-06-03 03:38:44 +00001722 echo
1723
1724 cat <<\_ASBOX
1725## ----------------- ##
1726## Output variables. ##
1727## ----------------- ##
1728_ASBOX
1729 echo
1730 for ac_var in $ac_subst_vars
1731 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001732 eval ac_val=\$$ac_var
1733 case $ac_val in
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 esac
1736 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001737 done | sort
1738 echo
1739
1740 if test -n "$ac_subst_files"; then
1741 cat <<\_ASBOX
Lev Walkin27fd0b62007-08-27 23:57:45 +00001742## ------------------- ##
1743## File substitutions. ##
1744## ------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00001745_ASBOX
1746 echo
1747 for ac_var in $ac_subst_files
1748 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001754 done | sort
1755 echo
1756 fi
1757
1758 if test -s confdefs.h; then
1759 cat <<\_ASBOX
1760## ----------- ##
1761## confdefs.h. ##
1762## ----------- ##
1763_ASBOX
1764 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00001765 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001766 echo
1767 fi
1768 test "$ac_signal" != 0 &&
1769 echo "$as_me: caught signal $ac_signal"
1770 echo "$as_me: exit $exit_status"
1771 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00001772 rm -f core *.core core.conftest.* &&
1773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001774 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00001775' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00001776for ac_signal in 1 2 13 15; do
1777 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1778done
1779ac_signal=0
1780
1781# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001782rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001783
1784# Predefined preprocessor variables.
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_NAME "$PACKAGE_NAME"
1788_ACEOF
1789
1790
1791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1793_ACEOF
1794
1795
1796cat >>confdefs.h <<_ACEOF
1797#define PACKAGE_VERSION "$PACKAGE_VERSION"
1798_ACEOF
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_STRING "$PACKAGE_STRING"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808_ACEOF
1809
1810
1811# Let the site file select an alternate cache file if it wants to.
1812# Prefer explicitly selected file to automatically selected ones.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001813if test -n "$CONFIG_SITE"; then
1814 set x "$CONFIG_SITE"
1815elif test "x$prefix" != xNONE; then
1816 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817else
1818 set x "$ac_default_prefix/share/config.site" \
1819 "$ac_default_prefix/etc/config.site"
Lev Walkinf15320b2004-06-03 03:38:44 +00001820fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001821shift
1822for ac_site_file
1823do
Lev Walkinf15320b2004-06-03 03:38:44 +00001824 if test -r "$ac_site_file"; then
1825 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826echo "$as_me: loading site script $ac_site_file" >&6;}
1827 sed 's/^/| /' "$ac_site_file" >&5
1828 . "$ac_site_file"
1829 fi
1830done
1831
1832if test -r "$cache_file"; then
1833 # Some versions of bash will fail to source /dev/null (special
1834 # files actually), so we avoid doing that.
1835 if test -f "$cache_file"; then
1836 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837echo "$as_me: loading cache $cache_file" >&6;}
1838 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001839 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00001841 esac
1842 fi
1843else
1844 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845echo "$as_me: creating cache $cache_file" >&6;}
1846 >$cache_file
1847fi
1848
1849# Check that the precious variables saved in the cache have kept the same
1850# value.
1851ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00001852for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00001853 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00001855 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00001857 case $ac_old_set,$ac_new_set in
1858 set,)
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1862 ,set)
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,);;
1867 *)
1868 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001869 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001870echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001871 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001872echo "$as_me: former value: $ac_old_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001873 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001874echo "$as_me: current value: $ac_new_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001875 ac_cache_corrupted=:
Lev Walkinf15320b2004-06-03 03:38:44 +00001876 fi;;
1877 esac
1878 # Pass precious variables to config.status.
1879 if test "$ac_new_set" = set; then
1880 case $ac_new_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001881 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001882 *) ac_arg=$ac_var=$ac_new_val ;;
1883 esac
1884 case " $ac_configure_args " in
1885 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1886 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1887 esac
1888 fi
1889done
1890if $ac_cache_corrupted; then
1891 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895 { (exit 1); exit 1; }; }
1896fi
1897
Lev Walkin27fd0b62007-08-27 23:57:45 +00001898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
Lev Walkine7c4b962010-11-09 03:10:36 -08001914
1915
1916
1917
1918
1919
1920
1921
Lev Walkinf15320b2004-06-03 03:38:44 +00001922ac_ext=c
1923ac_cpp='$CPP $CPPFLAGS'
1924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
Lev Walkine7c4b962010-11-09 03:10:36 -08001929am__api_version='1.10'
1930
Lev Walkinf15320b2004-06-03 03:38:44 +00001931ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00001932for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001937 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001941 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1945 fi
1946done
1947if test -z "$ac_aux_dir"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00001948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001950 { (exit 1); exit 1; }; }
1951fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001952
1953# These three variables are undocumented and unsupported,
1954# and are intended to be withdrawn in a future Autoconf release.
1955# They can cause serious problems if a builder's source tree is in a directory
1956# whose full name contains unusual characters.
1957ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1960
Lev Walkinf15320b2004-06-03 03:38:44 +00001961
Lev Walkinf15320b2004-06-03 03:38:44 +00001962# Find a good install program. We prefer a C program (faster),
1963# so one script is as good as another. But avoid the broken or
1964# incompatible versions:
1965# SysV /etc/install, /usr/sbin/install
1966# SunOS /usr/etc/install
1967# IRIX /sbin/install
1968# AIX /bin/install
1969# AmigaOS /C/install, which installs bootblocks on floppy discs
1970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00001973# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00001974# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001975{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001977if test -z "$INSTALL"; then
1978if test "${ac_cv_path_install+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1987case $as_dir/ in
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00001991 /usr/ucb/* ) ;;
1992 *)
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1995 # by default.
1996 for ac_prog in ginstall scoinst install; do
1997 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08001998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001999 if test $ac_prog = install &&
2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001 # AIX install. It has an incompatible calling convention.
2002 :
2003 elif test $ac_prog = install &&
2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # program-specific install script used by HP pwplus--don't use.
2006 :
2007 else
2008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009 break 3
2010 fi
2011 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002012 done
2013 done
2014 ;;
2015esac
2016done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002017IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002018
2019
2020fi
2021 if test "${ac_cv_path_install+set}" = set; then
2022 INSTALL=$ac_cv_path_install
2023 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002024 # As a last resort, use the slow shell script. Don't cache a
2025 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002026 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002027 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002028 INSTALL=$ac_install_sh
2029 fi
2030fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002031{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2032echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002033
2034# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035# It thinks the first close brace ends the variable substitution.
2036test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2037
2038test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2039
2040test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2041
Lev Walkin27fd0b62007-08-27 23:57:45 +00002042{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002044# Just in case
2045sleep 1
2046echo timestamp > conftest.file
2047# Do `set' in a subshell so we don't clobber the current shell's
2048# arguments. Must try -L first in case configure is actually a
2049# symlink; some systems play weird games with the mod time of symlinks
2050# (eg FreeBSD returns the mod time of the symlink's containing
2051# directory).
2052if (
2053 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054 if test "$*" = "X"; then
2055 # -L didn't work.
2056 set X `ls -t $srcdir/configure conftest.file`
2057 fi
2058 rm -f conftest.file
2059 if test "$*" != "X $srcdir/configure conftest.file" \
2060 && test "$*" != "X conftest.file $srcdir/configure"; then
2061
2062 # If neither matched, then we have a broken ls. This can happen
2063 # if, for instance, CONFIG_SHELL is bash and it inherits a
2064 # broken ls alias from the environment. This has actually
2065 # happened. Such a system could not be considered "sane".
2066 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2067alias in your environment" >&5
2068echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2069alias in your environment" >&2;}
2070 { (exit 1); exit 1; }; }
2071 fi
2072
2073 test "$2" = conftest.file
2074 )
2075then
2076 # Ok.
2077 :
2078else
2079 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080Check your system clock" >&5
2081echo "$as_me: error: newly created file is older than distributed files!
2082Check your system clock" >&2;}
2083 { (exit 1); exit 1; }; }
2084fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002085{ echo "$as_me:$LINENO: result: yes" >&5
2086echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002087test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002089# Use a double $ so make ignores it.
2090test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002092# Double any \ or $. echo might interpret backslashes.
2093# By default was `s,x,x', remove it if useless.
2094cat <<\_ACEOF >conftest.sed
2095s/[\\$]/&&/g;s/;s,x,x,$//
2096_ACEOF
2097program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002098rm -f conftest.sed
Lev Walkinf15320b2004-06-03 03:38:44 +00002099
Lev Walkinf15320b2004-06-03 03:38:44 +00002100# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002101am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002102
2103test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104# Use eval to expand $SHELL
2105if eval "$MISSING --run true"; then
2106 am_missing_run="$MISSING --run "
2107else
2108 am_missing_run=
Lev Walkin8e8b5482004-06-17 23:42:48 +00002109 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2111fi
2112
Lev Walkin4c776e52010-11-08 02:07:31 -08002113{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2114echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2115if test -z "$MKDIR_P"; then
2116 if test "${ac_cv_path_mkdir+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002118else
Lev Walkin4c776e52010-11-08 02:07:31 -08002119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2121do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_prog in mkdir gmkdir; do
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2128 'mkdir (GNU coreutils) '* | \
2129 'mkdir (coreutils) '* | \
2130 'mkdir (fileutils) '4.1*)
2131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2132 break 3;;
2133 esac
2134 done
2135 done
2136done
2137IFS=$as_save_IFS
2138
2139fi
2140
2141 if test "${ac_cv_path_mkdir+set}" = set; then
2142 MKDIR_P="$ac_cv_path_mkdir -p"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002143 else
Lev Walkin4c776e52010-11-08 02:07:31 -08002144 # As a last resort, use the slow shell script. Don't cache a
2145 # value for MKDIR_P within a source directory, because that will
2146 # break other packages using the cache if that directory is
2147 # removed, or if the value is a relative name.
2148 test -d ./--version && rmdir ./--version
2149 MKDIR_P="$ac_install_sh -d"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002150 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002151fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002152{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2153echo "${ECHO_T}$MKDIR_P" >&6; }
2154
2155mkdir_p="$MKDIR_P"
2156case $mkdir_p in
2157 [\\/$]* | ?:[\\/]*) ;;
2158 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2159esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002160
2161for ac_prog in gawk mawk nawk awk
2162do
2163 # Extract the first word of "$ac_prog", so it can be a program name with args.
2164set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002167if test "${ac_cv_prog_AWK+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170 if test -n "$AWK"; then
2171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2172else
2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174for as_dir in $PATH
2175do
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002180 ac_cv_prog_AWK="$ac_prog"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2183 fi
2184done
2185done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002186IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002187
2188fi
2189fi
2190AWK=$ac_cv_prog_AWK
2191if test -n "$AWK"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002192 { echo "$as_me:$LINENO: result: $AWK" >&5
2193echo "${ECHO_T}$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002194else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002195 { echo "$as_me:$LINENO: result: no" >&5
2196echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002197fi
2198
Lev Walkin27fd0b62007-08-27 23:57:45 +00002199
Lev Walkinf15320b2004-06-03 03:38:44 +00002200 test -n "$AWK" && break
2201done
2202
Lev Walkin27fd0b62007-08-27 23:57:45 +00002203{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2204echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2205set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2206if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002210SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002211all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002212 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002213_ACEOF
2214# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002215case `${MAKE-make} -f conftest.make 2>/dev/null` in
2216 *@@@%%%=?*=@@@%%%*)
2217 eval ac_cv_prog_make_${ac_make}_set=yes;;
2218 *)
2219 eval ac_cv_prog_make_${ac_make}_set=no;;
2220esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002221rm -f conftest.make
2222fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002223if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2224 { echo "$as_me:$LINENO: result: yes" >&5
2225echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002226 SET_MAKE=
2227else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002228 { echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002230 SET_MAKE="MAKE=${MAKE-make}"
2231fi
2232
Lev Walkin8e8b5482004-06-17 23:42:48 +00002233rm -rf .tst 2>/dev/null
2234mkdir .tst 2>/dev/null
2235if test -d .tst; then
2236 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002237else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002238 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002239fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002240rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002241
Lev Walkin4c776e52010-11-08 02:07:31 -08002242if test "`cd $srcdir && pwd`" != "`pwd`"; then
2243 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2244 # is not polluted with repeated "-I."
2245 am__isrc=' -I$(srcdir)'
2246 # test to see if srcdir already configured
2247 if test -f $srcdir/config.status; then
2248 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002249echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2250 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002251 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002252fi
2253
Lev Walkin8e8b5482004-06-17 23:42:48 +00002254# test whether we have cygpath
2255if test -z "$CYGPATH_W"; then
2256 if (cygpath --version) >/dev/null 2>/dev/null; then
2257 CYGPATH_W='cygpath -w'
2258 else
2259 CYGPATH_W=echo
2260 fi
2261fi
2262
2263
Lev Walkinf15320b2004-06-03 03:38:44 +00002264# Define the identity of the package.
Lev Walkine7c4b962010-11-09 03:10:36 -08002265 PACKAGE='asn1c'
2266 VERSION='0.9.23'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002267
Lev Walkinf15320b2004-06-03 03:38:44 +00002268
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE "$PACKAGE"
2271_ACEOF
2272
2273
2274cat >>confdefs.h <<_ACEOF
2275#define VERSION "$VERSION"
2276_ACEOF
2277
Lev Walkinf15320b2004-06-03 03:38:44 +00002278# Some tools Automake needs.
2279
Lev Walkin8e8b5482004-06-17 23:42:48 +00002280ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002281
2282
2283AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2284
2285
Lev Walkin8e8b5482004-06-17 23:42:48 +00002286AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002287
2288
2289AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2290
2291
2292MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2293
Lev Walkin4c776e52010-11-08 02:07:31 -08002294install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002295
Lev Walkin8e8b5482004-06-17 23:42:48 +00002296# Installed binaries are usually stripped using `strip' when the user
2297# run `make install-strip'. However `strip' might not be the right
2298# tool to use in cross-compilation environments, therefore Automake
2299# will honor the `STRIP' environment variable to overrule this program.
2300if test "$cross_compiling" != no; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2303set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002306if test "${ac_cv_prog_STRIP+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309 if test -n "$STRIP"; then
2310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323done
2324done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002325IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002326
2327fi
2328fi
2329STRIP=$ac_cv_prog_STRIP
2330if test -n "$STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002331 { echo "$as_me:$LINENO: result: $STRIP" >&5
2332echo "${ECHO_T}$STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002333else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002334 { echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002336fi
2337
Lev Walkin27fd0b62007-08-27 23:57:45 +00002338
Lev Walkin8e8b5482004-06-17 23:42:48 +00002339fi
2340if test -z "$ac_cv_prog_STRIP"; then
2341 ac_ct_STRIP=$STRIP
2342 # Extract the first word of "strip", so it can be a program name with args.
2343set dummy strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002346if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349 if test -n "$ac_ct_STRIP"; then
2350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351else
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002359 ac_cv_prog_ac_ct_STRIP="strip"
2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2362 fi
2363done
2364done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002365IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002366
Lev Walkin8e8b5482004-06-17 23:42:48 +00002367fi
2368fi
2369ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2370if test -n "$ac_ct_STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002371 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2372echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002373else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002374 { echo "$as_me:$LINENO: result: no" >&5
2375echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002376fi
2377
Lev Walkin27fd0b62007-08-27 23:57:45 +00002378 if test "x$ac_ct_STRIP" = x; then
2379 STRIP=":"
2380 else
2381 case $cross_compiling:$ac_tool_warned in
2382yes:)
2383{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2384whose name does not start with the host triplet. If you think this
2385configuration is useful to you, please write to autoconf@gnu.org." >&5
2386echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2387whose name does not start with the host triplet. If you think this
2388configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2389ac_tool_warned=yes ;;
2390esac
2391 STRIP=$ac_ct_STRIP
2392 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002393else
2394 STRIP="$ac_cv_prog_STRIP"
2395fi
2396
2397fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002398INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Lev Walkinf15320b2004-06-03 03:38:44 +00002399
2400# We need awk for the "check" target. The system "awk" is bad on
2401# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002402# Always define AMTAR for backward compatibility.
2403
2404AMTAR=${AMTAR-"${am_missing_run}tar"}
2405
2406am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2407
2408
Lev Walkinf15320b2004-06-03 03:38:44 +00002409
2410
2411
Lev Walkine7c4b962010-11-09 03:10:36 -08002412ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +00002413
2414
2415
Lev Walkin4da95cf2010-10-16 02:46:32 -07002416case `pwd` in
2417 *\ * | *\ *)
2418 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2419echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2420esac
2421
2422
2423
Lev Walkin4c776e52010-11-08 02:07:31 -08002424macro_version='2.2.4'
2425macro_revision='1.2976'
Lev Walkin4da95cf2010-10-16 02:46:32 -07002426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439ltmain="$ac_aux_dir/ltmain.sh"
2440
Lev Walkine7c4b962010-11-09 03:10:36 -08002441# Make sure we can run config.sub.
2442$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2443 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2444echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2445 { (exit 1); exit 1; }; }
2446
2447{ echo "$as_me:$LINENO: checking build system type" >&5
2448echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2449if test "${ac_cv_build+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451else
2452 ac_build_alias=$build_alias
2453test "x$ac_build_alias" = x &&
2454 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2455test "x$ac_build_alias" = x &&
2456 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2457echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2458 { (exit 1); exit 1; }; }
2459ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2460 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2461echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2462 { (exit 1); exit 1; }; }
2463
2464fi
2465{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2466echo "${ECHO_T}$ac_cv_build" >&6; }
2467case $ac_cv_build in
2468*-*-*) ;;
2469*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2470echo "$as_me: error: invalid value of canonical build" >&2;}
2471 { (exit 1); exit 1; }; };;
2472esac
2473build=$ac_cv_build
2474ac_save_IFS=$IFS; IFS='-'
2475set x $ac_cv_build
2476shift
2477build_cpu=$1
2478build_vendor=$2
2479shift; shift
2480# Remember, the first character of IFS is used to create $*,
2481# except with old shells:
2482build_os=$*
2483IFS=$ac_save_IFS
2484case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2485
2486
2487{ echo "$as_me:$LINENO: checking host system type" >&5
2488echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2489if test "${ac_cv_host+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492 if test "x$host_alias" = x; then
2493 ac_cv_host=$ac_cv_build
2494else
2495 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2496 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2497echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2498 { (exit 1); exit 1; }; }
2499fi
2500
2501fi
2502{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2503echo "${ECHO_T}$ac_cv_host" >&6; }
2504case $ac_cv_host in
2505*-*-*) ;;
2506*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2507echo "$as_me: error: invalid value of canonical host" >&2;}
2508 { (exit 1); exit 1; }; };;
2509esac
2510host=$ac_cv_host
2511ac_save_IFS=$IFS; IFS='-'
2512set x $ac_cv_host
2513shift
2514host_cpu=$1
2515host_vendor=$2
2516shift; shift
2517# Remember, the first character of IFS is used to create $*,
2518# except with old shells:
2519host_os=$*
2520IFS=$ac_save_IFS
2521case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2522
2523
Lev Walkin8e8b5482004-06-17 23:42:48 +00002524DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002525
Lev Walkin27fd0b62007-08-27 23:57:45 +00002526ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002527
Lev Walkinf15320b2004-06-03 03:38:44 +00002528
2529am_make=${MAKE-make}
2530cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002531am__doit:
Lev Walkinf15320b2004-06-03 03:38:44 +00002532 @echo done
Lev Walkin8e8b5482004-06-17 23:42:48 +00002533.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002534END
2535# If we don't find an include directive, just comment out the code.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002536{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2537echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002538am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002539am__quote=
2540_am_result=none
2541# First try GNU make style include.
2542echo "include confinc" > confmf
2543# We grep out `Entering directory' and `Leaving directory'
2544# messages which can occur if `w' ends up in MAKEFLAGS.
2545# In particular we don't look at `^make:' because GNU make might
2546# be invoked under some other name (usually "gmake"), in which
2547# case it prints its new name instead of `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002548if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002549 am__include=include
2550 am__quote=
2551 _am_result=GNU
2552fi
2553# Now try BSD make style include.
2554if test "$am__include" = "#"; then
2555 echo '.include "confinc"' > confmf
2556 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2557 am__include=.include
Lev Walkin8e8b5482004-06-17 23:42:48 +00002558 am__quote="\""
Lev Walkinf15320b2004-06-03 03:38:44 +00002559 _am_result=BSD
2560 fi
2561fi
2562
2563
Lev Walkin27fd0b62007-08-27 23:57:45 +00002564{ echo "$as_me:$LINENO: result: $_am_result" >&5
2565echo "${ECHO_T}$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002566rm -f confinc confmf
2567
Lev Walkin27fd0b62007-08-27 23:57:45 +00002568# Check whether --enable-dependency-tracking was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002569if test "${enable_dependency_tracking+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002570 enableval=$enable_dependency_tracking;
2571fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002572
Lev Walkin8e8b5482004-06-17 23:42:48 +00002573if test "x$enable_dependency_tracking" != xno; then
2574 am_depcomp="$ac_aux_dir/depcomp"
2575 AMDEPBACKSLASH='\'
2576fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002577 if test "x$enable_dependency_tracking" != xno; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002578 AMDEP_TRUE=
2579 AMDEP_FALSE='#'
2580else
2581 AMDEP_TRUE='#'
2582 AMDEP_FALSE=
2583fi
2584
2585
Lev Walkinf15320b2004-06-03 03:38:44 +00002586ac_ext=c
2587ac_cpp='$CPP $CPPFLAGS'
2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002596if test "${ac_cv_prog_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613done
2614done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002615IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002616
2617fi
2618fi
2619CC=$ac_cv_prog_CC
2620if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002621 { echo "$as_me:$LINENO: result: $CC" >&5
2622echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002623else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002624 { echo "$as_me:$LINENO: result: no" >&5
2625echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002626fi
2627
Lev Walkin27fd0b62007-08-27 23:57:45 +00002628
Lev Walkinf15320b2004-06-03 03:38:44 +00002629fi
2630if test -z "$ac_cv_prog_CC"; then
2631 ac_ct_CC=$CC
2632 # Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002649 ac_cv_prog_ac_ct_CC="gcc"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2652 fi
2653done
2654done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002655IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002656
2657fi
2658fi
2659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002663else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002666fi
2667
Lev Walkin27fd0b62007-08-27 23:57:45 +00002668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672yes:)
2673{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674whose name does not start with the host triplet. If you think this
2675configuration is useful to you, please write to autoconf@gnu.org." >&5
2676echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677whose name does not start with the host triplet. If you think this
2678configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679ac_tool_warned=yes ;;
2680esac
2681 CC=$ac_ct_CC
2682 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002683else
2684 CC="$ac_cv_prog_CC"
2685fi
2686
2687if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002688 if test -n "$ac_tool_prefix"; then
2689 # 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 +00002690set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002693if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002712IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002713
2714fi
2715fi
2716CC=$ac_cv_prog_CC
2717if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002718 { echo "$as_me:$LINENO: result: $CC" >&5
2719echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002720else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002721 { echo "$as_me:$LINENO: result: no" >&5
2722echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002723fi
2724
Lev Walkin27fd0b62007-08-27 23:57:45 +00002725
Lev Walkinf15320b2004-06-03 03:38:44 +00002726 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002727fi
2728if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002733if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738else
2739 ac_prog_rejected=no
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2749 continue
2750 fi
2751 ac_cv_prog_CC="cc"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755done
2756done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002757IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002758
2759if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2762 shift
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2767 shift
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2769 fi
2770fi
2771fi
2772fi
2773CC=$ac_cv_prog_CC
2774if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002775 { echo "$as_me:$LINENO: result: $CC" >&5
2776echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002777else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002778 { echo "$as_me:$LINENO: result: no" >&5
2779echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002780fi
2781
Lev Walkin27fd0b62007-08-27 23:57:45 +00002782
Lev Walkinf15320b2004-06-03 03:38:44 +00002783fi
2784if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002786 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002787 do
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002792if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809done
2810done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002811IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002812
2813fi
2814fi
2815CC=$ac_cv_prog_CC
2816if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002817 { echo "$as_me:$LINENO: result: $CC" >&5
2818echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002819else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002820 { echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002822fi
2823
Lev Walkin27fd0b62007-08-27 23:57:45 +00002824
Lev Walkinf15320b2004-06-03 03:38:44 +00002825 test -n "$CC" && break
2826 done
2827fi
2828if test -z "$CC"; then
2829 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00002830 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002831do
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002836if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838else
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853done
2854done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002855IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002856
2857fi
2858fi
2859ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002861 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002863else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002864 { echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002866fi
2867
Lev Walkin27fd0b62007-08-27 23:57:45 +00002868
Lev Walkinf15320b2004-06-03 03:38:44 +00002869 test -n "$ac_ct_CC" && break
2870done
2871
Lev Walkin27fd0b62007-08-27 23:57:45 +00002872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876yes:)
2877{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2878whose name does not start with the host triplet. If you think this
2879configuration is useful to you, please write to autoconf@gnu.org." >&5
2880echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2881whose name does not start with the host triplet. If you think this
2882configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2883ac_tool_warned=yes ;;
2884esac
2885 CC=$ac_ct_CC
2886 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002887fi
2888
2889fi
2890
2891
2892test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893See \`config.log' for more details." >&5
2894echo "$as_me: error: no acceptable C compiler found in \$PATH
2895See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2897
2898# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002899echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002900ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002901{ (ac_try="$ac_compiler --version >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002911{ (ac_try="$ac_compiler -v >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002921{ (ac_try="$ac_compiler -V >&5"
2922case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931
2932cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947ac_clean_files_save=$ac_clean_files
2948ac_clean_files="$ac_clean_files a.out a.exe b.out"
2949# Try to create an executable without -o first, disregard a.out.
2950# It will help us diagnose broken compilers, and finding out an intuition
2951# of exeext.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002952{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2953echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002954ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002955#
2956# List of possible output files, starting from the most likely.
2957# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2958# only as a last resort. b.out is created by i960 compilers.
2959ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2960#
2961# The IRIX 6 linker writes into existing files which may not be
2962# executable, retaining their permissions. Remove them first so a
2963# subsequent execution test works.
2964ac_rmfiles=
2965for ac_file in $ac_files
2966do
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 esac
2971done
2972rm -f $ac_rmfiles
2973
2974if { (ac_try="$ac_link_default"
2975case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986# in a Makefile. We should not override ac_cv_exeext if it was cached,
2987# so that the user can short-circuit this test for compilers unknown to
2988# Autoconf.
Lev Walkin4c776e52010-11-08 02:07:31 -08002989for ac_file in $ac_files ''
Lev Walkinf15320b2004-06-03 03:38:44 +00002990do
2991 test -f "$ac_file" || continue
2992 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00002993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002994 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002995 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00002996 # We found the default executable, but exeext='' is most
2997 # certainly right.
2998 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002999 *.* )
Lev Walkin27fd0b62007-08-27 23:57:45 +00003000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001 then :; else
3002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003 fi
3004 # We set ac_cv_exeext here because the later test for it is not
3005 # safe: cross compilers may not add the suffix if given an `-o'
3006 # argument, so we may need to know it at that point already.
3007 # Even if this section looks crufty: it has the advantage of
3008 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003009 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003010 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003011 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003012 esac
3013done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003014test "$ac_cv_exeext" = no && ac_cv_exeext=
3015
Lev Walkinf15320b2004-06-03 03:38:44 +00003016else
Lev Walkin4c776e52010-11-08 02:07:31 -08003017 ac_file=''
3018fi
3019
3020{ echo "$as_me:$LINENO: result: $ac_file" >&5
3021echo "${ECHO_T}$ac_file" >&6; }
3022if test -z "$ac_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003023 echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3027See \`config.log' for more details." >&5
3028echo "$as_me: error: C compiler cannot create executables
3029See \`config.log' for more details." >&2;}
3030 { (exit 77); exit 77; }; }
3031fi
3032
3033ac_exeext=$ac_cv_exeext
Lev Walkinf15320b2004-06-03 03:38:44 +00003034
Lev Walkin27fd0b62007-08-27 23:57:45 +00003035# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003036# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003037{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3038echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003039# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3040# If not cross compiling, check that we can run a simple program.
3041if test "$cross_compiling" != yes; then
3042 if { ac_try='./$ac_file'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 cross_compiling=no
3053 else
3054 if test "$cross_compiling" = maybe; then
3055 cross_compiling=yes
3056 else
3057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3058If you meant to cross compile, use \`--host'.
3059See \`config.log' for more details." >&5
3060echo "$as_me: error: cannot run C compiled programs.
3061If you meant to cross compile, use \`--host'.
3062See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }
3064 fi
3065 fi
3066fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003067{ echo "$as_me:$LINENO: result: yes" >&5
3068echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003069
3070rm -f a.out a.exe conftest$ac_cv_exeext b.out
3071ac_clean_files=$ac_clean_files_save
Lev Walkin27fd0b62007-08-27 23:57:45 +00003072# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003073# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003074{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3075echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3076{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3077echo "${ECHO_T}$cross_compiling" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003078
Lev Walkin27fd0b62007-08-27 23:57:45 +00003079{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3080echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3081if { (ac_try="$ac_link"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; then
3091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3092# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3093# work properly (i.e., refer to `conftest.exe'), while it won't with
3094# `rm'.
3095for ac_file in conftest.exe conftest conftest.*; do
3096 test -f "$ac_file" || continue
3097 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003099 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003100 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003101 * ) break;;
3102 esac
3103done
3104else
3105 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3106See \`config.log' for more details." >&5
3107echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3108See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3110fi
3111
3112rm -f conftest$ac_cv_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003113{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3114echo "${ECHO_T}$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003115
3116rm -f conftest.$ac_ext
3117EXEEXT=$ac_cv_exeext
3118ac_exeext=$EXEEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003119{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3120echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003121if test "${ac_cv_objext+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130
3131int
3132main ()
3133{
3134
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.o conftest.obj
Lev Walkin27fd0b62007-08-27 23:57:45 +00003140if { (ac_try="$ac_compile"
3141case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003150 for ac_file in conftest.o conftest.obj conftest.*; do
3151 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003152 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3155 break;;
3156 esac
3157done
3158else
3159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3163See \`config.log' for more details." >&5
3164echo "$as_me: error: cannot compute suffix of object files: cannot compile
3165See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3167fi
3168
3169rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003171{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3172echo "${ECHO_T}$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003173OBJEXT=$ac_cv_objext
3174ac_objext=$OBJEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003175{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3176echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003177if test "${ac_cv_c_compiler_gnu+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186
3187int
3188main ()
3189{
3190#ifndef __GNUC__
3191 choke me
3192#endif
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003206 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003215 ac_compiler_gnu=yes
3216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
Lev Walkin27fd0b62007-08-27 23:57:45 +00003220 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003221fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003222
3223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003224ac_cv_c_compiler_gnu=$ac_compiler_gnu
3225
3226fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003227{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3228echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003229GCC=`test $ac_compiler_gnu = yes && echo yes`
3230ac_test_CFLAGS=${CFLAGS+set}
3231ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +00003232{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3233echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003234if test "${ac_cv_prog_cc_g+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3239 ac_cv_prog_cc_g=no
3240 CFLAGS="-g"
3241 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003257if { (ac_try="$ac_compile"
3258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003264 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003269 (exit $ac_status); } && {
3270 test -z "$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003273 ac_cv_prog_cc_g=yes
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
Lev Walkin27fd0b62007-08-27 23:57:45 +00003278 CFLAGS=""
3279 cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h. */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h. */
3285
3286int
3287main ()
3288{
3289
3290 ;
3291 return 0;
3292}
3293_ACEOF
3294rm -f conftest.$ac_objext
3295if { (ac_try="$ac_compile"
3296case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299esac
3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003311 :
3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 ac_c_werror_flag=$ac_save_c_werror_flag
3317 CFLAGS="-g"
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324
3325int
3326main ()
3327{
3328
3329 ;
3330 return 0;
3331}
3332_ACEOF
3333rm -f conftest.$ac_objext
3334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003350 ac_cv_prog_cc_g=yes
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
Lev Walkinf15320b2004-06-03 03:38:44 +00003356fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003357
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003359fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003360
3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362fi
3363
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3366fi
3367{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003369if test "$ac_test_CFLAGS" = set; then
3370 CFLAGS=$ac_save_CFLAGS
3371elif test $ac_cv_prog_cc_g = yes; then
3372 if test "$GCC" = yes; then
3373 CFLAGS="-g -O2"
3374 else
3375 CFLAGS="-g"
3376 fi
3377else
3378 if test "$GCC" = yes; then
3379 CFLAGS="-O2"
3380 else
3381 CFLAGS=
3382 fi
3383fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003384{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3385echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3386if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003389 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003390ac_save_CC=$CC
3391cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397#include <stdarg.h>
3398#include <stdio.h>
3399#include <sys/types.h>
3400#include <sys/stat.h>
3401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3402struct buf { int x; };
3403FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404static char *e (p, i)
3405 char **p;
3406 int i;
3407{
3408 return p[i];
3409}
3410static char *f (char * (*g) (char **, int), char **p, ...)
3411{
3412 char *s;
3413 va_list v;
3414 va_start (v,p);
3415 s = g (p, va_arg (v,int));
3416 va_end (v);
3417 return s;
3418}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003419
3420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3421 function prototypes and stuff, but not '\xHH' hex character constants.
3422 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003423 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3425 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003426 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003427int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
Lev Walkin27fd0b62007-08-27 23:57:45 +00003429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430 inside strings and character constants. */
3431#define FOO(x) 'x'
3432int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433
Lev Walkinf15320b2004-06-03 03:38:44 +00003434int test (int i, double x);
3435struct s1 {int (*f) (int a);};
3436struct s2 {int (*f) (double a);};
3437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438int argc;
3439char **argv;
3440int
3441main ()
3442{
3443return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3444 ;
3445 return 0;
3446}
3447_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003448for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003450do
3451 CC="$ac_save_CC $ac_arg"
3452 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003453if { (ac_try="$ac_compile"
3454case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457esac
3458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003460 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003465 (exit $ac_status); } && {
3466 test -z "$ac_c_werror_flag" ||
3467 test ! -s conftest.err
3468 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003469 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003470else
3471 echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
Lev Walkin27fd0b62007-08-27 23:57:45 +00003474
Lev Walkinf15320b2004-06-03 03:38:44 +00003475fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003476
3477rm -f core conftest.err conftest.$ac_objext
3478 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003479done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003480rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003481CC=$ac_save_CC
3482
3483fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003484# AC_CACHE_VAL
3485case "x$ac_cv_prog_cc_c89" in
3486 x)
3487 { echo "$as_me:$LINENO: result: none needed" >&5
3488echo "${ECHO_T}none needed" >&6; } ;;
3489 xno)
3490 { echo "$as_me:$LINENO: result: unsupported" >&5
3491echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003492 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003493 CC="$CC $ac_cv_prog_cc_c89"
3494 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3495echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003496esac
3497
Lev Walkinf15320b2004-06-03 03:38:44 +00003498
Lev Walkinf15320b2004-06-03 03:38:44 +00003499ac_ext=c
3500ac_cpp='$CPP $CPPFLAGS'
3501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504
3505depcc="$CC" am_compiler_list=
3506
Lev Walkin27fd0b62007-08-27 23:57:45 +00003507{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3508echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003509if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3513 # We make a subdir and do the tests there. Otherwise we can end up
3514 # making bogus files that we don't know about and never remove. For
3515 # instance it was reported that on HP-UX the gcc test will end up
3516 # making a dummy file named `D' -- because `-MD' means `put the output
3517 # in D'.
3518 mkdir conftest.dir
3519 # Copy depcomp to subdir because otherwise we won't find it if we're
3520 # using a relative directory.
3521 cp "$am_depcomp" conftest.dir
3522 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003523 # We will build objects and dependencies in a subdirectory because
3524 # it helps to detect inapplicable dependency modes. For instance
3525 # both Tru64's cc and ICC support -MD to output dependencies as a
3526 # side effect of compilation, but ICC will put the dependencies in
3527 # the current directory while Tru64 will put them in the object
3528 # directory.
3529 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003530
3531 am_cv_CC_dependencies_compiler_type=none
3532 if test "$am_compiler_list" = ""; then
3533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3534 fi
3535 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003536 # Setup a source with many dependencies, because some compilers
3537 # like to wrap large dependency lists on column 80 (with \), and
3538 # we should not choose a depcomp mode which is confused by this.
3539 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003540 # We need to recreate these files for each test, as the compiler may
3541 # overwrite some of them when testing with obscure command lines.
3542 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003543 : > sub/conftest.c
3544 for i in 1 2 3 4 5 6; do
3545 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3546 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3547 # Solaris 8's {/usr,}/bin/sh.
3548 touch sub/conftst$i.h
3549 done
3550 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003551
3552 case $depmode in
3553 nosideeffect)
3554 # after this tag, mechanisms are not by side-effect, so they'll
3555 # only be used when explicitly requested
3556 if test "x$enable_dependency_tracking" = xyes; then
3557 continue
3558 else
3559 break
3560 fi
3561 ;;
3562 none) break ;;
3563 esac
3564 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3565 # mode. It turns out that the SunPro C++ compiler does not properly
3566 # handle `-M -o', and we need to detect this.
3567 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003568 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3569 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3570 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3571 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -08003572 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003573 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3574 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003575 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003576 # icc doesn't choke on unknown options, it will just issue warnings
3577 # or remarks (even with -Werror). So we grep stderr for any message
3578 # that says an option was ignored or not supported.
3579 # When given -MP, icc 7.0 and 7.1 complain thusly:
3580 # icc: Command line warning: ignoring option '-M'; no argument required
3581 # The diagnosis changed in icc 8.0:
3582 # icc: Command line remark: option '-MP' not supported
3583 if (grep 'ignoring option' conftest.err ||
3584 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3585 am_cv_CC_dependencies_compiler_type=$depmode
3586 break
3587 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003588 fi
3589 done
3590
3591 cd ..
3592 rm -rf conftest.dir
3593else
3594 am_cv_CC_dependencies_compiler_type=none
3595fi
3596
3597fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003598{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3599echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003600CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3601
Lev Walkin4c776e52010-11-08 02:07:31 -08003602 if
Lev Walkin8e8b5482004-06-17 23:42:48 +00003603 test "x$enable_dependency_tracking" != xno \
3604 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3605 am__fastdepCC_TRUE=
3606 am__fastdepCC_FALSE='#'
3607else
3608 am__fastdepCC_TRUE='#'
3609 am__fastdepCC_FALSE=
3610fi
3611
3612
Lev Walkin27fd0b62007-08-27 23:57:45 +00003613{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3614echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07003615if test "${ac_cv_path_SED+set}" = set; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003618 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3619 for ac_i in 1 2 3 4 5 6 7; do
3620 ac_script="$ac_script$as_nl$ac_script"
3621 done
3622 echo "$ac_script" | sed 99q >conftest.sed
3623 $as_unset ac_script || ac_script=
3624 # Extract the first word of "sed gsed" to use in msg output
3625if test -z "$SED"; then
3626set dummy sed gsed; ac_prog_name=$2
3627if test "${ac_cv_path_SED+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 ac_path_SED_found=false
3631# Loop through the user's path and test for each of PROGNAME-LIST
Lev Walkin8e8b5482004-06-17 23:42:48 +00003632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003637 for ac_prog in sed gsed; do
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003640 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
Lev Walkin4da95cf2010-10-16 02:46:32 -07003641 # Check for GNU ac_path_SED and select it if it is found.
3642 # Check for GNU $ac_path_SED
3643case `"$ac_path_SED" --version 2>&1` in
3644*GNU*)
3645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3646*)
3647 ac_count=0
3648 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3649 while :
3650 do
3651 cat "conftest.in" "conftest.in" >"conftest.tmp"
3652 mv "conftest.tmp" "conftest.in"
3653 cp "conftest.in" "conftest.nl"
3654 echo '' >> "conftest.nl"
3655 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3657 ac_count=`expr $ac_count + 1`
3658 if test $ac_count -gt ${ac_path_SED_max-0}; then
3659 # Best one so far, save it but keep looking for a better one
3660 ac_cv_path_SED="$ac_path_SED"
3661 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003662 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003663 # 10*(2^10) chars as input seems more than enough
3664 test $ac_count -gt 10 && break
3665 done
3666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667esac
3668
3669
3670 $ac_path_SED_found && break 3
Lev Walkin8e8b5482004-06-17 23:42:48 +00003671 done
3672done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003673
Lev Walkin4da95cf2010-10-16 02:46:32 -07003674done
3675IFS=$as_save_IFS
3676
3677
Lev Walkin8e8b5482004-06-17 23:42:48 +00003678fi
3679
Lev Walkin4da95cf2010-10-16 02:46:32 -07003680SED="$ac_cv_path_SED"
3681if test -z "$SED"; then
3682 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3683echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3684 { (exit 1); exit 1; }; }
3685fi
3686
3687else
3688 ac_cv_path_SED=$SED
3689fi
3690
3691fi
3692{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3693echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3694 SED="$ac_cv_path_SED"
3695 rm -f conftest.sed
3696
3697test -z "$SED" && SED=sed
3698Xsed="$SED -e 1s/^X//"
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
Lev Walkin8e8b5482004-06-17 23:42:48 +00003709
Lev Walkin27fd0b62007-08-27 23:57:45 +00003710{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3711echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3712if test "${ac_cv_path_GREP+set}" = set; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003715 # Extract the first word of "grep ggrep" to use in msg output
3716if test -z "$GREP"; then
3717set dummy grep ggrep; ac_prog_name=$2
3718if test "${ac_cv_path_GREP+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721 ac_path_GREP_found=false
3722# Loop through the user's path and test for each of PROGNAME-LIST
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3725do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_prog in grep ggrep; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003731 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00003732 # Check for GNU ac_path_GREP and select it if it is found.
3733 # Check for GNU $ac_path_GREP
3734case `"$ac_path_GREP" --version 2>&1` in
3735*GNU*)
3736 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3737*)
3738 ac_count=0
3739 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3740 while :
3741 do
3742 cat "conftest.in" "conftest.in" >"conftest.tmp"
3743 mv "conftest.tmp" "conftest.in"
3744 cp "conftest.in" "conftest.nl"
3745 echo 'GREP' >> "conftest.nl"
3746 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3748 ac_count=`expr $ac_count + 1`
3749 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3750 # Best one so far, save it but keep looking for a better one
3751 ac_cv_path_GREP="$ac_path_GREP"
3752 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003753 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003754 # 10*(2^10) chars as input seems more than enough
3755 test $ac_count -gt 10 && break
3756 done
3757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3758esac
3759
3760
3761 $ac_path_GREP_found && break 3
3762 done
3763done
3764
3765done
3766IFS=$as_save_IFS
3767
3768
Lev Walkin8e8b5482004-06-17 23:42:48 +00003769fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003770
3771GREP="$ac_cv_path_GREP"
3772if test -z "$GREP"; then
3773 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3774echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3775 { (exit 1); exit 1; }; }
3776fi
3777
3778else
3779 ac_cv_path_GREP=$GREP
3780fi
3781
3782
3783fi
3784{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3785echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3786 GREP="$ac_cv_path_GREP"
3787
3788
3789{ echo "$as_me:$LINENO: checking for egrep" >&5
3790echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3791if test "${ac_cv_path_EGREP+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3795 then ac_cv_path_EGREP="$GREP -E"
3796 else
3797 # Extract the first word of "egrep" to use in msg output
3798if test -z "$EGREP"; then
3799set dummy egrep; ac_prog_name=$2
3800if test "${ac_cv_path_EGREP+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802else
3803 ac_path_EGREP_found=false
3804# Loop through the user's path and test for each of PROGNAME-LIST
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_prog in egrep; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003813 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00003814 # Check for GNU ac_path_EGREP and select it if it is found.
3815 # Check for GNU $ac_path_EGREP
3816case `"$ac_path_EGREP" --version 2>&1` in
3817*GNU*)
3818 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3819*)
3820 ac_count=0
3821 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3822 while :
3823 do
3824 cat "conftest.in" "conftest.in" >"conftest.tmp"
3825 mv "conftest.tmp" "conftest.in"
3826 cp "conftest.in" "conftest.nl"
3827 echo 'EGREP' >> "conftest.nl"
3828 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3830 ac_count=`expr $ac_count + 1`
3831 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3832 # Best one so far, save it but keep looking for a better one
3833 ac_cv_path_EGREP="$ac_path_EGREP"
3834 ac_path_EGREP_max=$ac_count
3835 fi
3836 # 10*(2^10) chars as input seems more than enough
3837 test $ac_count -gt 10 && break
3838 done
3839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3840esac
3841
3842
3843 $ac_path_EGREP_found && break 3
3844 done
3845done
3846
3847done
3848IFS=$as_save_IFS
3849
3850
3851fi
3852
3853EGREP="$ac_cv_path_EGREP"
3854if test -z "$EGREP"; then
3855 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3856echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3857 { (exit 1); exit 1; }; }
3858fi
3859
3860else
3861 ac_cv_path_EGREP=$EGREP
3862fi
3863
3864
3865 fi
3866fi
3867{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3868echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3869 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00003870
3871
Lev Walkin4da95cf2010-10-16 02:46:32 -07003872{ echo "$as_me:$LINENO: checking for fgrep" >&5
3873echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3874if test "${ac_cv_path_FGREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3878 then ac_cv_path_FGREP="$GREP -F"
3879 else
3880 # Extract the first word of "fgrep" to use in msg output
3881if test -z "$FGREP"; then
3882set dummy fgrep; ac_prog_name=$2
3883if test "${ac_cv_path_FGREP+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886 ac_path_FGREP_found=false
3887# Loop through the user's path and test for each of PROGNAME-LIST
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in fgrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003896 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
Lev Walkin4da95cf2010-10-16 02:46:32 -07003897 # Check for GNU ac_path_FGREP and select it if it is found.
3898 # Check for GNU $ac_path_FGREP
3899case `"$ac_path_FGREP" --version 2>&1` in
3900*GNU*)
3901 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3902*)
3903 ac_count=0
3904 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 echo 'FGREP' >> "conftest.nl"
3911 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 ac_count=`expr $ac_count + 1`
3914 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_FGREP="$ac_path_FGREP"
3917 ac_path_FGREP_max=$ac_count
3918 fi
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923esac
3924
3925
3926 $ac_path_FGREP_found && break 3
3927 done
3928done
3929
3930done
3931IFS=$as_save_IFS
3932
3933
3934fi
3935
3936FGREP="$ac_cv_path_FGREP"
3937if test -z "$FGREP"; then
3938 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3939echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3940 { (exit 1); exit 1; }; }
3941fi
3942
3943else
3944 ac_cv_path_FGREP=$FGREP
3945fi
3946
3947
3948 fi
3949fi
3950{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3951echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3952 FGREP="$ac_cv_path_FGREP"
3953
3954
3955test -z "$GREP" && GREP=grep
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
Lev Walkinf15320b2004-06-03 03:38:44 +00003974
Lev Walkin27fd0b62007-08-27 23:57:45 +00003975# Check whether --with-gnu-ld was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00003976if test "${with_gnu_ld+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003978else
3979 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00003980fi
3981
Lev Walkinf15320b2004-06-03 03:38:44 +00003982ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00003983if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003984 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003985 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3986echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003987 case $host in
3988 *-*-mingw*)
3989 # gcc leaves a trailing carriage return which upsets mingw
3990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3991 *)
3992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3993 esac
3994 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00003995 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003996 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00003997 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00003998 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07003999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004002 done
4003 test -z "$LD" && LD="$ac_prog"
4004 ;;
4005 "")
4006 # If it fails, then pretend we aren't using GCC.
4007 ac_prog=ld
4008 ;;
4009 *)
4010 # If it is relative, then search for the first ld in PATH.
4011 with_gnu_ld=unknown
4012 ;;
4013 esac
4014elif test "$with_gnu_ld" = yes; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004015 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4016echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004017else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004018 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4019echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004020fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00004021if test "${lt_cv_path_LD+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023else
4024 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004026 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004027 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004028 test -z "$ac_dir" && ac_dir=.
4029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004030 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004031 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004032 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004033 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4035 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004036 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004037 ;;
4038 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004039 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004040 ;;
4041 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004042 fi
4043 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004044 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004045else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004047fi
4048fi
4049
Lev Walkin8e8b5482004-06-17 23:42:48 +00004050LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004051if test -n "$LD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004052 { echo "$as_me:$LINENO: result: $LD" >&5
4053echo "${ECHO_T}$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004054else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004055 { echo "$as_me:$LINENO: result: no" >&5
4056echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004057fi
4058test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4059echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4060 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004061{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4062echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004063if test "${lt_cv_prog_gnu_ld+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004067case `$LD -v 2>&1 </dev/null` in
4068*GNU* | *'with BFD'*)
4069 lt_cv_prog_gnu_ld=yes
4070 ;;
4071*)
4072 lt_cv_prog_gnu_ld=no
4073 ;;
4074esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004075fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004076{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4077echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004078with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004079
4080
Lev Walkin8e8b5482004-06-17 23:42:48 +00004081
Lev Walkin4da95cf2010-10-16 02:46:32 -07004082
4083
4084
4085
4086
4087
4088{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4089echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004090if test "${lt_cv_path_NM+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093 if test -n "$NM"; then
4094 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004095 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004096else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004097 lt_nm_to_check="${ac_tool_prefix}nm"
4098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4099 lt_nm_to_check="$lt_nm_to_check nm"
4100 fi
4101 for lt_tmp_nm in $lt_nm_to_check; do
4102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4103 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4104 IFS="$lt_save_ifs"
4105 test -z "$ac_dir" && ac_dir=.
4106 tmp_nm="$ac_dir/$lt_tmp_nm"
4107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4108 # Check to see if the nm accepts a BSD-compat flag.
4109 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4110 # nm: unknown option "B" ignored
4111 # Tru64's nm complains that /dev/null is an invalid object file
4112 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4113 */dev/null* | *'Invalid file or object type'*)
4114 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004115 break
4116 ;;
4117 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004118 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4119 */dev/null*)
4120 lt_cv_path_NM="$tmp_nm -p"
4121 break
4122 ;;
4123 *)
4124 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4125 continue # so that we can try to find one that supports BSD flags
4126 ;;
4127 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004128 ;;
4129 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004130 fi
4131 done
4132 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004133 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004134 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004135fi
4136fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004137{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4138echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004139if test "$lt_cv_path_NM" != "no"; then
4140 NM="$lt_cv_path_NM"
4141else
4142 # Didn't find any BSD compatible name lister, look for dumpbin.
Lev Walkin4c776e52010-11-08 02:07:31 -08004143 if test -n "$ac_tool_prefix"; then
4144 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004145 do
4146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4147set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4150if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153 if test -n "$DUMPBIN"; then
4154 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4155else
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004163 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167done
4168done
4169IFS=$as_save_IFS
4170
4171fi
4172fi
4173DUMPBIN=$ac_cv_prog_DUMPBIN
4174if test -n "$DUMPBIN"; then
4175 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4176echo "${ECHO_T}$DUMPBIN" >&6; }
4177else
4178 { echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6; }
4180fi
4181
4182
4183 test -n "$DUMPBIN" && break
4184 done
4185fi
4186if test -z "$DUMPBIN"; then
4187 ac_ct_DUMPBIN=$DUMPBIN
Lev Walkin4c776e52010-11-08 02:07:31 -08004188 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004189do
4190 # Extract the first word of "$ac_prog", so it can be a program name with args.
4191set dummy $ac_prog; ac_word=$2
4192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4194if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197 if test -n "$ac_ct_DUMPBIN"; then
4198 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004207 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4210 fi
4211done
4212done
4213IFS=$as_save_IFS
4214
4215fi
4216fi
4217ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4218if test -n "$ac_ct_DUMPBIN"; then
4219 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4220echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4221else
4222 { echo "$as_me:$LINENO: result: no" >&5
4223echo "${ECHO_T}no" >&6; }
4224fi
4225
4226
4227 test -n "$ac_ct_DUMPBIN" && break
4228done
4229
4230 if test "x$ac_ct_DUMPBIN" = x; then
4231 DUMPBIN=":"
4232 else
4233 case $cross_compiling:$ac_tool_warned in
4234yes:)
4235{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4236whose name does not start with the host triplet. If you think this
4237configuration is useful to you, please write to autoconf@gnu.org." >&5
4238echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4239whose name does not start with the host triplet. If you think this
4240configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4241ac_tool_warned=yes ;;
4242esac
4243 DUMPBIN=$ac_ct_DUMPBIN
4244 fi
4245fi
4246
Lev Walkin4da95cf2010-10-16 02:46:32 -07004247
4248 if test "$DUMPBIN" != ":"; then
4249 NM="$DUMPBIN"
4250 fi
4251fi
4252test -z "$NM" && NM=nm
4253
4254
4255
4256
4257
4258
4259{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4260echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4261if test "${lt_cv_nm_interface+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264 lt_cv_nm_interface="BSD nm"
4265 echo "int some_variable = 0;" > conftest.$ac_ext
Lev Walkine7c4b962010-11-09 03:10:36 -08004266 (eval echo "\"\$as_me:4266: $ac_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004267 (eval "$ac_compile" 2>conftest.err)
4268 cat conftest.err >&5
Lev Walkine7c4b962010-11-09 03:10:36 -08004269 (eval echo "\"\$as_me:4269: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004270 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4271 cat conftest.err >&5
Lev Walkine7c4b962010-11-09 03:10:36 -08004272 (eval echo "\"\$as_me:4272: output\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004273 cat conftest.out >&5
4274 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4275 lt_cv_nm_interface="MS dumpbin"
4276 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08004277 rm -r -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07004278fi
4279{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4280echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004281
Lev Walkin27fd0b62007-08-27 23:57:45 +00004282{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4283echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004284LN_S=$as_ln_s
4285if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004286 { echo "$as_me:$LINENO: result: yes" >&5
4287echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004288else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004289 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4290echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004291fi
4292
Lev Walkin4da95cf2010-10-16 02:46:32 -07004293# find the maximum length of command line arguments
4294{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4295echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4296if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299 i=0
4300 teststring="ABCD"
4301
4302 case $build_os in
4303 msdosdjgpp*)
4304 # On DJGPP, this test can blow up pretty badly due to problems in libc
4305 # (any single argument exceeding 2000 bytes causes a buffer overrun
4306 # during glob expansion). Even if it were fixed, the result of this
4307 # check would be larger than it should be.
4308 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4309 ;;
4310
4311 gnu*)
4312 # Under GNU Hurd, this test is not required because there is
4313 # no limit to the length of command line arguments.
4314 # Libtool will interpret -1 as no limit whatsoever
4315 lt_cv_sys_max_cmd_len=-1;
4316 ;;
4317
Lev Walkin4c776e52010-11-08 02:07:31 -08004318 cygwin* | mingw*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004319 # On Win9x/ME, this test blows up -- it succeeds, but takes
4320 # about 5 minutes as the teststring grows exponentially.
4321 # Worse, since 9x/ME are not pre-emptively multitasking,
4322 # you end up with a "frozen" computer, even though with patience
4323 # the test eventually succeeds (with a max line length of 256k).
4324 # Instead, let's just punt: use the minimum linelength reported by
4325 # all of the supported platforms: 8192 (on NT/2K/XP).
4326 lt_cv_sys_max_cmd_len=8192;
4327 ;;
4328
Lev Walkin4da95cf2010-10-16 02:46:32 -07004329 amigaos*)
4330 # On AmigaOS with pdksh, this test takes hours, literally.
4331 # So we just punt and use a minimum line length of 8192.
4332 lt_cv_sys_max_cmd_len=8192;
4333 ;;
4334
4335 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4336 # This has been around since 386BSD, at least. Likely further.
4337 if test -x /sbin/sysctl; then
4338 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4339 elif test -x /usr/sbin/sysctl; then
4340 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4341 else
4342 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4343 fi
4344 # And add a safety zone
4345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4347 ;;
4348
4349 interix*)
4350 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4351 lt_cv_sys_max_cmd_len=196608
4352 ;;
4353
4354 osf*)
4355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4357 # nice to cause kernel panics so lets avoid the loop below.
4358 # First set a reasonable default.
4359 lt_cv_sys_max_cmd_len=16384
4360 #
4361 if test -x /sbin/sysconfig; then
4362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4363 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4364 esac
4365 fi
4366 ;;
4367 sco3.2v5*)
4368 lt_cv_sys_max_cmd_len=102400
4369 ;;
4370 sysv5* | sco5v6* | sysv4.2uw2*)
4371 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4372 if test -n "$kargmax"; then
4373 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4374 else
4375 lt_cv_sys_max_cmd_len=32768
4376 fi
4377 ;;
4378 *)
4379 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4380 if test -n "$lt_cv_sys_max_cmd_len"; then
4381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4383 else
4384 # Make teststring a little bigger before we do anything with it.
4385 # a 1K string should be a reasonable start.
4386 for i in 1 2 3 4 5 6 7 8 ; do
4387 teststring=$teststring$teststring
4388 done
4389 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4390 # If test is not a shell built-in, we'll probably end up computing a
4391 # maximum length that is only half of the actual maximum length, but
4392 # we can't tell.
Lev Walkin4c776e52010-11-08 02:07:31 -08004393 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4394 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
Lev Walkin4da95cf2010-10-16 02:46:32 -07004395 test $i != 17 # 1/2 MB should be enough
4396 do
4397 i=`expr $i + 1`
4398 teststring=$teststring$teststring
4399 done
4400 # Only check the string length outside the loop.
4401 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4402 teststring=
4403 # Add a significant safety factor because C++ compilers can tack on
4404 # massive amounts of additional arguments before passing them to the
4405 # linker. It appears as though 1/2 is a usable value.
4406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4407 fi
4408 ;;
4409 esac
4410
4411fi
4412
4413if test -n $lt_cv_sys_max_cmd_len ; then
4414 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4415echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4416else
4417 { echo "$as_me:$LINENO: result: none" >&5
4418echo "${ECHO_T}none" >&6; }
4419fi
4420max_cmd_len=$lt_cv_sys_max_cmd_len
4421
4422
4423
4424
4425
4426
4427: ${CP="cp -f"}
4428: ${MV="mv -f"}
4429: ${RM="rm -f"}
4430
4431{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4432echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4433# Try some XSI features
4434xsi_shell=no
4435( _lt_dummy="a/b/c"
Lev Walkin4c776e52010-11-08 02:07:31 -08004436 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4437 = c,a/b,, \
Lev Walkin4da95cf2010-10-16 02:46:32 -07004438 && eval 'test $(( 1 + 1 )) -eq 2 \
4439 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4440 && xsi_shell=yes
4441{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4442echo "${ECHO_T}$xsi_shell" >&6; }
4443
4444
4445{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4446echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4447lt_shell_append=no
4448( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4449 >/dev/null 2>&1 \
4450 && lt_shell_append=yes
4451{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4452echo "${ECHO_T}$lt_shell_append" >&6; }
4453
4454
4455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4456 lt_unset=unset
4457else
4458 lt_unset=false
4459fi
4460
4461
4462
4463
4464
4465# test EBCDIC or ASCII
4466case `echo X|tr X '\101'` in
4467 A) # ASCII based system
4468 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4469 lt_SP2NL='tr \040 \012'
4470 lt_NL2SP='tr \015\012 \040\040'
4471 ;;
4472 *) # EBCDIC based system
4473 lt_SP2NL='tr \100 \n'
4474 lt_NL2SP='tr \r\n \100\100'
4475 ;;
4476esac
4477
4478
4479
4480
4481
4482
4483
4484
4485
Lev Walkin4da95cf2010-10-16 02:46:32 -07004486{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4487echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4488if test "${lt_cv_ld_reload_flag+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 lt_cv_ld_reload_flag='-r'
4492fi
4493{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4494echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4495reload_flag=$lt_cv_ld_reload_flag
4496case $reload_flag in
4497"" | " "*) ;;
4498*) reload_flag=" $reload_flag" ;;
4499esac
4500reload_cmds='$LD$reload_flag -o $output$reload_objs'
4501case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004502 darwin*)
4503 if test "$GCC" = yes; then
4504 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4505 else
4506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4507 fi
4508 ;;
4509esac
4510
4511
4512
4513
4514
4515
4516
4517
4518
Lev Walkin4da95cf2010-10-16 02:46:32 -07004519
4520{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4521echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004522if test "${lt_cv_deplibs_check_method+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525 lt_cv_file_magic_cmd='$MAGIC_CMD'
4526lt_cv_file_magic_test_file=
4527lt_cv_deplibs_check_method='unknown'
4528# Need to set the preceding variable on all platforms that support
4529# interlibrary dependencies.
4530# 'none' -- dependencies not supported.
4531# `unknown' -- same as none, but documents that we really don't know.
4532# 'pass_all' -- all dependencies passed with no checks.
4533# 'test_compile' -- check by making test program.
4534# 'file_magic [[regex]]' -- check by looking for files in library path
4535# which responds to the $file_magic_cmd with a given extended regex.
4536# If you have `file' or equivalent on your system and you're not sure
4537# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00004538
Lev Walkin8e8b5482004-06-17 23:42:48 +00004539case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004540aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004541 lt_cv_deplibs_check_method=pass_all
4542 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004543
Lev Walkin8e8b5482004-06-17 23:42:48 +00004544beos*)
4545 lt_cv_deplibs_check_method=pass_all
4546 ;;
4547
Lev Walkinfbf1d282007-12-03 14:58:39 +00004548bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4550 lt_cv_file_magic_cmd='/usr/bin/file -L'
4551 lt_cv_file_magic_test_file=/shlib/libc.so
4552 ;;
4553
4554cygwin*)
4555 # func_win32_libid is a shell function defined in ltmain.sh
4556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4557 lt_cv_file_magic_cmd='func_win32_libid'
4558 ;;
4559
4560mingw* | pw32*)
4561 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07004562 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4563 # unless we find 'file', for example because we are cross-compiling.
Lev Walkin4c776e52010-11-08 02:07:31 -08004564 if ( file / ) >/dev/null 2>&1; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4566 lt_cv_file_magic_cmd='func_win32_libid'
4567 else
Lev Walkin4c776e52010-11-08 02:07:31 -08004568 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Lev Walkin4da95cf2010-10-16 02:46:32 -07004569 lt_cv_file_magic_cmd='$OBJDUMP -f'
4570 fi
4571 ;;
4572
Lev Walkin8e8b5482004-06-17 23:42:48 +00004573darwin* | rhapsody*)
4574 lt_cv_deplibs_check_method=pass_all
4575 ;;
4576
Lev Walkin4da95cf2010-10-16 02:46:32 -07004577freebsd* | dragonfly*)
4578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004579 case $host_cpu in
4580 i*86 )
4581 # Not sure whether the presence of OpenBSD here was a mistake.
4582 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00004583 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 +00004584 lt_cv_file_magic_cmd=/usr/bin/file
4585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4586 ;;
4587 esac
4588 else
4589 lt_cv_deplibs_check_method=pass_all
4590 fi
4591 ;;
4592
4593gnu*)
4594 lt_cv_deplibs_check_method=pass_all
4595 ;;
4596
4597hpux10.20* | hpux11*)
4598 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00004599 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00004600 ia64*)
4601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4603 ;;
4604 hppa*64*)
Lev Walkin4c776e52010-11-08 02:07:31 -08004605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4607 ;;
4608 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08004609 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 +00004610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4611 ;;
4612 esac
4613 ;;
4614
Lev Walkin4da95cf2010-10-16 02:46:32 -07004615interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4618 ;;
4619
Lev Walkin8e8b5482004-06-17 23:42:48 +00004620irix5* | irix6* | nonstopux*)
4621 case $LD in
4622 *-32|*"-32 ") libmagic=32-bit;;
4623 *-n32|*"-n32 ") libmagic=N32;;
4624 *-64|*"-64 ") libmagic=64-bit;;
4625 *) libmagic=never-match;;
4626 esac
4627 lt_cv_deplibs_check_method=pass_all
4628 ;;
4629
4630# This must be Linux ELF.
Lev Walkin4c776e52010-11-08 02:07:31 -08004631linux* | k*bsd*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004632 lt_cv_deplibs_check_method=pass_all
4633 ;;
4634
4635netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4638 else
4639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4640 fi
4641 ;;
4642
4643newos6*)
4644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4645 lt_cv_file_magic_cmd=/usr/bin/file
4646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4647 ;;
4648
Lev Walkin4da95cf2010-10-16 02:46:32 -07004649*nto* | *qnx*)
4650 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00004651 ;;
4652
4653openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004654 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 +00004655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004656 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004658 fi
4659 ;;
4660
4661osf3* | osf4* | osf5*)
4662 lt_cv_deplibs_check_method=pass_all
4663 ;;
4664
Lev Walkin4da95cf2010-10-16 02:46:32 -07004665rdos*)
4666 lt_cv_deplibs_check_method=pass_all
4667 ;;
4668
Lev Walkin8e8b5482004-06-17 23:42:48 +00004669solaris*)
4670 lt_cv_deplibs_check_method=pass_all
4671 ;;
4672
Lev Walkin4da95cf2010-10-16 02:46:32 -07004673sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4674 lt_cv_deplibs_check_method=pass_all
4675 ;;
4676
Lev Walkinfbf1d282007-12-03 14:58:39 +00004677sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004678 case $host_vendor in
4679 motorola)
4680 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]'
4681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4682 ;;
4683 ncr)
4684 lt_cv_deplibs_check_method=pass_all
4685 ;;
4686 sequent)
4687 lt_cv_file_magic_cmd='/bin/file'
4688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4689 ;;
4690 sni)
4691 lt_cv_file_magic_cmd='/bin/file'
4692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4693 lt_cv_file_magic_test_file=/lib/libc.so
4694 ;;
4695 siemens)
4696 lt_cv_deplibs_check_method=pass_all
4697 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00004698 pc)
4699 lt_cv_deplibs_check_method=pass_all
4700 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00004701 esac
4702 ;;
4703
Lev Walkin4da95cf2010-10-16 02:46:32 -07004704tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004705 lt_cv_deplibs_check_method=pass_all
4706 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004707esac
4708
Lev Walkin8e8b5482004-06-17 23:42:48 +00004709fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004710{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4711echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004712file_magic_cmd=$lt_cv_file_magic_cmd
4713deplibs_check_method=$lt_cv_deplibs_check_method
4714test -z "$deplibs_check_method" && deplibs_check_method=unknown
4715
4716
4717
4718
Lev Walkin4da95cf2010-10-16 02:46:32 -07004719
4720
4721
4722
4723
4724
4725
4726
Lev Walkin4da95cf2010-10-16 02:46:32 -07004727if test -n "$ac_tool_prefix"; then
Lev Walkin4c776e52010-11-08 02:07:31 -08004728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4729set dummy ${ac_tool_prefix}ar; ac_word=$2
Lev Walkin4da95cf2010-10-16 02:46:32 -07004730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_prog_AR+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 if test -n "$AR"; then
4736 ac_cv_prog_AR="$AR" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_AR="${ac_tool_prefix}ar"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749done
4750done
4751IFS=$as_save_IFS
4752
4753fi
4754fi
4755AR=$ac_cv_prog_AR
4756if test -n "$AR"; then
4757 { echo "$as_me:$LINENO: result: $AR" >&5
4758echo "${ECHO_T}$AR" >&6; }
4759else
4760 { echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6; }
4762fi
4763
4764
Lev Walkin4da95cf2010-10-16 02:46:32 -07004765fi
Lev Walkin4c776e52010-11-08 02:07:31 -08004766if test -z "$ac_cv_prog_AR"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004767 ac_ct_AR=$AR
Lev Walkin4c776e52010-11-08 02:07:31 -08004768 # Extract the first word of "ar", so it can be a program name with args.
4769set dummy ar; ac_word=$2
Lev Walkin4da95cf2010-10-16 02:46:32 -07004770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 if test -n "$ac_ct_AR"; then
4776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_ac_ct_AR="ar"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789done
4790done
4791IFS=$as_save_IFS
4792
4793fi
4794fi
4795ac_ct_AR=$ac_cv_prog_ac_ct_AR
4796if test -n "$ac_ct_AR"; then
4797 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4798echo "${ECHO_T}$ac_ct_AR" >&6; }
4799else
4800 { echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6; }
4802fi
4803
Lev Walkin4da95cf2010-10-16 02:46:32 -07004804 if test "x$ac_ct_AR" = x; then
4805 AR="false"
4806 else
4807 case $cross_compiling:$ac_tool_warned in
4808yes:)
4809{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4810whose name does not start with the host triplet. If you think this
4811configuration is useful to you, please write to autoconf@gnu.org." >&5
4812echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4813whose name does not start with the host triplet. If you think this
4814configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4815ac_tool_warned=yes ;;
4816esac
4817 AR=$ac_ct_AR
4818 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004819else
Lev Walkin4c776e52010-11-08 02:07:31 -08004820 AR="$ac_cv_prog_AR"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004821fi
4822
Lev Walkin4c776e52010-11-08 02:07:31 -08004823test -z "$AR" && AR=ar
4824test -z "$AR_FLAGS" && AR_FLAGS=cru
Lev Walkin4da95cf2010-10-16 02:46:32 -07004825
Lev Walkin4da95cf2010-10-16 02:46:32 -07004826
Lev Walkin4c776e52010-11-08 02:07:31 -08004827
4828
Lev Walkin4da95cf2010-10-16 02:46:32 -07004829
4830
4831
4832
4833
4834
4835
4836if test -n "$ac_tool_prefix"; then
4837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4838set dummy ${ac_tool_prefix}strip; ac_word=$2
4839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841if test "${ac_cv_prog_STRIP+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844 if test -n "$STRIP"; then
4845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4846else
4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004854 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4857 fi
4858done
4859done
4860IFS=$as_save_IFS
4861
4862fi
4863fi
4864STRIP=$ac_cv_prog_STRIP
4865if test -n "$STRIP"; then
4866 { echo "$as_me:$LINENO: result: $STRIP" >&5
4867echo "${ECHO_T}$STRIP" >&6; }
4868else
4869 { echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6; }
4871fi
4872
4873
4874fi
4875if test -z "$ac_cv_prog_STRIP"; then
4876 ac_ct_STRIP=$STRIP
4877 # Extract the first word of "strip", so it can be a program name with args.
4878set dummy strip; ac_word=$2
4879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883else
4884 if test -n "$ac_ct_STRIP"; then
4885 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4886else
4887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH
4889do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004894 ac_cv_prog_ac_ct_STRIP="strip"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898done
4899done
4900IFS=$as_save_IFS
4901
4902fi
4903fi
4904ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4905if test -n "$ac_ct_STRIP"; then
4906 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4907echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4908else
4909 { echo "$as_me:$LINENO: result: no" >&5
4910echo "${ECHO_T}no" >&6; }
4911fi
4912
4913 if test "x$ac_ct_STRIP" = x; then
4914 STRIP=":"
4915 else
4916 case $cross_compiling:$ac_tool_warned in
4917yes:)
4918{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4919whose name does not start with the host triplet. If you think this
4920configuration is useful to you, please write to autoconf@gnu.org." >&5
4921echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4922whose name does not start with the host triplet. If you think this
4923configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4924ac_tool_warned=yes ;;
4925esac
4926 STRIP=$ac_ct_STRIP
4927 fi
4928else
4929 STRIP="$ac_cv_prog_STRIP"
4930fi
4931
4932test -z "$STRIP" && STRIP=:
4933
4934
4935
4936
4937
4938
4939if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944if test "${ac_cv_prog_RANLIB+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 if test -n "$RANLIB"; then
4948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962done
4963IFS=$as_save_IFS
4964
4965fi
4966fi
4967RANLIB=$ac_cv_prog_RANLIB
4968if test -n "$RANLIB"; then
4969 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4970echo "${ECHO_T}$RANLIB" >&6; }
4971else
4972 { echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6; }
4974fi
4975
4976
4977fi
4978if test -z "$ac_cv_prog_RANLIB"; then
4979 ac_ct_RANLIB=$RANLIB
4980 # Extract the first word of "ranlib", so it can be a program name with args.
4981set dummy ranlib; ac_word=$2
4982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987 if test -n "$ac_ct_RANLIB"; then
4988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4989else
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004997 ac_cv_prog_ac_ct_RANLIB="ranlib"
4998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001done
5002done
5003IFS=$as_save_IFS
5004
5005fi
5006fi
5007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5008if test -n "$ac_ct_RANLIB"; then
5009 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5010echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5011else
5012 { echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6; }
5014fi
5015
5016 if test "x$ac_ct_RANLIB" = x; then
5017 RANLIB=":"
5018 else
5019 case $cross_compiling:$ac_tool_warned in
5020yes:)
5021{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5022whose name does not start with the host triplet. If you think this
5023configuration is useful to you, please write to autoconf@gnu.org." >&5
5024echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5025whose name does not start with the host triplet. If you think this
5026configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5027ac_tool_warned=yes ;;
5028esac
5029 RANLIB=$ac_ct_RANLIB
5030 fi
5031else
5032 RANLIB="$ac_cv_prog_RANLIB"
5033fi
5034
5035test -z "$RANLIB" && RANLIB=:
5036
5037
5038
5039
5040
5041
5042# Determine commands to create old-style static archives.
5043old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5044old_postinstall_cmds='chmod 644 $oldlib'
5045old_postuninstall_cmds=
5046
5047if test -n "$RANLIB"; then
5048 case $host_os in
5049 openbsd*)
5050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5051 ;;
5052 *)
5053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5054 ;;
5055 esac
5056 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5057fi
5058
Lev Walkin4da95cf2010-10-16 02:46:32 -07005059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
Lev Walkin8e8b5482004-06-17 23:42:48 +00005092# If no C compiler was specified, use CC.
5093LTCC=${LTCC-"$CC"}
5094
Lev Walkinfbf1d282007-12-03 14:58:39 +00005095# If no C compiler flags were specified, use CFLAGS.
5096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5097
Lev Walkin8e8b5482004-06-17 23:42:48 +00005098# Allow CC to be a program name with arguments.
5099compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005100
5101
Lev Walkin4da95cf2010-10-16 02:46:32 -07005102# Check for command to grab the raw symbol name followed by C symbol from nm.
5103{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5104echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5105if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108
5109# These are sane defaults that work on at least a few old systems.
5110# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5111
5112# Character class describing NM global symbol codes.
5113symcode='[BCDEGRST]'
5114
5115# Regexp to match symbols that can be accessed directly from C.
5116sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5117
5118# Define system-specific variables.
5119case $host_os in
5120aix*)
5121 symcode='[BCDT]'
5122 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08005123cygwin* | mingw* | pw32*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005124 symcode='[ABCDGISTW]'
5125 ;;
5126hpux*)
5127 if test "$host_cpu" = ia64; then
5128 symcode='[ABCDEGRST]'
5129 fi
5130 ;;
5131irix* | nonstopux*)
5132 symcode='[BCDEGRST]'
5133 ;;
5134osf*)
5135 symcode='[BCDEGQRST]'
5136 ;;
5137solaris*)
5138 symcode='[BDRT]'
5139 ;;
5140sco3.2v5*)
5141 symcode='[DT]'
5142 ;;
5143sysv4.2uw2*)
5144 symcode='[DT]'
5145 ;;
5146sysv5* | sco5v6* | unixware* | OpenUNIX*)
5147 symcode='[ABDT]'
5148 ;;
5149sysv4)
5150 symcode='[DFNSTU]'
5151 ;;
5152esac
5153
5154# If we're using GNU nm, then use its standard symbol codes.
5155case `$NM -V 2>&1` in
5156*GNU* | *'with BFD'*)
5157 symcode='[ABCDGIRSTW]' ;;
5158esac
5159
5160# Transform an extracted symbol line into a proper C declaration.
5161# Some systems (esp. on ia64) link data and code symbols differently,
5162# so use this general approach.
5163lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5164
5165# Transform an extracted symbol line into symbol name and symbol address
Lev Walkin4c776e52010-11-08 02:07:31 -08005166lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5167lt_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'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005168
5169# Handle CRLF in mingw tool chain
5170opt_cr=
5171case $build_os in
5172mingw*)
5173 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5174 ;;
5175esac
5176
5177# Try without a prefix underscore, then with it.
5178for ac_symprfx in "" "_"; do
5179
5180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5181 symxfrm="\\1 $ac_symprfx\\2 \\2"
5182
5183 # Write the raw and C identifiers.
5184 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5185 # Fake it for dumpbin and say T for any non-static function
5186 # and D for any global variable.
5187 # Also find C++ and __fastcall symbols from MSVC++,
5188 # which start with @ or ?.
5189 lt_cv_sys_global_symbol_pipe="$AWK '"\
5190" {last_section=section; section=\$ 3};"\
5191" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5192" \$ 0!~/External *\|/{next};"\
5193" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5194" {if(hide[section]) next};"\
5195" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5196" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5197" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5198" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5199" ' prfx=^$ac_symprfx"
5200 else
5201 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5202 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07005203
5204 # Check to see that the pipe works correctly.
5205 pipe_works=no
5206
Lev Walkin4c776e52010-11-08 02:07:31 -08005207 rm -r -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07005208 cat > conftest.$ac_ext <<_LT_EOF
5209#ifdef __cplusplus
5210extern "C" {
5211#endif
5212char nm_test_var;
5213void nm_test_func(void);
5214void nm_test_func(void){}
5215#ifdef __cplusplus
5216}
5217#endif
5218int main(){nm_test_var='a';nm_test_func();return(0);}
5219_LT_EOF
5220
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; then
5226 # Now try to grab the symbols.
5227 nlist=conftest.nm
Lev Walkin4c776e52010-11-08 02:07:31 -08005228 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5229 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && test -s "$nlist"; then
5233 # Try sorting and uniquifying the output.
5234 if sort "$nlist" | uniq > "$nlist"T; then
5235 mv -f "$nlist"T "$nlist"
5236 else
5237 rm -f "$nlist"T
5238 fi
5239
5240 # Make sure that we snagged all the symbols we need.
5241 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5242 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5243 cat <<_LT_EOF > conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07005244#ifdef __cplusplus
5245extern "C" {
5246#endif
5247
5248_LT_EOF
5249 # Now generate the symbol file.
5250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5251
5252 cat <<_LT_EOF >> conftest.$ac_ext
5253
5254/* The mapping between symbol names and symbols. */
Lev Walkin4c776e52010-11-08 02:07:31 -08005255const struct {
Lev Walkin4da95cf2010-10-16 02:46:32 -07005256 const char *name;
5257 void *address;
5258}
5259lt__PROGRAM__LTX_preloaded_symbols[] =
5260{
5261 { "@PROGRAM@", (void *) 0 },
5262_LT_EOF
5263 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5264 cat <<\_LT_EOF >> conftest.$ac_ext
5265 {0, (void *) 0}
5266};
5267
5268/* This works around a problem in FreeBSD linker */
5269#ifdef FREEBSD_WORKAROUND
5270static const void *lt_preloaded_setup() {
5271 return lt__PROGRAM__LTX_preloaded_symbols;
5272}
5273#endif
5274
5275#ifdef __cplusplus
5276}
5277#endif
5278_LT_EOF
5279 # Now try linking the two files.
5280 mv conftest.$ac_objext conftstm.$ac_objext
Lev Walkin4c776e52010-11-08 02:07:31 -08005281 lt_save_LIBS="$LIBS"
5282 lt_save_CFLAGS="$CFLAGS"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005283 LIBS="conftstm.$ac_objext"
5284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5286 (eval $ac_link) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5290 pipe_works=yes
5291 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08005292 LIBS="$lt_save_LIBS"
5293 CFLAGS="$lt_save_CFLAGS"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005294 else
5295 echo "cannot find nm_test_func in $nlist" >&5
5296 fi
5297 else
5298 echo "cannot find nm_test_var in $nlist" >&5
5299 fi
5300 else
5301 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5302 fi
5303 else
5304 echo "$progname: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5306 fi
5307 rm -rf conftest* conftst*
5308
5309 # Do not use the global_symbol_pipe unless it works.
5310 if test "$pipe_works" = yes; then
5311 break
5312 else
5313 lt_cv_sys_global_symbol_pipe=
5314 fi
5315done
5316
5317fi
5318
5319if test -z "$lt_cv_sys_global_symbol_pipe"; then
5320 lt_cv_sys_global_symbol_to_cdecl=
5321fi
5322if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5323 { echo "$as_me:$LINENO: result: failed" >&5
5324echo "${ECHO_T}failed" >&6; }
5325else
5326 { echo "$as_me:$LINENO: result: ok" >&5
5327echo "${ECHO_T}ok" >&6; }
5328fi
5329
Lev Walkin4da95cf2010-10-16 02:46:32 -07005330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
Lev Walkin27fd0b62007-08-27 23:57:45 +00005352# Check whether --enable-libtool-lock was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00005353if test "${enable_libtool_lock+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00005354 enableval=$enable_libtool_lock;
5355fi
Lev Walkinf15320b2004-06-03 03:38:44 +00005356
Lev Walkin8e8b5482004-06-17 23:42:48 +00005357test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00005358
5359# Some flags need to be propagated to the compiler or linker for good
5360# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005361case $host in
5362ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00005363 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005364 echo 'int i;' > conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00005365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005370 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005371 *ELF-32*)
5372 HPUX_IA64_MODE="32"
5373 ;;
5374 *ELF-64*)
5375 HPUX_IA64_MODE="64"
5376 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005377 esac
5378 fi
5379 rm -rf conftest*
5380 ;;
5381*-*-irix6*)
5382 # Find out which ABI we are using.
Lev Walkine7c4b962010-11-09 03:10:36 -08005383 echo '#line 5383 "configure"' > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00005384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005389 if test "$lt_cv_prog_gnu_ld" = yes; then
5390 case `/usr/bin/file conftest.$ac_objext` in
5391 *32-bit*)
5392 LD="${LD-ld} -melf32bsmip"
5393 ;;
5394 *N32*)
5395 LD="${LD-ld} -melf32bmipn32"
5396 ;;
5397 *64-bit*)
5398 LD="${LD-ld} -melf64bmip"
5399 ;;
5400 esac
5401 else
5402 case `/usr/bin/file conftest.$ac_objext` in
5403 *32-bit*)
5404 LD="${LD-ld} -32"
5405 ;;
5406 *N32*)
5407 LD="${LD-ld} -n32"
5408 ;;
5409 *64-bit*)
5410 LD="${LD-ld} -64"
5411 ;;
5412 esac
5413 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00005414 fi
5415 rm -rf conftest*
5416 ;;
5417
Lev Walkin4da95cf2010-10-16 02:46:32 -07005418x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5419s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005420 # Find out which ABI we are using.
5421 echo 'int i;' > conftest.$ac_ext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00005427 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005428 *32-bit*)
5429 case $host in
5430 x86_64-*kfreebsd*-gnu)
5431 LD="${LD-ld} -m elf_i386_fbsd"
5432 ;;
5433 x86_64-*linux*)
5434 LD="${LD-ld} -m elf_i386"
5435 ;;
5436 ppc64-*linux*|powerpc64-*linux*)
5437 LD="${LD-ld} -m elf32ppclinux"
5438 ;;
5439 s390x-*linux*)
5440 LD="${LD-ld} -m elf_s390"
5441 ;;
5442 sparc64-*linux*)
5443 LD="${LD-ld} -m elf32_sparc"
5444 ;;
5445 esac
5446 ;;
5447 *64-bit*)
5448 case $host in
5449 x86_64-*kfreebsd*-gnu)
5450 LD="${LD-ld} -m elf_x86_64_fbsd"
5451 ;;
5452 x86_64-*linux*)
5453 LD="${LD-ld} -m elf_x86_64"
5454 ;;
5455 ppc*-*linux*|powerpc*-*linux*)
5456 LD="${LD-ld} -m elf64ppc"
5457 ;;
5458 s390*-*linux*|s390*-*tpf*)
5459 LD="${LD-ld} -m elf64_s390"
5460 ;;
5461 sparc*-*linux*)
5462 LD="${LD-ld} -m elf64_sparc"
5463 ;;
5464 esac
5465 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005466 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00005467 fi
5468 rm -rf conftest*
5469 ;;
5470
5471*-*-sco3.2v5*)
5472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5473 SAVE_CFLAGS="$CFLAGS"
5474 CFLAGS="$CFLAGS -belf"
Lev Walkin27fd0b62007-08-27 23:57:45 +00005475 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5476echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00005477if test "${lt_cv_cc_needs_belf+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479else
Lev Walkin8e8b5482004-06-17 23:42:48 +00005480 ac_ext=c
5481ac_cpp='$CPP $CPPFLAGS'
5482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485
5486 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00005487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
5492
5493int
5494main ()
5495{
5496
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005502if { (ac_try="$ac_link"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00005509 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00005510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00005513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08005514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest$ac_exeext &&
5518 $as_test_x conftest$ac_exeext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00005519 lt_cv_cc_needs_belf=yes
5520else
5521 echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
Lev Walkin27fd0b62007-08-27 23:57:45 +00005524 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00005525fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005526
Lev Walkin4c776e52010-11-08 02:07:31 -08005527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00005528 conftest$ac_exeext conftest.$ac_ext
5529 ac_ext=c
5530ac_cpp='$CPP $CPPFLAGS'
5531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
Lev Walkinf15320b2004-06-03 03:38:44 +00005535fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005536{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5537echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00005538 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5539 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5540 CFLAGS="$SAVE_CFLAGS"
5541 fi
5542 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005543sparc*-*solaris*)
5544 # Find out which ABI we are using.
5545 echo 'int i;' > conftest.$ac_ext
5546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5547 (eval $ac_compile) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; then
5551 case `/usr/bin/file conftest.o` in
5552 *64-bit*)
5553 case $lt_cv_prog_gnu_ld in
5554 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07005555 *)
5556 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5557 LD="${LD-ld} -64"
5558 fi
5559 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005560 esac
5561 ;;
5562 esac
5563 fi
5564 rm -rf conftest*
5565 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005566esac
5567
Lev Walkin8e8b5482004-06-17 23:42:48 +00005568need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00005569
Lev Walkin4da95cf2010-10-16 02:46:32 -07005570
5571 case $host_os in
5572 rhapsody* | darwin*)
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5575set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5578if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581 if test -n "$DSYMUTIL"; then
5582 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005591 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595done
5596done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601DSYMUTIL=$ac_cv_prog_DSYMUTIL
5602if test -n "$DSYMUTIL"; then
5603 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5604echo "${ECHO_T}$DSYMUTIL" >&6; }
5605else
5606 { echo "$as_me:$LINENO: result: no" >&5
5607echo "${ECHO_T}no" >&6; }
5608fi
5609
5610
5611fi
5612if test -z "$ac_cv_prog_DSYMUTIL"; then
5613 ac_ct_DSYMUTIL=$DSYMUTIL
5614 # Extract the first word of "dsymutil", so it can be a program name with args.
5615set dummy dsymutil; ac_word=$2
5616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5618if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 if test -n "$ac_ct_DSYMUTIL"; then
5622 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005631 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635done
5636done
5637IFS=$as_save_IFS
5638
5639fi
5640fi
5641ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5642if test -n "$ac_ct_DSYMUTIL"; then
5643 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5644echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5645else
5646 { echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6; }
5648fi
5649
5650 if test "x$ac_ct_DSYMUTIL" = x; then
5651 DSYMUTIL=":"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654yes:)
5655{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5656whose name does not start with the host triplet. If you think this
5657configuration is useful to you, please write to autoconf@gnu.org." >&5
5658echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5659whose name does not start with the host triplet. If you think this
5660configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5661ac_tool_warned=yes ;;
5662esac
5663 DSYMUTIL=$ac_ct_DSYMUTIL
5664 fi
5665else
5666 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5667fi
5668
5669 if test -n "$ac_tool_prefix"; then
5670 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5671set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5674if test "${ac_cv_prog_NMEDIT+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677 if test -n "$NMEDIT"; then
5678 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5679else
5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005687 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5690 fi
5691done
5692done
5693IFS=$as_save_IFS
5694
5695fi
5696fi
5697NMEDIT=$ac_cv_prog_NMEDIT
5698if test -n "$NMEDIT"; then
5699 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5700echo "${ECHO_T}$NMEDIT" >&6; }
5701else
5702 { echo "$as_me:$LINENO: result: no" >&5
5703echo "${ECHO_T}no" >&6; }
5704fi
5705
5706
5707fi
5708if test -z "$ac_cv_prog_NMEDIT"; then
5709 ac_ct_NMEDIT=$NMEDIT
5710 # Extract the first word of "nmedit", so it can be a program name with args.
5711set dummy nmedit; ac_word=$2
5712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 if test -n "$ac_ct_NMEDIT"; then
5718 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005727 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731done
5732done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5738if test -n "$ac_ct_NMEDIT"; then
5739 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5740echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5741else
5742 { echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6; }
5744fi
5745
5746 if test "x$ac_ct_NMEDIT" = x; then
5747 NMEDIT=":"
5748 else
5749 case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5752whose name does not start with the host triplet. If you think this
5753configuration is useful to you, please write to autoconf@gnu.org." >&5
5754echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5755whose name does not start with the host triplet. If you think this
5756configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5757ac_tool_warned=yes ;;
5758esac
5759 NMEDIT=$ac_ct_NMEDIT
5760 fi
5761else
5762 NMEDIT="$ac_cv_prog_NMEDIT"
5763fi
5764
5765 if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5767set dummy ${ac_tool_prefix}lipo; ac_word=$2
5768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5770if test "${ac_cv_prog_LIPO+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 if test -n "$LIPO"; then
5774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005783 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787done
5788done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793LIPO=$ac_cv_prog_LIPO
5794if test -n "$LIPO"; then
5795 { echo "$as_me:$LINENO: result: $LIPO" >&5
5796echo "${ECHO_T}$LIPO" >&6; }
5797else
5798 { echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6; }
5800fi
5801
5802
5803fi
5804if test -z "$ac_cv_prog_LIPO"; then
5805 ac_ct_LIPO=$LIPO
5806 # Extract the first word of "lipo", so it can be a program name with args.
5807set dummy lipo; ac_word=$2
5808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813 if test -n "$ac_ct_LIPO"; then
5814 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005823 ac_cv_prog_ac_ct_LIPO="lipo"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827done
5828done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5834if test -n "$ac_ct_LIPO"; then
5835 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5836echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5837else
5838 { echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6; }
5840fi
5841
5842 if test "x$ac_ct_LIPO" = x; then
5843 LIPO=":"
5844 else
5845 case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5848whose name does not start with the host triplet. If you think this
5849configuration is useful to you, please write to autoconf@gnu.org." >&5
5850echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5851whose name does not start with the host triplet. If you think this
5852configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5853ac_tool_warned=yes ;;
5854esac
5855 LIPO=$ac_ct_LIPO
5856 fi
5857else
5858 LIPO="$ac_cv_prog_LIPO"
5859fi
5860
5861 if test -n "$ac_tool_prefix"; then
5862 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5863set dummy ${ac_tool_prefix}otool; ac_word=$2
5864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866if test "${ac_cv_prog_OTOOL+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 if test -n "$OTOOL"; then
5870 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005879 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883done
5884done
5885IFS=$as_save_IFS
5886
5887fi
5888fi
5889OTOOL=$ac_cv_prog_OTOOL
5890if test -n "$OTOOL"; then
5891 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5892echo "${ECHO_T}$OTOOL" >&6; }
5893else
5894 { echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6; }
5896fi
5897
5898
5899fi
5900if test -z "$ac_cv_prog_OTOOL"; then
5901 ac_ct_OTOOL=$OTOOL
5902 # Extract the first word of "otool", so it can be a program name with args.
5903set dummy otool; ac_word=$2
5904{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909 if test -n "$ac_ct_OTOOL"; then
5910 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005919 ac_cv_prog_ac_ct_OTOOL="otool"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923done
5924done
5925IFS=$as_save_IFS
5926
5927fi
5928fi
5929ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5930if test -n "$ac_ct_OTOOL"; then
5931 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5932echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5933else
5934 { echo "$as_me:$LINENO: result: no" >&5
5935echo "${ECHO_T}no" >&6; }
5936fi
5937
5938 if test "x$ac_ct_OTOOL" = x; then
5939 OTOOL=":"
5940 else
5941 case $cross_compiling:$ac_tool_warned in
5942yes:)
5943{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5944whose name does not start with the host triplet. If you think this
5945configuration is useful to you, please write to autoconf@gnu.org." >&5
5946echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5947whose name does not start with the host triplet. If you think this
5948configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5949ac_tool_warned=yes ;;
5950esac
5951 OTOOL=$ac_ct_OTOOL
5952 fi
5953else
5954 OTOOL="$ac_cv_prog_OTOOL"
5955fi
5956
5957 if test -n "$ac_tool_prefix"; then
5958 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5959set dummy ${ac_tool_prefix}otool64; ac_word=$2
5960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962if test "${ac_cv_prog_OTOOL64+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964else
5965 if test -n "$OTOOL64"; then
5966 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5967else
5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005975 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980done
5981IFS=$as_save_IFS
5982
5983fi
5984fi
5985OTOOL64=$ac_cv_prog_OTOOL64
5986if test -n "$OTOOL64"; then
5987 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5988echo "${ECHO_T}$OTOOL64" >&6; }
5989else
5990 { echo "$as_me:$LINENO: result: no" >&5
5991echo "${ECHO_T}no" >&6; }
5992fi
5993
5994
5995fi
5996if test -z "$ac_cv_prog_OTOOL64"; then
5997 ac_ct_OTOOL64=$OTOOL64
5998 # Extract the first word of "otool64", so it can be a program name with args.
5999set dummy otool64; ac_word=$2
6000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 if test -n "$ac_ct_OTOOL64"; then
6006 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08006014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006015 ac_cv_prog_ac_ct_OTOOL64="otool64"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019done
6020done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6026if test -n "$ac_ct_OTOOL64"; then
6027 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6028echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6029else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6; }
6032fi
6033
6034 if test "x$ac_ct_OTOOL64" = x; then
6035 OTOOL64=":"
6036 else
6037 case $cross_compiling:$ac_tool_warned in
6038yes:)
6039{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet. If you think this
6041configuration is useful to you, please write to autoconf@gnu.org." >&5
6042echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043whose name does not start with the host triplet. If you think this
6044configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045ac_tool_warned=yes ;;
6046esac
6047 OTOOL64=$ac_ct_OTOOL64
6048 fi
6049else
6050 OTOOL64="$ac_cv_prog_OTOOL64"
6051fi
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6080echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6081if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083else
6084 lt_cv_apple_cc_single_mod=no
6085 if test -z "${LT_MULTI_MODULE}"; then
6086 # By default we will add the -single_module flag. You can override
6087 # by either setting the environment variable LT_MULTI_MODULE
6088 # non-empty at configure time, or by adding -multi_module to the
6089 # link flags.
6090 rm -rf libconftest.dylib*
6091 echo "int foo(void){return 1;}" > conftest.c
6092 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6093-dynamiclib -Wl,-single_module conftest.c" >&5
6094 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6095 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6096 _lt_result=$?
6097 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6098 lt_cv_apple_cc_single_mod=yes
6099 else
6100 cat conftest.err >&5
6101 fi
6102 rm -rf libconftest.dylib*
6103 rm -f conftest.*
6104 fi
6105fi
6106{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6107echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6108 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6109echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6110if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113 lt_cv_ld_exported_symbols_list=no
6114 save_LDFLAGS=$LDFLAGS
6115 echo "_main" > conftest.sym
6116 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6117 cat >conftest.$ac_ext <<_ACEOF
6118/* confdefs.h. */
6119_ACEOF
6120cat confdefs.h >>conftest.$ac_ext
6121cat >>conftest.$ac_ext <<_ACEOF
6122/* end confdefs.h. */
6123
6124int
6125main ()
6126{
6127
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132rm -f conftest.$ac_objext conftest$ac_exeext
6133if { (ac_try="$ac_link"
6134case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137esac
6138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_link") 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest$ac_exeext &&
6149 $as_test_x conftest$ac_exeext; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006150 lt_cv_ld_exported_symbols_list=yes
6151else
6152 echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 lt_cv_ld_exported_symbols_list=no
6156fi
6157
Lev Walkin4c776e52010-11-08 02:07:31 -08006158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07006159 conftest$ac_exeext conftest.$ac_ext
6160 LDFLAGS="$save_LDFLAGS"
6161
6162fi
6163{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6164echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006165 case $host_os in
6166 rhapsody* | darwin1.[012])
6167 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6168 darwin1.*)
6169 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6170 darwin*) # darwin 5.x on
6171 # if running on 10.5 or later, the deployment target defaults
6172 # to the OS version, if on x86, and 10.4, the deployment
6173 # target defaults to 10.4. Don't you love it?
6174 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6175 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6176 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6177 10.[012]*)
6178 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6179 10.*)
6180 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6181 esac
6182 ;;
6183 esac
6184 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6185 _lt_dar_single_mod='$single_module'
6186 fi
6187 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6188 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6189 else
6190 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6191 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08006192 if test "$DSYMUTIL" != ":"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006193 _lt_dsymutil='~$DSYMUTIL $lib || :'
6194 else
6195 _lt_dsymutil=
6196 fi
6197 ;;
6198 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006199
Lev Walkin8e8b5482004-06-17 23:42:48 +00006200ac_ext=c
6201ac_cpp='$CPP $CPPFLAGS'
6202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +00006205{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6206echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006207# On Suns, sometimes $CPP names a directory.
6208if test -n "$CPP" && test -d "$CPP"; then
6209 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00006210fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006211if test -z "$CPP"; then
6212 if test "${ac_cv_prog_CPP+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 # Double quotes because CPP needs to be expanded
6216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6217 do
6218 ac_preproc_ok=false
6219for ac_c_preproc_warn_flag in '' yes
6220do
6221 # Use a header file that comes with gcc, so configuring glibc
6222 # with a fresh cross-compiler works.
6223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224 # <limits.h> exists even on freestanding compilers.
6225 # On the NeXT, cc -E runs the code through the compiler's parser,
6226 # not just through cpp. "Syntax error" is here to catch this case.
6227 cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
6233#ifdef __STDC__
6234# include <limits.h>
6235#else
6236# include <assert.h>
6237#endif
6238 Syntax error
6239_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006240if { (ac_try="$ac_cpp conftest.$ac_ext"
6241case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244esac
6245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006252 (exit $ac_status); } >/dev/null && {
6253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6255 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006256 :
6257else
6258 echo "$as_me: failed program was:" >&5
6259sed 's/^/| /' conftest.$ac_ext >&5
6260
6261 # Broken: fails on valid input.
6262continue
6263fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006264
Lev Walkin8e8b5482004-06-17 23:42:48 +00006265rm -f conftest.err conftest.$ac_ext
6266
Lev Walkin27fd0b62007-08-27 23:57:45 +00006267 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00006268 # can be detected and how.
6269 cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h. */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h. */
6275#include <ac_nonexistent.h>
6276_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006277if { (ac_try="$ac_cpp conftest.$ac_ext"
6278case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281esac
6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006289 (exit $ac_status); } >/dev/null && {
6290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006293 # Broken: success on invalid input.
6294continue
6295else
6296 echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 # Passes both tests.
6300ac_preproc_ok=:
6301break
6302fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006303
Lev Walkin8e8b5482004-06-17 23:42:48 +00006304rm -f conftest.err conftest.$ac_ext
6305
6306done
6307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6308rm -f conftest.err conftest.$ac_ext
6309if $ac_preproc_ok; then
6310 break
6311fi
6312
6313 done
6314 ac_cv_prog_CPP=$CPP
6315
6316fi
6317 CPP=$ac_cv_prog_CPP
6318else
6319 ac_cv_prog_CPP=$CPP
6320fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006321{ echo "$as_me:$LINENO: result: $CPP" >&5
6322echo "${ECHO_T}$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006323ac_preproc_ok=false
6324for ac_c_preproc_warn_flag in '' yes
6325do
6326 # Use a header file that comes with gcc, so configuring glibc
6327 # with a fresh cross-compiler works.
6328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6329 # <limits.h> exists even on freestanding compilers.
6330 # On the NeXT, cc -E runs the code through the compiler's parser,
6331 # not just through cpp. "Syntax error" is here to catch this case.
6332 cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h. */
6338#ifdef __STDC__
6339# include <limits.h>
6340#else
6341# include <assert.h>
6342#endif
6343 Syntax error
6344_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006345if { (ac_try="$ac_cpp conftest.$ac_ext"
6346case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349esac
6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006357 (exit $ac_status); } >/dev/null && {
6358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006361 :
6362else
6363 echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 # Broken: fails on valid input.
6367continue
6368fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006369
Lev Walkin8e8b5482004-06-17 23:42:48 +00006370rm -f conftest.err conftest.$ac_ext
6371
Lev Walkin27fd0b62007-08-27 23:57:45 +00006372 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00006373 # can be detected and how.
6374 cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
6380#include <ac_nonexistent.h>
6381_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006382if { (ac_try="$ac_cpp conftest.$ac_ext"
6383case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386esac
6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006394 (exit $ac_status); } >/dev/null && {
6395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6396 test ! -s conftest.err
6397 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006398 # Broken: success on invalid input.
6399continue
6400else
6401 echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 # Passes both tests.
6405ac_preproc_ok=:
6406break
6407fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006408
Lev Walkin8e8b5482004-06-17 23:42:48 +00006409rm -f conftest.err conftest.$ac_ext
6410
6411done
6412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6413rm -f conftest.err conftest.$ac_ext
6414if $ac_preproc_ok; then
6415 :
6416else
6417 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6418See \`config.log' for more details." >&5
6419echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6420See \`config.log' for more details." >&2;}
6421 { (exit 1); exit 1; }; }
6422fi
6423
6424ac_ext=c
6425ac_cpp='$CPP $CPPFLAGS'
6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429
6430
Lev Walkin27fd0b62007-08-27 23:57:45 +00006431{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6432echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006433if test "${ac_cv_header_stdc+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436 cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h. */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h. */
6442#include <stdlib.h>
6443#include <stdarg.h>
6444#include <string.h>
6445#include <float.h>
6446
6447int
6448main ()
6449{
6450
6451 ;
6452 return 0;
6453}
6454_ACEOF
6455rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006456if { (ac_try="$ac_compile"
6457case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460esac
6461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006472 ac_cv_header_stdc=yes
6473else
6474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
Lev Walkin27fd0b62007-08-27 23:57:45 +00006477 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006478fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006479
6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006481
6482if test $ac_cv_header_stdc = yes; then
6483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6484 cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
6490#include <string.h>
6491
6492_ACEOF
6493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6494 $EGREP "memchr" >/dev/null 2>&1; then
6495 :
6496else
6497 ac_cv_header_stdc=no
6498fi
Lev Walkin4c776e52010-11-08 02:07:31 -08006499rm -f -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00006500
6501fi
6502
6503if test $ac_cv_header_stdc = yes; then
6504 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6505 cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h. */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h. */
6511#include <stdlib.h>
6512
6513_ACEOF
6514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515 $EGREP "free" >/dev/null 2>&1; then
6516 :
6517else
6518 ac_cv_header_stdc=no
6519fi
Lev Walkin4c776e52010-11-08 02:07:31 -08006520rm -f -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00006521
6522fi
6523
6524if test $ac_cv_header_stdc = yes; then
6525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6526 if test "$cross_compiling" = yes; then
6527 :
6528else
6529 cat >conftest.$ac_ext <<_ACEOF
6530/* confdefs.h. */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h. */
6535#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00006536#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00006537#if ((' ' & 0x0FF) == 0x020)
6538# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6539# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6540#else
6541# define ISLOWER(c) \
6542 (('a' <= (c) && (c) <= 'i') \
6543 || ('j' <= (c) && (c) <= 'r') \
6544 || ('s' <= (c) && (c) <= 'z'))
6545# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6546#endif
6547
6548#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6549int
6550main ()
6551{
6552 int i;
6553 for (i = 0; i < 256; i++)
6554 if (XOR (islower (i), ISLOWER (i))
6555 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00006556 return 2;
6557 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006558}
6559_ACEOF
6560rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006561if { (ac_try="$ac_link"
6562case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565esac
6566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_link") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00006571 { (case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574esac
6575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 :
6581else
6582 echo "$as_me: program exited with status $ac_status" >&5
6583echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586( exit $ac_status )
6587ac_cv_header_stdc=no
6588fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6590fi
6591
6592
Lev Walkin8e8b5482004-06-17 23:42:48 +00006593fi
6594fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006595{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6596echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006597if test $ac_cv_header_stdc = yes; then
6598
6599cat >>confdefs.h <<\_ACEOF
6600#define STDC_HEADERS 1
6601_ACEOF
6602
6603fi
6604
6605# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6616 inttypes.h stdint.h unistd.h
6617do
6618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +00006619{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624 cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h. */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h. */
6630$ac_includes_default
6631
6632#include <$ac_header>
6633_ACEOF
6634rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006635if { (ac_try="$ac_compile"
6636case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006642 ac_status=$?
6643 grep -v '^ *+' conftest.er1 >conftest.err
6644 rm -f conftest.er1
6645 cat conftest.err >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006647 (exit $ac_status); } && {
6648 test -z "$ac_c_werror_flag" ||
6649 test ! -s conftest.err
6650 } && test -s conftest.$ac_objext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006651 eval "$as_ac_Header=yes"
6652else
6653 echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
Lev Walkin27fd0b62007-08-27 23:57:45 +00006656 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006657fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006658
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006660fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006661ac_res=`eval echo '${'$as_ac_Header'}'`
6662 { echo "$as_me:$LINENO: result: $ac_res" >&5
6663echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006664if test `eval echo '${'$as_ac_Header'}'` = yes; then
6665 cat >>confdefs.h <<_ACEOF
6666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667_ACEOF
6668
6669fi
6670
6671done
6672
6673
6674
6675for ac_header in dlfcn.h
6676do
6677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin4da95cf2010-10-16 02:46:32 -07006678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006681 echo $ECHO_N "(cached) $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00006682else
Lev Walkin4da95cf2010-10-16 02:46:32 -07006683 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00006684/* confdefs.h. */
6685_ACEOF
6686cat confdefs.h >>conftest.$ac_ext
6687cat >>conftest.$ac_ext <<_ACEOF
6688/* end confdefs.h. */
6689$ac_includes_default
Lev Walkin4da95cf2010-10-16 02:46:32 -07006690
Lev Walkin8e8b5482004-06-17 23:42:48 +00006691#include <$ac_header>
6692_ACEOF
6693rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006694if { (ac_try="$ac_compile"
6695case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698esac
6699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006710 eval "$as_ac_Header=yes"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006711else
6712 echo "$as_me: failed program was:" >&5
6713sed 's/^/| /' conftest.$ac_ext >&5
6714
Lev Walkin4da95cf2010-10-16 02:46:32 -07006715 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006716fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006717
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006719fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006720ac_res=`eval echo '${'$as_ac_Header'}'`
6721 { echo "$as_me:$LINENO: result: $ac_res" >&5
6722echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006723if test `eval echo '${'$as_ac_Header'}'` = yes; then
6724 cat >>confdefs.h <<_ACEOF
6725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6726_ACEOF
6727
6728fi
6729
6730done
6731
Lev Walkin8e8b5482004-06-17 23:42:48 +00006732
Lev Walkin8e8b5482004-06-17 23:42:48 +00006733
Lev Walkin4da95cf2010-10-16 02:46:32 -07006734# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00006735
Lev Walkin27fd0b62007-08-27 23:57:45 +00006736
Lev Walkin8e8b5482004-06-17 23:42:48 +00006737
Lev Walkin4da95cf2010-10-16 02:46:32 -07006738 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006739
Lev Walkin8e8b5482004-06-17 23:42:48 +00006740
Lev Walkin4da95cf2010-10-16 02:46:32 -07006741 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006742
Lev Walkin8e8b5482004-06-17 23:42:48 +00006743
Lev Walkin4da95cf2010-10-16 02:46:32 -07006744 # Check whether --enable-shared was given.
6745if test "${enable_shared+set}" = set; then
6746 enableval=$enable_shared; p=${PACKAGE-default}
6747 case $enableval in
6748 yes) enable_shared=yes ;;
6749 no) enable_shared=no ;;
6750 *)
6751 enable_shared=no
6752 # Look at the argument we got. We use all the common list separators.
6753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6754 for pkg in $enableval; do
6755 IFS="$lt_save_ifs"
6756 if test "X$pkg" = "X$p"; then
6757 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00006758 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07006759 done
6760 IFS="$lt_save_ifs"
6761 ;;
6762 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00006763else
Lev Walkin4da95cf2010-10-16 02:46:32 -07006764 enable_shared=yes
6765fi
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775 # Check whether --enable-static was given.
6776if test "${enable_static+set}" = set; then
6777 enableval=$enable_static; p=${PACKAGE-default}
6778 case $enableval in
6779 yes) enable_static=yes ;;
6780 no) enable_static=no ;;
6781 *)
6782 enable_static=no
6783 # Look at the argument we got. We use all the common list separators.
6784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6785 for pkg in $enableval; do
6786 IFS="$lt_save_ifs"
6787 if test "X$pkg" = "X$p"; then
6788 enable_static=yes
6789 fi
6790 done
6791 IFS="$lt_save_ifs"
6792 ;;
6793 esac
6794else
6795 enable_static=yes
6796fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807# Check whether --with-pic was given.
6808if test "${with_pic+set}" = set; then
6809 withval=$with_pic; pic_mode="$withval"
6810else
6811 pic_mode=default
6812fi
6813
6814
6815test -z "$pic_mode" && pic_mode=default
6816
6817
6818
6819
6820
6821
6822
6823 # Check whether --enable-fast-install was given.
6824if test "${enable_fast_install+set}" = set; then
6825 enableval=$enable_fast_install; p=${PACKAGE-default}
6826 case $enableval in
6827 yes) enable_fast_install=yes ;;
6828 no) enable_fast_install=no ;;
6829 *)
6830 enable_fast_install=no
6831 # Look at the argument we got. We use all the common list separators.
6832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6833 for pkg in $enableval; do
6834 IFS="$lt_save_ifs"
6835 if test "X$pkg" = "X$p"; then
6836 enable_fast_install=yes
6837 fi
6838 done
6839 IFS="$lt_save_ifs"
6840 ;;
6841 esac
6842else
6843 enable_fast_install=yes
6844fi
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856# This can be used to rebuild libtool when needed
6857LIBTOOL_DEPS="$ltmain"
6858
6859# Always use our own libtool.
6860LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
Lev Walkin4da95cf2010-10-16 02:46:32 -07006886test -z "$LN_S" && LN_S="ln -s"
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901if test -n "${ZSH_VERSION+set}" ; then
6902 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00006903fi
6904
Lev Walkin27fd0b62007-08-27 23:57:45 +00006905{ echo "$as_me:$LINENO: checking for objdir" >&5
6906echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006907if test "${lt_cv_objdir+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909else
6910 rm -f .libs 2>/dev/null
6911mkdir .libs 2>/dev/null
6912if test -d .libs; then
6913 lt_cv_objdir=.libs
6914else
6915 # MS-DOS does not allow filenames that begin with a dot.
6916 lt_cv_objdir=_libs
6917fi
6918rmdir .libs 2>/dev/null
6919fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006920{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6921echo "${ECHO_T}$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006922objdir=$lt_cv_objdir
6923
6924
6925
6926
6927
Lev Walkin4da95cf2010-10-16 02:46:32 -07006928cat >>confdefs.h <<_ACEOF
6929#define LT_OBJDIR "$lt_cv_objdir/"
6930_ACEOF
6931
6932
6933
6934
Lev Walkin4c776e52010-11-08 02:07:31 -08006935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
Lev Walkin8e8b5482004-06-17 23:42:48 +00006948case $host_os in
6949aix3*)
6950 # AIX sometimes has problems with the GCC collect2 program. For some
6951 # reason, if we set the COLLECT_NAMES environment variable, the problems
6952 # vanish in a puff of smoke.
6953 if test "X${COLLECT_NAMES+set}" != Xset; then
6954 COLLECT_NAMES=
6955 export COLLECT_NAMES
6956 fi
6957 ;;
6958esac
6959
Lev Walkin4c776e52010-11-08 02:07:31 -08006960# Sed substitution that helps us do robust quoting. It backslashifies
6961# metacharacters that are still active within double-quoted strings.
6962sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6963
6964# Same as above, but do not quote variable references.
6965double_quote_subst='s/\(["`\\]\)/\\\1/g'
6966
6967# Sed substitution to delay expansion of an escaped shell variable in a
6968# double_quote_subst'ed string.
6969delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6970
6971# Sed substitution to delay expansion of an escaped single quote.
6972delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6973
6974# Sed substitution to avoid accidental globbing in evaled expressions
6975no_glob_subst='s/\*/\\\*/g'
6976
Lev Walkin8e8b5482004-06-17 23:42:48 +00006977# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07006978ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00006979can_build_shared=yes
6980
Lev Walkinfbf1d282007-12-03 14:58:39 +00006981# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00006982# which needs '.lib').
6983libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07006984
Lev Walkin8e8b5482004-06-17 23:42:48 +00006985with_gnu_ld="$lt_cv_prog_gnu_ld"
6986
Lev Walkin8e8b5482004-06-17 23:42:48 +00006987old_CC="$CC"
6988old_CFLAGS="$CFLAGS"
6989
6990# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00006991test -z "$CC" && CC=cc
6992test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00006993test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00006994test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00006995test -z "$ac_objext" && ac_objext=o
6996
Lev Walkinfbf1d282007-12-03 14:58:39 +00006997for cc_temp in $compiler""; do
6998 case $cc_temp in
6999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7001 \-*) ;;
7002 *) break;;
7003 esac
7004done
Lev Walkin4c776e52010-11-08 02:07:31 -08007005cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007006
7007
Lev Walkin8e8b5482004-06-17 23:42:48 +00007008# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007009test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007010case $deplibs_check_method in
7011file_magic*)
7012 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007013 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7014echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007015if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 case $MAGIC_CMD in
7019[\\/*] | ?:[\\/]*)
7020 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7021 ;;
7022*)
7023 lt_save_MAGIC_CMD="$MAGIC_CMD"
7024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7025 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7026 for ac_dir in $ac_dummy; do
7027 IFS="$lt_save_ifs"
7028 test -z "$ac_dir" && ac_dir=.
7029 if test -f $ac_dir/${ac_tool_prefix}file; then
7030 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7031 if test -n "$file_magic_test_file"; then
7032 case $deplibs_check_method in
7033 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007034 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7036 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7037 $EGREP "$file_magic_regex" > /dev/null; then
7038 :
7039 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007040 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007041
7042*** Warning: the command libtool uses to detect shared libraries,
7043*** $file_magic_cmd, produces output that libtool cannot recognize.
7044*** The result is that libtool may fail to recognize shared libraries
7045*** as such. This will affect the creation of libtool libraries that
7046*** depend on shared libraries, but programs linked with such libtool
7047*** libraries will work regardless of this problem. Nevertheless, you
7048*** may want to report the problem to your system manager and/or to
7049*** bug-libtool@gnu.org
7050
Lev Walkin4da95cf2010-10-16 02:46:32 -07007051_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007052 fi ;;
7053 esac
7054 fi
7055 break
7056 fi
7057 done
7058 IFS="$lt_save_ifs"
7059 MAGIC_CMD="$lt_save_MAGIC_CMD"
7060 ;;
7061esac
7062fi
7063
7064MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7065if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007066 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7067echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007068else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007069 { echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007071fi
7072
Lev Walkin4da95cf2010-10-16 02:46:32 -07007073
7074
7075
7076
Lev Walkin8e8b5482004-06-17 23:42:48 +00007077if test -z "$lt_cv_path_MAGIC_CMD"; then
7078 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007079 { echo "$as_me:$LINENO: checking for file" >&5
7080echo $ECHO_N "checking for file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007081if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084 case $MAGIC_CMD in
7085[\\/*] | ?:[\\/]*)
7086 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7087 ;;
7088*)
7089 lt_save_MAGIC_CMD="$MAGIC_CMD"
7090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7091 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7092 for ac_dir in $ac_dummy; do
7093 IFS="$lt_save_ifs"
7094 test -z "$ac_dir" && ac_dir=.
7095 if test -f $ac_dir/file; then
7096 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7097 if test -n "$file_magic_test_file"; then
7098 case $deplibs_check_method in
7099 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007100 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007101 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7102 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7103 $EGREP "$file_magic_regex" > /dev/null; then
7104 :
7105 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007106 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007107
7108*** Warning: the command libtool uses to detect shared libraries,
7109*** $file_magic_cmd, produces output that libtool cannot recognize.
7110*** The result is that libtool may fail to recognize shared libraries
7111*** as such. This will affect the creation of libtool libraries that
7112*** depend on shared libraries, but programs linked with such libtool
7113*** libraries will work regardless of this problem. Nevertheless, you
7114*** may want to report the problem to your system manager and/or to
7115*** bug-libtool@gnu.org
7116
Lev Walkin4da95cf2010-10-16 02:46:32 -07007117_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007118 fi ;;
7119 esac
7120 fi
7121 break
7122 fi
7123 done
7124 IFS="$lt_save_ifs"
7125 MAGIC_CMD="$lt_save_MAGIC_CMD"
7126 ;;
7127esac
7128fi
7129
7130MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7131if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007132 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7133echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007134else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007135 { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007137fi
7138
Lev Walkin4da95cf2010-10-16 02:46:32 -07007139
Lev Walkin8e8b5482004-06-17 23:42:48 +00007140 else
7141 MAGIC_CMD=:
7142 fi
7143fi
7144
7145 fi
7146 ;;
7147esac
7148
Lev Walkin8e8b5482004-06-17 23:42:48 +00007149# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07007150
Lev Walkin8e8b5482004-06-17 23:42:48 +00007151lt_save_CC="$CC"
7152ac_ext=c
7153ac_cpp='$CPP $CPPFLAGS'
7154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157
7158
7159# Source file extension for C test sources.
7160ac_ext=c
7161
7162# Object file extension for compiled C test sources.
7163objext=o
7164objext=$objext
7165
7166# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007167lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007168
7169# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007170lt_simple_link_test_code='int main(){return(0);}'
7171
7172
7173
7174
7175
Lev Walkin8e8b5482004-06-17 23:42:48 +00007176
7177
7178# If no C compiler was specified, use CC.
7179LTCC=${LTCC-"$CC"}
7180
Lev Walkinfbf1d282007-12-03 14:58:39 +00007181# If no C compiler flags were specified, use CFLAGS.
7182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7183
Lev Walkin8e8b5482004-06-17 23:42:48 +00007184# Allow CC to be a program name with arguments.
7185compiler=$CC
7186
Lev Walkin4da95cf2010-10-16 02:46:32 -07007187# Save the default compiler, since it gets overwritten when the other
7188# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7189compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00007190
Lev Walkinfbf1d282007-12-03 14:58:39 +00007191# save warnings/boilerplate of simple test code
7192ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007193echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007194eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7195_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkin4c776e52010-11-08 02:07:31 -08007196$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007197
Lev Walkinfbf1d282007-12-03 14:58:39 +00007198ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007199echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007200eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7201_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007202$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007203
7204
Lev Walkine7c4b962010-11-09 03:10:36 -08007205## CAVEAT EMPTOR:
7206## There is no encapsulation within the following macros, do not change
7207## the running order or otherwise move them around unless you know exactly
7208## what you are doing...
Lev Walkin4da95cf2010-10-16 02:46:32 -07007209if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007210
7211lt_prog_compiler_no_builtin_flag=
7212
7213if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08007214 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
Lev Walkin8e8b5482004-06-17 23:42:48 +00007215
Lev Walkin4da95cf2010-10-16 02:46:32 -07007216 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007217echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007218if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007222 ac_outfile=conftest.$ac_objext
7223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007224 lt_compiler_flag="-fno-rtti -fno-exceptions"
7225 # Insert the option either (1) after the last *FLAGS variable, or
7226 # (2) before a word containing "conftest.", or (3) at the end.
7227 # Note that $ac_compile itself does not contain backslashes and begins
7228 # with a dollar sign (not a hyphen), so the echo should work correctly.
7229 # The option is referenced via a variable to avoid confusing sed.
7230 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7233 -e 's:$: $lt_compiler_flag:'`
Lev Walkine7c4b962010-11-09 03:10:36 -08007234 (eval echo "\"\$as_me:7234: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007235 (eval "$lt_compile" 2>conftest.err)
7236 ac_status=$?
7237 cat conftest.err >&5
Lev Walkine7c4b962010-11-09 03:10:36 -08007238 echo "$as_me:7238: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007239 if (exit $ac_status) && test -s "$ac_outfile"; then
7240 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00007241 # So say no if there are warnings other than the usual output.
Lev Walkin4c776e52010-11-08 02:07:31 -08007242 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7244 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007245 lt_cv_prog_compiler_rtti_exceptions=yes
7246 fi
7247 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08007248 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007249
7250fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007251{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7252echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007253
7254if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7255 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7256else
7257 :
7258fi
7259
7260fi
7261
Lev Walkin4da95cf2010-10-16 02:46:32 -07007262
7263
7264
7265
7266
7267 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007268lt_prog_compiler_pic=
7269lt_prog_compiler_static=
7270
Lev Walkin4c776e52010-11-08 02:07:31 -08007271{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7272echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007273
7274 if test "$GCC" = yes; then
7275 lt_prog_compiler_wl='-Wl,'
7276 lt_prog_compiler_static='-static'
7277
7278 case $host_os in
7279 aix*)
7280 # All AIX code is PIC.
7281 if test "$host_cpu" = ia64; then
7282 # AIX 5 now supports IA64 processor
7283 lt_prog_compiler_static='-Bstatic'
7284 fi
7285 ;;
7286
7287 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007288 case $host_cpu in
7289 powerpc)
7290 # see comment about AmigaOS4 .so support
7291 lt_prog_compiler_pic='-fPIC'
7292 ;;
7293 m68k)
7294 # FIXME: we need at least 68020 code to build shared libraries, but
7295 # adding the `-m68020' flag to GCC prevents building anything better,
7296 # like `-m68040'.
7297 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7298 ;;
7299 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007300 ;;
7301
Lev Walkin4da95cf2010-10-16 02:46:32 -07007302 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007303 # PIC is the default for these OSes.
7304 ;;
7305
Lev Walkin4c776e52010-11-08 02:07:31 -08007306 mingw* | cygwin* | pw32* | os2*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007307 # This hack is so that the source file can tell whether it is being
7308 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07007309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7310 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00007311 lt_prog_compiler_pic='-DDLL_EXPORT'
7312 ;;
7313
7314 darwin* | rhapsody*)
7315 # PIC is the default on this platform
7316 # Common symbols not allowed in MH_DYLIB files
7317 lt_prog_compiler_pic='-fno-common'
7318 ;;
7319
Lev Walkin4da95cf2010-10-16 02:46:32 -07007320 hpux*)
Lev Walkin4c776e52010-11-08 02:07:31 -08007321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7322 # not for PA HP-UX.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007323 case $host_cpu in
Lev Walkin4c776e52010-11-08 02:07:31 -08007324 hppa*64*|ia64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007325 # +Z the default
7326 ;;
7327 *)
7328 lt_prog_compiler_pic='-fPIC'
7329 ;;
7330 esac
7331 ;;
7332
7333 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7335 # Instead, we relocate shared libraries at runtime.
7336 ;;
7337
Lev Walkin8e8b5482004-06-17 23:42:48 +00007338 msdosdjgpp*)
7339 # Just because we use GCC doesn't mean we suddenly get shared libraries
7340 # on systems that don't support them.
7341 lt_prog_compiler_can_build_shared=no
7342 enable_shared=no
7343 ;;
7344
Lev Walkin4da95cf2010-10-16 02:46:32 -07007345 *nto* | *qnx*)
7346 # QNX uses GNU C++, but need to define -shared option too, otherwise
7347 # it will coredump.
7348 lt_prog_compiler_pic='-fPIC -shared'
7349 ;;
7350
Lev Walkin8e8b5482004-06-17 23:42:48 +00007351 sysv4*MP*)
7352 if test -d /usr/nec; then
7353 lt_prog_compiler_pic=-Kconform_pic
7354 fi
7355 ;;
7356
Lev Walkin8e8b5482004-06-17 23:42:48 +00007357 *)
7358 lt_prog_compiler_pic='-fPIC'
7359 ;;
7360 esac
7361 else
7362 # PORTME Check for flag to pass linker flags through the system compiler.
7363 case $host_os in
7364 aix*)
7365 lt_prog_compiler_wl='-Wl,'
7366 if test "$host_cpu" = ia64; then
7367 # AIX 5 now supports IA64 processor
7368 lt_prog_compiler_static='-Bstatic'
7369 else
7370 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7371 fi
7372 ;;
7373
Lev Walkin4c776e52010-11-08 02:07:31 -08007374 mingw* | cygwin* | pw32* | os2*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007375 # This hack is so that the source file can tell whether it is being
7376 # built for inclusion in a dll (and should export symbols for example).
7377 lt_prog_compiler_pic='-DDLL_EXPORT'
7378 ;;
7379
7380 hpux9* | hpux10* | hpux11*)
7381 lt_prog_compiler_wl='-Wl,'
7382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7383 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00007384 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007385 hppa*64*|ia64*)
7386 # +Z the default
7387 ;;
7388 *)
7389 lt_prog_compiler_pic='+Z'
7390 ;;
7391 esac
7392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7393 lt_prog_compiler_static='${wl}-a ${wl}archive'
7394 ;;
7395
7396 irix5* | irix6* | nonstopux*)
7397 lt_prog_compiler_wl='-Wl,'
7398 # PIC (with -KPIC) is the default.
7399 lt_prog_compiler_static='-non_shared'
7400 ;;
7401
Lev Walkin4c776e52010-11-08 02:07:31 -08007402 linux* | k*bsd*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007403 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08007404 icc* | ecc* | ifort*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007405 lt_prog_compiler_wl='-Wl,'
7406 lt_prog_compiler_pic='-KPIC'
7407 lt_prog_compiler_static='-static'
7408 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007409 pgcc* | pgf77* | pgf90* | pgf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007410 # Portland Group compilers (*not* the Pentium gcc compiler,
7411 # which looks to be a dead project)
7412 lt_prog_compiler_wl='-Wl,'
7413 lt_prog_compiler_pic='-fpic'
7414 lt_prog_compiler_static='-Bstatic'
7415 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007416 ccc*)
7417 lt_prog_compiler_wl='-Wl,'
7418 # All Alpha code is PIC.
7419 lt_prog_compiler_static='-non_shared'
7420 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007421 xl*)
7422 # IBM XL C 8.0/Fortran 10.1 on PPC
Lev Walkin4da95cf2010-10-16 02:46:32 -07007423 lt_prog_compiler_wl='-Wl,'
7424 lt_prog_compiler_pic='-qpic'
7425 lt_prog_compiler_static='-qstaticlink'
7426 ;;
7427 *)
7428 case `$CC -V 2>&1 | sed 5q` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07007429 *Sun\ C*)
7430 # Sun C 5.9
7431 lt_prog_compiler_pic='-KPIC'
7432 lt_prog_compiler_static='-Bstatic'
7433 lt_prog_compiler_wl='-Wl,'
7434 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007435 *Sun\ F*)
7436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-Bstatic'
7439 lt_prog_compiler_wl=''
7440 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07007441 esac
7442 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007443 esac
7444 ;;
7445
Lev Walkin4da95cf2010-10-16 02:46:32 -07007446 newsos6)
7447 lt_prog_compiler_pic='-KPIC'
7448 lt_prog_compiler_static='-Bstatic'
7449 ;;
7450
7451 *nto* | *qnx*)
7452 # QNX uses GNU C++, but need to define -shared option too, otherwise
7453 # it will coredump.
7454 lt_prog_compiler_pic='-fPIC -shared'
7455 ;;
7456
Lev Walkin8e8b5482004-06-17 23:42:48 +00007457 osf3* | osf4* | osf5*)
7458 lt_prog_compiler_wl='-Wl,'
7459 # All OSF/1 code is PIC.
7460 lt_prog_compiler_static='-non_shared'
7461 ;;
7462
Lev Walkin4da95cf2010-10-16 02:46:32 -07007463 rdos*)
7464 lt_prog_compiler_static='-non_shared'
7465 ;;
7466
Lev Walkin8e8b5482004-06-17 23:42:48 +00007467 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007468 lt_prog_compiler_pic='-KPIC'
7469 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007470 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08007471 f77* | f90* | f95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007472 lt_prog_compiler_wl='-Qoption ld ';;
7473 *)
7474 lt_prog_compiler_wl='-Wl,';;
7475 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007476 ;;
7477
7478 sunos4*)
7479 lt_prog_compiler_wl='-Qoption ld '
7480 lt_prog_compiler_pic='-PIC'
7481 lt_prog_compiler_static='-Bstatic'
7482 ;;
7483
Lev Walkinfbf1d282007-12-03 14:58:39 +00007484 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007485 lt_prog_compiler_wl='-Wl,'
7486 lt_prog_compiler_pic='-KPIC'
7487 lt_prog_compiler_static='-Bstatic'
7488 ;;
7489
7490 sysv4*MP*)
7491 if test -d /usr/nec ;then
7492 lt_prog_compiler_pic='-Kconform_pic'
7493 lt_prog_compiler_static='-Bstatic'
7494 fi
7495 ;;
7496
Lev Walkinfbf1d282007-12-03 14:58:39 +00007497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7498 lt_prog_compiler_wl='-Wl,'
7499 lt_prog_compiler_pic='-KPIC'
7500 lt_prog_compiler_static='-Bstatic'
7501 ;;
7502
7503 unicos*)
7504 lt_prog_compiler_wl='-Wl,'
7505 lt_prog_compiler_can_build_shared=no
7506 ;;
7507
Lev Walkin8e8b5482004-06-17 23:42:48 +00007508 uts4*)
7509 lt_prog_compiler_pic='-pic'
7510 lt_prog_compiler_static='-Bstatic'
7511 ;;
7512
7513 *)
7514 lt_prog_compiler_can_build_shared=no
7515 ;;
7516 esac
7517 fi
7518
Lev Walkinfbf1d282007-12-03 14:58:39 +00007519case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007520 # For platforms which do not support PIC, -DPIC is meaningless:
7521 *djgpp*)
7522 lt_prog_compiler_pic=
7523 ;;
7524 *)
7525 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7526 ;;
7527esac
Lev Walkin4c776e52010-11-08 02:07:31 -08007528{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7529echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007530
Lev Walkin4c776e52010-11-08 02:07:31 -08007531
7532
7533
7534
Lev Walkin4da95cf2010-10-16 02:46:32 -07007535
7536#
7537# Check to make sure the PIC flag actually works.
7538#
7539if test -n "$lt_prog_compiler_pic"; then
7540 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7541echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7542if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544else
7545 lt_cv_prog_compiler_pic_works=no
7546 ac_outfile=conftest.$ac_objext
7547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7548 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7549 # Insert the option either (1) after the last *FLAGS variable, or
7550 # (2) before a word containing "conftest.", or (3) at the end.
7551 # Note that $ac_compile itself does not contain backslashes and begins
7552 # with a dollar sign (not a hyphen), so the echo should work correctly.
7553 # The option is referenced via a variable to avoid confusing sed.
7554 lt_compile=`echo "$ac_compile" | $SED \
7555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7557 -e 's:$: $lt_compiler_flag:'`
Lev Walkine7c4b962010-11-09 03:10:36 -08007558 (eval echo "\"\$as_me:7558: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007559 (eval "$lt_compile" 2>conftest.err)
7560 ac_status=$?
7561 cat conftest.err >&5
Lev Walkine7c4b962010-11-09 03:10:36 -08007562 echo "$as_me:7562: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07007563 if (exit $ac_status) && test -s "$ac_outfile"; then
7564 # The compiler can only warn and ignore the option if not recognized
7565 # So say no if there are warnings other than the usual output.
Lev Walkin4c776e52010-11-08 02:07:31 -08007566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07007567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7569 lt_cv_prog_compiler_pic_works=yes
7570 fi
7571 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08007572 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007573
7574fi
7575{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7576echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7577
7578if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7579 case $lt_prog_compiler_pic in
7580 "" | " "*) ;;
7581 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7582 esac
7583else
7584 lt_prog_compiler_pic=
7585 lt_prog_compiler_can_build_shared=no
7586fi
7587
7588fi
7589
7590
7591
7592
7593
7594
Lev Walkinfbf1d282007-12-03 14:58:39 +00007595#
7596# Check to make sure the static flag actually works.
7597#
7598wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7599{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7600echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007601if test "${lt_cv_prog_compiler_static_works+set}" = set; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00007602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007604 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00007605 save_LDFLAGS="$LDFLAGS"
7606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07007607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7609 # The linker can only warn and ignore the option if not recognized
7610 # So say no if there are warnings
7611 if test -s conftest.err; then
7612 # Append any errors to the config.log.
7613 cat conftest.err 1>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007614 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7616 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007617 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00007618 fi
7619 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007620 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00007621 fi
7622 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007623 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00007624 LDFLAGS="$save_LDFLAGS"
7625
7626fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007627{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7628echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00007629
Lev Walkin4da95cf2010-10-16 02:46:32 -07007630if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00007631 :
7632else
7633 lt_prog_compiler_static=
7634fi
7635
7636
Lev Walkin4da95cf2010-10-16 02:46:32 -07007637
7638
7639
7640
7641
7642 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007643echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007644if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007648 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00007649 mkdir conftest
7650 cd conftest
7651 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07007652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007653
7654 lt_compiler_flag="-o out/conftest2.$ac_objext"
7655 # Insert the option either (1) after the last *FLAGS variable, or
7656 # (2) before a word containing "conftest.", or (3) at the end.
7657 # Note that $ac_compile itself does not contain backslashes and begins
7658 # with a dollar sign (not a hyphen), so the echo should work correctly.
7659 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7662 -e 's:$: $lt_compiler_flag:'`
Lev Walkine7c4b962010-11-09 03:10:36 -08007663 (eval echo "\"\$as_me:7663: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007664 (eval "$lt_compile" 2>out/conftest.err)
7665 ac_status=$?
7666 cat out/conftest.err >&5
Lev Walkine7c4b962010-11-09 03:10:36 -08007667 echo "$as_me:7667: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7669 then
7670 # The compiler can only warn and ignore the option if not recognized
7671 # So say no if there are warnings
Lev Walkin4c776e52010-11-08 02:07:31 -08007672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007675 lt_cv_prog_compiler_c_o=yes
7676 fi
7677 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00007678 chmod u+w . 2>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007679 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007680 # SGI C++ compiler will create directory out/ii_files/ for
7681 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07007682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7683 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00007684 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07007685 $RM -r conftest
Lev Walkin4c776e52010-11-08 02:07:31 -08007686 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007687
7688fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007689{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7690echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007691
7692
Lev Walkin4da95cf2010-10-16 02:46:32 -07007693
7694
7695
7696
7697 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7698echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7699if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702 lt_cv_prog_compiler_c_o=no
7703 $RM -r conftest 2>/dev/null
7704 mkdir conftest
7705 cd conftest
7706 mkdir out
7707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7708
7709 lt_compiler_flag="-o out/conftest2.$ac_objext"
7710 # Insert the option either (1) after the last *FLAGS variable, or
7711 # (2) before a word containing "conftest.", or (3) at the end.
7712 # Note that $ac_compile itself does not contain backslashes and begins
7713 # with a dollar sign (not a hyphen), so the echo should work correctly.
7714 lt_compile=`echo "$ac_compile" | $SED \
7715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7717 -e 's:$: $lt_compiler_flag:'`
Lev Walkine7c4b962010-11-09 03:10:36 -08007718 (eval echo "\"\$as_me:7718: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007719 (eval "$lt_compile" 2>out/conftest.err)
7720 ac_status=$?
7721 cat out/conftest.err >&5
Lev Walkine7c4b962010-11-09 03:10:36 -08007722 echo "$as_me:7722: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07007723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7724 then
7725 # The compiler can only warn and ignore the option if not recognized
7726 # So say no if there are warnings
Lev Walkin4c776e52010-11-08 02:07:31 -08007727 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07007728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7730 lt_cv_prog_compiler_c_o=yes
7731 fi
7732 fi
7733 chmod u+w . 2>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007734 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007735 # SGI C++ compiler will create directory out/ii_files/ for
7736 # template instantiation
7737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7738 $RM out/* && rmdir out
7739 cd ..
7740 $RM -r conftest
Lev Walkin4c776e52010-11-08 02:07:31 -08007741 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007742
7743fi
7744{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7745echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7746
7747
7748
7749
Lev Walkin8e8b5482004-06-17 23:42:48 +00007750hard_links="nottested"
7751if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7752 # do not overwrite the value of need_locks provided by the user
Lev Walkin27fd0b62007-08-27 23:57:45 +00007753 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7754echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007755 hard_links=yes
Lev Walkin4c776e52010-11-08 02:07:31 -08007756 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7758 touch conftest.a
7759 ln conftest.a conftest.b 2>&5 || hard_links=no
7760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00007761 { echo "$as_me:$LINENO: result: $hard_links" >&5
7762echo "${ECHO_T}$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007763 if test "$hard_links" = no; then
7764 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7765echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7766 need_locks=warn
7767 fi
7768else
7769 need_locks=no
7770fi
7771
Lev Walkin4da95cf2010-10-16 02:46:32 -07007772
7773
7774
7775
7776
7777 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007778echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007779
7780 runpath_var=
7781 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007782 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007783 archive_cmds=
7784 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007785 compiler_needs_object=no
7786 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007787 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7789 hardcode_automatic=no
7790 hardcode_direct=no
7791 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007792 hardcode_libdir_flag_spec=
7793 hardcode_libdir_flag_spec_ld=
7794 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007795 hardcode_minus_L=no
7796 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07007797 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007798 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00007799 module_cmds=
7800 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007801 old_archive_from_new_cmds=
7802 old_archive_from_expsyms_cmds=
7803 thread_safe_flag_spec=
7804 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007805 # include_expsyms should be a list of space-separated symbols to be *always*
7806 # included in the symbol list
7807 include_expsyms=
7808 # exclude_expsyms can be an extended regexp of symbols to exclude
7809 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7810 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7811 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007812 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00007813 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7814 # platforms (ab)use it in PIC code, but their linkers get confused if
7815 # the symbol is explicitly referenced. Since portable code cannot
7816 # rely on this symbol name, it's probably fine to never include it in
7817 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007818 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007819 extract_expsyms_cmds=
7820
7821 case $host_os in
Lev Walkin4c776e52010-11-08 02:07:31 -08007822 cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007823 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7824 # When not using gcc, we currently assume that we are using
7825 # Microsoft Visual C++.
7826 if test "$GCC" != yes; then
7827 with_gnu_ld=no
7828 fi
7829 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00007830 interix*)
7831 # we just hope/assume this is gcc and not c89 (= MSVC++)
7832 with_gnu_ld=yes
7833 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007834 openbsd*)
7835 with_gnu_ld=no
7836 ;;
7837 esac
7838
7839 ld_shlibs=yes
7840 if test "$with_gnu_ld" = yes; then
7841 # If archive_cmds runs LD, not CC, wlarc should be empty
7842 wlarc='${wl}'
7843
Lev Walkinfbf1d282007-12-03 14:58:39 +00007844 # Set some defaults for GNU ld with shared library support. These
7845 # are reset later if shared libraries are not supported. Putting them
7846 # here allows them to be overridden if necessary.
7847 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07007848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007849 export_dynamic_flag_spec='${wl}--export-dynamic'
7850 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007851 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7852 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7853 else
7854 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00007855 fi
7856 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007857 case `$LD -v 2>&1` in
Lev Walkinfbf1d282007-12-03 14:58:39 +00007858 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7859 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7860 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7861 *\ 2.11.*) ;; # other 2.11 versions
7862 *) supports_anon_versioning=yes ;;
7863 esac
7864
Lev Walkin8e8b5482004-06-17 23:42:48 +00007865 # See if GNU ld supports shared libraries.
7866 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07007867 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007868 # On AIX/PPC, the GNU linker is very broken
7869 if test "$host_cpu" != ia64; then
7870 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007871 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007872
Lev Walkin4c776e52010-11-08 02:07:31 -08007873*** Warning: the GNU linker, at least up to release 2.9.1, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00007874*** to be unable to reliably create shared libraries on AIX.
7875*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkin4c776e52010-11-08 02:07:31 -08007876*** really care for shared libraries, you may want to modify your PATH
7877*** so that a non-GNU linker is found, and then restart.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007878
Lev Walkin4da95cf2010-10-16 02:46:32 -07007879_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007880 fi
7881 ;;
7882
7883 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007884 case $host_cpu in
7885 powerpc)
7886 # see comment about AmigaOS4 .so support
7887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888 archive_expsym_cmds=''
7889 ;;
7890 m68k)
7891 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)'
7892 hardcode_libdir_flag_spec='-L$libdir'
7893 hardcode_minus_L=yes
7894 ;;
7895 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007896 ;;
7897
7898 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007900 allow_undefined_flag=unsupported
7901 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7902 # support --undefined. This deserves some investigation. FIXME
7903 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7904 else
7905 ld_shlibs=no
7906 fi
7907 ;;
7908
Lev Walkin4c776e52010-11-08 02:07:31 -08007909 cygwin* | mingw* | pw32*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007910 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007911 # as there is no search path for DLLs.
7912 hardcode_libdir_flag_spec='-L$libdir'
7913 allow_undefined_flag=unsupported
7914 always_export_symbols=no
7915 enable_shared_with_static_runtimes=yes
Lev Walkin4c776e52010-11-08 02:07:31 -08007916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00007917
Lev Walkin4da95cf2010-10-16 02:46:32 -07007918 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00007919 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 +00007920 # If the export-symbols file already is a .def file (1st line
7921 # is EXPORTS), use it as is; otherwise, prepend...
7922 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7923 cp $export_symbols $output_objdir/$soname.def;
7924 else
7925 echo EXPORTS > $output_objdir/$soname.def;
7926 cat $export_symbols >> $output_objdir/$soname.def;
7927 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00007928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7929 else
7930 ld_shlibs=no
7931 fi
7932 ;;
7933
Lev Walkin4da95cf2010-10-16 02:46:32 -07007934 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007935 hardcode_direct=no
7936 hardcode_shlibpath_var=no
7937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7938 export_dynamic_flag_spec='${wl}-E'
7939 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7940 # Instead, shared libraries are loaded at an image base (0x10000000 by
7941 # default) and relocated if they conflict, which is a slow very memory
7942 # consuming and fragmenting process. To avoid this, we pick a random,
7943 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7944 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7945 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7946 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'
7947 ;;
7948
Lev Walkin4c776e52010-11-08 02:07:31 -08007949 gnu* | linux* | tpf* | k*bsd*-gnu)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007950 tmp_diet=no
7951 if test "$host_os" = linux-dietlibc; then
7952 case $cc_basename in
7953 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7954 esac
7955 fi
7956 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7957 && test "$tmp_diet" = no
7958 then
Lev Walkin4c776e52010-11-08 02:07:31 -08007959 tmp_addflag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007960 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007961 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07007962 pgcc*) # Portland Group C compiler
Lev Walkin4c776e52010-11-08 02:07:31 -08007963 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007964 tmp_addflag=' $pic_flag'
7965 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007966 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7967 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007968 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07007969 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00007970 tmp_addflag=' -i_dynamic' ;;
7971 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7972 tmp_addflag=' -i_dynamic -nofor_main' ;;
7973 ifc* | ifort*) # Intel Fortran compiler
7974 tmp_addflag=' -nofor_main' ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007975 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007976 tmp_sharedflag='-qmkshrobj'
7977 tmp_addflag= ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00007978 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07007979 case `$CC -V 2>&1 | sed 5q` in
7980 *Sun\ C*) # Sun C 5.9
Lev Walkin4c776e52010-11-08 02:07:31 -08007981 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkin4da95cf2010-10-16 02:46:32 -07007982 compiler_needs_object=yes
7983 tmp_sharedflag='-G' ;;
7984 *Sun\ F*) # Sun Fortran 8.3
7985 tmp_sharedflag='-G' ;;
7986 esac
7987 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007988
Lev Walkin4da95cf2010-10-16 02:46:32 -07007989 if test "x$supports_anon_versioning" = xyes; then
7990 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7992 echo "local: *; };" >> $output_objdir/$libname.ver~
7993 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7994 fi
7995
7996 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08007997 xlf*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007998 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7999 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8000 hardcode_libdir_flag_spec=
8001 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Lev Walkin4c776e52010-11-08 02:07:31 -08008002 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008003 if test "x$supports_anon_versioning" = xyes; then
8004 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8006 echo "local: *; };" >> $output_objdir/$libname.ver~
Lev Walkin4c776e52010-11-08 02:07:31 -08008007 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008008 fi
8009 ;;
8010 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008011 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008012 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008013 fi
8014 ;;
8015
8016 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008018 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8019 wlarc=
8020 else
Lev Walkin4c776e52010-11-08 02:07:31 -08008021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008023 fi
8024 ;;
8025
Lev Walkinfbf1d282007-12-03 14:58:39 +00008026 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008027 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008028 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008029 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008030
8031*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8032*** create shared libraries on Solaris systems. Therefore, libtool
8033*** is disabling shared libraries support. We urge you to upgrade GNU
8034*** binutils to release 2.9.1 or newer. Another option is to modify
8035*** your PATH or compiler configuration so that the native linker is
8036*** used, and then restart.
8037
Lev Walkin4da95cf2010-10-16 02:46:32 -07008038_LT_EOF
8039 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008042 else
8043 ld_shlibs=no
8044 fi
8045 ;;
8046
Lev Walkinfbf1d282007-12-03 14:58:39 +00008047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8048 case `$LD -v 2>&1` in
8049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8050 ld_shlibs=no
8051 cat <<_LT_EOF 1>&2
8052
8053*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8054*** reliably create shared libraries on SCO systems. Therefore, libtool
8055*** is disabling shared libraries support. We urge you to upgrade GNU
8056*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8057*** your PATH or compiler configuration so that the native linker is
8058*** used, and then restart.
8059
8060_LT_EOF
8061 ;;
8062 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008063 # For security reasons, it is highly recommended that you always
8064 # use absolute paths for naming shared libraries, and exclude the
8065 # DT_RUNPATH tag from executables and libraries. But doing so
8066 # requires that you compile everything twice, which is a pain.
8067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8070 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 +00008071 else
8072 ld_shlibs=no
8073 fi
8074 ;;
8075 esac
8076 ;;
8077
Lev Walkin8e8b5482004-06-17 23:42:48 +00008078 sunos4*)
8079 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8080 wlarc=
8081 hardcode_direct=yes
8082 hardcode_shlibpath_var=no
8083 ;;
8084
Lev Walkin8e8b5482004-06-17 23:42:48 +00008085 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008089 else
8090 ld_shlibs=no
8091 fi
8092 ;;
8093 esac
8094
Lev Walkinfbf1d282007-12-03 14:58:39 +00008095 if test "$ld_shlibs" = no; then
8096 runpath_var=
8097 hardcode_libdir_flag_spec=
8098 export_dynamic_flag_spec=
8099 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008100 fi
8101 else
8102 # PORTME fill in a description of your system's linker (not GNU ld)
8103 case $host_os in
8104 aix3*)
8105 allow_undefined_flag=unsupported
8106 always_export_symbols=yes
8107 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'
8108 # Note: this linker hardcodes the directories in LIBPATH if there
8109 # are no directories specified by -L.
8110 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008111 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008112 # Neither direct hardcoding nor static linking is supported with a
8113 # broken collect2.
8114 hardcode_direct=unsupported
8115 fi
8116 ;;
8117
Lev Walkin4da95cf2010-10-16 02:46:32 -07008118 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008119 if test "$host_cpu" = ia64; then
8120 # On IA64, the linker does run time linking by default, so we don't
8121 # have to do anything special.
8122 aix_use_runtimelinking=no
8123 exp_sym_flag='-Bexport'
8124 no_entry_flag=""
8125 else
8126 # If we're using GNU nm, then we don't want the "-C" option.
8127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkin4da95cf2010-10-16 02:46:32 -07008128 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008129 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008130 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008131 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 +00008132 fi
8133 aix_use_runtimelinking=no
8134
8135 # Test if we are trying to use run time linking or normal
8136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8137 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008138 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008139 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07008140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8141 aix_use_runtimelinking=yes
8142 break
8143 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008144 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00008145 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008146 esac
8147
8148 exp_sym_flag='-bexport'
8149 no_entry_flag='-bnoentry'
8150 fi
8151
8152 # When large executables or shared objects are built, AIX ld can
8153 # have problems creating the table of contents. If linking a library
8154 # or program results in "error TOC overflow" add -mminimal-toc to
8155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8157
8158 archive_cmds=''
8159 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008160 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008161 hardcode_libdir_separator=':'
8162 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008163 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008164
8165 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008166 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008167 # We only want to do this on AIX 4.2 and lower, the check
8168 # below for broken collect2 doesn't work under 4.3+
8169 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008170 if test -f "$collect2name" &&
8171 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008172 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008173 # We have reworked collect2
8174 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008175 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008176 # We have old collect2
8177 hardcode_direct=unsupported
8178 # It fails to find uninstalled libraries when the uninstalled
8179 # path is not listed in the libpath. Setting hardcode_minus_L
8180 # to unsupported forces relinking
8181 hardcode_minus_L=yes
8182 hardcode_libdir_flag_spec='-L$libdir'
8183 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008184 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008185 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008186 esac
8187 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008188 if test "$aix_use_runtimelinking" = yes; then
8189 shared_flag="$shared_flag "'${wl}-G'
8190 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008191 else
8192 # not using gcc
8193 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8195 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008196 shared_flag='-G'
8197 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008198 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008199 shared_flag='${wl}-G'
8200 else
8201 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008202 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008203 fi
8204 fi
8205
8206 # It seems that -bexpall does not export symbols beginning with
8207 # underscore (_), so it is better to generate a list of symbols to export.
8208 always_export_symbols=yes
8209 if test "$aix_use_runtimelinking" = yes; then
8210 # Warning - without using the other runtime loading flags (-brtl),
8211 # -berok will link without error, but may produce a broken library.
8212 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008213 # Determine the default libpath from the value encoded in an
8214 # empty executable.
Lev Walkin4c776e52010-11-08 02:07:31 -08008215 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
8221
8222int
8223main ()
8224{
8225
8226 ;
8227 return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00008231if { (ac_try="$ac_link"
8232case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235esac
8236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest$ac_exeext &&
8247 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008248
Lev Walkin4c776e52010-11-08 02:07:31 -08008249lt_aix_libpath_sed='
8250 /Import File Strings/,/^$/ {
8251 /^0/ {
8252 s/^0 *\(.*\)$/\1/
8253 p
8254 }
8255 }'
8256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8257# Check for a 64-bit object if we didn't find anything.
8258if test -z "$aix_libpath"; then
8259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8260fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008261else
8262 echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
Lev Walkin27fd0b62007-08-27 23:57:45 +00008265
Lev Walkin8e8b5482004-06-17 23:42:48 +00008266fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008267
Lev Walkin4c776e52010-11-08 02:07:31 -08008268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008269 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008271
8272 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lev Walkin4c776e52010-11-08 02:07:31 -08008273 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008274 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00008275 if test "$host_cpu" = ia64; then
8276 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8277 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00008278 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 +00008279 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008280 # Determine the default libpath from the value encoded in an
8281 # empty executable.
Lev Walkin4c776e52010-11-08 02:07:31 -08008282 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008283/* confdefs.h. */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h. */
8288
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00008298if { (ac_try="$ac_link"
8299case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest$ac_exeext &&
8314 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008315
Lev Walkin4c776e52010-11-08 02:07:31 -08008316lt_aix_libpath_sed='
8317 /Import File Strings/,/^$/ {
8318 /^0/ {
8319 s/^0 *\(.*\)$/\1/
8320 p
8321 }
8322 }'
8323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8324# Check for a 64-bit object if we didn't find anything.
8325if test -z "$aix_libpath"; then
8326 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8327fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008328else
8329 echo "$as_me: failed program was:" >&5
8330sed 's/^/| /' conftest.$ac_ext >&5
8331
Lev Walkin27fd0b62007-08-27 23:57:45 +00008332
Lev Walkin8e8b5482004-06-17 23:42:48 +00008333fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008334
Lev Walkin4c776e52010-11-08 02:07:31 -08008335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008336 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008338
8339 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8340 # Warning - without using the other run time loading flags,
8341 # -berok will link without error, but may produce a broken library.
8342 no_undefined_flag=' ${wl}-bernotok'
8343 allow_undefined_flag=' ${wl}-berok'
Lev Walkin4c776e52010-11-08 02:07:31 -08008344 # Exported symbols can be pulled into shared objects from archives
8345 whole_archive_flag_spec='$convenience'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008346 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008347 # This is similar to how AIX traditionally builds its shared libraries.
8348 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 +00008349 fi
8350 fi
8351 ;;
8352
8353 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008354 case $host_cpu in
8355 powerpc)
8356 # see comment about AmigaOS4 .so support
8357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358 archive_expsym_cmds=''
8359 ;;
8360 m68k)
8361 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)'
8362 hardcode_libdir_flag_spec='-L$libdir'
8363 hardcode_minus_L=yes
8364 ;;
8365 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008366 ;;
8367
Lev Walkinfbf1d282007-12-03 14:58:39 +00008368 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008369 export_dynamic_flag_spec=-rdynamic
8370 ;;
8371
Lev Walkin4c776e52010-11-08 02:07:31 -08008372 cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008373 # When not using gcc, we currently assume that we are using
8374 # Microsoft Visual C++.
8375 # hardcode_libdir_flag_spec is actually meaningless, as there is
8376 # no search path for DLLs.
Lev Walkin4c776e52010-11-08 02:07:31 -08008377 hardcode_libdir_flag_spec=' '
8378 allow_undefined_flag=unsupported
8379 # Tell ltmain to make .lib files, not .a files.
8380 libext=lib
8381 # Tell ltmain to make .dll files, not .so files.
8382 shrext_cmds=".dll"
8383 # FIXME: Setting linknames here is a bad hack.
8384 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8385 # The linker will automatically build a .lib file if we build a DLL.
8386 old_archive_from_new_cmds='true'
8387 # FIXME: Should let the user specify the lib program.
8388 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8389 fix_srcfile_path='`cygpath -w "$srcfile"`'
8390 enable_shared_with_static_runtimes=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008391 ;;
8392
8393 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008394
8395
8396 archive_cmds_need_lc=no
8397 hardcode_direct=no
8398 hardcode_automatic=yes
8399 hardcode_shlibpath_var=unsupported
Lev Walkin4c776e52010-11-08 02:07:31 -08008400 whole_archive_flag_spec=''
Lev Walkin4da95cf2010-10-16 02:46:32 -07008401 link_all_deplibs=yes
8402 allow_undefined_flag="$_lt_dar_allow_undefined"
Lev Walkin4c776e52010-11-08 02:07:31 -08008403 if test "$GCC" = "yes"; then
8404 output_verbose_link_cmd=echo
Lev Walkin4da95cf2010-10-16 02:46:32 -07008405 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8406 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8407 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}"
8408 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}"
8409
8410 else
8411 ld_shlibs=no
8412 fi
8413
Lev Walkin8e8b5482004-06-17 23:42:48 +00008414 ;;
8415
8416 dgux*)
8417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8418 hardcode_libdir_flag_spec='-L$libdir'
8419 hardcode_shlibpath_var=no
8420 ;;
8421
8422 freebsd1*)
8423 ld_shlibs=no
8424 ;;
8425
8426 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8427 # support. Future versions do this automatically, but an explicit c++rt0.o
8428 # does not break anything, and helps significantly (at the cost of a little
8429 # extra space).
8430 freebsd2.2*)
8431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8432 hardcode_libdir_flag_spec='-R$libdir'
8433 hardcode_direct=yes
8434 hardcode_shlibpath_var=no
8435 ;;
8436
8437 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8438 freebsd2*)
8439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8440 hardcode_direct=yes
8441 hardcode_minus_L=yes
8442 hardcode_shlibpath_var=no
8443 ;;
8444
8445 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008446 freebsd* | dragonfly*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008447 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008448 hardcode_libdir_flag_spec='-R$libdir'
8449 hardcode_direct=yes
8450 hardcode_shlibpath_var=no
8451 ;;
8452
8453 hpux9*)
8454 if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008455 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008456 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008457 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 +00008458 fi
8459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8460 hardcode_libdir_separator=:
8461 hardcode_direct=yes
8462
8463 # hardcode_minus_L: Not really in the search PATH,
8464 # but as the default location of the library.
8465 hardcode_minus_L=yes
8466 export_dynamic_flag_spec='${wl}-E'
8467 ;;
8468
Lev Walkinfbf1d282007-12-03 14:58:39 +00008469 hpux10*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008470 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8471 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008472 else
8473 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8474 fi
8475 if test "$with_gnu_ld" = no; then
8476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008477 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008478 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00008479 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008480 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008481 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008482 # hardcode_minus_L: Not really in the search PATH,
8483 # but as the default location of the library.
8484 hardcode_minus_L=yes
8485 fi
8486 ;;
8487
8488 hpux11*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008489 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008490 case $host_cpu in
8491 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008492 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8493 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008494 ia64*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008495 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008496 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008497 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08008498 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008499 ;;
8500 esac
8501 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008502 case $host_cpu in
8503 hppa*64*)
8504 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 ;;
8506 ia64*)
8507 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008508 ;;
8509 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08008510 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008511 ;;
8512 esac
8513 fi
8514 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8516 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008517
Lev Walkinfbf1d282007-12-03 14:58:39 +00008518 case $host_cpu in
8519 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008520 hardcode_direct=no
8521 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008522 ;;
8523 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008524 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008525 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008526 export_dynamic_flag_spec='${wl}-E'
8527
8528 # hardcode_minus_L: Not really in the search PATH,
8529 # but as the default location of the library.
8530 hardcode_minus_L=yes
8531 ;;
8532 esac
8533 fi
8534 ;;
8535
8536 irix5* | irix6* | nonstopux*)
8537 if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008539 # Try to use the -exported_symbol ld option, if it does not
8540 # work, assume that -exports_file does not work either and
8541 # implicitly export all symbols.
Lev Walkin4c776e52010-11-08 02:07:31 -08008542 save_LDFLAGS="$LDFLAGS"
8543 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8544 cat >conftest.$ac_ext <<_ACEOF
8545int foo(void) {}
Lev Walkin4da95cf2010-10-16 02:46:32 -07008546_ACEOF
8547rm -f conftest.$ac_objext conftest$ac_exeext
8548if { (ac_try="$ac_link"
8549case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8552esac
8553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_link") 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008560 (exit $ac_status); } && {
8561 test -z "$ac_c_werror_flag" ||
8562 test ! -s conftest.err
8563 } && test -s conftest$ac_exeext &&
8564 $as_test_x conftest$ac_exeext; then
8565 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8566
Lev Walkin4da95cf2010-10-16 02:46:32 -07008567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
Lev Walkin4c776e52010-11-08 02:07:31 -08008571
Lev Walkin4da95cf2010-10-16 02:46:32 -07008572fi
8573
Lev Walkin4c776e52010-11-08 02:07:31 -08008574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07008575 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008576 LDFLAGS="$save_LDFLAGS"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008577 else
Lev Walkin4c776e52010-11-08 02:07:31 -08008578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008580 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008581 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8583 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07008584 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008585 link_all_deplibs=yes
8586 ;;
8587
8588 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8591 else
8592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8593 fi
8594 hardcode_libdir_flag_spec='-R$libdir'
8595 hardcode_direct=yes
8596 hardcode_shlibpath_var=no
8597 ;;
8598
8599 newsos6)
8600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601 hardcode_direct=yes
8602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603 hardcode_libdir_separator=:
8604 hardcode_shlibpath_var=no
8605 ;;
8606
Lev Walkin4da95cf2010-10-16 02:46:32 -07008607 *nto* | *qnx*)
8608 ;;
8609
Lev Walkin8e8b5482004-06-17 23:42:48 +00008610 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008611 if test -f /usr/libexec/ld.so; then
8612 hardcode_direct=yes
8613 hardcode_shlibpath_var=no
8614 hardcode_direct_absolute=yes
8615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8619 export_dynamic_flag_spec='${wl}-E'
8620 else
8621 case $host_os in
8622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8624 hardcode_libdir_flag_spec='-R$libdir'
8625 ;;
8626 *)
8627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8629 ;;
8630 esac
8631 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008632 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008633 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008634 fi
8635 ;;
8636
8637 os2*)
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 hardcode_minus_L=yes
8640 allow_undefined_flag=unsupported
Lev Walkin4c776e52010-11-08 02:07:31 -08008641 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008642 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008643 ;;
8644
8645 osf3*)
8646 if test "$GCC" = yes; then
8647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008648 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008649 else
8650 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008651 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008652 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008653 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656 ;;
8657
8658 osf4* | osf5*) # as osf3* with the addition of -msym flag
8659 if test "$GCC" = yes; then
8660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008661 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8663 else
8664 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008665 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008666 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~
Lev Walkin4c776e52010-11-08 02:07:31 -08008667 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008668
8669 # Both c and cxx compiler support -rpath directly
8670 hardcode_libdir_flag_spec='-rpath $libdir'
8671 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008672 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008673 hardcode_libdir_separator=:
8674 ;;
8675
Lev Walkin8e8b5482004-06-17 23:42:48 +00008676 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008677 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008678 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008679 wlarc='${wl}'
Lev Walkin4c776e52010-11-08 02:07:31 -08008680 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Lev Walkin4c776e52010-11-08 02:07:31 -08008682 $CC -shared ${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 +00008683 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008684 case `$CC -V 2>&1` in
8685 *"Compilers 5.0"*)
8686 wlarc=''
8687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8690 ;;
8691 *)
8692 wlarc='${wl}'
8693 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8695 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8696 ;;
8697 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008698 fi
8699 hardcode_libdir_flag_spec='-R$libdir'
8700 hardcode_shlibpath_var=no
8701 case $host_os in
8702 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008703 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008704 # The compiler driver will combine and reorder linker options,
8705 # but understands `-z linker_flag'. GCC discards it without `$wl',
8706 # but is careful enough not to reorder.
8707 # Supported since Solaris 2.6 (maybe 2.5.1?)
8708 if test "$GCC" = yes; then
8709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8710 else
8711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8712 fi
8713 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008714 esac
8715 link_all_deplibs=yes
8716 ;;
8717
8718 sunos4*)
8719 if test "x$host_vendor" = xsequent; then
8720 # Use $CC to link under sequent, because it throws in some extra .o
8721 # files that make .init and .fini sections work.
8722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8723 else
8724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8725 fi
8726 hardcode_libdir_flag_spec='-L$libdir'
8727 hardcode_direct=yes
8728 hardcode_minus_L=yes
8729 hardcode_shlibpath_var=no
8730 ;;
8731
8732 sysv4)
8733 case $host_vendor in
8734 sni)
8735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 hardcode_direct=yes # is this really true???
8737 ;;
8738 siemens)
8739 ## LD is ld it makes a PLAMLIB
8740 ## CC just makes a GrossModule.
8741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8742 reload_cmds='$CC -r -o $output$reload_objs'
8743 hardcode_direct=no
8744 ;;
8745 motorola)
8746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8748 ;;
8749 esac
8750 runpath_var='LD_RUN_PATH'
8751 hardcode_shlibpath_var=no
8752 ;;
8753
8754 sysv4.3*)
8755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_shlibpath_var=no
8757 export_dynamic_flag_spec='-Bexport'
8758 ;;
8759
8760 sysv4*MP*)
8761 if test -d /usr/nec; then
8762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var=no
8764 runpath_var=LD_RUN_PATH
8765 hardcode_runpath_var=yes
8766 ld_shlibs=yes
8767 fi
8768 ;;
8769
Lev Walkin4da95cf2010-10-16 02:46:32 -07008770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008771 no_undefined_flag='${wl}-z,text'
8772 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008773 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008774 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008775
Lev Walkin8e8b5482004-06-17 23:42:48 +00008776 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8778 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 +00008779 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8781 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 +00008782 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008783 ;;
8784
Lev Walkinfbf1d282007-12-03 14:58:39 +00008785 sysv5* | sco3.2v5* | sco5v6*)
8786 # Note: We can NOT use -z defs as we might desire, because we do not
8787 # link with -lc, and that would cause any symbols used from libc to
8788 # always be unresolved, which means just about no library would
8789 # ever link correctly. If we're not using GNU ld we use -z text
8790 # though, which does catch some bad symbols but isn't as heavy-handed
8791 # as -z defs.
8792 no_undefined_flag='${wl}-z,text'
8793 allow_undefined_flag='${wl}-z,nodefs'
8794 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008795 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008796 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008797 hardcode_libdir_separator=':'
8798 link_all_deplibs=yes
8799 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008800 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008801
8802 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 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 +00008805 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807 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 +00008808 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008809 ;;
8810
8811 uts4*)
8812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_shlibpath_var=no
8815 ;;
8816
8817 *)
8818 ld_shlibs=no
8819 ;;
8820 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008821
8822 if test x$host_vendor = xsni; then
8823 case $host in
8824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8825 export_dynamic_flag_spec='${wl}-Blargedynsym'
8826 ;;
8827 esac
8828 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008829 fi
8830
Lev Walkin27fd0b62007-08-27 23:57:45 +00008831{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8832echo "${ECHO_T}$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008833test "$ld_shlibs" = no && can_build_shared=no
8834
Lev Walkin4da95cf2010-10-16 02:46:32 -07008835with_gnu_ld=$with_gnu_ld
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
Lev Walkin8e8b5482004-06-17 23:42:48 +00008851#
8852# Do we need to explicitly link libc?
8853#
8854case "x$archive_cmds_need_lc" in
8855x|xyes)
8856 # Assume -lc should be added
8857 archive_cmds_need_lc=yes
8858
8859 if test "$enable_shared" = yes && test "$GCC" = yes; then
8860 case $archive_cmds in
8861 *'~'*)
8862 # FIXME: we may have to deal with multi-command sequences.
8863 ;;
8864 '$CC '*)
8865 # Test whether the compiler implicitly links with -lc since on some
8866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8867 # to ld, don't add -lc before -lgcc.
Lev Walkin27fd0b62007-08-27 23:57:45 +00008868 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8869echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08008870 $RM -r conftest*
8871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008872
Lev Walkin4c776e52010-11-08 02:07:31 -08008873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008874 (eval $ac_compile) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } 2>conftest.err; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008878 soname=conftest
8879 lib=conftest
8880 libobjs=conftest.$ac_objext
8881 deplibs=
8882 wl=$lt_prog_compiler_wl
8883 pic_flag=$lt_prog_compiler_pic
8884 compiler_flags=-v
8885 linker_flags=-v
8886 verstring=
8887 output_objdir=.
8888 libname=conftest
8889 lt_save_allow_undefined_flag=$allow_undefined_flag
8890 allow_undefined_flag=
8891 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008892 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }
Lev Walkin4c776e52010-11-08 02:07:31 -08008896 then
8897 archive_cmds_need_lc=no
8898 else
8899 archive_cmds_need_lc=yes
8900 fi
8901 allow_undefined_flag=$lt_save_allow_undefined_flag
8902 else
8903 cat conftest.err 1>&5
8904 fi
8905 $RM -r conftest*
8906 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8907echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008908 ;;
8909 esac
8910 fi
8911 ;;
8912esac
8913
Lev Walkin4da95cf2010-10-16 02:46:32 -07008914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00009071echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07009072
9073if test "$GCC" = yes; then
9074 case $host_os in
9075 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9076 *) lt_awk_arg="/^libraries:/" ;;
9077 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009078 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9079 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009080 # if the path contains ";" then we assume it to be the separator
9081 # otherwise default to the standard path separator (i.e. ":") - it is
9082 # assumed that no part of a normal pathname contains ";" but that should
9083 # okay in the real world where ";" in dirpaths is itself problematic.
Lev Walkin4c776e52010-11-08 02:07:31 -08009084 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9085 else
9086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9087 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009088 # Ok, now we have the path, separated by spaces, we can step through it
9089 # and add multilib dir if necessary.
9090 lt_tmp_lt_search_path_spec=
9091 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9092 for lt_sys_path in $lt_search_path_spec; do
9093 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9095 else
9096 test -d "$lt_sys_path" && \
9097 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9098 fi
9099 done
Lev Walkin4c776e52010-11-08 02:07:31 -08009100 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009101BEGIN {RS=" "; FS="/|\n";} {
9102 lt_foo="";
9103 lt_count=0;
9104 for (lt_i = NF; lt_i > 0; lt_i--) {
9105 if ($lt_i != "" && $lt_i != ".") {
9106 if ($lt_i == "..") {
9107 lt_count++;
9108 } else {
9109 if (lt_count == 0) {
9110 lt_foo="/" $lt_i lt_foo;
9111 } else {
9112 lt_count--;
9113 }
9114 }
9115 }
9116 }
9117 if (lt_foo != "") { lt_freq[lt_foo]++; }
9118 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9119}'`
Lev Walkin4c776e52010-11-08 02:07:31 -08009120 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009121else
9122 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9123fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009124library_names_spec=
9125libname_spec='lib$name'
9126soname_spec=
9127shrext_cmds=".so"
9128postinstall_cmds=
9129postuninstall_cmds=
9130finish_cmds=
9131finish_eval=
9132shlibpath_var=
9133shlibpath_overrides_runpath=unknown
9134version_type=none
9135dynamic_linker="$host_os ld.so"
9136sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009137need_lib_prefix=unknown
9138hardcode_into_libs=no
9139
9140# when you set need_version to no, make sure it does not cause -set_version
9141# flags to be left without arguments
9142need_version=unknown
9143
9144case $host_os in
9145aix3*)
9146 version_type=linux
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9148 shlibpath_var=LIBPATH
9149
9150 # AIX 3 has no versioning support, so we append a major version to the name.
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 ;;
9153
Lev Walkin4da95cf2010-10-16 02:46:32 -07009154aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009155 version_type=linux
9156 need_lib_prefix=no
9157 need_version=no
9158 hardcode_into_libs=yes
9159 if test "$host_cpu" = ia64; then
9160 # AIX 5 supports IA64
9161 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 else
9164 # With GCC up to 2.95.x, collect2 would create an import file
9165 # for dependence libraries. The import file would start with
9166 # the line `#! .'. This would cause the generated library to
9167 # depend on `.', always an invalid library. This was fixed in
9168 # development snapshots of GCC prior to 3.0.
9169 case $host_os in
9170 aix4 | aix4.[01] | aix4.[01].*)
9171 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9172 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009173 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009174 :
9175 else
9176 can_build_shared=no
9177 fi
9178 ;;
9179 esac
9180 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9181 # soname into executable. Probably we can add versioning support to
9182 # collect2, so additional links can be useful in future.
9183 if test "$aix_use_runtimelinking" = yes; then
9184 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9185 # instead of lib<name>.a to let people know that these are not
9186 # typical AIX shared libraries.
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 else
9189 # We preserve .a as extension for shared libraries through AIX4.2
9190 # and later when we are not doing run time linking.
9191 library_names_spec='${libname}${release}.a $libname.a'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 fi
9194 shlibpath_var=LIBPATH
9195 fi
9196 ;;
9197
9198amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009199 case $host_cpu in
9200 powerpc)
9201 # Since July 2007 AmigaOS4 officially supports .so libraries.
9202 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 ;;
9205 m68k)
9206 library_names_spec='$libname.ixlibrary $libname.a'
9207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Lev Walkin4c776e52010-11-08 02:07:31 -08009208 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009209 ;;
9210 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009211 ;;
9212
9213beos*)
9214 library_names_spec='${libname}${shared_ext}'
9215 dynamic_linker="$host_os ld.so"
9216 shlibpath_var=LIBRARY_PATH
9217 ;;
9218
Lev Walkinfbf1d282007-12-03 14:58:39 +00009219bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009220 version_type=linux
9221 need_version=no
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9228 # the default ld.so.conf also contains /usr/contrib/lib and
9229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9230 # libtool to hard-code these into programs
9231 ;;
9232
Lev Walkin4c776e52010-11-08 02:07:31 -08009233cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009234 version_type=windows
9235 shrext_cmds=".dll"
9236 need_version=no
9237 need_lib_prefix=no
9238
Lev Walkin4c776e52010-11-08 02:07:31 -08009239 case $GCC,$host_os in
9240 yes,cygwin* | yes,mingw* | yes,pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009241 library_names_spec='$libname.dll.a'
9242 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9243 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +00009245 dldir=$destdir/`dirname \$dlpath`~
9246 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +00009247 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009248 chmod a+x \$dldir/$dlname~
9249 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9250 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9251 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009252 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9253 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009254 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009255 shlibpath_overrides_runpath=yes
9256
9257 case $host_os in
9258 cygwin*)
9259 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9260 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin4c776e52010-11-08 02:07:31 -08009261 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009262 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08009263 mingw*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009264 # MinGW DLLs use traditional 'lib' prefix
9265 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin4c776e52010-11-08 02:07:31 -08009266 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9267 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9268 # It is most probably a Windows format PATH printed by
9269 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9270 # path with ; separators, and with drive letters. We can handle the
9271 # drive letters (cygwin fileutils understands them), so leave them,
9272 # especially as we might pass files found there to a mingw objdump,
9273 # which wouldn't understand a cygwinified path. Ahh.
9274 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9275 else
9276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9277 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009278 ;;
9279 pw32*)
9280 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009281 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 +00009282 ;;
9283 esac
9284 ;;
9285
9286 *)
9287 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9288 ;;
9289 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009290 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009291 # FIXME: first we should search . and the directory the executable is in
9292 shlibpath_var=PATH
9293 ;;
9294
9295darwin* | rhapsody*)
9296 dynamic_linker="$host_os dyld"
9297 version_type=darwin
9298 need_lib_prefix=no
9299 need_version=no
Lev Walkin4c776e52010-11-08 02:07:31 -08009300 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009301 soname_spec='${libname}${release}${major}$shared_ext'
9302 shlibpath_overrides_runpath=yes
9303 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +00009304 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009305
9306 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9308 ;;
9309
9310dgux*)
9311 version_type=linux
9312 need_lib_prefix=no
9313 need_version=no
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 ;;
9318
9319freebsd1*)
9320 dynamic_linker=no
9321 ;;
9322
Lev Walkinfbf1d282007-12-03 14:58:39 +00009323freebsd* | dragonfly*)
9324 # DragonFly does not have aout. When/if they implement a new
9325 # versioning mechanism, adjust this.
9326 if test -x /usr/bin/objformat; then
9327 objformat=`/usr/bin/objformat`
9328 else
9329 case $host_os in
9330 freebsd[123]*) objformat=aout ;;
9331 *) objformat=elf ;;
9332 esac
9333 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009334 version_type=freebsd-$objformat
9335 case $version_type in
9336 freebsd-elf*)
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9338 need_version=no
9339 need_lib_prefix=no
9340 ;;
9341 freebsd-*)
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9343 need_version=yes
9344 ;;
9345 esac
9346 shlibpath_var=LD_LIBRARY_PATH
9347 case $host_os in
9348 freebsd2*)
9349 shlibpath_overrides_runpath=yes
9350 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009351 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009352 shlibpath_overrides_runpath=yes
9353 hardcode_into_libs=yes
9354 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009355 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9356 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009357 shlibpath_overrides_runpath=no
9358 hardcode_into_libs=yes
9359 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07009360 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +00009361 shlibpath_overrides_runpath=yes
9362 hardcode_into_libs=yes
9363 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009364 esac
9365 ;;
9366
9367gnu*)
9368 version_type=linux
9369 need_lib_prefix=no
9370 need_version=no
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 hardcode_into_libs=yes
9375 ;;
9376
9377hpux9* | hpux10* | hpux11*)
9378 # Give a soname corresponding to the major version so that dld.sl refuses to
9379 # link against other versions.
9380 version_type=sunos
9381 need_lib_prefix=no
9382 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009383 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00009384 ia64*)
9385 shrext_cmds='.so'
9386 hardcode_into_libs=yes
9387 dynamic_linker="$host_os dld.so"
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 if test "X$HPUX_IA64_MODE" = X32; then
9393 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9394 else
9395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9396 fi
9397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9398 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07009399 hppa*64*)
9400 shrext_cmds='.sl'
9401 hardcode_into_libs=yes
9402 dynamic_linker="$host_os dld.sl"
9403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9409 ;;
9410 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009411 shrext_cmds='.sl'
9412 dynamic_linker="$host_os dld.sl"
9413 shlibpath_var=SHLIB_PATH
9414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 ;;
9418 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009419 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Lev Walkin8e8b5482004-06-17 23:42:48 +00009420 postinstall_cmds='chmod 555 $lib'
9421 ;;
9422
Lev Walkin4da95cf2010-10-16 02:46:32 -07009423interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009424 version_type=linux
9425 need_lib_prefix=no
9426 need_version=no
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=no
9432 hardcode_into_libs=yes
9433 ;;
9434
Lev Walkin8e8b5482004-06-17 23:42:48 +00009435irix5* | irix6* | nonstopux*)
9436 case $host_os in
9437 nonstopux*) version_type=nonstopux ;;
9438 *)
9439 if test "$lt_cv_prog_gnu_ld" = yes; then
9440 version_type=linux
9441 else
9442 version_type=irix
9443 fi ;;
9444 esac
9445 need_lib_prefix=no
9446 need_version=no
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9449 case $host_os in
9450 irix5* | nonstopux*)
9451 libsuff= shlibsuff=
9452 ;;
9453 *)
9454 case $LD in # libtool.m4 will add one of these switches to LD
9455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9456 libsuff= shlibsuff= libmagic=32-bit;;
9457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9458 libsuff=32 shlibsuff=N32 libmagic=N32;;
9459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9460 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9461 *) libsuff= shlibsuff= libmagic=never-match;;
9462 esac
9463 ;;
9464 esac
9465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9466 shlibpath_overrides_runpath=no
9467 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9468 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9469 hardcode_into_libs=yes
9470 ;;
9471
9472# No shared lib support for Linux oldld, aout, or coff.
9473linux*oldld* | linux*aout* | linux*coff*)
9474 dynamic_linker=no
9475 ;;
9476
9477# This must be Linux ELF.
Lev Walkin4c776e52010-11-08 02:07:31 -08009478linux* | k*bsd*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009479 version_type=linux
9480 need_lib_prefix=no
9481 need_version=no
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009487 # Some binutils ld are patched to set DT_RUNPATH
Lev Walkin4c776e52010-11-08 02:07:31 -08009488 save_LDFLAGS=$LDFLAGS
9489 save_libdir=$libdir
9490 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9491 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9492 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin4da95cf2010-10-16 02:46:32 -07009493/* confdefs.h. */
9494_ACEOF
9495cat confdefs.h >>conftest.$ac_ext
9496cat >>conftest.$ac_ext <<_ACEOF
9497/* end confdefs.h. */
9498
9499int
9500main ()
9501{
9502
9503 ;
9504 return 0;
9505}
9506_ACEOF
9507rm -f conftest.$ac_objext conftest$ac_exeext
9508if { (ac_try="$ac_link"
9509case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512esac
9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_link") 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08009520 (exit $ac_status); } && {
9521 test -z "$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 } && test -s conftest$ac_exeext &&
9524 $as_test_x conftest$ac_exeext; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009525 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08009526 shlibpath_overrides_runpath=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009527fi
9528
9529else
9530 echo "$as_me: failed program was:" >&5
9531sed 's/^/| /' conftest.$ac_ext >&5
9532
9533
9534fi
9535
Lev Walkin4c776e52010-11-08 02:07:31 -08009536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07009537 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08009538 LDFLAGS=$save_LDFLAGS
9539 libdir=$save_libdir
Lev Walkin4da95cf2010-10-16 02:46:32 -07009540
Lev Walkin8e8b5482004-06-17 23:42:48 +00009541 # This implies no fast_install, which is unacceptable.
9542 # Some rework will be needed to allow for fast_install
9543 # before this can be enabled.
9544 hardcode_into_libs=yes
9545
9546 # Append ld.so.conf contents to the search path
9547 if test -f /etc/ld.so.conf; then
Lev Walkin4c776e52010-11-08 02:07:31 -08009548 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Lev Walkin8e8b5482004-06-17 23:42:48 +00009549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9550 fi
9551
9552 # We used to test for /lib/ld.so.1 and disable shared libraries on
9553 # powerpc, because MkLinux only supported shared libraries with the
9554 # GNU dynamic linker. Since this was broken with cross compilers,
9555 # most powerpc-linux boxes support dynamic linking these days and
9556 # people can always --disable-shared, the test was removed, and we
9557 # assume the GNU/Linux dynamic linker is in use.
9558 dynamic_linker='GNU/Linux ld.so'
9559 ;;
9560
Lev Walkin8e8b5482004-06-17 23:42:48 +00009561netbsd*)
9562 version_type=sunos
9563 need_lib_prefix=no
9564 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568 dynamic_linker='NetBSD (a.out) ld.so'
9569 else
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 dynamic_linker='NetBSD ld.elf_so'
9573 fi
9574 shlibpath_var=LD_LIBRARY_PATH
9575 shlibpath_overrides_runpath=yes
9576 hardcode_into_libs=yes
9577 ;;
9578
9579newsos6)
9580 version_type=linux
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 shlibpath_overrides_runpath=yes
9584 ;;
9585
Lev Walkin4da95cf2010-10-16 02:46:32 -07009586*nto* | *qnx*)
9587 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +00009588 need_lib_prefix=no
9589 need_version=no
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9592 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009593 shlibpath_overrides_runpath=no
9594 hardcode_into_libs=yes
9595 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009596 ;;
9597
9598openbsd*)
9599 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +00009600 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009601 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009602 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9603 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07009604 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9605 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009606 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9609 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009610 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 +00009611 case $host_os in
9612 openbsd2.[89] | openbsd2.[89].*)
9613 shlibpath_overrides_runpath=no
9614 ;;
9615 *)
9616 shlibpath_overrides_runpath=yes
9617 ;;
9618 esac
9619 else
9620 shlibpath_overrides_runpath=yes
9621 fi
9622 ;;
9623
9624os2*)
9625 libname_spec='$name'
9626 shrext_cmds=".dll"
9627 need_lib_prefix=no
9628 library_names_spec='$libname${shared_ext} $libname.a'
9629 dynamic_linker='OS/2 ld.exe'
9630 shlibpath_var=LIBPATH
9631 ;;
9632
9633osf3* | osf4* | osf5*)
9634 version_type=osf
9635 need_lib_prefix=no
9636 need_version=no
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9641 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9642 ;;
9643
Lev Walkin4da95cf2010-10-16 02:46:32 -07009644rdos*)
9645 dynamic_linker=no
9646 ;;
9647
Lev Walkin8e8b5482004-06-17 23:42:48 +00009648solaris*)
9649 version_type=linux
9650 need_lib_prefix=no
9651 need_version=no
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes
9656 hardcode_into_libs=yes
9657 # ldd complains unless libraries are executable
9658 postinstall_cmds='chmod +x $lib'
9659 ;;
9660
9661sunos4*)
9662 version_type=sunos
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes
9667 if test "$with_gnu_ld" = yes; then
9668 need_lib_prefix=no
9669 fi
9670 need_version=yes
9671 ;;
9672
Lev Walkinfbf1d282007-12-03 14:58:39 +00009673sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009674 version_type=linux
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 case $host_vendor in
9679 sni)
9680 shlibpath_overrides_runpath=no
9681 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009682 runpath_var=LD_RUN_PATH
9683 ;;
9684 siemens)
9685 need_lib_prefix=no
9686 ;;
9687 motorola)
9688 need_lib_prefix=no
9689 need_version=no
9690 shlibpath_overrides_runpath=no
9691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9692 ;;
9693 esac
9694 ;;
9695
9696sysv4*MP*)
9697 if test -d /usr/nec ;then
9698 version_type=linux
9699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9700 soname_spec='$libname${shared_ext}.$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 fi
9703 ;;
9704
Lev Walkinfbf1d282007-12-03 14:58:39 +00009705sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9706 version_type=freebsd-elf
9707 need_lib_prefix=no
9708 need_version=no
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009712 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009713 hardcode_into_libs=yes
9714 if test "$with_gnu_ld" = yes; then
9715 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009716 else
9717 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009718 case $host_os in
9719 sco3.2v5*)
9720 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9721 ;;
9722 esac
9723 fi
9724 sys_lib_dlsearch_path_spec='/usr/lib'
9725 ;;
9726
Lev Walkin4da95cf2010-10-16 02:46:32 -07009727tpf*)
9728 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
Lev Walkin4c776e52010-11-08 02:07:31 -08009732 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009733 shlibpath_var=LD_LIBRARY_PATH
9734 shlibpath_overrides_runpath=no
9735 hardcode_into_libs=yes
9736 ;;
9737
Lev Walkin8e8b5482004-06-17 23:42:48 +00009738uts4*)
9739 version_type=linux
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 ;;
9744
9745*)
9746 dynamic_linker=no
9747 ;;
9748esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00009749{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9750echo "${ECHO_T}$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009751test "$dynamic_linker" = no && can_build_shared=no
9752
Lev Walkinfbf1d282007-12-03 14:58:39 +00009753variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9754if test "$GCC" = yes; then
9755 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9756fi
9757
Lev Walkin4da95cf2010-10-16 02:46:32 -07009758if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9759 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9760fi
9761if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9762 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9763fi
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
Lev Walkin4da95cf2010-10-16 02:46:32 -07009851 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00009852echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009853hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -07009854if test -n "$hardcode_libdir_flag_spec" ||
9855 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +00009856 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009857
Lev Walkin4da95cf2010-10-16 02:46:32 -07009858 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +00009859 if test "$hardcode_direct" != no &&
9860 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9861 # have to relink, otherwise we might link with an installed library
9862 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -07009863 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00009864 test "$hardcode_minus_L" != no; then
9865 # Linking always hardcodes the temporary library directory.
9866 hardcode_action=relink
9867 else
9868 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9869 hardcode_action=immediate
9870 fi
9871else
9872 # We cannot hardcode anything, or else we can only hardcode existing
9873 # directories.
9874 hardcode_action=unsupported
9875fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009876{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9877echo "${ECHO_T}$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009878
Lev Walkin4da95cf2010-10-16 02:46:32 -07009879if test "$hardcode_action" = relink ||
9880 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009881 # Fast installation is not supported
9882 enable_fast_install=no
9883elif test "$shlibpath_overrides_runpath" = yes ||
9884 test "$enable_shared" = no; then
9885 # Fast installation is not necessary
9886 enable_fast_install=needless
9887fi
9888
Lev Walkin8e8b5482004-06-17 23:42:48 +00009889
Lev Walkin4da95cf2010-10-16 02:46:32 -07009890
9891
9892
9893
9894 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009895 enable_dlopen=unknown
9896 enable_dlopen_self=unknown
9897 enable_dlopen_self_static=unknown
9898else
9899 lt_cv_dlopen=no
9900 lt_cv_dlopen_libs=
9901
9902 case $host_os in
9903 beos*)
9904 lt_cv_dlopen="load_add_on"
9905 lt_cv_dlopen_libs=
9906 lt_cv_dlopen_self=yes
9907 ;;
9908
Lev Walkin4c776e52010-11-08 02:07:31 -08009909 mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009910 lt_cv_dlopen="LoadLibrary"
9911 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -07009912 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009913
9914 cygwin*)
9915 lt_cv_dlopen="dlopen"
9916 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -07009917 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009918
9919 darwin*)
9920 # if libdl is installed we need to link against it
Lev Walkin27fd0b62007-08-27 23:57:45 +00009921 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9922echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009923if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926 ac_check_lib_save_LIBS=$LIBS
9927LIBS="-ldl $LIBS"
9928cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h. */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h. */
9934
Lev Walkin27fd0b62007-08-27 23:57:45 +00009935/* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009938#ifdef __cplusplus
9939extern "C"
9940#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +00009941char dlopen ();
9942int
9943main ()
9944{
Lev Walkin27fd0b62007-08-27 23:57:45 +00009945return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +00009946 ;
9947 return 0;
9948}
9949_ACEOF
9950rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00009951if { (ac_try="$ac_link"
9952case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00009958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08009963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009968 ac_cv_lib_dl_dlopen=yes
9969else
9970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
Lev Walkin27fd0b62007-08-27 23:57:45 +00009973 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009974fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009975
Lev Walkin4c776e52010-11-08 02:07:31 -08009976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00009977 conftest$ac_exeext conftest.$ac_ext
9978LIBS=$ac_check_lib_save_LIBS
9979fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009980{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9981echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009982if test $ac_cv_lib_dl_dlopen = yes; then
9983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9984else
9985
9986 lt_cv_dlopen="dyld"
9987 lt_cv_dlopen_libs=
9988 lt_cv_dlopen_self=yes
9989
9990fi
9991
Lev Walkin4da95cf2010-10-16 02:46:32 -07009992 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009993
9994 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00009995 { echo "$as_me:$LINENO: checking for shl_load" >&5
9996echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009997if test "${ac_cv_func_shl_load+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999else
10000 cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10008#define shl_load innocuous_shl_load
10009
10010/* System header to define __stub macros and hopefully few prototypes,
10011 which can conflict with char shl_load (); below.
10012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10013 <limits.h> exists even on freestanding compilers. */
10014
10015#ifdef __STDC__
10016# include <limits.h>
10017#else
10018# include <assert.h>
10019#endif
10020
10021#undef shl_load
10022
Lev Walkin27fd0b62007-08-27 23:57:45 +000010023/* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010026#ifdef __cplusplus
10027extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010028#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010029char shl_load ();
10030/* The GNU C library defines this for functions which it implements
10031 to always fail with ENOSYS. Some functions are actually named
10032 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000010033#if defined __stub_shl_load || defined __stub___shl_load
Lev Walkin8e8b5482004-06-17 23:42:48 +000010034choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000010035#endif
10036
10037int
10038main ()
10039{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010040return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010041 ;
10042 return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010046if { (ac_try="$ac_link"
10047case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050esac
10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010058 (exit $ac_status); } && {
10059 test -z "$ac_c_werror_flag" ||
10060 test ! -s conftest.err
10061 } && test -s conftest$ac_exeext &&
10062 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010063 ac_cv_func_shl_load=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
Lev Walkin27fd0b62007-08-27 23:57:45 +000010068 ac_cv_func_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010069fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010070
Lev Walkin4c776e52010-11-08 02:07:31 -080010071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010072 conftest$ac_exeext conftest.$ac_ext
10073fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010074{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10075echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010076if test $ac_cv_func_shl_load = yes; then
10077 lt_cv_dlopen="shl_load"
10078else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010079 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10080echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010081if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084 ac_check_lib_save_LIBS=$LIBS
10085LIBS="-ldld $LIBS"
10086cat >conftest.$ac_ext <<_ACEOF
10087/* confdefs.h. */
10088_ACEOF
10089cat confdefs.h >>conftest.$ac_ext
10090cat >>conftest.$ac_ext <<_ACEOF
10091/* end confdefs.h. */
10092
Lev Walkin27fd0b62007-08-27 23:57:45 +000010093/* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010096#ifdef __cplusplus
10097extern "C"
10098#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010099char shl_load ();
10100int
10101main ()
10102{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010103return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010104 ;
10105 return 0;
10106}
10107_ACEOF
10108rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010109if { (ac_try="$ac_link"
10110case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113esac
10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010116 ac_status=$?
10117 grep -v '^ *+' conftest.er1 >conftest.err
10118 rm -f conftest.er1
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010121 (exit $ac_status); } && {
10122 test -z "$ac_c_werror_flag" ||
10123 test ! -s conftest.err
10124 } && test -s conftest$ac_exeext &&
10125 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010126 ac_cv_lib_dld_shl_load=yes
10127else
10128 echo "$as_me: failed program was:" >&5
10129sed 's/^/| /' conftest.$ac_ext >&5
10130
Lev Walkin27fd0b62007-08-27 23:57:45 +000010131 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010132fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010133
Lev Walkin4c776e52010-11-08 02:07:31 -080010134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010135 conftest$ac_exeext conftest.$ac_ext
10136LIBS=$ac_check_lib_save_LIBS
10137fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010138{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10139echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010140if test $ac_cv_lib_dld_shl_load = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010141 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010142else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010143 { echo "$as_me:$LINENO: checking for dlopen" >&5
10144echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010145if test "${ac_cv_func_dlopen+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 cat >conftest.$ac_ext <<_ACEOF
10149/* confdefs.h. */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h. */
10154/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10156#define dlopen innocuous_dlopen
10157
10158/* System header to define __stub macros and hopefully few prototypes,
10159 which can conflict with char dlopen (); below.
10160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10161 <limits.h> exists even on freestanding compilers. */
10162
10163#ifdef __STDC__
10164# include <limits.h>
10165#else
10166# include <assert.h>
10167#endif
10168
10169#undef dlopen
10170
Lev Walkin27fd0b62007-08-27 23:57:45 +000010171/* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010174#ifdef __cplusplus
10175extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010176#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010177char dlopen ();
10178/* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000010181#if defined __stub_dlopen || defined __stub___dlopen
Lev Walkin8e8b5482004-06-17 23:42:48 +000010182choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000010183#endif
10184
10185int
10186main ()
10187{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010188return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010189 ;
10190 return 0;
10191}
10192_ACEOF
10193rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010194if { (ac_try="$ac_link"
10195case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest$ac_exeext &&
10210 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010211 ac_cv_func_dlopen=yes
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
Lev Walkin27fd0b62007-08-27 23:57:45 +000010216 ac_cv_func_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010217fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010218
Lev Walkin4c776e52010-11-08 02:07:31 -080010219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010220 conftest$ac_exeext conftest.$ac_ext
10221fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010222{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10223echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010224if test $ac_cv_func_dlopen = yes; then
10225 lt_cv_dlopen="dlopen"
10226else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010227 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231else
10232 ac_check_lib_save_LIBS=$LIBS
10233LIBS="-ldl $LIBS"
10234cat >conftest.$ac_ext <<_ACEOF
10235/* confdefs.h. */
10236_ACEOF
10237cat confdefs.h >>conftest.$ac_ext
10238cat >>conftest.$ac_ext <<_ACEOF
10239/* end confdefs.h. */
10240
Lev Walkin27fd0b62007-08-27 23:57:45 +000010241/* Override any GCC internal prototype to avoid an error.
10242 Use char because int might match the return type of a GCC
10243 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010244#ifdef __cplusplus
10245extern "C"
10246#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010247char dlopen ();
10248int
10249main ()
10250{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010251return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010252 ;
10253 return 0;
10254}
10255_ACEOF
10256rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010257if { (ac_try="$ac_link"
10258case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10261esac
10262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext &&
10273 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010274 ac_cv_lib_dl_dlopen=yes
10275else
10276 echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
Lev Walkin27fd0b62007-08-27 23:57:45 +000010279 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010280fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010281
Lev Walkin4c776e52010-11-08 02:07:31 -080010282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010283 conftest$ac_exeext conftest.$ac_ext
10284LIBS=$ac_check_lib_save_LIBS
10285fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010286{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10287echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010288if test $ac_cv_lib_dl_dlopen = yes; then
10289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10290else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010291 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10292echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010293if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296 ac_check_lib_save_LIBS=$LIBS
10297LIBS="-lsvld $LIBS"
10298cat >conftest.$ac_ext <<_ACEOF
10299/* confdefs.h. */
10300_ACEOF
10301cat confdefs.h >>conftest.$ac_ext
10302cat >>conftest.$ac_ext <<_ACEOF
10303/* end confdefs.h. */
10304
Lev Walkin27fd0b62007-08-27 23:57:45 +000010305/* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010308#ifdef __cplusplus
10309extern "C"
10310#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010311char dlopen ();
10312int
10313main ()
10314{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010315return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010316 ;
10317 return 0;
10318}
10319_ACEOF
10320rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010321if { (ac_try="$ac_link"
10322case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325esac
10326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010333 (exit $ac_status); } && {
10334 test -z "$ac_c_werror_flag" ||
10335 test ! -s conftest.err
10336 } && test -s conftest$ac_exeext &&
10337 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010338 ac_cv_lib_svld_dlopen=yes
10339else
10340 echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
Lev Walkin27fd0b62007-08-27 23:57:45 +000010343 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010344fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010345
Lev Walkin4c776e52010-11-08 02:07:31 -080010346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010347 conftest$ac_exeext conftest.$ac_ext
10348LIBS=$ac_check_lib_save_LIBS
10349fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010350{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10351echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010352if test $ac_cv_lib_svld_dlopen = yes; then
10353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10354else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010355 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10356echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010357if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360 ac_check_lib_save_LIBS=$LIBS
10361LIBS="-ldld $LIBS"
10362cat >conftest.$ac_ext <<_ACEOF
10363/* confdefs.h. */
10364_ACEOF
10365cat confdefs.h >>conftest.$ac_ext
10366cat >>conftest.$ac_ext <<_ACEOF
10367/* end confdefs.h. */
10368
Lev Walkin27fd0b62007-08-27 23:57:45 +000010369/* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010372#ifdef __cplusplus
10373extern "C"
10374#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010375char dld_link ();
10376int
10377main ()
10378{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010379return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010380 ;
10381 return 0;
10382}
10383_ACEOF
10384rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010385if { (ac_try="$ac_link"
10386case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest$ac_exeext &&
10401 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010402 ac_cv_lib_dld_dld_link=yes
10403else
10404 echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
Lev Walkin27fd0b62007-08-27 23:57:45 +000010407 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010408fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010409
Lev Walkin4c776e52010-11-08 02:07:31 -080010410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010411 conftest$ac_exeext conftest.$ac_ext
10412LIBS=$ac_check_lib_save_LIBS
10413fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010414{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10415echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010416if test $ac_cv_lib_dld_dld_link = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010417 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010418fi
10419
10420
10421fi
10422
10423
10424fi
10425
10426
10427fi
10428
10429
10430fi
10431
10432
10433fi
10434
10435 ;;
10436 esac
10437
10438 if test "x$lt_cv_dlopen" != xno; then
10439 enable_dlopen=yes
10440 else
10441 enable_dlopen=no
10442 fi
10443
10444 case $lt_cv_dlopen in
10445 dlopen)
10446 save_CPPFLAGS="$CPPFLAGS"
10447 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10448
10449 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010451
10452 save_LIBS="$LIBS"
10453 LIBS="$lt_cv_dlopen_libs $LIBS"
10454
Lev Walkin27fd0b62007-08-27 23:57:45 +000010455 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10456echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010457if test "${lt_cv_dlopen_self+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460 if test "$cross_compiling" = yes; then :
10461 lt_cv_dlopen_self=cross
10462else
10463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10464 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010465 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkine7c4b962010-11-09 03:10:36 -080010466#line 10466 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010467#include "confdefs.h"
10468
10469#if HAVE_DLFCN_H
10470#include <dlfcn.h>
10471#endif
10472
10473#include <stdio.h>
10474
10475#ifdef RTLD_GLOBAL
10476# define LT_DLGLOBAL RTLD_GLOBAL
10477#else
10478# ifdef DL_GLOBAL
10479# define LT_DLGLOBAL DL_GLOBAL
10480# else
10481# define LT_DLGLOBAL 0
10482# endif
10483#endif
10484
10485/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10486 find out it does not work in some platform. */
10487#ifndef LT_DLLAZY_OR_NOW
10488# ifdef RTLD_LAZY
10489# define LT_DLLAZY_OR_NOW RTLD_LAZY
10490# else
10491# ifdef DL_LAZY
10492# define LT_DLLAZY_OR_NOW DL_LAZY
10493# else
10494# ifdef RTLD_NOW
10495# define LT_DLLAZY_OR_NOW RTLD_NOW
10496# else
10497# ifdef DL_NOW
10498# define LT_DLLAZY_OR_NOW DL_NOW
10499# else
10500# define LT_DLLAZY_OR_NOW 0
10501# endif
10502# endif
10503# endif
10504# endif
10505#endif
10506
Lev Walkin4c776e52010-11-08 02:07:31 -080010507#ifdef __cplusplus
10508extern "C" void exit (int);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010509#endif
10510
Lev Walkin4c776e52010-11-08 02:07:31 -080010511void fnord() { int i=42;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000010512int main ()
10513{
10514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10515 int status = $lt_dlunknown;
10516
10517 if (self)
10518 {
10519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4c776e52010-11-08 02:07:31 -080010520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010521 /* dlclose (self); */
10522 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010523 else
10524 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000010525
Lev Walkin4c776e52010-11-08 02:07:31 -080010526 exit (status);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010527}
Lev Walkin4da95cf2010-10-16 02:46:32 -070010528_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000010529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010534 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000010535 lt_status=$?
10536 case x$lt_status in
10537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010539 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010540 esac
10541 else :
10542 # compilation failed
10543 lt_cv_dlopen_self=no
10544 fi
10545fi
10546rm -fr conftest*
10547
10548
10549fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010550{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10551echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010552
10553 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkin27fd0b62007-08-27 23:57:45 +000010555 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10556echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010557if test "${lt_cv_dlopen_self_static+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559else
10560 if test "$cross_compiling" = yes; then :
10561 lt_cv_dlopen_self_static=cross
10562else
10563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10564 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010565 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkine7c4b962010-11-09 03:10:36 -080010566#line 10566 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010567#include "confdefs.h"
10568
10569#if HAVE_DLFCN_H
10570#include <dlfcn.h>
10571#endif
10572
10573#include <stdio.h>
10574
10575#ifdef RTLD_GLOBAL
10576# define LT_DLGLOBAL RTLD_GLOBAL
10577#else
10578# ifdef DL_GLOBAL
10579# define LT_DLGLOBAL DL_GLOBAL
10580# else
10581# define LT_DLGLOBAL 0
10582# endif
10583#endif
10584
10585/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10586 find out it does not work in some platform. */
10587#ifndef LT_DLLAZY_OR_NOW
10588# ifdef RTLD_LAZY
10589# define LT_DLLAZY_OR_NOW RTLD_LAZY
10590# else
10591# ifdef DL_LAZY
10592# define LT_DLLAZY_OR_NOW DL_LAZY
10593# else
10594# ifdef RTLD_NOW
10595# define LT_DLLAZY_OR_NOW RTLD_NOW
10596# else
10597# ifdef DL_NOW
10598# define LT_DLLAZY_OR_NOW DL_NOW
10599# else
10600# define LT_DLLAZY_OR_NOW 0
10601# endif
10602# endif
10603# endif
10604# endif
10605#endif
10606
Lev Walkin4c776e52010-11-08 02:07:31 -080010607#ifdef __cplusplus
10608extern "C" void exit (int);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010609#endif
10610
Lev Walkin4c776e52010-11-08 02:07:31 -080010611void fnord() { int i=42;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000010612int main ()
10613{
10614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10615 int status = $lt_dlunknown;
10616
10617 if (self)
10618 {
10619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4c776e52010-11-08 02:07:31 -080010620 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010621 /* dlclose (self); */
10622 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010623 else
10624 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000010625
Lev Walkin4c776e52010-11-08 02:07:31 -080010626 exit (status);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010627}
Lev Walkin4da95cf2010-10-16 02:46:32 -070010628_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000010629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010634 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000010635 lt_status=$?
10636 case x$lt_status in
10637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010639 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010640 esac
10641 else :
10642 # compilation failed
10643 lt_cv_dlopen_self_static=no
10644 fi
10645fi
10646rm -fr conftest*
10647
10648
10649fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010650{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10651echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010652 fi
10653
10654 CPPFLAGS="$save_CPPFLAGS"
10655 LDFLAGS="$save_LDFLAGS"
10656 LIBS="$save_LIBS"
10657 ;;
10658 esac
10659
10660 case $lt_cv_dlopen_self in
10661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10662 *) enable_dlopen_self=unknown ;;
10663 esac
10664
10665 case $lt_cv_dlopen_self_static in
10666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10667 *) enable_dlopen_self_static=unknown ;;
10668 esac
10669fi
10670
10671
Lev Walkin8e8b5482004-06-17 23:42:48 +000010672
Lev Walkin8e8b5482004-06-17 23:42:48 +000010673
Lev Walkin8e8b5482004-06-17 23:42:48 +000010674
Lev Walkin8e8b5482004-06-17 23:42:48 +000010675
Lev Walkin8e8b5482004-06-17 23:42:48 +000010676
Lev Walkin8e8b5482004-06-17 23:42:48 +000010677
Lev Walkin8e8b5482004-06-17 23:42:48 +000010678
Lev Walkin8e8b5482004-06-17 23:42:48 +000010679
Lev Walkin8e8b5482004-06-17 23:42:48 +000010680
Lev Walkin8e8b5482004-06-17 23:42:48 +000010681
Lev Walkin8e8b5482004-06-17 23:42:48 +000010682
Lev Walkin8e8b5482004-06-17 23:42:48 +000010683
Lev Walkin8e8b5482004-06-17 23:42:48 +000010684
Lev Walkin8e8b5482004-06-17 23:42:48 +000010685
Lev Walkin8e8b5482004-06-17 23:42:48 +000010686
Lev Walkin4da95cf2010-10-16 02:46:32 -070010687striplib=
10688old_striplib=
10689{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10690echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10691if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10692 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10693 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10694 { echo "$as_me:$LINENO: result: yes" >&5
10695echo "${ECHO_T}yes" >&6; }
10696else
10697# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000010698 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010699 darwin*)
10700 if test -n "$STRIP" ; then
10701 striplib="$STRIP -x"
10702 old_striplib="$STRIP -S"
10703 { echo "$as_me:$LINENO: result: yes" >&5
10704echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010705 else
Lev Walkin4da95cf2010-10-16 02:46:32 -070010706 { echo "$as_me:$LINENO: result: no" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010707echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010708 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010709 ;;
10710 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -070010711 { echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010713 ;;
10714 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000010715fi
10716
10717
Lev Walkin8e8b5482004-06-17 23:42:48 +000010718
Lev Walkin8e8b5482004-06-17 23:42:48 +000010719
Lev Walkin8e8b5482004-06-17 23:42:48 +000010720
10721
Lev Walkin8e8b5482004-06-17 23:42:48 +000010722
Lev Walkin8e8b5482004-06-17 23:42:48 +000010723
Lev Walkin8e8b5482004-06-17 23:42:48 +000010724
Lev Walkin8e8b5482004-06-17 23:42:48 +000010725
Lev Walkin8e8b5482004-06-17 23:42:48 +000010726
Lev Walkin8e8b5482004-06-17 23:42:48 +000010727
Lev Walkin4da95cf2010-10-16 02:46:32 -070010728 # Report which library types will actually be built
10729 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010730echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010731 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010732echo "${ECHO_T}$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010733
Lev Walkin4da95cf2010-10-16 02:46:32 -070010734 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010735echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010736 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010737
Lev Walkin4da95cf2010-10-16 02:46:32 -070010738 # On AIX, shared libraries and static libraries use the same namespace, and
10739 # are all built from PIC.
10740 case $host_os in
10741 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010742 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010743 if test -n "$RANLIB"; then
10744 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10745 postinstall_cmds='$RANLIB $lib'
10746 fi
10747 ;;
10748
10749 aix[4-9]*)
10750 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10751 test "$enable_shared" = yes && enable_static=no
10752 fi
10753 ;;
10754 esac
10755 { echo "$as_me:$LINENO: result: $enable_shared" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010756echo "${ECHO_T}$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010757
Lev Walkin4da95cf2010-10-16 02:46:32 -070010758 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010759echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010760 # Make sure either enable_shared or enable_static is yes.
10761 test "$enable_shared" = yes || enable_static=yes
10762 { echo "$as_me:$LINENO: result: $enable_static" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010763echo "${ECHO_T}$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010764
Lev Walkin8e8b5482004-06-17 23:42:48 +000010765
Lev Walkin8e8b5482004-06-17 23:42:48 +000010766
Lev Walkin27fd0b62007-08-27 23:57:45 +000010767
Lev Walkin8e8b5482004-06-17 23:42:48 +000010768fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010769ac_ext=c
10770ac_cpp='$CPP $CPPFLAGS'
10771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773ac_compiler_gnu=$ac_cv_c_compiler_gnu
10774
10775CC="$lt_save_CC"
10776
Lev Walkin8e8b5482004-06-17 23:42:48 +000010777
Lev Walkin8e8b5482004-06-17 23:42:48 +000010778
10779
Lev Walkin8e8b5482004-06-17 23:42:48 +000010780
Lev Walkin8e8b5482004-06-17 23:42:48 +000010781
Lev Walkin8e8b5482004-06-17 23:42:48 +000010782
Lev Walkin8e8b5482004-06-17 23:42:48 +000010783
Lev Walkin8e8b5482004-06-17 23:42:48 +000010784
Lev Walkin8e8b5482004-06-17 23:42:48 +000010785
Lev Walkinfbf1d282007-12-03 14:58:39 +000010786
Lev Walkin8e8b5482004-06-17 23:42:48 +000010787
10788
Lev Walkin4da95cf2010-10-16 02:46:32 -070010789 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010790
Lev Walkinfbf1d282007-12-03 14:58:39 +000010791
10792
Lev Walkinfbf1d282007-12-03 14:58:39 +000010793
Lev Walkin4da95cf2010-10-16 02:46:32 -070010794# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000010795
Lev Walkinf15320b2004-06-03 03:38:44 +000010796
10797
Lev Walkinf15320b2004-06-03 03:38:44 +000010798ac_ext=c
10799ac_cpp='$CPP $CPPFLAGS'
10800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10802ac_compiler_gnu=$ac_cv_c_compiler_gnu
10803if test -n "$ac_tool_prefix"; then
10804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10805set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000010806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010808if test "${ac_cv_prog_CC+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 if test -n "$CC"; then
10812 ac_cv_prog_CC="$CC" # Let the user override the test.
10813else
10814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $PATH
10816do
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000010821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10824 fi
10825done
10826done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010827IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010828
10829fi
10830fi
10831CC=$ac_cv_prog_CC
10832if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010833 { echo "$as_me:$LINENO: result: $CC" >&5
10834echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010835else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010836 { echo "$as_me:$LINENO: result: no" >&5
10837echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010838fi
10839
Lev Walkin27fd0b62007-08-27 23:57:45 +000010840
Lev Walkinf15320b2004-06-03 03:38:44 +000010841fi
10842if test -z "$ac_cv_prog_CC"; then
10843 ac_ct_CC=$CC
10844 # Extract the first word of "gcc", so it can be a program name with args.
10845set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000010846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850else
10851 if test -n "$ac_ct_CC"; then
10852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10853else
10854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855for as_dir in $PATH
10856do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000010861 ac_cv_prog_ac_ct_CC="gcc"
10862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10864 fi
10865done
10866done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010867IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010868
10869fi
10870fi
10871ac_ct_CC=$ac_cv_prog_ac_ct_CC
10872if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010873 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10874echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010875else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010876 { echo "$as_me:$LINENO: result: no" >&5
10877echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010878fi
10879
Lev Walkin27fd0b62007-08-27 23:57:45 +000010880 if test "x$ac_ct_CC" = x; then
10881 CC=""
10882 else
10883 case $cross_compiling:$ac_tool_warned in
10884yes:)
10885{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10886whose name does not start with the host triplet. If you think this
10887configuration is useful to you, please write to autoconf@gnu.org." >&5
10888echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10889whose name does not start with the host triplet. If you think this
10890configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10891ac_tool_warned=yes ;;
10892esac
10893 CC=$ac_ct_CC
10894 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000010895else
10896 CC="$ac_cv_prog_CC"
10897fi
10898
10899if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010900 if test -n "$ac_tool_prefix"; then
10901 # 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 +000010902set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000010903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010905if test "${ac_cv_prog_CC+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907else
10908 if test -n "$CC"; then
10909 ac_cv_prog_CC="$CC" # Let the user override the test.
10910else
10911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912for as_dir in $PATH
10913do
10914 IFS=$as_save_IFS
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000010918 ac_cv_prog_CC="${ac_tool_prefix}cc"
10919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 break 2
10921 fi
10922done
10923done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010924IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010925
10926fi
10927fi
10928CC=$ac_cv_prog_CC
10929if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010930 { echo "$as_me:$LINENO: result: $CC" >&5
10931echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010932else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010933 { echo "$as_me:$LINENO: result: no" >&5
10934echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010935fi
10936
Lev Walkin27fd0b62007-08-27 23:57:45 +000010937
Lev Walkinf15320b2004-06-03 03:38:44 +000010938 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000010939fi
10940if test -z "$CC"; then
10941 # Extract the first word of "cc", so it can be a program name with args.
10942set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000010943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010945if test "${ac_cv_prog_CC+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948 if test -n "$CC"; then
10949 ac_cv_prog_CC="$CC" # Let the user override the test.
10950else
10951 ac_prog_rejected=no
10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $PATH
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000010959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10960 ac_prog_rejected=yes
10961 continue
10962 fi
10963 ac_cv_prog_CC="cc"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010969IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010970
10971if test $ac_prog_rejected = yes; then
10972 # We found a bogon in the path, so make sure we never use it.
10973 set dummy $ac_cv_prog_CC
10974 shift
10975 if test $# != 0; then
10976 # We chose a different compiler from the bogus one.
10977 # However, it has the same basename, so the bogon will be chosen
10978 # first if we set CC to just the basename; use the full file name.
10979 shift
10980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10981 fi
10982fi
10983fi
10984fi
10985CC=$ac_cv_prog_CC
10986if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010987 { echo "$as_me:$LINENO: result: $CC" >&5
10988echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010989else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010990 { echo "$as_me:$LINENO: result: no" >&5
10991echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010992fi
10993
Lev Walkin27fd0b62007-08-27 23:57:45 +000010994
Lev Walkinf15320b2004-06-03 03:38:44 +000010995fi
10996if test -z "$CC"; then
10997 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010998 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000010999 do
11000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011002{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011004if test "${ac_cv_prog_CC+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006else
11007 if test -n "$CC"; then
11008 ac_cv_prog_CC="$CC" # Let the user override the test.
11009else
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11020 fi
11021done
11022done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011023IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011024
11025fi
11026fi
11027CC=$ac_cv_prog_CC
11028if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011029 { echo "$as_me:$LINENO: result: $CC" >&5
11030echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011031else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011032 { echo "$as_me:$LINENO: result: no" >&5
11033echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011034fi
11035
Lev Walkin27fd0b62007-08-27 23:57:45 +000011036
Lev Walkinf15320b2004-06-03 03:38:44 +000011037 test -n "$CC" && break
11038 done
11039fi
11040if test -z "$CC"; then
11041 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000011042 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011043do
11044 # Extract the first word of "$ac_prog", so it can be a program name with args.
11045set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050else
11051 if test -n "$ac_ct_CC"; then
11052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11053else
11054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $PATH
11056do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011061 ac_cv_prog_ac_ct_CC="$ac_prog"
11062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065done
11066done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011067IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011068
11069fi
11070fi
11071ac_ct_CC=$ac_cv_prog_ac_ct_CC
11072if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011073 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11074echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011075else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011076 { echo "$as_me:$LINENO: result: no" >&5
11077echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011078fi
11079
Lev Walkin27fd0b62007-08-27 23:57:45 +000011080
Lev Walkinf15320b2004-06-03 03:38:44 +000011081 test -n "$ac_ct_CC" && break
11082done
11083
Lev Walkin27fd0b62007-08-27 23:57:45 +000011084 if test "x$ac_ct_CC" = x; then
11085 CC=""
11086 else
11087 case $cross_compiling:$ac_tool_warned in
11088yes:)
11089{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11090whose name does not start with the host triplet. If you think this
11091configuration is useful to you, please write to autoconf@gnu.org." >&5
11092echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11093whose name does not start with the host triplet. If you think this
11094configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11095ac_tool_warned=yes ;;
11096esac
11097 CC=$ac_ct_CC
11098 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011099fi
11100
11101fi
11102
11103
11104test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11105See \`config.log' for more details." >&5
11106echo "$as_me: error: no acceptable C compiler found in \$PATH
11107See \`config.log' for more details." >&2;}
11108 { (exit 1); exit 1; }; }
11109
11110# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +000011111echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011112ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +000011113{ (ac_try="$ac_compiler --version >&5"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000011123{ (ac_try="$ac_compiler -v >&5"
11124case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11127esac
11128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000011133{ (ac_try="$ac_compiler -V >&5"
11134case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137esac
11138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }
11143
Lev Walkin27fd0b62007-08-27 23:57:45 +000011144{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11145echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011146if test "${ac_cv_c_compiler_gnu+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155
11156int
11157main ()
11158{
11159#ifndef __GNUC__
11160 choke me
11161#endif
11162
11163 ;
11164 return 0;
11165}
11166_ACEOF
11167rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011168if { (ac_try="$ac_compile"
11169case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172esac
11173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011175 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011180 (exit $ac_status); } && {
11181 test -z "$ac_c_werror_flag" ||
11182 test ! -s conftest.err
11183 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011184 ac_compiler_gnu=yes
11185else
11186 echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
Lev Walkin27fd0b62007-08-27 23:57:45 +000011189 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011190fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011191
11192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011193ac_cv_c_compiler_gnu=$ac_compiler_gnu
11194
11195fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011196{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11197echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011198GCC=`test $ac_compiler_gnu = yes && echo yes`
11199ac_test_CFLAGS=${CFLAGS+set}
11200ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +000011201{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11202echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011203if test "${ac_cv_prog_cc_g+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011206 ac_save_c_werror_flag=$ac_c_werror_flag
11207 ac_c_werror_flag=yes
11208 ac_cv_prog_cc_g=no
11209 CFLAGS="-g"
11210 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216
11217int
11218main ()
11219{
11220
11221 ;
11222 return 0;
11223}
11224_ACEOF
11225rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011226if { (ac_try="$ac_compile"
11227case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230esac
11231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011233 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011238 (exit $ac_status); } && {
11239 test -z "$ac_c_werror_flag" ||
11240 test ! -s conftest.err
11241 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011242 ac_cv_prog_cc_g=yes
11243else
11244 echo "$as_me: failed program was:" >&5
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
Lev Walkin27fd0b62007-08-27 23:57:45 +000011247 CFLAGS=""
11248 cat >conftest.$ac_ext <<_ACEOF
11249/* confdefs.h. */
11250_ACEOF
11251cat confdefs.h >>conftest.$ac_ext
11252cat >>conftest.$ac_ext <<_ACEOF
11253/* end confdefs.h. */
11254
11255int
11256main ()
11257{
11258
11259 ;
11260 return 0;
11261}
11262_ACEOF
11263rm -f conftest.$ac_objext
11264if { (ac_try="$ac_compile"
11265case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268esac
11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_compile") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011276 (exit $ac_status); } && {
11277 test -z "$ac_c_werror_flag" ||
11278 test ! -s conftest.err
11279 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011280 :
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_c_werror_flag=$ac_save_c_werror_flag
11286 CFLAGS="-g"
11287 cat >conftest.$ac_ext <<_ACEOF
11288/* confdefs.h. */
11289_ACEOF
11290cat confdefs.h >>conftest.$ac_ext
11291cat >>conftest.$ac_ext <<_ACEOF
11292/* end confdefs.h. */
11293
11294int
11295main ()
11296{
11297
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (ac_try="$ac_compile"
11304case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307esac
11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_compile") 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011319 ac_cv_prog_cc_g=yes
11320else
11321 echo "$as_me: failed program was:" >&5
11322sed 's/^/| /' conftest.$ac_ext >&5
11323
11324
Lev Walkinf15320b2004-06-03 03:38:44 +000011325fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011326
11327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011328fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011329
11330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331fi
11332
11333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 ac_c_werror_flag=$ac_save_c_werror_flag
11335fi
11336{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11337echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011338if test "$ac_test_CFLAGS" = set; then
11339 CFLAGS=$ac_save_CFLAGS
11340elif test $ac_cv_prog_cc_g = yes; then
11341 if test "$GCC" = yes; then
11342 CFLAGS="-g -O2"
11343 else
11344 CFLAGS="-g"
11345 fi
11346else
11347 if test "$GCC" = yes; then
11348 CFLAGS="-O2"
11349 else
11350 CFLAGS=
11351 fi
11352fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011353{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11354echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11355if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011358 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011359ac_save_CC=$CC
11360cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366#include <stdarg.h>
11367#include <stdio.h>
11368#include <sys/types.h>
11369#include <sys/stat.h>
11370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11371struct buf { int x; };
11372FILE * (*rcsopen) (struct buf *, struct stat *, int);
11373static char *e (p, i)
11374 char **p;
11375 int i;
11376{
11377 return p[i];
11378}
11379static char *f (char * (*g) (char **, int), char **p, ...)
11380{
11381 char *s;
11382 va_list v;
11383 va_start (v,p);
11384 s = g (p, va_arg (v,int));
11385 va_end (v);
11386 return s;
11387}
Lev Walkin8e8b5482004-06-17 23:42:48 +000011388
11389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11390 function prototypes and stuff, but not '\xHH' hex character constants.
11391 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000011392 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000011393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11394 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000011395 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011396int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11397
Lev Walkin27fd0b62007-08-27 23:57:45 +000011398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11399 inside strings and character constants. */
11400#define FOO(x) 'x'
11401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11402
Lev Walkinf15320b2004-06-03 03:38:44 +000011403int test (int i, double x);
11404struct s1 {int (*f) (int a);};
11405struct s2 {int (*f) (double a);};
11406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11407int argc;
11408char **argv;
11409int
11410main ()
11411{
11412return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11413 ;
11414 return 0;
11415}
11416_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000011419do
11420 CC="$ac_save_CC $ac_arg"
11421 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011422if { (ac_try="$ac_compile"
11423case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426esac
11427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011429 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011434 (exit $ac_status); } && {
11435 test -z "$ac_c_werror_flag" ||
11436 test ! -s conftest.err
11437 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011438 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000011439else
11440 echo "$as_me: failed program was:" >&5
11441sed 's/^/| /' conftest.$ac_ext >&5
11442
Lev Walkin27fd0b62007-08-27 23:57:45 +000011443
Lev Walkinf15320b2004-06-03 03:38:44 +000011444fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011445
11446rm -f core conftest.err conftest.$ac_objext
11447 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000011448done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011449rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011450CC=$ac_save_CC
11451
11452fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011453# AC_CACHE_VAL
11454case "x$ac_cv_prog_cc_c89" in
11455 x)
11456 { echo "$as_me:$LINENO: result: none needed" >&5
11457echo "${ECHO_T}none needed" >&6; } ;;
11458 xno)
11459 { echo "$as_me:$LINENO: result: unsupported" >&5
11460echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011461 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011462 CC="$CC $ac_cv_prog_cc_c89"
11463 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11464echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011465esac
11466
Lev Walkinf15320b2004-06-03 03:38:44 +000011467
Lev Walkinf15320b2004-06-03 03:38:44 +000011468ac_ext=c
11469ac_cpp='$CPP $CPPFLAGS'
11470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11472ac_compiler_gnu=$ac_cv_c_compiler_gnu
11473
11474depcc="$CC" am_compiler_list=
11475
Lev Walkin27fd0b62007-08-27 23:57:45 +000011476{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11477echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011478if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480else
11481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11482 # We make a subdir and do the tests there. Otherwise we can end up
11483 # making bogus files that we don't know about and never remove. For
11484 # instance it was reported that on HP-UX the gcc test will end up
11485 # making a dummy file named `D' -- because `-MD' means `put the output
11486 # in D'.
11487 mkdir conftest.dir
11488 # Copy depcomp to subdir because otherwise we won't find it if we're
11489 # using a relative directory.
11490 cp "$am_depcomp" conftest.dir
11491 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000011492 # We will build objects and dependencies in a subdirectory because
11493 # it helps to detect inapplicable dependency modes. For instance
11494 # both Tru64's cc and ICC support -MD to output dependencies as a
11495 # side effect of compilation, but ICC will put the dependencies in
11496 # the current directory while Tru64 will put them in the object
11497 # directory.
11498 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000011499
11500 am_cv_CC_dependencies_compiler_type=none
11501 if test "$am_compiler_list" = ""; then
11502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11503 fi
11504 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000011505 # Setup a source with many dependencies, because some compilers
11506 # like to wrap large dependency lists on column 80 (with \), and
11507 # we should not choose a depcomp mode which is confused by this.
11508 #
Lev Walkinf15320b2004-06-03 03:38:44 +000011509 # We need to recreate these files for each test, as the compiler may
11510 # overwrite some of them when testing with obscure command lines.
11511 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011512 : > sub/conftest.c
11513 for i in 1 2 3 4 5 6; do
11514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11516 # Solaris 8's {/usr,}/bin/sh.
11517 touch sub/conftst$i.h
11518 done
11519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000011520
11521 case $depmode in
11522 nosideeffect)
11523 # after this tag, mechanisms are not by side-effect, so they'll
11524 # only be used when explicitly requested
11525 if test "x$enable_dependency_tracking" = xyes; then
11526 continue
11527 else
11528 break
11529 fi
11530 ;;
11531 none) break ;;
11532 esac
11533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11534 # mode. It turns out that the SunPro C++ compiler does not properly
11535 # handle `-M -o', and we need to detect this.
11536 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011537 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11539 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11540 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -080011541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11543 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000011544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011545 # icc doesn't choke on unknown options, it will just issue warnings
11546 # or remarks (even with -Werror). So we grep stderr for any message
11547 # that says an option was ignored or not supported.
11548 # When given -MP, icc 7.0 and 7.1 complain thusly:
11549 # icc: Command line warning: ignoring option '-M'; no argument required
11550 # The diagnosis changed in icc 8.0:
11551 # icc: Command line remark: option '-MP' not supported
11552 if (grep 'ignoring option' conftest.err ||
11553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11554 am_cv_CC_dependencies_compiler_type=$depmode
11555 break
11556 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011557 fi
11558 done
11559
11560 cd ..
11561 rm -rf conftest.dir
11562else
11563 am_cv_CC_dependencies_compiler_type=none
11564fi
11565
11566fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011567{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11568echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011569CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11570
Lev Walkin4c776e52010-11-08 02:07:31 -080011571 if
Lev Walkin8e8b5482004-06-17 23:42:48 +000011572 test "x$enable_dependency_tracking" != xno \
11573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11574 am__fastdepCC_TRUE=
11575 am__fastdepCC_FALSE='#'
11576else
11577 am__fastdepCC_TRUE='#'
11578 am__fastdepCC_FALSE=
11579fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011580
11581
11582ac_ext=c
11583ac_cpp='$CPP $CPPFLAGS'
11584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +000011587{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11588echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011589# On Suns, sometimes $CPP names a directory.
11590if test -n "$CPP" && test -d "$CPP"; then
11591 CPP=
11592fi
11593if test -z "$CPP"; then
11594 if test "${ac_cv_prog_CPP+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596else
11597 # Double quotes because CPP needs to be expanded
11598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11599 do
11600 ac_preproc_ok=false
11601for ac_c_preproc_warn_flag in '' yes
11602do
11603 # Use a header file that comes with gcc, so configuring glibc
11604 # with a fresh cross-compiler works.
11605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11606 # <limits.h> exists even on freestanding compilers.
11607 # On the NeXT, cc -E runs the code through the compiler's parser,
11608 # not just through cpp. "Syntax error" is here to catch this case.
11609 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615#ifdef __STDC__
11616# include <limits.h>
11617#else
11618# include <assert.h>
11619#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011620 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011621_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011622if { (ac_try="$ac_cpp conftest.$ac_ext"
11623case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011634 (exit $ac_status); } >/dev/null && {
11635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011638 :
11639else
11640 echo "$as_me: failed program was:" >&5
11641sed 's/^/| /' conftest.$ac_ext >&5
11642
11643 # Broken: fails on valid input.
11644continue
11645fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011646
Lev Walkinf15320b2004-06-03 03:38:44 +000011647rm -f conftest.err conftest.$ac_ext
11648
Lev Walkin27fd0b62007-08-27 23:57:45 +000011649 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011650 # can be detected and how.
11651 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011652/* confdefs.h. */
11653_ACEOF
11654cat confdefs.h >>conftest.$ac_ext
11655cat >>conftest.$ac_ext <<_ACEOF
11656/* end confdefs.h. */
11657#include <ac_nonexistent.h>
11658_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011659if { (ac_try="$ac_cpp conftest.$ac_ext"
11660case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663esac
11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011671 (exit $ac_status); } >/dev/null && {
11672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11673 test ! -s conftest.err
11674 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011675 # Broken: success on invalid input.
11676continue
11677else
11678 echo "$as_me: failed program was:" >&5
11679sed 's/^/| /' conftest.$ac_ext >&5
11680
11681 # Passes both tests.
11682ac_preproc_ok=:
11683break
11684fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011685
Lev Walkinf15320b2004-06-03 03:38:44 +000011686rm -f conftest.err conftest.$ac_ext
11687
11688done
11689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11690rm -f conftest.err conftest.$ac_ext
11691if $ac_preproc_ok; then
11692 break
11693fi
11694
11695 done
11696 ac_cv_prog_CPP=$CPP
11697
11698fi
11699 CPP=$ac_cv_prog_CPP
11700else
11701 ac_cv_prog_CPP=$CPP
11702fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011703{ echo "$as_me:$LINENO: result: $CPP" >&5
11704echo "${ECHO_T}$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011705ac_preproc_ok=false
11706for ac_c_preproc_warn_flag in '' yes
11707do
11708 # Use a header file that comes with gcc, so configuring glibc
11709 # with a fresh cross-compiler works.
11710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711 # <limits.h> exists even on freestanding compilers.
11712 # On the NeXT, cc -E runs the code through the compiler's parser,
11713 # not just through cpp. "Syntax error" is here to catch this case.
11714 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011715/* confdefs.h. */
11716_ACEOF
11717cat confdefs.h >>conftest.$ac_ext
11718cat >>conftest.$ac_ext <<_ACEOF
11719/* end confdefs.h. */
11720#ifdef __STDC__
11721# include <limits.h>
11722#else
11723# include <assert.h>
11724#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011725 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011726_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011727if { (ac_try="$ac_cpp conftest.$ac_ext"
11728case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731esac
11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011739 (exit $ac_status); } >/dev/null && {
11740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11741 test ! -s conftest.err
11742 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011743 :
11744else
11745 echo "$as_me: failed program was:" >&5
11746sed 's/^/| /' conftest.$ac_ext >&5
11747
11748 # Broken: fails on valid input.
11749continue
11750fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011751
Lev Walkinf15320b2004-06-03 03:38:44 +000011752rm -f conftest.err conftest.$ac_ext
11753
Lev Walkin27fd0b62007-08-27 23:57:45 +000011754 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011755 # can be detected and how.
11756 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
11762#include <ac_nonexistent.h>
11763_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011764if { (ac_try="$ac_cpp conftest.$ac_ext"
11765case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11768esac
11769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011776 (exit $ac_status); } >/dev/null && {
11777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11778 test ! -s conftest.err
11779 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011780 # Broken: success on invalid input.
11781continue
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 # Passes both tests.
11787ac_preproc_ok=:
11788break
11789fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011790
Lev Walkinf15320b2004-06-03 03:38:44 +000011791rm -f conftest.err conftest.$ac_ext
11792
11793done
11794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11795rm -f conftest.err conftest.$ac_ext
11796if $ac_preproc_ok; then
11797 :
11798else
11799 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11800See \`config.log' for more details." >&5
11801echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11802See \`config.log' for more details." >&2;}
11803 { (exit 1); exit 1; }; }
11804fi
11805
11806ac_ext=c
11807ac_cpp='$CPP $CPPFLAGS'
11808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810ac_compiler_gnu=$ac_cv_c_compiler_gnu
11811
11812# Find a good install program. We prefer a C program (faster),
11813# so one script is as good as another. But avoid the broken or
11814# incompatible versions:
11815# SysV /etc/install, /usr/sbin/install
11816# SunOS /usr/etc/install
11817# IRIX /sbin/install
11818# AIX /bin/install
11819# AmigaOS /C/install, which installs bootblocks on floppy discs
11820# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11821# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11822# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011823# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +000011824# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +000011825{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11826echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011827if test -z "$INSTALL"; then
11828if test "${ac_cv_path_install+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830else
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832for as_dir in $PATH
11833do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
11836 # Account for people who put trailing slashes in PATH elements.
11837case $as_dir/ in
11838 ./ | .// | /cC/* | \
11839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011840 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +000011841 /usr/ucb/* ) ;;
11842 *)
11843 # OSF1 and SCO ODT 3.0 have their own names for install.
11844 # Don't use installbsd from OSF since it installs stuff as root
11845 # by default.
11846 for ac_prog in ginstall scoinst install; do
11847 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011848 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011849 if test $ac_prog = install &&
11850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11851 # AIX install. It has an incompatible calling convention.
11852 :
11853 elif test $ac_prog = install &&
11854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11855 # program-specific install script used by HP pwplus--don't use.
11856 :
11857 else
11858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11859 break 3
11860 fi
11861 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011862 done
11863 done
11864 ;;
11865esac
11866done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011867IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011868
11869
11870fi
11871 if test "${ac_cv_path_install+set}" = set; then
11872 INSTALL=$ac_cv_path_install
11873 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011874 # As a last resort, use the slow shell script. Don't cache a
11875 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +000011876 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +000011877 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +000011878 INSTALL=$ac_install_sh
11879 fi
11880fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011881{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11882echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011883
11884# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11885# It thinks the first close brace ends the variable substitution.
11886test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11887
11888test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11889
11890test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11891
Lev Walkin27fd0b62007-08-27 23:57:45 +000011892{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
11893echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011894LN_S=$as_ln_s
11895if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011896 { echo "$as_me:$LINENO: result: yes" >&5
11897echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011898else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011899 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11900echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011901fi
11902
Lev Walkin27fd0b62007-08-27 23:57:45 +000011903{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11904echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11905set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11906if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011910SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000011911all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000011912 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000011913_ACEOF
11914# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000011915case `${MAKE-make} -f conftest.make 2>/dev/null` in
11916 *@@@%%%=?*=@@@%%%*)
11917 eval ac_cv_prog_make_${ac_make}_set=yes;;
11918 *)
11919 eval ac_cv_prog_make_${ac_make}_set=no;;
11920esac
Lev Walkinf15320b2004-06-03 03:38:44 +000011921rm -f conftest.make
11922fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011923if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11924 { echo "$as_me:$LINENO: result: yes" >&5
11925echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011926 SET_MAKE=
11927else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011928 { echo "$as_me:$LINENO: result: no" >&5
11929echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011930 SET_MAKE="MAKE=${MAKE-make}"
11931fi
11932
11933for ac_prog in 'bison -y' byacc
11934do
11935 # Extract the first word of "$ac_prog", so it can be a program name with args.
11936set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011939if test "${ac_cv_prog_YACC+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 if test -n "$YACC"; then
11943 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11944else
11945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946for as_dir in $PATH
11947do
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011952 ac_cv_prog_YACC="$ac_prog"
11953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11955 fi
11956done
11957done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011958IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011959
11960fi
11961fi
11962YACC=$ac_cv_prog_YACC
11963if test -n "$YACC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011964 { echo "$as_me:$LINENO: result: $YACC" >&5
11965echo "${ECHO_T}$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011966else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011967 { echo "$as_me:$LINENO: result: no" >&5
11968echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011969fi
11970
Lev Walkin27fd0b62007-08-27 23:57:45 +000011971
Lev Walkinf15320b2004-06-03 03:38:44 +000011972 test -n "$YACC" && break
11973done
11974test -n "$YACC" || YACC="yacc"
11975
Lev Walkinf15320b2004-06-03 03:38:44 +000011976for ac_prog in flex lex
11977do
11978 # Extract the first word of "$ac_prog", so it can be a program name with args.
11979set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011982if test "${ac_cv_prog_LEX+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984else
11985 if test -n "$LEX"; then
11986 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11987else
11988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989for as_dir in $PATH
11990do
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011995 ac_cv_prog_LEX="$ac_prog"
11996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11998 fi
11999done
12000done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012001IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012002
12003fi
12004fi
12005LEX=$ac_cv_prog_LEX
12006if test -n "$LEX"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012007 { echo "$as_me:$LINENO: result: $LEX" >&5
12008echo "${ECHO_T}$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012009else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012010 { echo "$as_me:$LINENO: result: no" >&5
12011echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012012fi
12013
Lev Walkin27fd0b62007-08-27 23:57:45 +000012014
Lev Walkinf15320b2004-06-03 03:38:44 +000012015 test -n "$LEX" && break
12016done
12017test -n "$LEX" || LEX=":"
12018
Lev Walkinf15320b2004-06-03 03:38:44 +000012019if test "x$LEX" != "x:"; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012020 cat >conftest.l <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012021%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012022a { ECHO; }
12023b { REJECT; }
12024c { yymore (); }
12025d { yyless (1); }
12026e { yyless (input () != 0); }
12027f { unput (yytext[0]); }
12028. { BEGIN INITIAL; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012029%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012030#ifdef YYTEXT_POINTER
12031extern char *yytext;
12032#endif
12033int
12034main (void)
12035{
12036 return ! yylex () + ! yywrap ();
12037}
Lev Walkinf15320b2004-06-03 03:38:44 +000012038_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012039{ (ac_try="$LEX conftest.l"
12040case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }
Lev Walkin4c776e52010-11-08 02:07:31 -080012049{ echo "$as_me:$LINENO: checking lex output file root" >&5
12050echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
12051if test "${ac_cv_prog_lex_root+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054
Lev Walkinf15320b2004-06-03 03:38:44 +000012055if test -f lex.yy.c; then
12056 ac_cv_prog_lex_root=lex.yy
12057elif test -f lexyy.c; then
12058 ac_cv_prog_lex_root=lexyy
12059else
12060 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
12061echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
12062 { (exit 1); exit 1; }; }
12063fi
12064fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012065{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
12066echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012067LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12068
Lev Walkin4c776e52010-11-08 02:07:31 -080012069if test -z "${LEXLIB+set}"; then
12070 { echo "$as_me:$LINENO: checking lex library" >&5
12071echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
12072if test "${ac_cv_lib_lex+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074else
Lev Walkin4c776e52010-11-08 02:07:31 -080012075
12076 ac_save_LIBS=$LIBS
12077 ac_cv_lib_lex='none needed'
12078 for ac_lib in '' -lfl -ll; do
12079 LIBS="$ac_lib $ac_save_LIBS"
12080 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012081`cat $LEX_OUTPUT_ROOT.c`
12082_ACEOF
12083rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012084if { (ac_try="$ac_link"
12085case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088esac
12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012091 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012096 (exit $ac_status); } && {
12097 test -z "$ac_c_werror_flag" ||
12098 test ! -s conftest.err
12099 } && test -s conftest$ac_exeext &&
12100 $as_test_x conftest$ac_exeext; then
12101 ac_cv_lib_lex=$ac_lib
12102else
12103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106
12107fi
12108
12109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12110 conftest$ac_exeext conftest.$ac_ext
12111 test "$ac_cv_lib_lex" != 'none needed' && break
12112 done
12113 LIBS=$ac_save_LIBS
12114
12115fi
12116{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
12117echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
12118 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12119fi
12120
12121
12122{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
12123echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
12124if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126else
12127 # POSIX says lex can declare yytext either as a pointer or an array; the
12128# default is implementation-dependent. Figure out which it is, since
12129# not all implementations provide the %pointer and %array declarations.
12130ac_cv_prog_lex_yytext_pointer=no
12131ac_save_LIBS=$LIBS
12132LIBS="$LEXLIB $ac_save_LIBS"
12133cat >conftest.$ac_ext <<_ACEOF
12134#define YYTEXT_POINTER 1
12135`cat $LEX_OUTPUT_ROOT.c`
12136_ACEOF
12137rm -f conftest.$ac_objext conftest$ac_exeext
12138if { (ac_try="$ac_link"
12139case "(($ac_try" in
Lev Walkin27fd0b62007-08-27 23:57:45 +000012140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012144 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000012145 ac_status=$?
Lev Walkin4c776e52010-11-08 02:07:31 -080012146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000012149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest$ac_exeext &&
12154 $as_test_x conftest$ac_exeext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012155 ac_cv_prog_lex_yytext_pointer=yes
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
Lev Walkin27fd0b62007-08-27 23:57:45 +000012160
Lev Walkinf15320b2004-06-03 03:38:44 +000012161fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012162
Lev Walkin4c776e52010-11-08 02:07:31 -080012163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012164 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012165LIBS=$ac_save_LIBS
Lev Walkinf15320b2004-06-03 03:38:44 +000012166
12167fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012168{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12169echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012170if test $ac_cv_prog_lex_yytext_pointer = yes; then
12171
12172cat >>confdefs.h <<\_ACEOF
12173#define YYTEXT_POINTER 1
12174_ACEOF
12175
12176fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012177rm -f conftest.l $LEX_OUTPUT_ROOT.c
Lev Walkinf15320b2004-06-03 03:38:44 +000012178
12179fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012180if test "$LEX" = :; then
12181 LEX=${am_missing_run}flex
12182fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000012183# Extract the first word of "ar", so it can be a program name with args.
12184set dummy ar; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012187if test "${ac_cv_path_AR+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190 case $AR in
12191 [\\/]* | ?:[\\/]*)
12192 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12193 ;;
12194 *)
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
12197for as_dir in $as_dummy
12198do
12199 IFS=$as_save_IFS
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000012203 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12205 break 2
12206 fi
12207done
12208done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012209IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000012210
12211 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12212 ;;
12213esac
12214fi
12215AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000012216if test -n "$AR"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012217 { echo "$as_me:$LINENO: result: $AR" >&5
12218echo "${ECHO_T}$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012219else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012220 { echo "$as_me:$LINENO: result: no" >&5
12221echo "${ECHO_T}no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012222fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012223
Lev Walkin27fd0b62007-08-27 23:57:45 +000012224
Lev Walkin5f869d02004-08-23 10:41:38 +000012225case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000012226cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012227 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000012228 *mingw*)
12229 CC="$CC -mno-cygwin"
12230 esac
12231 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012232esac
12233
Lev Walkin27fd0b62007-08-27 23:57:45 +000012234# Check whether --enable-Werror was given.
Lev Walkin04c23172004-09-26 14:18:32 +000012235if test "${enable_Werror+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012236 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000012237else
12238 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012239fi
12240
Lev Walkin04c23172004-09-26 14:18:32 +000012241if test x$enable_werror = xyes; then
12242 ADD_CFLAGS="-Werror -W -Wpointer-arith"
12243fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012244
12245
12246case "$GCC" in
12247 yes)
12248 CFLAGS="$CFLAGS -Wall"
12249 CFLAGS="$CFLAGS -Wshadow"
12250 CFLAGS="$CFLAGS -Wcast-qual"
12251 CFLAGS="$CFLAGS -Wcast-align"
Lev Walkin93636742004-09-26 13:16:33 +000012252 CFLAGS="$CFLAGS -Wchar-subscripts"
Lev Walkinf15320b2004-06-03 03:38:44 +000012253 CFLAGS="$CFLAGS -Wmissing-prototypes"
12254 CFLAGS="$CFLAGS -Wmissing-declarations"
Lev Walkinf15320b2004-06-03 03:38:44 +000012255 ;;
12256esac
12257
12258
Lev Walkin27fd0b62007-08-27 23:57:45 +000012259{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012261if test "${ac_cv_header_stdc+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012265/* confdefs.h. */
12266_ACEOF
12267cat confdefs.h >>conftest.$ac_ext
12268cat >>conftest.$ac_ext <<_ACEOF
12269/* end confdefs.h. */
12270#include <stdlib.h>
12271#include <stdarg.h>
12272#include <string.h>
12273#include <float.h>
12274
12275int
12276main ()
12277{
12278
12279 ;
12280 return 0;
12281}
12282_ACEOF
12283rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012284if { (ac_try="$ac_compile"
12285case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288esac
12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012291 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012296 (exit $ac_status); } && {
12297 test -z "$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12299 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012300 ac_cv_header_stdc=yes
12301else
12302 echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
Lev Walkin27fd0b62007-08-27 23:57:45 +000012305 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012306fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012307
12308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012309
12310if test $ac_cv_header_stdc = yes; then
12311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12312 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012313/* confdefs.h. */
12314_ACEOF
12315cat confdefs.h >>conftest.$ac_ext
12316cat >>conftest.$ac_ext <<_ACEOF
12317/* end confdefs.h. */
12318#include <string.h>
12319
12320_ACEOF
12321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12322 $EGREP "memchr" >/dev/null 2>&1; then
12323 :
12324else
12325 ac_cv_header_stdc=no
12326fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012327rm -f -r conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012328
12329fi
12330
12331if test $ac_cv_header_stdc = yes; then
12332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12333 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
12338/* end confdefs.h. */
12339#include <stdlib.h>
12340
12341_ACEOF
12342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12343 $EGREP "free" >/dev/null 2>&1; then
12344 :
12345else
12346 ac_cv_header_stdc=no
12347fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012348rm -f -r conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012349
12350fi
12351
12352if test $ac_cv_header_stdc = yes; then
12353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12354 if test "$cross_compiling" = yes; then
12355 :
12356else
12357 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
12362/* end confdefs.h. */
12363#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000012364#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012365#if ((' ' & 0x0FF) == 0x020)
12366# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12367# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12368#else
12369# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012370 (('a' <= (c) && (c) <= 'i') \
12371 || ('j' <= (c) && (c) <= 'r') \
12372 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000012373# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12374#endif
12375
12376#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12377int
12378main ()
12379{
12380 int i;
12381 for (i = 0; i < 256; i++)
12382 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000012383 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000012384 return 2;
12385 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012386}
12387_ACEOF
12388rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012389if { (ac_try="$ac_link"
12390case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12393esac
12394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402esac
12403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 :
12409else
12410 echo "$as_me: program exited with status $ac_status" >&5
12411echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414( exit $ac_status )
12415ac_cv_header_stdc=no
12416fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12418fi
12419
12420
Lev Walkinf15320b2004-06-03 03:38:44 +000012421fi
12422fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012423{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12424echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012425if test $ac_cv_header_stdc = yes; then
12426
12427cat >>confdefs.h <<\_ACEOF
12428#define STDC_HEADERS 1
12429_ACEOF
12430
12431fi
12432
Lev Walkinf15320b2004-06-03 03:38:44 +000012433
Lev Walkin79f54952004-08-13 16:58:19 +000012434for ac_header in sys/param.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012435do
12436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000012437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012443ac_res=`eval echo '${'$as_ac_Header'}'`
12444 { echo "$as_me:$LINENO: result: $ac_res" >&5
12445echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012446else
12447 # Is the header compilable?
Lev Walkin27fd0b62007-08-27 23:57:45 +000012448{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012450cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012451/* confdefs.h. */
12452_ACEOF
12453cat confdefs.h >>conftest.$ac_ext
12454cat >>conftest.$ac_ext <<_ACEOF
12455/* end confdefs.h. */
12456$ac_includes_default
12457#include <$ac_header>
12458_ACEOF
12459rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012460if { (ac_try="$ac_compile"
12461case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464esac
12465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012467 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012476 ac_header_compiler=yes
12477else
12478 echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
Lev Walkin27fd0b62007-08-27 23:57:45 +000012481 ac_header_compiler=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012482fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012483
12484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12486echo "${ECHO_T}$ac_header_compiler" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012487
12488# Is the header present?
Lev Walkin27fd0b62007-08-27 23:57:45 +000012489{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012491cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012492/* confdefs.h. */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h. */
12497#include <$ac_header>
12498_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012499if { (ac_try="$ac_cpp conftest.$ac_ext"
12500case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503esac
12504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012506 ac_status=$?
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012511 (exit $ac_status); } >/dev/null && {
12512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12513 test ! -s conftest.err
12514 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012515 ac_header_preproc=yes
12516else
12517 echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520 ac_header_preproc=no
12521fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012522
Lev Walkinf15320b2004-06-03 03:38:44 +000012523rm -f conftest.err conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12525echo "${ECHO_T}$ac_header_preproc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012526
12527# So? What about this header?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12529 yes:no: )
Lev Walkinf15320b2004-06-03 03:38:44 +000012530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12534 ac_header_preproc=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012535 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000012536 no:yes:* )
Lev Walkinf15320b2004-06-03 03:38:44 +000012537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000012545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkine7c4b962010-11-09 03:10:36 -080012549 ( cat <<\_ASBOX
12550## ------------------------------ ##
12551## Report this to vlm@lionet.info ##
12552## ------------------------------ ##
12553_ASBOX
12554 ) | sed "s/^/$as_me: WARNING: /" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000012555 ;;
12556esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000012557{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561else
Lev Walkin8e8b5482004-06-17 23:42:48 +000012562 eval "$as_ac_Header=\$ac_header_preproc"
Lev Walkinf15320b2004-06-03 03:38:44 +000012563fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012564ac_res=`eval echo '${'$as_ac_Header'}'`
12565 { echo "$as_me:$LINENO: result: $ac_res" >&5
12566echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012567
12568fi
12569if test `eval echo '${'$as_ac_Header'}'` = yes; then
12570 cat >>confdefs.h <<_ACEOF
12571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12572_ACEOF
12573
12574fi
12575
12576done
12577
12578
Lev Walkin27fd0b62007-08-27 23:57:45 +000012579{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12580echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012581if test "${ac_cv_c_bigendian+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584 # See if sys/param.h defines the BYTE_ORDER macro.
12585cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591#include <sys/types.h>
12592#include <sys/param.h>
12593
12594int
12595main ()
12596{
Lev Walkin4c776e52010-11-08 02:07:31 -080012597#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12598 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Lev Walkinf15320b2004-06-03 03:38:44 +000012599 bogus endian macros
12600#endif
12601
12602 ;
12603 return 0;
12604}
12605_ACEOF
12606rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012607if { (ac_try="$ac_compile"
12608case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012614 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012623 # It does; now see whether it defined to BIG_ENDIAN or not.
12624cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012625/* confdefs.h. */
12626_ACEOF
12627cat confdefs.h >>conftest.$ac_ext
12628cat >>conftest.$ac_ext <<_ACEOF
12629/* end confdefs.h. */
12630#include <sys/types.h>
12631#include <sys/param.h>
12632
12633int
12634main ()
12635{
12636#if BYTE_ORDER != BIG_ENDIAN
12637 not big endian
12638#endif
12639
12640 ;
12641 return 0;
12642}
12643_ACEOF
12644rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012645if { (ac_try="$ac_compile"
12646case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012652 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012657 (exit $ac_status); } && {
12658 test -z "$ac_c_werror_flag" ||
12659 test ! -s conftest.err
12660 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012661 ac_cv_c_bigendian=yes
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
Lev Walkin27fd0b62007-08-27 23:57:45 +000012666 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012667fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012668
12669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012670else
12671 echo "$as_me: failed program was:" >&5
12672sed 's/^/| /' conftest.$ac_ext >&5
12673
Lev Walkin27fd0b62007-08-27 23:57:45 +000012674 # It does not; compile a test program.
Lev Walkinf15320b2004-06-03 03:38:44 +000012675if test "$cross_compiling" = yes; then
12676 # try to guess the endianness by grepping values into an object file
12677 ac_cv_c_bigendian=unknown
12678 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000012684short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12685short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000012686void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000012687short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12688short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000012689void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12690int
12691main ()
12692{
12693 _ascii (); _ebcdic ();
12694 ;
12695 return 0;
12696}
12697_ACEOF
12698rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012699if { (ac_try="$ac_compile"
12700case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012706 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012715 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12716 ac_cv_c_bigendian=yes
12717fi
12718if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12719 if test "$ac_cv_c_bigendian" = unknown; then
12720 ac_cv_c_bigendian=no
12721 else
12722 # finding both strings is unlikely to happen, but who knows?
12723 ac_cv_c_bigendian=unknown
12724 fi
12725fi
12726else
12727 echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
Lev Walkin27fd0b62007-08-27 23:57:45 +000012730
Lev Walkinf15320b2004-06-03 03:38:44 +000012731fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012732
12733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012734else
12735 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000012741$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000012742int
12743main ()
12744{
Lev Walkin27fd0b62007-08-27 23:57:45 +000012745
Lev Walkinf15320b2004-06-03 03:38:44 +000012746 /* Are we little or big endian? From Harbison&Steele. */
12747 union
12748 {
Lev Walkin27fd0b62007-08-27 23:57:45 +000012749 long int l;
12750 char c[sizeof (long int)];
Lev Walkinf15320b2004-06-03 03:38:44 +000012751 } u;
12752 u.l = 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012753 return u.c[sizeof (long int) - 1] == 1;
12754
12755 ;
12756 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012757}
12758_ACEOF
12759rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012760if { (ac_try="$ac_link"
12761case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012770 { (case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
12774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_cv_c_bigendian=no
12780else
12781 echo "$as_me: program exited with status $ac_status" >&5
12782echo "$as_me: failed program was:" >&5
12783sed 's/^/| /' conftest.$ac_ext >&5
12784
12785( exit $ac_status )
12786ac_cv_c_bigendian=yes
12787fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012788rm -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 +000012789fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012790
12791
Lev Walkinf15320b2004-06-03 03:38:44 +000012792fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012793
12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012795fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012796{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12797echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012798case $ac_cv_c_bigendian in
12799 yes)
12800
12801cat >>confdefs.h <<\_ACEOF
12802#define WORDS_BIGENDIAN 1
12803_ACEOF
12804 ;;
12805 no)
12806 ;;
12807 *)
12808 { { echo "$as_me:$LINENO: error: unknown endianness
12809presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12810echo "$as_me: error: unknown endianness
12811presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12812 { (exit 1); exit 1; }; } ;;
12813esac
12814
Lev Walkin27fd0b62007-08-27 23:57:45 +000012815{ echo "$as_me:$LINENO: checking for off_t" >&5
12816echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012817if test "${ac_cv_type_off_t+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12819else
12820 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000012827typedef off_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000012828int
12829main ()
12830{
Lev Walkin27fd0b62007-08-27 23:57:45 +000012831if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000012832 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012833if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000012834 return 0;
12835 ;
12836 return 0;
12837}
12838_ACEOF
12839rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012840if { (ac_try="$ac_compile"
12841case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844esac
12845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012847 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012852 (exit $ac_status); } && {
12853 test -z "$ac_c_werror_flag" ||
12854 test ! -s conftest.err
12855 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012856 ac_cv_type_off_t=yes
12857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
Lev Walkin27fd0b62007-08-27 23:57:45 +000012861 ac_cv_type_off_t=no
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{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12867echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012868if test $ac_cv_type_off_t = yes; then
12869 :
12870else
12871
12872cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012873#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000012874_ACEOF
12875
12876fi
12877
Lev Walkin27fd0b62007-08-27 23:57:45 +000012878{ echo "$as_me:$LINENO: checking for size_t" >&5
12879echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012880if test "${ac_cv_type_size_t+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882else
12883 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000012890typedef size_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000012891int
12892main ()
12893{
Lev Walkin27fd0b62007-08-27 23:57:45 +000012894if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000012895 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012896if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000012897 return 0;
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012903if { (ac_try="$ac_compile"
12904case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012910 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012919 ac_cv_type_size_t=yes
12920else
12921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
Lev Walkin27fd0b62007-08-27 23:57:45 +000012924 ac_cv_type_size_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012925fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012926
12927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012928fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012929{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12930echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012931if test $ac_cv_type_size_t = yes; then
12932 :
12933else
12934
12935cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012936#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000012937_ACEOF
12938
12939fi
12940
Lev Walkin27fd0b62007-08-27 23:57:45 +000012941{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12942echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012943if test "${ac_cv_struct_tm+set}" = set; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12945else
12946 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952#include <sys/types.h>
12953#include <time.h>
12954
12955int
12956main ()
12957{
Lev Walkin4c776e52010-11-08 02:07:31 -080012958struct tm tm;
12959 int *p = &tm.tm_sec;
12960 return !p;
Lev Walkinf15320b2004-06-03 03:38:44 +000012961 ;
12962 return 0;
12963}
12964_ACEOF
12965rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012966if { (ac_try="$ac_compile"
12967case "(($ac_try" in
12968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12970esac
12971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012973 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012974 grep -v '^ *+' conftest.er1 >conftest.err
12975 rm -f conftest.er1
12976 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012978 (exit $ac_status); } && {
12979 test -z "$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12981 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012982 ac_cv_struct_tm=time.h
12983else
12984 echo "$as_me: failed program was:" >&5
12985sed 's/^/| /' conftest.$ac_ext >&5
12986
Lev Walkin27fd0b62007-08-27 23:57:45 +000012987 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012988fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012989
12990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012991fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012992{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12993echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012994if test $ac_cv_struct_tm = sys/time.h; then
12995
12996cat >>confdefs.h <<\_ACEOF
12997#define TM_IN_SYS_TIME 1
12998_ACEOF
12999
13000fi
13001
Lev Walkin27fd0b62007-08-27 23:57:45 +000013002{ echo "$as_me:$LINENO: checking for intmax_t" >&5
13003echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013004if test "${ac_cv_type_intmax_t+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006else
13007 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013008/* confdefs.h. */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
13012/* end confdefs.h. */
13013$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000013014typedef intmax_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000013015int
13016main ()
13017{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013018if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000013019 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013020if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000013021 return 0;
13022 ;
13023 return 0;
13024}
13025_ACEOF
13026rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013027if { (ac_try="$ac_compile"
13028case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031esac
13032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013034 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013039 (exit $ac_status); } && {
13040 test -z "$ac_c_werror_flag" ||
13041 test ! -s conftest.err
13042 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013043 ac_cv_type_intmax_t=yes
13044else
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
Lev Walkin27fd0b62007-08-27 23:57:45 +000013048 ac_cv_type_intmax_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000013049fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013050
13051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013052fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013053{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
13054echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013055if test $ac_cv_type_intmax_t = yes; then
13056 :
13057else
13058
13059cat >>confdefs.h <<_ACEOF
13060#define intmax_t int64_t
13061_ACEOF
13062
13063fi
13064
13065
Lev Walkin058e2222007-12-04 00:27:38 +000013066{ echo "$as_me:$LINENO: checking for library containing getopt" >&5
13067echo $ECHO_N "checking for library containing getopt... $ECHO_C" >&6; }
13068if test "${ac_cv_search_getopt+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
13071 ac_func_search_save_LIBS=$LIBS
13072cat >conftest.$ac_ext <<_ACEOF
13073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h. */
13078
13079/* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13082#ifdef __cplusplus
13083extern "C"
13084#endif
13085char getopt ();
13086int
13087main ()
13088{
13089return getopt ();
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094for ac_lib in '' iberty; do
13095 if test -z "$ac_lib"; then
13096 ac_res="none required"
13097 else
13098 ac_res=-l$ac_lib
13099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13100 fi
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102if { (ac_try="$ac_link"
13103case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_link") 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013114 (exit $ac_status); } && {
13115 test -z "$ac_c_werror_flag" ||
13116 test ! -s conftest.err
13117 } && test -s conftest$ac_exeext &&
13118 $as_test_x conftest$ac_exeext; then
Lev Walkin058e2222007-12-04 00:27:38 +000013119 ac_cv_search_getopt=$ac_res
13120else
13121 echo "$as_me: failed program was:" >&5
13122sed 's/^/| /' conftest.$ac_ext >&5
13123
13124
13125fi
13126
Lev Walkin4c776e52010-11-08 02:07:31 -080013127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin058e2222007-12-04 00:27:38 +000013128 conftest$ac_exeext
13129 if test "${ac_cv_search_getopt+set}" = set; then
13130 break
13131fi
13132done
13133if test "${ac_cv_search_getopt+set}" = set; then
13134 :
13135else
13136 ac_cv_search_getopt=no
13137fi
13138rm conftest.$ac_ext
13139LIBS=$ac_func_search_save_LIBS
13140fi
13141{ echo "$as_me:$LINENO: result: $ac_cv_search_getopt" >&5
13142echo "${ECHO_T}$ac_cv_search_getopt" >&6; }
13143ac_res=$ac_cv_search_getopt
13144if test "$ac_res" != no; then
13145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13146
13147fi
13148
13149
Lev Walkinf15320b2004-06-03 03:38:44 +000013150
13151
13152for ac_func in strtoimax strtoll
13153do
13154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013155{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13157if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159else
13160 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13168#define $ac_func innocuous_$ac_func
13169
Lev Walkinf15320b2004-06-03 03:38:44 +000013170/* System header to define __stub macros and hopefully few prototypes,
13171 which can conflict with char $ac_func (); below.
13172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13173 <limits.h> exists even on freestanding compilers. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013174
Lev Walkinf15320b2004-06-03 03:38:44 +000013175#ifdef __STDC__
13176# include <limits.h>
13177#else
13178# include <assert.h>
13179#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013180
13181#undef $ac_func
13182
Lev Walkin27fd0b62007-08-27 23:57:45 +000013183/* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000013186#ifdef __cplusplus
13187extern "C"
Lev Walkinf15320b2004-06-03 03:38:44 +000013188#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000013189char $ac_func ();
13190/* The GNU C library defines this for functions which it implements
13191 to always fail with ENOSYS. Some functions are actually named
13192 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013193#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkinf15320b2004-06-03 03:38:44 +000013194choke me
Lev Walkinf15320b2004-06-03 03:38:44 +000013195#endif
13196
13197int
13198main ()
13199{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013200return $ac_func ();
Lev Walkinf15320b2004-06-03 03:38:44 +000013201 ;
13202 return 0;
13203}
13204_ACEOF
13205rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013206if { (ac_try="$ac_link"
13207case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13210esac
13211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013213 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013214 grep -v '^ *+' conftest.er1 >conftest.err
13215 rm -f conftest.er1
13216 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013218 (exit $ac_status); } && {
13219 test -z "$ac_c_werror_flag" ||
13220 test ! -s conftest.err
13221 } && test -s conftest$ac_exeext &&
13222 $as_test_x conftest$ac_exeext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013223 eval "$as_ac_var=yes"
13224else
13225 echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
13227
Lev Walkin27fd0b62007-08-27 23:57:45 +000013228 eval "$as_ac_var=no"
Lev Walkinf15320b2004-06-03 03:38:44 +000013229fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013230
Lev Walkin4c776e52010-11-08 02:07:31 -080013231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013232 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013233fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013234ac_res=`eval echo '${'$as_ac_var'}'`
13235 { echo "$as_me:$LINENO: result: $ac_res" >&5
13236echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013237if test `eval echo '${'$as_ac_var'}'` = yes; then
13238 cat >>confdefs.h <<_ACEOF
13239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13240_ACEOF
13241
13242fi
13243done
13244
13245
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013246for ac_func in mergesort
13247do
13248as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013249{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13251if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253else
13254 cat >conftest.$ac_ext <<_ACEOF
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13262#define $ac_func innocuous_$ac_func
13263
13264/* System header to define __stub macros and hopefully few prototypes,
13265 which can conflict with char $ac_func (); below.
13266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267 <limits.h> exists even on freestanding compilers. */
13268
13269#ifdef __STDC__
13270# include <limits.h>
13271#else
13272# include <assert.h>
13273#endif
13274
13275#undef $ac_func
13276
Lev Walkin27fd0b62007-08-27 23:57:45 +000013277/* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013280#ifdef __cplusplus
13281extern "C"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013282#endif
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013283char $ac_func ();
13284/* The GNU C library defines this for functions which it implements
13285 to always fail with ENOSYS. Some functions are actually named
13286 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013287#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013288choke me
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013289#endif
13290
13291int
13292main ()
13293{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013294return $ac_func ();
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013295 ;
13296 return 0;
13297}
13298_ACEOF
13299rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013300if { (ac_try="$ac_link"
13301case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304esac
13305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_link") 2>conftest.er1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest$ac_exeext &&
13316 $as_test_x conftest$ac_exeext; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013317 eval "$as_ac_var=yes"
13318else
13319 echo "$as_me: failed program was:" >&5
13320sed 's/^/| /' conftest.$ac_ext >&5
13321
Lev Walkin27fd0b62007-08-27 23:57:45 +000013322 eval "$as_ac_var=no"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013323fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013324
Lev Walkin4c776e52010-11-08 02:07:31 -080013325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013326 conftest$ac_exeext conftest.$ac_ext
13327fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013328ac_res=`eval echo '${'$as_ac_var'}'`
13329 { echo "$as_me:$LINENO: result: $ac_res" >&5
13330echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013331if test `eval echo '${'$as_ac_var'}'` = yes; then
13332 cat >>confdefs.h <<_ACEOF
13333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13334_ACEOF
13335
13336fi
13337done
13338
13339
Lev Walkin27fd0b62007-08-27 23:57:45 +000013340for ac_func in mkstemps
13341do
13342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13343{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13345if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13356#define $ac_func innocuous_$ac_func
13357
13358/* System header to define __stub macros and hopefully few prototypes,
13359 which can conflict with char $ac_func (); below.
13360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13361 <limits.h> exists even on freestanding compilers. */
13362
13363#ifdef __STDC__
13364# include <limits.h>
13365#else
13366# include <assert.h>
13367#endif
13368
13369#undef $ac_func
13370
13371/* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13374#ifdef __cplusplus
13375extern "C"
13376#endif
13377char $ac_func ();
13378/* The GNU C library defines this for functions which it implements
13379 to always fail with ENOSYS. Some functions are actually named
13380 something starting with __ and the normal name is an alias. */
13381#if defined __stub_$ac_func || defined __stub___$ac_func
13382choke me
13383#endif
13384
13385int
13386main ()
13387{
13388return $ac_func ();
13389 ;
13390 return 0;
13391}
13392_ACEOF
13393rm -f conftest.$ac_objext conftest$ac_exeext
13394if { (ac_try="$ac_link"
13395case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398esac
13399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_link") 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013406 (exit $ac_status); } && {
13407 test -z "$ac_c_werror_flag" ||
13408 test ! -s conftest.err
13409 } && test -s conftest$ac_exeext &&
13410 $as_test_x conftest$ac_exeext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013411 eval "$as_ac_var=yes"
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 eval "$as_ac_var=no"
13417fi
13418
Lev Walkin4c776e52010-11-08 02:07:31 -080013419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin27fd0b62007-08-27 23:57:45 +000013420 conftest$ac_exeext conftest.$ac_ext
13421fi
13422ac_res=`eval echo '${'$as_ac_var'}'`
13423 { echo "$as_me:$LINENO: result: $ac_res" >&5
13424echo "${ECHO_T}$ac_res" >&6; }
13425if test `eval echo '${'$as_ac_var'}'` = yes; then
13426 cat >>confdefs.h <<_ACEOF
13427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13428_ACEOF
13429
13430fi
13431done
Lev Walkinf15320b2004-06-03 03:38:44 +000013432
13433
Lev Walkine7c4b962010-11-09 03:10:36 -080013434ac_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 doc/docsrc/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013435
Lev Walkinf15320b2004-06-03 03:38:44 +000013436cat >confcache <<\_ACEOF
13437# This file is a shell script that caches the results of configure
13438# tests run on this system so they can be shared between configure
13439# scripts and configure runs, see configure's option --config-cache.
13440# It is not useful on other systems. If it contains results you don't
13441# want to keep, you may remove or edit it.
13442#
13443# config.status only pays attention to the cache file if you give it
13444# the --recheck option to rerun configure.
13445#
13446# `ac_cv_env_foo' variables (set or unset) will be overridden when
13447# loading this file, other *unset* `ac_cv_foo' will be assigned the
13448# following values.
13449
13450_ACEOF
13451
13452# The following way of writing the cache mishandles newlines in values,
13453# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013454# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000013455# Ultrix sh set writes to stderr and can't be redirected directly,
13456# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013457(
13458 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13459 eval ac_val=\$$ac_var
13460 case $ac_val in #(
13461 *${as_nl}*)
13462 case $ac_var in #(
13463 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13464echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13465 esac
13466 case $ac_var in #(
13467 _ | IFS | as_nl) ;; #(
13468 *) $as_unset $ac_var ;;
13469 esac ;;
13470 esac
13471 done
13472
Lev Walkinf15320b2004-06-03 03:38:44 +000013473 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13475 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +000013476 # `set' does not quote correctly, so add quotes (double-quote
13477 # substitution turns \\\\ into \\, and sed turns \\ into \).
13478 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013479 "s/'/'\\\\''/g;
13480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013481 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000013482 *)
13483 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000013485 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013486 esac |
13487 sort
13488) |
Lev Walkinf15320b2004-06-03 03:38:44 +000013489 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013490 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000013491 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000013492 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000013493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13494 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000013495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13496 :end' >>confcache
13497if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13498 if test -w "$cache_file"; then
13499 test "x$cache_file" != "x/dev/null" &&
13500 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13501echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013502 cat confcache >$cache_file
13503 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013504 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13505echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013506 fi
13507fi
13508rm -f confcache
13509
13510test "x$prefix" = xNONE && prefix=$ac_default_prefix
13511# Let make expand exec_prefix.
13512test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13513
Lev Walkinf15320b2004-06-03 03:38:44 +000013514DEFS=-DHAVE_CONFIG_H
13515
13516ac_libobjs=
13517ac_ltlibobjs=
13518for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13519 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13521 ac_i=`echo "$ac_i" | sed "$ac_script"`
13522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13523 # will be set to the directory where LIBOBJS objects are built.
13524 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13525 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000013526done
13527LIBOBJS=$ac_libobjs
13528
13529LTLIBOBJS=$ac_ltlibobjs
13530
13531
Lev Walkin8e8b5482004-06-17 23:42:48 +000013532if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13533 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13534Usually this means the macro was only invoked conditionally." >&5
13535echo "$as_me: error: conditional \"AMDEP\" was never defined.
13536Usually this means the macro was only invoked conditionally." >&2;}
13537 { (exit 1); exit 1; }; }
13538fi
13539if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13540 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13541Usually this means the macro was only invoked conditionally." >&5
13542echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13543Usually this means the macro was only invoked conditionally." >&2;}
13544 { (exit 1); exit 1; }; }
13545fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013546if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13547 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13548Usually this means the macro was only invoked conditionally." >&5
13549echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13550Usually this means the macro was only invoked conditionally." >&2;}
13551 { (exit 1); exit 1; }; }
13552fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013553
13554: ${CONFIG_STATUS=./config.status}
13555ac_clean_files_save=$ac_clean_files
13556ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13557{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13558echo "$as_me: creating $CONFIG_STATUS" >&6;}
13559cat >$CONFIG_STATUS <<_ACEOF
13560#! $SHELL
13561# Generated by $as_me.
13562# Run this file to recreate the current configuration.
13563# Compiler output produced by configure, useful for debugging
13564# configure, is in config.log if it exists.
13565
13566debug=false
13567ac_cs_recheck=false
13568ac_cs_silent=false
13569SHELL=\${CONFIG_SHELL-$SHELL}
13570_ACEOF
13571
13572cat >>$CONFIG_STATUS <<\_ACEOF
13573## --------------------- ##
13574## M4sh Initialization. ##
13575## --------------------- ##
13576
Lev Walkin4c776e52010-11-08 02:07:31 -080013577# Be more Bourne compatible
13578DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000013579if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13580 emulate sh
13581 NULLCMD=:
13582 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13583 # is contrary to our usage. Disable this feature.
13584 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013585 setopt NO_GLOB_SUBST
13586else
Lev Walkin4c776e52010-11-08 02:07:31 -080013587 case `(set -o) 2>/dev/null` in
13588 *posix*) set -o posix ;;
13589esac
13590
Lev Walkinf15320b2004-06-03 03:38:44 +000013591fi
Lev Walkin4c776e52010-11-08 02:07:31 -080013592
13593
Lev Walkinf15320b2004-06-03 03:38:44 +000013594
Lev Walkinf15320b2004-06-03 03:38:44 +000013595
Lev Walkin27fd0b62007-08-27 23:57:45 +000013596# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000013597# Avoid depending upon Character Ranges.
13598as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13599as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13600as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13601as_cr_digits='0123456789'
13602as_cr_alnum=$as_cr_Letters$as_cr_digits
13603
13604# The user is always right.
13605if test "${PATH_SEPARATOR+set}" != set; then
13606 echo "#! /bin/sh" >conf$$.sh
13607 echo "exit 0" >>conf$$.sh
13608 chmod +x conf$$.sh
13609 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13610 PATH_SEPARATOR=';'
13611 else
13612 PATH_SEPARATOR=:
13613 fi
13614 rm -f conf$$.sh
13615fi
13616
Lev Walkin27fd0b62007-08-27 23:57:45 +000013617# Support unset when possible.
13618if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13619 as_unset=unset
13620else
13621 as_unset=false
13622fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013623
Lev Walkin27fd0b62007-08-27 23:57:45 +000013624
13625# IFS
13626# We need space, tab and new line, in precisely that order. Quoting is
13627# there to prevent editors from complaining about space-tab.
13628# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13629# splitting by setting IFS to empty value.)
13630as_nl='
13631'
13632IFS=" "" $as_nl"
13633
13634# Find who we are. Look in the path if we contain no directory separator.
13635case $0 in
13636 *[\\/]* ) as_myself=$0 ;;
13637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000013638for as_dir in $PATH
13639do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13643done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013644IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013645
Lev Walkin27fd0b62007-08-27 23:57:45 +000013646 ;;
13647esac
13648# We did not find ourselves, most probably we were run as `sh COMMAND'
13649# in which case we are not to be found in the path.
13650if test "x$as_myself" = x; then
13651 as_myself=$0
13652fi
13653if test ! -f "$as_myself"; then
13654 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13655 { (exit 1); exit 1; }
13656fi
13657
13658# Work around bugs in pre-3.0 UWIN ksh.
13659for as_var in ENV MAIL MAILPATH
13660do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13661done
13662PS1='$ '
13663PS2='> '
13664PS4='+ '
13665
13666# NLS nuisances.
13667for as_var in \
13668 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13669 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13670 LC_TELEPHONE LC_TIME
Lev Walkinf15320b2004-06-03 03:38:44 +000013671do
Lev Walkin27fd0b62007-08-27 23:57:45 +000013672 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13673 eval $as_var=C; export $as_var
13674 else
13675 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13676 fi
13677done
13678
13679# Required to use basename.
13680if expr a : '\(a\)' >/dev/null 2>&1 &&
13681 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13682 as_expr=expr
13683else
13684 as_expr=false
13685fi
13686
13687if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13688 as_basename=basename
13689else
13690 as_basename=false
13691fi
13692
13693
13694# Name of the executable.
13695as_me=`$as_basename -- "$0" ||
13696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13697 X"$0" : 'X\(//\)$' \| \
13698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13699echo X/"$0" |
13700 sed '/^.*\/\([^/][^/]*\)\/*$/{
13701 s//\1/
13702 q
13703 }
13704 /^X\/\(\/\/\)$/{
13705 s//\1/
13706 q
13707 }
13708 /^X\/\(\/\).*/{
13709 s//\1/
13710 q
13711 }
13712 s/.*/./; q'`
13713
13714# CDPATH.
13715$as_unset CDPATH
13716
13717
13718
Lev Walkinf15320b2004-06-03 03:38:44 +000013719 as_lineno_1=$LINENO
13720 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +000013721 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013722 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +000013723
13724 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13725 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +000013726 # line-number line after each line using $LINENO; the second 'sed'
13727 # does the real work. The second script uses 'N' to pair each
13728 # line-number line with the line containing $LINENO, and appends
13729 # trailing '-' during substitution so that $LINENO is not a special
13730 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +000013731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +000013732 # scripts with optimization help from Paolo Bonzini. Blame Lee
13733 # E. McMahon (1931-1989) for sed's syntax. :-)
13734 sed -n '
13735 p
13736 /[$]LINENO/=
13737 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +000013738 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013739 s/[$]LINENO.*/&-/
13740 t lineno
13741 b
13742 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +000013743 N
Lev Walkin27fd0b62007-08-27 23:57:45 +000013744 :loop
13745 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +000013746 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +000013747 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +000013748 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013749 chmod +x "$as_me.lineno" ||
13750 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000013751 { (exit 1); exit 1; }; }
13752
13753 # Don't try to exec as it changes $[0], causing all sort of problems
13754 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +000013755 # original and so on. Autoconf is especially sensitive to this).
13756 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +000013757 # Exit status is that of the last command.
13758 exit
13759}
13760
13761
Lev Walkin27fd0b62007-08-27 23:57:45 +000013762if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13763 as_dirname=dirname
13764else
13765 as_dirname=false
13766fi
13767
13768ECHO_C= ECHO_N= ECHO_T=
13769case `echo -n x` in
13770-n*)
13771 case `echo 'x\c'` in
13772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13773 *) ECHO_C='\c';;
13774 esac;;
13775*)
13776 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000013777esac
13778
Lev Walkin27fd0b62007-08-27 23:57:45 +000013779if expr a : '\(a\)' >/dev/null 2>&1 &&
13780 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013781 as_expr=expr
13782else
13783 as_expr=false
13784fi
13785
13786rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000013787if test -d conf$$.dir; then
13788 rm -f conf$$.dir/conf$$.file
13789else
13790 rm -f conf$$.dir
13791 mkdir conf$$.dir
13792fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013793echo >conf$$.file
13794if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013795 as_ln_s='ln -s'
13796 # ... but there are two gotchas:
13797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13799 # In both cases, we have to default to `cp -p'.
13800 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinf15320b2004-06-03 03:38:44 +000013801 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +000013802elif ln conf$$.file conf$$ 2>/dev/null; then
13803 as_ln_s=ln
13804else
13805 as_ln_s='cp -p'
13806fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013807rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13808rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000013809
13810if mkdir -p . 2>/dev/null; then
13811 as_mkdir_p=:
13812else
Lev Walkin8e8b5482004-06-17 23:42:48 +000013813 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000013814 as_mkdir_p=false
13815fi
13816
Lev Walkin4c776e52010-11-08 02:07:31 -080013817if test -x / >/dev/null 2>&1; then
13818 as_test_x='test -x'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013819else
Lev Walkin4c776e52010-11-08 02:07:31 -080013820 if ls -dL / >/dev/null 2>&1; then
13821 as_ls_L_option=L
13822 else
13823 as_ls_L_option=
13824 fi
13825 as_test_x='
13826 eval sh -c '\''
13827 if test -d "$1"; then
13828 test -d "$1/.";
13829 else
13830 case $1 in
13831 -*)set "./$1";;
13832 esac;
13833 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13834 ???[sx]*):;;*)false;;esac;fi
13835 '\'' sh
13836 '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013837fi
Lev Walkin4c776e52010-11-08 02:07:31 -080013838as_executable_p=$as_test_x
Lev Walkinf15320b2004-06-03 03:38:44 +000013839
13840# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013841as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013842
13843# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013844as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013845
13846
Lev Walkinf15320b2004-06-03 03:38:44 +000013847exec 6>&1
13848
Lev Walkin27fd0b62007-08-27 23:57:45 +000013849# Save the log message, to keep $[0] and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000013850# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000013851# values after options handling.
13852ac_log="
Lev Walkine7c4b962010-11-09 03:10:36 -080013853This file was extended by asn1c $as_me 0.9.23, which was
Lev Walkin4c776e52010-11-08 02:07:31 -080013854generated by GNU Autoconf 2.61. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000013855
13856 CONFIG_FILES = $CONFIG_FILES
13857 CONFIG_HEADERS = $CONFIG_HEADERS
13858 CONFIG_LINKS = $CONFIG_LINKS
13859 CONFIG_COMMANDS = $CONFIG_COMMANDS
13860 $ $0 $@
13861
Lev Walkin27fd0b62007-08-27 23:57:45 +000013862on `(hostname || uname -n) 2>/dev/null | sed 1q`
13863"
13864
Lev Walkinf15320b2004-06-03 03:38:44 +000013865_ACEOF
13866
Lev Walkin27fd0b62007-08-27 23:57:45 +000013867cat >>$CONFIG_STATUS <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013868# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013869config_files="$ac_config_files"
13870config_headers="$ac_config_headers"
13871config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000013872
Lev Walkin27fd0b62007-08-27 23:57:45 +000013873_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013874
13875cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013876ac_cs_usage="\
13877\`$as_me' instantiates files from templates according to the
13878current configuration.
13879
13880Usage: $0 [OPTIONS] [FILE]...
13881
13882 -h, --help print this help, then exit
Lev Walkin4c776e52010-11-08 02:07:31 -080013883 -V, --version print version number and configuration settings, then exit
Lev Walkinf15320b2004-06-03 03:38:44 +000013884 -q, --quiet do not print progress messages
13885 -d, --debug don't remove temporary files
13886 --recheck update $as_me by reconfiguring in the same conditions
13887 --file=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000013888 instantiate the configuration file FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000013889 --header=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000013890 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000013891
13892Configuration files:
13893$config_files
13894
13895Configuration headers:
13896$config_headers
13897
13898Configuration commands:
13899$config_commands
13900
13901Report bugs to <bug-autoconf@gnu.org>."
Lev Walkinf15320b2004-06-03 03:38:44 +000013902
Lev Walkin27fd0b62007-08-27 23:57:45 +000013903_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013904cat >>$CONFIG_STATUS <<_ACEOF
13905ac_cs_version="\\
Lev Walkine7c4b962010-11-09 03:10:36 -080013906asn1c config.status 0.9.23
Lev Walkin4c776e52010-11-08 02:07:31 -080013907configured by $0, generated by GNU Autoconf 2.61,
Lev Walkin27fd0b62007-08-27 23:57:45 +000013908 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000013909
Lev Walkin27fd0b62007-08-27 23:57:45 +000013910Copyright (C) 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000013911This config.status script is free software; the Free Software Foundation
13912gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000013913
13914ac_pwd='$ac_pwd'
13915srcdir='$srcdir'
13916INSTALL='$INSTALL'
Lev Walkin4c776e52010-11-08 02:07:31 -080013917MKDIR_P='$MKDIR_P'
Lev Walkinf15320b2004-06-03 03:38:44 +000013918_ACEOF
13919
13920cat >>$CONFIG_STATUS <<\_ACEOF
13921# If no file are specified by the user, then we need to provide default
13922# value. By we need to know if files were specified by the user.
13923ac_need_defaults=:
13924while test $# != 0
13925do
13926 case $1 in
13927 --*=*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013928 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13929 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000013930 ac_shift=:
13931 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013932 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000013933 ac_option=$1
13934 ac_optarg=$2
13935 ac_shift=shift
13936 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013937 esac
13938
13939 case $ac_option in
13940 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000013941 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13942 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013943 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13944 echo "$ac_cs_version"; exit ;;
13945 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000013946 debug=: ;;
13947 --file | --fil | --fi | --f )
13948 $ac_shift
13949 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13950 ac_need_defaults=false;;
13951 --header | --heade | --head | --hea )
13952 $ac_shift
13953 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13954 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013955 --he | --h)
13956 # Conflict between --help and --header
13957 { echo "$as_me: error: ambiguous option: $1
13958Try \`$0 --help' for more information." >&2
13959 { (exit 1); exit 1; }; };;
13960 --help | --hel | -h )
13961 echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13964 ac_cs_silent=: ;;
13965
13966 # This is an error.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013967 -*) { echo "$as_me: error: unrecognized option: $1
13968Try \`$0 --help' for more information." >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000013969 { (exit 1); exit 1; }; } ;;
13970
Lev Walkin27fd0b62007-08-27 23:57:45 +000013971 *) ac_config_targets="$ac_config_targets $1"
13972 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013973
13974 esac
13975 shift
13976done
13977
13978ac_configure_extra_args=
13979
13980if $ac_cs_silent; then
13981 exec 6>/dev/null
13982 ac_configure_extra_args="$ac_configure_extra_args --silent"
13983fi
13984
13985_ACEOF
13986cat >>$CONFIG_STATUS <<_ACEOF
13987if \$ac_cs_recheck; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013988 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13989 CONFIG_SHELL=$SHELL
13990 export CONFIG_SHELL
13991 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinf15320b2004-06-03 03:38:44 +000013992fi
13993
13994_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013995cat >>$CONFIG_STATUS <<\_ACEOF
13996exec 5>>config.log
13997{
13998 echo
13999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14000## Running $as_me. ##
14001_ASBOX
14002 echo "$ac_log"
14003} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014004
Lev Walkin27fd0b62007-08-27 23:57:45 +000014005_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014006cat >>$CONFIG_STATUS <<_ACEOF
14007#
Lev Walkin27fd0b62007-08-27 23:57:45 +000014008# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000014009#
Lev Walkin8e8b5482004-06-17 23:42:48 +000014010AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000014011
Lev Walkin4da95cf2010-10-16 02:46:32 -070014012
14013# The HP-UX ksh and POSIX shell print the target directory to stdout
14014# if CDPATH is set.
14015(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14016
14017sed_quote_subst='$sed_quote_subst'
14018double_quote_subst='$double_quote_subst'
14019delay_variable_subst='$delay_variable_subst'
Lev Walkin4c776e52010-11-08 02:07:31 -080014020macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14021macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14022enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14023enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14024pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14025enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14026host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14027host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14028host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14029build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14030build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14031build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14032SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14033Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14034GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14035EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14036FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14037LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14038NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14039LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14040max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14041ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14042exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14043lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14044lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14045lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14046reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14047reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14048deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14049file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14050AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14051AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14052STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14053RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14054old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14055old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14056old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14057CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14058CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14059compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14060GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14061lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14062lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14063lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14064lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14065objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14066SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14067ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14068MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14069lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14070lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14071lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14072lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14073lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14074need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14075DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14076NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14077LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14078OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14079OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14080libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14081shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14082extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14083archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14084enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14085export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14086whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14087compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14088old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14089old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14090archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14091archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14092module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14093module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14094with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14095allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14096no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14097hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14098hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14099hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14100hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14101hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14102hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14103hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14104hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14105inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14106link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14107fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14108always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14109export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14110exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14111include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14112prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14113file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14114variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14115need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14116need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14117version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14118runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14119shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14120shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14121libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14122library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14123soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14124postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14125postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14126finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14127finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14128hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14129sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14130sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14131hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14132enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14133enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14134enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14135old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14136striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070014137
14138LTCC='$LTCC'
14139LTCFLAGS='$LTCFLAGS'
14140compiler='$compiler_DEFAULT'
14141
Lev Walkin4da95cf2010-10-16 02:46:32 -070014142# Quote evaled strings.
Lev Walkin4c776e52010-11-08 02:07:31 -080014143for var in SED \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014144GREP \
14145EGREP \
14146FGREP \
14147LD \
14148NM \
14149LN_S \
14150lt_SP2NL \
14151lt_NL2SP \
14152reload_flag \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014153deplibs_check_method \
14154file_magic_cmd \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014155AR \
14156AR_FLAGS \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014157STRIP \
14158RANLIB \
14159CC \
14160CFLAGS \
14161compiler \
14162lt_cv_sys_global_symbol_pipe \
14163lt_cv_sys_global_symbol_to_cdecl \
14164lt_cv_sys_global_symbol_to_c_name_address \
14165lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Lev Walkin4c776e52010-11-08 02:07:31 -080014166SHELL \
14167ECHO \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014168lt_prog_compiler_no_builtin_flag \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014169lt_prog_compiler_wl \
Lev Walkin4c776e52010-11-08 02:07:31 -080014170lt_prog_compiler_pic \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014171lt_prog_compiler_static \
14172lt_cv_prog_compiler_c_o \
14173need_locks \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014174DSYMUTIL \
14175NMEDIT \
14176LIPO \
14177OTOOL \
14178OTOOL64 \
14179shrext_cmds \
14180export_dynamic_flag_spec \
14181whole_archive_flag_spec \
14182compiler_needs_object \
14183with_gnu_ld \
14184allow_undefined_flag \
14185no_undefined_flag \
14186hardcode_libdir_flag_spec \
14187hardcode_libdir_flag_spec_ld \
14188hardcode_libdir_separator \
Lev Walkin4c776e52010-11-08 02:07:31 -080014189fix_srcfile_path \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014190exclude_expsyms \
14191include_expsyms \
14192file_list_spec \
14193variables_saved_for_relink \
14194libname_spec \
14195library_names_spec \
14196soname_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014197finish_eval \
14198old_striplib \
14199striplib; do
Lev Walkin4c776e52010-11-08 02:07:31 -080014200 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014201 *[\\\\\\\`\\"\\\$]*)
Lev Walkin4c776e52010-11-08 02:07:31 -080014202 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014203 ;;
14204 *)
14205 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14206 ;;
14207 esac
14208done
14209
14210# Double-quote double-evaled strings.
14211for var in reload_cmds \
14212old_postinstall_cmds \
14213old_postuninstall_cmds \
14214old_archive_cmds \
14215extract_expsyms_cmds \
14216old_archive_from_new_cmds \
14217old_archive_from_expsyms_cmds \
14218archive_cmds \
14219archive_expsym_cmds \
14220module_cmds \
14221module_expsym_cmds \
14222export_symbols_cmds \
14223prelink_cmds \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014224postinstall_cmds \
14225postuninstall_cmds \
14226finish_cmds \
14227sys_lib_search_path_spec \
14228sys_lib_dlsearch_path_spec; do
Lev Walkin4c776e52010-11-08 02:07:31 -080014229 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014230 *[\\\\\\\`\\"\\\$]*)
Lev Walkin4c776e52010-11-08 02:07:31 -080014231 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014232 ;;
14233 *)
14234 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14235 ;;
14236 esac
14237done
14238
Lev Walkin4c776e52010-11-08 02:07:31 -080014239# Fix-up fallback echo if it was mangled by the above quoting rules.
14240case \$lt_ECHO in
14241*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14242 ;;
14243esac
14244
Lev Walkin4da95cf2010-10-16 02:46:32 -070014245ac_aux_dir='$ac_aux_dir'
14246xsi_shell='$xsi_shell'
14247lt_shell_append='$lt_shell_append'
14248
14249# See if we are running on zsh, and set the options which allow our
14250# commands through without removal of \ escapes INIT.
14251if test -n "\${ZSH_VERSION+set}" ; then
14252 setopt NO_GLOB_SUBST
14253fi
14254
14255
14256 PACKAGE='$PACKAGE'
14257 VERSION='$VERSION'
14258 TIMESTAMP='$TIMESTAMP'
14259 RM='$RM'
14260 ofile='$ofile'
14261
14262
14263
14264
Lev Walkinf15320b2004-06-03 03:38:44 +000014265_ACEOF
14266
Lev Walkinf15320b2004-06-03 03:38:44 +000014267cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014268
14269# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000014270for ac_config_target in $ac_config_targets
14271do
Lev Walkin27fd0b62007-08-27 23:57:45 +000014272 case $ac_config_target in
Lev Walkine7c4b962010-11-09 03:10:36 -080014273 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014274 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014275 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014276 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
14277 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
14278 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
14279 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
14280 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
14281 "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;;
14282 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
14283 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
Lev Walkine7c4b962010-11-09 03:10:36 -080014284 "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014285 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
14286 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14287 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14288 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
14289 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14290 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
14291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14292
Lev Walkinf15320b2004-06-03 03:38:44 +000014293 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14294echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14295 { (exit 1); exit 1; }; };;
14296 esac
14297done
14298
Lev Walkin27fd0b62007-08-27 23:57:45 +000014299
Lev Walkinf15320b2004-06-03 03:38:44 +000014300# If the user did not use the arguments to specify the items to instantiate,
14301# then the envvar interface is used. Set only those that are not.
14302# We use the long form for the default assignment because of an extremely
14303# bizarre bug on SunOS 4.1.3.
14304if $ac_need_defaults; then
14305 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14306 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14307 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14308fi
14309
14310# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000014311# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000014312# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014313# Hook for its removal unless debugging.
14314# Note that there is a small window in which the directory will not be cleaned:
14315# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000014316$debug ||
14317{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014318 tmp=
14319 trap 'exit_status=$?
14320 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14321' 0
Lev Walkinf15320b2004-06-03 03:38:44 +000014322 trap '{ (exit 1); exit 1; }' 1 2 13 15
14323}
Lev Walkinf15320b2004-06-03 03:38:44 +000014324# Create a (secure) tmp directory for tmp files.
14325
14326{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014327 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014328 test -n "$tmp" && test -d "$tmp"
14329} ||
14330{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014331 tmp=./conf$$-$RANDOM
14332 (umask 077 && mkdir "$tmp")
Lev Walkinf15320b2004-06-03 03:38:44 +000014333} ||
14334{
14335 echo "$me: cannot create a temporary directory in ." >&2
14336 { (exit 1); exit 1; }
14337}
14338
Lev Walkinf15320b2004-06-03 03:38:44 +000014339#
Lev Walkin27fd0b62007-08-27 23:57:45 +000014340# Set up the sed scripts for CONFIG_FILES section.
Lev Walkinf15320b2004-06-03 03:38:44 +000014341#
14342
14343# No need to generate the scripts if there are no CONFIG_FILES.
14344# This happens for instance when ./config.status config.h
Lev Walkin27fd0b62007-08-27 23:57:45 +000014345if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014346
14347_ACEOF
14348
Lev Walkin27fd0b62007-08-27 23:57:45 +000014349
14350
14351ac_delim='%!_!# '
14352for ac_last_try in false false false false false :; do
14353 cat >conf$$subs.sed <<_ACEOF
14354SHELL!$SHELL$ac_delim
14355PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14356PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14357PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14358PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14359PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14360PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14361exec_prefix!$exec_prefix$ac_delim
14362prefix!$prefix$ac_delim
14363program_transform_name!$program_transform_name$ac_delim
14364bindir!$bindir$ac_delim
14365sbindir!$sbindir$ac_delim
14366libexecdir!$libexecdir$ac_delim
14367datarootdir!$datarootdir$ac_delim
14368datadir!$datadir$ac_delim
14369sysconfdir!$sysconfdir$ac_delim
14370sharedstatedir!$sharedstatedir$ac_delim
14371localstatedir!$localstatedir$ac_delim
14372includedir!$includedir$ac_delim
14373oldincludedir!$oldincludedir$ac_delim
14374docdir!$docdir$ac_delim
14375infodir!$infodir$ac_delim
14376htmldir!$htmldir$ac_delim
14377dvidir!$dvidir$ac_delim
14378pdfdir!$pdfdir$ac_delim
14379psdir!$psdir$ac_delim
14380libdir!$libdir$ac_delim
14381localedir!$localedir$ac_delim
14382mandir!$mandir$ac_delim
14383DEFS!$DEFS$ac_delim
14384ECHO_C!$ECHO_C$ac_delim
14385ECHO_N!$ECHO_N$ac_delim
14386ECHO_T!$ECHO_T$ac_delim
14387LIBS!$LIBS$ac_delim
14388build_alias!$build_alias$ac_delim
14389host_alias!$host_alias$ac_delim
14390target_alias!$target_alias$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014391INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14392INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14393INSTALL_DATA!$INSTALL_DATA$ac_delim
Lev Walkin4c776e52010-11-08 02:07:31 -080014394am__isrc!$am__isrc$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014395CYGPATH_W!$CYGPATH_W$ac_delim
14396PACKAGE!$PACKAGE$ac_delim
14397VERSION!$VERSION$ac_delim
14398ACLOCAL!$ACLOCAL$ac_delim
14399AUTOCONF!$AUTOCONF$ac_delim
14400AUTOMAKE!$AUTOMAKE$ac_delim
14401AUTOHEADER!$AUTOHEADER$ac_delim
14402MAKEINFO!$MAKEINFO$ac_delim
14403install_sh!$install_sh$ac_delim
14404STRIP!$STRIP$ac_delim
14405INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14406mkdir_p!$mkdir_p$ac_delim
14407AWK!$AWK$ac_delim
14408SET_MAKE!$SET_MAKE$ac_delim
14409am__leading_dot!$am__leading_dot$ac_delim
14410AMTAR!$AMTAR$ac_delim
14411am__tar!$am__tar$ac_delim
14412am__untar!$am__untar$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014413LIBTOOL!$LIBTOOL$ac_delim
Lev Walkine7c4b962010-11-09 03:10:36 -080014414build!$build$ac_delim
14415build_cpu!$build_cpu$ac_delim
14416build_vendor!$build_vendor$ac_delim
14417build_os!$build_os$ac_delim
14418host!$host$ac_delim
14419host_cpu!$host_cpu$ac_delim
14420host_vendor!$host_vendor$ac_delim
14421host_os!$host_os$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014422CC!$CC$ac_delim
14423CFLAGS!$CFLAGS$ac_delim
14424LDFLAGS!$LDFLAGS$ac_delim
14425CPPFLAGS!$CPPFLAGS$ac_delim
14426ac_ct_CC!$ac_ct_CC$ac_delim
14427EXEEXT!$EXEEXT$ac_delim
14428OBJEXT!$OBJEXT$ac_delim
14429DEPDIR!$DEPDIR$ac_delim
14430am__include!$am__include$ac_delim
14431am__quote!$am__quote$ac_delim
14432AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14433AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14434AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14435CCDEPMODE!$CCDEPMODE$ac_delim
14436am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14437am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014438SED!$SED$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014439GREP!$GREP$ac_delim
14440EGREP!$EGREP$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014441FGREP!$FGREP$ac_delim
14442LD!$LD$ac_delim
14443DUMPBIN!$DUMPBIN$ac_delim
Lev Walkine7c4b962010-11-09 03:10:36 -080014444ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
14445NM!$NM$ac_delim
14446LN_S!$LN_S$ac_delim
14447AR!$AR$ac_delim
14448RANLIB!$RANLIB$ac_delim
14449lt_ECHO!$lt_ECHO$ac_delim
14450DSYMUTIL!$DSYMUTIL$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014451_ACEOF
14452
14453 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14454 break
14455 elif $ac_last_try; then
14456 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14457echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14458 { (exit 1); exit 1; }; }
14459 else
14460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000014461 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014462done
14463
14464ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14465if test -n "$ac_eof"; then
14466 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14467 ac_eof=`expr $ac_eof + 1`
14468fi
14469
14470cat >>$CONFIG_STATUS <<_ACEOF
14471cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14473_ACEOF
14474sed '
14475s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14476s/^/s,@/; s/!/@,|#_!!_#|/
14477:n
14478t n
14479s/'"$ac_delim"'$/,g/; t
14480s/$/\\/; p
14481N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14482' >>$CONFIG_STATUS <conf$$subs.sed
14483rm -f conf$$subs.sed
14484cat >>$CONFIG_STATUS <<_ACEOF
14485CEOF$ac_eof
14486_ACEOF
14487
14488
14489ac_delim='%!_!# '
14490for ac_last_try in false false false false false :; do
14491 cat >conf$$subs.sed <<_ACEOF
Lev Walkin4da95cf2010-10-16 02:46:32 -070014492NMEDIT!$NMEDIT$ac_delim
14493LIPO!$LIPO$ac_delim
14494OTOOL!$OTOOL$ac_delim
14495OTOOL64!$OTOOL64$ac_delim
14496CPP!$CPP$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014497YACC!$YACC$ac_delim
14498YFLAGS!$YFLAGS$ac_delim
14499LEX!$LEX$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014500LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Lev Walkin4c776e52010-11-08 02:07:31 -080014501LEXLIB!$LEXLIB$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014502ADD_CFLAGS!$ADD_CFLAGS$ac_delim
14503LIBOBJS!$LIBOBJS$ac_delim
14504LTLIBOBJS!$LTLIBOBJS$ac_delim
14505_ACEOF
14506
Lev Walkine7c4b962010-11-09 03:10:36 -080014507 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014508 break
14509 elif $ac_last_try; then
14510 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14511echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14512 { (exit 1); exit 1; }; }
14513 else
14514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14515 fi
14516done
14517
14518ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14519if test -n "$ac_eof"; then
14520 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14521 ac_eof=`expr $ac_eof + 1`
14522fi
14523
14524cat >>$CONFIG_STATUS <<_ACEOF
14525cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14526/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14527_ACEOF
14528sed '
14529s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14530s/^/s,@/; s/!/@,|#_!!_#|/
14531:n
14532t n
14533s/'"$ac_delim"'$/,g/; t
14534s/$/\\/; p
14535N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14536' >>$CONFIG_STATUS <conf$$subs.sed
14537rm -f conf$$subs.sed
14538cat >>$CONFIG_STATUS <<_ACEOF
14539:end
14540s/|#_!!_#|//g
14541CEOF$ac_eof
14542_ACEOF
14543
14544
14545# VPATH may cause trouble with some makes, so we remove $(srcdir),
14546# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14547# trailing colons and then remove the whole line if VPATH becomes empty
14548# (actually we leave an empty line to preserve line numbers).
14549if test "x$srcdir" = x.; then
14550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14551s/:*\$(srcdir):*/:/
14552s/:*\${srcdir}:*/:/
14553s/:*@srcdir@:*/:/
14554s/^\([^=]*=[ ]*\):*/\1/
14555s/:*$//
14556s/^[^=]*=[ ]*$//
14557}'
14558fi
14559
14560cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014561fi # test -n "$CONFIG_FILES"
14562
Lev Walkin27fd0b62007-08-27 23:57:45 +000014563
14564for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14565do
14566 case $ac_tag in
14567 :[FHLC]) ac_mode=$ac_tag; continue;;
14568 esac
14569 case $ac_mode$ac_tag in
14570 :[FHL]*:*);;
14571 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14572echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14573 { (exit 1); exit 1; }; };;
14574 :[FH]-) ac_tag=-:-;;
14575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14576 esac
14577 ac_save_IFS=$IFS
14578 IFS=:
14579 set x $ac_tag
14580 IFS=$ac_save_IFS
14581 shift
14582 ac_file=$1
14583 shift
14584
14585 case $ac_mode in
14586 :L) ac_source=$1;;
14587 :[FH])
14588 ac_file_inputs=
14589 for ac_f
14590 do
14591 case $ac_f in
14592 -) ac_f="$tmp/stdin";;
14593 *) # Look for the file first in the build tree, then in the source tree
14594 # (if the path is not absolute). The absolute path cannot be DOS-style,
14595 # because $ac_f cannot contain `:'.
14596 test -f "$ac_f" ||
14597 case $ac_f in
14598 [\\/$]*) false;;
14599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14600 esac ||
14601 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14602echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14603 { (exit 1); exit 1; }; };;
14604 esac
14605 ac_file_inputs="$ac_file_inputs $ac_f"
14606 done
14607
14608 # Let's still pretend it is `configure' which instantiates (i.e., don't
14609 # use $as_me), people would be surprised to read:
14610 # /* config.h. Generated by config.status. */
14611 configure_input="Generated from "`IFS=:
14612 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14613 if test x"$ac_file" != x-; then
14614 configure_input="$ac_file. $configure_input"
14615 { echo "$as_me:$LINENO: creating $ac_file" >&5
14616echo "$as_me: creating $ac_file" >&6;}
14617 fi
14618
14619 case $ac_tag in
14620 *:-:* | *:-) cat >"$tmp/stdin";;
14621 esac
14622 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014623 esac
14624
Lev Walkin27fd0b62007-08-27 23:57:45 +000014625 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014626$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014627 X"$ac_file" : 'X\(//\)[^/]' \| \
14628 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014629 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014630echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14632 s//\1/
14633 q
14634 }
14635 /^X\(\/\/\)[^/].*/{
14636 s//\1/
14637 q
14638 }
14639 /^X\(\/\/\)$/{
14640 s//\1/
14641 q
14642 }
14643 /^X\(\/\).*/{
14644 s//\1/
14645 q
14646 }
14647 s/.*/./; q'`
14648 { as_dir="$ac_dir"
14649 case $as_dir in #(
14650 -*) as_dir=./$as_dir;;
14651 esac
14652 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkinf15320b2004-06-03 03:38:44 +000014653 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000014654 while :; do
14655 case $as_dir in #(
14656 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14657 *) as_qdir=$as_dir;;
14658 esac
14659 as_dirs="'$as_qdir' $as_dirs"
14660 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014662 X"$as_dir" : 'X\(//\)[^/]' \| \
14663 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014665echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14667 s//\1/
14668 q
14669 }
14670 /^X\(\/\/\)[^/].*/{
14671 s//\1/
14672 q
14673 }
14674 /^X\(\/\/\)$/{
14675 s//\1/
14676 q
14677 }
14678 /^X\(\/\).*/{
14679 s//\1/
14680 q
14681 }
14682 s/.*/./; q'`
14683 test -d "$as_dir" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000014684 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000014685 test -z "$as_dirs" || eval "mkdir $as_dirs"
14686 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14687echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014688 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014689 ac_builddir=.
14690
Lev Walkin27fd0b62007-08-27 23:57:45 +000014691case "$ac_dir" in
14692.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14693*)
Lev Walkinf15320b2004-06-03 03:38:44 +000014694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014695 # A ".." for each directory in $ac_dir_suffix.
14696 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14697 case $ac_top_builddir_sub in
14698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14700 esac ;;
14701esac
14702ac_abs_top_builddir=$ac_pwd
14703ac_abs_builddir=$ac_pwd$ac_dir_suffix
14704# for backward compatibility:
14705ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000014706
14707case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014708 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000014709 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014710 ac_top_srcdir=$ac_top_builddir_sub
14711 ac_abs_top_srcdir=$ac_pwd ;;
14712 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000014713 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014714 ac_top_srcdir=$srcdir
14715 ac_abs_top_srcdir=$srcdir ;;
14716 *) # Relative name.
14717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14718 ac_top_srcdir=$ac_top_build_prefix$srcdir
14719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014720esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014721ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000014722
Lev Walkinf15320b2004-06-03 03:38:44 +000014723
Lev Walkin27fd0b62007-08-27 23:57:45 +000014724 case $ac_mode in
14725 :F)
14726 #
14727 # CONFIG_FILE
14728 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014729
14730 case $INSTALL in
14731 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014732 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014733 esac
Lev Walkin4c776e52010-11-08 02:07:31 -080014734 ac_MKDIR_P=$MKDIR_P
14735 case $MKDIR_P in
14736 [\\/$]* | ?:[\\/]* ) ;;
14737 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14738 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014739_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014740
14741cat >>$CONFIG_STATUS <<\_ACEOF
14742# If the template does not know about datarootdir, expand it.
14743# FIXME: This hack should be removed a few years after 2.60.
14744ac_datarootdir_hack=; ac_datarootdir_seen=
14745
14746case `sed -n '/datarootdir/ {
14747 p
14748 q
14749}
14750/@datadir@/p
14751/@docdir@/p
14752/@infodir@/p
14753/@localedir@/p
14754/@mandir@/p
14755' $ac_file_inputs` in
14756*datarootdir*) ac_datarootdir_seen=yes;;
14757*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14758 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14759echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14760_ACEOF
14761cat >>$CONFIG_STATUS <<_ACEOF
14762 ac_datarootdir_hack='
14763 s&@datadir@&$datadir&g
14764 s&@docdir@&$docdir&g
14765 s&@infodir@&$infodir&g
14766 s&@localedir@&$localedir&g
14767 s&@mandir@&$mandir&g
14768 s&\\\${datarootdir}&$datarootdir&g' ;;
14769esac
14770_ACEOF
14771
14772# Neutralize VPATH when `$srcdir' = `.'.
14773# Shell code in configure.ac might set extrasub.
14774# FIXME: do we really want to maintain this feature?
Lev Walkinf15320b2004-06-03 03:38:44 +000014775cat >>$CONFIG_STATUS <<_ACEOF
14776 sed "$ac_vpsub
14777$extrasub
14778_ACEOF
14779cat >>$CONFIG_STATUS <<\_ACEOF
14780:t
14781/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkin27fd0b62007-08-27 23:57:45 +000014782s&@configure_input@&$configure_input&;t t
14783s&@top_builddir@&$ac_top_builddir_sub&;t t
14784s&@srcdir@&$ac_srcdir&;t t
14785s&@abs_srcdir@&$ac_abs_srcdir&;t t
14786s&@top_srcdir@&$ac_top_srcdir&;t t
14787s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14788s&@builddir@&$ac_builddir&;t t
14789s&@abs_builddir@&$ac_abs_builddir&;t t
14790s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14791s&@INSTALL@&$ac_INSTALL&;t t
Lev Walkin4c776e52010-11-08 02:07:31 -080014792s&@MKDIR_P@&$ac_MKDIR_P&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014793$ac_datarootdir_hack
14794" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Lev Walkinf15320b2004-06-03 03:38:44 +000014795
Lev Walkin27fd0b62007-08-27 23:57:45 +000014796test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14797 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14798 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14799 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14800which seems to be undefined. Please make sure it is defined." >&5
14801echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14802which seems to be undefined. Please make sure it is defined." >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014803
Lev Walkin27fd0b62007-08-27 23:57:45 +000014804 rm -f "$tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000014805 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014806 -) cat "$tmp/out"; rm -f "$tmp/out";;
14807 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014808 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014809 ;;
14810 :H)
14811 #
14812 # CONFIG_HEADER
14813 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014814_ACEOF
14815
Lev Walkin27fd0b62007-08-27 23:57:45 +000014816# Transform confdefs.h into a sed script `conftest.defines', that
14817# substitutes the proper values into config.h.in to produce config.h.
14818rm -f conftest.defines conftest.tail
14819# First, append a space to every undef/define line, to ease matching.
14820echo 's/$/ /' >conftest.defines
14821# Then, protect against being on the right side of a sed subst, or in
14822# an unquoted here document, in config.status. If some macros were
14823# called several times there might be several #defines for the same
14824# symbol, which is useless. But do not sort them, since the last
14825# AC_DEFINE must be honored.
14826ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14827# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14828# NAME is the cpp macro being defined, VALUE is the value it is being given.
14829# PARAMS is the parameter list in the macro definition--in most cases, it's
14830# just an empty string.
14831ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14832ac_dB='\\)[ (].*,\\1define\\2'
14833ac_dC=' '
14834ac_dD=' ,'
Lev Walkinf15320b2004-06-03 03:38:44 +000014835
Lev Walkin27fd0b62007-08-27 23:57:45 +000014836uniq confdefs.h |
14837 sed -n '
14838 t rset
14839 :rset
14840 s/^[ ]*#[ ]*define[ ][ ]*//
14841 t ok
14842 d
14843 :ok
14844 s/[\\&,]/\\&/g
14845 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14846 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14847 ' >>conftest.defines
14848
14849# Remove the space that was appended to ease matching.
14850# Then replace #undef with comments. This is necessary, for
Lev Walkinf15320b2004-06-03 03:38:44 +000014851# example, in the case of _POSIX_SOURCE, which is predefined and required
14852# on some systems where configure will not decide to define it.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014853# (The regexp can be short, since the line contains either #define or #undef.)
14854echo 's/ $//
14855s,^[ #]*u.*,/* & */,' >>conftest.defines
Lev Walkinf15320b2004-06-03 03:38:44 +000014856
Lev Walkin27fd0b62007-08-27 23:57:45 +000014857# Break up conftest.defines:
14858ac_max_sed_lines=50
14859
14860# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14861# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14862# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14863# et cetera.
14864ac_in='$ac_file_inputs'
14865ac_out='"$tmp/out1"'
14866ac_nxt='"$tmp/out2"'
14867
14868while :
Lev Walkinf15320b2004-06-03 03:38:44 +000014869do
Lev Walkin27fd0b62007-08-27 23:57:45 +000014870 # Write a here document:
14871 cat >>$CONFIG_STATUS <<_ACEOF
14872 # First, check the format of the line:
14873 cat >"\$tmp/defines.sed" <<\\CEOF
14874/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14875/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14876b
14877:def
14878_ACEOF
14879 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000014880 echo 'CEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014881 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14882 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14883 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14884 grep . conftest.tail >/dev/null || break
Lev Walkinf15320b2004-06-03 03:38:44 +000014885 rm -f conftest.defines
14886 mv conftest.tail conftest.defines
14887done
Lev Walkin27fd0b62007-08-27 23:57:45 +000014888rm -f conftest.defines conftest.tail
Lev Walkinf15320b2004-06-03 03:38:44 +000014889
Lev Walkin27fd0b62007-08-27 23:57:45 +000014890echo "ac_result=$ac_in" >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000014891cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014892 if test x"$ac_file" != x-; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014893 echo "/* $configure_input */" >"$tmp/config.h"
14894 cat "$ac_result" >>"$tmp/config.h"
14895 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014896 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14897echo "$as_me: $ac_file is unchanged" >&6;}
14898 else
Lev Walkinf15320b2004-06-03 03:38:44 +000014899 rm -f $ac_file
Lev Walkin27fd0b62007-08-27 23:57:45 +000014900 mv "$tmp/config.h" $ac_file
Lev Walkinf15320b2004-06-03 03:38:44 +000014901 fi
14902 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000014903 echo "/* $configure_input */"
14904 cat "$ac_result"
Lev Walkinf15320b2004-06-03 03:38:44 +000014905 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014906 rm -f "$tmp/out12"
Lev Walkin8e8b5482004-06-17 23:42:48 +000014907# Compute $ac_file's index in $config_headers.
14908_am_stamp_count=1
14909for _am_header in $config_headers :; do
14910 case $_am_header in
14911 $ac_file | $ac_file:* )
14912 break ;;
14913 * )
14914 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014915 esac
14916done
Lev Walkin27fd0b62007-08-27 23:57:45 +000014917echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014918$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14919 X$ac_file : 'X\(//\)[^/]' \| \
14920 X$ac_file : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014921 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014922echo X$ac_file |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14924 s//\1/
14925 q
14926 }
14927 /^X\(\/\/\)[^/].*/{
14928 s//\1/
14929 q
14930 }
14931 /^X\(\/\/\)$/{
14932 s//\1/
14933 q
14934 }
14935 /^X\(\/\).*/{
14936 s//\1/
14937 q
14938 }
14939 s/.*/./; q'`/stamp-h$_am_stamp_count
14940 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014941
Lev Walkin27fd0b62007-08-27 23:57:45 +000014942 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14943echo "$as_me: executing $ac_file commands" >&6;}
14944 ;;
14945 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014946
14947
Lev Walkin27fd0b62007-08-27 23:57:45 +000014948 case $ac_file$ac_mode in
14949 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000014950 # Strip MF so we end up with the name of the file.
14951 mf=`echo "$mf" | sed -e 's/:.*$//'`
14952 # Check whether this is an Automake generated Makefile or not.
14953 # We used to match only the files named `Makefile.in', but
14954 # some people rename them; so instead we look at the file content.
14955 # Grep'ing the first line is not enough: some people post-process
14956 # each Makefile.in and add a new line on top of each file to say so.
Lev Walkin4c776e52010-11-08 02:07:31 -080014957 # Grep'ing the whole file is not good either: AIX grep has a line
14958 # limit of 2048, but all sed's we know have understand at least 4000.
14959 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014960 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014961$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14962 X"$mf" : 'X\(//\)[^/]' \| \
14963 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014964 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014965echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14967 s//\1/
14968 q
14969 }
14970 /^X\(\/\/\)[^/].*/{
14971 s//\1/
14972 q
14973 }
14974 /^X\(\/\/\)$/{
14975 s//\1/
14976 q
14977 }
14978 /^X\(\/\).*/{
14979 s//\1/
14980 q
14981 }
14982 s/.*/./; q'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000014983 else
14984 continue
14985 fi
Lev Walkinc46b7cb2006-08-18 02:27:55 +000014986 # Extract the definition of DEPDIR, am__include, and am__quote
14987 # from the Makefile without running `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014988 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000014989 test -z "$DEPDIR" && continue
Lev Walkinc46b7cb2006-08-18 02:27:55 +000014990 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14991 test -z "am__include" && continue
14992 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000014993 # When using ansi2knr, U may be empty or an underscore; expand it
Lev Walkin8e8b5482004-06-17 23:42:48 +000014994 U=`sed -n 's/^U = //p' < "$mf"`
Lev Walkinc46b7cb2006-08-18 02:27:55 +000014995 # Find all dependency output files, they are included files with
14996 # $(DEPDIR) in their names. We invoke sed twice because it is the
14997 # simplest approach to changing $(DEPDIR) to its actual value in the
14998 # expansion.
14999 for file in `sed -n "
15000 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Lev Walkinf15320b2004-06-03 03:38:44 +000015001 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15002 # Make sure the directory exists.
15003 test -f "$dirpart/$file" && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +000015004 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015005$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15006 X"$file" : 'X\(//\)[^/]' \| \
15007 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015008 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015009echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15011 s//\1/
15012 q
15013 }
15014 /^X\(\/\/\)[^/].*/{
15015 s//\1/
15016 q
15017 }
15018 /^X\(\/\/\)$/{
15019 s//\1/
15020 q
15021 }
15022 /^X\(\/\).*/{
15023 s//\1/
15024 q
15025 }
15026 s/.*/./; q'`
15027 { as_dir=$dirpart/$fdir
15028 case $as_dir in #(
15029 -*) as_dir=./$as_dir;;
15030 esac
15031 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkin8e8b5482004-06-17 23:42:48 +000015032 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000015033 while :; do
15034 case $as_dir in #(
15035 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15036 *) as_qdir=$as_dir;;
15037 esac
15038 as_dirs="'$as_qdir' $as_dirs"
15039 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$as_dir" : 'X\(//\)[^/]' \| \
15042 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015044echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)[^/].*/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\).*/{
15058 s//\1/
15059 q
15060 }
15061 s/.*/./; q'`
15062 test -d "$as_dir" && break
Lev Walkin8e8b5482004-06-17 23:42:48 +000015063 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000015064 test -z "$as_dirs" || eval "mkdir $as_dirs"
15065 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15066echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000015067 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000015068 # echo "creating $dirpart/$file"
15069 echo '# dummy' > "$dirpart/$file"
15070 done
15071done
15072 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070015073 "libtool":C)
15074
15075 # See if we are running on zsh, and set the options which allow our
15076 # commands through without removal of \ escapes.
15077 if test -n "${ZSH_VERSION+set}" ; then
15078 setopt NO_GLOB_SUBST
15079 fi
15080
15081 cfgfile="${ofile}T"
Lev Walkin4c776e52010-11-08 02:07:31 -080015082 trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
15083 $RM -f "$cfgfile"
Lev Walkin4da95cf2010-10-16 02:46:32 -070015084
15085 cat <<_LT_EOF >> "$cfgfile"
15086#! $SHELL
15087
15088# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15089# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15090# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15091# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15092#
15093# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Lev Walkin4c776e52010-11-08 02:07:31 -080015094# 2006, 2007, 2008 Free Software Foundation, Inc.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015095# Written by Gordon Matzigkeit, 1996
15096#
15097# This file is part of GNU Libtool.
15098#
15099# GNU Libtool is free software; you can redistribute it and/or
15100# modify it under the terms of the GNU General Public License as
15101# published by the Free Software Foundation; either version 2 of
15102# the License, or (at your option) any later version.
15103#
15104# As a special exception to the GNU General Public License,
15105# if you distribute this file as part of a program or library that
15106# is built using GNU Libtool, you may include this file under the
15107# same distribution terms that you use for the rest of that program.
15108#
15109# GNU Libtool is distributed in the hope that it will be useful,
15110# but WITHOUT ANY WARRANTY; without even the implied warranty of
15111# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15112# GNU General Public License for more details.
15113#
15114# You should have received a copy of the GNU General Public License
15115# along with GNU Libtool; see the file COPYING. If not, a copy
15116# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15117# obtained by writing to the Free Software Foundation, Inc.,
15118# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15119
15120
15121# The names of the tagged configurations supported by this script.
15122available_tags=""
15123
15124# ### BEGIN LIBTOOL CONFIG
15125
15126# Which release of libtool.m4 was used?
15127macro_version=$macro_version
15128macro_revision=$macro_revision
15129
15130# Whether or not to build shared libraries.
15131build_libtool_libs=$enable_shared
15132
15133# Whether or not to build static libraries.
15134build_old_libs=$enable_static
15135
15136# What type of objects to build.
15137pic_mode=$pic_mode
15138
15139# Whether or not to optimize for fast installation.
15140fast_install=$enable_fast_install
15141
Lev Walkin4da95cf2010-10-16 02:46:32 -070015142# The host system.
15143host_alias=$host_alias
15144host=$host
15145host_os=$host_os
15146
15147# The build system.
15148build_alias=$build_alias
15149build=$build
15150build_os=$build_os
15151
15152# A sed program that does not truncate output.
15153SED=$lt_SED
15154
15155# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15156Xsed="\$SED -e 1s/^X//"
15157
15158# A grep program that handles long lines.
15159GREP=$lt_GREP
15160
15161# An ERE matcher.
15162EGREP=$lt_EGREP
15163
15164# A literal string matcher.
15165FGREP=$lt_FGREP
15166
15167# A BSD- or MS-compatible name lister.
15168NM=$lt_NM
15169
15170# Whether we need soft or hard links.
15171LN_S=$lt_LN_S
15172
15173# What is the maximum length of a command?
15174max_cmd_len=$max_cmd_len
15175
15176# Object file suffix (normally "o").
15177objext=$ac_objext
15178
15179# Executable file suffix (normally "").
15180exeext=$exeext
15181
15182# whether the shell understands "unset".
15183lt_unset=$lt_unset
15184
15185# turn spaces into newlines.
15186SP2NL=$lt_lt_SP2NL
15187
15188# turn newlines into spaces.
15189NL2SP=$lt_lt_NL2SP
15190
Lev Walkin4c776e52010-11-08 02:07:31 -080015191# How to create reloadable object files.
15192reload_flag=$lt_reload_flag
15193reload_cmds=$lt_reload_cmds
Lev Walkin4da95cf2010-10-16 02:46:32 -070015194
15195# Method to check whether dependent libraries are shared objects.
15196deplibs_check_method=$lt_deplibs_check_method
15197
Lev Walkin4c776e52010-11-08 02:07:31 -080015198# Command to use when deplibs_check_method == "file_magic".
Lev Walkin4da95cf2010-10-16 02:46:32 -070015199file_magic_cmd=$lt_file_magic_cmd
15200
Lev Walkin4da95cf2010-10-16 02:46:32 -070015201# The archiver.
15202AR=$lt_AR
Lev Walkin4da95cf2010-10-16 02:46:32 -070015203AR_FLAGS=$lt_AR_FLAGS
15204
Lev Walkin4da95cf2010-10-16 02:46:32 -070015205# A symbol stripping program.
15206STRIP=$lt_STRIP
15207
15208# Commands used to install an old-style archive.
15209RANLIB=$lt_RANLIB
15210old_postinstall_cmds=$lt_old_postinstall_cmds
15211old_postuninstall_cmds=$lt_old_postuninstall_cmds
15212
Lev Walkin4da95cf2010-10-16 02:46:32 -070015213# A C compiler.
15214LTCC=$lt_CC
15215
15216# LTCC compiler flags.
15217LTCFLAGS=$lt_CFLAGS
15218
15219# Take the output of nm and produce a listing of raw symbols and C names.
15220global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15221
15222# Transform the output of nm in a proper C declaration.
15223global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15224
15225# Transform the output of nm in a C name address pair.
15226global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15227
15228# Transform the output of nm in a C name address pair when lib prefix is needed.
15229global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15230
Lev Walkin4da95cf2010-10-16 02:46:32 -070015231# The name of the directory that contains temporary libtool files.
15232objdir=$objdir
15233
Lev Walkin4c776e52010-11-08 02:07:31 -080015234# Shell to use when invoking shell scripts.
15235SHELL=$lt_SHELL
15236
15237# An echo program that does not interpret backslashes.
15238ECHO=$lt_ECHO
15239
Lev Walkin4da95cf2010-10-16 02:46:32 -070015240# Used to examine libraries when file_magic_cmd begins with "file".
15241MAGIC_CMD=$MAGIC_CMD
15242
15243# Must we lock files when doing compilation?
15244need_locks=$lt_need_locks
15245
Lev Walkin4da95cf2010-10-16 02:46:32 -070015246# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15247DSYMUTIL=$lt_DSYMUTIL
15248
15249# Tool to change global to local symbols on Mac OS X.
15250NMEDIT=$lt_NMEDIT
15251
15252# Tool to manipulate fat objects and archives on Mac OS X.
15253LIPO=$lt_LIPO
15254
15255# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15256OTOOL=$lt_OTOOL
15257
15258# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15259OTOOL64=$lt_OTOOL64
15260
15261# Old archive suffix (normally "a").
15262libext=$libext
15263
15264# Shared library suffix (normally ".so").
15265shrext_cmds=$lt_shrext_cmds
15266
15267# The commands to extract the exported symbol list from a shared archive.
15268extract_expsyms_cmds=$lt_extract_expsyms_cmds
15269
15270# Variables whose values should be saved in libtool wrapper scripts and
15271# restored at link time.
15272variables_saved_for_relink=$lt_variables_saved_for_relink
15273
15274# Do we need the "lib" prefix for modules?
15275need_lib_prefix=$need_lib_prefix
15276
15277# Do we need a version for libraries?
15278need_version=$need_version
15279
15280# Library versioning type.
15281version_type=$version_type
15282
15283# Shared library runtime path variable.
15284runpath_var=$runpath_var
15285
15286# Shared library path variable.
15287shlibpath_var=$shlibpath_var
15288
15289# Is shlibpath searched before the hard-coded library search path?
15290shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15291
15292# Format of library name prefix.
15293libname_spec=$lt_libname_spec
15294
15295# List of archive names. First name is the real one, the rest are links.
15296# The last name is the one that the linker finds with -lNAME
15297library_names_spec=$lt_library_names_spec
15298
15299# The coded name of the library, if different from the real name.
15300soname_spec=$lt_soname_spec
15301
Lev Walkin4da95cf2010-10-16 02:46:32 -070015302# Command to use after installation of a shared archive.
15303postinstall_cmds=$lt_postinstall_cmds
15304
15305# Command to use after uninstallation of a shared archive.
15306postuninstall_cmds=$lt_postuninstall_cmds
15307
15308# Commands used to finish a libtool library installation in a directory.
15309finish_cmds=$lt_finish_cmds
15310
15311# As "finish_cmds", except a single script fragment to be evaled but
15312# not shown.
15313finish_eval=$lt_finish_eval
15314
15315# Whether we should hardcode library paths into libraries.
15316hardcode_into_libs=$hardcode_into_libs
15317
15318# Compile-time system search path for libraries.
15319sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15320
15321# Run-time system search path for libraries.
15322sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15323
15324# Whether dlopen is supported.
15325dlopen_support=$enable_dlopen
15326
15327# Whether dlopen of programs is supported.
15328dlopen_self=$enable_dlopen_self
15329
15330# Whether dlopen of statically linked programs is supported.
15331dlopen_self_static=$enable_dlopen_self_static
15332
15333# Commands to strip libraries.
15334old_striplib=$lt_old_striplib
15335striplib=$lt_striplib
15336
15337
15338# The linker used to build libraries.
15339LD=$lt_LD
15340
Lev Walkin4da95cf2010-10-16 02:46:32 -070015341# Commands used to build an old-style archive.
15342old_archive_cmds=$lt_old_archive_cmds
15343
15344# A language specific compiler.
15345CC=$lt_compiler
15346
15347# Is the compiler the GNU compiler?
15348with_gcc=$GCC
15349
15350# Compiler flag to turn off builtin functions.
15351no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15352
Lev Walkin4da95cf2010-10-16 02:46:32 -070015353# How to pass a linker flag through the compiler.
15354wl=$lt_lt_prog_compiler_wl
15355
Lev Walkin4c776e52010-11-08 02:07:31 -080015356# Additional compiler flags for building library objects.
15357pic_flag=$lt_lt_prog_compiler_pic
15358
Lev Walkin4da95cf2010-10-16 02:46:32 -070015359# Compiler flag to prevent dynamic linking.
15360link_static_flag=$lt_lt_prog_compiler_static
15361
15362# Does compiler simultaneously support -c and -o options?
15363compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15364
15365# Whether or not to add -lc for building shared libraries.
15366build_libtool_need_lc=$archive_cmds_need_lc
15367
15368# Whether or not to disallow shared libs when runtime libs are static.
15369allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15370
15371# Compiler flag to allow reflexive dlopens.
15372export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15373
15374# Compiler flag to generate shared objects directly from archives.
15375whole_archive_flag_spec=$lt_whole_archive_flag_spec
15376
15377# Whether the compiler copes with passing no objects directly.
15378compiler_needs_object=$lt_compiler_needs_object
15379
15380# Create an old-style archive from a shared archive.
15381old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15382
15383# Create a temporary old-style archive to link instead of a shared archive.
15384old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15385
15386# Commands used to build a shared archive.
15387archive_cmds=$lt_archive_cmds
15388archive_expsym_cmds=$lt_archive_expsym_cmds
15389
15390# Commands used to build a loadable module if different from building
15391# a shared archive.
15392module_cmds=$lt_module_cmds
15393module_expsym_cmds=$lt_module_expsym_cmds
15394
15395# Whether we are building with GNU ld or not.
15396with_gnu_ld=$lt_with_gnu_ld
15397
15398# Flag that allows shared libraries with undefined symbols to be built.
15399allow_undefined_flag=$lt_allow_undefined_flag
15400
15401# Flag that enforces no undefined symbols.
15402no_undefined_flag=$lt_no_undefined_flag
15403
15404# Flag to hardcode \$libdir into a binary during linking.
15405# This must work even if \$libdir does not exist
15406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15407
15408# If ld is used when linking, flag to hardcode \$libdir into a binary
15409# during linking. This must work even if \$libdir does not exist.
15410hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15411
15412# Whether we need a single "-rpath" flag with a separated argument.
15413hardcode_libdir_separator=$lt_hardcode_libdir_separator
15414
15415# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15416# DIR into the resulting binary.
15417hardcode_direct=$hardcode_direct
15418
15419# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15420# DIR into the resulting binary and the resulting library dependency is
15421# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15422# library is relocated.
15423hardcode_direct_absolute=$hardcode_direct_absolute
15424
15425# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15426# into the resulting binary.
15427hardcode_minus_L=$hardcode_minus_L
15428
15429# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15430# into the resulting binary.
15431hardcode_shlibpath_var=$hardcode_shlibpath_var
15432
15433# Set to "yes" if building a shared library automatically hardcodes DIR
15434# into the library and all subsequent libraries and executables linked
15435# against it.
15436hardcode_automatic=$hardcode_automatic
15437
15438# Set to yes if linker adds runtime paths of dependent libraries
15439# to runtime path list.
15440inherit_rpath=$inherit_rpath
15441
15442# Whether libtool must link a program against all its dependency libraries.
15443link_all_deplibs=$link_all_deplibs
15444
Lev Walkin4c776e52010-11-08 02:07:31 -080015445# Fix the shell variable \$srcfile for the compiler.
15446fix_srcfile_path=$lt_fix_srcfile_path
15447
Lev Walkin4da95cf2010-10-16 02:46:32 -070015448# Set to "yes" if exported symbols are required.
15449always_export_symbols=$always_export_symbols
15450
15451# The commands to list exported symbols.
15452export_symbols_cmds=$lt_export_symbols_cmds
15453
15454# Symbols that should not be listed in the preloaded symbols.
15455exclude_expsyms=$lt_exclude_expsyms
15456
15457# Symbols that must always be exported.
15458include_expsyms=$lt_include_expsyms
15459
15460# Commands necessary for linking programs (against libraries) with templates.
15461prelink_cmds=$lt_prelink_cmds
15462
Lev Walkin4da95cf2010-10-16 02:46:32 -070015463# Specify filename containing input files.
15464file_list_spec=$lt_file_list_spec
15465
15466# How to hardcode a shared library path into an executable.
15467hardcode_action=$hardcode_action
15468
15469# ### END LIBTOOL CONFIG
15470
15471_LT_EOF
15472
15473 case $host_os in
15474 aix3*)
15475 cat <<\_LT_EOF >> "$cfgfile"
15476# AIX sometimes has problems with the GCC collect2 program. For some
15477# reason, if we set the COLLECT_NAMES environment variable, the problems
15478# vanish in a puff of smoke.
15479if test "X${COLLECT_NAMES+set}" != Xset; then
15480 COLLECT_NAMES=
15481 export COLLECT_NAMES
15482fi
15483_LT_EOF
15484 ;;
15485 esac
15486
15487
15488ltmain="$ac_aux_dir/ltmain.sh"
15489
15490
15491 # We use sed instead of cat because bash on DJGPP gets confused if
15492 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15493 # text mode, it properly converts lines to CR/LF. This bash problem
15494 # is reportedly fixed, but why not run on old versions too?
Lev Walkin4c776e52010-11-08 02:07:31 -080015495 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15496 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015497
Lev Walkin4c776e52010-11-08 02:07:31 -080015498 case $xsi_shell in
15499 yes)
15500 cat << \_LT_EOF >> "$cfgfile"
15501
15502# func_dirname file append nondir_replacement
15503# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15504# otherwise set result to NONDIR_REPLACEMENT.
15505func_dirname ()
15506{
15507 case ${1} in
15508 */*) func_dirname_result="${1%/*}${2}" ;;
15509 * ) func_dirname_result="${3}" ;;
15510 esac
15511}
15512
15513# func_basename file
15514func_basename ()
15515{
15516 func_basename_result="${1##*/}"
15517}
15518
15519# func_dirname_and_basename file append nondir_replacement
15520# perform func_basename and func_dirname in a single function
15521# call:
15522# dirname: Compute the dirname of FILE. If nonempty,
15523# add APPEND to the result, otherwise set result
15524# to NONDIR_REPLACEMENT.
15525# value returned in "$func_dirname_result"
15526# basename: Compute filename of FILE.
15527# value retuned in "$func_basename_result"
15528# Implementation must be kept synchronized with func_dirname
15529# and func_basename. For efficiency, we do not delegate to
15530# those functions but instead duplicate the functionality here.
15531func_dirname_and_basename ()
15532{
15533 case ${1} in
15534 */*) func_dirname_result="${1%/*}${2}" ;;
15535 * ) func_dirname_result="${3}" ;;
15536 esac
15537 func_basename_result="${1##*/}"
15538}
15539
15540# func_stripname prefix suffix name
15541# strip PREFIX and SUFFIX off of NAME.
15542# PREFIX and SUFFIX must not contain globbing or regex special
15543# characters, hashes, percent signs, but SUFFIX may contain a leading
15544# dot (in which case that matches only a dot).
15545func_stripname ()
15546{
15547 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15548 # positional parameters, so assign one to ordinary parameter first.
15549 func_stripname_result=${3}
15550 func_stripname_result=${func_stripname_result#"${1}"}
15551 func_stripname_result=${func_stripname_result%"${2}"}
15552}
15553
15554# func_opt_split
15555func_opt_split ()
15556{
15557 func_opt_split_opt=${1%%=*}
15558 func_opt_split_arg=${1#*=}
15559}
15560
15561# func_lo2o object
15562func_lo2o ()
15563{
15564 case ${1} in
15565 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15566 *) func_lo2o_result=${1} ;;
15567 esac
15568}
15569
15570# func_xform libobj-or-source
15571func_xform ()
15572{
15573 func_xform_result=${1%.*}.lo
15574}
15575
15576# func_arith arithmetic-term...
15577func_arith ()
15578{
15579 func_arith_result=$(( $* ))
15580}
15581
15582# func_len string
15583# STRING may not start with a hyphen.
15584func_len ()
15585{
15586 func_len_result=${#1}
15587}
15588
15589_LT_EOF
15590 ;;
15591 *) # Bourne compatible functions.
15592 cat << \_LT_EOF >> "$cfgfile"
15593
15594# func_dirname file append nondir_replacement
15595# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15596# otherwise set result to NONDIR_REPLACEMENT.
15597func_dirname ()
15598{
15599 # Extract subdirectory from the argument.
15600 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15601 if test "X$func_dirname_result" = "X${1}"; then
15602 func_dirname_result="${3}"
15603 else
15604 func_dirname_result="$func_dirname_result${2}"
15605 fi
15606}
15607
15608# func_basename file
15609func_basename ()
15610{
15611 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15612}
Lev Walkin4da95cf2010-10-16 02:46:32 -070015613
15614
Lev Walkin4c776e52010-11-08 02:07:31 -080015615# func_stripname prefix suffix name
15616# strip PREFIX and SUFFIX off of NAME.
15617# PREFIX and SUFFIX must not contain globbing or regex special
15618# characters, hashes, percent signs, but SUFFIX may contain a leading
15619# dot (in which case that matches only a dot).
15620# func_strip_suffix prefix name
15621func_stripname ()
15622{
15623 case ${2} in
15624 .*) func_stripname_result=`$ECHO "X${3}" \
15625 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15626 *) func_stripname_result=`$ECHO "X${3}" \
15627 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15628 esac
15629}
15630
15631# sed scripts:
15632my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15633my_sed_long_arg='1s/^-[^=]*=//'
15634
15635# func_opt_split
15636func_opt_split ()
15637{
15638 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15639 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15640}
15641
15642# func_lo2o object
15643func_lo2o ()
15644{
15645 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15646}
15647
15648# func_xform libobj-or-source
15649func_xform ()
15650{
15651 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15652}
15653
15654# func_arith arithmetic-term...
15655func_arith ()
15656{
15657 func_arith_result=`expr "$@"`
15658}
15659
15660# func_len string
15661# STRING may not start with a hyphen.
15662func_len ()
15663{
15664 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15665}
15666
15667_LT_EOF
15668esac
15669
15670case $lt_shell_append in
15671 yes)
15672 cat << \_LT_EOF >> "$cfgfile"
15673
15674# func_append var value
15675# Append VALUE to the end of shell variable VAR.
15676func_append ()
15677{
15678 eval "$1+=\$2"
15679}
15680_LT_EOF
15681 ;;
15682 *)
15683 cat << \_LT_EOF >> "$cfgfile"
15684
15685# func_append var value
15686# Append VALUE to the end of shell variable VAR.
15687func_append ()
15688{
15689 eval "$1=\$$1\$2"
15690}
15691
15692_LT_EOF
15693 ;;
15694 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -070015695
15696
Lev Walkin4c776e52010-11-08 02:07:31 -080015697 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15698 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015699
Lev Walkin4c776e52010-11-08 02:07:31 -080015700 mv -f "$cfgfile" "$ofile" ||
Lev Walkin4da95cf2010-10-16 02:46:32 -070015701 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15702 chmod +x "$ofile"
15703
15704 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015705
Lev Walkin27fd0b62007-08-27 23:57:45 +000015706 esac
15707done # for ac_tag
15708
Lev Walkinf15320b2004-06-03 03:38:44 +000015709
15710{ (exit 0); exit 0; }
15711_ACEOF
15712chmod +x $CONFIG_STATUS
15713ac_clean_files=$ac_clean_files_save
15714
15715
15716# configure is writing to config.log, and then calls config.status.
15717# config.status does its own redirection, appending to config.log.
15718# Unfortunately, on DOS this fails, as config.log is still kept open
15719# by configure, so config.status won't be able to write to it; its
15720# output is simply discarded. So we exec the FD to /dev/null,
15721# effectively closing config.log, so it can be properly (re)opened and
15722# appended to by config.status. When coming back to configure, we
15723# need to make the FD available again.
15724if test "$no_create" != yes; then
15725 ac_cs_success=:
15726 ac_config_status_args=
15727 test "$silent" = yes &&
15728 ac_config_status_args="$ac_config_status_args --quiet"
15729 exec 5>/dev/null
15730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15731 exec 5>>config.log
15732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15733 # would make configure fail if this is the last instruction.
15734 $ac_cs_success || { (exit 1); exit 1; }
15735fi
15736
15737