blob: 9f2b332858fa647283dc3eb75f9cbab793c9ed1d [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkin4c776e52010-11-08 02:07:31 -08003# Generated by GNU Autoconf 2.61.
Lev Walkinf15320b2004-06-03 03:38:44 +00004#
Lev Walkin27fd0b62007-08-27 23:57:45 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
Lev Walkin4c776e52010-11-08 02:07:31 -080013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000021 setopt NO_GLOB_SUBST
22else
Lev Walkin4c776e52010-11-08 02:07:31 -080023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Lev Walkinf15320b2004-06-03 03:38:44 +000027fi
Lev Walkin4c776e52010-11-08 02:07:31 -080028
29
Lev Walkinf15320b2004-06-03 03:38:44 +000030
Lev Walkinf15320b2004-06-03 03:38:44 +000031
Lev Walkin27fd0b62007-08-27 23:57:45 +000032# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Lev Walkin27fd0b62007-08-27 23:57:45 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Lev Walkinf15320b2004-06-03 03:38:44 +000059
Lev Walkin27fd0b62007-08-27 23:57:45 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Lev Walkin27fd0b62007-08-27 23:57:45 +000080IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000081
Lev Walkin27fd0b62007-08-27 23:57:45 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Lev Walkinf15320b2004-06-03 03:38:44 +0000112 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Lev Walkinf15320b2004-06-03 03:38:44 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4c776e52010-11-08 02:07:31 -0800222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Lev Walkinf15320b2004-06-03 03:38:44 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000226 case $as_dir in
Lev Walkinf15320b2004-06-03 03:38:44 +0000227 /*)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +0000240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Lev Walkin4c776e52010-11-08 02:07:31 -0800248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Lev Walkin27fd0b62007-08-27 23:57:45 +0000252fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800253
Lev Walkin27fd0b62007-08-27 23:57:45 +0000254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Lev Walkin4c776e52010-11-08 02:07:31 -0800269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Lev Walkin27fd0b62007-08-27 23:57:45 +0000273fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800274
Lev Walkin27fd0b62007-08-27 23:57:45 +0000275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Lev Walkinf15320b2004-06-03 03:38:44 +0000328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +0000330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +0000427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +0000430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +0000435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000442 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000447 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000450 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000451 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000452 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000453 chmod +x "$as_me.lineno" ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000461 # Exit status is that of the last command.
462 exit
463}
464
465
Lev Walkin27fd0b62007-08-27 23:57:45 +0000466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000481esac
482
Lev Walkin27fd0b62007-08-27 23:57:45 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +0000485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinf15320b2004-06-03 03:38:44 +0000505 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000517 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000518 as_mkdir_p=false
519fi
520
Lev Walkin4c776e52010-11-08 02:07:31 -0800521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000523else
Lev Walkin4c776e52010-11-08 02:07:31 -0800524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000541fi
Lev Walkin4c776e52010-11-08 02:07:31 -0800542as_executable_p=$as_test_x
Lev Walkinf15320b2004-06-03 03:38:44 +0000543
544# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000546
547# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000549
550
Lev Walkin4c776e52010-11-08 02:07:31 -0800551
552
553# Check that we are running under the correct shell.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000554SHELL=${CONFIG_SHELL-/bin/sh}
555
Lev Walkin4c776e52010-11-08 02:07:31 -0800556case X$lt_ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563ECHO=${lt_ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
582$*
583_LT_EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689fi
690
691# Copy echo and quote the copy suitably for passing to libtool from
692# the Makefile, instead of quoting the original, which is used later.
693lt_ECHO=$ECHO
694if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696fi
697
698
699
Lev Walkin8e8b5482004-06-17 23:42:48 +0000700
Lev Walkin27fd0b62007-08-27 23:57:45 +0000701exec 7<&0 </dev/null 6>&1
702
Lev Walkinf15320b2004-06-03 03:38:44 +0000703# Name of the host.
704# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705# so uname gets run too.
706ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
Lev Walkinf15320b2004-06-03 03:38:44 +0000708#
709# Initializations.
710#
711ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000712ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000713ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000714LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000715cross_compiling=no
716subdirs=
717MFLAGS=
718MAKEFLAGS=
719SHELL=${CONFIG_SHELL-/bin/sh}
720
Lev Walkinf15320b2004-06-03 03:38:44 +0000721# Identity of this package.
722PACKAGE_NAME=
723PACKAGE_TARNAME=
724PACKAGE_VERSION=
725PACKAGE_STRING=
726PACKAGE_BUGREPORT=
727
728ac_unique_file="libasn1parser/asn1p_y.y"
729# Factoring default headers for most tests.
730ac_includes_default="\
731#include <stdio.h>
Lev Walkin4c776e52010-11-08 02:07:31 -0800732#ifdef HAVE_SYS_TYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000733# include <sys/types.h>
734#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800735#ifdef HAVE_SYS_STAT_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000736# include <sys/stat.h>
737#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800738#ifdef STDC_HEADERS
Lev Walkinf15320b2004-06-03 03:38:44 +0000739# include <stdlib.h>
740# include <stddef.h>
741#else
Lev Walkin4c776e52010-11-08 02:07:31 -0800742# ifdef HAVE_STDLIB_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000743# include <stdlib.h>
744# endif
745#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800746#ifdef HAVE_STRING_H
747# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000748# include <memory.h>
749# endif
750# include <string.h>
751#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800752#ifdef HAVE_STRINGS_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000753# include <strings.h>
754#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800755#ifdef HAVE_INTTYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000756# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000757#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800758#ifdef HAVE_STDINT_H
Lev Walkin27fd0b62007-08-27 23:57:45 +0000759# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000760#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800761#ifdef HAVE_UNISTD_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000762# include <unistd.h>
763#endif"
764
Lev Walkin27fd0b62007-08-27 23:57:45 +0000765ac_subst_vars='SHELL
766PATH_SEPARATOR
767PACKAGE_NAME
768PACKAGE_TARNAME
769PACKAGE_VERSION
770PACKAGE_STRING
771PACKAGE_BUGREPORT
772exec_prefix
773prefix
774program_transform_name
775bindir
776sbindir
777libexecdir
778datarootdir
779datadir
780sysconfdir
781sharedstatedir
782localstatedir
783includedir
784oldincludedir
785docdir
786infodir
787htmldir
788dvidir
789pdfdir
790psdir
791libdir
792localedir
793mandir
794DEFS
795ECHO_C
796ECHO_N
797ECHO_T
798LIBS
799build_alias
800host_alias
801target_alias
802build
803build_cpu
804build_vendor
805build_os
806host
807host_cpu
808host_vendor
809host_os
810target
811target_cpu
812target_vendor
813target_os
814INSTALL_PROGRAM
815INSTALL_SCRIPT
816INSTALL_DATA
Lev Walkin4c776e52010-11-08 02:07:31 -0800817am__isrc
Lev Walkin27fd0b62007-08-27 23:57:45 +0000818CYGPATH_W
819PACKAGE
820VERSION
821ACLOCAL
822AUTOCONF
823AUTOMAKE
824AUTOHEADER
825MAKEINFO
826install_sh
827STRIP
828INSTALL_STRIP_PROGRAM
829mkdir_p
830AWK
831SET_MAKE
832am__leading_dot
833AMTAR
834am__tar
835am__untar
836MAINTAINER_MODE_TRUE
837MAINTAINER_MODE_FALSE
838MAINT
Lev Walkin4da95cf2010-10-16 02:46:32 -0700839LIBTOOL
Lev Walkin27fd0b62007-08-27 23:57:45 +0000840CC
841CFLAGS
842LDFLAGS
843CPPFLAGS
844ac_ct_CC
845EXEEXT
846OBJEXT
847DEPDIR
848am__include
849am__quote
850AMDEP_TRUE
851AMDEP_FALSE
852AMDEPBACKSLASH
853CCDEPMODE
854am__fastdepCC_TRUE
855am__fastdepCC_FALSE
Lev Walkin4da95cf2010-10-16 02:46:32 -0700856SED
Lev Walkin27fd0b62007-08-27 23:57:45 +0000857GREP
858EGREP
Lev Walkin4da95cf2010-10-16 02:46:32 -0700859FGREP
860LD
861DUMPBIN
862ac_ct_DUMPBIN
863NM
Lev Walkin27fd0b62007-08-27 23:57:45 +0000864LN_S
Lev Walkin27fd0b62007-08-27 23:57:45 +0000865AR
866RANLIB
Lev Walkin4c776e52010-11-08 02:07:31 -0800867lt_ECHO
Lev Walkin4da95cf2010-10-16 02:46:32 -0700868DSYMUTIL
869NMEDIT
870LIPO
871OTOOL
872OTOOL64
Lev Walkin27fd0b62007-08-27 23:57:45 +0000873CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000874CONFIGURE_DEPENDS
875YACC
876YFLAGS
877LEX
Lev Walkin27fd0b62007-08-27 23:57:45 +0000878LEX_OUTPUT_ROOT
Lev Walkin4c776e52010-11-08 02:07:31 -0800879LEXLIB
Lev Walkin27fd0b62007-08-27 23:57:45 +0000880ADD_CFLAGS
881LIBOBJS
882LTLIBOBJS'
Lev Walkinf15320b2004-06-03 03:38:44 +0000883ac_subst_files=''
Lev Walkin27fd0b62007-08-27 23:57:45 +0000884 ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
Lev Walkin4c776e52010-11-08 02:07:31 -0800890LIBS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000891CPPFLAGS
892CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000893YACC
894YFLAGS'
895
Lev Walkinf15320b2004-06-03 03:38:44 +0000896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000922# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000931includedir='${prefix}/include'
932oldincludedir='/usr/include'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000933docdir='${datarootdir}/doc/${PACKAGE}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000942
943ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000944ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000945for ac_option
946do
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000949 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000950 ac_prev=
951 continue
952 fi
953
Lev Walkin27fd0b62007-08-27 23:57:45 +0000954 case $ac_option in
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *) ac_optarg=yes ;;
957 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000958
959 # Accept the important Cygnus configure options, so we can diagnose typos.
960
Lev Walkin27fd0b62007-08-27 23:57:45 +0000961 case $ac_dashdash$ac_option in
962 --)
963 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000964
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 ac_prev=bindir ;;
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 bindir=$ac_optarg ;;
969
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
974
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
981
982 --config-cache | -C)
983 cache_file=config.cache ;;
984
Lev Walkin27fd0b62007-08-27 23:57:45 +0000985 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000986 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000988 datadir=$ac_optarg ;;
989
Lev Walkin27fd0b62007-08-27 23:57:45 +0000990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
996
Lev Walkinf15320b2004-06-03 03:38:44 +0000997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -08001000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08001003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001004 eval enable_$ac_feature=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001015
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -08001019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08001022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001023 eval enable_$ac_feature=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
Lev Walkin27fd0b62007-08-27 23:57:45 +00001050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
Lev Walkinf15320b2004-06-03 03:38:44 +00001056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
Lev Walkin27fd0b62007-08-27 23:57:45 +00001080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
Lev Walkinf15320b2004-06-03 03:38:44 +00001085 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001086 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +00001087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
Lev Walkin27fd0b62007-08-27 23:57:45 +00001154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
Lev Walkinf15320b2004-06-03 03:38:44 +00001164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -08001216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08001219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001220 eval with_$ac_package=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001221
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
Lev Walkin4c776e52010-11-08 02:07:31 -08001225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08001228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001229 eval with_$ac_package=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001260 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1278fi
1279
Lev Walkin27fd0b62007-08-27 23:57:45 +00001280# Be sure to have absolute directory names.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001285do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001286 eval ac_val=\$$ac_var
Lev Walkinf15320b2004-06-03 03:38:44 +00001287 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001290 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
Lev Walkin27fd0b62007-08-27 23:57:45 +00001319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1327
1328
Lev Walkinf15320b2004-06-03 03:38:44 +00001329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +00001335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +00001338echo X"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\).*/{
1352 s//\1/
1353 q
1354 }
1355 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001356 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001357 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001358 srcdir=..
1359 fi
1360else
1361 ac_srcdir_defaulted=no
1362fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001363if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001366 { (exit 1); exit 1; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001367fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001371 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
Lev Walkinf15320b2004-06-03 03:38:44 +00001389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures this package to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
Lev Walkinf15320b2004-06-03 03:38:44 +00001417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001419 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkin8e8b5482004-06-17 23:42:48 +00001421 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
Lev Walkinf15320b2004-06-03 03:38:44 +00001434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467
1468 cat <<\_ACEOF
1469
1470Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001473 --enable-maintainer-mode enable make rules and dependencies not useful
1474 (and sometimes confusing) to the casual installer
Lev Walkin27fd0b62007-08-27 23:57:45 +00001475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-dependency-tracking speeds up one-time build
1480 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --disable-autoconf disable automatic generation of configure script
1483 --enable-Werror abort compilation after any C compiler warning
1484
1485Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001488 --with-pic try to use only PIC/non-PIC objects [default=use
1489 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Lev Walkinf15320b2004-06-03 03:38:44 +00001491
1492Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
Lev Walkin4c776e52010-11-08 02:07:31 -08001497 LIBS libraries to pass to the linker, e.g. -l<library>
Lev Walkin27fd0b62007-08-27 23:57:45 +00001498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001500 CPP C preprocessor
Lev Walkin27fd0b62007-08-27 23:57:45 +00001501 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1502 the first program found out of: `bison -y', `byacc', `yacc'.
1503 YFLAGS The list of arguments that will be passed by default to $YACC.
1504 This script will default YFLAGS to the empty string to avoid a
1505 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001506
1507Use these variables to override the choices made by `configure' or to help
1508it to find libraries and programs with nonstandard names/locations.
1509
1510_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001511ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00001517 test -d "$ac_dir" || continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001518 ac_builddir=.
1519
Lev Walkin27fd0b62007-08-27 23:57:45 +00001520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001535
1536case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001537 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001538 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001542 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001549esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001551
Lev Walkin27fd0b62007-08-27 23:57:45 +00001552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001564 done
1565fi
1566
Lev Walkin27fd0b62007-08-27 23:57:45 +00001567test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001568if $ac_init_version; then
1569 cat <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001570configure
Lev Walkin4c776e52010-11-08 02:07:31 -08001571generated by GNU Autoconf 2.61
Lev Walkinf15320b2004-06-03 03:38:44 +00001572
Lev Walkin27fd0b62007-08-27 23:57:45 +00001573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001578 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001579fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001580cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
1584It was created by $as_me, which was
Lev Walkin4c776e52010-11-08 02:07:31 -08001585generated by GNU Autoconf 2.61. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001586
1587 $ $0 $@
1588
1589_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001590exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001623IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001655 *\'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00001656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001663 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001664 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00001665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001676 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001677 ac_configure_args="$ac_configure_args '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001678 ;;
1679 esac
1680 done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00001690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00001702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
Lev Walkinf15320b2004-06-03 03:38:44 +00001717 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00001720 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00001721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00001724 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00001725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00001726 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001727 esac |
1728 sort
1729)
Lev Walkinf15320b2004-06-03 03:38:44 +00001730 echo
1731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
Lev Walkin27fd0b62007-08-27 23:57:45 +00001750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00001753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00001762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00001773 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00001780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001782 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00001783' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00001784for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001790rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00001791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001821if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
Lev Walkinf15320b2004-06-03 03:38:44 +00001828fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001829shift
1830for ac_site_file
1831do
Lev Walkinf15320b2004-06-03 03:38:44 +00001832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00001849 esac
1850 fi
1851else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00001860for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00001861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00001863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00001865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001880echo "$as_me: former value: $ac_old_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00001882echo "$as_me: current value: $ac_new_val" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00001883 ac_cache_corrupted=:
Lev Walkinf15320b2004-06-03 03:38:44 +00001884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
Lev Walkin27fd0b62007-08-27 23:57:45 +00001906
1907
1908
1909
1910
1911
1912
1913
1914
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 Walkinf15320b2004-06-03 03:38:44 +00001929ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00001930for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1931 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001935 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00001939 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 break
1943 fi
1944done
1945if test -z "$ac_aux_dir"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00001946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1947echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001948 { (exit 1); exit 1; }; }
1949fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001950
1951# These three variables are undocumented and unsupported,
1952# and are intended to be withdrawn in a future Autoconf release.
1953# They can cause serious problems if a builder's source tree is in a directory
1954# whose full name contains unusual characters.
1955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958
Lev Walkinf15320b2004-06-03 03:38:44 +00001959
1960# Make sure we can run config.sub.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001961$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1962 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1963echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001964 { (exit 1); exit 1; }; }
1965
Lev Walkin27fd0b62007-08-27 23:57:45 +00001966{ echo "$as_me:$LINENO: checking build system type" >&5
1967echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001968if test "${ac_cv_build+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
Lev Walkin27fd0b62007-08-27 23:57:45 +00001971 ac_build_alias=$build_alias
1972test "x$ac_build_alias" = x &&
1973 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1974test "x$ac_build_alias" = x &&
Lev Walkinf15320b2004-06-03 03:38:44 +00001975 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1976echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1977 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00001978ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1980echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00001981 { (exit 1); exit 1; }; }
1982
1983fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001984{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1985echo "${ECHO_T}$ac_cv_build" >&6; }
1986case $ac_cv_build in
1987*-*-*) ;;
1988*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1989echo "$as_me: error: invalid value of canonical build" >&2;}
1990 { (exit 1); exit 1; }; };;
1991esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001992build=$ac_cv_build
Lev Walkin27fd0b62007-08-27 23:57:45 +00001993ac_save_IFS=$IFS; IFS='-'
1994set x $ac_cv_build
1995shift
1996build_cpu=$1
1997build_vendor=$2
1998shift; shift
1999# Remember, the first character of IFS is used to create $*,
2000# except with old shells:
2001build_os=$*
2002IFS=$ac_save_IFS
2003case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002004
2005
Lev Walkin27fd0b62007-08-27 23:57:45 +00002006{ echo "$as_me:$LINENO: checking host system type" >&5
2007echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002008if test "${ac_cv_host+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002011 if test "x$host_alias" = x; then
2012 ac_cv_host=$ac_cv_build
2013else
2014 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2015 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2016echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002017 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002018fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002019
2020fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002021{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2022echo "${ECHO_T}$ac_cv_host" >&6; }
2023case $ac_cv_host in
2024*-*-*) ;;
2025*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2026echo "$as_me: error: invalid value of canonical host" >&2;}
2027 { (exit 1); exit 1; }; };;
2028esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002029host=$ac_cv_host
Lev Walkin27fd0b62007-08-27 23:57:45 +00002030ac_save_IFS=$IFS; IFS='-'
2031set x $ac_cv_host
2032shift
2033host_cpu=$1
2034host_vendor=$2
2035shift; shift
2036# Remember, the first character of IFS is used to create $*,
2037# except with old shells:
2038host_os=$*
2039IFS=$ac_save_IFS
2040case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002041
2042
Lev Walkin27fd0b62007-08-27 23:57:45 +00002043{ echo "$as_me:$LINENO: checking target system type" >&5
2044echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002045if test "${ac_cv_target+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002048 if test "x$target_alias" = x; then
2049 ac_cv_target=$ac_cv_host
2050else
2051 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2053echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002054 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002055fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002056
2057fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002058{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2059echo "${ECHO_T}$ac_cv_target" >&6; }
2060case $ac_cv_target in
2061*-*-*) ;;
2062*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2063echo "$as_me: error: invalid value of canonical target" >&2;}
2064 { (exit 1); exit 1; }; };;
2065esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002066target=$ac_cv_target
Lev Walkin27fd0b62007-08-27 23:57:45 +00002067ac_save_IFS=$IFS; IFS='-'
2068set x $ac_cv_target
2069shift
2070target_cpu=$1
2071target_vendor=$2
2072shift; shift
2073# Remember, the first character of IFS is used to create $*,
2074# except with old shells:
2075target_os=$*
2076IFS=$ac_save_IFS
2077case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002078
2079
2080# The aliases save the names the user supplied, while $host etc.
2081# will get canonicalized.
2082test -n "$target_alias" &&
2083 test "$program_prefix$program_suffix$program_transform_name" = \
2084 NONENONEs,x,x, &&
2085 program_prefix=${target_alias}-
2086
Lev Walkin4c776e52010-11-08 02:07:31 -08002087am__api_version='1.10'
2088
Lev Walkinf15320b2004-06-03 03:38:44 +00002089# Find a good install program. We prefer a C program (faster),
2090# so one script is as good as another. But avoid the broken or
2091# incompatible versions:
2092# SysV /etc/install, /usr/sbin/install
2093# SunOS /usr/etc/install
2094# IRIX /sbin/install
2095# AIX /bin/install
2096# AmigaOS /C/install, which installs bootblocks on floppy discs
2097# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002100# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00002101# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002102{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2103echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002104if test -z "$INSTALL"; then
2105if test "${ac_cv_path_install+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 # Account for people who put trailing slashes in PATH elements.
2114case $as_dir/ in
2115 ./ | .// | /cC/* | \
2116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +00002117 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002118 /usr/ucb/* ) ;;
2119 *)
2120 # OSF1 and SCO ODT 3.0 have their own names for install.
2121 # Don't use installbsd from OSF since it installs stuff as root
2122 # by default.
2123 for ac_prog in ginstall scoinst install; do
2124 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002125 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 +00002126 if test $ac_prog = install &&
2127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2128 # AIX install. It has an incompatible calling convention.
2129 :
2130 elif test $ac_prog = install &&
2131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2132 # program-specific install script used by HP pwplus--don't use.
2133 :
2134 else
2135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2136 break 3
2137 fi
2138 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002139 done
2140 done
2141 ;;
2142esac
2143done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002144IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002145
2146
2147fi
2148 if test "${ac_cv_path_install+set}" = set; then
2149 INSTALL=$ac_cv_path_install
2150 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002151 # As a last resort, use the slow shell script. Don't cache a
2152 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002153 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002154 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002155 INSTALL=$ac_install_sh
2156 fi
2157fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002158{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2159echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002160
2161# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2162# It thinks the first close brace ends the variable substitution.
2163test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2164
2165test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2166
2167test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2168
Lev Walkin27fd0b62007-08-27 23:57:45 +00002169{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2170echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002171# Just in case
2172sleep 1
2173echo timestamp > conftest.file
2174# Do `set' in a subshell so we don't clobber the current shell's
2175# arguments. Must try -L first in case configure is actually a
2176# symlink; some systems play weird games with the mod time of symlinks
2177# (eg FreeBSD returns the mod time of the symlink's containing
2178# directory).
2179if (
2180 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2181 if test "$*" = "X"; then
2182 # -L didn't work.
2183 set X `ls -t $srcdir/configure conftest.file`
2184 fi
2185 rm -f conftest.file
2186 if test "$*" != "X $srcdir/configure conftest.file" \
2187 && test "$*" != "X conftest.file $srcdir/configure"; then
2188
2189 # If neither matched, then we have a broken ls. This can happen
2190 # if, for instance, CONFIG_SHELL is bash and it inherits a
2191 # broken ls alias from the environment. This has actually
2192 # happened. Such a system could not be considered "sane".
2193 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2194alias in your environment" >&5
2195echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2196alias in your environment" >&2;}
2197 { (exit 1); exit 1; }; }
2198 fi
2199
2200 test "$2" = conftest.file
2201 )
2202then
2203 # Ok.
2204 :
2205else
2206 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2207Check your system clock" >&5
2208echo "$as_me: error: newly created file is older than distributed files!
2209Check your system clock" >&2;}
2210 { (exit 1); exit 1; }; }
2211fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002212{ echo "$as_me:$LINENO: result: yes" >&5
2213echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002214test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002216# Use a double $ so make ignores it.
2217test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002219# Double any \ or $. echo might interpret backslashes.
2220# By default was `s,x,x', remove it if useless.
2221cat <<\_ACEOF >conftest.sed
2222s/[\\$]/&&/g;s/;s,x,x,$//
2223_ACEOF
2224program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002225rm -f conftest.sed
Lev Walkinf15320b2004-06-03 03:38:44 +00002226
Lev Walkinf15320b2004-06-03 03:38:44 +00002227# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002228am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002229
2230test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2231# Use eval to expand $SHELL
2232if eval "$MISSING --run true"; then
2233 am_missing_run="$MISSING --run "
2234else
2235 am_missing_run=
Lev Walkin8e8b5482004-06-17 23:42:48 +00002236 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2237echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2238fi
2239
Lev Walkin4c776e52010-11-08 02:07:31 -08002240{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2241echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2242if test -z "$MKDIR_P"; then
2243 if test "${ac_cv_path_mkdir+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002245else
Lev Walkin4c776e52010-11-08 02:07:31 -08002246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2248do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_prog in mkdir gmkdir; do
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2254 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2255 'mkdir (GNU coreutils) '* | \
2256 'mkdir (coreutils) '* | \
2257 'mkdir (fileutils) '4.1*)
2258 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2259 break 3;;
2260 esac
2261 done
2262 done
2263done
2264IFS=$as_save_IFS
2265
2266fi
2267
2268 if test "${ac_cv_path_mkdir+set}" = set; then
2269 MKDIR_P="$ac_cv_path_mkdir -p"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002270 else
Lev Walkin4c776e52010-11-08 02:07:31 -08002271 # As a last resort, use the slow shell script. Don't cache a
2272 # value for MKDIR_P within a source directory, because that will
2273 # break other packages using the cache if that directory is
2274 # removed, or if the value is a relative name.
2275 test -d ./--version && rmdir ./--version
2276 MKDIR_P="$ac_install_sh -d"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002277 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002278fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002279{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2280echo "${ECHO_T}$MKDIR_P" >&6; }
2281
2282mkdir_p="$MKDIR_P"
2283case $mkdir_p in
2284 [\\/$]* | ?:[\\/]*) ;;
2285 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2286esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002287
2288for ac_prog in gawk mawk nawk awk
2289do
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002292{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002294if test "${ac_cv_prog_AWK+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 if test -n "$AWK"; then
2298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002306 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 +00002307 ac_cv_prog_AWK="$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002313IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002314
2315fi
2316fi
2317AWK=$ac_cv_prog_AWK
2318if test -n "$AWK"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002319 { echo "$as_me:$LINENO: result: $AWK" >&5
2320echo "${ECHO_T}$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002321else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002322 { echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002324fi
2325
Lev Walkin27fd0b62007-08-27 23:57:45 +00002326
Lev Walkinf15320b2004-06-03 03:38:44 +00002327 test -n "$AWK" && break
2328done
2329
Lev Walkin27fd0b62007-08-27 23:57:45 +00002330{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2331echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2332set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2333if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002337SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002338all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002339 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002340_ACEOF
2341# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002342case `${MAKE-make} -f conftest.make 2>/dev/null` in
2343 *@@@%%%=?*=@@@%%%*)
2344 eval ac_cv_prog_make_${ac_make}_set=yes;;
2345 *)
2346 eval ac_cv_prog_make_${ac_make}_set=no;;
2347esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002348rm -f conftest.make
2349fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002350if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2351 { echo "$as_me:$LINENO: result: yes" >&5
2352echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002353 SET_MAKE=
2354else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002355 { echo "$as_me:$LINENO: result: no" >&5
2356echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002357 SET_MAKE="MAKE=${MAKE-make}"
2358fi
2359
Lev Walkin8e8b5482004-06-17 23:42:48 +00002360rm -rf .tst 2>/dev/null
2361mkdir .tst 2>/dev/null
2362if test -d .tst; then
2363 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002364else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002365 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002366fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002367rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002368
Lev Walkin4c776e52010-11-08 02:07:31 -08002369if test "`cd $srcdir && pwd`" != "`pwd`"; then
2370 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2371 # is not polluted with repeated "-I."
2372 am__isrc=' -I$(srcdir)'
2373 # test to see if srcdir already configured
2374 if test -f $srcdir/config.status; then
2375 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002376echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2377 { (exit 1); exit 1; }; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002378 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002379fi
2380
Lev Walkin8e8b5482004-06-17 23:42:48 +00002381# test whether we have cygpath
2382if test -z "$CYGPATH_W"; then
2383 if (cygpath --version) >/dev/null 2>/dev/null; then
2384 CYGPATH_W='cygpath -w'
2385 else
2386 CYGPATH_W=echo
2387 fi
2388fi
2389
2390
Lev Walkinf15320b2004-06-03 03:38:44 +00002391# Define the identity of the package.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002392 PACKAGE=asn1c
Lev Walkine73dc672006-10-09 12:29:34 +00002393 VERSION=0.9.22
Lev Walkin8e8b5482004-06-17 23:42:48 +00002394
Lev Walkinf15320b2004-06-03 03:38:44 +00002395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE "$PACKAGE"
2398_ACEOF
2399
2400
2401cat >>confdefs.h <<_ACEOF
2402#define VERSION "$VERSION"
2403_ACEOF
2404
Lev Walkinf15320b2004-06-03 03:38:44 +00002405# Some tools Automake needs.
2406
Lev Walkin8e8b5482004-06-17 23:42:48 +00002407ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002408
2409
2410AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2411
2412
Lev Walkin8e8b5482004-06-17 23:42:48 +00002413AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002414
2415
2416AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2417
2418
2419MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2420
Lev Walkin4c776e52010-11-08 02:07:31 -08002421install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002422
Lev Walkin8e8b5482004-06-17 23:42:48 +00002423# Installed binaries are usually stripped using `strip' when the user
2424# run `make install-strip'. However `strip' might not be the right
2425# tool to use in cross-compilation environments, therefore Automake
2426# will honor the `STRIP' environment variable to overrule this program.
2427if test "$cross_compiling" != no; then
2428 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002433if test "${ac_cv_prog_STRIP+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 if test -n "$STRIP"; then
2437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002445 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 +00002446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450done
2451done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002452IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002453
2454fi
2455fi
2456STRIP=$ac_cv_prog_STRIP
2457if test -n "$STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002458 { echo "$as_me:$LINENO: result: $STRIP" >&5
2459echo "${ECHO_T}$STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002460else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002461 { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002463fi
2464
Lev Walkin27fd0b62007-08-27 23:57:45 +00002465
Lev Walkin8e8b5482004-06-17 23:42:48 +00002466fi
2467if test -z "$ac_cv_prog_STRIP"; then
2468 ac_ct_STRIP=$STRIP
2469 # Extract the first word of "strip", so it can be a program name with args.
2470set dummy strip; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002473if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476 if test -n "$ac_ct_STRIP"; then
2477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002485 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 +00002486 ac_cv_prog_ac_ct_STRIP="strip"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490done
2491done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002492IFS=$as_save_IFS
Lev Walkin8e8b5482004-06-17 23:42:48 +00002493
Lev Walkin8e8b5482004-06-17 23:42:48 +00002494fi
2495fi
2496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2497if test -n "$ac_ct_STRIP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002498 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2499echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002500else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002501 { echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002503fi
2504
Lev Walkin27fd0b62007-08-27 23:57:45 +00002505 if test "x$ac_ct_STRIP" = x; then
2506 STRIP=":"
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509yes:)
2510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511whose name does not start with the host triplet. If you think this
2512configuration is useful to you, please write to autoconf@gnu.org." >&5
2513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514whose name does not start with the host triplet. If you think this
2515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516ac_tool_warned=yes ;;
2517esac
2518 STRIP=$ac_ct_STRIP
2519 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002520else
2521 STRIP="$ac_cv_prog_STRIP"
2522fi
2523
2524fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002525INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Lev Walkinf15320b2004-06-03 03:38:44 +00002526
2527# We need awk for the "check" target. The system "awk" is bad on
2528# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002529# Always define AMTAR for backward compatibility.
2530
2531AMTAR=${AMTAR-"${am_missing_run}tar"}
2532
2533am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2534
2535
Lev Walkinf15320b2004-06-03 03:38:44 +00002536
2537
2538
2539
Lev Walkin27fd0b62007-08-27 23:57:45 +00002540{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2541echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2542 # Check whether --enable-maintainer-mode was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00002543if test "${enable_maintainer_mode+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002544 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Lev Walkinf15320b2004-06-03 03:38:44 +00002545else
2546 USE_MAINTAINER_MODE=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00002547fi
2548
2549 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2550echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002551 if test $USE_MAINTAINER_MODE = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002552 MAINTAINER_MODE_TRUE=
2553 MAINTAINER_MODE_FALSE='#'
2554else
2555 MAINTAINER_MODE_TRUE='#'
2556 MAINTAINER_MODE_FALSE=
2557fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002558
Lev Walkinf15320b2004-06-03 03:38:44 +00002559 MAINT=$MAINTAINER_MODE_TRUE
2560
2561
2562
Lev Walkin4da95cf2010-10-16 02:46:32 -07002563case `pwd` in
2564 *\ * | *\ *)
2565 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2566echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2567esac
2568
2569
2570
Lev Walkin4c776e52010-11-08 02:07:31 -08002571macro_version='2.2.4'
2572macro_revision='1.2976'
Lev Walkin4da95cf2010-10-16 02:46:32 -07002573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586ltmain="$ac_aux_dir/ltmain.sh"
2587
Lev Walkin8e8b5482004-06-17 23:42:48 +00002588DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002589
Lev Walkin27fd0b62007-08-27 23:57:45 +00002590ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002591
Lev Walkinf15320b2004-06-03 03:38:44 +00002592
2593am_make=${MAKE-make}
2594cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002595am__doit:
Lev Walkinf15320b2004-06-03 03:38:44 +00002596 @echo done
Lev Walkin8e8b5482004-06-17 23:42:48 +00002597.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002598END
2599# If we don't find an include directive, just comment out the code.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002600{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2601echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002602am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002603am__quote=
2604_am_result=none
2605# First try GNU make style include.
2606echo "include confinc" > confmf
2607# We grep out `Entering directory' and `Leaving directory'
2608# messages which can occur if `w' ends up in MAKEFLAGS.
2609# In particular we don't look at `^make:' because GNU make might
2610# be invoked under some other name (usually "gmake"), in which
2611# case it prints its new name instead of `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002612if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002613 am__include=include
2614 am__quote=
2615 _am_result=GNU
2616fi
2617# Now try BSD make style include.
2618if test "$am__include" = "#"; then
2619 echo '.include "confinc"' > confmf
2620 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2621 am__include=.include
Lev Walkin8e8b5482004-06-17 23:42:48 +00002622 am__quote="\""
Lev Walkinf15320b2004-06-03 03:38:44 +00002623 _am_result=BSD
2624 fi
2625fi
2626
2627
Lev Walkin27fd0b62007-08-27 23:57:45 +00002628{ echo "$as_me:$LINENO: result: $_am_result" >&5
2629echo "${ECHO_T}$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002630rm -f confinc confmf
2631
Lev Walkin27fd0b62007-08-27 23:57:45 +00002632# Check whether --enable-dependency-tracking was given.
Lev Walkin8e8b5482004-06-17 23:42:48 +00002633if test "${enable_dependency_tracking+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002634 enableval=$enable_dependency_tracking;
2635fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002636
Lev Walkin8e8b5482004-06-17 23:42:48 +00002637if test "x$enable_dependency_tracking" != xno; then
2638 am_depcomp="$ac_aux_dir/depcomp"
2639 AMDEPBACKSLASH='\'
2640fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002641 if test "x$enable_dependency_tracking" != xno; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002642 AMDEP_TRUE=
2643 AMDEP_FALSE='#'
2644else
2645 AMDEP_TRUE='#'
2646 AMDEP_FALSE=
2647fi
2648
2649
Lev Walkinf15320b2004-06-03 03:38:44 +00002650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2657set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002660if test "${ac_cv_prog_CC+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002672 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 +00002673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677done
2678done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002679IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002680
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002685 { echo "$as_me:$LINENO: result: $CC" >&5
2686echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002687else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002688 { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002690fi
2691
Lev Walkin27fd0b62007-08-27 23:57:45 +00002692
Lev Walkinf15320b2004-06-03 03:38:44 +00002693fi
2694if test -z "$ac_cv_prog_CC"; then
2695 ac_ct_CC=$CC
2696 # Extract the first word of "gcc", so it can be a program name with args.
2697set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702else
2703 if test -n "$ac_ct_CC"; then
2704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705else
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002712 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 +00002713 ac_cv_prog_ac_ct_CC="gcc"
2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717done
2718done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002719IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002720
2721fi
2722fi
2723ac_ct_CC=$ac_cv_prog_ac_ct_CC
2724if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002725 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2726echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002727else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002728 { echo "$as_me:$LINENO: result: no" >&5
2729echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002730fi
2731
Lev Walkin27fd0b62007-08-27 23:57:45 +00002732 if test "x$ac_ct_CC" = x; then
2733 CC=""
2734 else
2735 case $cross_compiling:$ac_tool_warned in
2736yes:)
2737{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2738whose name does not start with the host triplet. If you think this
2739configuration is useful to you, please write to autoconf@gnu.org." >&5
2740echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2741whose name does not start with the host triplet. If you think this
2742configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2743ac_tool_warned=yes ;;
2744esac
2745 CC=$ac_ct_CC
2746 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002747else
2748 CC="$ac_cv_prog_CC"
2749fi
2750
2751if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002752 if test -n "$ac_tool_prefix"; then
2753 # 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 +00002754set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002757if test "${ac_cv_prog_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002769 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 +00002770 ac_cv_prog_CC="${ac_tool_prefix}cc"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774done
2775done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002776IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002782 { echo "$as_me:$LINENO: result: $CC" >&5
2783echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002784else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002785 { echo "$as_me:$LINENO: result: no" >&5
2786echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002787fi
2788
Lev Walkin27fd0b62007-08-27 23:57:45 +00002789
Lev Walkinf15320b2004-06-03 03:38:44 +00002790 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002791fi
2792if test -z "$CC"; then
2793 # Extract the first word of "cc", so it can be a program name with args.
2794set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002797if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803 ac_prog_rejected=no
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002810 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 +00002811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2812 ac_prog_rejected=yes
2813 continue
2814 fi
2815 ac_cv_prog_CC="cc"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819done
2820done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002821IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002822
2823if test $ac_prog_rejected = yes; then
2824 # We found a bogon in the path, so make sure we never use it.
2825 set dummy $ac_cv_prog_CC
2826 shift
2827 if test $# != 0; then
2828 # We chose a different compiler from the bogus one.
2829 # However, it has the same basename, so the bogon will be chosen
2830 # first if we set CC to just the basename; use the full file name.
2831 shift
2832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2833 fi
2834fi
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002839 { echo "$as_me:$LINENO: result: $CC" >&5
2840echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002841else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002842 { echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002844fi
2845
Lev Walkin27fd0b62007-08-27 23:57:45 +00002846
Lev Walkinf15320b2004-06-03 03:38:44 +00002847fi
2848if test -z "$CC"; then
2849 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002850 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002851 do
2852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002856if test "${ac_cv_prog_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861else
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002868 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 +00002869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873done
2874done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002875IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002876
2877fi
2878fi
2879CC=$ac_cv_prog_CC
2880if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002881 { echo "$as_me:$LINENO: result: $CC" >&5
2882echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002883else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002884 { echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002886fi
2887
Lev Walkin27fd0b62007-08-27 23:57:45 +00002888
Lev Walkinf15320b2004-06-03 03:38:44 +00002889 test -n "$CC" && break
2890 done
2891fi
2892if test -z "$CC"; then
2893 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00002894 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00002895do
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +00002898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002900if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002912 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 +00002913 ac_cv_prog_ac_ct_CC="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917done
2918done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002919IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002920
2921fi
2922fi
2923ac_ct_CC=$ac_cv_prog_ac_ct_CC
2924if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00002925 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2926echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002927else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002928 { echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002930fi
2931
Lev Walkin27fd0b62007-08-27 23:57:45 +00002932
Lev Walkinf15320b2004-06-03 03:38:44 +00002933 test -n "$ac_ct_CC" && break
2934done
2935
Lev Walkin27fd0b62007-08-27 23:57:45 +00002936 if test "x$ac_ct_CC" = x; then
2937 CC=""
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940yes:)
2941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2942whose name does not start with the host triplet. If you think this
2943configuration is useful to you, please write to autoconf@gnu.org." >&5
2944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2945whose name does not start with the host triplet. If you think this
2946configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2947ac_tool_warned=yes ;;
2948esac
2949 CC=$ac_ct_CC
2950 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002951fi
2952
2953fi
2954
2955
2956test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2957See \`config.log' for more details." >&5
2958echo "$as_me: error: no acceptable C compiler found in \$PATH
2959See \`config.log' for more details." >&2;}
2960 { (exit 1); exit 1; }; }
2961
2962# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002963echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002964ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +00002965{ (ac_try="$ac_compiler --version >&5"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002975{ (ac_try="$ac_compiler -v >&5"
2976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
2980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +00002985{ (ac_try="$ac_compiler -V >&5"
2986case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }
2995
2996cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00002997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
3002
3003int
3004main ()
3005{
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011ac_clean_files_save=$ac_clean_files
3012ac_clean_files="$ac_clean_files a.out a.exe b.out"
3013# Try to create an executable without -o first, disregard a.out.
3014# It will help us diagnose broken compilers, and finding out an intuition
3015# of exeext.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003016{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3017echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003018ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00003019#
3020# List of possible output files, starting from the most likely.
3021# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3022# only as a last resort. b.out is created by i960 compilers.
3023ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3024#
3025# The IRIX 6 linker writes into existing files which may not be
3026# executable, retaining their permissions. Remove them first so a
3027# subsequent execution test works.
3028ac_rmfiles=
3029for ac_file in $ac_files
3030do
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3033 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3034 esac
3035done
3036rm -f $ac_rmfiles
3037
3038if { (ac_try="$ac_link_default"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050# in a Makefile. We should not override ac_cv_exeext if it was cached,
3051# so that the user can short-circuit this test for compilers unknown to
3052# Autoconf.
Lev Walkin4c776e52010-11-08 02:07:31 -08003053for ac_file in $ac_files ''
Lev Walkinf15320b2004-06-03 03:38:44 +00003054do
3055 test -f "$ac_file" || continue
3056 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003058 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003059 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003060 # We found the default executable, but exeext='' is most
3061 # certainly right.
3062 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003063 *.* )
Lev Walkin27fd0b62007-08-27 23:57:45 +00003064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3065 then :; else
3066 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 fi
3068 # We set ac_cv_exeext here because the later test for it is not
3069 # safe: cross compilers may not add the suffix if given an `-o'
3070 # argument, so we may need to know it at that point already.
3071 # Even if this section looks crufty: it has the advantage of
3072 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003073 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003074 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003075 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003076 esac
3077done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003078test "$ac_cv_exeext" = no && ac_cv_exeext=
3079
Lev Walkinf15320b2004-06-03 03:38:44 +00003080else
Lev Walkin4c776e52010-11-08 02:07:31 -08003081 ac_file=''
3082fi
3083
3084{ echo "$as_me:$LINENO: result: $ac_file" >&5
3085echo "${ECHO_T}$ac_file" >&6; }
3086if test -z "$ac_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003087 echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3091See \`config.log' for more details." >&5
3092echo "$as_me: error: C compiler cannot create executables
3093See \`config.log' for more details." >&2;}
3094 { (exit 77); exit 77; }; }
3095fi
3096
3097ac_exeext=$ac_cv_exeext
Lev Walkinf15320b2004-06-03 03:38:44 +00003098
Lev Walkin27fd0b62007-08-27 23:57:45 +00003099# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003100# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003101{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3102echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003103# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3104# If not cross compiling, check that we can run a simple program.
3105if test "$cross_compiling" != yes; then
3106 if { ac_try='./$ac_file'
Lev Walkin27fd0b62007-08-27 23:57:45 +00003107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 cross_compiling=no
3117 else
3118 if test "$cross_compiling" = maybe; then
3119 cross_compiling=yes
3120 else
3121 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3122If you meant to cross compile, use \`--host'.
3123See \`config.log' for more details." >&5
3124echo "$as_me: error: cannot run C compiled programs.
3125If you meant to cross compile, use \`--host'.
3126See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3128 fi
3129 fi
3130fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003131{ echo "$as_me:$LINENO: result: yes" >&5
3132echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003133
3134rm -f a.out a.exe conftest$ac_cv_exeext b.out
3135ac_clean_files=$ac_clean_files_save
Lev Walkin27fd0b62007-08-27 23:57:45 +00003136# Check that the compiler produces executables we can run. If not, either
Lev Walkinf15320b2004-06-03 03:38:44 +00003137# the compiler is broken, or we cross compile.
Lev Walkin27fd0b62007-08-27 23:57:45 +00003138{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3139echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3140{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3141echo "${ECHO_T}$cross_compiling" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003142
Lev Walkin27fd0b62007-08-27 23:57:45 +00003143{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3144echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3145if { (ac_try="$ac_link"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; then
3155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3156# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3157# work properly (i.e., refer to `conftest.exe'), while it won't with
3158# `rm'.
3159for ac_file in conftest.exe conftest conftest.*; do
3160 test -f "$ac_file" || continue
3161 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003164 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003165 * ) break;;
3166 esac
3167done
3168else
3169 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3170See \`config.log' for more details." >&5
3171echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3172See \`config.log' for more details." >&2;}
3173 { (exit 1); exit 1; }; }
3174fi
3175
3176rm -f conftest$ac_cv_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003177{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3178echo "${ECHO_T}$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003179
3180rm -f conftest.$ac_ext
3181EXEEXT=$ac_cv_exeext
3182ac_exeext=$EXEEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003183{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3184echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003185if test "${ac_cv_objext+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187else
3188 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003189/* confdefs.h. */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h. */
3194
3195int
3196main ()
3197{
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest.o conftest.obj
Lev Walkin27fd0b62007-08-27 23:57:45 +00003204if { (ac_try="$ac_compile"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003214 for ac_file in conftest.o conftest.obj conftest.*; do
3215 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003216 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00003217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3219 break;;
3220 esac
3221done
3222else
3223 echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3227See \`config.log' for more details." >&5
3228echo "$as_me: error: cannot compute suffix of object files: cannot compile
3229See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3231fi
3232
3233rm -f conftest.$ac_cv_objext conftest.$ac_ext
3234fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003235{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3236echo "${ECHO_T}$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003237OBJEXT=$ac_cv_objext
3238ac_objext=$OBJEXT
Lev Walkin27fd0b62007-08-27 23:57:45 +00003239{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3240echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003241if test "${ac_cv_c_compiler_gnu+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h. */
3250
3251int
3252main ()
3253{
3254#ifndef __GNUC__
3255 choke me
3256#endif
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003263if { (ac_try="$ac_compile"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003270 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003275 (exit $ac_status); } && {
3276 test -z "$ac_c_werror_flag" ||
3277 test ! -s conftest.err
3278 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003279 ac_compiler_gnu=yes
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
Lev Walkin27fd0b62007-08-27 23:57:45 +00003284 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003285fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003286
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003288ac_cv_c_compiler_gnu=$ac_compiler_gnu
3289
3290fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003291{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3292echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003293GCC=`test $ac_compiler_gnu = yes && echo yes`
3294ac_test_CFLAGS=${CFLAGS+set}
3295ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +00003296{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3297echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003298if test "${ac_cv_prog_cc_g+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003301 ac_save_c_werror_flag=$ac_c_werror_flag
3302 ac_c_werror_flag=yes
3303 ac_cv_prog_cc_g=no
3304 CFLAGS="-g"
3305 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003321if { (ac_try="$ac_compile"
3322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
3326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003328 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003337 ac_cv_prog_cc_g=yes
3338else
3339 echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
Lev Walkin27fd0b62007-08-27 23:57:45 +00003342 CFLAGS=""
3343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
3349
3350int
3351main ()
3352{
3353
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358rm -f conftest.$ac_objext
3359if { (ac_try="$ac_compile"
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003375 :
3376else
3377 echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 ac_c_werror_flag=$ac_save_c_werror_flag
3381 CFLAGS="-g"
3382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388
3389int
3390main ()
3391{
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (ac_try="$ac_compile"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003414 ac_cv_prog_cc_g=yes
3415else
3416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419
Lev Walkinf15320b2004-06-03 03:38:44 +00003420fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003421
3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003423fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003424
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426fi
3427
3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 ac_c_werror_flag=$ac_save_c_werror_flag
3430fi
3431{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3432echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003433if test "$ac_test_CFLAGS" = set; then
3434 CFLAGS=$ac_save_CFLAGS
3435elif test $ac_cv_prog_cc_g = yes; then
3436 if test "$GCC" = yes; then
3437 CFLAGS="-g -O2"
3438 else
3439 CFLAGS="-g"
3440 fi
3441else
3442 if test "$GCC" = yes; then
3443 CFLAGS="-O2"
3444 else
3445 CFLAGS=
3446 fi
3447fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003448{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3449echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3450if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003453 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003454ac_save_CC=$CC
3455cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00003456/* confdefs.h. */
3457_ACEOF
3458cat confdefs.h >>conftest.$ac_ext
3459cat >>conftest.$ac_ext <<_ACEOF
3460/* end confdefs.h. */
3461#include <stdarg.h>
3462#include <stdio.h>
3463#include <sys/types.h>
3464#include <sys/stat.h>
3465/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466struct buf { int x; };
3467FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468static char *e (p, i)
3469 char **p;
3470 int i;
3471{
3472 return p[i];
3473}
3474static char *f (char * (*g) (char **, int), char **p, ...)
3475{
3476 char *s;
3477 va_list v;
3478 va_start (v,p);
3479 s = g (p, va_arg (v,int));
3480 va_end (v);
3481 return s;
3482}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003483
3484/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003487 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003490 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003491int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492
Lev Walkin27fd0b62007-08-27 23:57:45 +00003493/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3495#define FOO(x) 'x'
3496int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3497
Lev Walkinf15320b2004-06-03 03:38:44 +00003498int test (int i, double x);
3499struct s1 {int (*f) (int a);};
3500struct s2 {int (*f) (double a);};
3501int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3502int argc;
3503char **argv;
3504int
3505main ()
3506{
3507return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3508 ;
3509 return 0;
3510}
3511_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003512for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003514do
3515 CC="$ac_save_CC $ac_arg"
3516 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003517if { (ac_try="$ac_compile"
3518case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521esac
3522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00003524 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00003525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08003529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003533 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003534else
3535 echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
Lev Walkin27fd0b62007-08-27 23:57:45 +00003538
Lev Walkinf15320b2004-06-03 03:38:44 +00003539fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003540
3541rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003543done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003544rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003545CC=$ac_save_CC
3546
3547fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003548# AC_CACHE_VAL
3549case "x$ac_cv_prog_cc_c89" in
3550 x)
3551 { echo "$as_me:$LINENO: result: none needed" >&5
3552echo "${ECHO_T}none needed" >&6; } ;;
3553 xno)
3554 { echo "$as_me:$LINENO: result: unsupported" >&5
3555echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003556 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003557 CC="$CC $ac_cv_prog_cc_c89"
3558 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3559echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003560esac
3561
Lev Walkinf15320b2004-06-03 03:38:44 +00003562
Lev Walkinf15320b2004-06-03 03:38:44 +00003563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569depcc="$CC" am_compiler_list=
3570
Lev Walkin27fd0b62007-08-27 23:57:45 +00003571{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3572echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003573if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3577 # We make a subdir and do the tests there. Otherwise we can end up
3578 # making bogus files that we don't know about and never remove. For
3579 # instance it was reported that on HP-UX the gcc test will end up
3580 # making a dummy file named `D' -- because `-MD' means `put the output
3581 # in D'.
3582 mkdir conftest.dir
3583 # Copy depcomp to subdir because otherwise we won't find it if we're
3584 # using a relative directory.
3585 cp "$am_depcomp" conftest.dir
3586 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003587 # We will build objects and dependencies in a subdirectory because
3588 # it helps to detect inapplicable dependency modes. For instance
3589 # both Tru64's cc and ICC support -MD to output dependencies as a
3590 # side effect of compilation, but ICC will put the dependencies in
3591 # the current directory while Tru64 will put them in the object
3592 # directory.
3593 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003594
3595 am_cv_CC_dependencies_compiler_type=none
3596 if test "$am_compiler_list" = ""; then
3597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3598 fi
3599 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003600 # Setup a source with many dependencies, because some compilers
3601 # like to wrap large dependency lists on column 80 (with \), and
3602 # we should not choose a depcomp mode which is confused by this.
3603 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003604 # We need to recreate these files for each test, as the compiler may
3605 # overwrite some of them when testing with obscure command lines.
3606 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003607 : > sub/conftest.c
3608 for i in 1 2 3 4 5 6; do
3609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3611 # Solaris 8's {/usr,}/bin/sh.
3612 touch sub/conftst$i.h
3613 done
3614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003615
3616 case $depmode in
3617 nosideeffect)
3618 # after this tag, mechanisms are not by side-effect, so they'll
3619 # only be used when explicitly requested
3620 if test "x$enable_dependency_tracking" = xyes; then
3621 continue
3622 else
3623 break
3624 fi
3625 ;;
3626 none) break ;;
3627 esac
3628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629 # mode. It turns out that the SunPro C++ compiler does not properly
3630 # handle `-M -o', and we need to detect this.
3631 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003632 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3635 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -08003636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3638 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003640 # icc doesn't choke on unknown options, it will just issue warnings
3641 # or remarks (even with -Werror). So we grep stderr for any message
3642 # that says an option was ignored or not supported.
3643 # When given -MP, icc 7.0 and 7.1 complain thusly:
3644 # icc: Command line warning: ignoring option '-M'; no argument required
3645 # The diagnosis changed in icc 8.0:
3646 # icc: Command line remark: option '-MP' not supported
3647 if (grep 'ignoring option' conftest.err ||
3648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3649 am_cv_CC_dependencies_compiler_type=$depmode
3650 break
3651 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003652 fi
3653 done
3654
3655 cd ..
3656 rm -rf conftest.dir
3657else
3658 am_cv_CC_dependencies_compiler_type=none
3659fi
3660
3661fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003662{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3663echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003664CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3665
Lev Walkin4c776e52010-11-08 02:07:31 -08003666 if
Lev Walkin8e8b5482004-06-17 23:42:48 +00003667 test "x$enable_dependency_tracking" != xno \
3668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3669 am__fastdepCC_TRUE=
3670 am__fastdepCC_FALSE='#'
3671else
3672 am__fastdepCC_TRUE='#'
3673 am__fastdepCC_FALSE=
3674fi
3675
3676
Lev Walkin27fd0b62007-08-27 23:57:45 +00003677{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3678echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07003679if test "${ac_cv_path_SED+set}" = set; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3683 for ac_i in 1 2 3 4 5 6 7; do
3684 ac_script="$ac_script$as_nl$ac_script"
3685 done
3686 echo "$ac_script" | sed 99q >conftest.sed
3687 $as_unset ac_script || ac_script=
3688 # Extract the first word of "sed gsed" to use in msg output
3689if test -z "$SED"; then
3690set dummy sed gsed; ac_prog_name=$2
3691if test "${ac_cv_path_SED+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
3694 ac_path_SED_found=false
3695# Loop through the user's path and test for each of PROGNAME-LIST
Lev Walkin8e8b5482004-06-17 23:42:48 +00003696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003701 for ac_prog in sed gsed; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003704 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
Lev Walkin4da95cf2010-10-16 02:46:32 -07003705 # Check for GNU ac_path_SED and select it if it is found.
3706 # Check for GNU $ac_path_SED
3707case `"$ac_path_SED" --version 2>&1` in
3708*GNU*)
3709 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3710*)
3711 ac_count=0
3712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3713 while :
3714 do
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
3718 echo '' >> "conftest.nl"
3719 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3721 ac_count=`expr $ac_count + 1`
3722 if test $ac_count -gt ${ac_path_SED_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_SED="$ac_path_SED"
3725 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003726 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3729 done
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731esac
3732
3733
3734 $ac_path_SED_found && break 3
Lev Walkin8e8b5482004-06-17 23:42:48 +00003735 done
3736done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003737
Lev Walkin4da95cf2010-10-16 02:46:32 -07003738done
3739IFS=$as_save_IFS
3740
3741
Lev Walkin8e8b5482004-06-17 23:42:48 +00003742fi
3743
Lev Walkin4da95cf2010-10-16 02:46:32 -07003744SED="$ac_cv_path_SED"
3745if test -z "$SED"; then
3746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3747echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3748 { (exit 1); exit 1; }; }
3749fi
3750
3751else
3752 ac_cv_path_SED=$SED
3753fi
3754
3755fi
3756{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3757echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3758 SED="$ac_cv_path_SED"
3759 rm -f conftest.sed
3760
3761test -z "$SED" && SED=sed
3762Xsed="$SED -e 1s/^X//"
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
Lev Walkin8e8b5482004-06-17 23:42:48 +00003773
Lev Walkin27fd0b62007-08-27 23:57:45 +00003774{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3775echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3776if test "${ac_cv_path_GREP+set}" = set; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003779 # Extract the first word of "grep ggrep" to use in msg output
3780if test -z "$GREP"; then
3781set dummy grep ggrep; ac_prog_name=$2
3782if test "${ac_cv_path_GREP+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 ac_path_GREP_found=false
3786# Loop through the user's path and test for each of PROGNAME-LIST
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_prog in grep ggrep; do
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003795 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00003796 # Check for GNU ac_path_GREP and select it if it is found.
3797 # Check for GNU $ac_path_GREP
3798case `"$ac_path_GREP" --version 2>&1` in
3799*GNU*)
3800 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3801*)
3802 ac_count=0
3803 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 while :
3805 do
3806 cat "conftest.in" "conftest.in" >"conftest.tmp"
3807 mv "conftest.tmp" "conftest.in"
3808 cp "conftest.in" "conftest.nl"
3809 echo 'GREP' >> "conftest.nl"
3810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812 ac_count=`expr $ac_count + 1`
3813 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3814 # Best one so far, save it but keep looking for a better one
3815 ac_cv_path_GREP="$ac_path_GREP"
3816 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003817 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003818 # 10*(2^10) chars as input seems more than enough
3819 test $ac_count -gt 10 && break
3820 done
3821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822esac
3823
3824
3825 $ac_path_GREP_found && break 3
3826 done
3827done
3828
3829done
3830IFS=$as_save_IFS
3831
3832
Lev Walkin8e8b5482004-06-17 23:42:48 +00003833fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003834
3835GREP="$ac_cv_path_GREP"
3836if test -z "$GREP"; then
3837 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3838echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3839 { (exit 1); exit 1; }; }
3840fi
3841
3842else
3843 ac_cv_path_GREP=$GREP
3844fi
3845
3846
3847fi
3848{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3849echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3850 GREP="$ac_cv_path_GREP"
3851
3852
3853{ echo "$as_me:$LINENO: checking for egrep" >&5
3854echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3855if test "${ac_cv_path_EGREP+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3859 then ac_cv_path_EGREP="$GREP -E"
3860 else
3861 # Extract the first word of "egrep" to use in msg output
3862if test -z "$EGREP"; then
3863set dummy egrep; ac_prog_name=$2
3864if test "${ac_cv_path_EGREP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866else
3867 ac_path_EGREP_found=false
3868# Loop through the user's path and test for each of PROGNAME-LIST
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_prog in egrep; do
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003877 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Lev Walkin27fd0b62007-08-27 23:57:45 +00003878 # Check for GNU ac_path_EGREP and select it if it is found.
3879 # Check for GNU $ac_path_EGREP
3880case `"$ac_path_EGREP" --version 2>&1` in
3881*GNU*)
3882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3883*)
3884 ac_count=0
3885 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3886 while :
3887 do
3888 cat "conftest.in" "conftest.in" >"conftest.tmp"
3889 mv "conftest.tmp" "conftest.in"
3890 cp "conftest.in" "conftest.nl"
3891 echo 'EGREP' >> "conftest.nl"
3892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894 ac_count=`expr $ac_count + 1`
3895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3896 # Best one so far, save it but keep looking for a better one
3897 ac_cv_path_EGREP="$ac_path_EGREP"
3898 ac_path_EGREP_max=$ac_count
3899 fi
3900 # 10*(2^10) chars as input seems more than enough
3901 test $ac_count -gt 10 && break
3902 done
3903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904esac
3905
3906
3907 $ac_path_EGREP_found && break 3
3908 done
3909done
3910
3911done
3912IFS=$as_save_IFS
3913
3914
3915fi
3916
3917EGREP="$ac_cv_path_EGREP"
3918if test -z "$EGREP"; then
3919 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3920echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3921 { (exit 1); exit 1; }; }
3922fi
3923
3924else
3925 ac_cv_path_EGREP=$EGREP
3926fi
3927
3928
3929 fi
3930fi
3931{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3932echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3933 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00003934
3935
Lev Walkin4da95cf2010-10-16 02:46:32 -07003936{ echo "$as_me:$LINENO: checking for fgrep" >&5
3937echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3938if test "${ac_cv_path_FGREP+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3942 then ac_cv_path_FGREP="$GREP -F"
3943 else
3944 # Extract the first word of "fgrep" to use in msg output
3945if test -z "$FGREP"; then
3946set dummy fgrep; ac_prog_name=$2
3947if test "${ac_cv_path_FGREP+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
3950 ac_path_FGREP_found=false
3951# Loop through the user's path and test for each of PROGNAME-LIST
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_prog in fgrep; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkin4c776e52010-11-08 02:07:31 -08003960 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
Lev Walkin4da95cf2010-10-16 02:46:32 -07003961 # Check for GNU ac_path_FGREP and select it if it is found.
3962 # Check for GNU $ac_path_FGREP
3963case `"$ac_path_FGREP" --version 2>&1` in
3964*GNU*)
3965 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3966*)
3967 ac_count=0
3968 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3969 while :
3970 do
3971 cat "conftest.in" "conftest.in" >"conftest.tmp"
3972 mv "conftest.tmp" "conftest.in"
3973 cp "conftest.in" "conftest.nl"
3974 echo 'FGREP' >> "conftest.nl"
3975 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3977 ac_count=`expr $ac_count + 1`
3978 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3979 # Best one so far, save it but keep looking for a better one
3980 ac_cv_path_FGREP="$ac_path_FGREP"
3981 ac_path_FGREP_max=$ac_count
3982 fi
3983 # 10*(2^10) chars as input seems more than enough
3984 test $ac_count -gt 10 && break
3985 done
3986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3987esac
3988
3989
3990 $ac_path_FGREP_found && break 3
3991 done
3992done
3993
3994done
3995IFS=$as_save_IFS
3996
3997
3998fi
3999
4000FGREP="$ac_cv_path_FGREP"
4001if test -z "$FGREP"; then
4002 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4003echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4004 { (exit 1); exit 1; }; }
4005fi
4006
4007else
4008 ac_cv_path_FGREP=$FGREP
4009fi
4010
4011
4012 fi
4013fi
4014{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4015echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4016 FGREP="$ac_cv_path_FGREP"
4017
4018
4019test -z "$GREP" && GREP=grep
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
Lev Walkinf15320b2004-06-03 03:38:44 +00004038
Lev Walkin27fd0b62007-08-27 23:57:45 +00004039# Check whether --with-gnu-ld was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00004040if test "${with_gnu_ld+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004041 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004042else
4043 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004044fi
4045
Lev Walkinf15320b2004-06-03 03:38:44 +00004046ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004047if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004048 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004049 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4050echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004051 case $host in
4052 *-*-mingw*)
4053 # gcc leaves a trailing carriage return which upsets mingw
4054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4055 *)
4056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4057 esac
4058 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004059 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004060 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004061 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004062 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07004063 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4064 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4065 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004066 done
4067 test -z "$LD" && LD="$ac_prog"
4068 ;;
4069 "")
4070 # If it fails, then pretend we aren't using GCC.
4071 ac_prog=ld
4072 ;;
4073 *)
4074 # If it is relative, then search for the first ld in PATH.
4075 with_gnu_ld=unknown
4076 ;;
4077 esac
4078elif test "$with_gnu_ld" = yes; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004079 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4080echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004081else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004082 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4083echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004084fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00004085if test "${lt_cv_path_LD+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004090 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004091 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004092 test -z "$ac_dir" && ac_dir=.
4093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004094 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004095 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004096 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004097 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004098 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4099 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004100 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004101 ;;
4102 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004103 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004104 ;;
4105 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004106 fi
4107 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004108 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004109else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004110 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004111fi
4112fi
4113
Lev Walkin8e8b5482004-06-17 23:42:48 +00004114LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004115if test -n "$LD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004116 { echo "$as_me:$LINENO: result: $LD" >&5
4117echo "${ECHO_T}$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004118else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004119 { echo "$as_me:$LINENO: result: no" >&5
4120echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004121fi
4122test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4123echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4124 { (exit 1); exit 1; }; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004125{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4126echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004127if test "${lt_cv_prog_gnu_ld+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004131case `$LD -v 2>&1 </dev/null` in
4132*GNU* | *'with BFD'*)
4133 lt_cv_prog_gnu_ld=yes
4134 ;;
4135*)
4136 lt_cv_prog_gnu_ld=no
4137 ;;
4138esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004139fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004140{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4141echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004142with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004143
4144
Lev Walkin8e8b5482004-06-17 23:42:48 +00004145
Lev Walkin4da95cf2010-10-16 02:46:32 -07004146
4147
4148
4149
4150
4151
4152{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4153echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004154if test "${lt_cv_path_NM+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156else
4157 if test -n "$NM"; then
4158 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004159 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004160else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004161 lt_nm_to_check="${ac_tool_prefix}nm"
4162 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4163 lt_nm_to_check="$lt_nm_to_check nm"
4164 fi
4165 for lt_tmp_nm in $lt_nm_to_check; do
4166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4167 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4168 IFS="$lt_save_ifs"
4169 test -z "$ac_dir" && ac_dir=.
4170 tmp_nm="$ac_dir/$lt_tmp_nm"
4171 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4172 # Check to see if the nm accepts a BSD-compat flag.
4173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4174 # nm: unknown option "B" ignored
4175 # Tru64's nm complains that /dev/null is an invalid object file
4176 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4177 */dev/null* | *'Invalid file or object type'*)
4178 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004179 break
4180 ;;
4181 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4183 */dev/null*)
4184 lt_cv_path_NM="$tmp_nm -p"
4185 break
4186 ;;
4187 *)
4188 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4189 continue # so that we can try to find one that supports BSD flags
4190 ;;
4191 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004192 ;;
4193 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004194 fi
4195 done
4196 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004197 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004198 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004199fi
4200fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004201{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4202echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004203if test "$lt_cv_path_NM" != "no"; then
4204 NM="$lt_cv_path_NM"
4205else
4206 # Didn't find any BSD compatible name lister, look for dumpbin.
Lev Walkin4c776e52010-11-08 02:07:31 -08004207 if test -n "$ac_tool_prefix"; then
4208 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004209 do
4210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 if test -n "$DUMPBIN"; then
4218 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004226 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 -07004227 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4230 fi
4231done
4232done
4233IFS=$as_save_IFS
4234
4235fi
4236fi
4237DUMPBIN=$ac_cv_prog_DUMPBIN
4238if test -n "$DUMPBIN"; then
4239 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4240echo "${ECHO_T}$DUMPBIN" >&6; }
4241else
4242 { echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6; }
4244fi
4245
4246
4247 test -n "$DUMPBIN" && break
4248 done
4249fi
4250if test -z "$DUMPBIN"; then
4251 ac_ct_DUMPBIN=$DUMPBIN
Lev Walkin4c776e52010-11-08 02:07:31 -08004252 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004253do
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255set dummy $ac_prog; ac_word=$2
4256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4258if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261 if test -n "$ac_ct_DUMPBIN"; then
4262 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4263else
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004270 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 -07004271 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275done
4276done
4277IFS=$as_save_IFS
4278
4279fi
4280fi
4281ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4282if test -n "$ac_ct_DUMPBIN"; then
4283 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4284echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4285else
4286 { echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6; }
4288fi
4289
4290
4291 test -n "$ac_ct_DUMPBIN" && break
4292done
4293
4294 if test "x$ac_ct_DUMPBIN" = x; then
4295 DUMPBIN=":"
4296 else
4297 case $cross_compiling:$ac_tool_warned in
4298yes:)
4299{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4300whose name does not start with the host triplet. If you think this
4301configuration is useful to you, please write to autoconf@gnu.org." >&5
4302echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4303whose name does not start with the host triplet. If you think this
4304configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4305ac_tool_warned=yes ;;
4306esac
4307 DUMPBIN=$ac_ct_DUMPBIN
4308 fi
4309fi
4310
Lev Walkin4da95cf2010-10-16 02:46:32 -07004311
4312 if test "$DUMPBIN" != ":"; then
4313 NM="$DUMPBIN"
4314 fi
4315fi
4316test -z "$NM" && NM=nm
4317
4318
4319
4320
4321
4322
4323{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4324echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4325if test "${lt_cv_nm_interface+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327else
4328 lt_cv_nm_interface="BSD nm"
4329 echo "int some_variable = 0;" > conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08004330 (eval echo "\"\$as_me:4330: $ac_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004331 (eval "$ac_compile" 2>conftest.err)
4332 cat conftest.err >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08004333 (eval echo "\"\$as_me:4333: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004334 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4335 cat conftest.err >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08004336 (eval echo "\"\$as_me:4336: output\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004337 cat conftest.out >&5
4338 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4339 lt_cv_nm_interface="MS dumpbin"
4340 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08004341 rm -r -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07004342fi
4343{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4344echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004345
Lev Walkin27fd0b62007-08-27 23:57:45 +00004346{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4347echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004348LN_S=$as_ln_s
4349if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004350 { echo "$as_me:$LINENO: result: yes" >&5
4351echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004352else
Lev Walkin27fd0b62007-08-27 23:57:45 +00004353 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4354echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004355fi
4356
Lev Walkin4da95cf2010-10-16 02:46:32 -07004357# find the maximum length of command line arguments
4358{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4359echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4360if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362else
4363 i=0
4364 teststring="ABCD"
4365
4366 case $build_os in
4367 msdosdjgpp*)
4368 # On DJGPP, this test can blow up pretty badly due to problems in libc
4369 # (any single argument exceeding 2000 bytes causes a buffer overrun
4370 # during glob expansion). Even if it were fixed, the result of this
4371 # check would be larger than it should be.
4372 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4373 ;;
4374
4375 gnu*)
4376 # Under GNU Hurd, this test is not required because there is
4377 # no limit to the length of command line arguments.
4378 # Libtool will interpret -1 as no limit whatsoever
4379 lt_cv_sys_max_cmd_len=-1;
4380 ;;
4381
Lev Walkin4c776e52010-11-08 02:07:31 -08004382 cygwin* | mingw*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004383 # On Win9x/ME, this test blows up -- it succeeds, but takes
4384 # about 5 minutes as the teststring grows exponentially.
4385 # Worse, since 9x/ME are not pre-emptively multitasking,
4386 # you end up with a "frozen" computer, even though with patience
4387 # the test eventually succeeds (with a max line length of 256k).
4388 # Instead, let's just punt: use the minimum linelength reported by
4389 # all of the supported platforms: 8192 (on NT/2K/XP).
4390 lt_cv_sys_max_cmd_len=8192;
4391 ;;
4392
Lev Walkin4da95cf2010-10-16 02:46:32 -07004393 amigaos*)
4394 # On AmigaOS with pdksh, this test takes hours, literally.
4395 # So we just punt and use a minimum line length of 8192.
4396 lt_cv_sys_max_cmd_len=8192;
4397 ;;
4398
4399 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4400 # This has been around since 386BSD, at least. Likely further.
4401 if test -x /sbin/sysctl; then
4402 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4403 elif test -x /usr/sbin/sysctl; then
4404 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4405 else
4406 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4407 fi
4408 # And add a safety zone
4409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4411 ;;
4412
4413 interix*)
4414 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4415 lt_cv_sys_max_cmd_len=196608
4416 ;;
4417
4418 osf*)
4419 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4420 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4421 # nice to cause kernel panics so lets avoid the loop below.
4422 # First set a reasonable default.
4423 lt_cv_sys_max_cmd_len=16384
4424 #
4425 if test -x /sbin/sysconfig; then
4426 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4427 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4428 esac
4429 fi
4430 ;;
4431 sco3.2v5*)
4432 lt_cv_sys_max_cmd_len=102400
4433 ;;
4434 sysv5* | sco5v6* | sysv4.2uw2*)
4435 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4436 if test -n "$kargmax"; then
4437 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4438 else
4439 lt_cv_sys_max_cmd_len=32768
4440 fi
4441 ;;
4442 *)
4443 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4444 if test -n "$lt_cv_sys_max_cmd_len"; then
4445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4447 else
4448 # Make teststring a little bigger before we do anything with it.
4449 # a 1K string should be a reasonable start.
4450 for i in 1 2 3 4 5 6 7 8 ; do
4451 teststring=$teststring$teststring
4452 done
4453 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4454 # If test is not a shell built-in, we'll probably end up computing a
4455 # maximum length that is only half of the actual maximum length, but
4456 # we can't tell.
Lev Walkin4c776e52010-11-08 02:07:31 -08004457 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4458 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
Lev Walkin4da95cf2010-10-16 02:46:32 -07004459 test $i != 17 # 1/2 MB should be enough
4460 do
4461 i=`expr $i + 1`
4462 teststring=$teststring$teststring
4463 done
4464 # Only check the string length outside the loop.
4465 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4466 teststring=
4467 # Add a significant safety factor because C++ compilers can tack on
4468 # massive amounts of additional arguments before passing them to the
4469 # linker. It appears as though 1/2 is a usable value.
4470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4471 fi
4472 ;;
4473 esac
4474
4475fi
4476
4477if test -n $lt_cv_sys_max_cmd_len ; then
4478 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4479echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4480else
4481 { echo "$as_me:$LINENO: result: none" >&5
4482echo "${ECHO_T}none" >&6; }
4483fi
4484max_cmd_len=$lt_cv_sys_max_cmd_len
4485
4486
4487
4488
4489
4490
4491: ${CP="cp -f"}
4492: ${MV="mv -f"}
4493: ${RM="rm -f"}
4494
4495{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4496echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4497# Try some XSI features
4498xsi_shell=no
4499( _lt_dummy="a/b/c"
Lev Walkin4c776e52010-11-08 02:07:31 -08004500 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4501 = c,a/b,, \
Lev Walkin4da95cf2010-10-16 02:46:32 -07004502 && eval 'test $(( 1 + 1 )) -eq 2 \
4503 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4504 && xsi_shell=yes
4505{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4506echo "${ECHO_T}$xsi_shell" >&6; }
4507
4508
4509{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4510echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4511lt_shell_append=no
4512( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4513 >/dev/null 2>&1 \
4514 && lt_shell_append=yes
4515{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4516echo "${ECHO_T}$lt_shell_append" >&6; }
4517
4518
4519if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4520 lt_unset=unset
4521else
4522 lt_unset=false
4523fi
4524
4525
4526
4527
4528
4529# test EBCDIC or ASCII
4530case `echo X|tr X '\101'` in
4531 A) # ASCII based system
4532 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4533 lt_SP2NL='tr \040 \012'
4534 lt_NL2SP='tr \015\012 \040\040'
4535 ;;
4536 *) # EBCDIC based system
4537 lt_SP2NL='tr \100 \n'
4538 lt_NL2SP='tr \r\n \100\100'
4539 ;;
4540esac
4541
4542
4543
4544
4545
4546
4547
4548
4549
Lev Walkin4da95cf2010-10-16 02:46:32 -07004550{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4551echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4552if test "${lt_cv_ld_reload_flag+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555 lt_cv_ld_reload_flag='-r'
4556fi
4557{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4558echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4559reload_flag=$lt_cv_ld_reload_flag
4560case $reload_flag in
4561"" | " "*) ;;
4562*) reload_flag=" $reload_flag" ;;
4563esac
4564reload_cmds='$LD$reload_flag -o $output$reload_objs'
4565case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004566 darwin*)
4567 if test "$GCC" = yes; then
4568 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4569 else
4570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4571 fi
4572 ;;
4573esac
4574
4575
4576
4577
4578
4579
4580
4581
4582
Lev Walkin4da95cf2010-10-16 02:46:32 -07004583
4584{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4585echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004586if test "${lt_cv_deplibs_check_method+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588else
4589 lt_cv_file_magic_cmd='$MAGIC_CMD'
4590lt_cv_file_magic_test_file=
4591lt_cv_deplibs_check_method='unknown'
4592# Need to set the preceding variable on all platforms that support
4593# interlibrary dependencies.
4594# 'none' -- dependencies not supported.
4595# `unknown' -- same as none, but documents that we really don't know.
4596# 'pass_all' -- all dependencies passed with no checks.
4597# 'test_compile' -- check by making test program.
4598# 'file_magic [[regex]]' -- check by looking for files in library path
4599# which responds to the $file_magic_cmd with a given extended regex.
4600# If you have `file' or equivalent on your system and you're not sure
4601# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00004602
Lev Walkin8e8b5482004-06-17 23:42:48 +00004603case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004604aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004605 lt_cv_deplibs_check_method=pass_all
4606 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004607
Lev Walkin8e8b5482004-06-17 23:42:48 +00004608beos*)
4609 lt_cv_deplibs_check_method=pass_all
4610 ;;
4611
Lev Walkinfbf1d282007-12-03 14:58:39 +00004612bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4614 lt_cv_file_magic_cmd='/usr/bin/file -L'
4615 lt_cv_file_magic_test_file=/shlib/libc.so
4616 ;;
4617
4618cygwin*)
4619 # func_win32_libid is a shell function defined in ltmain.sh
4620 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4621 lt_cv_file_magic_cmd='func_win32_libid'
4622 ;;
4623
4624mingw* | pw32*)
4625 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07004626 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4627 # unless we find 'file', for example because we are cross-compiling.
Lev Walkin4c776e52010-11-08 02:07:31 -08004628 if ( file / ) >/dev/null 2>&1; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4630 lt_cv_file_magic_cmd='func_win32_libid'
4631 else
Lev Walkin4c776e52010-11-08 02:07:31 -08004632 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
Lev Walkin4da95cf2010-10-16 02:46:32 -07004633 lt_cv_file_magic_cmd='$OBJDUMP -f'
4634 fi
4635 ;;
4636
Lev Walkin8e8b5482004-06-17 23:42:48 +00004637darwin* | rhapsody*)
4638 lt_cv_deplibs_check_method=pass_all
4639 ;;
4640
Lev Walkin4da95cf2010-10-16 02:46:32 -07004641freebsd* | dragonfly*)
4642 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004643 case $host_cpu in
4644 i*86 )
4645 # Not sure whether the presence of OpenBSD here was a mistake.
4646 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00004647 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 +00004648 lt_cv_file_magic_cmd=/usr/bin/file
4649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4650 ;;
4651 esac
4652 else
4653 lt_cv_deplibs_check_method=pass_all
4654 fi
4655 ;;
4656
4657gnu*)
4658 lt_cv_deplibs_check_method=pass_all
4659 ;;
4660
4661hpux10.20* | hpux11*)
4662 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00004663 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00004664 ia64*)
4665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4666 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4667 ;;
4668 hppa*64*)
Lev Walkin4c776e52010-11-08 02:07:31 -08004669 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 +00004670 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4671 ;;
4672 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08004673 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 +00004674 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4675 ;;
4676 esac
4677 ;;
4678
Lev Walkin4da95cf2010-10-16 02:46:32 -07004679interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004680 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4682 ;;
4683
Lev Walkin8e8b5482004-06-17 23:42:48 +00004684irix5* | irix6* | nonstopux*)
4685 case $LD in
4686 *-32|*"-32 ") libmagic=32-bit;;
4687 *-n32|*"-n32 ") libmagic=N32;;
4688 *-64|*"-64 ") libmagic=64-bit;;
4689 *) libmagic=never-match;;
4690 esac
4691 lt_cv_deplibs_check_method=pass_all
4692 ;;
4693
4694# This must be Linux ELF.
Lev Walkin4c776e52010-11-08 02:07:31 -08004695linux* | k*bsd*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004696 lt_cv_deplibs_check_method=pass_all
4697 ;;
4698
4699netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004700 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4702 else
4703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4704 fi
4705 ;;
4706
4707newos6*)
4708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4709 lt_cv_file_magic_cmd=/usr/bin/file
4710 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4711 ;;
4712
Lev Walkin4da95cf2010-10-16 02:46:32 -07004713*nto* | *qnx*)
4714 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00004715 ;;
4716
4717openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004718 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 +00004719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004720 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004722 fi
4723 ;;
4724
4725osf3* | osf4* | osf5*)
4726 lt_cv_deplibs_check_method=pass_all
4727 ;;
4728
Lev Walkin4da95cf2010-10-16 02:46:32 -07004729rdos*)
4730 lt_cv_deplibs_check_method=pass_all
4731 ;;
4732
Lev Walkin8e8b5482004-06-17 23:42:48 +00004733solaris*)
4734 lt_cv_deplibs_check_method=pass_all
4735 ;;
4736
Lev Walkin4da95cf2010-10-16 02:46:32 -07004737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4738 lt_cv_deplibs_check_method=pass_all
4739 ;;
4740
Lev Walkinfbf1d282007-12-03 14:58:39 +00004741sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004742 case $host_vendor in
4743 motorola)
4744 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]'
4745 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4746 ;;
4747 ncr)
4748 lt_cv_deplibs_check_method=pass_all
4749 ;;
4750 sequent)
4751 lt_cv_file_magic_cmd='/bin/file'
4752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4753 ;;
4754 sni)
4755 lt_cv_file_magic_cmd='/bin/file'
4756 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4757 lt_cv_file_magic_test_file=/lib/libc.so
4758 ;;
4759 siemens)
4760 lt_cv_deplibs_check_method=pass_all
4761 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00004762 pc)
4763 lt_cv_deplibs_check_method=pass_all
4764 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00004765 esac
4766 ;;
4767
Lev Walkin4da95cf2010-10-16 02:46:32 -07004768tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004769 lt_cv_deplibs_check_method=pass_all
4770 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004771esac
4772
Lev Walkin8e8b5482004-06-17 23:42:48 +00004773fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004774{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4775echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004776file_magic_cmd=$lt_cv_file_magic_cmd
4777deplibs_check_method=$lt_cv_deplibs_check_method
4778test -z "$deplibs_check_method" && deplibs_check_method=unknown
4779
4780
4781
4782
Lev Walkin4da95cf2010-10-16 02:46:32 -07004783
4784
4785
4786
4787
4788
4789
4790
Lev Walkin4da95cf2010-10-16 02:46:32 -07004791if test -n "$ac_tool_prefix"; then
Lev Walkin4c776e52010-11-08 02:07:31 -08004792 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4793set dummy ${ac_tool_prefix}ar; ac_word=$2
Lev Walkin4da95cf2010-10-16 02:46:32 -07004794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4796if test "${ac_cv_prog_AR+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798else
4799 if test -n "$AR"; then
4800 ac_cv_prog_AR="$AR" # Let the user override the test.
4801else
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_AR="${ac_tool_prefix}ar"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814done
4815IFS=$as_save_IFS
4816
4817fi
4818fi
4819AR=$ac_cv_prog_AR
4820if test -n "$AR"; then
4821 { echo "$as_me:$LINENO: result: $AR" >&5
4822echo "${ECHO_T}$AR" >&6; }
4823else
4824 { echo "$as_me:$LINENO: result: no" >&5
4825echo "${ECHO_T}no" >&6; }
4826fi
4827
4828
Lev Walkin4da95cf2010-10-16 02:46:32 -07004829fi
Lev Walkin4c776e52010-11-08 02:07:31 -08004830if test -z "$ac_cv_prog_AR"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004831 ac_ct_AR=$AR
Lev Walkin4c776e52010-11-08 02:07:31 -08004832 # Extract the first word of "ar", so it can be a program name with args.
4833set dummy ar; ac_word=$2
Lev Walkin4da95cf2010-10-16 02:46:32 -07004834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839 if test -n "$ac_ct_AR"; then
4840 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_ac_ct_AR="ar"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855IFS=$as_save_IFS
4856
4857fi
4858fi
4859ac_ct_AR=$ac_cv_prog_ac_ct_AR
4860if test -n "$ac_ct_AR"; then
4861 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4862echo "${ECHO_T}$ac_ct_AR" >&6; }
4863else
4864 { echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6; }
4866fi
4867
Lev Walkin4da95cf2010-10-16 02:46:32 -07004868 if test "x$ac_ct_AR" = x; then
4869 AR="false"
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872yes:)
4873{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4874whose name does not start with the host triplet. If you think this
4875configuration is useful to you, please write to autoconf@gnu.org." >&5
4876echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4877whose name does not start with the host triplet. If you think this
4878configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4879ac_tool_warned=yes ;;
4880esac
4881 AR=$ac_ct_AR
4882 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004883else
Lev Walkin4c776e52010-11-08 02:07:31 -08004884 AR="$ac_cv_prog_AR"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004885fi
4886
Lev Walkin4c776e52010-11-08 02:07:31 -08004887test -z "$AR" && AR=ar
4888test -z "$AR_FLAGS" && AR_FLAGS=cru
Lev Walkin4da95cf2010-10-16 02:46:32 -07004889
Lev Walkin4da95cf2010-10-16 02:46:32 -07004890
Lev Walkin4c776e52010-11-08 02:07:31 -08004891
4892
Lev Walkin4da95cf2010-10-16 02:46:32 -07004893
4894
4895
4896
4897
4898
4899
4900if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4902set dummy ${ac_tool_prefix}strip; ac_word=$2
4903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905if test "${ac_cv_prog_STRIP+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908 if test -n "$STRIP"; then
4909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004917 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 -07004918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922done
4923done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928STRIP=$ac_cv_prog_STRIP
4929if test -n "$STRIP"; then
4930 { echo "$as_me:$LINENO: result: $STRIP" >&5
4931echo "${ECHO_T}$STRIP" >&6; }
4932else
4933 { echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6; }
4935fi
4936
4937
4938fi
4939if test -z "$ac_cv_prog_STRIP"; then
4940 ac_ct_STRIP=$STRIP
4941 # Extract the first word of "strip", so it can be a program name with args.
4942set dummy strip; ac_word=$2
4943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 if test -n "$ac_ct_STRIP"; then
4949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08004957 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 -07004958 ac_cv_prog_ac_ct_STRIP="strip"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963done
4964IFS=$as_save_IFS
4965
4966fi
4967fi
4968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4969if test -n "$ac_ct_STRIP"; then
4970 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4971echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4972else
4973 { echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6; }
4975fi
4976
4977 if test "x$ac_ct_STRIP" = x; then
4978 STRIP=":"
4979 else
4980 case $cross_compiling:$ac_tool_warned in
4981yes:)
4982{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4983whose name does not start with the host triplet. If you think this
4984configuration is useful to you, please write to autoconf@gnu.org." >&5
4985echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4986whose name does not start with the host triplet. If you think this
4987configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4988ac_tool_warned=yes ;;
4989esac
4990 STRIP=$ac_ct_STRIP
4991 fi
4992else
4993 STRIP="$ac_cv_prog_STRIP"
4994fi
4995
4996test -z "$STRIP" && STRIP=:
4997
4998
4999
5000
5001
5002
5003if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008if test "${ac_cv_prog_RANLIB+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010else
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005020 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 -07005021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025done
5026done
5027IFS=$as_save_IFS
5028
5029fi
5030fi
5031RANLIB=$ac_cv_prog_RANLIB
5032if test -n "$RANLIB"; then
5033 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5034echo "${ECHO_T}$RANLIB" >&6; }
5035else
5036 { echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6; }
5038fi
5039
5040
5041fi
5042if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045set dummy ranlib; ac_word=$2
5046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050else
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5053else
5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005060 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 -07005061 ac_cv_prog_ac_ct_RANLIB="ranlib"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065done
5066done
5067IFS=$as_save_IFS
5068
5069fi
5070fi
5071ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072if test -n "$ac_ct_RANLIB"; then
5073 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5074echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5075else
5076 { echo "$as_me:$LINENO: result: no" >&5
5077echo "${ECHO_T}no" >&6; }
5078fi
5079
5080 if test "x$ac_ct_RANLIB" = x; then
5081 RANLIB=":"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084yes:)
5085{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5086whose name does not start with the host triplet. If you think this
5087configuration is useful to you, please write to autoconf@gnu.org." >&5
5088echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5089whose name does not start with the host triplet. If you think this
5090configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5091ac_tool_warned=yes ;;
5092esac
5093 RANLIB=$ac_ct_RANLIB
5094 fi
5095else
5096 RANLIB="$ac_cv_prog_RANLIB"
5097fi
5098
5099test -z "$RANLIB" && RANLIB=:
5100
5101
5102
5103
5104
5105
5106# Determine commands to create old-style static archives.
5107old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5108old_postinstall_cmds='chmod 644 $oldlib'
5109old_postuninstall_cmds=
5110
5111if test -n "$RANLIB"; then
5112 case $host_os in
5113 openbsd*)
5114 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5115 ;;
5116 *)
5117 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5118 ;;
5119 esac
5120 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5121fi
5122
Lev Walkin4da95cf2010-10-16 02:46:32 -07005123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
Lev Walkin8e8b5482004-06-17 23:42:48 +00005156# If no C compiler was specified, use CC.
5157LTCC=${LTCC-"$CC"}
5158
Lev Walkinfbf1d282007-12-03 14:58:39 +00005159# If no C compiler flags were specified, use CFLAGS.
5160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5161
Lev Walkin8e8b5482004-06-17 23:42:48 +00005162# Allow CC to be a program name with arguments.
5163compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005164
5165
Lev Walkin4da95cf2010-10-16 02:46:32 -07005166# Check for command to grab the raw symbol name followed by C symbol from nm.
5167{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5168echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5169if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172
5173# These are sane defaults that work on at least a few old systems.
5174# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5175
5176# Character class describing NM global symbol codes.
5177symcode='[BCDEGRST]'
5178
5179# Regexp to match symbols that can be accessed directly from C.
5180sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5181
5182# Define system-specific variables.
5183case $host_os in
5184aix*)
5185 symcode='[BCDT]'
5186 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08005187cygwin* | mingw* | pw32*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005188 symcode='[ABCDGISTW]'
5189 ;;
5190hpux*)
5191 if test "$host_cpu" = ia64; then
5192 symcode='[ABCDEGRST]'
5193 fi
5194 ;;
5195irix* | nonstopux*)
5196 symcode='[BCDEGRST]'
5197 ;;
5198osf*)
5199 symcode='[BCDEGQRST]'
5200 ;;
5201solaris*)
5202 symcode='[BDRT]'
5203 ;;
5204sco3.2v5*)
5205 symcode='[DT]'
5206 ;;
5207sysv4.2uw2*)
5208 symcode='[DT]'
5209 ;;
5210sysv5* | sco5v6* | unixware* | OpenUNIX*)
5211 symcode='[ABDT]'
5212 ;;
5213sysv4)
5214 symcode='[DFNSTU]'
5215 ;;
5216esac
5217
5218# If we're using GNU nm, then use its standard symbol codes.
5219case `$NM -V 2>&1` in
5220*GNU* | *'with BFD'*)
5221 symcode='[ABCDGIRSTW]' ;;
5222esac
5223
5224# Transform an extracted symbol line into a proper C declaration.
5225# Some systems (esp. on ia64) link data and code symbols differently,
5226# so use this general approach.
5227lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5228
5229# Transform an extracted symbol line into symbol name and symbol address
Lev Walkin4c776e52010-11-08 02:07:31 -08005230lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5231lt_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 -07005232
5233# Handle CRLF in mingw tool chain
5234opt_cr=
5235case $build_os in
5236mingw*)
5237 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5238 ;;
5239esac
5240
5241# Try without a prefix underscore, then with it.
5242for ac_symprfx in "" "_"; do
5243
5244 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5245 symxfrm="\\1 $ac_symprfx\\2 \\2"
5246
5247 # Write the raw and C identifiers.
5248 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5249 # Fake it for dumpbin and say T for any non-static function
5250 # and D for any global variable.
5251 # Also find C++ and __fastcall symbols from MSVC++,
5252 # which start with @ or ?.
5253 lt_cv_sys_global_symbol_pipe="$AWK '"\
5254" {last_section=section; section=\$ 3};"\
5255" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5256" \$ 0!~/External *\|/{next};"\
5257" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5258" {if(hide[section]) next};"\
5259" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5260" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5261" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5262" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5263" ' prfx=^$ac_symprfx"
5264 else
5265 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5266 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07005267
5268 # Check to see that the pipe works correctly.
5269 pipe_works=no
5270
Lev Walkin4c776e52010-11-08 02:07:31 -08005271 rm -r -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07005272 cat > conftest.$ac_ext <<_LT_EOF
5273#ifdef __cplusplus
5274extern "C" {
5275#endif
5276char nm_test_var;
5277void nm_test_func(void);
5278void nm_test_func(void){}
5279#ifdef __cplusplus
5280}
5281#endif
5282int main(){nm_test_var='a';nm_test_func();return(0);}
5283_LT_EOF
5284
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; then
5290 # Now try to grab the symbols.
5291 nlist=conftest.nm
Lev Walkin4c776e52010-11-08 02:07:31 -08005292 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5293 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && test -s "$nlist"; then
5297 # Try sorting and uniquifying the output.
5298 if sort "$nlist" | uniq > "$nlist"T; then
5299 mv -f "$nlist"T "$nlist"
5300 else
5301 rm -f "$nlist"T
5302 fi
5303
5304 # Make sure that we snagged all the symbols we need.
5305 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5306 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5307 cat <<_LT_EOF > conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07005308#ifdef __cplusplus
5309extern "C" {
5310#endif
5311
5312_LT_EOF
5313 # Now generate the symbol file.
5314 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5315
5316 cat <<_LT_EOF >> conftest.$ac_ext
5317
5318/* The mapping between symbol names and symbols. */
Lev Walkin4c776e52010-11-08 02:07:31 -08005319const struct {
Lev Walkin4da95cf2010-10-16 02:46:32 -07005320 const char *name;
5321 void *address;
5322}
5323lt__PROGRAM__LTX_preloaded_symbols[] =
5324{
5325 { "@PROGRAM@", (void *) 0 },
5326_LT_EOF
5327 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5328 cat <<\_LT_EOF >> conftest.$ac_ext
5329 {0, (void *) 0}
5330};
5331
5332/* This works around a problem in FreeBSD linker */
5333#ifdef FREEBSD_WORKAROUND
5334static const void *lt_preloaded_setup() {
5335 return lt__PROGRAM__LTX_preloaded_symbols;
5336}
5337#endif
5338
5339#ifdef __cplusplus
5340}
5341#endif
5342_LT_EOF
5343 # Now try linking the two files.
5344 mv conftest.$ac_objext conftstm.$ac_objext
Lev Walkin4c776e52010-11-08 02:07:31 -08005345 lt_save_LIBS="$LIBS"
5346 lt_save_CFLAGS="$CFLAGS"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005347 LIBS="conftstm.$ac_objext"
5348 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350 (eval $ac_link) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5354 pipe_works=yes
5355 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08005356 LIBS="$lt_save_LIBS"
5357 CFLAGS="$lt_save_CFLAGS"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005358 else
5359 echo "cannot find nm_test_func in $nlist" >&5
5360 fi
5361 else
5362 echo "cannot find nm_test_var in $nlist" >&5
5363 fi
5364 else
5365 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5366 fi
5367 else
5368 echo "$progname: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5370 fi
5371 rm -rf conftest* conftst*
5372
5373 # Do not use the global_symbol_pipe unless it works.
5374 if test "$pipe_works" = yes; then
5375 break
5376 else
5377 lt_cv_sys_global_symbol_pipe=
5378 fi
5379done
5380
5381fi
5382
5383if test -z "$lt_cv_sys_global_symbol_pipe"; then
5384 lt_cv_sys_global_symbol_to_cdecl=
5385fi
5386if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5387 { echo "$as_me:$LINENO: result: failed" >&5
5388echo "${ECHO_T}failed" >&6; }
5389else
5390 { echo "$as_me:$LINENO: result: ok" >&5
5391echo "${ECHO_T}ok" >&6; }
5392fi
5393
Lev Walkin4da95cf2010-10-16 02:46:32 -07005394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
Lev Walkin27fd0b62007-08-27 23:57:45 +00005416# Check whether --enable-libtool-lock was given.
Lev Walkinf15320b2004-06-03 03:38:44 +00005417if test "${enable_libtool_lock+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00005418 enableval=$enable_libtool_lock;
5419fi
Lev Walkinf15320b2004-06-03 03:38:44 +00005420
Lev Walkin8e8b5482004-06-17 23:42:48 +00005421test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00005422
5423# Some flags need to be propagated to the compiler or linker for good
5424# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005425case $host in
5426ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00005427 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00005428 echo 'int i;' > conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00005429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005434 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005435 *ELF-32*)
5436 HPUX_IA64_MODE="32"
5437 ;;
5438 *ELF-64*)
5439 HPUX_IA64_MODE="64"
5440 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005441 esac
5442 fi
5443 rm -rf conftest*
5444 ;;
5445*-*-irix6*)
5446 # Find out which ABI we are using.
Lev Walkin4c776e52010-11-08 02:07:31 -08005447 echo '#line 5447 "configure"' > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00005448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005453 if test "$lt_cv_prog_gnu_ld" = yes; then
5454 case `/usr/bin/file conftest.$ac_objext` in
5455 *32-bit*)
5456 LD="${LD-ld} -melf32bsmip"
5457 ;;
5458 *N32*)
5459 LD="${LD-ld} -melf32bmipn32"
5460 ;;
5461 *64-bit*)
5462 LD="${LD-ld} -melf64bmip"
5463 ;;
5464 esac
5465 else
5466 case `/usr/bin/file conftest.$ac_objext` in
5467 *32-bit*)
5468 LD="${LD-ld} -32"
5469 ;;
5470 *N32*)
5471 LD="${LD-ld} -n32"
5472 ;;
5473 *64-bit*)
5474 LD="${LD-ld} -64"
5475 ;;
5476 esac
5477 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00005478 fi
5479 rm -rf conftest*
5480 ;;
5481
Lev Walkin4da95cf2010-10-16 02:46:32 -07005482x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5483s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005484 # Find out which ABI we are using.
5485 echo 'int i;' > conftest.$ac_ext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00005491 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005492 *32-bit*)
5493 case $host in
5494 x86_64-*kfreebsd*-gnu)
5495 LD="${LD-ld} -m elf_i386_fbsd"
5496 ;;
5497 x86_64-*linux*)
5498 LD="${LD-ld} -m elf_i386"
5499 ;;
5500 ppc64-*linux*|powerpc64-*linux*)
5501 LD="${LD-ld} -m elf32ppclinux"
5502 ;;
5503 s390x-*linux*)
5504 LD="${LD-ld} -m elf_s390"
5505 ;;
5506 sparc64-*linux*)
5507 LD="${LD-ld} -m elf32_sparc"
5508 ;;
5509 esac
5510 ;;
5511 *64-bit*)
5512 case $host in
5513 x86_64-*kfreebsd*-gnu)
5514 LD="${LD-ld} -m elf_x86_64_fbsd"
5515 ;;
5516 x86_64-*linux*)
5517 LD="${LD-ld} -m elf_x86_64"
5518 ;;
5519 ppc*-*linux*|powerpc*-*linux*)
5520 LD="${LD-ld} -m elf64ppc"
5521 ;;
5522 s390*-*linux*|s390*-*tpf*)
5523 LD="${LD-ld} -m elf64_s390"
5524 ;;
5525 sparc*-*linux*)
5526 LD="${LD-ld} -m elf64_sparc"
5527 ;;
5528 esac
5529 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005530 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00005531 fi
5532 rm -rf conftest*
5533 ;;
5534
5535*-*-sco3.2v5*)
5536 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5537 SAVE_CFLAGS="$CFLAGS"
5538 CFLAGS="$CFLAGS -belf"
Lev Walkin27fd0b62007-08-27 23:57:45 +00005539 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5540echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00005541if test "${lt_cv_cc_needs_belf+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
Lev Walkin8e8b5482004-06-17 23:42:48 +00005544 ac_ext=c
5545ac_cpp='$CPP $CPPFLAGS'
5546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548ac_compiler_gnu=$ac_cv_c_compiler_gnu
5549
5550 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00005551/* confdefs.h. */
5552_ACEOF
5553cat confdefs.h >>conftest.$ac_ext
5554cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h. */
5556
5557int
5558main ()
5559{
5560
5561 ;
5562 return 0;
5563}
5564_ACEOF
5565rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00005566if { (ac_try="$ac_link"
5567case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570esac
5571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +00005573 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +00005574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00005577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08005578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest$ac_exeext &&
5582 $as_test_x conftest$ac_exeext; then
Lev Walkinf15320b2004-06-03 03:38:44 +00005583 lt_cv_cc_needs_belf=yes
5584else
5585 echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
Lev Walkin27fd0b62007-08-27 23:57:45 +00005588 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00005589fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005590
Lev Walkin4c776e52010-11-08 02:07:31 -08005591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00005592 conftest$ac_exeext conftest.$ac_ext
5593 ac_ext=c
5594ac_cpp='$CPP $CPPFLAGS'
5595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598
Lev Walkinf15320b2004-06-03 03:38:44 +00005599fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00005600{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5601echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00005602 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5603 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5604 CFLAGS="$SAVE_CFLAGS"
5605 fi
5606 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005607sparc*-*solaris*)
5608 # Find out which ABI we are using.
5609 echo 'int i;' > conftest.$ac_ext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; then
5615 case `/usr/bin/file conftest.o` in
5616 *64-bit*)
5617 case $lt_cv_prog_gnu_ld in
5618 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07005619 *)
5620 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5621 LD="${LD-ld} -64"
5622 fi
5623 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005624 esac
5625 ;;
5626 esac
5627 fi
5628 rm -rf conftest*
5629 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005630esac
5631
Lev Walkin8e8b5482004-06-17 23:42:48 +00005632need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00005633
Lev Walkin4da95cf2010-10-16 02:46:32 -07005634
5635 case $host_os in
5636 rhapsody* | darwin*)
5637 if test -n "$ac_tool_prefix"; then
5638 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5639set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5642if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645 if test -n "$DSYMUTIL"; then
5646 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5647else
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005654 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 -07005655 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659done
5660done
5661IFS=$as_save_IFS
5662
5663fi
5664fi
5665DSYMUTIL=$ac_cv_prog_DSYMUTIL
5666if test -n "$DSYMUTIL"; then
5667 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5668echo "${ECHO_T}$DSYMUTIL" >&6; }
5669else
5670 { echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6; }
5672fi
5673
5674
5675fi
5676if test -z "$ac_cv_prog_DSYMUTIL"; then
5677 ac_ct_DSYMUTIL=$DSYMUTIL
5678 # Extract the first word of "dsymutil", so it can be a program name with args.
5679set dummy dsymutil; ac_word=$2
5680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5682if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685 if test -n "$ac_ct_DSYMUTIL"; then
5686 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005694 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 -07005695 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5698 fi
5699done
5700done
5701IFS=$as_save_IFS
5702
5703fi
5704fi
5705ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5706if test -n "$ac_ct_DSYMUTIL"; then
5707 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5708echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5709else
5710 { echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6; }
5712fi
5713
5714 if test "x$ac_ct_DSYMUTIL" = x; then
5715 DSYMUTIL=":"
5716 else
5717 case $cross_compiling:$ac_tool_warned in
5718yes:)
5719{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5720whose name does not start with the host triplet. If you think this
5721configuration is useful to you, please write to autoconf@gnu.org." >&5
5722echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5723whose name does not start with the host triplet. If you think this
5724configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5725ac_tool_warned=yes ;;
5726esac
5727 DSYMUTIL=$ac_ct_DSYMUTIL
5728 fi
5729else
5730 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5731fi
5732
5733 if test -n "$ac_tool_prefix"; then
5734 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5735set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5738if test "${ac_cv_prog_NMEDIT+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741 if test -n "$NMEDIT"; then
5742 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005750 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 -07005751 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755done
5756done
5757IFS=$as_save_IFS
5758
5759fi
5760fi
5761NMEDIT=$ac_cv_prog_NMEDIT
5762if test -n "$NMEDIT"; then
5763 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5764echo "${ECHO_T}$NMEDIT" >&6; }
5765else
5766 { echo "$as_me:$LINENO: result: no" >&5
5767echo "${ECHO_T}no" >&6; }
5768fi
5769
5770
5771fi
5772if test -z "$ac_cv_prog_NMEDIT"; then
5773 ac_ct_NMEDIT=$NMEDIT
5774 # Extract the first word of "nmedit", so it can be a program name with args.
5775set dummy nmedit; ac_word=$2
5776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5778if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781 if test -n "$ac_ct_NMEDIT"; then
5782 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005790 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 -07005791 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795done
5796done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5802if test -n "$ac_ct_NMEDIT"; then
5803 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5804echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5805else
5806 { echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6; }
5808fi
5809
5810 if test "x$ac_ct_NMEDIT" = x; then
5811 NMEDIT=":"
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5816whose name does not start with the host triplet. If you think this
5817configuration is useful to you, please write to autoconf@gnu.org." >&5
5818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5819whose name does not start with the host triplet. If you think this
5820configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5821ac_tool_warned=yes ;;
5822esac
5823 NMEDIT=$ac_ct_NMEDIT
5824 fi
5825else
5826 NMEDIT="$ac_cv_prog_NMEDIT"
5827fi
5828
5829 if test -n "$ac_tool_prefix"; then
5830 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5831set dummy ${ac_tool_prefix}lipo; ac_word=$2
5832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834if test "${ac_cv_prog_LIPO+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 if test -n "$LIPO"; then
5838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005846 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 -07005847 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857LIPO=$ac_cv_prog_LIPO
5858if test -n "$LIPO"; then
5859 { echo "$as_me:$LINENO: result: $LIPO" >&5
5860echo "${ECHO_T}$LIPO" >&6; }
5861else
5862 { echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6; }
5864fi
5865
5866
5867fi
5868if test -z "$ac_cv_prog_LIPO"; then
5869 ac_ct_LIPO=$LIPO
5870 # Extract the first word of "lipo", so it can be a program name with args.
5871set dummy lipo; ac_word=$2
5872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5874if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 if test -n "$ac_ct_LIPO"; then
5878 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005886 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 -07005887 ac_cv_prog_ac_ct_LIPO="lipo"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891done
5892done
5893IFS=$as_save_IFS
5894
5895fi
5896fi
5897ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5898if test -n "$ac_ct_LIPO"; then
5899 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5900echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5901else
5902 { echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6; }
5904fi
5905
5906 if test "x$ac_ct_LIPO" = x; then
5907 LIPO=":"
5908 else
5909 case $cross_compiling:$ac_tool_warned in
5910yes:)
5911{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5912whose name does not start with the host triplet. If you think this
5913configuration is useful to you, please write to autoconf@gnu.org." >&5
5914echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5915whose name does not start with the host triplet. If you think this
5916configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5917ac_tool_warned=yes ;;
5918esac
5919 LIPO=$ac_ct_LIPO
5920 fi
5921else
5922 LIPO="$ac_cv_prog_LIPO"
5923fi
5924
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5927set dummy ${ac_tool_prefix}otool; ac_word=$2
5928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930if test "${ac_cv_prog_OTOOL+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933 if test -n "$OTOOL"; then
5934 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005942 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 -07005943 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947done
5948done
5949IFS=$as_save_IFS
5950
5951fi
5952fi
5953OTOOL=$ac_cv_prog_OTOOL
5954if test -n "$OTOOL"; then
5955 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5956echo "${ECHO_T}$OTOOL" >&6; }
5957else
5958 { echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6; }
5960fi
5961
5962
5963fi
5964if test -z "$ac_cv_prog_OTOOL"; then
5965 ac_ct_OTOOL=$OTOOL
5966 # Extract the first word of "otool", so it can be a program name with args.
5967set dummy otool; ac_word=$2
5968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973 if test -n "$ac_ct_OTOOL"; then
5974 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08005982 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 -07005983 ac_cv_prog_ac_ct_OTOOL="otool"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5994if test -n "$ac_ct_OTOOL"; then
5995 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5996echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5997else
5998 { echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6; }
6000fi
6001
6002 if test "x$ac_ct_OTOOL" = x; then
6003 OTOOL=":"
6004 else
6005 case $cross_compiling:$ac_tool_warned in
6006yes:)
6007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008whose name does not start with the host triplet. If you think this
6009configuration is useful to you, please write to autoconf@gnu.org." >&5
6010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011whose name does not start with the host triplet. If you think this
6012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013ac_tool_warned=yes ;;
6014esac
6015 OTOOL=$ac_ct_OTOOL
6016 fi
6017else
6018 OTOOL="$ac_cv_prog_OTOOL"
6019fi
6020
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6023set dummy ${ac_tool_prefix}otool64; ac_word=$2
6024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026if test "${ac_cv_prog_OTOOL64+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028else
6029 if test -n "$OTOOL64"; then
6030 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6031else
6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033for as_dir in $PATH
6034do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08006038 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 -07006039 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043done
6044done
6045IFS=$as_save_IFS
6046
6047fi
6048fi
6049OTOOL64=$ac_cv_prog_OTOOL64
6050if test -n "$OTOOL64"; then
6051 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6052echo "${ECHO_T}$OTOOL64" >&6; }
6053else
6054 { echo "$as_me:$LINENO: result: no" >&5
6055echo "${ECHO_T}no" >&6; }
6056fi
6057
6058
6059fi
6060if test -z "$ac_cv_prog_OTOOL64"; then
6061 ac_ct_OTOOL64=$OTOOL64
6062 # Extract the first word of "otool64", so it can be a program name with args.
6063set dummy otool64; ac_word=$2
6064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 if test -n "$ac_ct_OTOOL64"; then
6070 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -08006078 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 -07006079 ac_cv_prog_ac_ct_OTOOL64="otool64"
6080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083done
6084done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6090if test -n "$ac_ct_OTOOL64"; then
6091 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6092echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6093else
6094 { echo "$as_me:$LINENO: result: no" >&5
6095echo "${ECHO_T}no" >&6; }
6096fi
6097
6098 if test "x$ac_ct_OTOOL64" = x; then
6099 OTOOL64=":"
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102yes:)
6103{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6104whose name does not start with the host triplet. If you think this
6105configuration is useful to you, please write to autoconf@gnu.org." >&5
6106echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6107whose name does not start with the host triplet. If you think this
6108configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6109ac_tool_warned=yes ;;
6110esac
6111 OTOOL64=$ac_ct_OTOOL64
6112 fi
6113else
6114 OTOOL64="$ac_cv_prog_OTOOL64"
6115fi
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6144echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6145if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 lt_cv_apple_cc_single_mod=no
6149 if test -z "${LT_MULTI_MODULE}"; then
6150 # By default we will add the -single_module flag. You can override
6151 # by either setting the environment variable LT_MULTI_MODULE
6152 # non-empty at configure time, or by adding -multi_module to the
6153 # link flags.
6154 rm -rf libconftest.dylib*
6155 echo "int foo(void){return 1;}" > conftest.c
6156 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6157-dynamiclib -Wl,-single_module conftest.c" >&5
6158 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6159 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6160 _lt_result=$?
6161 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6162 lt_cv_apple_cc_single_mod=yes
6163 else
6164 cat conftest.err >&5
6165 fi
6166 rm -rf libconftest.dylib*
6167 rm -f conftest.*
6168 fi
6169fi
6170{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6171echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6172 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6173echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6174if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177 lt_cv_ld_exported_symbols_list=no
6178 save_LDFLAGS=$LDFLAGS
6179 echo "_main" > conftest.sym
6180 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6181 cat >conftest.$ac_ext <<_ACEOF
6182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
6186/* end confdefs.h. */
6187
6188int
6189main ()
6190{
6191
6192 ;
6193 return 0;
6194}
6195_ACEOF
6196rm -f conftest.$ac_objext conftest$ac_exeext
6197if { (ac_try="$ac_link"
6198case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6201esac
6202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_link") 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006209 (exit $ac_status); } && {
6210 test -z "$ac_c_werror_flag" ||
6211 test ! -s conftest.err
6212 } && test -s conftest$ac_exeext &&
6213 $as_test_x conftest$ac_exeext; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006214 lt_cv_ld_exported_symbols_list=yes
6215else
6216 echo "$as_me: failed program was:" >&5
6217sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 lt_cv_ld_exported_symbols_list=no
6220fi
6221
Lev Walkin4c776e52010-11-08 02:07:31 -08006222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07006223 conftest$ac_exeext conftest.$ac_ext
6224 LDFLAGS="$save_LDFLAGS"
6225
6226fi
6227{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6228echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006229 case $host_os in
6230 rhapsody* | darwin1.[012])
6231 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6232 darwin1.*)
6233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6234 darwin*) # darwin 5.x on
6235 # if running on 10.5 or later, the deployment target defaults
6236 # to the OS version, if on x86, and 10.4, the deployment
6237 # target defaults to 10.4. Don't you love it?
6238 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6239 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6240 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6241 10.[012]*)
6242 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6243 10.*)
6244 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6245 esac
6246 ;;
6247 esac
6248 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6249 _lt_dar_single_mod='$single_module'
6250 fi
6251 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6252 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6253 else
6254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6255 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08006256 if test "$DSYMUTIL" != ":"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006257 _lt_dsymutil='~$DSYMUTIL $lib || :'
6258 else
6259 _lt_dsymutil=
6260 fi
6261 ;;
6262 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006263
Lev Walkin8e8b5482004-06-17 23:42:48 +00006264ac_ext=c
6265ac_cpp='$CPP $CPPFLAGS'
6266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +00006269{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6270echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006271# On Suns, sometimes $CPP names a directory.
6272if test -n "$CPP" && test -d "$CPP"; then
6273 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00006274fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006275if test -z "$CPP"; then
6276 if test "${ac_cv_prog_CPP+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279 # Double quotes because CPP needs to be expanded
6280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6281 do
6282 ac_preproc_ok=false
6283for ac_c_preproc_warn_flag in '' yes
6284do
6285 # Use a header file that comes with gcc, so configuring glibc
6286 # with a fresh cross-compiler works.
6287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6288 # <limits.h> exists even on freestanding compilers.
6289 # On the NeXT, cc -E runs the code through the compiler's parser,
6290 # not just through cpp. "Syntax error" is here to catch this case.
6291 cat >conftest.$ac_ext <<_ACEOF
6292/* confdefs.h. */
6293_ACEOF
6294cat confdefs.h >>conftest.$ac_ext
6295cat >>conftest.$ac_ext <<_ACEOF
6296/* end confdefs.h. */
6297#ifdef __STDC__
6298# include <limits.h>
6299#else
6300# include <assert.h>
6301#endif
6302 Syntax error
6303_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006304if { (ac_try="$ac_cpp conftest.$ac_ext"
6305case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
6309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006316 (exit $ac_status); } >/dev/null && {
6317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006320 :
6321else
6322 echo "$as_me: failed program was:" >&5
6323sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 # Broken: fails on valid input.
6326continue
6327fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006328
Lev Walkin8e8b5482004-06-17 23:42:48 +00006329rm -f conftest.err conftest.$ac_ext
6330
Lev Walkin27fd0b62007-08-27 23:57:45 +00006331 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00006332 # can be detected and how.
6333 cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339#include <ac_nonexistent.h>
6340_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006341if { (ac_try="$ac_cpp conftest.$ac_ext"
6342case "(($ac_try" in
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6344 *) ac_try_echo=$ac_try;;
6345esac
6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006353 (exit $ac_status); } >/dev/null && {
6354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6355 test ! -s conftest.err
6356 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006357 # Broken: success on invalid input.
6358continue
6359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 # Passes both tests.
6364ac_preproc_ok=:
6365break
6366fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006367
Lev Walkin8e8b5482004-06-17 23:42:48 +00006368rm -f conftest.err conftest.$ac_ext
6369
6370done
6371# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6372rm -f conftest.err conftest.$ac_ext
6373if $ac_preproc_ok; then
6374 break
6375fi
6376
6377 done
6378 ac_cv_prog_CPP=$CPP
6379
6380fi
6381 CPP=$ac_cv_prog_CPP
6382else
6383 ac_cv_prog_CPP=$CPP
6384fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006385{ echo "$as_me:$LINENO: result: $CPP" >&5
6386echo "${ECHO_T}$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006387ac_preproc_ok=false
6388for ac_c_preproc_warn_flag in '' yes
6389do
6390 # Use a header file that comes with gcc, so configuring glibc
6391 # with a fresh cross-compiler works.
6392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393 # <limits.h> exists even on freestanding compilers.
6394 # On the NeXT, cc -E runs the code through the compiler's parser,
6395 # not just through cpp. "Syntax error" is here to catch this case.
6396 cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h. */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h. */
6402#ifdef __STDC__
6403# include <limits.h>
6404#else
6405# include <assert.h>
6406#endif
6407 Syntax error
6408_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006409if { (ac_try="$ac_cpp conftest.$ac_ext"
6410case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
6414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006421 (exit $ac_status); } >/dev/null && {
6422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006425 :
6426else
6427 echo "$as_me: failed program was:" >&5
6428sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 # Broken: fails on valid input.
6431continue
6432fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006433
Lev Walkin8e8b5482004-06-17 23:42:48 +00006434rm -f conftest.err conftest.$ac_ext
6435
Lev Walkin27fd0b62007-08-27 23:57:45 +00006436 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00006437 # can be detected and how.
6438 cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h. */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h. */
6444#include <ac_nonexistent.h>
6445_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00006446if { (ac_try="$ac_cpp conftest.$ac_ext"
6447case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450esac
6451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006458 (exit $ac_status); } >/dev/null && {
6459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006462 # Broken: success on invalid input.
6463continue
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 # Passes both tests.
6469ac_preproc_ok=:
6470break
6471fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006472
Lev Walkin8e8b5482004-06-17 23:42:48 +00006473rm -f conftest.err conftest.$ac_ext
6474
6475done
6476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6477rm -f conftest.err conftest.$ac_ext
6478if $ac_preproc_ok; then
6479 :
6480else
6481 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6482See \`config.log' for more details." >&5
6483echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6484See \`config.log' for more details." >&2;}
6485 { (exit 1); exit 1; }; }
6486fi
6487
6488ac_ext=c
6489ac_cpp='$CPP $CPPFLAGS'
6490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492ac_compiler_gnu=$ac_cv_c_compiler_gnu
6493
6494
Lev Walkin27fd0b62007-08-27 23:57:45 +00006495{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6496echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006497if test "${ac_cv_header_stdc+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506#include <stdlib.h>
6507#include <stdarg.h>
6508#include <string.h>
6509#include <float.h>
6510
6511int
6512main ()
6513{
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006520if { (ac_try="$ac_compile"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006536 ac_cv_header_stdc=yes
6537else
6538 echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
Lev Walkin27fd0b62007-08-27 23:57:45 +00006541 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006542fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006543
6544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006545
6546if test $ac_cv_header_stdc = yes; then
6547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6548 cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */
6554#include <string.h>
6555
6556_ACEOF
6557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6558 $EGREP "memchr" >/dev/null 2>&1; then
6559 :
6560else
6561 ac_cv_header_stdc=no
6562fi
Lev Walkin4c776e52010-11-08 02:07:31 -08006563rm -f -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00006564
6565fi
6566
6567if test $ac_cv_header_stdc = yes; then
6568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6569 cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
6575#include <stdlib.h>
6576
6577_ACEOF
6578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6579 $EGREP "free" >/dev/null 2>&1; then
6580 :
6581else
6582 ac_cv_header_stdc=no
6583fi
Lev Walkin4c776e52010-11-08 02:07:31 -08006584rm -f -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00006585
6586fi
6587
6588if test $ac_cv_header_stdc = yes; then
6589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6590 if test "$cross_compiling" = yes; then
6591 :
6592else
6593 cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h. */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h. */
6599#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00006600#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00006601#if ((' ' & 0x0FF) == 0x020)
6602# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6603# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6604#else
6605# define ISLOWER(c) \
6606 (('a' <= (c) && (c) <= 'i') \
6607 || ('j' <= (c) && (c) <= 'r') \
6608 || ('s' <= (c) && (c) <= 'z'))
6609# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6610#endif
6611
6612#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6613int
6614main ()
6615{
6616 int i;
6617 for (i = 0; i < 256; i++)
6618 if (XOR (islower (i), ISLOWER (i))
6619 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00006620 return 2;
6621 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006622}
6623_ACEOF
6624rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006625if { (ac_try="$ac_link"
6626case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6629esac
6630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_link") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +00006635 { (case "(($ac_try" in
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6638esac
6639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_try") 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 :
6645else
6646 echo "$as_me: program exited with status $ac_status" >&5
6647echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650( exit $ac_status )
6651ac_cv_header_stdc=no
6652fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6654fi
6655
6656
Lev Walkin8e8b5482004-06-17 23:42:48 +00006657fi
6658fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006659{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6660echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006661if test $ac_cv_header_stdc = yes; then
6662
6663cat >>confdefs.h <<\_ACEOF
6664#define STDC_HEADERS 1
6665_ACEOF
6666
6667fi
6668
6669# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6680 inttypes.h stdint.h unistd.h
6681do
6682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +00006683{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 cat >conftest.$ac_ext <<_ACEOF
6689/* confdefs.h. */
6690_ACEOF
6691cat confdefs.h >>conftest.$ac_ext
6692cat >>conftest.$ac_ext <<_ACEOF
6693/* end confdefs.h. */
6694$ac_includes_default
6695
6696#include <$ac_header>
6697_ACEOF
6698rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006699if { (ac_try="$ac_compile"
6700case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703esac
6704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006715 eval "$as_ac_Header=yes"
6716else
6717 echo "$as_me: failed program was:" >&5
6718sed 's/^/| /' conftest.$ac_ext >&5
6719
Lev Walkin27fd0b62007-08-27 23:57:45 +00006720 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006721fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006722
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006724fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006725ac_res=`eval echo '${'$as_ac_Header'}'`
6726 { echo "$as_me:$LINENO: result: $ac_res" >&5
6727echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006728if test `eval echo '${'$as_ac_Header'}'` = yes; then
6729 cat >>confdefs.h <<_ACEOF
6730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6731_ACEOF
6732
6733fi
6734
6735done
6736
6737
6738
6739for ac_header in dlfcn.h
6740do
6741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin4da95cf2010-10-16 02:46:32 -07006742{ echo "$as_me:$LINENO: checking for $ac_header" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00006743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006745 echo $ECHO_N "(cached) $ECHO_C" >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00006746else
Lev Walkin4da95cf2010-10-16 02:46:32 -07006747 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00006748/* confdefs.h. */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h. */
6753$ac_includes_default
Lev Walkin4da95cf2010-10-16 02:46:32 -07006754
Lev Walkin8e8b5482004-06-17 23:42:48 +00006755#include <$ac_header>
6756_ACEOF
6757rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +00006758if { (ac_try="$ac_compile"
6759case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762esac
6763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00006765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08006770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.$ac_objext; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006774 eval "$as_ac_Header=yes"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006775else
6776 echo "$as_me: failed program was:" >&5
6777sed 's/^/| /' conftest.$ac_ext >&5
6778
Lev Walkin4da95cf2010-10-16 02:46:32 -07006779 eval "$as_ac_Header=no"
Lev Walkin8e8b5482004-06-17 23:42:48 +00006780fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006781
6782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006783fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006784ac_res=`eval echo '${'$as_ac_Header'}'`
6785 { echo "$as_me:$LINENO: result: $ac_res" >&5
6786echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006787if test `eval echo '${'$as_ac_Header'}'` = yes; then
6788 cat >>confdefs.h <<_ACEOF
6789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6790_ACEOF
6791
6792fi
6793
6794done
6795
Lev Walkin8e8b5482004-06-17 23:42:48 +00006796
Lev Walkin8e8b5482004-06-17 23:42:48 +00006797
Lev Walkin4da95cf2010-10-16 02:46:32 -07006798# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00006799
Lev Walkin27fd0b62007-08-27 23:57:45 +00006800
Lev Walkin8e8b5482004-06-17 23:42:48 +00006801
Lev Walkin4da95cf2010-10-16 02:46:32 -07006802 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006803
Lev Walkin8e8b5482004-06-17 23:42:48 +00006804
Lev Walkin4da95cf2010-10-16 02:46:32 -07006805 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00006806
Lev Walkin8e8b5482004-06-17 23:42:48 +00006807
Lev Walkin4da95cf2010-10-16 02:46:32 -07006808 # Check whether --enable-shared was given.
6809if test "${enable_shared+set}" = set; then
6810 enableval=$enable_shared; p=${PACKAGE-default}
6811 case $enableval in
6812 yes) enable_shared=yes ;;
6813 no) enable_shared=no ;;
6814 *)
6815 enable_shared=no
6816 # Look at the argument we got. We use all the common list separators.
6817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6818 for pkg in $enableval; do
6819 IFS="$lt_save_ifs"
6820 if test "X$pkg" = "X$p"; then
6821 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00006822 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07006823 done
6824 IFS="$lt_save_ifs"
6825 ;;
6826 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00006827else
Lev Walkin4da95cf2010-10-16 02:46:32 -07006828 enable_shared=yes
6829fi
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839 # Check whether --enable-static was given.
6840if test "${enable_static+set}" = set; then
6841 enableval=$enable_static; p=${PACKAGE-default}
6842 case $enableval in
6843 yes) enable_static=yes ;;
6844 no) enable_static=no ;;
6845 *)
6846 enable_static=no
6847 # Look at the argument we got. We use all the common list separators.
6848 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6849 for pkg in $enableval; do
6850 IFS="$lt_save_ifs"
6851 if test "X$pkg" = "X$p"; then
6852 enable_static=yes
6853 fi
6854 done
6855 IFS="$lt_save_ifs"
6856 ;;
6857 esac
6858else
6859 enable_static=yes
6860fi
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871# Check whether --with-pic was given.
6872if test "${with_pic+set}" = set; then
6873 withval=$with_pic; pic_mode="$withval"
6874else
6875 pic_mode=default
6876fi
6877
6878
6879test -z "$pic_mode" && pic_mode=default
6880
6881
6882
6883
6884
6885
6886
6887 # Check whether --enable-fast-install was given.
6888if test "${enable_fast_install+set}" = set; then
6889 enableval=$enable_fast_install; p=${PACKAGE-default}
6890 case $enableval in
6891 yes) enable_fast_install=yes ;;
6892 no) enable_fast_install=no ;;
6893 *)
6894 enable_fast_install=no
6895 # Look at the argument we got. We use all the common list separators.
6896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6897 for pkg in $enableval; do
6898 IFS="$lt_save_ifs"
6899 if test "X$pkg" = "X$p"; then
6900 enable_fast_install=yes
6901 fi
6902 done
6903 IFS="$lt_save_ifs"
6904 ;;
6905 esac
6906else
6907 enable_fast_install=yes
6908fi
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920# This can be used to rebuild libtool when needed
6921LIBTOOL_DEPS="$ltmain"
6922
6923# Always use our own libtool.
6924LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
Lev Walkin4da95cf2010-10-16 02:46:32 -07006950test -z "$LN_S" && LN_S="ln -s"
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965if test -n "${ZSH_VERSION+set}" ; then
6966 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00006967fi
6968
Lev Walkin27fd0b62007-08-27 23:57:45 +00006969{ echo "$as_me:$LINENO: checking for objdir" >&5
6970echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006971if test "${lt_cv_objdir+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 rm -f .libs 2>/dev/null
6975mkdir .libs 2>/dev/null
6976if test -d .libs; then
6977 lt_cv_objdir=.libs
6978else
6979 # MS-DOS does not allow filenames that begin with a dot.
6980 lt_cv_objdir=_libs
6981fi
6982rmdir .libs 2>/dev/null
6983fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00006984{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6985echo "${ECHO_T}$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00006986objdir=$lt_cv_objdir
6987
6988
6989
6990
6991
Lev Walkin4da95cf2010-10-16 02:46:32 -07006992cat >>confdefs.h <<_ACEOF
6993#define LT_OBJDIR "$lt_cv_objdir/"
6994_ACEOF
6995
6996
6997
6998
Lev Walkin4c776e52010-11-08 02:07:31 -08006999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
Lev Walkin8e8b5482004-06-17 23:42:48 +00007012case $host_os in
7013aix3*)
7014 # AIX sometimes has problems with the GCC collect2 program. For some
7015 # reason, if we set the COLLECT_NAMES environment variable, the problems
7016 # vanish in a puff of smoke.
7017 if test "X${COLLECT_NAMES+set}" != Xset; then
7018 COLLECT_NAMES=
7019 export COLLECT_NAMES
7020 fi
7021 ;;
7022esac
7023
Lev Walkin4c776e52010-11-08 02:07:31 -08007024# Sed substitution that helps us do robust quoting. It backslashifies
7025# metacharacters that are still active within double-quoted strings.
7026sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7027
7028# Same as above, but do not quote variable references.
7029double_quote_subst='s/\(["`\\]\)/\\\1/g'
7030
7031# Sed substitution to delay expansion of an escaped shell variable in a
7032# double_quote_subst'ed string.
7033delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7034
7035# Sed substitution to delay expansion of an escaped single quote.
7036delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7037
7038# Sed substitution to avoid accidental globbing in evaled expressions
7039no_glob_subst='s/\*/\\\*/g'
7040
Lev Walkin8e8b5482004-06-17 23:42:48 +00007041# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07007042ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00007043can_build_shared=yes
7044
Lev Walkinfbf1d282007-12-03 14:58:39 +00007045# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007046# which needs '.lib').
7047libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07007048
Lev Walkin8e8b5482004-06-17 23:42:48 +00007049with_gnu_ld="$lt_cv_prog_gnu_ld"
7050
Lev Walkin8e8b5482004-06-17 23:42:48 +00007051old_CC="$CC"
7052old_CFLAGS="$CFLAGS"
7053
7054# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00007055test -z "$CC" && CC=cc
7056test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00007057test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00007058test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00007059test -z "$ac_objext" && ac_objext=o
7060
Lev Walkinfbf1d282007-12-03 14:58:39 +00007061for cc_temp in $compiler""; do
7062 case $cc_temp in
7063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7065 \-*) ;;
7066 *) break;;
7067 esac
7068done
Lev Walkin4c776e52010-11-08 02:07:31 -08007069cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007070
7071
Lev Walkin8e8b5482004-06-17 23:42:48 +00007072# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007073test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007074case $deplibs_check_method in
7075file_magic*)
7076 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007077 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7078echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007079if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082 case $MAGIC_CMD in
7083[\\/*] | ?:[\\/]*)
7084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7085 ;;
7086*)
7087 lt_save_MAGIC_CMD="$MAGIC_CMD"
7088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7090 for ac_dir in $ac_dummy; do
7091 IFS="$lt_save_ifs"
7092 test -z "$ac_dir" && ac_dir=.
7093 if test -f $ac_dir/${ac_tool_prefix}file; then
7094 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7095 if test -n "$file_magic_test_file"; then
7096 case $deplibs_check_method in
7097 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7101 $EGREP "$file_magic_regex" > /dev/null; then
7102 :
7103 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007104 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007105
7106*** Warning: the command libtool uses to detect shared libraries,
7107*** $file_magic_cmd, produces output that libtool cannot recognize.
7108*** The result is that libtool may fail to recognize shared libraries
7109*** as such. This will affect the creation of libtool libraries that
7110*** depend on shared libraries, but programs linked with such libtool
7111*** libraries will work regardless of this problem. Nevertheless, you
7112*** may want to report the problem to your system manager and/or to
7113*** bug-libtool@gnu.org
7114
Lev Walkin4da95cf2010-10-16 02:46:32 -07007115_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007116 fi ;;
7117 esac
7118 fi
7119 break
7120 fi
7121 done
7122 IFS="$lt_save_ifs"
7123 MAGIC_CMD="$lt_save_MAGIC_CMD"
7124 ;;
7125esac
7126fi
7127
7128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7129if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007130 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7131echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007132else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007133 { echo "$as_me:$LINENO: result: no" >&5
7134echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007135fi
7136
Lev Walkin4da95cf2010-10-16 02:46:32 -07007137
7138
7139
7140
Lev Walkin8e8b5482004-06-17 23:42:48 +00007141if test -z "$lt_cv_path_MAGIC_CMD"; then
7142 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007143 { echo "$as_me:$LINENO: checking for file" >&5
7144echo $ECHO_N "checking for file... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007145if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 case $MAGIC_CMD in
7149[\\/*] | ?:[\\/]*)
7150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7151 ;;
7152*)
7153 lt_save_MAGIC_CMD="$MAGIC_CMD"
7154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7156 for ac_dir in $ac_dummy; do
7157 IFS="$lt_save_ifs"
7158 test -z "$ac_dir" && ac_dir=.
7159 if test -f $ac_dir/file; then
7160 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7161 if test -n "$file_magic_test_file"; then
7162 case $deplibs_check_method in
7163 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7167 $EGREP "$file_magic_regex" > /dev/null; then
7168 :
7169 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007170 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007171
7172*** Warning: the command libtool uses to detect shared libraries,
7173*** $file_magic_cmd, produces output that libtool cannot recognize.
7174*** The result is that libtool may fail to recognize shared libraries
7175*** as such. This will affect the creation of libtool libraries that
7176*** depend on shared libraries, but programs linked with such libtool
7177*** libraries will work regardless of this problem. Nevertheless, you
7178*** may want to report the problem to your system manager and/or to
7179*** bug-libtool@gnu.org
7180
Lev Walkin4da95cf2010-10-16 02:46:32 -07007181_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007182 fi ;;
7183 esac
7184 fi
7185 break
7186 fi
7187 done
7188 IFS="$lt_save_ifs"
7189 MAGIC_CMD="$lt_save_MAGIC_CMD"
7190 ;;
7191esac
7192fi
7193
7194MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7195if test -n "$MAGIC_CMD"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00007196 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7197echo "${ECHO_T}$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007198else
Lev Walkin27fd0b62007-08-27 23:57:45 +00007199 { echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007201fi
7202
Lev Walkin4da95cf2010-10-16 02:46:32 -07007203
Lev Walkin8e8b5482004-06-17 23:42:48 +00007204 else
7205 MAGIC_CMD=:
7206 fi
7207fi
7208
7209 fi
7210 ;;
7211esac
7212
Lev Walkin8e8b5482004-06-17 23:42:48 +00007213# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07007214
Lev Walkin8e8b5482004-06-17 23:42:48 +00007215lt_save_CC="$CC"
7216ac_ext=c
7217ac_cpp='$CPP $CPPFLAGS'
7218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220ac_compiler_gnu=$ac_cv_c_compiler_gnu
7221
7222
7223# Source file extension for C test sources.
7224ac_ext=c
7225
7226# Object file extension for compiled C test sources.
7227objext=o
7228objext=$objext
7229
7230# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007231lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007232
7233# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007234lt_simple_link_test_code='int main(){return(0);}'
7235
7236
7237
7238
7239
Lev Walkin8e8b5482004-06-17 23:42:48 +00007240
7241
7242# If no C compiler was specified, use CC.
7243LTCC=${LTCC-"$CC"}
7244
Lev Walkinfbf1d282007-12-03 14:58:39 +00007245# If no C compiler flags were specified, use CFLAGS.
7246LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7247
Lev Walkin8e8b5482004-06-17 23:42:48 +00007248# Allow CC to be a program name with arguments.
7249compiler=$CC
7250
Lev Walkin4da95cf2010-10-16 02:46:32 -07007251# Save the default compiler, since it gets overwritten when the other
7252# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7253compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00007254
Lev Walkinfbf1d282007-12-03 14:58:39 +00007255# save warnings/boilerplate of simple test code
7256ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007257echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7259_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkin4c776e52010-11-08 02:07:31 -08007260$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007261
Lev Walkinfbf1d282007-12-03 14:58:39 +00007262ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007263echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7265_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007266$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007267
7268
Lev Walkin4da95cf2010-10-16 02:46:32 -07007269if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007270
7271lt_prog_compiler_no_builtin_flag=
7272
7273if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08007274 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
Lev Walkin8e8b5482004-06-17 23:42:48 +00007275
Lev Walkin4da95cf2010-10-16 02:46:32 -07007276 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007277echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007278if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007282 ac_outfile=conftest.$ac_objext
7283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007284 lt_compiler_flag="-fno-rtti -fno-exceptions"
7285 # Insert the option either (1) after the last *FLAGS variable, or
7286 # (2) before a word containing "conftest.", or (3) at the end.
7287 # Note that $ac_compile itself does not contain backslashes and begins
7288 # with a dollar sign (not a hyphen), so the echo should work correctly.
7289 # The option is referenced via a variable to avoid confusing sed.
7290 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7293 -e 's:$: $lt_compiler_flag:'`
Lev Walkin4c776e52010-11-08 02:07:31 -08007294 (eval echo "\"\$as_me:7294: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007295 (eval "$lt_compile" 2>conftest.err)
7296 ac_status=$?
7297 cat conftest.err >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007298 echo "$as_me:7298: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007299 if (exit $ac_status) && test -s "$ac_outfile"; then
7300 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00007301 # So say no if there are warnings other than the usual output.
Lev Walkin4c776e52010-11-08 02:07:31 -08007302 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007305 lt_cv_prog_compiler_rtti_exceptions=yes
7306 fi
7307 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08007308 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007309
7310fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007311{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7312echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007313
7314if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7315 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7316else
7317 :
7318fi
7319
7320fi
7321
Lev Walkin4da95cf2010-10-16 02:46:32 -07007322
7323
7324
7325
7326
7327 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007328lt_prog_compiler_pic=
7329lt_prog_compiler_static=
7330
Lev Walkin4c776e52010-11-08 02:07:31 -08007331{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7332echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007333
7334 if test "$GCC" = yes; then
7335 lt_prog_compiler_wl='-Wl,'
7336 lt_prog_compiler_static='-static'
7337
7338 case $host_os in
7339 aix*)
7340 # All AIX code is PIC.
7341 if test "$host_cpu" = ia64; then
7342 # AIX 5 now supports IA64 processor
7343 lt_prog_compiler_static='-Bstatic'
7344 fi
7345 ;;
7346
7347 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007348 case $host_cpu in
7349 powerpc)
7350 # see comment about AmigaOS4 .so support
7351 lt_prog_compiler_pic='-fPIC'
7352 ;;
7353 m68k)
7354 # FIXME: we need at least 68020 code to build shared libraries, but
7355 # adding the `-m68020' flag to GCC prevents building anything better,
7356 # like `-m68040'.
7357 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7358 ;;
7359 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007360 ;;
7361
Lev Walkin4da95cf2010-10-16 02:46:32 -07007362 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007363 # PIC is the default for these OSes.
7364 ;;
7365
Lev Walkin4c776e52010-11-08 02:07:31 -08007366 mingw* | cygwin* | pw32* | os2*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007367 # This hack is so that the source file can tell whether it is being
7368 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07007369 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7370 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00007371 lt_prog_compiler_pic='-DDLL_EXPORT'
7372 ;;
7373
7374 darwin* | rhapsody*)
7375 # PIC is the default on this platform
7376 # Common symbols not allowed in MH_DYLIB files
7377 lt_prog_compiler_pic='-fno-common'
7378 ;;
7379
Lev Walkin4da95cf2010-10-16 02:46:32 -07007380 hpux*)
Lev Walkin4c776e52010-11-08 02:07:31 -08007381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7382 # not for PA HP-UX.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007383 case $host_cpu in
Lev Walkin4c776e52010-11-08 02:07:31 -08007384 hppa*64*|ia64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007385 # +Z the default
7386 ;;
7387 *)
7388 lt_prog_compiler_pic='-fPIC'
7389 ;;
7390 esac
7391 ;;
7392
7393 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007394 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7395 # Instead, we relocate shared libraries at runtime.
7396 ;;
7397
Lev Walkin8e8b5482004-06-17 23:42:48 +00007398 msdosdjgpp*)
7399 # Just because we use GCC doesn't mean we suddenly get shared libraries
7400 # on systems that don't support them.
7401 lt_prog_compiler_can_build_shared=no
7402 enable_shared=no
7403 ;;
7404
Lev Walkin4da95cf2010-10-16 02:46:32 -07007405 *nto* | *qnx*)
7406 # QNX uses GNU C++, but need to define -shared option too, otherwise
7407 # it will coredump.
7408 lt_prog_compiler_pic='-fPIC -shared'
7409 ;;
7410
Lev Walkin8e8b5482004-06-17 23:42:48 +00007411 sysv4*MP*)
7412 if test -d /usr/nec; then
7413 lt_prog_compiler_pic=-Kconform_pic
7414 fi
7415 ;;
7416
Lev Walkin8e8b5482004-06-17 23:42:48 +00007417 *)
7418 lt_prog_compiler_pic='-fPIC'
7419 ;;
7420 esac
7421 else
7422 # PORTME Check for flag to pass linker flags through the system compiler.
7423 case $host_os in
7424 aix*)
7425 lt_prog_compiler_wl='-Wl,'
7426 if test "$host_cpu" = ia64; then
7427 # AIX 5 now supports IA64 processor
7428 lt_prog_compiler_static='-Bstatic'
7429 else
7430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7431 fi
7432 ;;
7433
Lev Walkin4c776e52010-11-08 02:07:31 -08007434 mingw* | cygwin* | pw32* | os2*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007435 # This hack is so that the source file can tell whether it is being
7436 # built for inclusion in a dll (and should export symbols for example).
7437 lt_prog_compiler_pic='-DDLL_EXPORT'
7438 ;;
7439
7440 hpux9* | hpux10* | hpux11*)
7441 lt_prog_compiler_wl='-Wl,'
7442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7443 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00007444 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007445 hppa*64*|ia64*)
7446 # +Z the default
7447 ;;
7448 *)
7449 lt_prog_compiler_pic='+Z'
7450 ;;
7451 esac
7452 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7453 lt_prog_compiler_static='${wl}-a ${wl}archive'
7454 ;;
7455
7456 irix5* | irix6* | nonstopux*)
7457 lt_prog_compiler_wl='-Wl,'
7458 # PIC (with -KPIC) is the default.
7459 lt_prog_compiler_static='-non_shared'
7460 ;;
7461
Lev Walkin4c776e52010-11-08 02:07:31 -08007462 linux* | k*bsd*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007463 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08007464 icc* | ecc* | ifort*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007465 lt_prog_compiler_wl='-Wl,'
7466 lt_prog_compiler_pic='-KPIC'
7467 lt_prog_compiler_static='-static'
7468 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007469 pgcc* | pgf77* | pgf90* | pgf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007470 # Portland Group compilers (*not* the Pentium gcc compiler,
7471 # which looks to be a dead project)
7472 lt_prog_compiler_wl='-Wl,'
7473 lt_prog_compiler_pic='-fpic'
7474 lt_prog_compiler_static='-Bstatic'
7475 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007476 ccc*)
7477 lt_prog_compiler_wl='-Wl,'
7478 # All Alpha code is PIC.
7479 lt_prog_compiler_static='-non_shared'
7480 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007481 xl*)
7482 # IBM XL C 8.0/Fortran 10.1 on PPC
Lev Walkin4da95cf2010-10-16 02:46:32 -07007483 lt_prog_compiler_wl='-Wl,'
7484 lt_prog_compiler_pic='-qpic'
7485 lt_prog_compiler_static='-qstaticlink'
7486 ;;
7487 *)
7488 case `$CC -V 2>&1 | sed 5q` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07007489 *Sun\ C*)
7490 # Sun C 5.9
7491 lt_prog_compiler_pic='-KPIC'
7492 lt_prog_compiler_static='-Bstatic'
7493 lt_prog_compiler_wl='-Wl,'
7494 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08007495 *Sun\ F*)
7496 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7497 lt_prog_compiler_pic='-KPIC'
7498 lt_prog_compiler_static='-Bstatic'
7499 lt_prog_compiler_wl=''
7500 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07007501 esac
7502 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007503 esac
7504 ;;
7505
Lev Walkin4da95cf2010-10-16 02:46:32 -07007506 newsos6)
7507 lt_prog_compiler_pic='-KPIC'
7508 lt_prog_compiler_static='-Bstatic'
7509 ;;
7510
7511 *nto* | *qnx*)
7512 # QNX uses GNU C++, but need to define -shared option too, otherwise
7513 # it will coredump.
7514 lt_prog_compiler_pic='-fPIC -shared'
7515 ;;
7516
Lev Walkin8e8b5482004-06-17 23:42:48 +00007517 osf3* | osf4* | osf5*)
7518 lt_prog_compiler_wl='-Wl,'
7519 # All OSF/1 code is PIC.
7520 lt_prog_compiler_static='-non_shared'
7521 ;;
7522
Lev Walkin4da95cf2010-10-16 02:46:32 -07007523 rdos*)
7524 lt_prog_compiler_static='-non_shared'
7525 ;;
7526
Lev Walkin8e8b5482004-06-17 23:42:48 +00007527 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007528 lt_prog_compiler_pic='-KPIC'
7529 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007530 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08007531 f77* | f90* | f95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007532 lt_prog_compiler_wl='-Qoption ld ';;
7533 *)
7534 lt_prog_compiler_wl='-Wl,';;
7535 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007536 ;;
7537
7538 sunos4*)
7539 lt_prog_compiler_wl='-Qoption ld '
7540 lt_prog_compiler_pic='-PIC'
7541 lt_prog_compiler_static='-Bstatic'
7542 ;;
7543
Lev Walkinfbf1d282007-12-03 14:58:39 +00007544 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007545 lt_prog_compiler_wl='-Wl,'
7546 lt_prog_compiler_pic='-KPIC'
7547 lt_prog_compiler_static='-Bstatic'
7548 ;;
7549
7550 sysv4*MP*)
7551 if test -d /usr/nec ;then
7552 lt_prog_compiler_pic='-Kconform_pic'
7553 lt_prog_compiler_static='-Bstatic'
7554 fi
7555 ;;
7556
Lev Walkinfbf1d282007-12-03 14:58:39 +00007557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7558 lt_prog_compiler_wl='-Wl,'
7559 lt_prog_compiler_pic='-KPIC'
7560 lt_prog_compiler_static='-Bstatic'
7561 ;;
7562
7563 unicos*)
7564 lt_prog_compiler_wl='-Wl,'
7565 lt_prog_compiler_can_build_shared=no
7566 ;;
7567
Lev Walkin8e8b5482004-06-17 23:42:48 +00007568 uts4*)
7569 lt_prog_compiler_pic='-pic'
7570 lt_prog_compiler_static='-Bstatic'
7571 ;;
7572
7573 *)
7574 lt_prog_compiler_can_build_shared=no
7575 ;;
7576 esac
7577 fi
7578
Lev Walkinfbf1d282007-12-03 14:58:39 +00007579case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007580 # For platforms which do not support PIC, -DPIC is meaningless:
7581 *djgpp*)
7582 lt_prog_compiler_pic=
7583 ;;
7584 *)
7585 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7586 ;;
7587esac
Lev Walkin4c776e52010-11-08 02:07:31 -08007588{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7589echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007590
Lev Walkin4c776e52010-11-08 02:07:31 -08007591
7592
7593
7594
Lev Walkin4da95cf2010-10-16 02:46:32 -07007595
7596#
7597# Check to make sure the PIC flag actually works.
7598#
7599if test -n "$lt_prog_compiler_pic"; then
7600 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7601echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7602if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605 lt_cv_prog_compiler_pic_works=no
7606 ac_outfile=conftest.$ac_objext
7607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7608 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7609 # Insert the option either (1) after the last *FLAGS variable, or
7610 # (2) before a word containing "conftest.", or (3) at the end.
7611 # Note that $ac_compile itself does not contain backslashes and begins
7612 # with a dollar sign (not a hyphen), so the echo should work correctly.
7613 # The option is referenced via a variable to avoid confusing sed.
7614 lt_compile=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
Lev Walkin4c776e52010-11-08 02:07:31 -08007618 (eval echo "\"\$as_me:7618: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007619 (eval "$lt_compile" 2>conftest.err)
7620 ac_status=$?
7621 cat conftest.err >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007622 echo "$as_me:7622: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07007623 if (exit $ac_status) && test -s "$ac_outfile"; then
7624 # The compiler can only warn and ignore the option if not recognized
7625 # So say no if there are warnings other than the usual output.
Lev Walkin4c776e52010-11-08 02:07:31 -08007626 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07007627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7629 lt_cv_prog_compiler_pic_works=yes
7630 fi
7631 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08007632 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007633
7634fi
7635{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7636echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7637
7638if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7639 case $lt_prog_compiler_pic in
7640 "" | " "*) ;;
7641 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7642 esac
7643else
7644 lt_prog_compiler_pic=
7645 lt_prog_compiler_can_build_shared=no
7646fi
7647
7648fi
7649
7650
7651
7652
7653
7654
Lev Walkinfbf1d282007-12-03 14:58:39 +00007655#
7656# Check to make sure the static flag actually works.
7657#
7658wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7659{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7660echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007661if test "${lt_cv_prog_compiler_static_works+set}" = set; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00007662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007664 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00007665 save_LDFLAGS="$LDFLAGS"
7666 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07007667 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7669 # The linker can only warn and ignore the option if not recognized
7670 # So say no if there are warnings
7671 if test -s conftest.err; then
7672 # Append any errors to the config.log.
7673 cat conftest.err 1>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007674 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7676 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007677 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00007678 fi
7679 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007680 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00007681 fi
7682 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007683 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00007684 LDFLAGS="$save_LDFLAGS"
7685
7686fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007687{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7688echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00007689
Lev Walkin4da95cf2010-10-16 02:46:32 -07007690if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00007691 :
7692else
7693 lt_prog_compiler_static=
7694fi
7695
7696
Lev Walkin4da95cf2010-10-16 02:46:32 -07007697
7698
7699
7700
7701
7702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007703echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007704if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007708 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00007709 mkdir conftest
7710 cd conftest
7711 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07007712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007713
7714 lt_compiler_flag="-o out/conftest2.$ac_objext"
7715 # Insert the option either (1) after the last *FLAGS variable, or
7716 # (2) before a word containing "conftest.", or (3) at the end.
7717 # Note that $ac_compile itself does not contain backslashes and begins
7718 # with a dollar sign (not a hyphen), so the echo should work correctly.
7719 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722 -e 's:$: $lt_compiler_flag:'`
Lev Walkin4c776e52010-11-08 02:07:31 -08007723 (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007724 (eval "$lt_compile" 2>out/conftest.err)
7725 ac_status=$?
7726 cat out/conftest.err >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007727 echo "$as_me:7727: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7729 then
7730 # The compiler can only warn and ignore the option if not recognized
7731 # So say no if there are warnings
Lev Walkin4c776e52010-11-08 02:07:31 -08007732 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007735 lt_cv_prog_compiler_c_o=yes
7736 fi
7737 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00007738 chmod u+w . 2>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007739 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007740 # SGI C++ compiler will create directory out/ii_files/ for
7741 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07007742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7743 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00007744 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07007745 $RM -r conftest
Lev Walkin4c776e52010-11-08 02:07:31 -08007746 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007747
7748fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007749{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7750echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007751
7752
Lev Walkin4da95cf2010-10-16 02:46:32 -07007753
7754
7755
7756
7757 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7758echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7759if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762 lt_cv_prog_compiler_c_o=no
7763 $RM -r conftest 2>/dev/null
7764 mkdir conftest
7765 cd conftest
7766 mkdir out
7767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7768
7769 lt_compiler_flag="-o out/conftest2.$ac_objext"
7770 # Insert the option either (1) after the last *FLAGS variable, or
7771 # (2) before a word containing "conftest.", or (3) at the end.
7772 # Note that $ac_compile itself does not contain backslashes and begins
7773 # with a dollar sign (not a hyphen), so the echo should work correctly.
7774 lt_compile=`echo "$ac_compile" | $SED \
7775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7777 -e 's:$: $lt_compiler_flag:'`
Lev Walkin4c776e52010-11-08 02:07:31 -08007778 (eval echo "\"\$as_me:7778: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007779 (eval "$lt_compile" 2>out/conftest.err)
7780 ac_status=$?
7781 cat out/conftest.err >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007782 echo "$as_me:7782: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07007783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7784 then
7785 # The compiler can only warn and ignore the option if not recognized
7786 # So say no if there are warnings
Lev Walkin4c776e52010-11-08 02:07:31 -08007787 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07007788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7790 lt_cv_prog_compiler_c_o=yes
7791 fi
7792 fi
7793 chmod u+w . 2>&5
Lev Walkin4c776e52010-11-08 02:07:31 -08007794 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007795 # SGI C++ compiler will create directory out/ii_files/ for
7796 # template instantiation
7797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7798 $RM out/* && rmdir out
7799 cd ..
7800 $RM -r conftest
Lev Walkin4c776e52010-11-08 02:07:31 -08007801 $RM -r conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07007802
7803fi
7804{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7805echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7806
7807
7808
7809
Lev Walkin8e8b5482004-06-17 23:42:48 +00007810hard_links="nottested"
7811if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7812 # do not overwrite the value of need_locks provided by the user
Lev Walkin27fd0b62007-08-27 23:57:45 +00007813 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7814echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007815 hard_links=yes
Lev Walkin4c776e52010-11-08 02:07:31 -08007816 $RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7818 touch conftest.a
7819 ln conftest.a conftest.b 2>&5 || hard_links=no
7820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00007821 { echo "$as_me:$LINENO: result: $hard_links" >&5
7822echo "${ECHO_T}$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007823 if test "$hard_links" = no; then
7824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7825echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7826 need_locks=warn
7827 fi
7828else
7829 need_locks=no
7830fi
7831
Lev Walkin4da95cf2010-10-16 02:46:32 -07007832
7833
7834
7835
7836
7837 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00007838echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007839
7840 runpath_var=
7841 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007842 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007843 archive_cmds=
7844 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007845 compiler_needs_object=no
7846 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007847 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007848 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7849 hardcode_automatic=no
7850 hardcode_direct=no
7851 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007852 hardcode_libdir_flag_spec=
7853 hardcode_libdir_flag_spec_ld=
7854 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007855 hardcode_minus_L=no
7856 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07007857 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007858 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00007859 module_cmds=
7860 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07007861 old_archive_from_new_cmds=
7862 old_archive_from_expsyms_cmds=
7863 thread_safe_flag_spec=
7864 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007865 # include_expsyms should be a list of space-separated symbols to be *always*
7866 # included in the symbol list
7867 include_expsyms=
7868 # exclude_expsyms can be an extended regexp of symbols to exclude
7869 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7871 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007872 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00007873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7874 # platforms (ab)use it in PIC code, but their linkers get confused if
7875 # the symbol is explicitly referenced. Since portable code cannot
7876 # rely on this symbol name, it's probably fine to never include it in
7877 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007878 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007879 extract_expsyms_cmds=
7880
7881 case $host_os in
Lev Walkin4c776e52010-11-08 02:07:31 -08007882 cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007883 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7884 # When not using gcc, we currently assume that we are using
7885 # Microsoft Visual C++.
7886 if test "$GCC" != yes; then
7887 with_gnu_ld=no
7888 fi
7889 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00007890 interix*)
7891 # we just hope/assume this is gcc and not c89 (= MSVC++)
7892 with_gnu_ld=yes
7893 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007894 openbsd*)
7895 with_gnu_ld=no
7896 ;;
7897 esac
7898
7899 ld_shlibs=yes
7900 if test "$with_gnu_ld" = yes; then
7901 # If archive_cmds runs LD, not CC, wlarc should be empty
7902 wlarc='${wl}'
7903
Lev Walkinfbf1d282007-12-03 14:58:39 +00007904 # Set some defaults for GNU ld with shared library support. These
7905 # are reset later if shared libraries are not supported. Putting them
7906 # here allows them to be overridden if necessary.
7907 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07007908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00007909 export_dynamic_flag_spec='${wl}--export-dynamic'
7910 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007911 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7913 else
7914 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00007915 fi
7916 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007917 case `$LD -v 2>&1` in
Lev Walkinfbf1d282007-12-03 14:58:39 +00007918 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7919 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7920 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7921 *\ 2.11.*) ;; # other 2.11 versions
7922 *) supports_anon_versioning=yes ;;
7923 esac
7924
Lev Walkin8e8b5482004-06-17 23:42:48 +00007925 # See if GNU ld supports shared libraries.
7926 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07007927 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007928 # On AIX/PPC, the GNU linker is very broken
7929 if test "$host_cpu" != ia64; then
7930 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007931 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007932
Lev Walkin4c776e52010-11-08 02:07:31 -08007933*** Warning: the GNU linker, at least up to release 2.9.1, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00007934*** to be unable to reliably create shared libraries on AIX.
7935*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkin4c776e52010-11-08 02:07:31 -08007936*** really care for shared libraries, you may want to modify your PATH
7937*** so that a non-GNU linker is found, and then restart.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007938
Lev Walkin4da95cf2010-10-16 02:46:32 -07007939_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007940 fi
7941 ;;
7942
7943 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007944 case $host_cpu in
7945 powerpc)
7946 # see comment about AmigaOS4 .so support
7947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7948 archive_expsym_cmds=''
7949 ;;
7950 m68k)
7951 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)'
7952 hardcode_libdir_flag_spec='-L$libdir'
7953 hardcode_minus_L=yes
7954 ;;
7955 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007956 ;;
7957
7958 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007960 allow_undefined_flag=unsupported
7961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7962 # support --undefined. This deserves some investigation. FIXME
7963 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964 else
7965 ld_shlibs=no
7966 fi
7967 ;;
7968
Lev Walkin4c776e52010-11-08 02:07:31 -08007969 cygwin* | mingw* | pw32*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007970 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007971 # as there is no search path for DLLs.
7972 hardcode_libdir_flag_spec='-L$libdir'
7973 allow_undefined_flag=unsupported
7974 always_export_symbols=no
7975 enable_shared_with_static_runtimes=yes
Lev Walkin4c776e52010-11-08 02:07:31 -08007976 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 +00007977
Lev Walkin4da95cf2010-10-16 02:46:32 -07007978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00007979 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 +00007980 # If the export-symbols file already is a .def file (1st line
7981 # is EXPORTS), use it as is; otherwise, prepend...
7982 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7983 cp $export_symbols $output_objdir/$soname.def;
7984 else
7985 echo EXPORTS > $output_objdir/$soname.def;
7986 cat $export_symbols >> $output_objdir/$soname.def;
7987 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00007988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7989 else
7990 ld_shlibs=no
7991 fi
7992 ;;
7993
Lev Walkin4da95cf2010-10-16 02:46:32 -07007994 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007995 hardcode_direct=no
7996 hardcode_shlibpath_var=no
7997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7998 export_dynamic_flag_spec='${wl}-E'
7999 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8000 # Instead, shared libraries are loaded at an image base (0x10000000 by
8001 # default) and relocated if they conflict, which is a slow very memory
8002 # consuming and fragmenting process. To avoid this, we pick a random,
8003 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8004 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8006 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'
8007 ;;
8008
Lev Walkin4c776e52010-11-08 02:07:31 -08008009 gnu* | linux* | tpf* | k*bsd*-gnu)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008010 tmp_diet=no
8011 if test "$host_os" = linux-dietlibc; then
8012 case $cc_basename in
8013 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8014 esac
8015 fi
8016 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8017 && test "$tmp_diet" = no
8018 then
Lev Walkin4c776e52010-11-08 02:07:31 -08008019 tmp_addflag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008020 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008021 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008022 pgcc*) # Portland Group C compiler
Lev Walkin4c776e52010-11-08 02:07:31 -08008023 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 +00008024 tmp_addflag=' $pic_flag'
8025 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08008026 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8027 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 +00008028 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00008030 tmp_addflag=' -i_dynamic' ;;
8031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8032 tmp_addflag=' -i_dynamic -nofor_main' ;;
8033 ifc* | ifort*) # Intel Fortran compiler
8034 tmp_addflag=' -nofor_main' ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08008035 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008036 tmp_sharedflag='-qmkshrobj'
8037 tmp_addflag= ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008038 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008039 case `$CC -V 2>&1 | sed 5q` in
8040 *Sun\ C*) # Sun C 5.9
Lev Walkin4c776e52010-11-08 02:07:31 -08008041 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 -07008042 compiler_needs_object=yes
8043 tmp_sharedflag='-G' ;;
8044 *Sun\ F*) # Sun Fortran 8.3
8045 tmp_sharedflag='-G' ;;
8046 esac
8047 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008048
Lev Walkin4da95cf2010-10-16 02:46:32 -07008049 if test "x$supports_anon_versioning" = xyes; then
8050 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8052 echo "local: *; };" >> $output_objdir/$libname.ver~
8053 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8054 fi
8055
8056 case $cc_basename in
Lev Walkin4c776e52010-11-08 02:07:31 -08008057 xlf*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008058 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8059 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8060 hardcode_libdir_flag_spec=
8061 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Lev Walkin4c776e52010-11-08 02:07:31 -08008062 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008063 if test "x$supports_anon_versioning" = xyes; then
8064 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8066 echo "local: *; };" >> $output_objdir/$libname.ver~
Lev Walkin4c776e52010-11-08 02:07:31 -08008067 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008068 fi
8069 ;;
8070 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008071 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008072 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008073 fi
8074 ;;
8075
8076 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008078 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8079 wlarc=
8080 else
Lev Walkin4c776e52010-11-08 02:07:31 -08008081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8082 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 +00008083 fi
8084 ;;
8085
Lev Walkinfbf1d282007-12-03 14:58:39 +00008086 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008087 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008088 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008089 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008090
8091*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8092*** create shared libraries on Solaris systems. Therefore, libtool
8093*** is disabling shared libraries support. We urge you to upgrade GNU
8094*** binutils to release 2.9.1 or newer. Another option is to modify
8095*** your PATH or compiler configuration so that the native linker is
8096*** used, and then restart.
8097
Lev Walkin4da95cf2010-10-16 02:46:32 -07008098_LT_EOF
8099 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101 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 +00008102 else
8103 ld_shlibs=no
8104 fi
8105 ;;
8106
Lev Walkinfbf1d282007-12-03 14:58:39 +00008107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8108 case `$LD -v 2>&1` in
8109 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8110 ld_shlibs=no
8111 cat <<_LT_EOF 1>&2
8112
8113*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8114*** reliably create shared libraries on SCO systems. Therefore, libtool
8115*** is disabling shared libraries support. We urge you to upgrade GNU
8116*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8117*** your PATH or compiler configuration so that the native linker is
8118*** used, and then restart.
8119
8120_LT_EOF
8121 ;;
8122 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008123 # For security reasons, it is highly recommended that you always
8124 # use absolute paths for naming shared libraries, and exclude the
8125 # DT_RUNPATH tag from executables and libraries. But doing so
8126 # requires that you compile everything twice, which is a pain.
8127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130 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 +00008131 else
8132 ld_shlibs=no
8133 fi
8134 ;;
8135 esac
8136 ;;
8137
Lev Walkin8e8b5482004-06-17 23:42:48 +00008138 sunos4*)
8139 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8140 wlarc=
8141 hardcode_direct=yes
8142 hardcode_shlibpath_var=no
8143 ;;
8144
Lev Walkin8e8b5482004-06-17 23:42:48 +00008145 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148 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 +00008149 else
8150 ld_shlibs=no
8151 fi
8152 ;;
8153 esac
8154
Lev Walkinfbf1d282007-12-03 14:58:39 +00008155 if test "$ld_shlibs" = no; then
8156 runpath_var=
8157 hardcode_libdir_flag_spec=
8158 export_dynamic_flag_spec=
8159 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008160 fi
8161 else
8162 # PORTME fill in a description of your system's linker (not GNU ld)
8163 case $host_os in
8164 aix3*)
8165 allow_undefined_flag=unsupported
8166 always_export_symbols=yes
8167 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'
8168 # Note: this linker hardcodes the directories in LIBPATH if there
8169 # are no directories specified by -L.
8170 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008171 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008172 # Neither direct hardcoding nor static linking is supported with a
8173 # broken collect2.
8174 hardcode_direct=unsupported
8175 fi
8176 ;;
8177
Lev Walkin4da95cf2010-10-16 02:46:32 -07008178 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008179 if test "$host_cpu" = ia64; then
8180 # On IA64, the linker does run time linking by default, so we don't
8181 # have to do anything special.
8182 aix_use_runtimelinking=no
8183 exp_sym_flag='-Bexport'
8184 no_entry_flag=""
8185 else
8186 # If we're using GNU nm, then we don't want the "-C" option.
8187 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkin4da95cf2010-10-16 02:46:32 -07008188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008189 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 +00008190 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008191 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 +00008192 fi
8193 aix_use_runtimelinking=no
8194
8195 # Test if we are trying to use run time linking or normal
8196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8197 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008198 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008199 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07008200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8201 aix_use_runtimelinking=yes
8202 break
8203 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008204 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00008205 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008206 esac
8207
8208 exp_sym_flag='-bexport'
8209 no_entry_flag='-bnoentry'
8210 fi
8211
8212 # When large executables or shared objects are built, AIX ld can
8213 # have problems creating the table of contents. If linking a library
8214 # or program results in "error TOC overflow" add -mminimal-toc to
8215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8217
8218 archive_cmds=''
8219 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008220 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008221 hardcode_libdir_separator=':'
8222 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008223 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008224
8225 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008226 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008227 # We only want to do this on AIX 4.2 and lower, the check
8228 # below for broken collect2 doesn't work under 4.3+
8229 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008230 if test -f "$collect2name" &&
8231 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008232 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008233 # We have reworked collect2
8234 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008235 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008236 # We have old collect2
8237 hardcode_direct=unsupported
8238 # It fails to find uninstalled libraries when the uninstalled
8239 # path is not listed in the libpath. Setting hardcode_minus_L
8240 # to unsupported forces relinking
8241 hardcode_minus_L=yes
8242 hardcode_libdir_flag_spec='-L$libdir'
8243 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008244 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008245 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008246 esac
8247 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008248 if test "$aix_use_runtimelinking" = yes; then
8249 shared_flag="$shared_flag "'${wl}-G'
8250 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008251 else
8252 # not using gcc
8253 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8255 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008256 shared_flag='-G'
8257 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008258 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008259 shared_flag='${wl}-G'
8260 else
8261 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008262 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008263 fi
8264 fi
8265
8266 # It seems that -bexpall does not export symbols beginning with
8267 # underscore (_), so it is better to generate a list of symbols to export.
8268 always_export_symbols=yes
8269 if test "$aix_use_runtimelinking" = yes; then
8270 # Warning - without using the other runtime loading flags (-brtl),
8271 # -berok will link without error, but may produce a broken library.
8272 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008273 # Determine the default libpath from the value encoded in an
8274 # empty executable.
Lev Walkin4c776e52010-11-08 02:07:31 -08008275 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008276/* confdefs.h. */
8277_ACEOF
8278cat confdefs.h >>conftest.$ac_ext
8279cat >>conftest.$ac_ext <<_ACEOF
8280/* end confdefs.h. */
8281
8282int
8283main ()
8284{
8285
8286 ;
8287 return 0;
8288}
8289_ACEOF
8290rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00008291if { (ac_try="$ac_link"
8292case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest$ac_exeext &&
8307 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008308
Lev Walkin4c776e52010-11-08 02:07:31 -08008309lt_aix_libpath_sed='
8310 /Import File Strings/,/^$/ {
8311 /^0/ {
8312 s/^0 *\(.*\)$/\1/
8313 p
8314 }
8315 }'
8316aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8317# Check for a 64-bit object if we didn't find anything.
8318if test -z "$aix_libpath"; then
8319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8320fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008321else
8322 echo "$as_me: failed program was:" >&5
8323sed 's/^/| /' conftest.$ac_ext >&5
8324
Lev Walkin27fd0b62007-08-27 23:57:45 +00008325
Lev Walkin8e8b5482004-06-17 23:42:48 +00008326fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008327
Lev Walkin4c776e52010-11-08 02:07:31 -08008328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008329 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008331
8332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lev Walkin4c776e52010-11-08 02:07:31 -08008333 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 -07008334 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00008335 if test "$host_cpu" = ia64; then
8336 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8337 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00008338 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 +00008339 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008340 # Determine the default libpath from the value encoded in an
8341 # empty executable.
Lev Walkin4c776e52010-11-08 02:07:31 -08008342 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008343/* confdefs.h. */
8344_ACEOF
8345cat confdefs.h >>conftest.$ac_ext
8346cat >>conftest.$ac_ext <<_ACEOF
8347/* end confdefs.h. */
8348
8349int
8350main ()
8351{
8352
8353 ;
8354 return 0;
8355}
8356_ACEOF
8357rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +00008358if { (ac_try="$ac_link"
8359case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +00008365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest$ac_exeext &&
8374 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008375
Lev Walkin4c776e52010-11-08 02:07:31 -08008376lt_aix_libpath_sed='
8377 /Import File Strings/,/^$/ {
8378 /^0/ {
8379 s/^0 *\(.*\)$/\1/
8380 p
8381 }
8382 }'
8383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8384# Check for a 64-bit object if we didn't find anything.
8385if test -z "$aix_libpath"; then
8386 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008388else
8389 echo "$as_me: failed program was:" >&5
8390sed 's/^/| /' conftest.$ac_ext >&5
8391
Lev Walkin27fd0b62007-08-27 23:57:45 +00008392
Lev Walkin8e8b5482004-06-17 23:42:48 +00008393fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008394
Lev Walkin4c776e52010-11-08 02:07:31 -08008395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008396 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008398
8399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8400 # Warning - without using the other run time loading flags,
8401 # -berok will link without error, but may produce a broken library.
8402 no_undefined_flag=' ${wl}-bernotok'
8403 allow_undefined_flag=' ${wl}-berok'
Lev Walkin4c776e52010-11-08 02:07:31 -08008404 # Exported symbols can be pulled into shared objects from archives
8405 whole_archive_flag_spec='$convenience'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008406 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008407 # This is similar to how AIX traditionally builds its shared libraries.
8408 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 +00008409 fi
8410 fi
8411 ;;
8412
8413 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008414 case $host_cpu in
8415 powerpc)
8416 # see comment about AmigaOS4 .so support
8417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418 archive_expsym_cmds=''
8419 ;;
8420 m68k)
8421 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)'
8422 hardcode_libdir_flag_spec='-L$libdir'
8423 hardcode_minus_L=yes
8424 ;;
8425 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008426 ;;
8427
Lev Walkinfbf1d282007-12-03 14:58:39 +00008428 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008429 export_dynamic_flag_spec=-rdynamic
8430 ;;
8431
Lev Walkin4c776e52010-11-08 02:07:31 -08008432 cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008433 # When not using gcc, we currently assume that we are using
8434 # Microsoft Visual C++.
8435 # hardcode_libdir_flag_spec is actually meaningless, as there is
8436 # no search path for DLLs.
Lev Walkin4c776e52010-11-08 02:07:31 -08008437 hardcode_libdir_flag_spec=' '
8438 allow_undefined_flag=unsupported
8439 # Tell ltmain to make .lib files, not .a files.
8440 libext=lib
8441 # Tell ltmain to make .dll files, not .so files.
8442 shrext_cmds=".dll"
8443 # FIXME: Setting linknames here is a bad hack.
8444 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8445 # The linker will automatically build a .lib file if we build a DLL.
8446 old_archive_from_new_cmds='true'
8447 # FIXME: Should let the user specify the lib program.
8448 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8449 fix_srcfile_path='`cygpath -w "$srcfile"`'
8450 enable_shared_with_static_runtimes=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008451 ;;
8452
8453 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008454
8455
8456 archive_cmds_need_lc=no
8457 hardcode_direct=no
8458 hardcode_automatic=yes
8459 hardcode_shlibpath_var=unsupported
Lev Walkin4c776e52010-11-08 02:07:31 -08008460 whole_archive_flag_spec=''
Lev Walkin4da95cf2010-10-16 02:46:32 -07008461 link_all_deplibs=yes
8462 allow_undefined_flag="$_lt_dar_allow_undefined"
Lev Walkin4c776e52010-11-08 02:07:31 -08008463 if test "$GCC" = "yes"; then
8464 output_verbose_link_cmd=echo
Lev Walkin4da95cf2010-10-16 02:46:32 -07008465 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8466 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8467 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}"
8468 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}"
8469
8470 else
8471 ld_shlibs=no
8472 fi
8473
Lev Walkin8e8b5482004-06-17 23:42:48 +00008474 ;;
8475
8476 dgux*)
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_libdir_flag_spec='-L$libdir'
8479 hardcode_shlibpath_var=no
8480 ;;
8481
8482 freebsd1*)
8483 ld_shlibs=no
8484 ;;
8485
8486 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8487 # support. Future versions do this automatically, but an explicit c++rt0.o
8488 # does not break anything, and helps significantly (at the cost of a little
8489 # extra space).
8490 freebsd2.2*)
8491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8492 hardcode_libdir_flag_spec='-R$libdir'
8493 hardcode_direct=yes
8494 hardcode_shlibpath_var=no
8495 ;;
8496
8497 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8498 freebsd2*)
8499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8500 hardcode_direct=yes
8501 hardcode_minus_L=yes
8502 hardcode_shlibpath_var=no
8503 ;;
8504
8505 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008506 freebsd* | dragonfly*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008507 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008508 hardcode_libdir_flag_spec='-R$libdir'
8509 hardcode_direct=yes
8510 hardcode_shlibpath_var=no
8511 ;;
8512
8513 hpux9*)
8514 if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008515 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 +00008516 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008517 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 +00008518 fi
8519 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8520 hardcode_libdir_separator=:
8521 hardcode_direct=yes
8522
8523 # hardcode_minus_L: Not really in the search PATH,
8524 # but as the default location of the library.
8525 hardcode_minus_L=yes
8526 export_dynamic_flag_spec='${wl}-E'
8527 ;;
8528
Lev Walkinfbf1d282007-12-03 14:58:39 +00008529 hpux10*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8531 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 +00008532 else
8533 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8534 fi
8535 if test "$with_gnu_ld" = no; then
8536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008537 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008538 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00008539 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008540 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008541 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008542 # hardcode_minus_L: Not really in the search PATH,
8543 # but as the default location of the library.
8544 hardcode_minus_L=yes
8545 fi
8546 ;;
8547
8548 hpux11*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008549 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008550 case $host_cpu in
8551 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008552 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008554 ia64*)
Lev Walkin4c776e52010-11-08 02:07:31 -08008555 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008556 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008557 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08008558 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 +00008559 ;;
8560 esac
8561 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008562 case $host_cpu in
8563 hppa*64*)
8564 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8565 ;;
8566 ia64*)
8567 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008568 ;;
8569 *)
Lev Walkin4c776e52010-11-08 02:07:31 -08008570 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 +00008571 ;;
8572 esac
8573 fi
8574 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8576 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008577
Lev Walkinfbf1d282007-12-03 14:58:39 +00008578 case $host_cpu in
8579 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008580 hardcode_direct=no
8581 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008582 ;;
8583 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008584 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008585 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008586 export_dynamic_flag_spec='${wl}-E'
8587
8588 # hardcode_minus_L: Not really in the search PATH,
8589 # but as the default location of the library.
8590 hardcode_minus_L=yes
8591 ;;
8592 esac
8593 fi
8594 ;;
8595
8596 irix5* | irix6* | nonstopux*)
8597 if test "$GCC" = yes; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008598 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 -07008599 # Try to use the -exported_symbol ld option, if it does not
8600 # work, assume that -exports_file does not work either and
8601 # implicitly export all symbols.
Lev Walkin4c776e52010-11-08 02:07:31 -08008602 save_LDFLAGS="$LDFLAGS"
8603 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8604 cat >conftest.$ac_ext <<_ACEOF
8605int foo(void) {}
Lev Walkin4da95cf2010-10-16 02:46:32 -07008606_ACEOF
8607rm -f conftest.$ac_objext conftest$ac_exeext
8608if { (ac_try="$ac_link"
8609case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612esac
8613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_link") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08008620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest$ac_exeext &&
8624 $as_test_x conftest$ac_exeext; then
8625 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'
8626
Lev Walkin4da95cf2010-10-16 02:46:32 -07008627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
Lev Walkin4c776e52010-11-08 02:07:31 -08008631
Lev Walkin4da95cf2010-10-16 02:46:32 -07008632fi
8633
Lev Walkin4c776e52010-11-08 02:07:31 -08008634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07008635 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08008636 LDFLAGS="$save_LDFLAGS"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008637 else
Lev Walkin4c776e52010-11-08 02:07:31 -08008638 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'
8639 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 +00008640 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008641 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07008644 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008645 link_all_deplibs=yes
8646 ;;
8647
8648 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8651 else
8652 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8653 fi
8654 hardcode_libdir_flag_spec='-R$libdir'
8655 hardcode_direct=yes
8656 hardcode_shlibpath_var=no
8657 ;;
8658
8659 newsos6)
8660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_direct=yes
8662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8663 hardcode_libdir_separator=:
8664 hardcode_shlibpath_var=no
8665 ;;
8666
Lev Walkin4da95cf2010-10-16 02:46:32 -07008667 *nto* | *qnx*)
8668 ;;
8669
Lev Walkin8e8b5482004-06-17 23:42:48 +00008670 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008671 if test -f /usr/libexec/ld.so; then
8672 hardcode_direct=yes
8673 hardcode_shlibpath_var=no
8674 hardcode_direct_absolute=yes
8675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679 export_dynamic_flag_spec='${wl}-E'
8680 else
8681 case $host_os in
8682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_libdir_flag_spec='-R$libdir'
8685 ;;
8686 *)
8687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8688 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8689 ;;
8690 esac
8691 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008692 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008693 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008694 fi
8695 ;;
8696
8697 os2*)
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8700 allow_undefined_flag=unsupported
Lev Walkin4c776e52010-11-08 02:07:31 -08008701 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 -07008702 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008703 ;;
8704
8705 osf3*)
8706 if test "$GCC" = yes; then
8707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008708 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 +00008709 else
8710 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008711 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 +00008712 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008713 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8715 hardcode_libdir_separator=:
8716 ;;
8717
8718 osf4* | osf5*) # as osf3* with the addition of -msym flag
8719 if test "$GCC" = yes; then
8720 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008721 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 +00008722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723 else
8724 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkin4c776e52010-11-08 02:07:31 -08008725 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 -07008726 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 -08008727 $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 +00008728
8729 # Both c and cxx compiler support -rpath directly
8730 hardcode_libdir_flag_spec='-rpath $libdir'
8731 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008732 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008733 hardcode_libdir_separator=:
8734 ;;
8735
Lev Walkin8e8b5482004-06-17 23:42:48 +00008736 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008737 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008738 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008739 wlarc='${wl}'
Lev Walkin4c776e52010-11-08 02:07:31 -08008740 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 -07008741 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 -08008742 $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 +00008743 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008744 case `$CC -V 2>&1` in
8745 *"Compilers 5.0"*)
8746 wlarc=''
8747 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8750 ;;
8751 *)
8752 wlarc='${wl}'
8753 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8754 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8755 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8756 ;;
8757 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008758 fi
8759 hardcode_libdir_flag_spec='-R$libdir'
8760 hardcode_shlibpath_var=no
8761 case $host_os in
8762 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008763 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008764 # The compiler driver will combine and reorder linker options,
8765 # but understands `-z linker_flag'. GCC discards it without `$wl',
8766 # but is careful enough not to reorder.
8767 # Supported since Solaris 2.6 (maybe 2.5.1?)
8768 if test "$GCC" = yes; then
8769 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8770 else
8771 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8772 fi
8773 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008774 esac
8775 link_all_deplibs=yes
8776 ;;
8777
8778 sunos4*)
8779 if test "x$host_vendor" = xsequent; then
8780 # Use $CC to link under sequent, because it throws in some extra .o
8781 # files that make .init and .fini sections work.
8782 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8783 else
8784 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8785 fi
8786 hardcode_libdir_flag_spec='-L$libdir'
8787 hardcode_direct=yes
8788 hardcode_minus_L=yes
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 sysv4)
8793 case $host_vendor in
8794 sni)
8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796 hardcode_direct=yes # is this really true???
8797 ;;
8798 siemens)
8799 ## LD is ld it makes a PLAMLIB
8800 ## CC just makes a GrossModule.
8801 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8802 reload_cmds='$CC -r -o $output$reload_objs'
8803 hardcode_direct=no
8804 ;;
8805 motorola)
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8808 ;;
8809 esac
8810 runpath_var='LD_RUN_PATH'
8811 hardcode_shlibpath_var=no
8812 ;;
8813
8814 sysv4.3*)
8815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_shlibpath_var=no
8817 export_dynamic_flag_spec='-Bexport'
8818 ;;
8819
8820 sysv4*MP*)
8821 if test -d /usr/nec; then
8822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823 hardcode_shlibpath_var=no
8824 runpath_var=LD_RUN_PATH
8825 hardcode_runpath_var=yes
8826 ld_shlibs=yes
8827 fi
8828 ;;
8829
Lev Walkin4da95cf2010-10-16 02:46:32 -07008830 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008831 no_undefined_flag='${wl}-z,text'
8832 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008833 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008834 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008835
Lev Walkin8e8b5482004-06-17 23:42:48 +00008836 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8838 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 +00008839 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 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 +00008842 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008843 ;;
8844
Lev Walkinfbf1d282007-12-03 14:58:39 +00008845 sysv5* | sco3.2v5* | sco5v6*)
8846 # Note: We can NOT use -z defs as we might desire, because we do not
8847 # link with -lc, and that would cause any symbols used from libc to
8848 # always be unresolved, which means just about no library would
8849 # ever link correctly. If we're not using GNU ld we use -z text
8850 # though, which does catch some bad symbols but isn't as heavy-handed
8851 # as -z defs.
8852 no_undefined_flag='${wl}-z,text'
8853 allow_undefined_flag='${wl}-z,nodefs'
8854 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008855 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008856 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008857 hardcode_libdir_separator=':'
8858 link_all_deplibs=yes
8859 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008860 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008861
8862 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008863 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864 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 +00008865 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008866 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 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 +00008868 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008869 ;;
8870
8871 uts4*)
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 hardcode_shlibpath_var=no
8875 ;;
8876
8877 *)
8878 ld_shlibs=no
8879 ;;
8880 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008881
8882 if test x$host_vendor = xsni; then
8883 case $host in
8884 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8885 export_dynamic_flag_spec='${wl}-Blargedynsym'
8886 ;;
8887 esac
8888 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008889 fi
8890
Lev Walkin27fd0b62007-08-27 23:57:45 +00008891{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8892echo "${ECHO_T}$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008893test "$ld_shlibs" = no && can_build_shared=no
8894
Lev Walkin4da95cf2010-10-16 02:46:32 -07008895with_gnu_ld=$with_gnu_ld
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
Lev Walkin8e8b5482004-06-17 23:42:48 +00008911#
8912# Do we need to explicitly link libc?
8913#
8914case "x$archive_cmds_need_lc" in
8915x|xyes)
8916 # Assume -lc should be added
8917 archive_cmds_need_lc=yes
8918
8919 if test "$enable_shared" = yes && test "$GCC" = yes; then
8920 case $archive_cmds in
8921 *'~'*)
8922 # FIXME: we may have to deal with multi-command sequences.
8923 ;;
8924 '$CC '*)
8925 # Test whether the compiler implicitly links with -lc since on some
8926 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8927 # to ld, don't add -lc before -lgcc.
Lev Walkin27fd0b62007-08-27 23:57:45 +00008928 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8929echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08008930 $RM -r conftest*
8931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008932
Lev Walkin4c776e52010-11-08 02:07:31 -08008933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008934 (eval $ac_compile) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } 2>conftest.err; then
Lev Walkin4c776e52010-11-08 02:07:31 -08008938 soname=conftest
8939 lib=conftest
8940 libobjs=conftest.$ac_objext
8941 deplibs=
8942 wl=$lt_prog_compiler_wl
8943 pic_flag=$lt_prog_compiler_pic
8944 compiler_flags=-v
8945 linker_flags=-v
8946 verstring=
8947 output_objdir=.
8948 libname=conftest
8949 lt_save_allow_undefined_flag=$allow_undefined_flag
8950 allow_undefined_flag=
8951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008952 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }
Lev Walkin4c776e52010-11-08 02:07:31 -08008956 then
8957 archive_cmds_need_lc=no
8958 else
8959 archive_cmds_need_lc=yes
8960 fi
8961 allow_undefined_flag=$lt_save_allow_undefined_flag
8962 else
8963 cat conftest.err 1>&5
8964 fi
8965 $RM -r conftest*
8966 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8967echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008968 ;;
8969 esac
8970 fi
8971 ;;
8972esac
8973
Lev Walkin4da95cf2010-10-16 02:46:32 -07008974
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
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00009131echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07009132
9133if test "$GCC" = yes; then
9134 case $host_os in
9135 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9136 *) lt_awk_arg="/^libraries:/" ;;
9137 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009138 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9139 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009140 # if the path contains ";" then we assume it to be the separator
9141 # otherwise default to the standard path separator (i.e. ":") - it is
9142 # assumed that no part of a normal pathname contains ";" but that should
9143 # okay in the real world where ";" in dirpaths is itself problematic.
Lev Walkin4c776e52010-11-08 02:07:31 -08009144 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9145 else
9146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9147 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009148 # Ok, now we have the path, separated by spaces, we can step through it
9149 # and add multilib dir if necessary.
9150 lt_tmp_lt_search_path_spec=
9151 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9152 for lt_sys_path in $lt_search_path_spec; do
9153 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9155 else
9156 test -d "$lt_sys_path" && \
9157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9158 fi
9159 done
Lev Walkin4c776e52010-11-08 02:07:31 -08009160 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009161BEGIN {RS=" "; FS="/|\n";} {
9162 lt_foo="";
9163 lt_count=0;
9164 for (lt_i = NF; lt_i > 0; lt_i--) {
9165 if ($lt_i != "" && $lt_i != ".") {
9166 if ($lt_i == "..") {
9167 lt_count++;
9168 } else {
9169 if (lt_count == 0) {
9170 lt_foo="/" $lt_i lt_foo;
9171 } else {
9172 lt_count--;
9173 }
9174 }
9175 }
9176 }
9177 if (lt_foo != "") { lt_freq[lt_foo]++; }
9178 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9179}'`
Lev Walkin4c776e52010-11-08 02:07:31 -08009180 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009181else
9182 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9183fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009184library_names_spec=
9185libname_spec='lib$name'
9186soname_spec=
9187shrext_cmds=".so"
9188postinstall_cmds=
9189postuninstall_cmds=
9190finish_cmds=
9191finish_eval=
9192shlibpath_var=
9193shlibpath_overrides_runpath=unknown
9194version_type=none
9195dynamic_linker="$host_os ld.so"
9196sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009197need_lib_prefix=unknown
9198hardcode_into_libs=no
9199
9200# when you set need_version to no, make sure it does not cause -set_version
9201# flags to be left without arguments
9202need_version=unknown
9203
9204case $host_os in
9205aix3*)
9206 version_type=linux
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9208 shlibpath_var=LIBPATH
9209
9210 # AIX 3 has no versioning support, so we append a major version to the name.
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 ;;
9213
Lev Walkin4da95cf2010-10-16 02:46:32 -07009214aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 hardcode_into_libs=yes
9219 if test "$host_cpu" = ia64; then
9220 # AIX 5 supports IA64
9221 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 else
9224 # With GCC up to 2.95.x, collect2 would create an import file
9225 # for dependence libraries. The import file would start with
9226 # the line `#! .'. This would cause the generated library to
9227 # depend on `.', always an invalid library. This was fixed in
9228 # development snapshots of GCC prior to 3.0.
9229 case $host_os in
9230 aix4 | aix4.[01] | aix4.[01].*)
9231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9232 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009233 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009234 :
9235 else
9236 can_build_shared=no
9237 fi
9238 ;;
9239 esac
9240 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9241 # soname into executable. Probably we can add versioning support to
9242 # collect2, so additional links can be useful in future.
9243 if test "$aix_use_runtimelinking" = yes; then
9244 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9245 # instead of lib<name>.a to let people know that these are not
9246 # typical AIX shared libraries.
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 else
9249 # We preserve .a as extension for shared libraries through AIX4.2
9250 # and later when we are not doing run time linking.
9251 library_names_spec='${libname}${release}.a $libname.a'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9253 fi
9254 shlibpath_var=LIBPATH
9255 fi
9256 ;;
9257
9258amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009259 case $host_cpu in
9260 powerpc)
9261 # Since July 2007 AmigaOS4 officially supports .so libraries.
9262 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 ;;
9265 m68k)
9266 library_names_spec='$libname.ixlibrary $libname.a'
9267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Lev Walkin4c776e52010-11-08 02:07:31 -08009268 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 -07009269 ;;
9270 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009271 ;;
9272
9273beos*)
9274 library_names_spec='${libname}${shared_ext}'
9275 dynamic_linker="$host_os ld.so"
9276 shlibpath_var=LIBRARY_PATH
9277 ;;
9278
Lev Walkinfbf1d282007-12-03 14:58:39 +00009279bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009280 version_type=linux
9281 need_version=no
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9288 # the default ld.so.conf also contains /usr/contrib/lib and
9289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9290 # libtool to hard-code these into programs
9291 ;;
9292
Lev Walkin4c776e52010-11-08 02:07:31 -08009293cygwin* | mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009294 version_type=windows
9295 shrext_cmds=".dll"
9296 need_version=no
9297 need_lib_prefix=no
9298
Lev Walkin4c776e52010-11-08 02:07:31 -08009299 case $GCC,$host_os in
9300 yes,cygwin* | yes,mingw* | yes,pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009301 library_names_spec='$libname.dll.a'
9302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9303 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +00009305 dldir=$destdir/`dirname \$dlpath`~
9306 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +00009307 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009308 chmod a+x \$dldir/$dlname~
9309 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9310 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9311 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9313 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009314 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009315 shlibpath_overrides_runpath=yes
9316
9317 case $host_os in
9318 cygwin*)
9319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9320 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 -08009321 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009322 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -08009323 mingw*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009324 # MinGW DLLs use traditional 'lib' prefix
9325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin4c776e52010-11-08 02:07:31 -08009326 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9327 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9328 # It is most probably a Windows format PATH printed by
9329 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9330 # path with ; separators, and with drive letters. We can handle the
9331 # drive letters (cygwin fileutils understands them), so leave them,
9332 # especially as we might pass files found there to a mingw objdump,
9333 # which wouldn't understand a cygwinified path. Ahh.
9334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9335 else
9336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9337 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009338 ;;
9339 pw32*)
9340 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009341 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 +00009342 ;;
9343 esac
9344 ;;
9345
9346 *)
9347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9348 ;;
9349 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009350 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009351 # FIXME: first we should search . and the directory the executable is in
9352 shlibpath_var=PATH
9353 ;;
9354
9355darwin* | rhapsody*)
9356 dynamic_linker="$host_os dyld"
9357 version_type=darwin
9358 need_lib_prefix=no
9359 need_version=no
Lev Walkin4c776e52010-11-08 02:07:31 -08009360 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009361 soname_spec='${libname}${release}${major}$shared_ext'
9362 shlibpath_overrides_runpath=yes
9363 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +00009364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009365
9366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9368 ;;
9369
9370dgux*)
9371 version_type=linux
9372 need_lib_prefix=no
9373 need_version=no
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 ;;
9378
9379freebsd1*)
9380 dynamic_linker=no
9381 ;;
9382
Lev Walkinfbf1d282007-12-03 14:58:39 +00009383freebsd* | dragonfly*)
9384 # DragonFly does not have aout. When/if they implement a new
9385 # versioning mechanism, adjust this.
9386 if test -x /usr/bin/objformat; then
9387 objformat=`/usr/bin/objformat`
9388 else
9389 case $host_os in
9390 freebsd[123]*) objformat=aout ;;
9391 *) objformat=elf ;;
9392 esac
9393 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009394 version_type=freebsd-$objformat
9395 case $version_type in
9396 freebsd-elf*)
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9398 need_version=no
9399 need_lib_prefix=no
9400 ;;
9401 freebsd-*)
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9403 need_version=yes
9404 ;;
9405 esac
9406 shlibpath_var=LD_LIBRARY_PATH
9407 case $host_os in
9408 freebsd2*)
9409 shlibpath_overrides_runpath=yes
9410 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009411 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009412 shlibpath_overrides_runpath=yes
9413 hardcode_into_libs=yes
9414 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009415 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9416 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009417 shlibpath_overrides_runpath=no
9418 hardcode_into_libs=yes
9419 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07009420 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +00009421 shlibpath_overrides_runpath=yes
9422 hardcode_into_libs=yes
9423 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009424 esac
9425 ;;
9426
9427gnu*)
9428 version_type=linux
9429 need_lib_prefix=no
9430 need_version=no
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 hardcode_into_libs=yes
9435 ;;
9436
9437hpux9* | hpux10* | hpux11*)
9438 # Give a soname corresponding to the major version so that dld.sl refuses to
9439 # link against other versions.
9440 version_type=sunos
9441 need_lib_prefix=no
9442 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009443 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00009444 ia64*)
9445 shrext_cmds='.so'
9446 hardcode_into_libs=yes
9447 dynamic_linker="$host_os dld.so"
9448 shlibpath_var=LD_LIBRARY_PATH
9449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 if test "X$HPUX_IA64_MODE" = X32; then
9453 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9454 else
9455 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9456 fi
9457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9458 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07009459 hppa*64*)
9460 shrext_cmds='.sl'
9461 hardcode_into_libs=yes
9462 dynamic_linker="$host_os dld.sl"
9463 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9469 ;;
9470 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009471 shrext_cmds='.sl'
9472 dynamic_linker="$host_os dld.sl"
9473 shlibpath_var=SHLIB_PATH
9474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 ;;
9478 esac
Lev Walkin4c776e52010-11-08 02:07:31 -08009479 # HP-UX runs *really* slowly unless shared libraries are mode 555.
Lev Walkin8e8b5482004-06-17 23:42:48 +00009480 postinstall_cmds='chmod 555 $lib'
9481 ;;
9482
Lev Walkin4da95cf2010-10-16 02:46:32 -07009483interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009484 version_type=linux
9485 need_lib_prefix=no
9486 need_version=no
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=no
9492 hardcode_into_libs=yes
9493 ;;
9494
Lev Walkin8e8b5482004-06-17 23:42:48 +00009495irix5* | irix6* | nonstopux*)
9496 case $host_os in
9497 nonstopux*) version_type=nonstopux ;;
9498 *)
9499 if test "$lt_cv_prog_gnu_ld" = yes; then
9500 version_type=linux
9501 else
9502 version_type=irix
9503 fi ;;
9504 esac
9505 need_lib_prefix=no
9506 need_version=no
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9509 case $host_os in
9510 irix5* | nonstopux*)
9511 libsuff= shlibsuff=
9512 ;;
9513 *)
9514 case $LD in # libtool.m4 will add one of these switches to LD
9515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9516 libsuff= shlibsuff= libmagic=32-bit;;
9517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9518 libsuff=32 shlibsuff=N32 libmagic=N32;;
9519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9520 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9521 *) libsuff= shlibsuff= libmagic=never-match;;
9522 esac
9523 ;;
9524 esac
9525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9526 shlibpath_overrides_runpath=no
9527 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9528 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9529 hardcode_into_libs=yes
9530 ;;
9531
9532# No shared lib support for Linux oldld, aout, or coff.
9533linux*oldld* | linux*aout* | linux*coff*)
9534 dynamic_linker=no
9535 ;;
9536
9537# This must be Linux ELF.
Lev Walkin4c776e52010-11-08 02:07:31 -08009538linux* | k*bsd*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009539 version_type=linux
9540 need_lib_prefix=no
9541 need_version=no
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9545 shlibpath_var=LD_LIBRARY_PATH
9546 shlibpath_overrides_runpath=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009547 # Some binutils ld are patched to set DT_RUNPATH
Lev Walkin4c776e52010-11-08 02:07:31 -08009548 save_LDFLAGS=$LDFLAGS
9549 save_libdir=$libdir
9550 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9551 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9552 cat >conftest.$ac_ext <<_ACEOF
Lev Walkin4da95cf2010-10-16 02:46:32 -07009553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
9558
9559int
9560main ()
9561{
9562
9563 ;
9564 return 0;
9565}
9566_ACEOF
9567rm -f conftest.$ac_objext conftest$ac_exeext
9568if { (ac_try="$ac_link"
9569case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572esac
9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_link") 2>conftest.er1
9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -08009580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest$ac_exeext &&
9584 $as_test_x conftest$ac_exeext; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009585 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
Lev Walkin4c776e52010-11-08 02:07:31 -08009586 shlibpath_overrides_runpath=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009587fi
9588
9589else
9590 echo "$as_me: failed program was:" >&5
9591sed 's/^/| /' conftest.$ac_ext >&5
9592
9593
9594fi
9595
Lev Walkin4c776e52010-11-08 02:07:31 -08009596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin4da95cf2010-10-16 02:46:32 -07009597 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -08009598 LDFLAGS=$save_LDFLAGS
9599 libdir=$save_libdir
Lev Walkin4da95cf2010-10-16 02:46:32 -07009600
Lev Walkin8e8b5482004-06-17 23:42:48 +00009601 # This implies no fast_install, which is unacceptable.
9602 # Some rework will be needed to allow for fast_install
9603 # before this can be enabled.
9604 hardcode_into_libs=yes
9605
9606 # Append ld.so.conf contents to the search path
9607 if test -f /etc/ld.so.conf; then
Lev Walkin4c776e52010-11-08 02:07:31 -08009608 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 +00009609 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9610 fi
9611
9612 # We used to test for /lib/ld.so.1 and disable shared libraries on
9613 # powerpc, because MkLinux only supported shared libraries with the
9614 # GNU dynamic linker. Since this was broken with cross compilers,
9615 # most powerpc-linux boxes support dynamic linking these days and
9616 # people can always --disable-shared, the test was removed, and we
9617 # assume the GNU/Linux dynamic linker is in use.
9618 dynamic_linker='GNU/Linux ld.so'
9619 ;;
9620
Lev Walkin8e8b5482004-06-17 23:42:48 +00009621netbsd*)
9622 version_type=sunos
9623 need_lib_prefix=no
9624 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9628 dynamic_linker='NetBSD (a.out) ld.so'
9629 else
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 dynamic_linker='NetBSD ld.elf_so'
9633 fi
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=yes
9636 hardcode_into_libs=yes
9637 ;;
9638
9639newsos6)
9640 version_type=linux
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=yes
9644 ;;
9645
Lev Walkin4da95cf2010-10-16 02:46:32 -07009646*nto* | *qnx*)
9647 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +00009648 need_lib_prefix=no
9649 need_version=no
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009653 shlibpath_overrides_runpath=no
9654 hardcode_into_libs=yes
9655 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009656 ;;
9657
9658openbsd*)
9659 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +00009660 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009661 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009662 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9663 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07009664 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9665 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009666 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9669 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009670 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 +00009671 case $host_os in
9672 openbsd2.[89] | openbsd2.[89].*)
9673 shlibpath_overrides_runpath=no
9674 ;;
9675 *)
9676 shlibpath_overrides_runpath=yes
9677 ;;
9678 esac
9679 else
9680 shlibpath_overrides_runpath=yes
9681 fi
9682 ;;
9683
9684os2*)
9685 libname_spec='$name'
9686 shrext_cmds=".dll"
9687 need_lib_prefix=no
9688 library_names_spec='$libname${shared_ext} $libname.a'
9689 dynamic_linker='OS/2 ld.exe'
9690 shlibpath_var=LIBPATH
9691 ;;
9692
9693osf3* | osf4* | osf5*)
9694 version_type=osf
9695 need_lib_prefix=no
9696 need_version=no
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9701 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9702 ;;
9703
Lev Walkin4da95cf2010-10-16 02:46:32 -07009704rdos*)
9705 dynamic_linker=no
9706 ;;
9707
Lev Walkin8e8b5482004-06-17 23:42:48 +00009708solaris*)
9709 version_type=linux
9710 need_lib_prefix=no
9711 need_version=no
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 shlibpath_overrides_runpath=yes
9716 hardcode_into_libs=yes
9717 # ldd complains unless libraries are executable
9718 postinstall_cmds='chmod +x $lib'
9719 ;;
9720
9721sunos4*)
9722 version_type=sunos
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9724 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9727 if test "$with_gnu_ld" = yes; then
9728 need_lib_prefix=no
9729 fi
9730 need_version=yes
9731 ;;
9732
Lev Walkinfbf1d282007-12-03 14:58:39 +00009733sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009734 version_type=linux
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736 soname_spec='${libname}${release}${shared_ext}$major'
9737 shlibpath_var=LD_LIBRARY_PATH
9738 case $host_vendor in
9739 sni)
9740 shlibpath_overrides_runpath=no
9741 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009742 runpath_var=LD_RUN_PATH
9743 ;;
9744 siemens)
9745 need_lib_prefix=no
9746 ;;
9747 motorola)
9748 need_lib_prefix=no
9749 need_version=no
9750 shlibpath_overrides_runpath=no
9751 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9752 ;;
9753 esac
9754 ;;
9755
9756sysv4*MP*)
9757 if test -d /usr/nec ;then
9758 version_type=linux
9759 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9760 soname_spec='$libname${shared_ext}.$major'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 fi
9763 ;;
9764
Lev Walkinfbf1d282007-12-03 14:58:39 +00009765sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9766 version_type=freebsd-elf
9767 need_lib_prefix=no
9768 need_version=no
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07009772 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009773 hardcode_into_libs=yes
9774 if test "$with_gnu_ld" = yes; then
9775 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009776 else
9777 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009778 case $host_os in
9779 sco3.2v5*)
9780 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9781 ;;
9782 esac
9783 fi
9784 sys_lib_dlsearch_path_spec='/usr/lib'
9785 ;;
9786
Lev Walkin4da95cf2010-10-16 02:46:32 -07009787tpf*)
9788 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9789 version_type=linux
9790 need_lib_prefix=no
9791 need_version=no
Lev Walkin4c776e52010-11-08 02:07:31 -08009792 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=no
9795 hardcode_into_libs=yes
9796 ;;
9797
Lev Walkin8e8b5482004-06-17 23:42:48 +00009798uts4*)
9799 version_type=linux
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 ;;
9804
9805*)
9806 dynamic_linker=no
9807 ;;
9808esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00009809{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9810echo "${ECHO_T}$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009811test "$dynamic_linker" = no && can_build_shared=no
9812
Lev Walkinfbf1d282007-12-03 14:58:39 +00009813variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9814if test "$GCC" = yes; then
9815 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9816fi
9817
Lev Walkin4da95cf2010-10-16 02:46:32 -07009818if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9819 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9820fi
9821if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9822 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9823fi
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
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
Lev Walkin4da95cf2010-10-16 02:46:32 -07009911 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00009912echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009913hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -07009914if test -n "$hardcode_libdir_flag_spec" ||
9915 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +00009916 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009917
Lev Walkin4da95cf2010-10-16 02:46:32 -07009918 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +00009919 if test "$hardcode_direct" != no &&
9920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9921 # have to relink, otherwise we might link with an installed library
9922 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -07009923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00009924 test "$hardcode_minus_L" != no; then
9925 # Linking always hardcodes the temporary library directory.
9926 hardcode_action=relink
9927 else
9928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9929 hardcode_action=immediate
9930 fi
9931else
9932 # We cannot hardcode anything, or else we can only hardcode existing
9933 # directories.
9934 hardcode_action=unsupported
9935fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00009936{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9937echo "${ECHO_T}$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009938
Lev Walkin4da95cf2010-10-16 02:46:32 -07009939if test "$hardcode_action" = relink ||
9940 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009941 # Fast installation is not supported
9942 enable_fast_install=no
9943elif test "$shlibpath_overrides_runpath" = yes ||
9944 test "$enable_shared" = no; then
9945 # Fast installation is not necessary
9946 enable_fast_install=needless
9947fi
9948
Lev Walkin8e8b5482004-06-17 23:42:48 +00009949
Lev Walkin4da95cf2010-10-16 02:46:32 -07009950
9951
9952
9953
9954 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009955 enable_dlopen=unknown
9956 enable_dlopen_self=unknown
9957 enable_dlopen_self_static=unknown
9958else
9959 lt_cv_dlopen=no
9960 lt_cv_dlopen_libs=
9961
9962 case $host_os in
9963 beos*)
9964 lt_cv_dlopen="load_add_on"
9965 lt_cv_dlopen_libs=
9966 lt_cv_dlopen_self=yes
9967 ;;
9968
Lev Walkin4c776e52010-11-08 02:07:31 -08009969 mingw* | pw32*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009970 lt_cv_dlopen="LoadLibrary"
9971 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -07009972 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009973
9974 cygwin*)
9975 lt_cv_dlopen="dlopen"
9976 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -07009977 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009978
9979 darwin*)
9980 # if libdl is installed we need to link against it
Lev Walkin27fd0b62007-08-27 23:57:45 +00009981 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9982echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009983if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986 ac_check_lib_save_LIBS=$LIBS
9987LIBS="-ldl $LIBS"
9988cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h. */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
9993/* end confdefs.h. */
9994
Lev Walkin27fd0b62007-08-27 23:57:45 +00009995/* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00009998#ifdef __cplusplus
9999extern "C"
10000#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010001char dlopen ();
10002int
10003main ()
10004{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010005return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010006 ;
10007 return 0;
10008}
10009_ACEOF
10010rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010011if { (ac_try="$ac_link"
10012case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015esac
10016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010018 ac_status=$?
10019 grep -v '^ *+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010023 (exit $ac_status); } && {
10024 test -z "$ac_c_werror_flag" ||
10025 test ! -s conftest.err
10026 } && test -s conftest$ac_exeext &&
10027 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010028 ac_cv_lib_dl_dlopen=yes
10029else
10030 echo "$as_me: failed program was:" >&5
10031sed 's/^/| /' conftest.$ac_ext >&5
10032
Lev Walkin27fd0b62007-08-27 23:57:45 +000010033 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010034fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010035
Lev Walkin4c776e52010-11-08 02:07:31 -080010036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010037 conftest$ac_exeext conftest.$ac_ext
10038LIBS=$ac_check_lib_save_LIBS
10039fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010040{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10041echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010042if test $ac_cv_lib_dl_dlopen = yes; then
10043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10044else
10045
10046 lt_cv_dlopen="dyld"
10047 lt_cv_dlopen_libs=
10048 lt_cv_dlopen_self=yes
10049
10050fi
10051
Lev Walkin4da95cf2010-10-16 02:46:32 -070010052 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010053
10054 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000010055 { echo "$as_me:$LINENO: checking for shl_load" >&5
10056echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010057if test "${ac_cv_func_shl_load+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 cat >conftest.$ac_ext <<_ACEOF
10061/* confdefs.h. */
10062_ACEOF
10063cat confdefs.h >>conftest.$ac_ext
10064cat >>conftest.$ac_ext <<_ACEOF
10065/* end confdefs.h. */
10066/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10068#define shl_load innocuous_shl_load
10069
10070/* System header to define __stub macros and hopefully few prototypes,
10071 which can conflict with char shl_load (); below.
10072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10073 <limits.h> exists even on freestanding compilers. */
10074
10075#ifdef __STDC__
10076# include <limits.h>
10077#else
10078# include <assert.h>
10079#endif
10080
10081#undef shl_load
10082
Lev Walkin27fd0b62007-08-27 23:57:45 +000010083/* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010086#ifdef __cplusplus
10087extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010088#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010089char shl_load ();
10090/* The GNU C library defines this for functions which it implements
10091 to always fail with ENOSYS. Some functions are actually named
10092 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000010093#if defined __stub_shl_load || defined __stub___shl_load
Lev Walkin8e8b5482004-06-17 23:42:48 +000010094choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000010095#endif
10096
10097int
10098main ()
10099{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010100return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010101 ;
10102 return 0;
10103}
10104_ACEOF
10105rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010106if { (ac_try="$ac_link"
10107case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest$ac_exeext &&
10122 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010123 ac_cv_func_shl_load=yes
10124else
10125 echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
Lev Walkin27fd0b62007-08-27 23:57:45 +000010128 ac_cv_func_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010129fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010130
Lev Walkin4c776e52010-11-08 02:07:31 -080010131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010132 conftest$ac_exeext conftest.$ac_ext
10133fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010134{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10135echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010136if test $ac_cv_func_shl_load = yes; then
10137 lt_cv_dlopen="shl_load"
10138else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010139 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10140echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010141if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144 ac_check_lib_save_LIBS=$LIBS
10145LIBS="-ldld $LIBS"
10146cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h. */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h. */
10152
Lev Walkin27fd0b62007-08-27 23:57:45 +000010153/* Override any GCC internal prototype to avoid an error.
10154 Use char because int might match the return type of a GCC
10155 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010156#ifdef __cplusplus
10157extern "C"
10158#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010159char shl_load ();
10160int
10161main ()
10162{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010163return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010164 ;
10165 return 0;
10166}
10167_ACEOF
10168rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010169if { (ac_try="$ac_link"
10170case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest$ac_exeext &&
10185 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010186 ac_cv_lib_dld_shl_load=yes
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
Lev Walkin27fd0b62007-08-27 23:57:45 +000010191 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010192fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010193
Lev Walkin4c776e52010-11-08 02:07:31 -080010194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010195 conftest$ac_exeext conftest.$ac_ext
10196LIBS=$ac_check_lib_save_LIBS
10197fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010198{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10199echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010200if test $ac_cv_lib_dld_shl_load = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010201 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010202else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010203 { echo "$as_me:$LINENO: checking for dlopen" >&5
10204echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010205if test "${ac_cv_func_dlopen+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207else
10208 cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h. */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h. */
10214/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10216#define dlopen innocuous_dlopen
10217
10218/* System header to define __stub macros and hopefully few prototypes,
10219 which can conflict with char dlopen (); below.
10220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10221 <limits.h> exists even on freestanding compilers. */
10222
10223#ifdef __STDC__
10224# include <limits.h>
10225#else
10226# include <assert.h>
10227#endif
10228
10229#undef dlopen
10230
Lev Walkin27fd0b62007-08-27 23:57:45 +000010231/* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010234#ifdef __cplusplus
10235extern "C"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010236#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010237char dlopen ();
10238/* The GNU C library defines this for functions which it implements
10239 to always fail with ENOSYS. Some functions are actually named
10240 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000010241#if defined __stub_dlopen || defined __stub___dlopen
Lev Walkin8e8b5482004-06-17 23:42:48 +000010242choke me
Lev Walkin8e8b5482004-06-17 23:42:48 +000010243#endif
10244
10245int
10246main ()
10247{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010248return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010249 ;
10250 return 0;
10251}
10252_ACEOF
10253rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010254if { (ac_try="$ac_link"
10255case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010271 ac_cv_func_dlopen=yes
10272else
10273 echo "$as_me: failed program was:" >&5
10274sed 's/^/| /' conftest.$ac_ext >&5
10275
Lev Walkin27fd0b62007-08-27 23:57:45 +000010276 ac_cv_func_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010277fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010278
Lev Walkin4c776e52010-11-08 02:07:31 -080010279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010280 conftest$ac_exeext conftest.$ac_ext
10281fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010282{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10283echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010284if test $ac_cv_func_dlopen = yes; then
10285 lt_cv_dlopen="dlopen"
10286else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010287 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10288echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010289if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292 ac_check_lib_save_LIBS=$LIBS
10293LIBS="-ldl $LIBS"
10294cat >conftest.$ac_ext <<_ACEOF
10295/* confdefs.h. */
10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h. */
10300
Lev Walkin27fd0b62007-08-27 23:57:45 +000010301/* Override any GCC internal prototype to avoid an error.
10302 Use char because int might match the return type of a GCC
10303 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010304#ifdef __cplusplus
10305extern "C"
10306#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010307char dlopen ();
10308int
10309main ()
10310{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010311return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010312 ;
10313 return 0;
10314}
10315_ACEOF
10316rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010317if { (ac_try="$ac_link"
10318case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321esac
10322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010329 (exit $ac_status); } && {
10330 test -z "$ac_c_werror_flag" ||
10331 test ! -s conftest.err
10332 } && test -s conftest$ac_exeext &&
10333 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010334 ac_cv_lib_dl_dlopen=yes
10335else
10336 echo "$as_me: failed program was:" >&5
10337sed 's/^/| /' conftest.$ac_ext >&5
10338
Lev Walkin27fd0b62007-08-27 23:57:45 +000010339 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010340fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010341
Lev Walkin4c776e52010-11-08 02:07:31 -080010342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010343 conftest$ac_exeext conftest.$ac_ext
10344LIBS=$ac_check_lib_save_LIBS
10345fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010346{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10347echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010348if test $ac_cv_lib_dl_dlopen = yes; then
10349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10350else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010351 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10352echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010353if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355else
10356 ac_check_lib_save_LIBS=$LIBS
10357LIBS="-lsvld $LIBS"
10358cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364
Lev Walkin27fd0b62007-08-27 23:57:45 +000010365/* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010368#ifdef __cplusplus
10369extern "C"
10370#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010371char dlopen ();
10372int
10373main ()
10374{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010375return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010381if { (ac_try="$ac_link"
10382case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385esac
10386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010388 ac_status=$?
10389 grep -v '^ *+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest$ac_exeext &&
10397 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010398 ac_cv_lib_svld_dlopen=yes
10399else
10400 echo "$as_me: failed program was:" >&5
10401sed 's/^/| /' conftest.$ac_ext >&5
10402
Lev Walkin27fd0b62007-08-27 23:57:45 +000010403 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010404fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010405
Lev Walkin4c776e52010-11-08 02:07:31 -080010406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010407 conftest$ac_exeext conftest.$ac_ext
10408LIBS=$ac_check_lib_save_LIBS
10409fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010410{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10411echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010412if test $ac_cv_lib_svld_dlopen = yes; then
10413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10414else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010415 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10416echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010417if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420 ac_check_lib_save_LIBS=$LIBS
10421LIBS="-ldld $LIBS"
10422cat >conftest.$ac_ext <<_ACEOF
10423/* confdefs.h. */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h. */
10428
Lev Walkin27fd0b62007-08-27 23:57:45 +000010429/* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010432#ifdef __cplusplus
10433extern "C"
10434#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010435char dld_link ();
10436int
10437main ()
10438{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010439return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010440 ;
10441 return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000010445if { (ac_try="$ac_link"
10446case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449esac
10450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000010452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080010457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext &&
10461 $as_test_x conftest$ac_exeext; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010462 ac_cv_lib_dld_dld_link=yes
10463else
10464 echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
Lev Walkin27fd0b62007-08-27 23:57:45 +000010467 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010468fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010469
Lev Walkin4c776e52010-11-08 02:07:31 -080010470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000010471 conftest$ac_exeext conftest.$ac_ext
10472LIBS=$ac_check_lib_save_LIBS
10473fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010474{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10475echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010476if test $ac_cv_lib_dld_dld_link = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -070010477 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010478fi
10479
10480
10481fi
10482
10483
10484fi
10485
10486
10487fi
10488
10489
10490fi
10491
10492
10493fi
10494
10495 ;;
10496 esac
10497
10498 if test "x$lt_cv_dlopen" != xno; then
10499 enable_dlopen=yes
10500 else
10501 enable_dlopen=no
10502 fi
10503
10504 case $lt_cv_dlopen in
10505 dlopen)
10506 save_CPPFLAGS="$CPPFLAGS"
10507 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10508
10509 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010510 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010511
10512 save_LIBS="$LIBS"
10513 LIBS="$lt_cv_dlopen_libs $LIBS"
10514
Lev Walkin27fd0b62007-08-27 23:57:45 +000010515 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10516echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010517if test "${lt_cv_dlopen_self+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 if test "$cross_compiling" = yes; then :
10521 lt_cv_dlopen_self=cross
10522else
10523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10524 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010525 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkin4c776e52010-11-08 02:07:31 -080010526#line 10526 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010527#include "confdefs.h"
10528
10529#if HAVE_DLFCN_H
10530#include <dlfcn.h>
10531#endif
10532
10533#include <stdio.h>
10534
10535#ifdef RTLD_GLOBAL
10536# define LT_DLGLOBAL RTLD_GLOBAL
10537#else
10538# ifdef DL_GLOBAL
10539# define LT_DLGLOBAL DL_GLOBAL
10540# else
10541# define LT_DLGLOBAL 0
10542# endif
10543#endif
10544
10545/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10546 find out it does not work in some platform. */
10547#ifndef LT_DLLAZY_OR_NOW
10548# ifdef RTLD_LAZY
10549# define LT_DLLAZY_OR_NOW RTLD_LAZY
10550# else
10551# ifdef DL_LAZY
10552# define LT_DLLAZY_OR_NOW DL_LAZY
10553# else
10554# ifdef RTLD_NOW
10555# define LT_DLLAZY_OR_NOW RTLD_NOW
10556# else
10557# ifdef DL_NOW
10558# define LT_DLLAZY_OR_NOW DL_NOW
10559# else
10560# define LT_DLLAZY_OR_NOW 0
10561# endif
10562# endif
10563# endif
10564# endif
10565#endif
10566
Lev Walkin4c776e52010-11-08 02:07:31 -080010567#ifdef __cplusplus
10568extern "C" void exit (int);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010569#endif
10570
Lev Walkin4c776e52010-11-08 02:07:31 -080010571void fnord() { int i=42;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000010572int main ()
10573{
10574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10575 int status = $lt_dlunknown;
10576
10577 if (self)
10578 {
10579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4c776e52010-11-08 02:07:31 -080010580 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010581 /* dlclose (self); */
10582 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010583 else
10584 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000010585
Lev Walkin4c776e52010-11-08 02:07:31 -080010586 exit (status);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010587}
Lev Walkin4da95cf2010-10-16 02:46:32 -070010588_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000010589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 (eval $ac_link) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010594 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000010595 lt_status=$?
10596 case x$lt_status in
10597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010600 esac
10601 else :
10602 # compilation failed
10603 lt_cv_dlopen_self=no
10604 fi
10605fi
10606rm -fr conftest*
10607
10608
10609fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010610{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10611echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010612
10613 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkin27fd0b62007-08-27 23:57:45 +000010615 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10616echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010617if test "${lt_cv_dlopen_self_static+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620 if test "$cross_compiling" = yes; then :
10621 lt_cv_dlopen_self_static=cross
10622else
10623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10624 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010625 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkin4c776e52010-11-08 02:07:31 -080010626#line 10626 "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010627#include "confdefs.h"
10628
10629#if HAVE_DLFCN_H
10630#include <dlfcn.h>
10631#endif
10632
10633#include <stdio.h>
10634
10635#ifdef RTLD_GLOBAL
10636# define LT_DLGLOBAL RTLD_GLOBAL
10637#else
10638# ifdef DL_GLOBAL
10639# define LT_DLGLOBAL DL_GLOBAL
10640# else
10641# define LT_DLGLOBAL 0
10642# endif
10643#endif
10644
10645/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10646 find out it does not work in some platform. */
10647#ifndef LT_DLLAZY_OR_NOW
10648# ifdef RTLD_LAZY
10649# define LT_DLLAZY_OR_NOW RTLD_LAZY
10650# else
10651# ifdef DL_LAZY
10652# define LT_DLLAZY_OR_NOW DL_LAZY
10653# else
10654# ifdef RTLD_NOW
10655# define LT_DLLAZY_OR_NOW RTLD_NOW
10656# else
10657# ifdef DL_NOW
10658# define LT_DLLAZY_OR_NOW DL_NOW
10659# else
10660# define LT_DLLAZY_OR_NOW 0
10661# endif
10662# endif
10663# endif
10664# endif
10665#endif
10666
Lev Walkin4c776e52010-11-08 02:07:31 -080010667#ifdef __cplusplus
10668extern "C" void exit (int);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010669#endif
10670
Lev Walkin4c776e52010-11-08 02:07:31 -080010671void fnord() { int i=42;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000010672int main ()
10673{
10674 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10675 int status = $lt_dlunknown;
10676
10677 if (self)
10678 {
10679 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkin4c776e52010-11-08 02:07:31 -080010680 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010681 /* dlclose (self); */
10682 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010683 else
10684 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000010685
Lev Walkin4c776e52010-11-08 02:07:31 -080010686 exit (status);
Lev Walkin8e8b5482004-06-17 23:42:48 +000010687}
Lev Walkin4da95cf2010-10-16 02:46:32 -070010688_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +000010689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690 (eval $ac_link) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000010694 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000010695 lt_status=$?
10696 case x$lt_status in
10697 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10698 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010699 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010700 esac
10701 else :
10702 # compilation failed
10703 lt_cv_dlopen_self_static=no
10704 fi
10705fi
10706rm -fr conftest*
10707
10708
10709fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000010710{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10711echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010712 fi
10713
10714 CPPFLAGS="$save_CPPFLAGS"
10715 LDFLAGS="$save_LDFLAGS"
10716 LIBS="$save_LIBS"
10717 ;;
10718 esac
10719
10720 case $lt_cv_dlopen_self in
10721 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10722 *) enable_dlopen_self=unknown ;;
10723 esac
10724
10725 case $lt_cv_dlopen_self_static in
10726 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10727 *) enable_dlopen_self_static=unknown ;;
10728 esac
10729fi
10730
10731
Lev Walkin8e8b5482004-06-17 23:42:48 +000010732
Lev Walkin8e8b5482004-06-17 23:42:48 +000010733
Lev Walkin8e8b5482004-06-17 23:42:48 +000010734
Lev Walkin8e8b5482004-06-17 23:42:48 +000010735
Lev Walkin8e8b5482004-06-17 23:42:48 +000010736
Lev Walkin8e8b5482004-06-17 23:42:48 +000010737
Lev Walkin8e8b5482004-06-17 23:42:48 +000010738
Lev Walkin8e8b5482004-06-17 23:42:48 +000010739
Lev Walkin8e8b5482004-06-17 23:42:48 +000010740
Lev Walkin8e8b5482004-06-17 23:42:48 +000010741
Lev Walkin8e8b5482004-06-17 23:42:48 +000010742
Lev Walkin8e8b5482004-06-17 23:42:48 +000010743
Lev Walkin8e8b5482004-06-17 23:42:48 +000010744
Lev Walkin8e8b5482004-06-17 23:42:48 +000010745
Lev Walkin8e8b5482004-06-17 23:42:48 +000010746
Lev Walkin4da95cf2010-10-16 02:46:32 -070010747striplib=
10748old_striplib=
10749{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10750echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10751if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10754 { echo "$as_me:$LINENO: result: yes" >&5
10755echo "${ECHO_T}yes" >&6; }
10756else
10757# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000010758 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010759 darwin*)
10760 if test -n "$STRIP" ; then
10761 striplib="$STRIP -x"
10762 old_striplib="$STRIP -S"
10763 { echo "$as_me:$LINENO: result: yes" >&5
10764echo "${ECHO_T}yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010765 else
Lev Walkin4da95cf2010-10-16 02:46:32 -070010766 { echo "$as_me:$LINENO: result: no" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010767echo "${ECHO_T}no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010768 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010769 ;;
10770 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -070010771 { echo "$as_me:$LINENO: result: no" >&5
10772echo "${ECHO_T}no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000010773 ;;
10774 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000010775fi
10776
10777
Lev Walkin8e8b5482004-06-17 23:42:48 +000010778
Lev Walkin8e8b5482004-06-17 23:42:48 +000010779
Lev Walkin8e8b5482004-06-17 23:42:48 +000010780
10781
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 Walkin8e8b5482004-06-17 23:42:48 +000010786
Lev Walkin8e8b5482004-06-17 23:42:48 +000010787
Lev Walkin4da95cf2010-10-16 02:46:32 -070010788 # Report which library types will actually be built
10789 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010790echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010791 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010792echo "${ECHO_T}$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010793
Lev Walkin4da95cf2010-10-16 02:46:32 -070010794 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010795echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010796 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010797
Lev Walkin4da95cf2010-10-16 02:46:32 -070010798 # On AIX, shared libraries and static libraries use the same namespace, and
10799 # are all built from PIC.
10800 case $host_os in
10801 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010802 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010803 if test -n "$RANLIB"; then
10804 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10805 postinstall_cmds='$RANLIB $lib'
10806 fi
10807 ;;
10808
10809 aix[4-9]*)
10810 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10811 test "$enable_shared" = yes && enable_static=no
10812 fi
10813 ;;
10814 esac
10815 { echo "$as_me:$LINENO: result: $enable_shared" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010816echo "${ECHO_T}$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010817
Lev Walkin4da95cf2010-10-16 02:46:32 -070010818 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010819echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070010820 # Make sure either enable_shared or enable_static is yes.
10821 test "$enable_shared" = yes || enable_static=yes
10822 { echo "$as_me:$LINENO: result: $enable_static" >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000010823echo "${ECHO_T}$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010824
Lev Walkin8e8b5482004-06-17 23:42:48 +000010825
Lev Walkin8e8b5482004-06-17 23:42:48 +000010826
Lev Walkin27fd0b62007-08-27 23:57:45 +000010827
Lev Walkin8e8b5482004-06-17 23:42:48 +000010828fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010829ac_ext=c
10830ac_cpp='$CPP $CPPFLAGS'
10831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10833ac_compiler_gnu=$ac_cv_c_compiler_gnu
10834
10835CC="$lt_save_CC"
10836
Lev Walkin8e8b5482004-06-17 23:42:48 +000010837
Lev Walkin8e8b5482004-06-17 23:42:48 +000010838
10839
Lev Walkin8e8b5482004-06-17 23:42:48 +000010840
Lev Walkin8e8b5482004-06-17 23:42:48 +000010841
Lev Walkin8e8b5482004-06-17 23:42:48 +000010842
Lev Walkin8e8b5482004-06-17 23:42:48 +000010843
Lev Walkin8e8b5482004-06-17 23:42:48 +000010844
Lev Walkin8e8b5482004-06-17 23:42:48 +000010845
Lev Walkinfbf1d282007-12-03 14:58:39 +000010846
Lev Walkin8e8b5482004-06-17 23:42:48 +000010847
10848
Lev Walkin4da95cf2010-10-16 02:46:32 -070010849 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010850
Lev Walkinfbf1d282007-12-03 14:58:39 +000010851
10852
Lev Walkinfbf1d282007-12-03 14:58:39 +000010853
Lev Walkin4da95cf2010-10-16 02:46:32 -070010854# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000010855
Lev Walkinf15320b2004-06-03 03:38:44 +000010856
10857
Lev Walkin27fd0b62007-08-27 23:57:45 +000010858# Check whether --enable-autoconf was given.
Lev Walkinf15320b2004-06-03 03:38:44 +000010859if test "${enable_autoconf+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010860 enableval=$enable_autoconf; enable_autoconf=$enableval
Lev Walkinf15320b2004-06-03 03:38:44 +000010861else
10862 enable_autoconf=yes
10863
Lev Walkin27fd0b62007-08-27 23:57:45 +000010864fi
10865
Lev Walkinf15320b2004-06-03 03:38:44 +000010866# Extract the first word of "autoconf", so it can be a program name with args.
10867set dummy autoconf; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000010868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010870if test "${ac_cv_path_AUTOCONF+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872else
10873 case $AUTOCONF in
10874 [\\/]* | ?:[\\/]*)
10875 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
10876 ;;
10877 *)
10878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010884 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 +000010885 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
10886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10888 fi
10889done
10890done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010891IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010892
10893 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available"
10894 ;;
10895esac
10896fi
10897AUTOCONF=$ac_cv_path_AUTOCONF
Lev Walkinf15320b2004-06-03 03:38:44 +000010898if test -n "$AUTOCONF"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010899 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
10900echo "${ECHO_T}$AUTOCONF" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010901else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010902 { echo "$as_me:$LINENO: result: no" >&5
10903echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010904fi
10905
Lev Walkin27fd0b62007-08-27 23:57:45 +000010906
Lev Walkinf15320b2004-06-03 03:38:44 +000010907# Extract the first word of "autoheader", so it can be a program name with args.
10908set dummy autoheader; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000010909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010911if test "${ac_cv_path_AUTOHEADER+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10913else
10914 case $AUTOHEADER in
10915 [\\/]* | ?:[\\/]*)
10916 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
10917 ;;
10918 *)
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920for as_dir in $PATH
10921do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010925 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 +000010926 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
10927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 break 2
10929 fi
10930done
10931done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010932IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010933
10934 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available"
10935 ;;
10936esac
10937fi
10938AUTOHEADER=$ac_cv_path_AUTOHEADER
Lev Walkinf15320b2004-06-03 03:38:44 +000010939if test -n "$AUTOHEADER"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010940 { echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
10941echo "${ECHO_T}$AUTOHEADER" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010942else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010943 { echo "$as_me:$LINENO: result: no" >&5
10944echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010945fi
10946
Lev Walkin27fd0b62007-08-27 23:57:45 +000010947
Lev Walkinf15320b2004-06-03 03:38:44 +000010948if test -z "$AUTOCONF"; then enable_autoconf=no ; fi
10949if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi
10950if test x$enable_autoconf = xyes; then
10951 CONFIGURE_DEPENDS="configure.in aclocal.m4"
10952fi
10953
10954
10955ac_ext=c
10956ac_cpp='$CPP $CPPFLAGS'
10957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10959ac_compiler_gnu=$ac_cv_c_compiler_gnu
10960if test -n "$ac_tool_prefix"; then
10961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10962set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000010963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010965if test "${ac_cv_prog_CC+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968 if test -n "$CC"; then
10969 ac_cv_prog_CC="$CC" # Let the user override the test.
10970else
10971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080010977 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 +000010978 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10981 fi
10982done
10983done
Lev Walkin27fd0b62007-08-27 23:57:45 +000010984IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000010985
10986fi
10987fi
10988CC=$ac_cv_prog_CC
10989if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000010990 { echo "$as_me:$LINENO: result: $CC" >&5
10991echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010992else
Lev Walkin27fd0b62007-08-27 23:57:45 +000010993 { echo "$as_me:$LINENO: result: no" >&5
10994echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000010995fi
10996
Lev Walkin27fd0b62007-08-27 23:57:45 +000010997
Lev Walkinf15320b2004-06-03 03:38:44 +000010998fi
10999if test -z "$ac_cv_prog_CC"; then
11000 ac_ct_CC=$CC
11001 # Extract the first word of "gcc", so it can be a program name with args.
11002set dummy gcc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 if test -n "$ac_ct_CC"; then
11009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11010else
11011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012for as_dir in $PATH
11013do
11014 IFS=$as_save_IFS
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011017 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 +000011018 ac_cv_prog_ac_ct_CC="gcc"
11019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 break 2
11021 fi
11022done
11023done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011024IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011025
11026fi
11027fi
11028ac_ct_CC=$ac_cv_prog_ac_ct_CC
11029if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011030 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11031echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011032else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011033 { echo "$as_me:$LINENO: result: no" >&5
11034echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011035fi
11036
Lev Walkin27fd0b62007-08-27 23:57:45 +000011037 if test "x$ac_ct_CC" = x; then
11038 CC=""
11039 else
11040 case $cross_compiling:$ac_tool_warned in
11041yes:)
11042{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11043whose name does not start with the host triplet. If you think this
11044configuration is useful to you, please write to autoconf@gnu.org." >&5
11045echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11046whose name does not start with the host triplet. If you think this
11047configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11048ac_tool_warned=yes ;;
11049esac
11050 CC=$ac_ct_CC
11051 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011052else
11053 CC="$ac_cv_prog_CC"
11054fi
11055
11056if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011057 if test -n "$ac_tool_prefix"; then
11058 # 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 +000011059set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011062if test "${ac_cv_prog_CC+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064else
11065 if test -n "$CC"; then
11066 ac_cv_prog_CC="$CC" # Let the user override the test.
11067else
11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011074 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 +000011075 ac_cv_prog_CC="${ac_tool_prefix}cc"
11076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11078 fi
11079done
11080done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011081IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011082
11083fi
11084fi
11085CC=$ac_cv_prog_CC
11086if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011087 { echo "$as_me:$LINENO: result: $CC" >&5
11088echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011089else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011090 { echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011092fi
11093
Lev Walkin27fd0b62007-08-27 23:57:45 +000011094
Lev Walkinf15320b2004-06-03 03:38:44 +000011095 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011096fi
11097if test -z "$CC"; then
11098 # Extract the first word of "cc", so it can be a program name with args.
11099set dummy cc; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011102if test "${ac_cv_prog_CC+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105 if test -n "$CC"; then
11106 ac_cv_prog_CC="$CC" # Let the user override the test.
11107else
11108 ac_prog_rejected=no
11109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110for as_dir in $PATH
11111do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011115 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 +000011116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11117 ac_prog_rejected=yes
11118 continue
11119 fi
11120 ac_cv_prog_CC="cc"
11121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11123 fi
11124done
11125done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011126IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011127
11128if test $ac_prog_rejected = yes; then
11129 # We found a bogon in the path, so make sure we never use it.
11130 set dummy $ac_cv_prog_CC
11131 shift
11132 if test $# != 0; then
11133 # We chose a different compiler from the bogus one.
11134 # However, it has the same basename, so the bogon will be chosen
11135 # first if we set CC to just the basename; use the full file name.
11136 shift
11137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11138 fi
11139fi
11140fi
11141fi
11142CC=$ac_cv_prog_CC
11143if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011144 { echo "$as_me:$LINENO: result: $CC" >&5
11145echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011146else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011147 { echo "$as_me:$LINENO: result: no" >&5
11148echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011149fi
11150
Lev Walkin27fd0b62007-08-27 23:57:45 +000011151
Lev Walkinf15320b2004-06-03 03:38:44 +000011152fi
11153if test -z "$CC"; then
11154 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011155 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011156 do
11157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011161if test "${ac_cv_prog_CC+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163else
11164 if test -n "$CC"; then
11165 ac_cv_prog_CC="$CC" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011173 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 +000011174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11177 fi
11178done
11179done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011180IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011181
11182fi
11183fi
11184CC=$ac_cv_prog_CC
11185if test -n "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011186 { echo "$as_me:$LINENO: result: $CC" >&5
11187echo "${ECHO_T}$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011188else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011189 { echo "$as_me:$LINENO: result: no" >&5
11190echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011191fi
11192
Lev Walkin27fd0b62007-08-27 23:57:45 +000011193
Lev Walkinf15320b2004-06-03 03:38:44 +000011194 test -n "$CC" && break
11195 done
11196fi
11197if test -z "$CC"; then
11198 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000011199 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011200do
11201 # Extract the first word of "$ac_prog", so it can be a program name with args.
11202set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000011203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011205if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 if test -n "$ac_ct_CC"; then
11209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11210else
11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212for as_dir in $PATH
11213do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080011217 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 +000011218 ac_cv_prog_ac_ct_CC="$ac_prog"
11219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11221 fi
11222done
11223done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011224IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011225
11226fi
11227fi
11228ac_ct_CC=$ac_cv_prog_ac_ct_CC
11229if test -n "$ac_ct_CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011230 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11231echo "${ECHO_T}$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011232else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011233 { echo "$as_me:$LINENO: result: no" >&5
11234echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011235fi
11236
Lev Walkin27fd0b62007-08-27 23:57:45 +000011237
Lev Walkinf15320b2004-06-03 03:38:44 +000011238 test -n "$ac_ct_CC" && break
11239done
11240
Lev Walkin27fd0b62007-08-27 23:57:45 +000011241 if test "x$ac_ct_CC" = x; then
11242 CC=""
11243 else
11244 case $cross_compiling:$ac_tool_warned in
11245yes:)
11246{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11247whose name does not start with the host triplet. If you think this
11248configuration is useful to you, please write to autoconf@gnu.org." >&5
11249echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11250whose name does not start with the host triplet. If you think this
11251configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11252ac_tool_warned=yes ;;
11253esac
11254 CC=$ac_ct_CC
11255 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011256fi
11257
11258fi
11259
11260
11261test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11262See \`config.log' for more details." >&5
11263echo "$as_me: error: no acceptable C compiler found in \$PATH
11264See \`config.log' for more details." >&2;}
11265 { (exit 1); exit 1; }; }
11266
11267# Provide some information about the compiler.
Lev Walkin27fd0b62007-08-27 23:57:45 +000011268echo "$as_me:$LINENO: checking for C compiler version" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011269ac_compiler=`set X $ac_compile; echo $2`
Lev Walkin27fd0b62007-08-27 23:57:45 +000011270{ (ac_try="$ac_compiler --version >&5"
11271case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_compiler --version >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000011280{ (ac_try="$ac_compiler -v >&5"
11281case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284esac
11285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_compiler -v >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }
Lev Walkin27fd0b62007-08-27 23:57:45 +000011290{ (ac_try="$ac_compiler -V >&5"
11291case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11294esac
11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compiler -V >&5") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }
11300
Lev Walkin27fd0b62007-08-27 23:57:45 +000011301{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11302echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011303if test "${ac_cv_c_compiler_gnu+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
11312
11313int
11314main ()
11315{
11316#ifndef __GNUC__
11317 choke me
11318#endif
11319
11320 ;
11321 return 0;
11322}
11323_ACEOF
11324rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011325if { (ac_try="$ac_compile"
11326case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011332 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011341 ac_compiler_gnu=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
Lev Walkin27fd0b62007-08-27 23:57:45 +000011346 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011347fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011348
11349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011350ac_cv_c_compiler_gnu=$ac_compiler_gnu
11351
11352fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011353{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11354echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011355GCC=`test $ac_compiler_gnu = yes && echo yes`
11356ac_test_CFLAGS=${CFLAGS+set}
11357ac_save_CFLAGS=$CFLAGS
Lev Walkin27fd0b62007-08-27 23:57:45 +000011358{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11359echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011360if test "${ac_cv_prog_cc_g+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11362else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011363 ac_save_c_werror_flag=$ac_c_werror_flag
11364 ac_c_werror_flag=yes
11365 ac_cv_prog_cc_g=no
11366 CFLAGS="-g"
11367 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373
11374int
11375main ()
11376{
11377
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011383if { (ac_try="$ac_compile"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011390 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011399 ac_cv_prog_cc_g=yes
11400else
11401 echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
11403
Lev Walkin27fd0b62007-08-27 23:57:45 +000011404 CFLAGS=""
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411
11412int
11413main ()
11414{
11415
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext
11421if { (ac_try="$ac_compile"
11422case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425esac
11426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011437 :
11438else
11439 echo "$as_me: failed program was:" >&5
11440sed 's/^/| /' conftest.$ac_ext >&5
11441
11442 ac_c_werror_flag=$ac_save_c_werror_flag
11443 CFLAGS="-g"
11444 cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450
11451int
11452main ()
11453{
11454
11455 ;
11456 return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext
11460if { (ac_try="$ac_compile"
11461case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464esac
11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011476 ac_cv_prog_cc_g=yes
11477else
11478 echo "$as_me: failed program was:" >&5
11479sed 's/^/| /' conftest.$ac_ext >&5
11480
11481
Lev Walkinf15320b2004-06-03 03:38:44 +000011482fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011483
11484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011485fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011486
11487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488fi
11489
11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 ac_c_werror_flag=$ac_save_c_werror_flag
11492fi
11493{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11494echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011495if test "$ac_test_CFLAGS" = set; then
11496 CFLAGS=$ac_save_CFLAGS
11497elif test $ac_cv_prog_cc_g = yes; then
11498 if test "$GCC" = yes; then
11499 CFLAGS="-g -O2"
11500 else
11501 CFLAGS="-g"
11502 fi
11503else
11504 if test "$GCC" = yes; then
11505 CFLAGS="-O2"
11506 else
11507 CFLAGS=
11508 fi
11509fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011510{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11511echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11512if test "${ac_cv_prog_cc_c89+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011515 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011516ac_save_CC=$CC
11517cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
11523#include <stdarg.h>
11524#include <stdio.h>
11525#include <sys/types.h>
11526#include <sys/stat.h>
11527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11528struct buf { int x; };
11529FILE * (*rcsopen) (struct buf *, struct stat *, int);
11530static char *e (p, i)
11531 char **p;
11532 int i;
11533{
11534 return p[i];
11535}
11536static char *f (char * (*g) (char **, int), char **p, ...)
11537{
11538 char *s;
11539 va_list v;
11540 va_start (v,p);
11541 s = g (p, va_arg (v,int));
11542 va_end (v);
11543 return s;
11544}
Lev Walkin8e8b5482004-06-17 23:42:48 +000011545
11546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11547 function prototypes and stuff, but not '\xHH' hex character constants.
11548 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000011549 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000011550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11551 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000011552 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011553int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11554
Lev Walkin27fd0b62007-08-27 23:57:45 +000011555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11556 inside strings and character constants. */
11557#define FOO(x) 'x'
11558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11559
Lev Walkinf15320b2004-06-03 03:38:44 +000011560int test (int i, double x);
11561struct s1 {int (*f) (int a);};
11562struct s2 {int (*f) (double a);};
11563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11564int argc;
11565char **argv;
11566int
11567main ()
11568{
11569return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11570 ;
11571 return 0;
11572}
11573_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000011576do
11577 CC="$ac_save_CC $ac_arg"
11578 rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011579if { (ac_try="$ac_compile"
11580case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583esac
11584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011586 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000011587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011591 (exit $ac_status); } && {
11592 test -z "$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 } && test -s conftest.$ac_objext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011595 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000011596else
11597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
Lev Walkin27fd0b62007-08-27 23:57:45 +000011600
Lev Walkinf15320b2004-06-03 03:38:44 +000011601fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011602
11603rm -f core conftest.err conftest.$ac_objext
11604 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000011605done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011606rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011607CC=$ac_save_CC
11608
11609fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011610# AC_CACHE_VAL
11611case "x$ac_cv_prog_cc_c89" in
11612 x)
11613 { echo "$as_me:$LINENO: result: none needed" >&5
11614echo "${ECHO_T}none needed" >&6; } ;;
11615 xno)
11616 { echo "$as_me:$LINENO: result: unsupported" >&5
11617echo "${ECHO_T}unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011618 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011619 CC="$CC $ac_cv_prog_cc_c89"
11620 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11621echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011622esac
11623
Lev Walkinf15320b2004-06-03 03:38:44 +000011624
Lev Walkinf15320b2004-06-03 03:38:44 +000011625ac_ext=c
11626ac_cpp='$CPP $CPPFLAGS'
11627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630
11631depcc="$CC" am_compiler_list=
11632
Lev Walkin27fd0b62007-08-27 23:57:45 +000011633{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11634echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011635if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637else
11638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11639 # We make a subdir and do the tests there. Otherwise we can end up
11640 # making bogus files that we don't know about and never remove. For
11641 # instance it was reported that on HP-UX the gcc test will end up
11642 # making a dummy file named `D' -- because `-MD' means `put the output
11643 # in D'.
11644 mkdir conftest.dir
11645 # Copy depcomp to subdir because otherwise we won't find it if we're
11646 # using a relative directory.
11647 cp "$am_depcomp" conftest.dir
11648 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000011649 # We will build objects and dependencies in a subdirectory because
11650 # it helps to detect inapplicable dependency modes. For instance
11651 # both Tru64's cc and ICC support -MD to output dependencies as a
11652 # side effect of compilation, but ICC will put the dependencies in
11653 # the current directory while Tru64 will put them in the object
11654 # directory.
11655 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000011656
11657 am_cv_CC_dependencies_compiler_type=none
11658 if test "$am_compiler_list" = ""; then
11659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11660 fi
11661 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000011662 # Setup a source with many dependencies, because some compilers
11663 # like to wrap large dependency lists on column 80 (with \), and
11664 # we should not choose a depcomp mode which is confused by this.
11665 #
Lev Walkinf15320b2004-06-03 03:38:44 +000011666 # We need to recreate these files for each test, as the compiler may
11667 # overwrite some of them when testing with obscure command lines.
11668 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011669 : > sub/conftest.c
11670 for i in 1 2 3 4 5 6; do
11671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11673 # Solaris 8's {/usr,}/bin/sh.
11674 touch sub/conftst$i.h
11675 done
11676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000011677
11678 case $depmode in
11679 nosideeffect)
11680 # after this tag, mechanisms are not by side-effect, so they'll
11681 # only be used when explicitly requested
11682 if test "x$enable_dependency_tracking" = xyes; then
11683 continue
11684 else
11685 break
11686 fi
11687 ;;
11688 none) break ;;
11689 esac
11690 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11691 # mode. It turns out that the SunPro C++ compiler does not properly
11692 # handle `-M -o', and we need to detect this.
11693 if depmode=$depmode \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011694 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11696 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11697 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -080011698 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011699 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11700 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000011701 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011702 # icc doesn't choke on unknown options, it will just issue warnings
11703 # or remarks (even with -Werror). So we grep stderr for any message
11704 # that says an option was ignored or not supported.
11705 # When given -MP, icc 7.0 and 7.1 complain thusly:
11706 # icc: Command line warning: ignoring option '-M'; no argument required
11707 # The diagnosis changed in icc 8.0:
11708 # icc: Command line remark: option '-MP' not supported
11709 if (grep 'ignoring option' conftest.err ||
11710 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11711 am_cv_CC_dependencies_compiler_type=$depmode
11712 break
11713 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011714 fi
11715 done
11716
11717 cd ..
11718 rm -rf conftest.dir
11719else
11720 am_cv_CC_dependencies_compiler_type=none
11721fi
11722
11723fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011724{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11725echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011726CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11727
Lev Walkin4c776e52010-11-08 02:07:31 -080011728 if
Lev Walkin8e8b5482004-06-17 23:42:48 +000011729 test "x$enable_dependency_tracking" != xno \
11730 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11731 am__fastdepCC_TRUE=
11732 am__fastdepCC_FALSE='#'
11733else
11734 am__fastdepCC_TRUE='#'
11735 am__fastdepCC_FALSE=
11736fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011737
11738
11739ac_ext=c
11740ac_cpp='$CPP $CPPFLAGS'
11741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11743ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkin27fd0b62007-08-27 23:57:45 +000011744{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11745echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011746# On Suns, sometimes $CPP names a directory.
11747if test -n "$CPP" && test -d "$CPP"; then
11748 CPP=
11749fi
11750if test -z "$CPP"; then
11751 if test "${ac_cv_prog_CPP+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 # Double quotes because CPP needs to be expanded
11755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11756 do
11757 ac_preproc_ok=false
11758for ac_c_preproc_warn_flag in '' yes
11759do
11760 # Use a header file that comes with gcc, so configuring glibc
11761 # with a fresh cross-compiler works.
11762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11763 # <limits.h> exists even on freestanding compilers.
11764 # On the NeXT, cc -E runs the code through the compiler's parser,
11765 # not just through cpp. "Syntax error" is here to catch this case.
11766 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772#ifdef __STDC__
11773# include <limits.h>
11774#else
11775# include <assert.h>
11776#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011777 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011778_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011779if { (ac_try="$ac_cpp conftest.$ac_ext"
11780case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011791 (exit $ac_status); } >/dev/null && {
11792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011795 :
11796else
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 # Broken: fails on valid input.
11801continue
11802fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011803
Lev Walkinf15320b2004-06-03 03:38:44 +000011804rm -f conftest.err conftest.$ac_ext
11805
Lev Walkin27fd0b62007-08-27 23:57:45 +000011806 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011807 # can be detected and how.
11808 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814#include <ac_nonexistent.h>
11815_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011816if { (ac_try="$ac_cpp conftest.$ac_ext"
11817case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011828 (exit $ac_status); } >/dev/null && {
11829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11830 test ! -s conftest.err
11831 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011832 # Broken: success on invalid input.
11833continue
11834else
11835 echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 # Passes both tests.
11839ac_preproc_ok=:
11840break
11841fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011842
Lev Walkinf15320b2004-06-03 03:38:44 +000011843rm -f conftest.err conftest.$ac_ext
11844
11845done
11846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11847rm -f conftest.err conftest.$ac_ext
11848if $ac_preproc_ok; then
11849 break
11850fi
11851
11852 done
11853 ac_cv_prog_CPP=$CPP
11854
11855fi
11856 CPP=$ac_cv_prog_CPP
11857else
11858 ac_cv_prog_CPP=$CPP
11859fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011860{ echo "$as_me:$LINENO: result: $CPP" >&5
11861echo "${ECHO_T}$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011862ac_preproc_ok=false
11863for ac_c_preproc_warn_flag in '' yes
11864do
11865 # Use a header file that comes with gcc, so configuring glibc
11866 # with a fresh cross-compiler works.
11867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11868 # <limits.h> exists even on freestanding compilers.
11869 # On the NeXT, cc -E runs the code through the compiler's parser,
11870 # not just through cpp. "Syntax error" is here to catch this case.
11871 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
11877#ifdef __STDC__
11878# include <limits.h>
11879#else
11880# include <assert.h>
11881#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011882 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011883_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011884if { (ac_try="$ac_cpp conftest.$ac_ext"
11885case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888esac
11889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011896 (exit $ac_status); } >/dev/null && {
11897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011900 :
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 # Broken: fails on valid input.
11906continue
11907fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011908
Lev Walkinf15320b2004-06-03 03:38:44 +000011909rm -f conftest.err conftest.$ac_ext
11910
Lev Walkin27fd0b62007-08-27 23:57:45 +000011911 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011912 # can be detected and how.
11913 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000011914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
11919#include <ac_nonexistent.h>
11920_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011921if { (ac_try="$ac_cpp conftest.$ac_ext"
11922case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11925esac
11926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000011928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080011933 (exit $ac_status); } >/dev/null && {
11934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11935 test ! -s conftest.err
11936 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011937 # Broken: success on invalid input.
11938continue
11939else
11940 echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 # Passes both tests.
11944ac_preproc_ok=:
11945break
11946fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011947
Lev Walkinf15320b2004-06-03 03:38:44 +000011948rm -f conftest.err conftest.$ac_ext
11949
11950done
11951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11952rm -f conftest.err conftest.$ac_ext
11953if $ac_preproc_ok; then
11954 :
11955else
11956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11957See \`config.log' for more details." >&5
11958echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11959See \`config.log' for more details." >&2;}
11960 { (exit 1); exit 1; }; }
11961fi
11962
11963ac_ext=c
11964ac_cpp='$CPP $CPPFLAGS'
11965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967ac_compiler_gnu=$ac_cv_c_compiler_gnu
11968
11969# Find a good install program. We prefer a C program (faster),
11970# so one script is as good as another. But avoid the broken or
11971# incompatible versions:
11972# SysV /etc/install, /usr/sbin/install
11973# SunOS /usr/etc/install
11974# IRIX /sbin/install
11975# AIX /bin/install
11976# AmigaOS /C/install, which installs bootblocks on floppy discs
11977# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11978# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11979# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011980# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +000011981# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkin27fd0b62007-08-27 23:57:45 +000011982{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11983echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011984if test -z "$INSTALL"; then
11985if test "${ac_cv_path_install+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11987else
11988 as_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 # Account for people who put trailing slashes in PATH elements.
11994case $as_dir/ in
11995 ./ | .// | /cC/* | \
11996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +000011998 /usr/ucb/* ) ;;
11999 *)
12000 # OSF1 and SCO ODT 3.0 have their own names for install.
12001 # Don't use installbsd from OSF since it installs stuff as root
12002 # by default.
12003 for ac_prog in ginstall scoinst install; do
12004 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012005 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 +000012006 if test $ac_prog = install &&
12007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12008 # AIX install. It has an incompatible calling convention.
12009 :
12010 elif test $ac_prog = install &&
12011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12012 # program-specific install script used by HP pwplus--don't use.
12013 :
12014 else
12015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12016 break 3
12017 fi
12018 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012019 done
12020 done
12021 ;;
12022esac
12023done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012024IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012025
12026
12027fi
12028 if test "${ac_cv_path_install+set}" = set; then
12029 INSTALL=$ac_cv_path_install
12030 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012031 # As a last resort, use the slow shell script. Don't cache a
12032 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +000012033 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +000012034 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +000012035 INSTALL=$ac_install_sh
12036 fi
12037fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012038{ echo "$as_me:$LINENO: result: $INSTALL" >&5
12039echo "${ECHO_T}$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012040
12041# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12042# It thinks the first close brace ends the variable substitution.
12043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12044
12045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12046
12047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12048
Lev Walkin27fd0b62007-08-27 23:57:45 +000012049{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
12050echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012051LN_S=$as_ln_s
12052if test "$LN_S" = "ln -s"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012053 { echo "$as_me:$LINENO: result: yes" >&5
12054echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012055else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012056 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12057echo "${ECHO_T}no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012058fi
12059
Lev Walkin27fd0b62007-08-27 23:57:45 +000012060{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12061echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
12062set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12063if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065else
12066 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012067SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000012068all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000012069 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000012070_ACEOF
12071# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012072case `${MAKE-make} -f conftest.make 2>/dev/null` in
12073 *@@@%%%=?*=@@@%%%*)
12074 eval ac_cv_prog_make_${ac_make}_set=yes;;
12075 *)
12076 eval ac_cv_prog_make_${ac_make}_set=no;;
12077esac
Lev Walkinf15320b2004-06-03 03:38:44 +000012078rm -f conftest.make
12079fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012080if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12081 { echo "$as_me:$LINENO: result: yes" >&5
12082echo "${ECHO_T}yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012083 SET_MAKE=
12084else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012085 { echo "$as_me:$LINENO: result: no" >&5
12086echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012087 SET_MAKE="MAKE=${MAKE-make}"
12088fi
12089
12090for ac_prog in 'bison -y' byacc
12091do
12092 # Extract the first word of "$ac_prog", so it can be a program name with args.
12093set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012096if test "${ac_cv_prog_YACC+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098else
12099 if test -n "$YACC"; then
12100 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12101else
12102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $PATH
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012108 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 +000012109 ac_cv_prog_YACC="$ac_prog"
12110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113done
12114done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012115IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012116
12117fi
12118fi
12119YACC=$ac_cv_prog_YACC
12120if test -n "$YACC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012121 { echo "$as_me:$LINENO: result: $YACC" >&5
12122echo "${ECHO_T}$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012123else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012124 { echo "$as_me:$LINENO: result: no" >&5
12125echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012126fi
12127
Lev Walkin27fd0b62007-08-27 23:57:45 +000012128
Lev Walkinf15320b2004-06-03 03:38:44 +000012129 test -n "$YACC" && break
12130done
12131test -n "$YACC" || YACC="yacc"
12132
Lev Walkinf15320b2004-06-03 03:38:44 +000012133for ac_prog in flex lex
12134do
12135 # Extract the first word of "$ac_prog", so it can be a program name with args.
12136set dummy $ac_prog; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012139if test "${ac_cv_prog_LEX+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141else
12142 if test -n "$LEX"; then
12143 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012151 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 +000012152 ac_cv_prog_LEX="$ac_prog"
12153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156done
12157done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012158IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012159
12160fi
12161fi
12162LEX=$ac_cv_prog_LEX
12163if test -n "$LEX"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012164 { echo "$as_me:$LINENO: result: $LEX" >&5
12165echo "${ECHO_T}$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012166else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012167 { echo "$as_me:$LINENO: result: no" >&5
12168echo "${ECHO_T}no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012169fi
12170
Lev Walkin27fd0b62007-08-27 23:57:45 +000012171
Lev Walkinf15320b2004-06-03 03:38:44 +000012172 test -n "$LEX" && break
12173done
12174test -n "$LEX" || LEX=":"
12175
Lev Walkinf15320b2004-06-03 03:38:44 +000012176if test "x$LEX" != "x:"; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012177 cat >conftest.l <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012178%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012179a { ECHO; }
12180b { REJECT; }
12181c { yymore (); }
12182d { yyless (1); }
12183e { yyless (input () != 0); }
12184f { unput (yytext[0]); }
12185. { BEGIN INITIAL; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012186%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012187#ifdef YYTEXT_POINTER
12188extern char *yytext;
12189#endif
12190int
12191main (void)
12192{
12193 return ! yylex () + ! yywrap ();
12194}
Lev Walkinf15320b2004-06-03 03:38:44 +000012195_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012196{ (ac_try="$LEX conftest.l"
12197case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }
Lev Walkin4c776e52010-11-08 02:07:31 -080012206{ echo "$as_me:$LINENO: checking lex output file root" >&5
12207echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
12208if test "${ac_cv_prog_lex_root+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211
Lev Walkinf15320b2004-06-03 03:38:44 +000012212if test -f lex.yy.c; then
12213 ac_cv_prog_lex_root=lex.yy
12214elif test -f lexyy.c; then
12215 ac_cv_prog_lex_root=lexyy
12216else
12217 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
12218echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
12219 { (exit 1); exit 1; }; }
12220fi
12221fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012222{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
12223echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012224LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12225
Lev Walkin4c776e52010-11-08 02:07:31 -080012226if test -z "${LEXLIB+set}"; then
12227 { echo "$as_me:$LINENO: checking lex library" >&5
12228echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
12229if test "${ac_cv_lib_lex+set}" = set; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
Lev Walkin4c776e52010-11-08 02:07:31 -080012232
12233 ac_save_LIBS=$LIBS
12234 ac_cv_lib_lex='none needed'
12235 for ac_lib in '' -lfl -ll; do
12236 LIBS="$ac_lib $ac_save_LIBS"
12237 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012238`cat $LEX_OUTPUT_ROOT.c`
12239_ACEOF
12240rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012241if { (ac_try="$ac_link"
12242case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245esac
12246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012248 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest$ac_exeext &&
12257 $as_test_x conftest$ac_exeext; then
12258 ac_cv_lib_lex=$ac_lib
12259else
12260 echo "$as_me: failed program was:" >&5
12261sed 's/^/| /' conftest.$ac_ext >&5
12262
12263
12264fi
12265
12266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12267 conftest$ac_exeext conftest.$ac_ext
12268 test "$ac_cv_lib_lex" != 'none needed' && break
12269 done
12270 LIBS=$ac_save_LIBS
12271
12272fi
12273{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
12274echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
12275 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12276fi
12277
12278
12279{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
12280echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
12281if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283else
12284 # POSIX says lex can declare yytext either as a pointer or an array; the
12285# default is implementation-dependent. Figure out which it is, since
12286# not all implementations provide the %pointer and %array declarations.
12287ac_cv_prog_lex_yytext_pointer=no
12288ac_save_LIBS=$LIBS
12289LIBS="$LEXLIB $ac_save_LIBS"
12290cat >conftest.$ac_ext <<_ACEOF
12291#define YYTEXT_POINTER 1
12292`cat $LEX_OUTPUT_ROOT.c`
12293_ACEOF
12294rm -f conftest.$ac_objext conftest$ac_exeext
12295if { (ac_try="$ac_link"
12296case "(($ac_try" in
Lev Walkin27fd0b62007-08-27 23:57:45 +000012297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299esac
12300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012301 (eval "$ac_link") 2>conftest.er1
Lev Walkin8e8b5482004-06-17 23:42:48 +000012302 ac_status=$?
Lev Walkin4c776e52010-11-08 02:07:31 -080012303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000012306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest$ac_exeext &&
12311 $as_test_x conftest$ac_exeext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012312 ac_cv_prog_lex_yytext_pointer=yes
12313else
12314 echo "$as_me: failed program was:" >&5
12315sed 's/^/| /' conftest.$ac_ext >&5
12316
Lev Walkin27fd0b62007-08-27 23:57:45 +000012317
Lev Walkinf15320b2004-06-03 03:38:44 +000012318fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012319
Lev Walkin4c776e52010-11-08 02:07:31 -080012320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012321 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012322LIBS=$ac_save_LIBS
Lev Walkinf15320b2004-06-03 03:38:44 +000012323
12324fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012325{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
12326echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012327if test $ac_cv_prog_lex_yytext_pointer = yes; then
12328
12329cat >>confdefs.h <<\_ACEOF
12330#define YYTEXT_POINTER 1
12331_ACEOF
12332
12333fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012334rm -f conftest.l $LEX_OUTPUT_ROOT.c
Lev Walkinf15320b2004-06-03 03:38:44 +000012335
12336fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012337if test "$LEX" = :; then
12338 LEX=${am_missing_run}flex
12339fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000012340# Extract the first word of "ar", so it can be a program name with args.
12341set dummy ar; ac_word=$2
Lev Walkin27fd0b62007-08-27 23:57:45 +000012342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012344if test "${ac_cv_path_AR+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346else
12347 case $AR in
12348 [\\/]* | ?:[\\/]*)
12349 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12350 ;;
12351 *)
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
12354for as_dir in $as_dummy
12355do
12356 IFS=$as_save_IFS
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkin4c776e52010-11-08 02:07:31 -080012359 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 +000012360 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 break 2
12363 fi
12364done
12365done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012366IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000012367
12368 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12369 ;;
12370esac
12371fi
12372AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000012373if test -n "$AR"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012374 { echo "$as_me:$LINENO: result: $AR" >&5
12375echo "${ECHO_T}$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012376else
Lev Walkin27fd0b62007-08-27 23:57:45 +000012377 { echo "$as_me:$LINENO: result: no" >&5
12378echo "${ECHO_T}no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012379fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012380
Lev Walkin27fd0b62007-08-27 23:57:45 +000012381
Lev Walkin5f869d02004-08-23 10:41:38 +000012382case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000012383cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012384 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000012385 *mingw*)
12386 CC="$CC -mno-cygwin"
12387 esac
12388 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012389esac
12390
Lev Walkin27fd0b62007-08-27 23:57:45 +000012391# Check whether --enable-Werror was given.
Lev Walkin04c23172004-09-26 14:18:32 +000012392if test "${enable_Werror+set}" = set; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000012393 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000012394else
12395 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012396fi
12397
Lev Walkin04c23172004-09-26 14:18:32 +000012398if test x$enable_werror = xyes; then
12399 ADD_CFLAGS="-Werror -W -Wpointer-arith"
12400fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012401
12402
12403case "$GCC" in
12404 yes)
12405 CFLAGS="$CFLAGS -Wall"
12406 CFLAGS="$CFLAGS -Wshadow"
12407 CFLAGS="$CFLAGS -Wcast-qual"
12408 CFLAGS="$CFLAGS -Wcast-align"
Lev Walkin93636742004-09-26 13:16:33 +000012409 CFLAGS="$CFLAGS -Wchar-subscripts"
Lev Walkinf15320b2004-06-03 03:38:44 +000012410 CFLAGS="$CFLAGS -Wmissing-prototypes"
12411 CFLAGS="$CFLAGS -Wmissing-declarations"
Lev Walkinf15320b2004-06-03 03:38:44 +000012412 ;;
12413esac
12414
12415
Lev Walkin27fd0b62007-08-27 23:57:45 +000012416{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12417echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012418if test "${ac_cv_header_stdc+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427#include <stdlib.h>
12428#include <stdarg.h>
12429#include <string.h>
12430#include <float.h>
12431
12432int
12433main ()
12434{
12435
12436 ;
12437 return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012441if { (ac_try="$ac_compile"
12442case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12445esac
12446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012448 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012453 (exit $ac_status); } && {
12454 test -z "$ac_c_werror_flag" ||
12455 test ! -s conftest.err
12456 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012457 ac_cv_header_stdc=yes
12458else
12459 echo "$as_me: failed program was:" >&5
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
Lev Walkin27fd0b62007-08-27 23:57:45 +000012462 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012463fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012464
12465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012466
12467if test $ac_cv_header_stdc = yes; then
12468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12469 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012470/* confdefs.h. */
12471_ACEOF
12472cat confdefs.h >>conftest.$ac_ext
12473cat >>conftest.$ac_ext <<_ACEOF
12474/* end confdefs.h. */
12475#include <string.h>
12476
12477_ACEOF
12478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12479 $EGREP "memchr" >/dev/null 2>&1; then
12480 :
12481else
12482 ac_cv_header_stdc=no
12483fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012484rm -f -r conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012485
12486fi
12487
12488if test $ac_cv_header_stdc = yes; then
12489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12490 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */
12496#include <stdlib.h>
12497
12498_ACEOF
12499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12500 $EGREP "free" >/dev/null 2>&1; then
12501 :
12502else
12503 ac_cv_header_stdc=no
12504fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012505rm -f -r conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012506
12507fi
12508
12509if test $ac_cv_header_stdc = yes; then
12510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12511 if test "$cross_compiling" = yes; then
12512 :
12513else
12514 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012515/* confdefs.h. */
12516_ACEOF
12517cat confdefs.h >>conftest.$ac_ext
12518cat >>conftest.$ac_ext <<_ACEOF
12519/* end confdefs.h. */
12520#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000012521#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012522#if ((' ' & 0x0FF) == 0x020)
12523# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12524# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12525#else
12526# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012527 (('a' <= (c) && (c) <= 'i') \
12528 || ('j' <= (c) && (c) <= 'r') \
12529 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000012530# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12531#endif
12532
12533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12534int
12535main ()
12536{
12537 int i;
12538 for (i = 0; i < 256; i++)
12539 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000012540 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000012541 return 2;
12542 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012543}
12544_ACEOF
12545rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559esac
12560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 :
12566else
12567 echo "$as_me: program exited with status $ac_status" >&5
12568echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571( exit $ac_status )
12572ac_cv_header_stdc=no
12573fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12575fi
12576
12577
Lev Walkinf15320b2004-06-03 03:38:44 +000012578fi
12579fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012580{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12581echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012582if test $ac_cv_header_stdc = yes; then
12583
12584cat >>confdefs.h <<\_ACEOF
12585#define STDC_HEADERS 1
12586_ACEOF
12587
12588fi
12589
Lev Walkinf15320b2004-06-03 03:38:44 +000012590
Lev Walkin79f54952004-08-13 16:58:19 +000012591for ac_header in sys/param.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012592do
12593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000012594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012600ac_res=`eval echo '${'$as_ac_Header'}'`
12601 { echo "$as_me:$LINENO: result: $ac_res" >&5
12602echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012603else
12604 # Is the header compilable?
Lev Walkin27fd0b62007-08-27 23:57:45 +000012605{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012607cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012608/* confdefs.h. */
12609_ACEOF
12610cat confdefs.h >>conftest.$ac_ext
12611cat >>conftest.$ac_ext <<_ACEOF
12612/* end confdefs.h. */
12613$ac_includes_default
12614#include <$ac_header>
12615_ACEOF
12616rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012617if { (ac_try="$ac_compile"
12618case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012624 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012629 (exit $ac_status); } && {
12630 test -z "$ac_c_werror_flag" ||
12631 test ! -s conftest.err
12632 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012633 ac_header_compiler=yes
12634else
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
Lev Walkin27fd0b62007-08-27 23:57:45 +000012638 ac_header_compiler=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012639fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012640
12641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12643echo "${ECHO_T}$ac_header_compiler" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012644
12645# Is the header present?
Lev Walkin27fd0b62007-08-27 23:57:45 +000012646{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012648cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012649/* confdefs.h. */
12650_ACEOF
12651cat confdefs.h >>conftest.$ac_ext
12652cat >>conftest.$ac_ext <<_ACEOF
12653/* end confdefs.h. */
12654#include <$ac_header>
12655_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012656if { (ac_try="$ac_cpp conftest.$ac_ext"
12657case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660esac
12661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012668 (exit $ac_status); } >/dev/null && {
12669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12670 test ! -s conftest.err
12671 }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012672 ac_header_preproc=yes
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_header_preproc=no
12678fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012679
Lev Walkinf15320b2004-06-03 03:38:44 +000012680rm -f conftest.err conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012681{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12682echo "${ECHO_T}$ac_header_preproc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012683
12684# So? What about this header?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12686 yes:no: )
Lev Walkinf15320b2004-06-03 03:38:44 +000012687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12691 ac_header_preproc=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012692 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000012693 no:yes:* )
Lev Walkinf15320b2004-06-03 03:38:44 +000012694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000012702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000012704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000012706
Lev Walkinf15320b2004-06-03 03:38:44 +000012707 ;;
12708esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000012709{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713else
Lev Walkin8e8b5482004-06-17 23:42:48 +000012714 eval "$as_ac_Header=\$ac_header_preproc"
Lev Walkinf15320b2004-06-03 03:38:44 +000012715fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012716ac_res=`eval echo '${'$as_ac_Header'}'`
12717 { echo "$as_me:$LINENO: result: $ac_res" >&5
12718echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012719
12720fi
12721if test `eval echo '${'$as_ac_Header'}'` = yes; then
12722 cat >>confdefs.h <<_ACEOF
12723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12724_ACEOF
12725
12726fi
12727
12728done
12729
12730
Lev Walkin27fd0b62007-08-27 23:57:45 +000012731{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12732echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012733if test "${ac_cv_c_bigendian+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 # See if sys/param.h defines the BYTE_ORDER macro.
12737cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012738/* confdefs.h. */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h. */
12743#include <sys/types.h>
12744#include <sys/param.h>
12745
12746int
12747main ()
12748{
Lev Walkin4c776e52010-11-08 02:07:31 -080012749#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12750 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Lev Walkinf15320b2004-06-03 03:38:44 +000012751 bogus endian macros
12752#endif
12753
12754 ;
12755 return 0;
12756}
12757_ACEOF
12758rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012759if { (ac_try="$ac_compile"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012766 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012775 # It does; now see whether it defined to BIG_ENDIAN or not.
12776cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782#include <sys/types.h>
12783#include <sys/param.h>
12784
12785int
12786main ()
12787{
12788#if BYTE_ORDER != BIG_ENDIAN
12789 not big endian
12790#endif
12791
12792 ;
12793 return 0;
12794}
12795_ACEOF
12796rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012797if { (ac_try="$ac_compile"
12798case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801esac
12802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012804 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012809 (exit $ac_status); } && {
12810 test -z "$ac_c_werror_flag" ||
12811 test ! -s conftest.err
12812 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012813 ac_cv_c_bigendian=yes
12814else
12815 echo "$as_me: failed program was:" >&5
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
Lev Walkin27fd0b62007-08-27 23:57:45 +000012818 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012819fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012820
12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
Lev Walkin27fd0b62007-08-27 23:57:45 +000012826 # It does not; compile a test program.
Lev Walkinf15320b2004-06-03 03:38:44 +000012827if test "$cross_compiling" = yes; then
12828 # try to guess the endianness by grepping values into an object file
12829 ac_cv_c_bigendian=unknown
12830 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000012836short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12837short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000012838void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Lev Walkin27fd0b62007-08-27 23:57:45 +000012839short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12840short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Lev Walkinf15320b2004-06-03 03:38:44 +000012841void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12842int
12843main ()
12844{
12845 _ascii (); _ebcdic ();
12846 ;
12847 return 0;
12848}
12849_ACEOF
12850rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012851if { (ac_try="$ac_compile"
12852case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012858 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000012859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080012863 (exit $ac_status); } && {
12864 test -z "$ac_c_werror_flag" ||
12865 test ! -s conftest.err
12866 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012867 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12868 ac_cv_c_bigendian=yes
12869fi
12870if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12871 if test "$ac_cv_c_bigendian" = unknown; then
12872 ac_cv_c_bigendian=no
12873 else
12874 # finding both strings is unlikely to happen, but who knows?
12875 ac_cv_c_bigendian=unknown
12876 fi
12877fi
12878else
12879 echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
Lev Walkin27fd0b62007-08-27 23:57:45 +000012882
Lev Walkinf15320b2004-06-03 03:38:44 +000012883fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012884
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012886else
12887 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000012893$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000012894int
12895main ()
12896{
Lev Walkin27fd0b62007-08-27 23:57:45 +000012897
Lev Walkinf15320b2004-06-03 03:38:44 +000012898 /* Are we little or big endian? From Harbison&Steele. */
12899 union
12900 {
Lev Walkin27fd0b62007-08-27 23:57:45 +000012901 long int l;
12902 char c[sizeof (long int)];
Lev Walkinf15320b2004-06-03 03:38:44 +000012903 } u;
12904 u.l = 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012905 return u.c[sizeof (long int) - 1] == 1;
12906
12907 ;
12908 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012909}
12910_ACEOF
12911rm -f conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012912if { (ac_try="$ac_link"
12913case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916esac
12917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Lev Walkin27fd0b62007-08-27 23:57:45 +000012922 { (case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925esac
12926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_try") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 ac_cv_c_bigendian=no
12932else
12933 echo "$as_me: program exited with status $ac_status" >&5
12934echo "$as_me: failed program was:" >&5
12935sed 's/^/| /' conftest.$ac_ext >&5
12936
12937( exit $ac_status )
12938ac_cv_c_bigendian=yes
12939fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012940rm -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 +000012941fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012942
12943
Lev Walkinf15320b2004-06-03 03:38:44 +000012944fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012945
12946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012947fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012948{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12949echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012950case $ac_cv_c_bigendian in
12951 yes)
12952
12953cat >>confdefs.h <<\_ACEOF
12954#define WORDS_BIGENDIAN 1
12955_ACEOF
12956 ;;
12957 no)
12958 ;;
12959 *)
12960 { { echo "$as_me:$LINENO: error: unknown endianness
12961presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12962echo "$as_me: error: unknown endianness
12963presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12964 { (exit 1); exit 1; }; } ;;
12965esac
12966
Lev Walkin27fd0b62007-08-27 23:57:45 +000012967{ echo "$as_me:$LINENO: checking for off_t" >&5
12968echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012969if test "${ac_cv_type_off_t+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971else
12972 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000012979typedef off_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000012980int
12981main ()
12982{
Lev Walkin27fd0b62007-08-27 23:57:45 +000012983if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000012984 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012985if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000012986 return 0;
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012992if { (ac_try="$ac_compile"
12993case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996esac
12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000012999 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013004 (exit $ac_status); } && {
13005 test -z "$ac_c_werror_flag" ||
13006 test ! -s conftest.err
13007 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013008 ac_cv_type_off_t=yes
13009else
13010 echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
Lev Walkin27fd0b62007-08-27 23:57:45 +000013013 ac_cv_type_off_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000013014fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013015
13016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013017fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013018{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13019echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013020if test $ac_cv_type_off_t = yes; then
13021 :
13022else
13023
13024cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013025#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000013026_ACEOF
13027
13028fi
13029
Lev Walkin27fd0b62007-08-27 23:57:45 +000013030{ echo "$as_me:$LINENO: checking for size_t" >&5
13031echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013032if test "${ac_cv_type_size_t+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013036/* confdefs.h. */
13037_ACEOF
13038cat confdefs.h >>conftest.$ac_ext
13039cat >>conftest.$ac_ext <<_ACEOF
13040/* end confdefs.h. */
13041$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000013042typedef size_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000013043int
13044main ()
13045{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013046if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000013047 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013048if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000013049 return 0;
13050 ;
13051 return 0;
13052}
13053_ACEOF
13054rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013055if { (ac_try="$ac_compile"
13056case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013062 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013071 ac_cv_type_size_t=yes
13072else
13073 echo "$as_me: failed program was:" >&5
13074sed 's/^/| /' conftest.$ac_ext >&5
13075
Lev Walkin27fd0b62007-08-27 23:57:45 +000013076 ac_cv_type_size_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000013077fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013078
13079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013080fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013081{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13082echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013083if test $ac_cv_type_size_t = yes; then
13084 :
13085else
13086
13087cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013088#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000013089_ACEOF
13090
13091fi
13092
Lev Walkin27fd0b62007-08-27 23:57:45 +000013093{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13094echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013095if test "${ac_cv_struct_tm+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013099/* confdefs.h. */
13100_ACEOF
13101cat confdefs.h >>conftest.$ac_ext
13102cat >>conftest.$ac_ext <<_ACEOF
13103/* end confdefs.h. */
13104#include <sys/types.h>
13105#include <time.h>
13106
13107int
13108main ()
13109{
Lev Walkin4c776e52010-11-08 02:07:31 -080013110struct tm tm;
13111 int *p = &tm.tm_sec;
13112 return !p;
Lev Walkinf15320b2004-06-03 03:38:44 +000013113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013118if { (ac_try="$ac_compile"
13119case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013125 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013130 (exit $ac_status); } && {
13131 test -z "$ac_c_werror_flag" ||
13132 test ! -s conftest.err
13133 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013134 ac_cv_struct_tm=time.h
13135else
13136 echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
13138
Lev Walkin27fd0b62007-08-27 23:57:45 +000013139 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013140fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013141
13142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013143fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013144{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13145echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013146if test $ac_cv_struct_tm = sys/time.h; then
13147
13148cat >>confdefs.h <<\_ACEOF
13149#define TM_IN_SYS_TIME 1
13150_ACEOF
13151
13152fi
13153
Lev Walkin27fd0b62007-08-27 23:57:45 +000013154{ echo "$as_me:$LINENO: checking for intmax_t" >&5
13155echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013156if test "${ac_cv_type_intmax_t+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158else
13159 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013160/* confdefs.h. */
13161_ACEOF
13162cat confdefs.h >>conftest.$ac_ext
13163cat >>conftest.$ac_ext <<_ACEOF
13164/* end confdefs.h. */
13165$ac_includes_default
Lev Walkin27fd0b62007-08-27 23:57:45 +000013166typedef intmax_t ac__type_new_;
Lev Walkinf15320b2004-06-03 03:38:44 +000013167int
13168main ()
13169{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013170if ((ac__type_new_ *) 0)
Lev Walkinf15320b2004-06-03 03:38:44 +000013171 return 0;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013172if (sizeof (ac__type_new_))
Lev Walkinf15320b2004-06-03 03:38:44 +000013173 return 0;
13174 ;
13175 return 0;
13176}
13177_ACEOF
13178rm -f conftest.$ac_objext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013179if { (ac_try="$ac_compile"
13180case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_compile") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013186 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013191 (exit $ac_status); } && {
13192 test -z "$ac_c_werror_flag" ||
13193 test ! -s conftest.err
13194 } && test -s conftest.$ac_objext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013195 ac_cv_type_intmax_t=yes
13196else
13197 echo "$as_me: failed program was:" >&5
13198sed 's/^/| /' conftest.$ac_ext >&5
13199
Lev Walkin27fd0b62007-08-27 23:57:45 +000013200 ac_cv_type_intmax_t=no
Lev Walkinf15320b2004-06-03 03:38:44 +000013201fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013202
13203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013204fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013205{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
13206echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013207if test $ac_cv_type_intmax_t = yes; then
13208 :
13209else
13210
13211cat >>confdefs.h <<_ACEOF
13212#define intmax_t int64_t
13213_ACEOF
13214
13215fi
13216
13217
Lev Walkin058e2222007-12-04 00:27:38 +000013218{ echo "$as_me:$LINENO: checking for library containing getopt" >&5
13219echo $ECHO_N "checking for library containing getopt... $ECHO_C" >&6; }
13220if test "${ac_cv_search_getopt+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 ac_func_search_save_LIBS=$LIBS
13224cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h. */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h. */
13230
13231/* Override any GCC internal prototype to avoid an error.
13232 Use char because int might match the return type of a GCC
13233 builtin and then its argument prototype would still apply. */
13234#ifdef __cplusplus
13235extern "C"
13236#endif
13237char getopt ();
13238int
13239main ()
13240{
13241return getopt ();
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246for ac_lib in '' iberty; do
13247 if test -z "$ac_lib"; then
13248 ac_res="none required"
13249 else
13250 ac_res=-l$ac_lib
13251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13252 fi
13253 rm -f conftest.$ac_objext conftest$ac_exeext
13254if { (ac_try="$ac_link"
13255case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258esac
13259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_link") 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest$ac_exeext &&
13270 $as_test_x conftest$ac_exeext; then
Lev Walkin058e2222007-12-04 00:27:38 +000013271 ac_cv_search_getopt=$ac_res
13272else
13273 echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276
13277fi
13278
Lev Walkin4c776e52010-11-08 02:07:31 -080013279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin058e2222007-12-04 00:27:38 +000013280 conftest$ac_exeext
13281 if test "${ac_cv_search_getopt+set}" = set; then
13282 break
13283fi
13284done
13285if test "${ac_cv_search_getopt+set}" = set; then
13286 :
13287else
13288 ac_cv_search_getopt=no
13289fi
13290rm conftest.$ac_ext
13291LIBS=$ac_func_search_save_LIBS
13292fi
13293{ echo "$as_me:$LINENO: result: $ac_cv_search_getopt" >&5
13294echo "${ECHO_T}$ac_cv_search_getopt" >&6; }
13295ac_res=$ac_cv_search_getopt
13296if test "$ac_res" != no; then
13297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13298
13299fi
13300
13301
Lev Walkinf15320b2004-06-03 03:38:44 +000013302
13303
13304for ac_func in strtoimax strtoll
13305do
13306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013307{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13309if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311else
13312 cat >conftest.$ac_ext <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013313/* confdefs.h. */
13314_ACEOF
13315cat confdefs.h >>conftest.$ac_ext
13316cat >>conftest.$ac_ext <<_ACEOF
13317/* end confdefs.h. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13320#define $ac_func innocuous_$ac_func
13321
Lev Walkinf15320b2004-06-03 03:38:44 +000013322/* System header to define __stub macros and hopefully few prototypes,
13323 which can conflict with char $ac_func (); below.
13324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13325 <limits.h> exists even on freestanding compilers. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000013326
Lev Walkinf15320b2004-06-03 03:38:44 +000013327#ifdef __STDC__
13328# include <limits.h>
13329#else
13330# include <assert.h>
13331#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000013332
13333#undef $ac_func
13334
Lev Walkin27fd0b62007-08-27 23:57:45 +000013335/* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply. */
Lev Walkinf15320b2004-06-03 03:38:44 +000013338#ifdef __cplusplus
13339extern "C"
Lev Walkinf15320b2004-06-03 03:38:44 +000013340#endif
Lev Walkinf15320b2004-06-03 03:38:44 +000013341char $ac_func ();
13342/* The GNU C library defines this for functions which it implements
13343 to always fail with ENOSYS. Some functions are actually named
13344 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013345#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkinf15320b2004-06-03 03:38:44 +000013346choke me
Lev Walkinf15320b2004-06-03 03:38:44 +000013347#endif
13348
13349int
13350main ()
13351{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013352return $ac_func ();
Lev Walkinf15320b2004-06-03 03:38:44 +000013353 ;
13354 return 0;
13355}
13356_ACEOF
13357rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013358if { (ac_try="$ac_link"
13359case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362esac
13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_link") 2>conftest.er1
Lev Walkinf15320b2004-06-03 03:38:44 +000013365 ac_status=$?
Lev Walkin8e8b5482004-06-17 23:42:48 +000013366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013370 (exit $ac_status); } && {
13371 test -z "$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 } && test -s conftest$ac_exeext &&
13374 $as_test_x conftest$ac_exeext; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013375 eval "$as_ac_var=yes"
13376else
13377 echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
Lev Walkin27fd0b62007-08-27 23:57:45 +000013380 eval "$as_ac_var=no"
Lev Walkinf15320b2004-06-03 03:38:44 +000013381fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013382
Lev Walkin4c776e52010-11-08 02:07:31 -080013383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013384 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013385fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013386ac_res=`eval echo '${'$as_ac_var'}'`
13387 { echo "$as_me:$LINENO: result: $ac_res" >&5
13388echo "${ECHO_T}$ac_res" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013389if test `eval echo '${'$as_ac_var'}'` = yes; then
13390 cat >>confdefs.h <<_ACEOF
13391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13392_ACEOF
13393
13394fi
13395done
13396
13397
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013398for ac_func in mergesort
13399do
13400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013401{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13403if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013404 echo $ECHO_N "(cached) $ECHO_C" >&6
13405else
13406 cat >conftest.$ac_ext <<_ACEOF
13407/* confdefs.h. */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h. */
13412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13414#define $ac_func innocuous_$ac_func
13415
13416/* System header to define __stub macros and hopefully few prototypes,
13417 which can conflict with char $ac_func (); below.
13418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13419 <limits.h> exists even on freestanding compilers. */
13420
13421#ifdef __STDC__
13422# include <limits.h>
13423#else
13424# include <assert.h>
13425#endif
13426
13427#undef $ac_func
13428
Lev Walkin27fd0b62007-08-27 23:57:45 +000013429/* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013432#ifdef __cplusplus
13433extern "C"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013434#endif
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013435char $ac_func ();
13436/* The GNU C library defines this for functions which it implements
13437 to always fail with ENOSYS. Some functions are actually named
13438 something starting with __ and the normal name is an alias. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013439#if defined __stub_$ac_func || defined __stub___$ac_func
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013440choke me
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013441#endif
13442
13443int
13444main ()
13445{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013446return $ac_func ();
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013447 ;
13448 return 0;
13449}
13450_ACEOF
13451rm -f conftest.$ac_objext conftest$ac_exeext
Lev Walkin27fd0b62007-08-27 23:57:45 +000013452if { (ac_try="$ac_link"
13453case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456esac
13457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_link") 2>conftest.er1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013464 (exit $ac_status); } && {
13465 test -z "$ac_c_werror_flag" ||
13466 test ! -s conftest.err
13467 } && test -s conftest$ac_exeext &&
13468 $as_test_x conftest$ac_exeext; then
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013469 eval "$as_ac_var=yes"
13470else
13471 echo "$as_me: failed program was:" >&5
13472sed 's/^/| /' conftest.$ac_ext >&5
13473
Lev Walkin27fd0b62007-08-27 23:57:45 +000013474 eval "$as_ac_var=no"
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013475fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013476
Lev Walkin4c776e52010-11-08 02:07:31 -080013477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013478 conftest$ac_exeext conftest.$ac_ext
13479fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013480ac_res=`eval echo '${'$as_ac_var'}'`
13481 { echo "$as_me:$LINENO: result: $ac_res" >&5
13482echo "${ECHO_T}$ac_res" >&6; }
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013483if test `eval echo '${'$as_ac_var'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13486_ACEOF
13487
13488fi
13489done
13490
13491
Lev Walkin27fd0b62007-08-27 23:57:45 +000013492for ac_func in mkstemps
13493do
13494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499else
13500 cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h. */
13506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13508#define $ac_func innocuous_$ac_func
13509
13510/* System header to define __stub macros and hopefully few prototypes,
13511 which can conflict with char $ac_func (); below.
13512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13513 <limits.h> exists even on freestanding compilers. */
13514
13515#ifdef __STDC__
13516# include <limits.h>
13517#else
13518# include <assert.h>
13519#endif
13520
13521#undef $ac_func
13522
13523/* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
13526#ifdef __cplusplus
13527extern "C"
13528#endif
13529char $ac_func ();
13530/* The GNU C library defines this for functions which it implements
13531 to always fail with ENOSYS. Some functions are actually named
13532 something starting with __ and the normal name is an alias. */
13533#if defined __stub_$ac_func || defined __stub___$ac_func
13534choke me
13535#endif
13536
13537int
13538main ()
13539{
13540return $ac_func ();
13541 ;
13542 return 0;
13543}
13544_ACEOF
13545rm -f conftest.$ac_objext conftest$ac_exeext
13546if { (ac_try="$ac_link"
13547case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
13551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_link") 2>conftest.er1
13553 ac_status=$?
13554 grep -v '^ *+' conftest.er1 >conftest.err
13555 rm -f conftest.er1
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4c776e52010-11-08 02:07:31 -080013558 (exit $ac_status); } && {
13559 test -z "$ac_c_werror_flag" ||
13560 test ! -s conftest.err
13561 } && test -s conftest$ac_exeext &&
13562 $as_test_x conftest$ac_exeext; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013563 eval "$as_ac_var=yes"
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 eval "$as_ac_var=no"
13569fi
13570
Lev Walkin4c776e52010-11-08 02:07:31 -080013571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Lev Walkin27fd0b62007-08-27 23:57:45 +000013572 conftest$ac_exeext conftest.$ac_ext
13573fi
13574ac_res=`eval echo '${'$as_ac_var'}'`
13575 { echo "$as_me:$LINENO: result: $ac_res" >&5
13576echo "${ECHO_T}$ac_res" >&6; }
13577if test `eval echo '${'$as_ac_var'}'` = yes; then
13578 cat >>confdefs.h <<_ACEOF
13579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13580_ACEOF
13581
13582fi
13583done
Lev Walkinf15320b2004-06-03 03:38:44 +000013584
13585
Lev Walkin27fd0b62007-08-27 23:57:45 +000013586ac_config_headers="$ac_config_headers config.h"
13587
13588
13589ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/webcgi/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
13590
Lev Walkinf15320b2004-06-03 03:38:44 +000013591cat >confcache <<\_ACEOF
13592# This file is a shell script that caches the results of configure
13593# tests run on this system so they can be shared between configure
13594# scripts and configure runs, see configure's option --config-cache.
13595# It is not useful on other systems. If it contains results you don't
13596# want to keep, you may remove or edit it.
13597#
13598# config.status only pays attention to the cache file if you give it
13599# the --recheck option to rerun configure.
13600#
13601# `ac_cv_env_foo' variables (set or unset) will be overridden when
13602# loading this file, other *unset* `ac_cv_foo' will be assigned the
13603# following values.
13604
13605_ACEOF
13606
13607# The following way of writing the cache mishandles newlines in values,
13608# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013609# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000013610# Ultrix sh set writes to stderr and can't be redirected directly,
13611# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013612(
13613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13614 eval ac_val=\$$ac_var
13615 case $ac_val in #(
13616 *${as_nl}*)
13617 case $ac_var in #(
13618 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13619echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13620 esac
13621 case $ac_var in #(
13622 _ | IFS | as_nl) ;; #(
13623 *) $as_unset $ac_var ;;
13624 esac ;;
13625 esac
13626 done
13627
Lev Walkinf15320b2004-06-03 03:38:44 +000013628 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13630 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +000013631 # `set' does not quote correctly, so add quotes (double-quote
13632 # substitution turns \\\\ into \\, and sed turns \\ into \).
13633 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013634 "s/'/'\\\\''/g;
13635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013636 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000013637 *)
13638 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000013640 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013641 esac |
13642 sort
13643) |
Lev Walkinf15320b2004-06-03 03:38:44 +000013644 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013645 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000013646 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000013647 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000013648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13649 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000013650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13651 :end' >>confcache
13652if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13653 if test -w "$cache_file"; then
13654 test "x$cache_file" != "x/dev/null" &&
13655 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13656echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013657 cat confcache >$cache_file
13658 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000013659 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13660echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013661 fi
13662fi
13663rm -f confcache
13664
13665test "x$prefix" = xNONE && prefix=$ac_default_prefix
13666# Let make expand exec_prefix.
13667test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13668
Lev Walkinf15320b2004-06-03 03:38:44 +000013669DEFS=-DHAVE_CONFIG_H
13670
13671ac_libobjs=
13672ac_ltlibobjs=
13673for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13674 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13676 ac_i=`echo "$ac_i" | sed "$ac_script"`
13677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13678 # will be set to the directory where LIBOBJS objects are built.
13679 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13680 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000013681done
13682LIBOBJS=$ac_libobjs
13683
13684LTLIBOBJS=$ac_ltlibobjs
13685
13686
Lev Walkin8e8b5482004-06-17 23:42:48 +000013687if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13688 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13689Usually this means the macro was only invoked conditionally." >&5
13690echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13691Usually this means the macro was only invoked conditionally." >&2;}
13692 { (exit 1); exit 1; }; }
13693fi
13694if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13695 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13696Usually this means the macro was only invoked conditionally." >&5
13697echo "$as_me: error: conditional \"AMDEP\" was never defined.
13698Usually this means the macro was only invoked conditionally." >&2;}
13699 { (exit 1); exit 1; }; }
13700fi
13701if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13702 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13703Usually this means the macro was only invoked conditionally." >&5
13704echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13705Usually this means the macro was only invoked conditionally." >&2;}
13706 { (exit 1); exit 1; }; }
13707fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013708if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13709 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13710Usually this means the macro was only invoked conditionally." >&5
13711echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13712Usually this means the macro was only invoked conditionally." >&2;}
13713 { (exit 1); exit 1; }; }
13714fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013715
13716: ${CONFIG_STATUS=./config.status}
13717ac_clean_files_save=$ac_clean_files
13718ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13719{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13720echo "$as_me: creating $CONFIG_STATUS" >&6;}
13721cat >$CONFIG_STATUS <<_ACEOF
13722#! $SHELL
13723# Generated by $as_me.
13724# Run this file to recreate the current configuration.
13725# Compiler output produced by configure, useful for debugging
13726# configure, is in config.log if it exists.
13727
13728debug=false
13729ac_cs_recheck=false
13730ac_cs_silent=false
13731SHELL=\${CONFIG_SHELL-$SHELL}
13732_ACEOF
13733
13734cat >>$CONFIG_STATUS <<\_ACEOF
13735## --------------------- ##
13736## M4sh Initialization. ##
13737## --------------------- ##
13738
Lev Walkin4c776e52010-11-08 02:07:31 -080013739# Be more Bourne compatible
13740DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinf15320b2004-06-03 03:38:44 +000013741if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13742 emulate sh
13743 NULLCMD=:
13744 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13745 # is contrary to our usage. Disable this feature.
13746 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013747 setopt NO_GLOB_SUBST
13748else
Lev Walkin4c776e52010-11-08 02:07:31 -080013749 case `(set -o) 2>/dev/null` in
13750 *posix*) set -o posix ;;
13751esac
13752
Lev Walkinf15320b2004-06-03 03:38:44 +000013753fi
Lev Walkin4c776e52010-11-08 02:07:31 -080013754
13755
Lev Walkinf15320b2004-06-03 03:38:44 +000013756
Lev Walkinf15320b2004-06-03 03:38:44 +000013757
Lev Walkin27fd0b62007-08-27 23:57:45 +000013758# PATH needs CR
Lev Walkinf15320b2004-06-03 03:38:44 +000013759# Avoid depending upon Character Ranges.
13760as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13761as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13762as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13763as_cr_digits='0123456789'
13764as_cr_alnum=$as_cr_Letters$as_cr_digits
13765
13766# The user is always right.
13767if test "${PATH_SEPARATOR+set}" != set; then
13768 echo "#! /bin/sh" >conf$$.sh
13769 echo "exit 0" >>conf$$.sh
13770 chmod +x conf$$.sh
13771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13772 PATH_SEPARATOR=';'
13773 else
13774 PATH_SEPARATOR=:
13775 fi
13776 rm -f conf$$.sh
13777fi
13778
Lev Walkin27fd0b62007-08-27 23:57:45 +000013779# Support unset when possible.
13780if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13781 as_unset=unset
13782else
13783 as_unset=false
13784fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013785
Lev Walkin27fd0b62007-08-27 23:57:45 +000013786
13787# IFS
13788# We need space, tab and new line, in precisely that order. Quoting is
13789# there to prevent editors from complaining about space-tab.
13790# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13791# splitting by setting IFS to empty value.)
13792as_nl='
13793'
13794IFS=" "" $as_nl"
13795
13796# Find who we are. Look in the path if we contain no directory separator.
13797case $0 in
13798 *[\\/]* ) as_myself=$0 ;;
13799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000013800for as_dir in $PATH
13801do
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13805done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013806IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013807
Lev Walkin27fd0b62007-08-27 23:57:45 +000013808 ;;
13809esac
13810# We did not find ourselves, most probably we were run as `sh COMMAND'
13811# in which case we are not to be found in the path.
13812if test "x$as_myself" = x; then
13813 as_myself=$0
13814fi
13815if test ! -f "$as_myself"; then
13816 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13817 { (exit 1); exit 1; }
13818fi
13819
13820# Work around bugs in pre-3.0 UWIN ksh.
13821for as_var in ENV MAIL MAILPATH
13822do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13823done
13824PS1='$ '
13825PS2='> '
13826PS4='+ '
13827
13828# NLS nuisances.
13829for as_var in \
13830 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13831 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13832 LC_TELEPHONE LC_TIME
Lev Walkinf15320b2004-06-03 03:38:44 +000013833do
Lev Walkin27fd0b62007-08-27 23:57:45 +000013834 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13835 eval $as_var=C; export $as_var
13836 else
13837 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13838 fi
13839done
13840
13841# Required to use basename.
13842if expr a : '\(a\)' >/dev/null 2>&1 &&
13843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13844 as_expr=expr
13845else
13846 as_expr=false
13847fi
13848
13849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13850 as_basename=basename
13851else
13852 as_basename=false
13853fi
13854
13855
13856# Name of the executable.
13857as_me=`$as_basename -- "$0" ||
13858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13859 X"$0" : 'X\(//\)$' \| \
13860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13861echo X/"$0" |
13862 sed '/^.*\/\([^/][^/]*\)\/*$/{
13863 s//\1/
13864 q
13865 }
13866 /^X\/\(\/\/\)$/{
13867 s//\1/
13868 q
13869 }
13870 /^X\/\(\/\).*/{
13871 s//\1/
13872 q
13873 }
13874 s/.*/./; q'`
13875
13876# CDPATH.
13877$as_unset CDPATH
13878
13879
13880
Lev Walkinf15320b2004-06-03 03:38:44 +000013881 as_lineno_1=$LINENO
13882 as_lineno_2=$LINENO
Lev Walkinf15320b2004-06-03 03:38:44 +000013883 test "x$as_lineno_1" != "x$as_lineno_2" &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013884 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Lev Walkinf15320b2004-06-03 03:38:44 +000013885
13886 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13887 # uniformly replaced by the line number. The first 'sed' inserts a
Lev Walkin27fd0b62007-08-27 23:57:45 +000013888 # line-number line after each line using $LINENO; the second 'sed'
13889 # does the real work. The second script uses 'N' to pair each
13890 # line-number line with the line containing $LINENO, and appends
13891 # trailing '-' during substitution so that $LINENO is not a special
13892 # case at line end.
Lev Walkinf15320b2004-06-03 03:38:44 +000013893 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Lev Walkin27fd0b62007-08-27 23:57:45 +000013894 # scripts with optimization help from Paolo Bonzini. Blame Lee
13895 # E. McMahon (1931-1989) for sed's syntax. :-)
13896 sed -n '
13897 p
13898 /[$]LINENO/=
13899 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +000013900 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013901 s/[$]LINENO.*/&-/
13902 t lineno
13903 b
13904 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +000013905 N
Lev Walkin27fd0b62007-08-27 23:57:45 +000013906 :loop
13907 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +000013908 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +000013909 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +000013910 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000013911 chmod +x "$as_me.lineno" ||
13912 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000013913 { (exit 1); exit 1; }; }
13914
13915 # Don't try to exec as it changes $[0], causing all sort of problems
13916 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +000013917 # original and so on. Autoconf is especially sensitive to this).
13918 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +000013919 # Exit status is that of the last command.
13920 exit
13921}
13922
13923
Lev Walkin27fd0b62007-08-27 23:57:45 +000013924if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13925 as_dirname=dirname
13926else
13927 as_dirname=false
13928fi
13929
13930ECHO_C= ECHO_N= ECHO_T=
13931case `echo -n x` in
13932-n*)
13933 case `echo 'x\c'` in
13934 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13935 *) ECHO_C='\c';;
13936 esac;;
13937*)
13938 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000013939esac
13940
Lev Walkin27fd0b62007-08-27 23:57:45 +000013941if expr a : '\(a\)' >/dev/null 2>&1 &&
13942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Lev Walkinf15320b2004-06-03 03:38:44 +000013943 as_expr=expr
13944else
13945 as_expr=false
13946fi
13947
13948rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000013949if test -d conf$$.dir; then
13950 rm -f conf$$.dir/conf$$.file
13951else
13952 rm -f conf$$.dir
13953 mkdir conf$$.dir
13954fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013955echo >conf$$.file
13956if ln -s conf$$.file conf$$ 2>/dev/null; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000013957 as_ln_s='ln -s'
13958 # ... but there are two gotchas:
13959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13961 # In both cases, we have to default to `cp -p'.
13962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinf15320b2004-06-03 03:38:44 +000013963 as_ln_s='cp -p'
Lev Walkinf15320b2004-06-03 03:38:44 +000013964elif ln conf$$.file conf$$ 2>/dev/null; then
13965 as_ln_s=ln
13966else
13967 as_ln_s='cp -p'
13968fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013969rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13970rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000013971
13972if mkdir -p . 2>/dev/null; then
13973 as_mkdir_p=:
13974else
Lev Walkin8e8b5482004-06-17 23:42:48 +000013975 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000013976 as_mkdir_p=false
13977fi
13978
Lev Walkin4c776e52010-11-08 02:07:31 -080013979if test -x / >/dev/null 2>&1; then
13980 as_test_x='test -x'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013981else
Lev Walkin4c776e52010-11-08 02:07:31 -080013982 if ls -dL / >/dev/null 2>&1; then
13983 as_ls_L_option=L
13984 else
13985 as_ls_L_option=
13986 fi
13987 as_test_x='
13988 eval sh -c '\''
13989 if test -d "$1"; then
13990 test -d "$1/.";
13991 else
13992 case $1 in
13993 -*)set "./$1";;
13994 esac;
13995 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13996 ???[sx]*):;;*)false;;esac;fi
13997 '\'' sh
13998 '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013999fi
Lev Walkin4c776e52010-11-08 02:07:31 -080014000as_executable_p=$as_test_x
Lev Walkinf15320b2004-06-03 03:38:44 +000014001
14002# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014003as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000014004
14005# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000014006as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000014007
14008
Lev Walkinf15320b2004-06-03 03:38:44 +000014009exec 6>&1
14010
Lev Walkin27fd0b62007-08-27 23:57:45 +000014011# Save the log message, to keep $[0] and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000014012# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000014013# values after options handling.
14014ac_log="
Lev Walkinf15320b2004-06-03 03:38:44 +000014015This file was extended by $as_me, which was
Lev Walkin4c776e52010-11-08 02:07:31 -080014016generated by GNU Autoconf 2.61. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000014017
14018 CONFIG_FILES = $CONFIG_FILES
14019 CONFIG_HEADERS = $CONFIG_HEADERS
14020 CONFIG_LINKS = $CONFIG_LINKS
14021 CONFIG_COMMANDS = $CONFIG_COMMANDS
14022 $ $0 $@
14023
Lev Walkin27fd0b62007-08-27 23:57:45 +000014024on `(hostname || uname -n) 2>/dev/null | sed 1q`
14025"
14026
Lev Walkinf15320b2004-06-03 03:38:44 +000014027_ACEOF
14028
Lev Walkin27fd0b62007-08-27 23:57:45 +000014029cat >>$CONFIG_STATUS <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014030# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014031config_files="$ac_config_files"
14032config_headers="$ac_config_headers"
14033config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000014034
Lev Walkin27fd0b62007-08-27 23:57:45 +000014035_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014036
14037cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014038ac_cs_usage="\
14039\`$as_me' instantiates files from templates according to the
14040current configuration.
14041
14042Usage: $0 [OPTIONS] [FILE]...
14043
14044 -h, --help print this help, then exit
Lev Walkin4c776e52010-11-08 02:07:31 -080014045 -V, --version print version number and configuration settings, then exit
Lev Walkinf15320b2004-06-03 03:38:44 +000014046 -q, --quiet do not print progress messages
14047 -d, --debug don't remove temporary files
14048 --recheck update $as_me by reconfiguring in the same conditions
14049 --file=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000014050 instantiate the configuration file FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000014051 --header=FILE[:TEMPLATE]
Lev Walkin8e8b5482004-06-17 23:42:48 +000014052 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000014053
14054Configuration files:
14055$config_files
14056
14057Configuration headers:
14058$config_headers
14059
14060Configuration commands:
14061$config_commands
14062
14063Report bugs to <bug-autoconf@gnu.org>."
Lev Walkinf15320b2004-06-03 03:38:44 +000014064
Lev Walkin27fd0b62007-08-27 23:57:45 +000014065_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014066cat >>$CONFIG_STATUS <<_ACEOF
14067ac_cs_version="\\
14068config.status
Lev Walkin4c776e52010-11-08 02:07:31 -080014069configured by $0, generated by GNU Autoconf 2.61,
Lev Walkin27fd0b62007-08-27 23:57:45 +000014070 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000014071
Lev Walkin27fd0b62007-08-27 23:57:45 +000014072Copyright (C) 2006 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000014073This config.status script is free software; the Free Software Foundation
14074gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000014075
14076ac_pwd='$ac_pwd'
14077srcdir='$srcdir'
14078INSTALL='$INSTALL'
Lev Walkin4c776e52010-11-08 02:07:31 -080014079MKDIR_P='$MKDIR_P'
Lev Walkinf15320b2004-06-03 03:38:44 +000014080_ACEOF
14081
14082cat >>$CONFIG_STATUS <<\_ACEOF
14083# If no file are specified by the user, then we need to provide default
14084# value. By we need to know if files were specified by the user.
14085ac_need_defaults=:
14086while test $# != 0
14087do
14088 case $1 in
14089 --*=*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000014090 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14091 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000014092 ac_shift=:
14093 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014094 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000014095 ac_option=$1
14096 ac_optarg=$2
14097 ac_shift=shift
14098 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014099 esac
14100
14101 case $ac_option in
14102 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000014103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14104 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014105 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14106 echo "$ac_cs_version"; exit ;;
14107 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000014108 debug=: ;;
14109 --file | --fil | --fi | --f )
14110 $ac_shift
14111 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14112 ac_need_defaults=false;;
14113 --header | --heade | --head | --hea )
14114 $ac_shift
14115 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14116 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014117 --he | --h)
14118 # Conflict between --help and --header
14119 { echo "$as_me: error: ambiguous option: $1
14120Try \`$0 --help' for more information." >&2
14121 { (exit 1); exit 1; }; };;
14122 --help | --hel | -h )
14123 echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14126 ac_cs_silent=: ;;
14127
14128 # This is an error.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014129 -*) { echo "$as_me: error: unrecognized option: $1
14130Try \`$0 --help' for more information." >&2
Lev Walkinf15320b2004-06-03 03:38:44 +000014131 { (exit 1); exit 1; }; } ;;
14132
Lev Walkin27fd0b62007-08-27 23:57:45 +000014133 *) ac_config_targets="$ac_config_targets $1"
14134 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014135
14136 esac
14137 shift
14138done
14139
14140ac_configure_extra_args=
14141
14142if $ac_cs_silent; then
14143 exec 6>/dev/null
14144 ac_configure_extra_args="$ac_configure_extra_args --silent"
14145fi
14146
14147_ACEOF
14148cat >>$CONFIG_STATUS <<_ACEOF
14149if \$ac_cs_recheck; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014150 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14151 CONFIG_SHELL=$SHELL
14152 export CONFIG_SHELL
14153 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinf15320b2004-06-03 03:38:44 +000014154fi
14155
14156_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014157cat >>$CONFIG_STATUS <<\_ACEOF
14158exec 5>>config.log
14159{
14160 echo
14161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14162## Running $as_me. ##
14163_ASBOX
14164 echo "$ac_log"
14165} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014166
Lev Walkin27fd0b62007-08-27 23:57:45 +000014167_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014168cat >>$CONFIG_STATUS <<_ACEOF
14169#
Lev Walkin27fd0b62007-08-27 23:57:45 +000014170# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000014171#
Lev Walkin8e8b5482004-06-17 23:42:48 +000014172AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000014173
Lev Walkin4da95cf2010-10-16 02:46:32 -070014174
14175# The HP-UX ksh and POSIX shell print the target directory to stdout
14176# if CDPATH is set.
14177(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14178
14179sed_quote_subst='$sed_quote_subst'
14180double_quote_subst='$double_quote_subst'
14181delay_variable_subst='$delay_variable_subst'
Lev Walkin4c776e52010-11-08 02:07:31 -080014182macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14183macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14184enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14185enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14186pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14187enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14188host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14189host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14190host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14191build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14192build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14193build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14194SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14195Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14196GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14197EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14198FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14199LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14200NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14201LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14202max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14203ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14204exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14205lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14206lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14207lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14208reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14209reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14210deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14211file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14212AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14213AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14214STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14215RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14216old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14217old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14218old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14219CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14220CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14221compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14222GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14223lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14224lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14225lt_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"`'
14226lt_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"`'
14227objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14228SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14229ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14230MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14231lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14232lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14233lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14234lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14235lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14236need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14237DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14238NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14239LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14240OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14241OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14242libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14243shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14244extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14245archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14246enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14247export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14248whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14249compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14250old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14251old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14252archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14253archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14254module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14255module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14256with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14257allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14258no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14259hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14260hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14261hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14262hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14263hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14264hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14265hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14266hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14267inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14268link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14269fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14270always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14271export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14272exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14273include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14274prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14275file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14276variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14277need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14278need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14279version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14280runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14281shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14282shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14283libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14284library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14285soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14286postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14287postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14288finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14289finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14290hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14291sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14292sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14293hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14294enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14295enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14296enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14297old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14298striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070014299
14300LTCC='$LTCC'
14301LTCFLAGS='$LTCFLAGS'
14302compiler='$compiler_DEFAULT'
14303
Lev Walkin4da95cf2010-10-16 02:46:32 -070014304# Quote evaled strings.
Lev Walkin4c776e52010-11-08 02:07:31 -080014305for var in SED \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014306GREP \
14307EGREP \
14308FGREP \
14309LD \
14310NM \
14311LN_S \
14312lt_SP2NL \
14313lt_NL2SP \
14314reload_flag \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014315deplibs_check_method \
14316file_magic_cmd \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014317AR \
14318AR_FLAGS \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014319STRIP \
14320RANLIB \
14321CC \
14322CFLAGS \
14323compiler \
14324lt_cv_sys_global_symbol_pipe \
14325lt_cv_sys_global_symbol_to_cdecl \
14326lt_cv_sys_global_symbol_to_c_name_address \
14327lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Lev Walkin4c776e52010-11-08 02:07:31 -080014328SHELL \
14329ECHO \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014330lt_prog_compiler_no_builtin_flag \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014331lt_prog_compiler_wl \
Lev Walkin4c776e52010-11-08 02:07:31 -080014332lt_prog_compiler_pic \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014333lt_prog_compiler_static \
14334lt_cv_prog_compiler_c_o \
14335need_locks \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014336DSYMUTIL \
14337NMEDIT \
14338LIPO \
14339OTOOL \
14340OTOOL64 \
14341shrext_cmds \
14342export_dynamic_flag_spec \
14343whole_archive_flag_spec \
14344compiler_needs_object \
14345with_gnu_ld \
14346allow_undefined_flag \
14347no_undefined_flag \
14348hardcode_libdir_flag_spec \
14349hardcode_libdir_flag_spec_ld \
14350hardcode_libdir_separator \
Lev Walkin4c776e52010-11-08 02:07:31 -080014351fix_srcfile_path \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014352exclude_expsyms \
14353include_expsyms \
14354file_list_spec \
14355variables_saved_for_relink \
14356libname_spec \
14357library_names_spec \
14358soname_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014359finish_eval \
14360old_striplib \
14361striplib; do
Lev Walkin4c776e52010-11-08 02:07:31 -080014362 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014363 *[\\\\\\\`\\"\\\$]*)
Lev Walkin4c776e52010-11-08 02:07:31 -080014364 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014365 ;;
14366 *)
14367 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14368 ;;
14369 esac
14370done
14371
14372# Double-quote double-evaled strings.
14373for var in reload_cmds \
14374old_postinstall_cmds \
14375old_postuninstall_cmds \
14376old_archive_cmds \
14377extract_expsyms_cmds \
14378old_archive_from_new_cmds \
14379old_archive_from_expsyms_cmds \
14380archive_cmds \
14381archive_expsym_cmds \
14382module_cmds \
14383module_expsym_cmds \
14384export_symbols_cmds \
14385prelink_cmds \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014386postinstall_cmds \
14387postuninstall_cmds \
14388finish_cmds \
14389sys_lib_search_path_spec \
14390sys_lib_dlsearch_path_spec; do
Lev Walkin4c776e52010-11-08 02:07:31 -080014391 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014392 *[\\\\\\\`\\"\\\$]*)
Lev Walkin4c776e52010-11-08 02:07:31 -080014393 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 -070014394 ;;
14395 *)
14396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14397 ;;
14398 esac
14399done
14400
Lev Walkin4c776e52010-11-08 02:07:31 -080014401# Fix-up fallback echo if it was mangled by the above quoting rules.
14402case \$lt_ECHO in
14403*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14404 ;;
14405esac
14406
Lev Walkin4da95cf2010-10-16 02:46:32 -070014407ac_aux_dir='$ac_aux_dir'
14408xsi_shell='$xsi_shell'
14409lt_shell_append='$lt_shell_append'
14410
14411# See if we are running on zsh, and set the options which allow our
14412# commands through without removal of \ escapes INIT.
14413if test -n "\${ZSH_VERSION+set}" ; then
14414 setopt NO_GLOB_SUBST
14415fi
14416
14417
14418 PACKAGE='$PACKAGE'
14419 VERSION='$VERSION'
14420 TIMESTAMP='$TIMESTAMP'
14421 RM='$RM'
14422 ofile='$ofile'
14423
14424
14425
14426
Lev Walkinf15320b2004-06-03 03:38:44 +000014427_ACEOF
14428
Lev Walkinf15320b2004-06-03 03:38:44 +000014429cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014430
14431# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000014432for ac_config_target in $ac_config_targets
14433do
Lev Walkin27fd0b62007-08-27 23:57:45 +000014434 case $ac_config_target in
14435 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014436 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014437 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14438 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
14439 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
14440 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
14441 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
14442 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
14443 "asn1c/webcgi/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/webcgi/Makefile" ;;
14444 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
14445 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
14446 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
14447 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14448 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14449 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
14450 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14451 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
14452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14453
Lev Walkinf15320b2004-06-03 03:38:44 +000014454 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14455echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14456 { (exit 1); exit 1; }; };;
14457 esac
14458done
14459
Lev Walkin27fd0b62007-08-27 23:57:45 +000014460
Lev Walkinf15320b2004-06-03 03:38:44 +000014461# If the user did not use the arguments to specify the items to instantiate,
14462# then the envvar interface is used. Set only those that are not.
14463# We use the long form for the default assignment because of an extremely
14464# bizarre bug on SunOS 4.1.3.
14465if $ac_need_defaults; then
14466 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14467 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14468 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14469fi
14470
14471# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000014472# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000014473# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014474# Hook for its removal unless debugging.
14475# Note that there is a small window in which the directory will not be cleaned:
14476# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000014477$debug ||
14478{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014479 tmp=
14480 trap 'exit_status=$?
14481 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14482' 0
Lev Walkinf15320b2004-06-03 03:38:44 +000014483 trap '{ (exit 1); exit 1; }' 1 2 13 15
14484}
Lev Walkinf15320b2004-06-03 03:38:44 +000014485# Create a (secure) tmp directory for tmp files.
14486
14487{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014488 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014489 test -n "$tmp" && test -d "$tmp"
14490} ||
14491{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014492 tmp=./conf$$-$RANDOM
14493 (umask 077 && mkdir "$tmp")
Lev Walkinf15320b2004-06-03 03:38:44 +000014494} ||
14495{
14496 echo "$me: cannot create a temporary directory in ." >&2
14497 { (exit 1); exit 1; }
14498}
14499
Lev Walkinf15320b2004-06-03 03:38:44 +000014500#
Lev Walkin27fd0b62007-08-27 23:57:45 +000014501# Set up the sed scripts for CONFIG_FILES section.
Lev Walkinf15320b2004-06-03 03:38:44 +000014502#
14503
14504# No need to generate the scripts if there are no CONFIG_FILES.
14505# This happens for instance when ./config.status config.h
Lev Walkin27fd0b62007-08-27 23:57:45 +000014506if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014507
14508_ACEOF
14509
Lev Walkin27fd0b62007-08-27 23:57:45 +000014510
14511
14512ac_delim='%!_!# '
14513for ac_last_try in false false false false false :; do
14514 cat >conf$$subs.sed <<_ACEOF
14515SHELL!$SHELL$ac_delim
14516PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14517PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14518PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14519PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14520PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14521PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14522exec_prefix!$exec_prefix$ac_delim
14523prefix!$prefix$ac_delim
14524program_transform_name!$program_transform_name$ac_delim
14525bindir!$bindir$ac_delim
14526sbindir!$sbindir$ac_delim
14527libexecdir!$libexecdir$ac_delim
14528datarootdir!$datarootdir$ac_delim
14529datadir!$datadir$ac_delim
14530sysconfdir!$sysconfdir$ac_delim
14531sharedstatedir!$sharedstatedir$ac_delim
14532localstatedir!$localstatedir$ac_delim
14533includedir!$includedir$ac_delim
14534oldincludedir!$oldincludedir$ac_delim
14535docdir!$docdir$ac_delim
14536infodir!$infodir$ac_delim
14537htmldir!$htmldir$ac_delim
14538dvidir!$dvidir$ac_delim
14539pdfdir!$pdfdir$ac_delim
14540psdir!$psdir$ac_delim
14541libdir!$libdir$ac_delim
14542localedir!$localedir$ac_delim
14543mandir!$mandir$ac_delim
14544DEFS!$DEFS$ac_delim
14545ECHO_C!$ECHO_C$ac_delim
14546ECHO_N!$ECHO_N$ac_delim
14547ECHO_T!$ECHO_T$ac_delim
14548LIBS!$LIBS$ac_delim
14549build_alias!$build_alias$ac_delim
14550host_alias!$host_alias$ac_delim
14551target_alias!$target_alias$ac_delim
14552build!$build$ac_delim
14553build_cpu!$build_cpu$ac_delim
14554build_vendor!$build_vendor$ac_delim
14555build_os!$build_os$ac_delim
14556host!$host$ac_delim
14557host_cpu!$host_cpu$ac_delim
14558host_vendor!$host_vendor$ac_delim
14559host_os!$host_os$ac_delim
14560target!$target$ac_delim
14561target_cpu!$target_cpu$ac_delim
14562target_vendor!$target_vendor$ac_delim
14563target_os!$target_os$ac_delim
14564INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14565INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14566INSTALL_DATA!$INSTALL_DATA$ac_delim
Lev Walkin4c776e52010-11-08 02:07:31 -080014567am__isrc!$am__isrc$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014568CYGPATH_W!$CYGPATH_W$ac_delim
14569PACKAGE!$PACKAGE$ac_delim
14570VERSION!$VERSION$ac_delim
14571ACLOCAL!$ACLOCAL$ac_delim
14572AUTOCONF!$AUTOCONF$ac_delim
14573AUTOMAKE!$AUTOMAKE$ac_delim
14574AUTOHEADER!$AUTOHEADER$ac_delim
14575MAKEINFO!$MAKEINFO$ac_delim
14576install_sh!$install_sh$ac_delim
14577STRIP!$STRIP$ac_delim
14578INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14579mkdir_p!$mkdir_p$ac_delim
14580AWK!$AWK$ac_delim
14581SET_MAKE!$SET_MAKE$ac_delim
14582am__leading_dot!$am__leading_dot$ac_delim
14583AMTAR!$AMTAR$ac_delim
14584am__tar!$am__tar$ac_delim
14585am__untar!$am__untar$ac_delim
14586MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14587MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14588MAINT!$MAINT$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014589LIBTOOL!$LIBTOOL$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014590CC!$CC$ac_delim
14591CFLAGS!$CFLAGS$ac_delim
14592LDFLAGS!$LDFLAGS$ac_delim
14593CPPFLAGS!$CPPFLAGS$ac_delim
14594ac_ct_CC!$ac_ct_CC$ac_delim
14595EXEEXT!$EXEEXT$ac_delim
14596OBJEXT!$OBJEXT$ac_delim
14597DEPDIR!$DEPDIR$ac_delim
14598am__include!$am__include$ac_delim
14599am__quote!$am__quote$ac_delim
14600AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14601AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14602AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14603CCDEPMODE!$CCDEPMODE$ac_delim
14604am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14605am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014606SED!$SED$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014607GREP!$GREP$ac_delim
14608EGREP!$EGREP$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014609FGREP!$FGREP$ac_delim
14610LD!$LD$ac_delim
14611DUMPBIN!$DUMPBIN$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014612_ACEOF
14613
14614 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14615 break
14616 elif $ac_last_try; then
14617 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14618echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14619 { (exit 1); exit 1; }; }
14620 else
14621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000014622 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014623done
14624
14625ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14626if test -n "$ac_eof"; then
14627 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14628 ac_eof=`expr $ac_eof + 1`
14629fi
14630
14631cat >>$CONFIG_STATUS <<_ACEOF
14632cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14633/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14634_ACEOF
14635sed '
14636s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14637s/^/s,@/; s/!/@,|#_!!_#|/
14638:n
14639t n
14640s/'"$ac_delim"'$/,g/; t
14641s/$/\\/; p
14642N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14643' >>$CONFIG_STATUS <conf$$subs.sed
14644rm -f conf$$subs.sed
14645cat >>$CONFIG_STATUS <<_ACEOF
14646CEOF$ac_eof
14647_ACEOF
14648
14649
14650ac_delim='%!_!# '
14651for ac_last_try in false false false false false :; do
14652 cat >conf$$subs.sed <<_ACEOF
Lev Walkin4c776e52010-11-08 02:07:31 -080014653ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014654NM!$NM$ac_delim
14655LN_S!$LN_S$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014656AR!$AR$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014657RANLIB!$RANLIB$ac_delim
Lev Walkin4c776e52010-11-08 02:07:31 -080014658lt_ECHO!$lt_ECHO$ac_delim
Lev Walkin4da95cf2010-10-16 02:46:32 -070014659DSYMUTIL!$DSYMUTIL$ac_delim
14660NMEDIT!$NMEDIT$ac_delim
14661LIPO!$LIPO$ac_delim
14662OTOOL!$OTOOL$ac_delim
14663OTOOL64!$OTOOL64$ac_delim
14664CPP!$CPP$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014665CONFIGURE_DEPENDS!$CONFIGURE_DEPENDS$ac_delim
14666YACC!$YACC$ac_delim
14667YFLAGS!$YFLAGS$ac_delim
14668LEX!$LEX$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014669LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Lev Walkin4c776e52010-11-08 02:07:31 -080014670LEXLIB!$LEXLIB$ac_delim
Lev Walkin27fd0b62007-08-27 23:57:45 +000014671ADD_CFLAGS!$ADD_CFLAGS$ac_delim
14672LIBOBJS!$LIBOBJS$ac_delim
14673LTLIBOBJS!$LTLIBOBJS$ac_delim
14674_ACEOF
14675
Lev Walkin4c776e52010-11-08 02:07:31 -080014676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014677 break
14678 elif $ac_last_try; then
14679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14680echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14681 { (exit 1); exit 1; }; }
14682 else
14683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14684 fi
14685done
14686
14687ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14688if test -n "$ac_eof"; then
14689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14690 ac_eof=`expr $ac_eof + 1`
14691fi
14692
14693cat >>$CONFIG_STATUS <<_ACEOF
14694cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14696_ACEOF
14697sed '
14698s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14699s/^/s,@/; s/!/@,|#_!!_#|/
14700:n
14701t n
14702s/'"$ac_delim"'$/,g/; t
14703s/$/\\/; p
14704N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14705' >>$CONFIG_STATUS <conf$$subs.sed
14706rm -f conf$$subs.sed
14707cat >>$CONFIG_STATUS <<_ACEOF
14708:end
14709s/|#_!!_#|//g
14710CEOF$ac_eof
14711_ACEOF
14712
14713
14714# VPATH may cause trouble with some makes, so we remove $(srcdir),
14715# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14716# trailing colons and then remove the whole line if VPATH becomes empty
14717# (actually we leave an empty line to preserve line numbers).
14718if test "x$srcdir" = x.; then
14719 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14720s/:*\$(srcdir):*/:/
14721s/:*\${srcdir}:*/:/
14722s/:*@srcdir@:*/:/
14723s/^\([^=]*=[ ]*\):*/\1/
14724s/:*$//
14725s/^[^=]*=[ ]*$//
14726}'
14727fi
14728
14729cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000014730fi # test -n "$CONFIG_FILES"
14731
Lev Walkin27fd0b62007-08-27 23:57:45 +000014732
14733for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14734do
14735 case $ac_tag in
14736 :[FHLC]) ac_mode=$ac_tag; continue;;
14737 esac
14738 case $ac_mode$ac_tag in
14739 :[FHL]*:*);;
14740 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14741echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14742 { (exit 1); exit 1; }; };;
14743 :[FH]-) ac_tag=-:-;;
14744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14745 esac
14746 ac_save_IFS=$IFS
14747 IFS=:
14748 set x $ac_tag
14749 IFS=$ac_save_IFS
14750 shift
14751 ac_file=$1
14752 shift
14753
14754 case $ac_mode in
14755 :L) ac_source=$1;;
14756 :[FH])
14757 ac_file_inputs=
14758 for ac_f
14759 do
14760 case $ac_f in
14761 -) ac_f="$tmp/stdin";;
14762 *) # Look for the file first in the build tree, then in the source tree
14763 # (if the path is not absolute). The absolute path cannot be DOS-style,
14764 # because $ac_f cannot contain `:'.
14765 test -f "$ac_f" ||
14766 case $ac_f in
14767 [\\/$]*) false;;
14768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14769 esac ||
14770 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14771echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14772 { (exit 1); exit 1; }; };;
14773 esac
14774 ac_file_inputs="$ac_file_inputs $ac_f"
14775 done
14776
14777 # Let's still pretend it is `configure' which instantiates (i.e., don't
14778 # use $as_me), people would be surprised to read:
14779 # /* config.h. Generated by config.status. */
14780 configure_input="Generated from "`IFS=:
14781 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14782 if test x"$ac_file" != x-; then
14783 configure_input="$ac_file. $configure_input"
14784 { echo "$as_me:$LINENO: creating $ac_file" >&5
14785echo "$as_me: creating $ac_file" >&6;}
14786 fi
14787
14788 case $ac_tag in
14789 *:-:* | *:-) cat >"$tmp/stdin";;
14790 esac
14791 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014792 esac
14793
Lev Walkin27fd0b62007-08-27 23:57:45 +000014794 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014796 X"$ac_file" : 'X\(//\)[^/]' \| \
14797 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014799echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14801 s//\1/
14802 q
14803 }
14804 /^X\(\/\/\)[^/].*/{
14805 s//\1/
14806 q
14807 }
14808 /^X\(\/\/\)$/{
14809 s//\1/
14810 q
14811 }
14812 /^X\(\/\).*/{
14813 s//\1/
14814 q
14815 }
14816 s/.*/./; q'`
14817 { as_dir="$ac_dir"
14818 case $as_dir in #(
14819 -*) as_dir=./$as_dir;;
14820 esac
14821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkinf15320b2004-06-03 03:38:44 +000014822 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000014823 while :; do
14824 case $as_dir in #(
14825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14826 *) as_qdir=$as_dir;;
14827 esac
14828 as_dirs="'$as_qdir' $as_dirs"
14829 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014831 X"$as_dir" : 'X\(//\)[^/]' \| \
14832 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014834echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14836 s//\1/
14837 q
14838 }
14839 /^X\(\/\/\)[^/].*/{
14840 s//\1/
14841 q
14842 }
14843 /^X\(\/\/\)$/{
14844 s//\1/
14845 q
14846 }
14847 /^X\(\/\).*/{
14848 s//\1/
14849 q
14850 }
14851 s/.*/./; q'`
14852 test -d "$as_dir" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000014853 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000014854 test -z "$as_dirs" || eval "mkdir $as_dirs"
14855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14856echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014857 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000014858 ac_builddir=.
14859
Lev Walkin27fd0b62007-08-27 23:57:45 +000014860case "$ac_dir" in
14861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14862*)
Lev Walkinf15320b2004-06-03 03:38:44 +000014863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014864 # A ".." for each directory in $ac_dir_suffix.
14865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14866 case $ac_top_builddir_sub in
14867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14869 esac ;;
14870esac
14871ac_abs_top_builddir=$ac_pwd
14872ac_abs_builddir=$ac_pwd$ac_dir_suffix
14873# for backward compatibility:
14874ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000014875
14876case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014877 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000014878 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014879 ac_top_srcdir=$ac_top_builddir_sub
14880 ac_abs_top_srcdir=$ac_pwd ;;
14881 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000014882 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014883 ac_top_srcdir=$srcdir
14884 ac_abs_top_srcdir=$srcdir ;;
14885 *) # Relative name.
14886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14887 ac_top_srcdir=$ac_top_build_prefix$srcdir
14888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014889esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000014891
Lev Walkinf15320b2004-06-03 03:38:44 +000014892
Lev Walkin27fd0b62007-08-27 23:57:45 +000014893 case $ac_mode in
14894 :F)
14895 #
14896 # CONFIG_FILE
14897 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014898
14899 case $INSTALL in
14900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014901 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014902 esac
Lev Walkin4c776e52010-11-08 02:07:31 -080014903 ac_MKDIR_P=$MKDIR_P
14904 case $MKDIR_P in
14905 [\\/$]* | ?:[\\/]* ) ;;
14906 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14907 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014908_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014909
14910cat >>$CONFIG_STATUS <<\_ACEOF
14911# If the template does not know about datarootdir, expand it.
14912# FIXME: This hack should be removed a few years after 2.60.
14913ac_datarootdir_hack=; ac_datarootdir_seen=
14914
14915case `sed -n '/datarootdir/ {
14916 p
14917 q
14918}
14919/@datadir@/p
14920/@docdir@/p
14921/@infodir@/p
14922/@localedir@/p
14923/@mandir@/p
14924' $ac_file_inputs` in
14925*datarootdir*) ac_datarootdir_seen=yes;;
14926*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14927 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14928echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14929_ACEOF
14930cat >>$CONFIG_STATUS <<_ACEOF
14931 ac_datarootdir_hack='
14932 s&@datadir@&$datadir&g
14933 s&@docdir@&$docdir&g
14934 s&@infodir@&$infodir&g
14935 s&@localedir@&$localedir&g
14936 s&@mandir@&$mandir&g
14937 s&\\\${datarootdir}&$datarootdir&g' ;;
14938esac
14939_ACEOF
14940
14941# Neutralize VPATH when `$srcdir' = `.'.
14942# Shell code in configure.ac might set extrasub.
14943# FIXME: do we really want to maintain this feature?
Lev Walkinf15320b2004-06-03 03:38:44 +000014944cat >>$CONFIG_STATUS <<_ACEOF
14945 sed "$ac_vpsub
14946$extrasub
14947_ACEOF
14948cat >>$CONFIG_STATUS <<\_ACEOF
14949:t
14950/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkin27fd0b62007-08-27 23:57:45 +000014951s&@configure_input@&$configure_input&;t t
14952s&@top_builddir@&$ac_top_builddir_sub&;t t
14953s&@srcdir@&$ac_srcdir&;t t
14954s&@abs_srcdir@&$ac_abs_srcdir&;t t
14955s&@top_srcdir@&$ac_top_srcdir&;t t
14956s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14957s&@builddir@&$ac_builddir&;t t
14958s&@abs_builddir@&$ac_abs_builddir&;t t
14959s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14960s&@INSTALL@&$ac_INSTALL&;t t
Lev Walkin4c776e52010-11-08 02:07:31 -080014961s&@MKDIR_P@&$ac_MKDIR_P&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014962$ac_datarootdir_hack
14963" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Lev Walkinf15320b2004-06-03 03:38:44 +000014964
Lev Walkin27fd0b62007-08-27 23:57:45 +000014965test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14966 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14968 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14969which seems to be undefined. Please make sure it is defined." >&5
14970echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14971which seems to be undefined. Please make sure it is defined." >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014972
Lev Walkin27fd0b62007-08-27 23:57:45 +000014973 rm -f "$tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000014974 case $ac_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014975 -) cat "$tmp/out"; rm -f "$tmp/out";;
14976 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014977 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014978 ;;
14979 :H)
14980 #
14981 # CONFIG_HEADER
14982 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014983_ACEOF
14984
Lev Walkin27fd0b62007-08-27 23:57:45 +000014985# Transform confdefs.h into a sed script `conftest.defines', that
14986# substitutes the proper values into config.h.in to produce config.h.
14987rm -f conftest.defines conftest.tail
14988# First, append a space to every undef/define line, to ease matching.
14989echo 's/$/ /' >conftest.defines
14990# Then, protect against being on the right side of a sed subst, or in
14991# an unquoted here document, in config.status. If some macros were
14992# called several times there might be several #defines for the same
14993# symbol, which is useless. But do not sort them, since the last
14994# AC_DEFINE must be honored.
14995ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14996# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14997# NAME is the cpp macro being defined, VALUE is the value it is being given.
14998# PARAMS is the parameter list in the macro definition--in most cases, it's
14999# just an empty string.
15000ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15001ac_dB='\\)[ (].*,\\1define\\2'
15002ac_dC=' '
15003ac_dD=' ,'
Lev Walkinf15320b2004-06-03 03:38:44 +000015004
Lev Walkin27fd0b62007-08-27 23:57:45 +000015005uniq confdefs.h |
15006 sed -n '
15007 t rset
15008 :rset
15009 s/^[ ]*#[ ]*define[ ][ ]*//
15010 t ok
15011 d
15012 :ok
15013 s/[\\&,]/\\&/g
15014 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15015 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15016 ' >>conftest.defines
15017
15018# Remove the space that was appended to ease matching.
15019# Then replace #undef with comments. This is necessary, for
Lev Walkinf15320b2004-06-03 03:38:44 +000015020# example, in the case of _POSIX_SOURCE, which is predefined and required
15021# on some systems where configure will not decide to define it.
Lev Walkin27fd0b62007-08-27 23:57:45 +000015022# (The regexp can be short, since the line contains either #define or #undef.)
15023echo 's/ $//
15024s,^[ #]*u.*,/* & */,' >>conftest.defines
Lev Walkinf15320b2004-06-03 03:38:44 +000015025
Lev Walkin27fd0b62007-08-27 23:57:45 +000015026# Break up conftest.defines:
15027ac_max_sed_lines=50
15028
15029# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15030# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15031# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15032# et cetera.
15033ac_in='$ac_file_inputs'
15034ac_out='"$tmp/out1"'
15035ac_nxt='"$tmp/out2"'
15036
15037while :
Lev Walkinf15320b2004-06-03 03:38:44 +000015038do
Lev Walkin27fd0b62007-08-27 23:57:45 +000015039 # Write a here document:
15040 cat >>$CONFIG_STATUS <<_ACEOF
15041 # First, check the format of the line:
15042 cat >"\$tmp/defines.sed" <<\\CEOF
15043/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15044/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15045b
15046:def
15047_ACEOF
15048 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000015049 echo 'CEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000015050 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15051 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15052 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15053 grep . conftest.tail >/dev/null || break
Lev Walkinf15320b2004-06-03 03:38:44 +000015054 rm -f conftest.defines
15055 mv conftest.tail conftest.defines
15056done
Lev Walkin27fd0b62007-08-27 23:57:45 +000015057rm -f conftest.defines conftest.tail
Lev Walkinf15320b2004-06-03 03:38:44 +000015058
Lev Walkin27fd0b62007-08-27 23:57:45 +000015059echo "ac_result=$ac_in" >>$CONFIG_STATUS
Lev Walkinf15320b2004-06-03 03:38:44 +000015060cat >>$CONFIG_STATUS <<\_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015061 if test x"$ac_file" != x-; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000015062 echo "/* $configure_input */" >"$tmp/config.h"
15063 cat "$ac_result" >>"$tmp/config.h"
15064 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Lev Walkinf15320b2004-06-03 03:38:44 +000015065 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15066echo "$as_me: $ac_file is unchanged" >&6;}
15067 else
Lev Walkinf15320b2004-06-03 03:38:44 +000015068 rm -f $ac_file
Lev Walkin27fd0b62007-08-27 23:57:45 +000015069 mv "$tmp/config.h" $ac_file
Lev Walkinf15320b2004-06-03 03:38:44 +000015070 fi
15071 else
Lev Walkin27fd0b62007-08-27 23:57:45 +000015072 echo "/* $configure_input */"
15073 cat "$ac_result"
Lev Walkinf15320b2004-06-03 03:38:44 +000015074 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000015075 rm -f "$tmp/out12"
Lev Walkin8e8b5482004-06-17 23:42:48 +000015076# Compute $ac_file's index in $config_headers.
15077_am_stamp_count=1
15078for _am_header in $config_headers :; do
15079 case $_am_header in
15080 $ac_file | $ac_file:* )
15081 break ;;
15082 * )
15083 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015084 esac
15085done
Lev Walkin27fd0b62007-08-27 23:57:45 +000015086echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015087$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15088 X$ac_file : 'X\(//\)[^/]' \| \
15089 X$ac_file : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015090 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015091echo X$ac_file |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15093 s//\1/
15094 q
15095 }
15096 /^X\(\/\/\)[^/].*/{
15097 s//\1/
15098 q
15099 }
15100 /^X\(\/\/\)$/{
15101 s//\1/
15102 q
15103 }
15104 /^X\(\/\).*/{
15105 s//\1/
15106 q
15107 }
15108 s/.*/./; q'`/stamp-h$_am_stamp_count
15109 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015110
Lev Walkin27fd0b62007-08-27 23:57:45 +000015111 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15112echo "$as_me: executing $ac_file commands" >&6;}
15113 ;;
15114 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000015115
15116
Lev Walkin27fd0b62007-08-27 23:57:45 +000015117 case $ac_file$ac_mode in
15118 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000015119 # Strip MF so we end up with the name of the file.
15120 mf=`echo "$mf" | sed -e 's/:.*$//'`
15121 # Check whether this is an Automake generated Makefile or not.
15122 # We used to match only the files named `Makefile.in', but
15123 # some people rename them; so instead we look at the file content.
15124 # Grep'ing the first line is not enough: some people post-process
15125 # each Makefile.in and add a new line on top of each file to say so.
Lev Walkin4c776e52010-11-08 02:07:31 -080015126 # Grep'ing the whole file is not good either: AIX grep has a line
15127 # limit of 2048, but all sed's we know have understand at least 4000.
15128 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000015129 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015130$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15131 X"$mf" : 'X\(//\)[^/]' \| \
15132 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015133 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015134echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15136 s//\1/
15137 q
15138 }
15139 /^X\(\/\/\)[^/].*/{
15140 s//\1/
15141 q
15142 }
15143 /^X\(\/\/\)$/{
15144 s//\1/
15145 q
15146 }
15147 /^X\(\/\).*/{
15148 s//\1/
15149 q
15150 }
15151 s/.*/./; q'`
Lev Walkin8e8b5482004-06-17 23:42:48 +000015152 else
15153 continue
15154 fi
Lev Walkinc46b7cb2006-08-18 02:27:55 +000015155 # Extract the definition of DEPDIR, am__include, and am__quote
15156 # from the Makefile without running `make'.
Lev Walkin8e8b5482004-06-17 23:42:48 +000015157 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000015158 test -z "$DEPDIR" && continue
Lev Walkinc46b7cb2006-08-18 02:27:55 +000015159 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15160 test -z "am__include" && continue
15161 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Lev Walkinf15320b2004-06-03 03:38:44 +000015162 # When using ansi2knr, U may be empty or an underscore; expand it
Lev Walkin8e8b5482004-06-17 23:42:48 +000015163 U=`sed -n 's/^U = //p' < "$mf"`
Lev Walkinc46b7cb2006-08-18 02:27:55 +000015164 # Find all dependency output files, they are included files with
15165 # $(DEPDIR) in their names. We invoke sed twice because it is the
15166 # simplest approach to changing $(DEPDIR) to its actual value in the
15167 # expansion.
15168 for file in `sed -n "
15169 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Lev Walkinf15320b2004-06-03 03:38:44 +000015170 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15171 # Make sure the directory exists.
15172 test -f "$dirpart/$file" && continue
Lev Walkin27fd0b62007-08-27 23:57:45 +000015173 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015174$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15175 X"$file" : 'X\(//\)[^/]' \| \
15176 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015177 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015178echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15180 s//\1/
15181 q
15182 }
15183 /^X\(\/\/\)[^/].*/{
15184 s//\1/
15185 q
15186 }
15187 /^X\(\/\/\)$/{
15188 s//\1/
15189 q
15190 }
15191 /^X\(\/\).*/{
15192 s//\1/
15193 q
15194 }
15195 s/.*/./; q'`
15196 { as_dir=$dirpart/$fdir
15197 case $as_dir in #(
15198 -*) as_dir=./$as_dir;;
15199 esac
15200 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Lev Walkin8e8b5482004-06-17 23:42:48 +000015201 as_dirs=
Lev Walkin27fd0b62007-08-27 23:57:45 +000015202 while :; do
15203 case $as_dir in #(
15204 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15205 *) as_qdir=$as_dir;;
15206 esac
15207 as_dirs="'$as_qdir' $as_dirs"
15208 as_dir=`$as_dirname -- "$as_dir" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15210 X"$as_dir" : 'X\(//\)[^/]' \| \
15211 X"$as_dir" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015213echo X"$as_dir" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15215 s//\1/
15216 q
15217 }
15218 /^X\(\/\/\)[^/].*/{
15219 s//\1/
15220 q
15221 }
15222 /^X\(\/\/\)$/{
15223 s//\1/
15224 q
15225 }
15226 /^X\(\/\).*/{
15227 s//\1/
15228 q
15229 }
15230 s/.*/./; q'`
15231 test -d "$as_dir" && break
Lev Walkin8e8b5482004-06-17 23:42:48 +000015232 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000015233 test -z "$as_dirs" || eval "mkdir $as_dirs"
15234 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15235echo "$as_me: error: cannot create directory $as_dir" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +000015236 { (exit 1); exit 1; }; }; }
Lev Walkinf15320b2004-06-03 03:38:44 +000015237 # echo "creating $dirpart/$file"
15238 echo '# dummy' > "$dirpart/$file"
15239 done
15240done
15241 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070015242 "libtool":C)
15243
15244 # See if we are running on zsh, and set the options which allow our
15245 # commands through without removal of \ escapes.
15246 if test -n "${ZSH_VERSION+set}" ; then
15247 setopt NO_GLOB_SUBST
15248 fi
15249
15250 cfgfile="${ofile}T"
Lev Walkin4c776e52010-11-08 02:07:31 -080015251 trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
15252 $RM -f "$cfgfile"
Lev Walkin4da95cf2010-10-16 02:46:32 -070015253
15254 cat <<_LT_EOF >> "$cfgfile"
15255#! $SHELL
15256
15257# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15258# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15259# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15260# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15261#
15262# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Lev Walkin4c776e52010-11-08 02:07:31 -080015263# 2006, 2007, 2008 Free Software Foundation, Inc.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015264# Written by Gordon Matzigkeit, 1996
15265#
15266# This file is part of GNU Libtool.
15267#
15268# GNU Libtool is free software; you can redistribute it and/or
15269# modify it under the terms of the GNU General Public License as
15270# published by the Free Software Foundation; either version 2 of
15271# the License, or (at your option) any later version.
15272#
15273# As a special exception to the GNU General Public License,
15274# if you distribute this file as part of a program or library that
15275# is built using GNU Libtool, you may include this file under the
15276# same distribution terms that you use for the rest of that program.
15277#
15278# GNU Libtool is distributed in the hope that it will be useful,
15279# but WITHOUT ANY WARRANTY; without even the implied warranty of
15280# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15281# GNU General Public License for more details.
15282#
15283# You should have received a copy of the GNU General Public License
15284# along with GNU Libtool; see the file COPYING. If not, a copy
15285# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15286# obtained by writing to the Free Software Foundation, Inc.,
15287# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15288
15289
15290# The names of the tagged configurations supported by this script.
15291available_tags=""
15292
15293# ### BEGIN LIBTOOL CONFIG
15294
15295# Which release of libtool.m4 was used?
15296macro_version=$macro_version
15297macro_revision=$macro_revision
15298
15299# Whether or not to build shared libraries.
15300build_libtool_libs=$enable_shared
15301
15302# Whether or not to build static libraries.
15303build_old_libs=$enable_static
15304
15305# What type of objects to build.
15306pic_mode=$pic_mode
15307
15308# Whether or not to optimize for fast installation.
15309fast_install=$enable_fast_install
15310
Lev Walkin4da95cf2010-10-16 02:46:32 -070015311# The host system.
15312host_alias=$host_alias
15313host=$host
15314host_os=$host_os
15315
15316# The build system.
15317build_alias=$build_alias
15318build=$build
15319build_os=$build_os
15320
15321# A sed program that does not truncate output.
15322SED=$lt_SED
15323
15324# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15325Xsed="\$SED -e 1s/^X//"
15326
15327# A grep program that handles long lines.
15328GREP=$lt_GREP
15329
15330# An ERE matcher.
15331EGREP=$lt_EGREP
15332
15333# A literal string matcher.
15334FGREP=$lt_FGREP
15335
15336# A BSD- or MS-compatible name lister.
15337NM=$lt_NM
15338
15339# Whether we need soft or hard links.
15340LN_S=$lt_LN_S
15341
15342# What is the maximum length of a command?
15343max_cmd_len=$max_cmd_len
15344
15345# Object file suffix (normally "o").
15346objext=$ac_objext
15347
15348# Executable file suffix (normally "").
15349exeext=$exeext
15350
15351# whether the shell understands "unset".
15352lt_unset=$lt_unset
15353
15354# turn spaces into newlines.
15355SP2NL=$lt_lt_SP2NL
15356
15357# turn newlines into spaces.
15358NL2SP=$lt_lt_NL2SP
15359
Lev Walkin4c776e52010-11-08 02:07:31 -080015360# How to create reloadable object files.
15361reload_flag=$lt_reload_flag
15362reload_cmds=$lt_reload_cmds
Lev Walkin4da95cf2010-10-16 02:46:32 -070015363
15364# Method to check whether dependent libraries are shared objects.
15365deplibs_check_method=$lt_deplibs_check_method
15366
Lev Walkin4c776e52010-11-08 02:07:31 -080015367# Command to use when deplibs_check_method == "file_magic".
Lev Walkin4da95cf2010-10-16 02:46:32 -070015368file_magic_cmd=$lt_file_magic_cmd
15369
Lev Walkin4da95cf2010-10-16 02:46:32 -070015370# The archiver.
15371AR=$lt_AR
Lev Walkin4da95cf2010-10-16 02:46:32 -070015372AR_FLAGS=$lt_AR_FLAGS
15373
Lev Walkin4da95cf2010-10-16 02:46:32 -070015374# A symbol stripping program.
15375STRIP=$lt_STRIP
15376
15377# Commands used to install an old-style archive.
15378RANLIB=$lt_RANLIB
15379old_postinstall_cmds=$lt_old_postinstall_cmds
15380old_postuninstall_cmds=$lt_old_postuninstall_cmds
15381
Lev Walkin4da95cf2010-10-16 02:46:32 -070015382# A C compiler.
15383LTCC=$lt_CC
15384
15385# LTCC compiler flags.
15386LTCFLAGS=$lt_CFLAGS
15387
15388# Take the output of nm and produce a listing of raw symbols and C names.
15389global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15390
15391# Transform the output of nm in a proper C declaration.
15392global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15393
15394# Transform the output of nm in a C name address pair.
15395global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15396
15397# Transform the output of nm in a C name address pair when lib prefix is needed.
15398global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15399
Lev Walkin4da95cf2010-10-16 02:46:32 -070015400# The name of the directory that contains temporary libtool files.
15401objdir=$objdir
15402
Lev Walkin4c776e52010-11-08 02:07:31 -080015403# Shell to use when invoking shell scripts.
15404SHELL=$lt_SHELL
15405
15406# An echo program that does not interpret backslashes.
15407ECHO=$lt_ECHO
15408
Lev Walkin4da95cf2010-10-16 02:46:32 -070015409# Used to examine libraries when file_magic_cmd begins with "file".
15410MAGIC_CMD=$MAGIC_CMD
15411
15412# Must we lock files when doing compilation?
15413need_locks=$lt_need_locks
15414
Lev Walkin4da95cf2010-10-16 02:46:32 -070015415# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15416DSYMUTIL=$lt_DSYMUTIL
15417
15418# Tool to change global to local symbols on Mac OS X.
15419NMEDIT=$lt_NMEDIT
15420
15421# Tool to manipulate fat objects and archives on Mac OS X.
15422LIPO=$lt_LIPO
15423
15424# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15425OTOOL=$lt_OTOOL
15426
15427# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15428OTOOL64=$lt_OTOOL64
15429
15430# Old archive suffix (normally "a").
15431libext=$libext
15432
15433# Shared library suffix (normally ".so").
15434shrext_cmds=$lt_shrext_cmds
15435
15436# The commands to extract the exported symbol list from a shared archive.
15437extract_expsyms_cmds=$lt_extract_expsyms_cmds
15438
15439# Variables whose values should be saved in libtool wrapper scripts and
15440# restored at link time.
15441variables_saved_for_relink=$lt_variables_saved_for_relink
15442
15443# Do we need the "lib" prefix for modules?
15444need_lib_prefix=$need_lib_prefix
15445
15446# Do we need a version for libraries?
15447need_version=$need_version
15448
15449# Library versioning type.
15450version_type=$version_type
15451
15452# Shared library runtime path variable.
15453runpath_var=$runpath_var
15454
15455# Shared library path variable.
15456shlibpath_var=$shlibpath_var
15457
15458# Is shlibpath searched before the hard-coded library search path?
15459shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15460
15461# Format of library name prefix.
15462libname_spec=$lt_libname_spec
15463
15464# List of archive names. First name is the real one, the rest are links.
15465# The last name is the one that the linker finds with -lNAME
15466library_names_spec=$lt_library_names_spec
15467
15468# The coded name of the library, if different from the real name.
15469soname_spec=$lt_soname_spec
15470
Lev Walkin4da95cf2010-10-16 02:46:32 -070015471# Command to use after installation of a shared archive.
15472postinstall_cmds=$lt_postinstall_cmds
15473
15474# Command to use after uninstallation of a shared archive.
15475postuninstall_cmds=$lt_postuninstall_cmds
15476
15477# Commands used to finish a libtool library installation in a directory.
15478finish_cmds=$lt_finish_cmds
15479
15480# As "finish_cmds", except a single script fragment to be evaled but
15481# not shown.
15482finish_eval=$lt_finish_eval
15483
15484# Whether we should hardcode library paths into libraries.
15485hardcode_into_libs=$hardcode_into_libs
15486
15487# Compile-time system search path for libraries.
15488sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15489
15490# Run-time system search path for libraries.
15491sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15492
15493# Whether dlopen is supported.
15494dlopen_support=$enable_dlopen
15495
15496# Whether dlopen of programs is supported.
15497dlopen_self=$enable_dlopen_self
15498
15499# Whether dlopen of statically linked programs is supported.
15500dlopen_self_static=$enable_dlopen_self_static
15501
15502# Commands to strip libraries.
15503old_striplib=$lt_old_striplib
15504striplib=$lt_striplib
15505
15506
15507# The linker used to build libraries.
15508LD=$lt_LD
15509
Lev Walkin4da95cf2010-10-16 02:46:32 -070015510# Commands used to build an old-style archive.
15511old_archive_cmds=$lt_old_archive_cmds
15512
15513# A language specific compiler.
15514CC=$lt_compiler
15515
15516# Is the compiler the GNU compiler?
15517with_gcc=$GCC
15518
15519# Compiler flag to turn off builtin functions.
15520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15521
Lev Walkin4da95cf2010-10-16 02:46:32 -070015522# How to pass a linker flag through the compiler.
15523wl=$lt_lt_prog_compiler_wl
15524
Lev Walkin4c776e52010-11-08 02:07:31 -080015525# Additional compiler flags for building library objects.
15526pic_flag=$lt_lt_prog_compiler_pic
15527
Lev Walkin4da95cf2010-10-16 02:46:32 -070015528# Compiler flag to prevent dynamic linking.
15529link_static_flag=$lt_lt_prog_compiler_static
15530
15531# Does compiler simultaneously support -c and -o options?
15532compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15533
15534# Whether or not to add -lc for building shared libraries.
15535build_libtool_need_lc=$archive_cmds_need_lc
15536
15537# Whether or not to disallow shared libs when runtime libs are static.
15538allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15539
15540# Compiler flag to allow reflexive dlopens.
15541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15542
15543# Compiler flag to generate shared objects directly from archives.
15544whole_archive_flag_spec=$lt_whole_archive_flag_spec
15545
15546# Whether the compiler copes with passing no objects directly.
15547compiler_needs_object=$lt_compiler_needs_object
15548
15549# Create an old-style archive from a shared archive.
15550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15551
15552# Create a temporary old-style archive to link instead of a shared archive.
15553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15554
15555# Commands used to build a shared archive.
15556archive_cmds=$lt_archive_cmds
15557archive_expsym_cmds=$lt_archive_expsym_cmds
15558
15559# Commands used to build a loadable module if different from building
15560# a shared archive.
15561module_cmds=$lt_module_cmds
15562module_expsym_cmds=$lt_module_expsym_cmds
15563
15564# Whether we are building with GNU ld or not.
15565with_gnu_ld=$lt_with_gnu_ld
15566
15567# Flag that allows shared libraries with undefined symbols to be built.
15568allow_undefined_flag=$lt_allow_undefined_flag
15569
15570# Flag that enforces no undefined symbols.
15571no_undefined_flag=$lt_no_undefined_flag
15572
15573# Flag to hardcode \$libdir into a binary during linking.
15574# This must work even if \$libdir does not exist
15575hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15576
15577# If ld is used when linking, flag to hardcode \$libdir into a binary
15578# during linking. This must work even if \$libdir does not exist.
15579hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15580
15581# Whether we need a single "-rpath" flag with a separated argument.
15582hardcode_libdir_separator=$lt_hardcode_libdir_separator
15583
15584# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15585# DIR into the resulting binary.
15586hardcode_direct=$hardcode_direct
15587
15588# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15589# DIR into the resulting binary and the resulting library dependency is
15590# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15591# library is relocated.
15592hardcode_direct_absolute=$hardcode_direct_absolute
15593
15594# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15595# into the resulting binary.
15596hardcode_minus_L=$hardcode_minus_L
15597
15598# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15599# into the resulting binary.
15600hardcode_shlibpath_var=$hardcode_shlibpath_var
15601
15602# Set to "yes" if building a shared library automatically hardcodes DIR
15603# into the library and all subsequent libraries and executables linked
15604# against it.
15605hardcode_automatic=$hardcode_automatic
15606
15607# Set to yes if linker adds runtime paths of dependent libraries
15608# to runtime path list.
15609inherit_rpath=$inherit_rpath
15610
15611# Whether libtool must link a program against all its dependency libraries.
15612link_all_deplibs=$link_all_deplibs
15613
Lev Walkin4c776e52010-11-08 02:07:31 -080015614# Fix the shell variable \$srcfile for the compiler.
15615fix_srcfile_path=$lt_fix_srcfile_path
15616
Lev Walkin4da95cf2010-10-16 02:46:32 -070015617# Set to "yes" if exported symbols are required.
15618always_export_symbols=$always_export_symbols
15619
15620# The commands to list exported symbols.
15621export_symbols_cmds=$lt_export_symbols_cmds
15622
15623# Symbols that should not be listed in the preloaded symbols.
15624exclude_expsyms=$lt_exclude_expsyms
15625
15626# Symbols that must always be exported.
15627include_expsyms=$lt_include_expsyms
15628
15629# Commands necessary for linking programs (against libraries) with templates.
15630prelink_cmds=$lt_prelink_cmds
15631
Lev Walkin4da95cf2010-10-16 02:46:32 -070015632# Specify filename containing input files.
15633file_list_spec=$lt_file_list_spec
15634
15635# How to hardcode a shared library path into an executable.
15636hardcode_action=$hardcode_action
15637
15638# ### END LIBTOOL CONFIG
15639
15640_LT_EOF
15641
15642 case $host_os in
15643 aix3*)
15644 cat <<\_LT_EOF >> "$cfgfile"
15645# AIX sometimes has problems with the GCC collect2 program. For some
15646# reason, if we set the COLLECT_NAMES environment variable, the problems
15647# vanish in a puff of smoke.
15648if test "X${COLLECT_NAMES+set}" != Xset; then
15649 COLLECT_NAMES=
15650 export COLLECT_NAMES
15651fi
15652_LT_EOF
15653 ;;
15654 esac
15655
15656
15657ltmain="$ac_aux_dir/ltmain.sh"
15658
15659
15660 # We use sed instead of cat because bash on DJGPP gets confused if
15661 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15662 # text mode, it properly converts lines to CR/LF. This bash problem
15663 # is reportedly fixed, but why not run on old versions too?
Lev Walkin4c776e52010-11-08 02:07:31 -080015664 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15665 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015666
Lev Walkin4c776e52010-11-08 02:07:31 -080015667 case $xsi_shell in
15668 yes)
15669 cat << \_LT_EOF >> "$cfgfile"
15670
15671# func_dirname file append nondir_replacement
15672# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15673# otherwise set result to NONDIR_REPLACEMENT.
15674func_dirname ()
15675{
15676 case ${1} in
15677 */*) func_dirname_result="${1%/*}${2}" ;;
15678 * ) func_dirname_result="${3}" ;;
15679 esac
15680}
15681
15682# func_basename file
15683func_basename ()
15684{
15685 func_basename_result="${1##*/}"
15686}
15687
15688# func_dirname_and_basename file append nondir_replacement
15689# perform func_basename and func_dirname in a single function
15690# call:
15691# dirname: Compute the dirname of FILE. If nonempty,
15692# add APPEND to the result, otherwise set result
15693# to NONDIR_REPLACEMENT.
15694# value returned in "$func_dirname_result"
15695# basename: Compute filename of FILE.
15696# value retuned in "$func_basename_result"
15697# Implementation must be kept synchronized with func_dirname
15698# and func_basename. For efficiency, we do not delegate to
15699# those functions but instead duplicate the functionality here.
15700func_dirname_and_basename ()
15701{
15702 case ${1} in
15703 */*) func_dirname_result="${1%/*}${2}" ;;
15704 * ) func_dirname_result="${3}" ;;
15705 esac
15706 func_basename_result="${1##*/}"
15707}
15708
15709# func_stripname prefix suffix name
15710# strip PREFIX and SUFFIX off of NAME.
15711# PREFIX and SUFFIX must not contain globbing or regex special
15712# characters, hashes, percent signs, but SUFFIX may contain a leading
15713# dot (in which case that matches only a dot).
15714func_stripname ()
15715{
15716 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15717 # positional parameters, so assign one to ordinary parameter first.
15718 func_stripname_result=${3}
15719 func_stripname_result=${func_stripname_result#"${1}"}
15720 func_stripname_result=${func_stripname_result%"${2}"}
15721}
15722
15723# func_opt_split
15724func_opt_split ()
15725{
15726 func_opt_split_opt=${1%%=*}
15727 func_opt_split_arg=${1#*=}
15728}
15729
15730# func_lo2o object
15731func_lo2o ()
15732{
15733 case ${1} in
15734 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15735 *) func_lo2o_result=${1} ;;
15736 esac
15737}
15738
15739# func_xform libobj-or-source
15740func_xform ()
15741{
15742 func_xform_result=${1%.*}.lo
15743}
15744
15745# func_arith arithmetic-term...
15746func_arith ()
15747{
15748 func_arith_result=$(( $* ))
15749}
15750
15751# func_len string
15752# STRING may not start with a hyphen.
15753func_len ()
15754{
15755 func_len_result=${#1}
15756}
15757
15758_LT_EOF
15759 ;;
15760 *) # Bourne compatible functions.
15761 cat << \_LT_EOF >> "$cfgfile"
15762
15763# func_dirname file append nondir_replacement
15764# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15765# otherwise set result to NONDIR_REPLACEMENT.
15766func_dirname ()
15767{
15768 # Extract subdirectory from the argument.
15769 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15770 if test "X$func_dirname_result" = "X${1}"; then
15771 func_dirname_result="${3}"
15772 else
15773 func_dirname_result="$func_dirname_result${2}"
15774 fi
15775}
15776
15777# func_basename file
15778func_basename ()
15779{
15780 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15781}
Lev Walkin4da95cf2010-10-16 02:46:32 -070015782
15783
Lev Walkin4c776e52010-11-08 02:07:31 -080015784# func_stripname prefix suffix name
15785# strip PREFIX and SUFFIX off of NAME.
15786# PREFIX and SUFFIX must not contain globbing or regex special
15787# characters, hashes, percent signs, but SUFFIX may contain a leading
15788# dot (in which case that matches only a dot).
15789# func_strip_suffix prefix name
15790func_stripname ()
15791{
15792 case ${2} in
15793 .*) func_stripname_result=`$ECHO "X${3}" \
15794 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15795 *) func_stripname_result=`$ECHO "X${3}" \
15796 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15797 esac
15798}
15799
15800# sed scripts:
15801my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15802my_sed_long_arg='1s/^-[^=]*=//'
15803
15804# func_opt_split
15805func_opt_split ()
15806{
15807 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15808 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15809}
15810
15811# func_lo2o object
15812func_lo2o ()
15813{
15814 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15815}
15816
15817# func_xform libobj-or-source
15818func_xform ()
15819{
15820 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15821}
15822
15823# func_arith arithmetic-term...
15824func_arith ()
15825{
15826 func_arith_result=`expr "$@"`
15827}
15828
15829# func_len string
15830# STRING may not start with a hyphen.
15831func_len ()
15832{
15833 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15834}
15835
15836_LT_EOF
15837esac
15838
15839case $lt_shell_append in
15840 yes)
15841 cat << \_LT_EOF >> "$cfgfile"
15842
15843# func_append var value
15844# Append VALUE to the end of shell variable VAR.
15845func_append ()
15846{
15847 eval "$1+=\$2"
15848}
15849_LT_EOF
15850 ;;
15851 *)
15852 cat << \_LT_EOF >> "$cfgfile"
15853
15854# func_append var value
15855# Append VALUE to the end of shell variable VAR.
15856func_append ()
15857{
15858 eval "$1=\$$1\$2"
15859}
15860
15861_LT_EOF
15862 ;;
15863 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -070015864
15865
Lev Walkin4c776e52010-11-08 02:07:31 -080015866 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15867 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015868
Lev Walkin4c776e52010-11-08 02:07:31 -080015869 mv -f "$cfgfile" "$ofile" ||
Lev Walkin4da95cf2010-10-16 02:46:32 -070015870 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15871 chmod +x "$ofile"
15872
15873 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015874
Lev Walkin27fd0b62007-08-27 23:57:45 +000015875 esac
15876done # for ac_tag
15877
Lev Walkinf15320b2004-06-03 03:38:44 +000015878
15879{ (exit 0); exit 0; }
15880_ACEOF
15881chmod +x $CONFIG_STATUS
15882ac_clean_files=$ac_clean_files_save
15883
15884
15885# configure is writing to config.log, and then calls config.status.
15886# config.status does its own redirection, appending to config.log.
15887# Unfortunately, on DOS this fails, as config.log is still kept open
15888# by configure, so config.status won't be able to write to it; its
15889# output is simply discarded. So we exec the FD to /dev/null,
15890# effectively closing config.log, so it can be properly (re)opened and
15891# appended to by config.status. When coming back to configure, we
15892# need to make the FD available again.
15893if test "$no_create" != yes; then
15894 ac_cs_success=:
15895 ac_config_status_args=
15896 test "$silent" = yes &&
15897 ac_config_status_args="$ac_config_status_args --quiet"
15898 exec 5>/dev/null
15899 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15900 exec 5>>config.log
15901 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15902 # would make configure fail if this is the last instruction.
15903 $ac_cs_success || { (exit 1); exit 1; }
15904fi
15905
15906