blob: 403175e3a4c24c3bc8d93cd676467fb5bdde7581 [file] [log] [blame]
Adam Tkacfc4cd712009-03-11 11:14:37 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libjpeg 6.b.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# 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
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME='libjpeg'
745PACKAGE_TARNAME='libjpeg'
746PACKAGE_VERSION='6.b'
747PACKAGE_STRING='libjpeg 6.b'
748PACKAGE_BUGREPORT=''
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='LTLIBOBJS
787LIBOBJS
788WITH_SIMD_FALSE
789WITH_SIMD_TRUE
790NAFLAGS
791NASM
792IS_WIN32_FALSE
793IS_WIN32_TRUE
794OTOOL64
795OTOOL
796LIPO
797NMEDIT
798DSYMUTIL
799lt_ECHO
800RANLIB
801AR
802OBJDUMP
803LN_S
804NM
805ac_ct_DUMPBIN
806DUMPBIN
807LD
808FGREP
809EGREP
810GREP
811SED
812host_os
813host_vendor
814host_cpu
815host
816build_os
817build_vendor
818build_cpu
819build
820LIBTOOL
821CPP
822am__fastdepCC_FALSE
823am__fastdepCC_TRUE
824CCDEPMODE
825AMDEPBACKSLASH
826AMDEP_FALSE
827AMDEP_TRUE
828am__quote
829am__include
830DEPDIR
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
838am__untar
839am__tar
840AMTAR
841am__leading_dot
842SET_MAKE
843AWK
844mkdir_p
845MKDIR_P
846INSTALL_STRIP_PROGRAM
847STRIP
848install_sh
849MAKEINFO
850AUTOHEADER
851AUTOMAKE
852AUTOCONF
853ACLOCAL
854VERSION
855PACKAGE
856CYGPATH_W
857am__isrc
858INSTALL_DATA
859INSTALL_SCRIPT
860INSTALL_PROGRAM
861target_alias
862host_alias
863build_alias
864LIBS
865ECHO_T
866ECHO_N
867ECHO_C
868DEFS
869mandir
870localedir
871libdir
872psdir
873pdfdir
874dvidir
875htmldir
876infodir
877docdir
878oldincludedir
879includedir
880localstatedir
881sharedstatedir
882sysconfdir
883datadir
884datarootdir
885libexecdir
886sbindir
887bindir
888program_transform_name
889prefix
890exec_prefix
891PACKAGE_BUGREPORT
892PACKAGE_STRING
893PACKAGE_VERSION
894PACKAGE_TARNAME
895PACKAGE_NAME
896PATH_SEPARATOR
897SHELL'
898ac_subst_files=''
899ac_user_opts='
900enable_option_checking
901enable_dependency_tracking
902enable_shared
903enable_static
904with_pic
905enable_fast_install
906with_gnu_ld
907enable_libtool_lock
908with_simd
909'
910 ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
918CPP'
919
920
921# Initialize some variables set by options.
922ac_init_help=
923ac_init_version=false
924ac_unrecognized_opts=
925ac_unrecognized_sep=
926# The variables have the same names as the options, with
927# dashes changed to underlines.
928cache_file=/dev/null
929exec_prefix=NONE
930no_create=
931no_recursion=
932prefix=NONE
933program_prefix=NONE
934program_suffix=NONE
935program_transform_name=s,x,x,
936silent=
937site=
938srcdir=
939verbose=
940x_includes=NONE
941x_libraries=NONE
942
943# Installation directory options.
944# These are left unexpanded so users can "make install exec_prefix=/foo"
945# and all the variables that are supposed to be based on exec_prefix
946# by default will actually change.
947# Use braces instead of parens because sh, perl, etc. also accept them.
948# (The list follows the same order as the GNU Coding Standards.)
949bindir='${exec_prefix}/bin'
950sbindir='${exec_prefix}/sbin'
951libexecdir='${exec_prefix}/libexec'
952datarootdir='${prefix}/share'
953datadir='${datarootdir}'
954sysconfdir='${prefix}/etc'
955sharedstatedir='${prefix}/com'
956localstatedir='${prefix}/var'
957includedir='${prefix}/include'
958oldincludedir='/usr/include'
959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960infodir='${datarootdir}/info'
961htmldir='${docdir}'
962dvidir='${docdir}'
963pdfdir='${docdir}'
964psdir='${docdir}'
965libdir='${exec_prefix}/lib'
966localedir='${datarootdir}/locale'
967mandir='${datarootdir}/man'
968
969ac_prev=
970ac_dashdash=
971for ac_option
972do
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
978 fi
979
980 case $ac_option in
981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *) ac_optarg=yes ;;
983 esac
984
985 # Accept the important Cygnus configure options, so we can diagnose typos.
986
987 case $ac_dashdash$ac_option in
988 --)
989 ac_dashdash=yes ;;
990
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
995
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1000
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1007
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1010
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1015
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1022
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033"enable_$ac_useropt"
1034"*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
1039
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1044
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
1049
1050 -enable-* | --enable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
1214 sbindir=$ac_optarg ;;
1215
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
1225 sharedstatedir=$ac_optarg ;;
1226
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
1230 site=$ac_optarg ;;
1231
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1236
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1243
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1248
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1251
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1254
1255 -with-* | --with-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1260 { (exit 1); exit 1; }; }
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"with_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=\$ac_optarg ;;
1271
1272 -without-* | --without-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282"with_$ac_useropt"
1283"*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=no ;;
1288
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1292
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1299
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1306
1307 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1308Try \`$0 --help' for more information." >&2
1309 { (exit 1); exit 1; }; }
1310 ;;
1311
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1316 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1317 { (exit 1); exit 1; }; }
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1320
1321 *)
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 ;;
1328
1329 esac
1330done
1331
1332if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1335 { (exit 1); exit 1; }; }
1336fi
1337
1338if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1340 no) ;;
1341 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1342 { (exit 1); exit 1; }; } ;;
1343 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344 esac
1345fi
1346
1347# Check all directory arguments for consistency.
1348for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
1352do
1353 eval ac_val=\$$ac_var
1354 # Remove trailing slashes.
1355 case $ac_val in
1356 */ )
1357 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358 eval $ac_var=\$ac_val;;
1359 esac
1360 # Be sure to have absolute directory names.
1361 case $ac_val in
1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364 esac
1365 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366 { (exit 1); exit 1; }; }
1367done
1368
1369# There might be people who depend on the old broken behavior: `$host'
1370# used to hold the argument of --host etc.
1371# FIXME: To remove some day.
1372build=$build_alias
1373host=$host_alias
1374target=$target_alias
1375
1376# FIXME: To remove some day.
1377if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1384 fi
1385fi
1386
1387ac_tool_prefix=
1388test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390test "$silent" = yes && exec 6>/dev/null
1391
1392
1393ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394ac_ls_di=`ls -di .` &&
1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1397 { (exit 1); exit 1; }; }
1398test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1400 { (exit 1); exit 1; }; }
1401
1402
1403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412$as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
1437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1440 { (exit 1); exit 1; }; }
1441fi
1442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1445 { (exit 1); exit 1; }; }
1446 pwd)`
1447# When building in place, set srcdir=.
1448if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 srcdir=.
1450fi
1451# Remove unnecessary trailing slashes from srcdir.
1452# Double slashes in file names in object file debugging info
1453# mess up M-x gdb in Emacs.
1454case $srcdir in
1455*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456esac
1457for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462done
1463
1464#
1465# Report the --help message.
1466#
1467if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1470 cat <<_ACEOF
1471\`configure' configures libjpeg 6.b to adapt to many kinds of systems.
1472
1473Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476VAR=VALUE. See below for descriptions of some of the useful variables.
1477
1478Defaults for the options are specified in brackets.
1479
1480Configuration:
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print \`checking...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490
1491Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
1493 [$ac_default_prefix]
1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1495 [PREFIX]
1496
1497By default, \`make install' will install all the files in
1498\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500for instance \`--prefix=\$HOME'.
1501
1502For better control, use the options below.
1503
1504Fine tuning of the installation directories:
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1524_ACEOF
1525
1526 cat <<\_ACEOF
1527
1528Program names:
1529 --program-prefix=PREFIX prepend PREFIX to installed program names
1530 --program-suffix=SUFFIX append SUFFIX to installed program names
1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1532
1533System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536_ACEOF
1537fi
1538
1539if test -n "$ac_init_help"; then
1540 case $ac_init_help in
1541 short | recursive ) echo "Configuration of libjpeg 6.b:";;
1542 esac
1543 cat <<\_ACEOF
1544
1545Optional Features:
1546 --disable-option-checking ignore unrecognized --enable/--with options
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --disable-dependency-tracking speeds up one-time build
1550 --enable-dependency-tracking do not reject slow dependency extractors
1551 --enable-shared[=PKGS] build shared libraries [default=yes]
1552 --enable-static[=PKGS] build static libraries [default=yes]
1553 --enable-fast-install[=PKGS]
1554 optimize for fast installation [default=yes]
1555 --disable-libtool-lock avoid locking (might break parallel builds)
1556
1557Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1560 --with-pic try to use only PIC/non-PIC objects [default=use
1561 both]
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --without-simd Omit accelerated SIMD routines.
1564
1565Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1573 CPP C preprocessor
1574
1575Use these variables to override the choices made by `configure' or to help
1576it to find libraries and programs with nonstandard names/locations.
1577
1578_ACEOF
1579ac_status=$?
1580fi
1581
1582if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 continue
1588 ac_builddir=.
1589
1590case "$ac_dir" in
1591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592*)
1593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600esac
1601ac_abs_top_builddir=$ac_pwd
1602ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603# for backward compatibility:
1604ac_top_builddir=$ac_top_build_prefix
1605
1606case $srcdir in
1607 .) # We are building in place.
1608 ac_srcdir=.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619esac
1620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1630 else
1631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 fi || ac_status=$?
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1634 done
1635fi
1636
1637test -n "$ac_init_help" && exit $ac_status
1638if $ac_init_version; then
1639 cat <<\_ACEOF
1640libjpeg configure 6.b
1641generated by GNU Autoconf 2.63
1642
1643Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16442002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1645This configure script is free software; the Free Software Foundation
1646gives unlimited permission to copy, distribute and modify it.
1647_ACEOF
1648 exit
1649fi
1650cat >config.log <<_ACEOF
1651This file contains any messages produced by compilers while
1652running configure, to aid debugging if configure makes a mistake.
1653
1654It was created by libjpeg $as_me 6.b, which was
1655generated by GNU Autoconf 2.63. Invocation command line was
1656
1657 $ $0 $@
1658
1659_ACEOF
1660exec 5>>config.log
1661{
1662cat <<_ASUNAME
1663## --------- ##
1664## Platform. ##
1665## --------- ##
1666
1667hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672
1673/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1675
1676/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1677/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1678/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1680/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1681/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1682/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683
1684_ASUNAME
1685
1686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687for as_dir in $PATH
1688do
1689 IFS=$as_save_IFS
1690 test -z "$as_dir" && as_dir=.
1691 $as_echo "PATH: $as_dir"
1692done
1693IFS=$as_save_IFS
1694
1695} >&5
1696
1697cat >&5 <<_ACEOF
1698
1699
1700## ----------- ##
1701## Core tests. ##
1702## ----------- ##
1703
1704_ACEOF
1705
1706
1707# Keep a trace of the command line.
1708# Strip out --no-create and --no-recursion so they do not pile up.
1709# Strip out --silent because we don't want to record it for future runs.
1710# Also quote any args containing shell meta-characters.
1711# Make two passes to allow for proper duplicate-argument suppression.
1712ac_configure_args=
1713ac_configure_args0=
1714ac_configure_args1=
1715ac_must_keep_next=false
1716for ac_pass in 1 2
1717do
1718 for ac_arg
1719 do
1720 case $ac_arg in
1721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723 | -silent | --silent | --silen | --sile | --sil)
1724 continue ;;
1725 *\'*)
1726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727 esac
1728 case $ac_pass in
1729 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730 2)
1731 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732 if test $ac_must_keep_next = true; then
1733 ac_must_keep_next=false # Got value, back to normal.
1734 else
1735 case $ac_arg in
1736 *=* | --config-cache | -C | -disable-* | --disable-* \
1737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739 | -with-* | --with-* | -without-* | --without-* | --x)
1740 case "$ac_configure_args0 " in
1741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742 esac
1743 ;;
1744 -* ) ac_must_keep_next=true ;;
1745 esac
1746 fi
1747 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 ;;
1749 esac
1750 done
1751done
1752$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754
1755# When interrupted or exit'd, cleanup temporary files, and complete
1756# config.log. We remove comments because anyway the quotes in there
1757# would cause problems or look ugly.
1758# WARNING: Use '\'' to represent an apostrophe within the trap.
1759# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760trap 'exit_status=$?
1761 # Save into config.log some information that might help in debugging.
1762 {
1763 echo
1764
1765 cat <<\_ASBOX
1766## ---------------- ##
1767## Cache variables. ##
1768## ---------------- ##
1769_ASBOX
1770 echo
1771 # The following way of writing the cache mishandles newlines in values,
1772(
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1775 case $ac_val in #(
1776 *${as_nl}*)
1777 case $ac_var in #(
1778 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1779$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1780 esac
1781 case $ac_var in #(
1782 _ | IFS | as_nl) ;; #(
1783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1784 *) $as_unset $ac_var ;;
1785 esac ;;
1786 esac
1787 done
1788 (set) 2>&1 |
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1791 sed -n \
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 ;; #(
1795 *)
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ;;
1798 esac |
1799 sort
1800)
1801 echo
1802
1803 cat <<\_ASBOX
1804## ----------------- ##
1805## Output variables. ##
1806## ----------------- ##
1807_ASBOX
1808 echo
1809 for ac_var in $ac_subst_vars
1810 do
1811 eval ac_val=\$$ac_var
1812 case $ac_val in
1813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 esac
1815 $as_echo "$ac_var='\''$ac_val'\''"
1816 done | sort
1817 echo
1818
1819 if test -n "$ac_subst_files"; then
1820 cat <<\_ASBOX
1821## ------------------- ##
1822## File substitutions. ##
1823## ------------------- ##
1824_ASBOX
1825 echo
1826 for ac_var in $ac_subst_files
1827 do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in
1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 esac
1832 $as_echo "$ac_var='\''$ac_val'\''"
1833 done | sort
1834 echo
1835 fi
1836
1837 if test -s confdefs.h; then
1838 cat <<\_ASBOX
1839## ----------- ##
1840## confdefs.h. ##
1841## ----------- ##
1842_ASBOX
1843 echo
1844 cat confdefs.h
1845 echo
1846 fi
1847 test "$ac_signal" != 0 &&
1848 $as_echo "$as_me: caught signal $ac_signal"
1849 $as_echo "$as_me: exit $exit_status"
1850 } >&5
1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 exit $exit_status
1854' 0
1855for ac_signal in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857done
1858ac_signal=0
1859
1860# confdefs.h avoids OS command line length limits that DEFS can exceed.
1861rm -f -r conftest* confdefs.h
1862
1863# Predefined preprocessor variables.
1864
1865cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_NAME "$PACKAGE_NAME"
1867_ACEOF
1868
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_VERSION "$PACKAGE_VERSION"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_STRING "$PACKAGE_STRING"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887_ACEOF
1888
1889
1890# Let the site file select an alternate cache file if it wants to.
1891# Prefer an explicitly selected file to automatically selected ones.
1892ac_site_file1=NONE
1893ac_site_file2=NONE
1894if test -n "$CONFIG_SITE"; then
1895 ac_site_file1=$CONFIG_SITE
1896elif test "x$prefix" != xNONE; then
1897 ac_site_file1=$prefix/share/config.site
1898 ac_site_file2=$prefix/etc/config.site
1899else
1900 ac_site_file1=$ac_default_prefix/share/config.site
1901 ac_site_file2=$ac_default_prefix/etc/config.site
1902fi
1903for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1904do
1905 test "x$ac_site_file" = xNONE && continue
1906 if test -r "$ac_site_file"; then
1907 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909 sed 's/^/| /' "$ac_site_file" >&5
1910 . "$ac_site_file"
1911 fi
1912done
1913
1914if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special
1916 # files actually), so we avoid doing that.
1917 if test -f "$cache_file"; then
1918 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919$as_echo "$as_me: loading cache $cache_file" >&6;}
1920 case $cache_file in
1921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922 *) . "./$cache_file";;
1923 esac
1924 fi
1925else
1926 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927$as_echo "$as_me: creating cache $cache_file" >&6;}
1928 >$cache_file
1929fi
1930
1931# Check that the precious variables saved in the cache have kept the same
1932# value.
1933ac_cache_corrupted=false
1934for ac_var in $ac_precious_vars; do
1935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1936 eval ac_new_set=\$ac_env_${ac_var}_set
1937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1938 eval ac_new_val=\$ac_env_${ac_var}_value
1939 case $ac_old_set,$ac_new_set in
1940 set,)
1941 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1942$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1944 ,set)
1945 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1946$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1947 ac_cache_corrupted=: ;;
1948 ,);;
1949 *)
1950 if test "x$ac_old_val" != "x$ac_new_val"; then
1951 # differences in whitespace do not lead to failure.
1952 ac_old_val_w=`echo x $ac_old_val`
1953 ac_new_val_w=`echo x $ac_new_val`
1954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1956$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1957 ac_cache_corrupted=:
1958 else
1959 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1960$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1961 eval $ac_var=\$ac_old_val
1962 fi
1963 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1964$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1965 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1966$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1967 fi;;
1968 esac
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1971 case $ac_new_val in
1972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1974 esac
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1978 esac
1979 fi
1980done
1981if $ac_cache_corrupted; then
1982 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1984 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988 { (exit 1); exit 1; }; }
1989fi
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015ac_ext=c
2016ac_cpp='$CPP $CPPFLAGS'
2017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020
2021
2022
2023am__api_version='1.10'
2024
2025ac_aux_dir=
2026for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2027 if test -f "$ac_dir/install-sh"; then
2028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/install-sh -c"
2030 break
2031 elif test -f "$ac_dir/install.sh"; then
2032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/install.sh -c"
2034 break
2035 elif test -f "$ac_dir/shtool"; then
2036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/shtool install -c"
2038 break
2039 fi
2040done
2041if test -z "$ac_aux_dir"; then
2042 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2043$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2044 { (exit 1); exit 1; }; }
2045fi
2046
2047# These three variables are undocumented and unsupported,
2048# and are intended to be withdrawn in a future Autoconf release.
2049# They can cause serious problems if a builder's source tree is in a directory
2050# whose full name contains unusual characters.
2051ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2052ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2053ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2054
2055
2056# Find a good install program. We prefer a C program (faster),
2057# so one script is as good as another. But avoid the broken or
2058# incompatible versions:
2059# SysV /etc/install, /usr/sbin/install
2060# SunOS /usr/etc/install
2061# IRIX /sbin/install
2062# AIX /bin/install
2063# AmigaOS /C/install, which installs bootblocks on floppy discs
2064# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2065# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2066# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2067# OS/2's system install, which has a completely different semantic
2068# ./install, which can be erroneously created by make from ./install.sh.
2069# Reject install programs that cannot install multiple files.
2070{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2071$as_echo_n "checking for a BSD-compatible install... " >&6; }
2072if test -z "$INSTALL"; then
2073if test "${ac_cv_path_install+set}" = set; then
2074 $as_echo_n "(cached) " >&6
2075else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 # Account for people who put trailing slashes in PATH elements.
2082case $as_dir/ in
2083 ./ | .// | /cC/* | \
2084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2085 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2086 /usr/ucb/* ) ;;
2087 *)
2088 # OSF1 and SCO ODT 3.0 have their own names for install.
2089 # Don't use installbsd from OSF since it installs stuff as root
2090 # by default.
2091 for ac_prog in ginstall scoinst install; do
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2094 if test $ac_prog = install &&
2095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2096 # AIX install. It has an incompatible calling convention.
2097 :
2098 elif test $ac_prog = install &&
2099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2100 # program-specific install script used by HP pwplus--don't use.
2101 :
2102 else
2103 rm -rf conftest.one conftest.two conftest.dir
2104 echo one > conftest.one
2105 echo two > conftest.two
2106 mkdir conftest.dir
2107 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2108 test -s conftest.one && test -s conftest.two &&
2109 test -s conftest.dir/conftest.one &&
2110 test -s conftest.dir/conftest.two
2111 then
2112 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2113 break 3
2114 fi
2115 fi
2116 fi
2117 done
2118 done
2119 ;;
2120esac
2121
2122done
2123IFS=$as_save_IFS
2124
2125rm -rf conftest.one conftest.two conftest.dir
2126
2127fi
2128 if test "${ac_cv_path_install+set}" = set; then
2129 INSTALL=$ac_cv_path_install
2130 else
2131 # As a last resort, use the slow shell script. Don't cache a
2132 # value for INSTALL within a source directory, because that will
2133 # break other packages using the cache if that directory is
2134 # removed, or if the value is a relative name.
2135 INSTALL=$ac_install_sh
2136 fi
2137fi
2138{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2139$as_echo "$INSTALL" >&6; }
2140
2141# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2142# It thinks the first close brace ends the variable substitution.
2143test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2144
2145test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2146
2147test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2148
2149{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2150$as_echo_n "checking whether build environment is sane... " >&6; }
2151# Just in case
2152sleep 1
2153echo timestamp > conftest.file
2154# Do `set' in a subshell so we don't clobber the current shell's
2155# arguments. Must try -L first in case configure is actually a
2156# symlink; some systems play weird games with the mod time of symlinks
2157# (eg FreeBSD returns the mod time of the symlink's containing
2158# directory).
2159if (
2160 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2161 if test "$*" = "X"; then
2162 # -L didn't work.
2163 set X `ls -t $srcdir/configure conftest.file`
2164 fi
2165 rm -f conftest.file
2166 if test "$*" != "X $srcdir/configure conftest.file" \
2167 && test "$*" != "X conftest.file $srcdir/configure"; then
2168
2169 # If neither matched, then we have a broken ls. This can happen
2170 # if, for instance, CONFIG_SHELL is bash and it inherits a
2171 # broken ls alias from the environment. This has actually
2172 # happened. Such a system could not be considered "sane".
2173 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2174alias in your environment" >&5
2175$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2176alias in your environment" >&2;}
2177 { (exit 1); exit 1; }; }
2178 fi
2179
2180 test "$2" = conftest.file
2181 )
2182then
2183 # Ok.
2184 :
2185else
2186 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2187Check your system clock" >&5
2188$as_echo "$as_me: error: newly created file is older than distributed files!
2189Check your system clock" >&2;}
2190 { (exit 1); exit 1; }; }
2191fi
2192{ $as_echo "$as_me:$LINENO: result: yes" >&5
2193$as_echo "yes" >&6; }
2194test "$program_prefix" != NONE &&
2195 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2196# Use a double $ so make ignores it.
2197test "$program_suffix" != NONE &&
2198 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2199# Double any \ or $.
2200# By default was `s,x,x', remove it if useless.
2201ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2202program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2203
2204# expand $ac_aux_dir to an absolute path
2205am_aux_dir=`cd $ac_aux_dir && pwd`
2206
2207test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2208# Use eval to expand $SHELL
2209if eval "$MISSING --run true"; then
2210 am_missing_run="$MISSING --run "
2211else
2212 am_missing_run=
2213 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2214$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2215fi
2216
2217{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2218$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2219if test -z "$MKDIR_P"; then
2220 if test "${ac_cv_path_mkdir+set}" = set; then
2221 $as_echo_n "(cached) " >&6
2222else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2225do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_prog in mkdir gmkdir; do
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2231 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2232 'mkdir (GNU coreutils) '* | \
2233 'mkdir (coreutils) '* | \
2234 'mkdir (fileutils) '4.1*)
2235 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2236 break 3;;
2237 esac
2238 done
2239 done
2240done
2241IFS=$as_save_IFS
2242
2243fi
2244
2245 if test "${ac_cv_path_mkdir+set}" = set; then
2246 MKDIR_P="$ac_cv_path_mkdir -p"
2247 else
2248 # As a last resort, use the slow shell script. Don't cache a
2249 # value for MKDIR_P within a source directory, because that will
2250 # break other packages using the cache if that directory is
2251 # removed, or if the value is a relative name.
2252 test -d ./--version && rmdir ./--version
2253 MKDIR_P="$ac_install_sh -d"
2254 fi
2255fi
2256{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2257$as_echo "$MKDIR_P" >&6; }
2258
2259mkdir_p="$MKDIR_P"
2260case $mkdir_p in
2261 [\\/$]* | ?:[\\/]*) ;;
2262 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2263esac
2264
2265for ac_prog in gawk mawk nawk awk
2266do
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268set dummy $ac_prog; ac_word=$2
2269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2270$as_echo_n "checking for $ac_word... " >&6; }
2271if test "${ac_cv_prog_AWK+set}" = set; then
2272 $as_echo_n "(cached) " >&6
2273else
2274 if test -n "$AWK"; then
2275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2276else
2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_AWK="$ac_prog"
2285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288done
2289done
2290IFS=$as_save_IFS
2291
2292fi
2293fi
2294AWK=$ac_cv_prog_AWK
2295if test -n "$AWK"; then
2296 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2297$as_echo "$AWK" >&6; }
2298else
2299 { $as_echo "$as_me:$LINENO: result: no" >&5
2300$as_echo "no" >&6; }
2301fi
2302
2303
2304 test -n "$AWK" && break
2305done
2306
2307{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2308$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2309set x ${MAKE-make}
2310ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2311if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2312 $as_echo_n "(cached) " >&6
2313else
2314 cat >conftest.make <<\_ACEOF
2315SHELL = /bin/sh
2316all:
2317 @echo '@@@%%%=$(MAKE)=@@@%%%'
2318_ACEOF
2319# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2320case `${MAKE-make} -f conftest.make 2>/dev/null` in
2321 *@@@%%%=?*=@@@%%%*)
2322 eval ac_cv_prog_make_${ac_make}_set=yes;;
2323 *)
2324 eval ac_cv_prog_make_${ac_make}_set=no;;
2325esac
2326rm -f conftest.make
2327fi
2328if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2329 { $as_echo "$as_me:$LINENO: result: yes" >&5
2330$as_echo "yes" >&6; }
2331 SET_MAKE=
2332else
2333 { $as_echo "$as_me:$LINENO: result: no" >&5
2334$as_echo "no" >&6; }
2335 SET_MAKE="MAKE=${MAKE-make}"
2336fi
2337
2338rm -rf .tst 2>/dev/null
2339mkdir .tst 2>/dev/null
2340if test -d .tst; then
2341 am__leading_dot=.
2342else
2343 am__leading_dot=_
2344fi
2345rmdir .tst 2>/dev/null
2346
2347if test "`cd $srcdir && pwd`" != "`pwd`"; then
2348 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2349 # is not polluted with repeated "-I."
2350 am__isrc=' -I$(srcdir)'
2351 # test to see if srcdir already configured
2352 if test -f $srcdir/config.status; then
2353 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2354$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2355 { (exit 1); exit 1; }; }
2356 fi
2357fi
2358
2359# test whether we have cygpath
2360if test -z "$CYGPATH_W"; then
2361 if (cygpath --version) >/dev/null 2>/dev/null; then
2362 CYGPATH_W='cygpath -w'
2363 else
2364 CYGPATH_W=echo
2365 fi
2366fi
2367
2368
2369# Define the identity of the package.
2370 PACKAGE='libjpeg'
2371 VERSION='6.b'
2372
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE "$PACKAGE"
2376_ACEOF
2377
2378
2379cat >>confdefs.h <<_ACEOF
2380#define VERSION "$VERSION"
2381_ACEOF
2382
2383# Some tools Automake needs.
2384
2385ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2386
2387
2388AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2389
2390
2391AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2392
2393
2394AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2395
2396
2397MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2398
2399install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2400
2401# Installed binaries are usually stripped using `strip' when the user
2402# run `make install-strip'. However `strip' might not be the right
2403# tool to use in cross-compilation environments, therefore Automake
2404# will honor the `STRIP' environment variable to overrule this program.
2405if test "$cross_compiling" != no; then
2406 if test -n "$ac_tool_prefix"; then
2407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2408set dummy ${ac_tool_prefix}strip; ac_word=$2
2409{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2410$as_echo_n "checking for $ac_word... " >&6; }
2411if test "${ac_cv_prog_STRIP+set}" = set; then
2412 $as_echo_n "(cached) " >&6
2413else
2414 if test -n "$STRIP"; then
2415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2416else
2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428done
2429done
2430IFS=$as_save_IFS
2431
2432fi
2433fi
2434STRIP=$ac_cv_prog_STRIP
2435if test -n "$STRIP"; then
2436 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2437$as_echo "$STRIP" >&6; }
2438else
2439 { $as_echo "$as_me:$LINENO: result: no" >&5
2440$as_echo "no" >&6; }
2441fi
2442
2443
2444fi
2445if test -z "$ac_cv_prog_STRIP"; then
2446 ac_ct_STRIP=$STRIP
2447 # Extract the first word of "strip", so it can be a program name with args.
2448set dummy strip; ac_word=$2
2449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2450$as_echo_n "checking for $ac_word... " >&6; }
2451if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2452 $as_echo_n "(cached) " >&6
2453else
2454 if test -n "$ac_ct_STRIP"; then
2455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464 ac_cv_prog_ac_ct_STRIP="strip"
2465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468done
2469done
2470IFS=$as_save_IFS
2471
2472fi
2473fi
2474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2475if test -n "$ac_ct_STRIP"; then
2476 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2477$as_echo "$ac_ct_STRIP" >&6; }
2478else
2479 { $as_echo "$as_me:$LINENO: result: no" >&5
2480$as_echo "no" >&6; }
2481fi
2482
2483 if test "x$ac_ct_STRIP" = x; then
2484 STRIP=":"
2485 else
2486 case $cross_compiling:$ac_tool_warned in
2487yes:)
2488{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2490ac_tool_warned=yes ;;
2491esac
2492 STRIP=$ac_ct_STRIP
2493 fi
2494else
2495 STRIP="$ac_cv_prog_STRIP"
2496fi
2497
2498fi
2499INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2500
2501# We need awk for the "check" target. The system "awk" is bad on
2502# some platforms.
2503# Always define AMTAR for backward compatibility.
2504
2505AMTAR=${AMTAR-"${am_missing_run}tar"}
2506
2507am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2508
2509
2510
2511
2512
2513
2514# Always build with prototypes
2515
2516cat >>confdefs.h <<\_ACEOF
2517#define HAVE_PROTOTYPES 1
2518_ACEOF
2519
2520# Don't use undefined types
2521
2522cat >>confdefs.h <<\_ACEOF
2523#define INCOMPLETE_TYPES_BROKEN 1
2524_ACEOF
2525
2526
2527# Checks for programs.
2528DEPDIR="${am__leading_dot}deps"
2529
2530ac_config_commands="$ac_config_commands depfiles"
2531
2532
2533am_make=${MAKE-make}
2534cat > confinc << 'END'
2535am__doit:
2536 @echo done
2537.PHONY: am__doit
2538END
2539# If we don't find an include directive, just comment out the code.
2540{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2541$as_echo_n "checking for style of include used by $am_make... " >&6; }
2542am__include="#"
2543am__quote=
2544_am_result=none
2545# First try GNU make style include.
2546echo "include confinc" > confmf
2547# We grep out `Entering directory' and `Leaving directory'
2548# messages which can occur if `w' ends up in MAKEFLAGS.
2549# In particular we don't look at `^make:' because GNU make might
2550# be invoked under some other name (usually "gmake"), in which
2551# case it prints its new name instead of `make'.
2552if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2553 am__include=include
2554 am__quote=
2555 _am_result=GNU
2556fi
2557# Now try BSD make style include.
2558if test "$am__include" = "#"; then
2559 echo '.include "confinc"' > confmf
2560 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2561 am__include=.include
2562 am__quote="\""
2563 _am_result=BSD
2564 fi
2565fi
2566
2567
2568{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2569$as_echo "$_am_result" >&6; }
2570rm -f confinc confmf
2571
2572# Check whether --enable-dependency-tracking was given.
2573if test "${enable_dependency_tracking+set}" = set; then
2574 enableval=$enable_dependency_tracking;
2575fi
2576
2577if test "x$enable_dependency_tracking" != xno; then
2578 am_depcomp="$ac_aux_dir/depcomp"
2579 AMDEPBACKSLASH='\'
2580fi
2581 if test "x$enable_dependency_tracking" != xno; then
2582 AMDEP_TRUE=
2583 AMDEP_FALSE='#'
2584else
2585 AMDEP_TRUE='#'
2586 AMDEP_FALSE=
2587fi
2588
2589
2590ac_ext=c
2591ac_cpp='$CPP $CPPFLAGS'
2592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2597set dummy ${ac_tool_prefix}gcc; ac_word=$2
2598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2599$as_echo_n "checking for $ac_word... " >&6; }
2600if test "${ac_cv_prog_CC+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2602else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617done
2618done
2619IFS=$as_save_IFS
2620
2621fi
2622fi
2623CC=$ac_cv_prog_CC
2624if test -n "$CC"; then
2625 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2626$as_echo "$CC" >&6; }
2627else
2628 { $as_echo "$as_me:$LINENO: result: no" >&5
2629$as_echo "no" >&6; }
2630fi
2631
2632
2633fi
2634if test -z "$ac_cv_prog_CC"; then
2635 ac_ct_CC=$CC
2636 # Extract the first word of "gcc", so it can be a program name with args.
2637set dummy gcc; ac_word=$2
2638{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2639$as_echo_n "checking for $ac_word... " >&6; }
2640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2642else
2643 if test -n "$ac_ct_CC"; then
2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_ac_ct_CC="gcc"
2654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657done
2658done
2659IFS=$as_save_IFS
2660
2661fi
2662fi
2663ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664if test -n "$ac_ct_CC"; then
2665 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2666$as_echo "$ac_ct_CC" >&6; }
2667else
2668 { $as_echo "$as_me:$LINENO: result: no" >&5
2669$as_echo "no" >&6; }
2670fi
2671
2672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676yes:)
2677{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2679ac_tool_warned=yes ;;
2680esac
2681 CC=$ac_ct_CC
2682 fi
2683else
2684 CC="$ac_cv_prog_CC"
2685fi
2686
2687if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690set dummy ${ac_tool_prefix}cc; ac_word=$2
2691{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if test "${ac_cv_prog_CC+set}" = set; then
2694 $as_echo_n "(cached) " >&6
2695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716CC=$ac_cv_prog_CC
2717if test -n "$CC"; then
2718 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2719$as_echo "$CC" >&6; }
2720else
2721 { $as_echo "$as_me:$LINENO: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725
2726 fi
2727fi
2728if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730set dummy cc; ac_word=$2
2731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if test "${ac_cv_prog_CC+set}" = set; then
2734 $as_echo_n "(cached) " >&6
2735else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738else
2739 ac_prog_rejected=no
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2749 continue
2750 fi
2751 ac_cv_prog_CC="cc"
2752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755done
2756done
2757IFS=$as_save_IFS
2758
2759if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2762 shift
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2767 shift
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2769 fi
2770fi
2771fi
2772fi
2773CC=$ac_cv_prog_CC
2774if test -n "$CC"; then
2775 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2776$as_echo "$CC" >&6; }
2777else
2778 { $as_echo "$as_me:$LINENO: result: no" >&5
2779$as_echo "no" >&6; }
2780fi
2781
2782
2783fi
2784if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in cl.exe
2787 do
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2791$as_echo_n "checking for $ac_word... " >&6; }
2792if test "${ac_cv_prog_CC+set}" = set; then
2793 $as_echo_n "(cached) " >&6
2794else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809done
2810done
2811IFS=$as_save_IFS
2812
2813fi
2814fi
2815CC=$ac_cv_prog_CC
2816if test -n "$CC"; then
2817 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2818$as_echo "$CC" >&6; }
2819else
2820 { $as_echo "$as_me:$LINENO: result: no" >&5
2821$as_echo "no" >&6; }
2822fi
2823
2824
2825 test -n "$CC" && break
2826 done
2827fi
2828if test -z "$CC"; then
2829 ac_ct_CC=$CC
2830 for ac_prog in cl.exe
2831do
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833set dummy $ac_prog; ac_word=$2
2834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837 $as_echo_n "(cached) " >&6
2838else
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841else
2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843for as_dir in $PATH
2844do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853done
2854done
2855IFS=$as_save_IFS
2856
2857fi
2858fi
2859ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862$as_echo "$ac_ct_CC" >&6; }
2863else
2864 { $as_echo "$as_me:$LINENO: result: no" >&5
2865$as_echo "no" >&6; }
2866fi
2867
2868
2869 test -n "$ac_ct_CC" && break
2870done
2871
2872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876yes:)
2877{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879ac_tool_warned=yes ;;
2880esac
2881 CC=$ac_ct_CC
2882 fi
2883fi
2884
2885fi
2886
2887
2888test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&5
2892$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2893See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }; }
2895
2896# Provide some information about the compiler.
2897$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2898set X $ac_compile
2899ac_compiler=$2
2900{ (ac_try="$ac_compiler --version >&5"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
2905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906$as_echo "$ac_try_echo") >&5
2907 (eval "$ac_compiler --version >&5") 2>&5
2908 ac_status=$?
2909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (ac_try="$ac_compiler -v >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917$as_echo "$ac_try_echo") >&5
2918 (eval "$ac_compiler -v >&5") 2>&5
2919 ac_status=$?
2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2922{ (ac_try="$ac_compiler -V >&5"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928$as_echo "$ac_try_echo") >&5
2929 (eval "$ac_compiler -V >&5") 2>&5
2930 ac_status=$?
2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933
2934cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
2940
2941int
2942main ()
2943{
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949ac_clean_files_save=$ac_clean_files
2950ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2951# Try to create an executable without -o first, disregard a.out.
2952# It will help us diagnose broken compilers, and finding out an intuition
2953# of exeext.
2954{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2955$as_echo_n "checking for C compiler default output file name... " >&6; }
2956ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2957
2958# The possible output files:
2959ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2960
2961ac_rmfiles=
2962for ac_file in $ac_files
2963do
2964 case $ac_file in
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967 esac
2968done
2969rm -f $ac_rmfiles
2970
2971if { (ac_try="$ac_link_default"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2977$as_echo "$ac_try_echo") >&5
2978 (eval "$ac_link_default") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; then
2982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2983# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2984# in a Makefile. We should not override ac_cv_exeext if it was cached,
2985# so that the user can short-circuit this test for compilers unknown to
2986# Autoconf.
2987for ac_file in $ac_files ''
2988do
2989 test -f "$ac_file" || continue
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2992 ;;
2993 [ab].out )
2994 # We found the default executable, but exeext='' is most
2995 # certainly right.
2996 break;;
2997 *.* )
2998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999 then :; else
3000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 fi
3002 # We set ac_cv_exeext here because the later test for it is not
3003 # safe: cross compilers may not add the suffix if given an `-o'
3004 # argument, so we may need to know it at that point already.
3005 # Even if this section looks crufty: it has the advantage of
3006 # actually working.
3007 break;;
3008 * )
3009 break;;
3010 esac
3011done
3012test "$ac_cv_exeext" = no && ac_cv_exeext=
3013
3014else
3015 ac_file=''
3016fi
3017
3018{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3019$as_echo "$ac_file" >&6; }
3020if test -z "$ac_file"; then
3021 $as_echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3027See \`config.log' for more details." >&5
3028$as_echo "$as_me: error: C compiler cannot create executables
3029See \`config.log' for more details." >&2;}
3030 { (exit 77); exit 77; }; }; }
3031fi
3032
3033ac_exeext=$ac_cv_exeext
3034
3035# Check that the compiler produces executables we can run. If not, either
3036# the compiler is broken, or we cross compile.
3037{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3038$as_echo_n "checking whether the C compiler works... " >&6; }
3039# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3040# If not cross compiling, check that we can run a simple program.
3041if test "$cross_compiling" != yes; then
3042 if { ac_try='./$ac_file'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3048$as_echo "$ac_try_echo") >&5
3049 (eval "$ac_try") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 cross_compiling=no
3054 else
3055 if test "$cross_compiling" = maybe; then
3056 cross_compiling=yes
3057 else
3058 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3061If you meant to cross compile, use \`--host'.
3062See \`config.log' for more details." >&5
3063$as_echo "$as_me: error: cannot run C compiled programs.
3064If you meant to cross compile, use \`--host'.
3065See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }; }
3067 fi
3068 fi
3069fi
3070{ $as_echo "$as_me:$LINENO: result: yes" >&5
3071$as_echo "yes" >&6; }
3072
3073rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3074ac_clean_files=$ac_clean_files_save
3075# Check that the compiler produces executables we can run. If not, either
3076# the compiler is broken, or we cross compile.
3077{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3078$as_echo_n "checking whether we are cross compiling... " >&6; }
3079{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3080$as_echo "$cross_compiling" >&6; }
3081
3082{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3083$as_echo_n "checking for suffix of executables... " >&6; }
3084if { (ac_try="$ac_link"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090$as_echo "$ac_try_echo") >&5
3091 (eval "$ac_link") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; then
3095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3096# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3097# work properly (i.e., refer to `conftest.exe'), while it won't with
3098# `rm'.
3099for ac_file in conftest.exe conftest conftest.*; do
3100 test -f "$ac_file" || continue
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 break;;
3105 * ) break;;
3106 esac
3107done
3108else
3109 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3112See \`config.log' for more details." >&5
3113$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3114See \`config.log' for more details." >&2;}
3115 { (exit 1); exit 1; }; }; }
3116fi
3117
3118rm -f conftest$ac_cv_exeext
3119{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3120$as_echo "$ac_cv_exeext" >&6; }
3121
3122rm -f conftest.$ac_ext
3123EXEEXT=$ac_cv_exeext
3124ac_exeext=$EXEEXT
3125{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3126$as_echo_n "checking for suffix of object files... " >&6; }
3127if test "${ac_cv_objext+set}" = set; then
3128 $as_echo_n "(cached) " >&6
3129else
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136
3137int
3138main ()
3139{
3140
3141 ;
3142 return 0;
3143}
3144_ACEOF
3145rm -f conftest.o conftest.obj
3146if { (ac_try="$ac_compile"
3147case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152$as_echo "$ac_try_echo") >&5
3153 (eval "$ac_compile") 2>&5
3154 ac_status=$?
3155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; then
3157 for ac_file in conftest.o conftest.obj conftest.*; do
3158 test -f "$ac_file" || continue;
3159 case $ac_file in
3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3162 break;;
3163 esac
3164done
3165else
3166 $as_echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3172See \`config.log' for more details." >&5
3173$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3174See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }; }
3176fi
3177
3178rm -f conftest.$ac_cv_objext conftest.$ac_ext
3179fi
3180{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3181$as_echo "$ac_cv_objext" >&6; }
3182OBJEXT=$ac_cv_objext
3183ac_objext=$OBJEXT
3184{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3185$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3186if test "${ac_cv_c_compiler_gnu+set}" = set; then
3187 $as_echo_n "(cached) " >&6
3188else
3189 cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h. */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h. */
3195
3196int
3197main ()
3198{
3199#ifndef __GNUC__
3200 choke me
3201#endif
3202
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
3208if { (ac_try="$ac_compile"
3209case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214$as_echo "$ac_try_echo") >&5
3215 (eval "$ac_compile") 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && {
3222 test -z "$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 } && test -s conftest.$ac_objext; then
3225 ac_compiler_gnu=yes
3226else
3227 $as_echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 ac_compiler_gnu=no
3231fi
3232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235
3236fi
3237{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3238$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3239if test $ac_compiler_gnu = yes; then
3240 GCC=yes
3241else
3242 GCC=
3243fi
3244ac_test_CFLAGS=${CFLAGS+set}
3245ac_save_CFLAGS=$CFLAGS
3246{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247$as_echo_n "checking whether $CC accepts -g... " >&6; }
3248if test "${ac_cv_prog_cc_g+set}" = set; then
3249 $as_echo_n "(cached) " >&6
3250else
3251 ac_save_c_werror_flag=$ac_c_werror_flag
3252 ac_c_werror_flag=yes
3253 ac_cv_prog_cc_g=no
3254 CFLAGS="-g"
3255 cat >conftest.$ac_ext <<_ACEOF
3256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
3260/* end confdefs.h. */
3261
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3277$as_echo "$ac_try_echo") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
3288 ac_cv_prog_cc_g=yes
3289else
3290 $as_echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 CFLAGS=""
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300
3301int
3302main ()
3303{
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309rm -f conftest.$ac_objext
3310if { (ac_try="$ac_compile"
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316$as_echo "$ac_try_echo") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } && {
3324 test -z "$ac_c_werror_flag" ||
3325 test ! -s conftest.err
3326 } && test -s conftest.$ac_objext; then
3327 :
3328else
3329 $as_echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ac_c_werror_flag=$ac_save_c_werror_flag
3333 CFLAGS="-g"
3334 cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h. */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
3339/* end confdefs.h. */
3340
3341int
3342main ()
3343{
3344
3345 ;
3346 return 0;
3347}
3348_ACEOF
3349rm -f conftest.$ac_objext
3350if { (ac_try="$ac_compile"
3351case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356$as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && {
3364 test -z "$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3366 } && test -s conftest.$ac_objext; then
3367 ac_cv_prog_cc_g=yes
3368else
3369 $as_echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373fi
3374
3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376fi
3377
3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379fi
3380
3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3383fi
3384{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3385$as_echo "$ac_cv_prog_cc_g" >&6; }
3386if test "$ac_test_CFLAGS" = set; then
3387 CFLAGS=$ac_save_CFLAGS
3388elif test $ac_cv_prog_cc_g = yes; then
3389 if test "$GCC" = yes; then
3390 CFLAGS="-g -O2"
3391 else
3392 CFLAGS="-g"
3393 fi
3394else
3395 if test "$GCC" = yes; then
3396 CFLAGS="-O2"
3397 else
3398 CFLAGS=
3399 fi
3400fi
3401{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3402$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3403if test "${ac_cv_prog_cc_c89+set}" = set; then
3404 $as_echo_n "(cached) " >&6
3405else
3406 ac_cv_prog_cc_c89=no
3407ac_save_CC=$CC
3408cat >conftest.$ac_ext <<_ACEOF
3409/* confdefs.h. */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h. */
3414#include <stdarg.h>
3415#include <stdio.h>
3416#include <sys/types.h>
3417#include <sys/stat.h>
3418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3419struct buf { int x; };
3420FILE * (*rcsopen) (struct buf *, struct stat *, int);
3421static char *e (p, i)
3422 char **p;
3423 int i;
3424{
3425 return p[i];
3426}
3427static char *f (char * (*g) (char **, int), char **p, ...)
3428{
3429 char *s;
3430 va_list v;
3431 va_start (v,p);
3432 s = g (p, va_arg (v,int));
3433 va_end (v);
3434 return s;
3435}
3436
3437/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3438 function prototypes and stuff, but not '\xHH' hex character constants.
3439 These don't provoke an error unfortunately, instead are silently treated
3440 as 'x'. The following induces an error, until -std is added to get
3441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3442 array size at least. It's necessary to write '\x00'==0 to get something
3443 that's true only with -std. */
3444int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3445
3446/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3447 inside strings and character constants. */
3448#define FOO(x) 'x'
3449int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3450
3451int test (int i, double x);
3452struct s1 {int (*f) (int a);};
3453struct s2 {int (*f) (double a);};
3454int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3455int argc;
3456char **argv;
3457int
3458main ()
3459{
3460return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3461 ;
3462 return 0;
3463}
3464_ACEOF
3465for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467do
3468 CC="$ac_save_CC $ac_arg"
3469 rm -f conftest.$ac_objext
3470if { (ac_try="$ac_compile"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3476$as_echo "$ac_try_echo") >&5
3477 (eval "$ac_compile") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } && {
3484 test -z "$ac_c_werror_flag" ||
3485 test ! -s conftest.err
3486 } && test -s conftest.$ac_objext; then
3487 ac_cv_prog_cc_c89=$ac_arg
3488else
3489 $as_echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492
3493fi
3494
3495rm -f core conftest.err conftest.$ac_objext
3496 test "x$ac_cv_prog_cc_c89" != "xno" && break
3497done
3498rm -f conftest.$ac_ext
3499CC=$ac_save_CC
3500
3501fi
3502# AC_CACHE_VAL
3503case "x$ac_cv_prog_cc_c89" in
3504 x)
3505 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3506$as_echo "none needed" >&6; } ;;
3507 xno)
3508 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3509$as_echo "unsupported" >&6; } ;;
3510 *)
3511 CC="$CC $ac_cv_prog_cc_c89"
3512 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3513$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3514esac
3515
3516
3517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523depcc="$CC" am_compiler_list=
3524
3525{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3526$as_echo_n "checking dependency style of $depcc... " >&6; }
3527if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3528 $as_echo_n "(cached) " >&6
3529else
3530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3531 # We make a subdir and do the tests there. Otherwise we can end up
3532 # making bogus files that we don't know about and never remove. For
3533 # instance it was reported that on HP-UX the gcc test will end up
3534 # making a dummy file named `D' -- because `-MD' means `put the output
3535 # in D'.
3536 mkdir conftest.dir
3537 # Copy depcomp to subdir because otherwise we won't find it if we're
3538 # using a relative directory.
3539 cp "$am_depcomp" conftest.dir
3540 cd conftest.dir
3541 # We will build objects and dependencies in a subdirectory because
3542 # it helps to detect inapplicable dependency modes. For instance
3543 # both Tru64's cc and ICC support -MD to output dependencies as a
3544 # side effect of compilation, but ICC will put the dependencies in
3545 # the current directory while Tru64 will put them in the object
3546 # directory.
3547 mkdir sub
3548
3549 am_cv_CC_dependencies_compiler_type=none
3550 if test "$am_compiler_list" = ""; then
3551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3552 fi
3553 for depmode in $am_compiler_list; do
3554 # Setup a source with many dependencies, because some compilers
3555 # like to wrap large dependency lists on column 80 (with \), and
3556 # we should not choose a depcomp mode which is confused by this.
3557 #
3558 # We need to recreate these files for each test, as the compiler may
3559 # overwrite some of them when testing with obscure command lines.
3560 # This happens at least with the AIX C compiler.
3561 : > sub/conftest.c
3562 for i in 1 2 3 4 5 6; do
3563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3565 # Solaris 8's {/usr,}/bin/sh.
3566 touch sub/conftst$i.h
3567 done
3568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3569
3570 case $depmode in
3571 nosideeffect)
3572 # after this tag, mechanisms are not by side-effect, so they'll
3573 # only be used when explicitly requested
3574 if test "x$enable_dependency_tracking" = xyes; then
3575 continue
3576 else
3577 break
3578 fi
3579 ;;
3580 none) break ;;
3581 esac
3582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3583 # mode. It turns out that the SunPro C++ compiler does not properly
3584 # handle `-M -o', and we need to detect this.
3585 if depmode=$depmode \
3586 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3588 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3589 >/dev/null 2>conftest.err &&
3590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3592 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3594 # icc doesn't choke on unknown options, it will just issue warnings
3595 # or remarks (even with -Werror). So we grep stderr for any message
3596 # that says an option was ignored or not supported.
3597 # When given -MP, icc 7.0 and 7.1 complain thusly:
3598 # icc: Command line warning: ignoring option '-M'; no argument required
3599 # The diagnosis changed in icc 8.0:
3600 # icc: Command line remark: option '-MP' not supported
3601 if (grep 'ignoring option' conftest.err ||
3602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3603 am_cv_CC_dependencies_compiler_type=$depmode
3604 break
3605 fi
3606 fi
3607 done
3608
3609 cd ..
3610 rm -rf conftest.dir
3611else
3612 am_cv_CC_dependencies_compiler_type=none
3613fi
3614
3615fi
3616{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3617$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3618CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3619
3620 if
3621 test "x$enable_dependency_tracking" != xno \
3622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3623 am__fastdepCC_TRUE=
3624 am__fastdepCC_FALSE='#'
3625else
3626 am__fastdepCC_TRUE='#'
3627 am__fastdepCC_FALSE=
3628fi
3629
3630
3631ac_ext=c
3632ac_cpp='$CPP $CPPFLAGS'
3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3637$as_echo_n "checking how to run the C preprocessor... " >&6; }
3638# On Suns, sometimes $CPP names a directory.
3639if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3641fi
3642if test -z "$CPP"; then
3643 if test "${ac_cv_prog_CPP+set}" = set; then
3644 $as_echo_n "(cached) " >&6
3645else
3646 # Double quotes because CPP needs to be expanded
3647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3648 do
3649 ac_preproc_ok=false
3650for ac_c_preproc_warn_flag in '' yes
3651do
3652 # Use a header file that comes with gcc, so configuring glibc
3653 # with a fresh cross-compiler works.
3654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3655 # <limits.h> exists even on freestanding compilers.
3656 # On the NeXT, cc -E runs the code through the compiler's parser,
3657 # not just through cpp. "Syntax error" is here to catch this case.
3658 cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
3664#ifdef __STDC__
3665# include <limits.h>
3666#else
3667# include <assert.h>
3668#endif
3669 Syntax error
3670_ACEOF
3671if { (ac_try="$ac_cpp conftest.$ac_ext"
3672case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675esac
3676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677$as_echo "$ac_try_echo") >&5
3678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } >/dev/null && {
3685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3686 test ! -s conftest.err
3687 }; then
3688 :
3689else
3690 $as_echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 # Broken: fails on valid input.
3694continue
3695fi
3696
3697rm -f conftest.err conftest.$ac_ext
3698
3699 # OK, works on sane cases. Now check whether nonexistent headers
3700 # can be detected and how.
3701 cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h. */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h. */
3707#include <ac_nonexistent.h>
3708_ACEOF
3709if { (ac_try="$ac_cpp conftest.$ac_ext"
3710case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
3714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715$as_echo "$ac_try_echo") >&5
3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null && {
3723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 }; then
3726 # Broken: success on invalid input.
3727continue
3728else
3729 $as_echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732 # Passes both tests.
3733ac_preproc_ok=:
3734break
3735fi
3736
3737rm -f conftest.err conftest.$ac_ext
3738
3739done
3740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3741rm -f conftest.err conftest.$ac_ext
3742if $ac_preproc_ok; then
3743 break
3744fi
3745
3746 done
3747 ac_cv_prog_CPP=$CPP
3748
3749fi
3750 CPP=$ac_cv_prog_CPP
3751else
3752 ac_cv_prog_CPP=$CPP
3753fi
3754{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3755$as_echo "$CPP" >&6; }
3756ac_preproc_ok=false
3757for ac_c_preproc_warn_flag in '' yes
3758do
3759 # Use a header file that comes with gcc, so configuring glibc
3760 # with a fresh cross-compiler works.
3761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3762 # <limits.h> exists even on freestanding compilers.
3763 # On the NeXT, cc -E runs the code through the compiler's parser,
3764 # not just through cpp. "Syntax error" is here to catch this case.
3765 cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h. */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h. */
3771#ifdef __STDC__
3772# include <limits.h>
3773#else
3774# include <assert.h>
3775#endif
3776 Syntax error
3777_ACEOF
3778if { (ac_try="$ac_cpp conftest.$ac_ext"
3779case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3784$as_echo "$ac_try_echo") >&5
3785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } >/dev/null && {
3792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 }; then
3795 :
3796else
3797 $as_echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 # Broken: fails on valid input.
3801continue
3802fi
3803
3804rm -f conftest.err conftest.$ac_ext
3805
3806 # OK, works on sane cases. Now check whether nonexistent headers
3807 # can be detected and how.
3808 cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h. */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h. */
3814#include <ac_nonexistent.h>
3815_ACEOF
3816if { (ac_try="$ac_cpp conftest.$ac_ext"
3817case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
3821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3822$as_echo "$ac_try_echo") >&5
3823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null && {
3830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3832 }; then
3833 # Broken: success on invalid input.
3834continue
3835else
3836 $as_echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 # Passes both tests.
3840ac_preproc_ok=:
3841break
3842fi
3843
3844rm -f conftest.err conftest.$ac_ext
3845
3846done
3847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3848rm -f conftest.err conftest.$ac_ext
3849if $ac_preproc_ok; then
3850 :
3851else
3852 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3855See \`config.log' for more details." >&5
3856$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3857See \`config.log' for more details." >&2;}
3858 { (exit 1); exit 1; }; }; }
3859fi
3860
3861ac_ext=c
3862ac_cpp='$CPP $CPPFLAGS'
3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866
3867ac_ext=c
3868ac_cpp='$CPP $CPPFLAGS'
3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872if test -n "$ac_tool_prefix"; then
3873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3874set dummy ${ac_tool_prefix}gcc; ac_word=$2
3875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3876$as_echo_n "checking for $ac_word... " >&6; }
3877if test "${ac_cv_prog_CC+set}" = set; then
3878 $as_echo_n "(cached) " >&6
3879else
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882else
3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894done
3895done
3896IFS=$as_save_IFS
3897
3898fi
3899fi
3900CC=$ac_cv_prog_CC
3901if test -n "$CC"; then
3902 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3903$as_echo "$CC" >&6; }
3904else
3905 { $as_echo "$as_me:$LINENO: result: no" >&5
3906$as_echo "no" >&6; }
3907fi
3908
3909
3910fi
3911if test -z "$ac_cv_prog_CC"; then
3912 ac_ct_CC=$CC
3913 # Extract the first word of "gcc", so it can be a program name with args.
3914set dummy gcc; ac_word=$2
3915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
3917if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$ac_ct_CC"; then
3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 ac_cv_prog_ac_ct_CC="gcc"
3931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940ac_ct_CC=$ac_cv_prog_ac_ct_CC
3941if test -n "$ac_ct_CC"; then
3942 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3943$as_echo "$ac_ct_CC" >&6; }
3944else
3945 { $as_echo "$as_me:$LINENO: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949 if test "x$ac_ct_CC" = x; then
3950 CC=""
3951 else
3952 case $cross_compiling:$ac_tool_warned in
3953yes:)
3954{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3956ac_tool_warned=yes ;;
3957esac
3958 CC=$ac_ct_CC
3959 fi
3960else
3961 CC="$ac_cv_prog_CC"
3962fi
3963
3964if test -z "$CC"; then
3965 if test -n "$ac_tool_prefix"; then
3966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3967set dummy ${ac_tool_prefix}cc; ac_word=$2
3968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3969$as_echo_n "checking for $ac_word... " >&6; }
3970if test "${ac_cv_prog_CC+set}" = set; then
3971 $as_echo_n "(cached) " >&6
3972else
3973 if test -n "$CC"; then
3974 ac_cv_prog_CC="$CC" # Let the user override the test.
3975else
3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983 ac_cv_prog_CC="${ac_tool_prefix}cc"
3984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987done
3988done
3989IFS=$as_save_IFS
3990
3991fi
3992fi
3993CC=$ac_cv_prog_CC
3994if test -n "$CC"; then
3995 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3996$as_echo "$CC" >&6; }
3997else
3998 { $as_echo "$as_me:$LINENO: result: no" >&5
3999$as_echo "no" >&6; }
4000fi
4001
4002
4003 fi
4004fi
4005if test -z "$CC"; then
4006 # Extract the first word of "cc", so it can be a program name with args.
4007set dummy cc; ac_word=$2
4008{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
4010if test "${ac_cv_prog_CC+set}" = set; then
4011 $as_echo_n "(cached) " >&6
4012else
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4015else
4016 ac_prog_rejected=no
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4025 ac_prog_rejected=yes
4026 continue
4027 fi
4028 ac_cv_prog_CC="cc"
4029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032done
4033done
4034IFS=$as_save_IFS
4035
4036if test $ac_prog_rejected = yes; then
4037 # We found a bogon in the path, so make sure we never use it.
4038 set dummy $ac_cv_prog_CC
4039 shift
4040 if test $# != 0; then
4041 # We chose a different compiler from the bogus one.
4042 # However, it has the same basename, so the bogon will be chosen
4043 # first if we set CC to just the basename; use the full file name.
4044 shift
4045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4046 fi
4047fi
4048fi
4049fi
4050CC=$ac_cv_prog_CC
4051if test -n "$CC"; then
4052 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4053$as_echo "$CC" >&6; }
4054else
4055 { $as_echo "$as_me:$LINENO: result: no" >&5
4056$as_echo "no" >&6; }
4057fi
4058
4059
4060fi
4061if test -z "$CC"; then
4062 if test -n "$ac_tool_prefix"; then
4063 for ac_prog in cl.exe
4064 do
4065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4067{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if test "${ac_cv_prog_CC+set}" = set; then
4070 $as_echo_n "(cached) " >&6
4071else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086done
4087done
4088IFS=$as_save_IFS
4089
4090fi
4091fi
4092CC=$ac_cv_prog_CC
4093if test -n "$CC"; then
4094 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4095$as_echo "$CC" >&6; }
4096else
4097 { $as_echo "$as_me:$LINENO: result: no" >&5
4098$as_echo "no" >&6; }
4099fi
4100
4101
4102 test -n "$CC" && break
4103 done
4104fi
4105if test -z "$CC"; then
4106 ac_ct_CC=$CC
4107 for ac_prog in cl.exe
4108do
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110set dummy $ac_prog; ac_word=$2
4111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4112$as_echo_n "checking for $ac_word... " >&6; }
4113if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4114 $as_echo_n "(cached) " >&6
4115else
4116 if test -n "$ac_ct_CC"; then
4117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_ac_ct_CC="$ac_prog"
4127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130done
4131done
4132IFS=$as_save_IFS
4133
4134fi
4135fi
4136ac_ct_CC=$ac_cv_prog_ac_ct_CC
4137if test -n "$ac_ct_CC"; then
4138 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4139$as_echo "$ac_ct_CC" >&6; }
4140else
4141 { $as_echo "$as_me:$LINENO: result: no" >&5
4142$as_echo "no" >&6; }
4143fi
4144
4145
4146 test -n "$ac_ct_CC" && break
4147done
4148
4149 if test "x$ac_ct_CC" = x; then
4150 CC=""
4151 else
4152 case $cross_compiling:$ac_tool_warned in
4153yes:)
4154{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156ac_tool_warned=yes ;;
4157esac
4158 CC=$ac_ct_CC
4159 fi
4160fi
4161
4162fi
4163
4164
4165test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4168See \`config.log' for more details." >&5
4169$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4170See \`config.log' for more details." >&2;}
4171 { (exit 1); exit 1; }; }; }
4172
4173# Provide some information about the compiler.
4174$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4175set X $ac_compile
4176ac_compiler=$2
4177{ (ac_try="$ac_compiler --version >&5"
4178case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181esac
4182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4183$as_echo "$ac_try_echo") >&5
4184 (eval "$ac_compiler --version >&5") 2>&5
4185 ac_status=$?
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }
4188{ (ac_try="$ac_compiler -v >&5"
4189case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192esac
4193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4194$as_echo "$ac_try_echo") >&5
4195 (eval "$ac_compiler -v >&5") 2>&5
4196 ac_status=$?
4197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }
4199{ (ac_try="$ac_compiler -V >&5"
4200case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4205$as_echo "$ac_try_echo") >&5
4206 (eval "$ac_compiler -V >&5") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }
4210
4211{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4212$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4213if test "${ac_cv_c_compiler_gnu+set}" = set; then
4214 $as_echo_n "(cached) " >&6
4215else
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222
4223int
4224main ()
4225{
4226#ifndef __GNUC__
4227 choke me
4228#endif
4229
4230 ;
4231 return 0;
4232}
4233_ACEOF
4234rm -f conftest.$ac_objext
4235if { (ac_try="$ac_compile"
4236case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4241$as_echo "$ac_try_echo") >&5
4242 (eval "$ac_compile") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } && {
4249 test -z "$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4251 } && test -s conftest.$ac_objext; then
4252 ac_compiler_gnu=yes
4253else
4254 $as_echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 ac_compiler_gnu=no
4258fi
4259
4260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261ac_cv_c_compiler_gnu=$ac_compiler_gnu
4262
4263fi
4264{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4265$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4266if test $ac_compiler_gnu = yes; then
4267 GCC=yes
4268else
4269 GCC=
4270fi
4271ac_test_CFLAGS=${CFLAGS+set}
4272ac_save_CFLAGS=$CFLAGS
4273{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4274$as_echo_n "checking whether $CC accepts -g... " >&6; }
4275if test "${ac_cv_prog_cc_g+set}" = set; then
4276 $as_echo_n "(cached) " >&6
4277else
4278 ac_save_c_werror_flag=$ac_c_werror_flag
4279 ac_c_werror_flag=yes
4280 ac_cv_prog_cc_g=no
4281 CFLAGS="-g"
4282 cat >conftest.$ac_ext <<_ACEOF
4283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
4288
4289int
4290main ()
4291{
4292
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297rm -f conftest.$ac_objext
4298if { (ac_try="$ac_compile"
4299case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4304$as_echo "$ac_try_echo") >&5
4305 (eval "$ac_compile") 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } && {
4312 test -z "$ac_c_werror_flag" ||
4313 test ! -s conftest.err
4314 } && test -s conftest.$ac_objext; then
4315 ac_cv_prog_cc_g=yes
4316else
4317 $as_echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 CFLAGS=""
4321 cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
4327
4328int
4329main ()
4330{
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336rm -f conftest.$ac_objext
4337if { (ac_try="$ac_compile"
4338case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4343$as_echo "$ac_try_echo") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && {
4351 test -z "$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 } && test -s conftest.$ac_objext; then
4354 :
4355else
4356 $as_echo "$as_me: failed program was:" >&5
4357sed 's/^/| /' conftest.$ac_ext >&5
4358
4359 ac_c_werror_flag=$ac_save_c_werror_flag
4360 CFLAGS="-g"
4361 cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367
4368int
4369main ()
4370{
4371
4372 ;
4373 return 0;
4374}
4375_ACEOF
4376rm -f conftest.$ac_objext
4377if { (ac_try="$ac_compile"
4378case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4383$as_echo "$ac_try_echo") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest.$ac_objext; then
4394 ac_cv_prog_cc_g=yes
4395else
4396 $as_echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399
4400fi
4401
4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403fi
4404
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406fi
4407
4408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_c_werror_flag=$ac_save_c_werror_flag
4410fi
4411{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4412$as_echo "$ac_cv_prog_cc_g" >&6; }
4413if test "$ac_test_CFLAGS" = set; then
4414 CFLAGS=$ac_save_CFLAGS
4415elif test $ac_cv_prog_cc_g = yes; then
4416 if test "$GCC" = yes; then
4417 CFLAGS="-g -O2"
4418 else
4419 CFLAGS="-g"
4420 fi
4421else
4422 if test "$GCC" = yes; then
4423 CFLAGS="-O2"
4424 else
4425 CFLAGS=
4426 fi
4427fi
4428{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4429$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4430if test "${ac_cv_prog_cc_c89+set}" = set; then
4431 $as_echo_n "(cached) " >&6
4432else
4433 ac_cv_prog_cc_c89=no
4434ac_save_CC=$CC
4435cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h. */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h. */
4441#include <stdarg.h>
4442#include <stdio.h>
4443#include <sys/types.h>
4444#include <sys/stat.h>
4445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4446struct buf { int x; };
4447FILE * (*rcsopen) (struct buf *, struct stat *, int);
4448static char *e (p, i)
4449 char **p;
4450 int i;
4451{
4452 return p[i];
4453}
4454static char *f (char * (*g) (char **, int), char **p, ...)
4455{
4456 char *s;
4457 va_list v;
4458 va_start (v,p);
4459 s = g (p, va_arg (v,int));
4460 va_end (v);
4461 return s;
4462}
4463
4464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4465 function prototypes and stuff, but not '\xHH' hex character constants.
4466 These don't provoke an error unfortunately, instead are silently treated
4467 as 'x'. The following induces an error, until -std is added to get
4468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4469 array size at least. It's necessary to write '\x00'==0 to get something
4470 that's true only with -std. */
4471int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4472
4473/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4474 inside strings and character constants. */
4475#define FOO(x) 'x'
4476int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4477
4478int test (int i, double x);
4479struct s1 {int (*f) (int a);};
4480struct s2 {int (*f) (double a);};
4481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4482int argc;
4483char **argv;
4484int
4485main ()
4486{
4487return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4488 ;
4489 return 0;
4490}
4491_ACEOF
4492for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4494do
4495 CC="$ac_save_CC $ac_arg"
4496 rm -f conftest.$ac_objext
4497if { (ac_try="$ac_compile"
4498case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
4502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4503$as_echo "$ac_try_echo") >&5
4504 (eval "$ac_compile") 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && {
4511 test -z "$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 } && test -s conftest.$ac_objext; then
4514 ac_cv_prog_cc_c89=$ac_arg
4515else
4516 $as_echo "$as_me: failed program was:" >&5
4517sed 's/^/| /' conftest.$ac_ext >&5
4518
4519
4520fi
4521
4522rm -f core conftest.err conftest.$ac_objext
4523 test "x$ac_cv_prog_cc_c89" != "xno" && break
4524done
4525rm -f conftest.$ac_ext
4526CC=$ac_save_CC
4527
4528fi
4529# AC_CACHE_VAL
4530case "x$ac_cv_prog_cc_c89" in
4531 x)
4532 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4533$as_echo "none needed" >&6; } ;;
4534 xno)
4535 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4536$as_echo "unsupported" >&6; } ;;
4537 *)
4538 CC="$CC $ac_cv_prog_cc_c89"
4539 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4540$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4541esac
4542
4543
4544ac_ext=c
4545ac_cpp='$CPP $CPPFLAGS'
4546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549
4550depcc="$CC" am_compiler_list=
4551
4552{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4553$as_echo_n "checking dependency style of $depcc... " >&6; }
4554if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4555 $as_echo_n "(cached) " >&6
4556else
4557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4558 # We make a subdir and do the tests there. Otherwise we can end up
4559 # making bogus files that we don't know about and never remove. For
4560 # instance it was reported that on HP-UX the gcc test will end up
4561 # making a dummy file named `D' -- because `-MD' means `put the output
4562 # in D'.
4563 mkdir conftest.dir
4564 # Copy depcomp to subdir because otherwise we won't find it if we're
4565 # using a relative directory.
4566 cp "$am_depcomp" conftest.dir
4567 cd conftest.dir
4568 # We will build objects and dependencies in a subdirectory because
4569 # it helps to detect inapplicable dependency modes. For instance
4570 # both Tru64's cc and ICC support -MD to output dependencies as a
4571 # side effect of compilation, but ICC will put the dependencies in
4572 # the current directory while Tru64 will put them in the object
4573 # directory.
4574 mkdir sub
4575
4576 am_cv_CC_dependencies_compiler_type=none
4577 if test "$am_compiler_list" = ""; then
4578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4579 fi
4580 for depmode in $am_compiler_list; do
4581 # Setup a source with many dependencies, because some compilers
4582 # like to wrap large dependency lists on column 80 (with \), and
4583 # we should not choose a depcomp mode which is confused by this.
4584 #
4585 # We need to recreate these files for each test, as the compiler may
4586 # overwrite some of them when testing with obscure command lines.
4587 # This happens at least with the AIX C compiler.
4588 : > sub/conftest.c
4589 for i in 1 2 3 4 5 6; do
4590 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4591 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4592 # Solaris 8's {/usr,}/bin/sh.
4593 touch sub/conftst$i.h
4594 done
4595 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4596
4597 case $depmode in
4598 nosideeffect)
4599 # after this tag, mechanisms are not by side-effect, so they'll
4600 # only be used when explicitly requested
4601 if test "x$enable_dependency_tracking" = xyes; then
4602 continue
4603 else
4604 break
4605 fi
4606 ;;
4607 none) break ;;
4608 esac
4609 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4610 # mode. It turns out that the SunPro C++ compiler does not properly
4611 # handle `-M -o', and we need to detect this.
4612 if depmode=$depmode \
4613 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4614 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4615 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4616 >/dev/null 2>conftest.err &&
4617 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4619 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4621 # icc doesn't choke on unknown options, it will just issue warnings
4622 # or remarks (even with -Werror). So we grep stderr for any message
4623 # that says an option was ignored or not supported.
4624 # When given -MP, icc 7.0 and 7.1 complain thusly:
4625 # icc: Command line warning: ignoring option '-M'; no argument required
4626 # The diagnosis changed in icc 8.0:
4627 # icc: Command line remark: option '-MP' not supported
4628 if (grep 'ignoring option' conftest.err ||
4629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4630 am_cv_CC_dependencies_compiler_type=$depmode
4631 break
4632 fi
4633 fi
4634 done
4635
4636 cd ..
4637 rm -rf conftest.dir
4638else
4639 am_cv_CC_dependencies_compiler_type=none
4640fi
4641
4642fi
4643{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4644$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4645CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4646
4647 if
4648 test "x$enable_dependency_tracking" != xno \
4649 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4650 am__fastdepCC_TRUE=
4651 am__fastdepCC_FALSE='#'
4652else
4653 am__fastdepCC_TRUE='#'
4654 am__fastdepCC_FALSE=
4655fi
4656
4657
4658# Find a good install program. We prefer a C program (faster),
4659# so one script is as good as another. But avoid the broken or
4660# incompatible versions:
4661# SysV /etc/install, /usr/sbin/install
4662# SunOS /usr/etc/install
4663# IRIX /sbin/install
4664# AIX /bin/install
4665# AmigaOS /C/install, which installs bootblocks on floppy discs
4666# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4667# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4668# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4669# OS/2's system install, which has a completely different semantic
4670# ./install, which can be erroneously created by make from ./install.sh.
4671# Reject install programs that cannot install multiple files.
4672{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4673$as_echo_n "checking for a BSD-compatible install... " >&6; }
4674if test -z "$INSTALL"; then
4675if test "${ac_cv_path_install+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4677else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 # Account for people who put trailing slashes in PATH elements.
4684case $as_dir/ in
4685 ./ | .// | /cC/* | \
4686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4688 /usr/ucb/* ) ;;
4689 *)
4690 # OSF1 and SCO ODT 3.0 have their own names for install.
4691 # Don't use installbsd from OSF since it installs stuff as root
4692 # by default.
4693 for ac_prog in ginstall scoinst install; do
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4696 if test $ac_prog = install &&
4697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4698 # AIX install. It has an incompatible calling convention.
4699 :
4700 elif test $ac_prog = install &&
4701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4702 # program-specific install script used by HP pwplus--don't use.
4703 :
4704 else
4705 rm -rf conftest.one conftest.two conftest.dir
4706 echo one > conftest.one
4707 echo two > conftest.two
4708 mkdir conftest.dir
4709 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4710 test -s conftest.one && test -s conftest.two &&
4711 test -s conftest.dir/conftest.one &&
4712 test -s conftest.dir/conftest.two
4713 then
4714 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4715 break 3
4716 fi
4717 fi
4718 fi
4719 done
4720 done
4721 ;;
4722esac
4723
4724done
4725IFS=$as_save_IFS
4726
4727rm -rf conftest.one conftest.two conftest.dir
4728
4729fi
4730 if test "${ac_cv_path_install+set}" = set; then
4731 INSTALL=$ac_cv_path_install
4732 else
4733 # As a last resort, use the slow shell script. Don't cache a
4734 # value for INSTALL within a source directory, because that will
4735 # break other packages using the cache if that directory is
4736 # removed, or if the value is a relative name.
4737 INSTALL=$ac_install_sh
4738 fi
4739fi
4740{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4741$as_echo "$INSTALL" >&6; }
4742
4743# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4744# It thinks the first close brace ends the variable substitution.
4745test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4746
4747test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4748
4749test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4750
4751case `pwd` in
4752 *\ * | *\ *)
4753 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4754$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4755esac
4756
4757
4758
4759macro_version='2.2.6'
4760macro_revision='1.3012'
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774ltmain="$ac_aux_dir/ltmain.sh"
4775
4776# Make sure we can run config.sub.
4777$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4778 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4779$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4780 { (exit 1); exit 1; }; }
4781
4782{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4783$as_echo_n "checking build system type... " >&6; }
4784if test "${ac_cv_build+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4786else
4787 ac_build_alias=$build_alias
4788test "x$ac_build_alias" = x &&
4789 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4790test "x$ac_build_alias" = x &&
4791 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4792$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4793 { (exit 1); exit 1; }; }
4794ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4795 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4796$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4797 { (exit 1); exit 1; }; }
4798
4799fi
4800{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4801$as_echo "$ac_cv_build" >&6; }
4802case $ac_cv_build in
4803*-*-*) ;;
4804*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4805$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4806 { (exit 1); exit 1; }; };;
4807esac
4808build=$ac_cv_build
4809ac_save_IFS=$IFS; IFS='-'
4810set x $ac_cv_build
4811shift
4812build_cpu=$1
4813build_vendor=$2
4814shift; shift
4815# Remember, the first character of IFS is used to create $*,
4816# except with old shells:
4817build_os=$*
4818IFS=$ac_save_IFS
4819case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4820
4821
4822{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4823$as_echo_n "checking host system type... " >&6; }
4824if test "${ac_cv_host+set}" = set; then
4825 $as_echo_n "(cached) " >&6
4826else
4827 if test "x$host_alias" = x; then
4828 ac_cv_host=$ac_cv_build
4829else
4830 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4831 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4832$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4833 { (exit 1); exit 1; }; }
4834fi
4835
4836fi
4837{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4838$as_echo "$ac_cv_host" >&6; }
4839case $ac_cv_host in
4840*-*-*) ;;
4841*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4842$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4843 { (exit 1); exit 1; }; };;
4844esac
4845host=$ac_cv_host
4846ac_save_IFS=$IFS; IFS='-'
4847set x $ac_cv_host
4848shift
4849host_cpu=$1
4850host_vendor=$2
4851shift; shift
4852# Remember, the first character of IFS is used to create $*,
4853# except with old shells:
4854host_os=$*
4855IFS=$ac_save_IFS
4856case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4857
4858
4859{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4860$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4861if test "${ac_cv_path_SED+set}" = set; then
4862 $as_echo_n "(cached) " >&6
4863else
4864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4865 for ac_i in 1 2 3 4 5 6 7; do
4866 ac_script="$ac_script$as_nl$ac_script"
4867 done
4868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4869 $as_unset ac_script || ac_script=
4870 if test -z "$SED"; then
4871 ac_path_SED_found=false
4872 # Loop through the user's path and test for each of PROGNAME-LIST
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_prog in sed gsed; do
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4881 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4882# Check for GNU ac_path_SED and select it if it is found.
4883 # Check for GNU $ac_path_SED
4884case `"$ac_path_SED" --version 2>&1` in
4885*GNU*)
4886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4887*)
4888 ac_count=0
4889 $as_echo_n 0123456789 >"conftest.in"
4890 while :
4891 do
4892 cat "conftest.in" "conftest.in" >"conftest.tmp"
4893 mv "conftest.tmp" "conftest.in"
4894 cp "conftest.in" "conftest.nl"
4895 $as_echo '' >> "conftest.nl"
4896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898 ac_count=`expr $ac_count + 1`
4899 if test $ac_count -gt ${ac_path_SED_max-0}; then
4900 # Best one so far, save it but keep looking for a better one
4901 ac_cv_path_SED="$ac_path_SED"
4902 ac_path_SED_max=$ac_count
4903 fi
4904 # 10*(2^10) chars as input seems more than enough
4905 test $ac_count -gt 10 && break
4906 done
4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
4909
4910 $ac_path_SED_found && break 3
4911 done
4912 done
4913done
4914IFS=$as_save_IFS
4915 if test -z "$ac_cv_path_SED"; then
4916 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4917$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4918 { (exit 1); exit 1; }; }
4919 fi
4920else
4921 ac_cv_path_SED=$SED
4922fi
4923
4924fi
4925{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4926$as_echo "$ac_cv_path_SED" >&6; }
4927 SED="$ac_cv_path_SED"
4928 rm -f conftest.sed
4929
4930test -z "$SED" && SED=sed
4931Xsed="$SED -e 1s/^X//"
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4944$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4945if test "${ac_cv_path_GREP+set}" = set; then
4946 $as_echo_n "(cached) " >&6
4947else
4948 if test -z "$GREP"; then
4949 ac_path_GREP_found=false
4950 # Loop through the user's path and test for each of PROGNAME-LIST
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_prog in grep ggrep; do
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4959 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4960# Check for GNU ac_path_GREP and select it if it is found.
4961 # Check for GNU $ac_path_GREP
4962case `"$ac_path_GREP" --version 2>&1` in
4963*GNU*)
4964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4965*)
4966 ac_count=0
4967 $as_echo_n 0123456789 >"conftest.in"
4968 while :
4969 do
4970 cat "conftest.in" "conftest.in" >"conftest.tmp"
4971 mv "conftest.tmp" "conftest.in"
4972 cp "conftest.in" "conftest.nl"
4973 $as_echo 'GREP' >> "conftest.nl"
4974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976 ac_count=`expr $ac_count + 1`
4977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4978 # Best one so far, save it but keep looking for a better one
4979 ac_cv_path_GREP="$ac_path_GREP"
4980 ac_path_GREP_max=$ac_count
4981 fi
4982 # 10*(2^10) chars as input seems more than enough
4983 test $ac_count -gt 10 && break
4984 done
4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4986esac
4987
4988 $ac_path_GREP_found && break 3
4989 done
4990 done
4991done
4992IFS=$as_save_IFS
4993 if test -z "$ac_cv_path_GREP"; then
4994 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4995$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4996 { (exit 1); exit 1; }; }
4997 fi
4998else
4999 ac_cv_path_GREP=$GREP
5000fi
5001
5002fi
5003{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5004$as_echo "$ac_cv_path_GREP" >&6; }
5005 GREP="$ac_cv_path_GREP"
5006
5007
5008{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5009$as_echo_n "checking for egrep... " >&6; }
5010if test "${ac_cv_path_EGREP+set}" = set; then
5011 $as_echo_n "(cached) " >&6
5012else
5013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5014 then ac_cv_path_EGREP="$GREP -E"
5015 else
5016 if test -z "$EGREP"; then
5017 ac_path_EGREP_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in egrep; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5027 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5028# Check for GNU ac_path_EGREP and select it if it is found.
5029 # Check for GNU $ac_path_EGREP
5030case `"$ac_path_EGREP" --version 2>&1` in
5031*GNU*)
5032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5033*)
5034 ac_count=0
5035 $as_echo_n 0123456789 >"conftest.in"
5036 while :
5037 do
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 $as_echo 'EGREP' >> "conftest.nl"
5042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 ac_count=`expr $ac_count + 1`
5045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_EGREP="$ac_path_EGREP"
5048 ac_path_EGREP_max=$ac_count
5049 fi
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054esac
5055
5056 $ac_path_EGREP_found && break 3
5057 done
5058 done
5059done
5060IFS=$as_save_IFS
5061 if test -z "$ac_cv_path_EGREP"; then
5062 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5063$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5064 { (exit 1); exit 1; }; }
5065 fi
5066else
5067 ac_cv_path_EGREP=$EGREP
5068fi
5069
5070 fi
5071fi
5072{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5073$as_echo "$ac_cv_path_EGREP" >&6; }
5074 EGREP="$ac_cv_path_EGREP"
5075
5076
5077{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5078$as_echo_n "checking for fgrep... " >&6; }
5079if test "${ac_cv_path_FGREP+set}" = set; then
5080 $as_echo_n "(cached) " >&6
5081else
5082 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5083 then ac_cv_path_FGREP="$GREP -F"
5084 else
5085 if test -z "$FGREP"; then
5086 ac_path_FGREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in fgrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5096 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5097# Check for GNU ac_path_FGREP and select it if it is found.
5098 # Check for GNU $ac_path_FGREP
5099case `"$ac_path_FGREP" --version 2>&1` in
5100*GNU*)
5101 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5102*)
5103 ac_count=0
5104 $as_echo_n 0123456789 >"conftest.in"
5105 while :
5106 do
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 $as_echo 'FGREP' >> "conftest.nl"
5111 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 ac_count=`expr $ac_count + 1`
5114 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_FGREP="$ac_path_FGREP"
5117 ac_path_FGREP_max=$ac_count
5118 fi
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5121 done
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123esac
5124
5125 $ac_path_FGREP_found && break 3
5126 done
5127 done
5128done
5129IFS=$as_save_IFS
5130 if test -z "$ac_cv_path_FGREP"; then
5131 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5132$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5133 { (exit 1); exit 1; }; }
5134 fi
5135else
5136 ac_cv_path_FGREP=$FGREP
5137fi
5138
5139 fi
5140fi
5141{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5142$as_echo "$ac_cv_path_FGREP" >&6; }
5143 FGREP="$ac_cv_path_FGREP"
5144
5145
5146test -z "$GREP" && GREP=grep
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166# Check whether --with-gnu-ld was given.
5167if test "${with_gnu_ld+set}" = set; then
5168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5169else
5170 with_gnu_ld=no
5171fi
5172
5173ac_prog=ld
5174if test "$GCC" = yes; then
5175 # Check if gcc -print-prog-name=ld gives a path.
5176 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5177$as_echo_n "checking for ld used by $CC... " >&6; }
5178 case $host in
5179 *-*-mingw*)
5180 # gcc leaves a trailing carriage return which upsets mingw
5181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5182 *)
5183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5184 esac
5185 case $ac_prog in
5186 # Accept absolute paths.
5187 [\\/]* | ?:[\\/]*)
5188 re_direlt='/[^/][^/]*/\.\./'
5189 # Canonicalize the pathname of ld
5190 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5191 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5192 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5193 done
5194 test -z "$LD" && LD="$ac_prog"
5195 ;;
5196 "")
5197 # If it fails, then pretend we aren't using GCC.
5198 ac_prog=ld
5199 ;;
5200 *)
5201 # If it is relative, then search for the first ld in PATH.
5202 with_gnu_ld=unknown
5203 ;;
5204 esac
5205elif test "$with_gnu_ld" = yes; then
5206 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5207$as_echo_n "checking for GNU ld... " >&6; }
5208else
5209 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5210$as_echo_n "checking for non-GNU ld... " >&6; }
5211fi
5212if test "${lt_cv_path_LD+set}" = set; then
5213 $as_echo_n "(cached) " >&6
5214else
5215 if test -z "$LD"; then
5216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5217 for ac_dir in $PATH; do
5218 IFS="$lt_save_ifs"
5219 test -z "$ac_dir" && ac_dir=.
5220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5221 lt_cv_path_LD="$ac_dir/$ac_prog"
5222 # Check to see if the program is GNU ld. I'd rather use --version,
5223 # but apparently some variants of GNU ld only accept -v.
5224 # Break only if it was the GNU/non-GNU ld that we prefer.
5225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5226 *GNU* | *'with BFD'*)
5227 test "$with_gnu_ld" != no && break
5228 ;;
5229 *)
5230 test "$with_gnu_ld" != yes && break
5231 ;;
5232 esac
5233 fi
5234 done
5235 IFS="$lt_save_ifs"
5236else
5237 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5238fi
5239fi
5240
5241LD="$lt_cv_path_LD"
5242if test -n "$LD"; then
5243 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5244$as_echo "$LD" >&6; }
5245else
5246 { $as_echo "$as_me:$LINENO: result: no" >&5
5247$as_echo "no" >&6; }
5248fi
5249test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5250$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5251 { (exit 1); exit 1; }; }
5252{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5253$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5254if test "${lt_cv_prog_gnu_ld+set}" = set; then
5255 $as_echo_n "(cached) " >&6
5256else
5257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5258case `$LD -v 2>&1 </dev/null` in
5259*GNU* | *'with BFD'*)
5260 lt_cv_prog_gnu_ld=yes
5261 ;;
5262*)
5263 lt_cv_prog_gnu_ld=no
5264 ;;
5265esac
5266fi
5267{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5268$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5269with_gnu_ld=$lt_cv_prog_gnu_ld
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5280$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5281if test "${lt_cv_path_NM+set}" = set; then
5282 $as_echo_n "(cached) " >&6
5283else
5284 if test -n "$NM"; then
5285 # Let the user override the test.
5286 lt_cv_path_NM="$NM"
5287else
5288 lt_nm_to_check="${ac_tool_prefix}nm"
5289 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5290 lt_nm_to_check="$lt_nm_to_check nm"
5291 fi
5292 for lt_tmp_nm in $lt_nm_to_check; do
5293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5294 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5295 IFS="$lt_save_ifs"
5296 test -z "$ac_dir" && ac_dir=.
5297 tmp_nm="$ac_dir/$lt_tmp_nm"
5298 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5299 # Check to see if the nm accepts a BSD-compat flag.
5300 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5301 # nm: unknown option "B" ignored
5302 # Tru64's nm complains that /dev/null is an invalid object file
5303 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5304 */dev/null* | *'Invalid file or object type'*)
5305 lt_cv_path_NM="$tmp_nm -B"
5306 break
5307 ;;
5308 *)
5309 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5310 */dev/null*)
5311 lt_cv_path_NM="$tmp_nm -p"
5312 break
5313 ;;
5314 *)
5315 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5316 continue # so that we can try to find one that supports BSD flags
5317 ;;
5318 esac
5319 ;;
5320 esac
5321 fi
5322 done
5323 IFS="$lt_save_ifs"
5324 done
5325 : ${lt_cv_path_NM=no}
5326fi
5327fi
5328{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5329$as_echo "$lt_cv_path_NM" >&6; }
5330if test "$lt_cv_path_NM" != "no"; then
5331 NM="$lt_cv_path_NM"
5332else
5333 # Didn't find any BSD compatible name lister, look for dumpbin.
5334 if test -n "$ac_tool_prefix"; then
5335 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5336 do
5337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5338set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340$as_echo_n "checking for $ac_word... " >&6; }
5341if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5343else
5344 if test -n "$DUMPBIN"; then
5345 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358done
5359done
5360IFS=$as_save_IFS
5361
5362fi
5363fi
5364DUMPBIN=$ac_cv_prog_DUMPBIN
5365if test -n "$DUMPBIN"; then
5366 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5367$as_echo "$DUMPBIN" >&6; }
5368else
5369 { $as_echo "$as_me:$LINENO: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373
5374 test -n "$DUMPBIN" && break
5375 done
5376fi
5377if test -z "$DUMPBIN"; then
5378 ac_ct_DUMPBIN=$DUMPBIN
5379 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5380do
5381 # Extract the first word of "$ac_prog", so it can be a program name with args.
5382set dummy $ac_prog; ac_word=$2
5383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5384$as_echo_n "checking for $ac_word... " >&6; }
5385if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5386 $as_echo_n "(cached) " >&6
5387else
5388 if test -n "$ac_ct_DUMPBIN"; then
5389 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403done
5404IFS=$as_save_IFS
5405
5406fi
5407fi
5408ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5409if test -n "$ac_ct_DUMPBIN"; then
5410 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5411$as_echo "$ac_ct_DUMPBIN" >&6; }
5412else
5413 { $as_echo "$as_me:$LINENO: result: no" >&5
5414$as_echo "no" >&6; }
5415fi
5416
5417
5418 test -n "$ac_ct_DUMPBIN" && break
5419done
5420
5421 if test "x$ac_ct_DUMPBIN" = x; then
5422 DUMPBIN=":"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425yes:)
5426{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428ac_tool_warned=yes ;;
5429esac
5430 DUMPBIN=$ac_ct_DUMPBIN
5431 fi
5432fi
5433
5434
5435 if test "$DUMPBIN" != ":"; then
5436 NM="$DUMPBIN"
5437 fi
5438fi
5439test -z "$NM" && NM=nm
5440
5441
5442
5443
5444
5445
5446{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5447$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5448if test "${lt_cv_nm_interface+set}" = set; then
5449 $as_echo_n "(cached) " >&6
5450else
5451 lt_cv_nm_interface="BSD nm"
5452 echo "int some_variable = 0;" > conftest.$ac_ext
5453 (eval echo "\"\$as_me:5453: $ac_compile\"" >&5)
5454 (eval "$ac_compile" 2>conftest.err)
5455 cat conftest.err >&5
5456 (eval echo "\"\$as_me:5456: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5457 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5458 cat conftest.err >&5
5459 (eval echo "\"\$as_me:5459: output\"" >&5)
5460 cat conftest.out >&5
5461 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5462 lt_cv_nm_interface="MS dumpbin"
5463 fi
5464 rm -f conftest*
5465fi
5466{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5467$as_echo "$lt_cv_nm_interface" >&6; }
5468
5469{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5470$as_echo_n "checking whether ln -s works... " >&6; }
5471LN_S=$as_ln_s
5472if test "$LN_S" = "ln -s"; then
5473 { $as_echo "$as_me:$LINENO: result: yes" >&5
5474$as_echo "yes" >&6; }
5475else
5476 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5477$as_echo "no, using $LN_S" >&6; }
5478fi
5479
5480# find the maximum length of command line arguments
5481{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5482$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5483if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5484 $as_echo_n "(cached) " >&6
5485else
5486 i=0
5487 teststring="ABCD"
5488
5489 case $build_os in
5490 msdosdjgpp*)
5491 # On DJGPP, this test can blow up pretty badly due to problems in libc
5492 # (any single argument exceeding 2000 bytes causes a buffer overrun
5493 # during glob expansion). Even if it were fixed, the result of this
5494 # check would be larger than it should be.
5495 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5496 ;;
5497
5498 gnu*)
5499 # Under GNU Hurd, this test is not required because there is
5500 # no limit to the length of command line arguments.
5501 # Libtool will interpret -1 as no limit whatsoever
5502 lt_cv_sys_max_cmd_len=-1;
5503 ;;
5504
5505 cygwin* | mingw* | cegcc*)
5506 # On Win9x/ME, this test blows up -- it succeeds, but takes
5507 # about 5 minutes as the teststring grows exponentially.
5508 # Worse, since 9x/ME are not pre-emptively multitasking,
5509 # you end up with a "frozen" computer, even though with patience
5510 # the test eventually succeeds (with a max line length of 256k).
5511 # Instead, let's just punt: use the minimum linelength reported by
5512 # all of the supported platforms: 8192 (on NT/2K/XP).
5513 lt_cv_sys_max_cmd_len=8192;
5514 ;;
5515
5516 amigaos*)
5517 # On AmigaOS with pdksh, this test takes hours, literally.
5518 # So we just punt and use a minimum line length of 8192.
5519 lt_cv_sys_max_cmd_len=8192;
5520 ;;
5521
5522 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5523 # This has been around since 386BSD, at least. Likely further.
5524 if test -x /sbin/sysctl; then
5525 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5526 elif test -x /usr/sbin/sysctl; then
5527 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5528 else
5529 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5530 fi
5531 # And add a safety zone
5532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5534 ;;
5535
5536 interix*)
5537 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5538 lt_cv_sys_max_cmd_len=196608
5539 ;;
5540
5541 osf*)
5542 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5543 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5544 # nice to cause kernel panics so lets avoid the loop below.
5545 # First set a reasonable default.
5546 lt_cv_sys_max_cmd_len=16384
5547 #
5548 if test -x /sbin/sysconfig; then
5549 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5550 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5551 esac
5552 fi
5553 ;;
5554 sco3.2v5*)
5555 lt_cv_sys_max_cmd_len=102400
5556 ;;
5557 sysv5* | sco5v6* | sysv4.2uw2*)
5558 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5559 if test -n "$kargmax"; then
5560 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5561 else
5562 lt_cv_sys_max_cmd_len=32768
5563 fi
5564 ;;
5565 *)
5566 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5567 if test -n "$lt_cv_sys_max_cmd_len"; then
5568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5570 else
5571 # Make teststring a little bigger before we do anything with it.
5572 # a 1K string should be a reasonable start.
5573 for i in 1 2 3 4 5 6 7 8 ; do
5574 teststring=$teststring$teststring
5575 done
5576 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5577 # If test is not a shell built-in, we'll probably end up computing a
5578 # maximum length that is only half of the actual maximum length, but
5579 # we can't tell.
5580 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5581 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5582 test $i != 17 # 1/2 MB should be enough
5583 do
5584 i=`expr $i + 1`
5585 teststring=$teststring$teststring
5586 done
5587 # Only check the string length outside the loop.
5588 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5589 teststring=
5590 # Add a significant safety factor because C++ compilers can tack on
5591 # massive amounts of additional arguments before passing them to the
5592 # linker. It appears as though 1/2 is a usable value.
5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5594 fi
5595 ;;
5596 esac
5597
5598fi
5599
5600if test -n $lt_cv_sys_max_cmd_len ; then
5601 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5602$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5603else
5604 { $as_echo "$as_me:$LINENO: result: none" >&5
5605$as_echo "none" >&6; }
5606fi
5607max_cmd_len=$lt_cv_sys_max_cmd_len
5608
5609
5610
5611
5612
5613
5614: ${CP="cp -f"}
5615: ${MV="mv -f"}
5616: ${RM="rm -f"}
5617
5618{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5619$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5620# Try some XSI features
5621xsi_shell=no
5622( _lt_dummy="a/b/c"
5623 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5624 = c,a/b,, \
5625 && eval 'test $(( 1 + 1 )) -eq 2 \
5626 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5627 && xsi_shell=yes
5628{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5629$as_echo "$xsi_shell" >&6; }
5630
5631
5632{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5633$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5634lt_shell_append=no
5635( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5636 >/dev/null 2>&1 \
5637 && lt_shell_append=yes
5638{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5639$as_echo "$lt_shell_append" >&6; }
5640
5641
5642if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5643 lt_unset=unset
5644else
5645 lt_unset=false
5646fi
5647
5648
5649
5650
5651
5652# test EBCDIC or ASCII
5653case `echo X|tr X '\101'` in
5654 A) # ASCII based system
5655 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5656 lt_SP2NL='tr \040 \012'
5657 lt_NL2SP='tr \015\012 \040\040'
5658 ;;
5659 *) # EBCDIC based system
5660 lt_SP2NL='tr \100 \n'
5661 lt_NL2SP='tr \r\n \100\100'
5662 ;;
5663esac
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5674$as_echo_n "checking for $LD option to reload object files... " >&6; }
5675if test "${lt_cv_ld_reload_flag+set}" = set; then
5676 $as_echo_n "(cached) " >&6
5677else
5678 lt_cv_ld_reload_flag='-r'
5679fi
5680{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5681$as_echo "$lt_cv_ld_reload_flag" >&6; }
5682reload_flag=$lt_cv_ld_reload_flag
5683case $reload_flag in
5684"" | " "*) ;;
5685*) reload_flag=" $reload_flag" ;;
5686esac
5687reload_cmds='$LD$reload_flag -o $output$reload_objs'
5688case $host_os in
5689 darwin*)
5690 if test "$GCC" = yes; then
5691 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5692 else
5693 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5694 fi
5695 ;;
5696esac
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706if test -n "$ac_tool_prefix"; then
5707 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5708set dummy ${ac_tool_prefix}objdump; ac_word=$2
5709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5712 $as_echo_n "(cached) " >&6
5713else
5714 if test -n "$OBJDUMP"; then
5715 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734OBJDUMP=$ac_cv_prog_OBJDUMP
5735if test -n "$OBJDUMP"; then
5736 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5737$as_echo "$OBJDUMP" >&6; }
5738else
5739 { $as_echo "$as_me:$LINENO: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743
5744fi
5745if test -z "$ac_cv_prog_OBJDUMP"; then
5746 ac_ct_OBJDUMP=$OBJDUMP
5747 # Extract the first word of "objdump", so it can be a program name with args.
5748set dummy objdump; ac_word=$2
5749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5750$as_echo_n "checking for $ac_word... " >&6; }
5751if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5752 $as_echo_n "(cached) " >&6
5753else
5754 if test -n "$ac_ct_OBJDUMP"; then
5755 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768done
5769done
5770IFS=$as_save_IFS
5771
5772fi
5773fi
5774ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5775if test -n "$ac_ct_OBJDUMP"; then
5776 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5777$as_echo "$ac_ct_OBJDUMP" >&6; }
5778else
5779 { $as_echo "$as_me:$LINENO: result: no" >&5
5780$as_echo "no" >&6; }
5781fi
5782
5783 if test "x$ac_ct_OBJDUMP" = x; then
5784 OBJDUMP="false"
5785 else
5786 case $cross_compiling:$ac_tool_warned in
5787yes:)
5788{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5790ac_tool_warned=yes ;;
5791esac
5792 OBJDUMP=$ac_ct_OBJDUMP
5793 fi
5794else
5795 OBJDUMP="$ac_cv_prog_OBJDUMP"
5796fi
5797
5798test -z "$OBJDUMP" && OBJDUMP=objdump
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5809$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5810if test "${lt_cv_deplibs_check_method+set}" = set; then
5811 $as_echo_n "(cached) " >&6
5812else
5813 lt_cv_file_magic_cmd='$MAGIC_CMD'
5814lt_cv_file_magic_test_file=
5815lt_cv_deplibs_check_method='unknown'
5816# Need to set the preceding variable on all platforms that support
5817# interlibrary dependencies.
5818# 'none' -- dependencies not supported.
5819# `unknown' -- same as none, but documents that we really don't know.
5820# 'pass_all' -- all dependencies passed with no checks.
5821# 'test_compile' -- check by making test program.
5822# 'file_magic [[regex]]' -- check by looking for files in library path
5823# which responds to the $file_magic_cmd with a given extended regex.
5824# If you have `file' or equivalent on your system and you're not sure
5825# whether `pass_all' will *always* work, you probably want this one.
5826
5827case $host_os in
5828aix[4-9]*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
5832beos*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836bsdi[45]*)
5837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5838 lt_cv_file_magic_cmd='/usr/bin/file -L'
5839 lt_cv_file_magic_test_file=/shlib/libc.so
5840 ;;
5841
5842cygwin*)
5843 # func_win32_libid is a shell function defined in ltmain.sh
5844 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5845 lt_cv_file_magic_cmd='func_win32_libid'
5846 ;;
5847
5848mingw* | pw32*)
5849 # Base MSYS/MinGW do not provide the 'file' command needed by
5850 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5851 # unless we find 'file', for example because we are cross-compiling.
5852 if ( file / ) >/dev/null 2>&1; then
5853 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5854 lt_cv_file_magic_cmd='func_win32_libid'
5855 else
5856 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5857 lt_cv_file_magic_cmd='$OBJDUMP -f'
5858 fi
5859 ;;
5860
5861cegcc)
5862 # use the weaker test based on 'objdump'. See mingw*.
5863 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5864 lt_cv_file_magic_cmd='$OBJDUMP -f'
5865 ;;
5866
5867darwin* | rhapsody*)
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870
5871freebsd* | dragonfly*)
5872 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5873 case $host_cpu in
5874 i*86 )
5875 # Not sure whether the presence of OpenBSD here was a mistake.
5876 # Let's accept both of them until this is cleared up.
5877 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5878 lt_cv_file_magic_cmd=/usr/bin/file
5879 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5880 ;;
5881 esac
5882 else
5883 lt_cv_deplibs_check_method=pass_all
5884 fi
5885 ;;
5886
5887gnu*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891hpux10.20* | hpux11*)
5892 lt_cv_file_magic_cmd=/usr/bin/file
5893 case $host_cpu in
5894 ia64*)
5895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5896 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5897 ;;
5898 hppa*64*)
5899 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]'
5900 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5901 ;;
5902 *)
5903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5904 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5905 ;;
5906 esac
5907 ;;
5908
5909interix[3-9]*)
5910 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5912 ;;
5913
5914irix5* | irix6* | nonstopux*)
5915 case $LD in
5916 *-32|*"-32 ") libmagic=32-bit;;
5917 *-n32|*"-n32 ") libmagic=N32;;
5918 *-64|*"-64 ") libmagic=64-bit;;
5919 *) libmagic=never-match;;
5920 esac
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
5924# This must be Linux ELF.
5925linux* | k*bsd*-gnu)
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
5928
5929netbsd*)
5930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5932 else
5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5934 fi
5935 ;;
5936
5937newos6*)
5938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5939 lt_cv_file_magic_cmd=/usr/bin/file
5940 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5941 ;;
5942
5943*nto* | *qnx*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946
5947openbsd*)
5948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5950 else
5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5952 fi
5953 ;;
5954
5955osf3* | osf4* | osf5*)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958
5959rdos*)
5960 lt_cv_deplibs_check_method=pass_all
5961 ;;
5962
5963solaris*)
5964 lt_cv_deplibs_check_method=pass_all
5965 ;;
5966
5967sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971sysv4 | sysv4.3*)
5972 case $host_vendor in
5973 motorola)
5974 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]'
5975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5976 ;;
5977 ncr)
5978 lt_cv_deplibs_check_method=pass_all
5979 ;;
5980 sequent)
5981 lt_cv_file_magic_cmd='/bin/file'
5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5983 ;;
5984 sni)
5985 lt_cv_file_magic_cmd='/bin/file'
5986 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5987 lt_cv_file_magic_test_file=/lib/libc.so
5988 ;;
5989 siemens)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992 pc)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995 esac
5996 ;;
5997
5998tpf*)
5999 lt_cv_deplibs_check_method=pass_all
6000 ;;
6001esac
6002
6003fi
6004{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6005$as_echo "$lt_cv_deplibs_check_method" >&6; }
6006file_magic_cmd=$lt_cv_file_magic_cmd
6007deplibs_check_method=$lt_cv_deplibs_check_method
6008test -z "$deplibs_check_method" && deplibs_check_method=unknown
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6023set dummy ${ac_tool_prefix}ar; ac_word=$2
6024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6025$as_echo_n "checking for $ac_word... " >&6; }
6026if test "${ac_cv_prog_AR+set}" = set; then
6027 $as_echo_n "(cached) " >&6
6028else
6029 if test -n "$AR"; then
6030 ac_cv_prog_AR="$AR" # 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
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_AR="${ac_tool_prefix}ar"
6040 $as_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
6049AR=$ac_cv_prog_AR
6050if test -n "$AR"; then
6051 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6052$as_echo "$AR" >&6; }
6053else
6054 { $as_echo "$as_me:$LINENO: result: no" >&5
6055$as_echo "no" >&6; }
6056fi
6057
6058
6059fi
6060if test -z "$ac_cv_prog_AR"; then
6061 ac_ct_AR=$AR
6062 # Extract the first word of "ar", so it can be a program name with args.
6063set dummy ar; ac_word=$2
6064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
6066if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6067 $as_echo_n "(cached) " >&6
6068else
6069 if test -n "$ac_ct_AR"; then
6070 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_prog_ac_ct_AR="ar"
6080 $as_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_AR=$ac_cv_prog_ac_ct_AR
6090if test -n "$ac_ct_AR"; then
6091 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6092$as_echo "$ac_ct_AR" >&6; }
6093else
6094 { $as_echo "$as_me:$LINENO: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098 if test "x$ac_ct_AR" = x; then
6099 AR="false"
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102yes:)
6103{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105ac_tool_warned=yes ;;
6106esac
6107 AR=$ac_ct_AR
6108 fi
6109else
6110 AR="$ac_cv_prog_AR"
6111fi
6112
6113test -z "$AR" && AR=ar
6114test -z "$AR_FLAGS" && AR_FLAGS=cru
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6128set dummy ${ac_tool_prefix}strip; ac_word=$2
6129{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
6131if test "${ac_cv_prog_STRIP+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6133else
6134 if test -n "$STRIP"; then
6135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154STRIP=$ac_cv_prog_STRIP
6155if test -n "$STRIP"; then
6156 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6157$as_echo "$STRIP" >&6; }
6158else
6159 { $as_echo "$as_me:$LINENO: result: no" >&5
6160$as_echo "no" >&6; }
6161fi
6162
6163
6164fi
6165if test -z "$ac_cv_prog_STRIP"; then
6166 ac_ct_STRIP=$STRIP
6167 # Extract the first word of "strip", so it can be a program name with args.
6168set dummy strip; ac_word=$2
6169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170$as_echo_n "checking for $ac_word... " >&6; }
6171if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173else
6174 if test -n "$ac_ct_STRIP"; then
6175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_STRIP="strip"
6185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188done
6189done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6195if test -n "$ac_ct_STRIP"; then
6196 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6197$as_echo "$ac_ct_STRIP" >&6; }
6198else
6199 { $as_echo "$as_me:$LINENO: result: no" >&5
6200$as_echo "no" >&6; }
6201fi
6202
6203 if test "x$ac_ct_STRIP" = x; then
6204 STRIP=":"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207yes:)
6208{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210ac_tool_warned=yes ;;
6211esac
6212 STRIP=$ac_ct_STRIP
6213 fi
6214else
6215 STRIP="$ac_cv_prog_STRIP"
6216fi
6217
6218test -z "$STRIP" && STRIP=:
6219
6220
6221
6222
6223
6224
6225if test -n "$ac_tool_prefix"; then
6226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6227set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6229$as_echo_n "checking for $ac_word... " >&6; }
6230if test "${ac_cv_prog_RANLIB+set}" = set; then
6231 $as_echo_n "(cached) " >&6
6232else
6233 if test -n "$RANLIB"; then
6234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247done
6248done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253RANLIB=$ac_cv_prog_RANLIB
6254if test -n "$RANLIB"; then
6255 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6256$as_echo "$RANLIB" >&6; }
6257else
6258 { $as_echo "$as_me:$LINENO: result: no" >&5
6259$as_echo "no" >&6; }
6260fi
6261
6262
6263fi
6264if test -z "$ac_cv_prog_RANLIB"; then
6265 ac_ct_RANLIB=$RANLIB
6266 # Extract the first word of "ranlib", so it can be a program name with args.
6267set dummy ranlib; ac_word=$2
6268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6269$as_echo_n "checking for $ac_word... " >&6; }
6270if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6271 $as_echo_n "(cached) " >&6
6272else
6273 if test -n "$ac_ct_RANLIB"; then
6274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_ac_ct_RANLIB="ranlib"
6284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6286 fi
6287done
6288done
6289IFS=$as_save_IFS
6290
6291fi
6292fi
6293ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6294if test -n "$ac_ct_RANLIB"; then
6295 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6296$as_echo "$ac_ct_RANLIB" >&6; }
6297else
6298 { $as_echo "$as_me:$LINENO: result: no" >&5
6299$as_echo "no" >&6; }
6300fi
6301
6302 if test "x$ac_ct_RANLIB" = x; then
6303 RANLIB=":"
6304 else
6305 case $cross_compiling:$ac_tool_warned in
6306yes:)
6307{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6309ac_tool_warned=yes ;;
6310esac
6311 RANLIB=$ac_ct_RANLIB
6312 fi
6313else
6314 RANLIB="$ac_cv_prog_RANLIB"
6315fi
6316
6317test -z "$RANLIB" && RANLIB=:
6318
6319
6320
6321
6322
6323
6324# Determine commands to create old-style static archives.
6325old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6326old_postinstall_cmds='chmod 644 $oldlib'
6327old_postuninstall_cmds=
6328
6329if test -n "$RANLIB"; then
6330 case $host_os in
6331 openbsd*)
6332 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6333 ;;
6334 *)
6335 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6336 ;;
6337 esac
6338 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6339fi
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374# If no C compiler was specified, use CC.
6375LTCC=${LTCC-"$CC"}
6376
6377# If no C compiler flags were specified, use CFLAGS.
6378LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6379
6380# Allow CC to be a program name with arguments.
6381compiler=$CC
6382
6383
6384# Check for command to grab the raw symbol name followed by C symbol from nm.
6385{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6386$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6387if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6388 $as_echo_n "(cached) " >&6
6389else
6390
6391# These are sane defaults that work on at least a few old systems.
6392# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6393
6394# Character class describing NM global symbol codes.
6395symcode='[BCDEGRST]'
6396
6397# Regexp to match symbols that can be accessed directly from C.
6398sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6399
6400# Define system-specific variables.
6401case $host_os in
6402aix*)
6403 symcode='[BCDT]'
6404 ;;
6405cygwin* | mingw* | pw32* | cegcc*)
6406 symcode='[ABCDGISTW]'
6407 ;;
6408hpux*)
6409 if test "$host_cpu" = ia64; then
6410 symcode='[ABCDEGRST]'
6411 fi
6412 ;;
6413irix* | nonstopux*)
6414 symcode='[BCDEGRST]'
6415 ;;
6416osf*)
6417 symcode='[BCDEGQRST]'
6418 ;;
6419solaris*)
6420 symcode='[BDRT]'
6421 ;;
6422sco3.2v5*)
6423 symcode='[DT]'
6424 ;;
6425sysv4.2uw2*)
6426 symcode='[DT]'
6427 ;;
6428sysv5* | sco5v6* | unixware* | OpenUNIX*)
6429 symcode='[ABDT]'
6430 ;;
6431sysv4)
6432 symcode='[DFNSTU]'
6433 ;;
6434esac
6435
6436# If we're using GNU nm, then use its standard symbol codes.
6437case `$NM -V 2>&1` in
6438*GNU* | *'with BFD'*)
6439 symcode='[ABCDGIRSTW]' ;;
6440esac
6441
6442# Transform an extracted symbol line into a proper C declaration.
6443# Some systems (esp. on ia64) link data and code symbols differently,
6444# so use this general approach.
6445lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6446
6447# Transform an extracted symbol line into symbol name and symbol address
6448lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6449lt_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'"
6450
6451# Handle CRLF in mingw tool chain
6452opt_cr=
6453case $build_os in
6454mingw*)
6455 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6456 ;;
6457esac
6458
6459# Try without a prefix underscore, then with it.
6460for ac_symprfx in "" "_"; do
6461
6462 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6463 symxfrm="\\1 $ac_symprfx\\2 \\2"
6464
6465 # Write the raw and C identifiers.
6466 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6467 # Fake it for dumpbin and say T for any non-static function
6468 # and D for any global variable.
6469 # Also find C++ and __fastcall symbols from MSVC++,
6470 # which start with @ or ?.
6471 lt_cv_sys_global_symbol_pipe="$AWK '"\
6472" {last_section=section; section=\$ 3};"\
6473" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6474" \$ 0!~/External *\|/{next};"\
6475" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6476" {if(hide[section]) next};"\
6477" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6478" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6479" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6480" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6481" ' prfx=^$ac_symprfx"
6482 else
6483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6484 fi
6485
6486 # Check to see that the pipe works correctly.
6487 pipe_works=no
6488
6489 rm -f conftest*
6490 cat > conftest.$ac_ext <<_LT_EOF
6491#ifdef __cplusplus
6492extern "C" {
6493#endif
6494char nm_test_var;
6495void nm_test_func(void);
6496void nm_test_func(void){}
6497#ifdef __cplusplus
6498}
6499#endif
6500int main(){nm_test_var='a';nm_test_func();return(0);}
6501_LT_EOF
6502
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6505 ac_status=$?
6506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; then
6508 # Now try to grab the symbols.
6509 nlist=conftest.nm
6510 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6511 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } && test -s "$nlist"; then
6515 # Try sorting and uniquifying the output.
6516 if sort "$nlist" | uniq > "$nlist"T; then
6517 mv -f "$nlist"T "$nlist"
6518 else
6519 rm -f "$nlist"T
6520 fi
6521
6522 # Make sure that we snagged all the symbols we need.
6523 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6524 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6525 cat <<_LT_EOF > conftest.$ac_ext
6526#ifdef __cplusplus
6527extern "C" {
6528#endif
6529
6530_LT_EOF
6531 # Now generate the symbol file.
6532 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6533
6534 cat <<_LT_EOF >> conftest.$ac_ext
6535
6536/* The mapping between symbol names and symbols. */
6537const struct {
6538 const char *name;
6539 void *address;
6540}
6541lt__PROGRAM__LTX_preloaded_symbols[] =
6542{
6543 { "@PROGRAM@", (void *) 0 },
6544_LT_EOF
6545 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6546 cat <<\_LT_EOF >> conftest.$ac_ext
6547 {0, (void *) 0}
6548};
6549
6550/* This works around a problem in FreeBSD linker */
6551#ifdef FREEBSD_WORKAROUND
6552static const void *lt_preloaded_setup() {
6553 return lt__PROGRAM__LTX_preloaded_symbols;
6554}
6555#endif
6556
6557#ifdef __cplusplus
6558}
6559#endif
6560_LT_EOF
6561 # Now try linking the two files.
6562 mv conftest.$ac_objext conftstm.$ac_objext
6563 lt_save_LIBS="$LIBS"
6564 lt_save_CFLAGS="$CFLAGS"
6565 LIBS="conftstm.$ac_objext"
6566 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568 (eval $ac_link) 2>&5
6569 ac_status=$?
6570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6572 pipe_works=yes
6573 fi
6574 LIBS="$lt_save_LIBS"
6575 CFLAGS="$lt_save_CFLAGS"
6576 else
6577 echo "cannot find nm_test_func in $nlist" >&5
6578 fi
6579 else
6580 echo "cannot find nm_test_var in $nlist" >&5
6581 fi
6582 else
6583 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6584 fi
6585 else
6586 echo "$progname: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 fi
6589 rm -rf conftest* conftst*
6590
6591 # Do not use the global_symbol_pipe unless it works.
6592 if test "$pipe_works" = yes; then
6593 break
6594 else
6595 lt_cv_sys_global_symbol_pipe=
6596 fi
6597done
6598
6599fi
6600
6601if test -z "$lt_cv_sys_global_symbol_pipe"; then
6602 lt_cv_sys_global_symbol_to_cdecl=
6603fi
6604if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6605 { $as_echo "$as_me:$LINENO: result: failed" >&5
6606$as_echo "failed" >&6; }
6607else
6608 { $as_echo "$as_me:$LINENO: result: ok" >&5
6609$as_echo "ok" >&6; }
6610fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634# Check whether --enable-libtool-lock was given.
6635if test "${enable_libtool_lock+set}" = set; then
6636 enableval=$enable_libtool_lock;
6637fi
6638
6639test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6640
6641# Some flags need to be propagated to the compiler or linker for good
6642# libtool support.
6643case $host in
6644ia64-*-hpux*)
6645 # Find out which ABI we are using.
6646 echo 'int i;' > conftest.$ac_ext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>&5
6649 ac_status=$?
6650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; then
6652 case `/usr/bin/file conftest.$ac_objext` in
6653 *ELF-32*)
6654 HPUX_IA64_MODE="32"
6655 ;;
6656 *ELF-64*)
6657 HPUX_IA64_MODE="64"
6658 ;;
6659 esac
6660 fi
6661 rm -rf conftest*
6662 ;;
6663*-*-irix6*)
6664 # Find out which ABI we are using.
6665 echo '#line 6665 "configure"' > conftest.$ac_ext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; then
6671 if test "$lt_cv_prog_gnu_ld" = yes; then
6672 case `/usr/bin/file conftest.$ac_objext` in
6673 *32-bit*)
6674 LD="${LD-ld} -melf32bsmip"
6675 ;;
6676 *N32*)
6677 LD="${LD-ld} -melf32bmipn32"
6678 ;;
6679 *64-bit*)
6680 LD="${LD-ld} -melf64bmip"
6681 ;;
6682 esac
6683 else
6684 case `/usr/bin/file conftest.$ac_objext` in
6685 *32-bit*)
6686 LD="${LD-ld} -32"
6687 ;;
6688 *N32*)
6689 LD="${LD-ld} -n32"
6690 ;;
6691 *64-bit*)
6692 LD="${LD-ld} -64"
6693 ;;
6694 esac
6695 fi
6696 fi
6697 rm -rf conftest*
6698 ;;
6699
6700x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6701s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6702 # Find out which ABI we are using.
6703 echo 'int i;' > conftest.$ac_ext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; then
6709 case `/usr/bin/file conftest.o` in
6710 *32-bit*)
6711 case $host in
6712 x86_64-*kfreebsd*-gnu)
6713 LD="${LD-ld} -m elf_i386_fbsd"
6714 ;;
6715 x86_64-*linux*)
6716 LD="${LD-ld} -m elf_i386"
6717 ;;
6718 ppc64-*linux*|powerpc64-*linux*)
6719 LD="${LD-ld} -m elf32ppclinux"
6720 ;;
6721 s390x-*linux*)
6722 LD="${LD-ld} -m elf_s390"
6723 ;;
6724 sparc64-*linux*)
6725 LD="${LD-ld} -m elf32_sparc"
6726 ;;
6727 esac
6728 ;;
6729 *64-bit*)
6730 case $host in
6731 x86_64-*kfreebsd*-gnu)
6732 LD="${LD-ld} -m elf_x86_64_fbsd"
6733 ;;
6734 x86_64-*linux*)
6735 LD="${LD-ld} -m elf_x86_64"
6736 ;;
6737 ppc*-*linux*|powerpc*-*linux*)
6738 LD="${LD-ld} -m elf64ppc"
6739 ;;
6740 s390*-*linux*|s390*-*tpf*)
6741 LD="${LD-ld} -m elf64_s390"
6742 ;;
6743 sparc*-*linux*)
6744 LD="${LD-ld} -m elf64_sparc"
6745 ;;
6746 esac
6747 ;;
6748 esac
6749 fi
6750 rm -rf conftest*
6751 ;;
6752
6753*-*-sco3.2v5*)
6754 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6755 SAVE_CFLAGS="$CFLAGS"
6756 CFLAGS="$CFLAGS -belf"
6757 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6758$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6759if test "${lt_cv_cc_needs_belf+set}" = set; then
6760 $as_echo_n "(cached) " >&6
6761else
6762 ac_ext=c
6763ac_cpp='$CPP $CPPFLAGS'
6764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766ac_compiler_gnu=$ac_cv_c_compiler_gnu
6767
6768 cat >conftest.$ac_ext <<_ACEOF
6769/* confdefs.h. */
6770_ACEOF
6771cat confdefs.h >>conftest.$ac_ext
6772cat >>conftest.$ac_ext <<_ACEOF
6773/* end confdefs.h. */
6774
6775int
6776main ()
6777{
6778
6779 ;
6780 return 0;
6781}
6782_ACEOF
6783rm -f conftest.$ac_objext conftest$ac_exeext
6784if { (ac_try="$ac_link"
6785case "(($ac_try" in
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6788esac
6789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790$as_echo "$ac_try_echo") >&5
6791 (eval "$ac_link") 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } && {
6798 test -z "$ac_c_werror_flag" ||
6799 test ! -s conftest.err
6800 } && test -s conftest$ac_exeext && {
6801 test "$cross_compiling" = yes ||
6802 $as_test_x conftest$ac_exeext
6803 }; then
6804 lt_cv_cc_needs_belf=yes
6805else
6806 $as_echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 lt_cv_cc_needs_belf=no
6810fi
6811
6812rm -rf conftest.dSYM
6813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6814 conftest$ac_exeext conftest.$ac_ext
6815 ac_ext=c
6816ac_cpp='$CPP $CPPFLAGS'
6817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819ac_compiler_gnu=$ac_cv_c_compiler_gnu
6820
6821fi
6822{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6823$as_echo "$lt_cv_cc_needs_belf" >&6; }
6824 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6825 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6826 CFLAGS="$SAVE_CFLAGS"
6827 fi
6828 ;;
6829sparc*-*solaris*)
6830 # Find out which ABI we are using.
6831 echo 'int i;' > conftest.$ac_ext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833 (eval $ac_compile) 2>&5
6834 ac_status=$?
6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; then
6837 case `/usr/bin/file conftest.o` in
6838 *64-bit*)
6839 case $lt_cv_prog_gnu_ld in
6840 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6841 *)
6842 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6843 LD="${LD-ld} -64"
6844 fi
6845 ;;
6846 esac
6847 ;;
6848 esac
6849 fi
6850 rm -rf conftest*
6851 ;;
6852esac
6853
6854need_locks="$enable_libtool_lock"
6855
6856
6857 case $host_os in
6858 rhapsody* | darwin*)
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6861set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6863$as_echo_n "checking for $ac_word... " >&6; }
6864if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6865 $as_echo_n "(cached) " >&6
6866else
6867 if test -n "$DSYMUTIL"; then
6868 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882done
6883IFS=$as_save_IFS
6884
6885fi
6886fi
6887DSYMUTIL=$ac_cv_prog_DSYMUTIL
6888if test -n "$DSYMUTIL"; then
6889 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6890$as_echo "$DSYMUTIL" >&6; }
6891else
6892 { $as_echo "$as_me:$LINENO: result: no" >&5
6893$as_echo "no" >&6; }
6894fi
6895
6896
6897fi
6898if test -z "$ac_cv_prog_DSYMUTIL"; then
6899 ac_ct_DSYMUTIL=$DSYMUTIL
6900 # Extract the first word of "dsymutil", so it can be a program name with args.
6901set dummy dsymutil; ac_word=$2
6902{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6905 $as_echo_n "(cached) " >&6
6906else
6907 if test -n "$ac_ct_DSYMUTIL"; then
6908 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6928if test -n "$ac_ct_DSYMUTIL"; then
6929 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6930$as_echo "$ac_ct_DSYMUTIL" >&6; }
6931else
6932 { $as_echo "$as_me:$LINENO: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936 if test "x$ac_ct_DSYMUTIL" = x; then
6937 DSYMUTIL=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940yes:)
6941{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943ac_tool_warned=yes ;;
6944esac
6945 DSYMUTIL=$ac_ct_DSYMUTIL
6946 fi
6947else
6948 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6949fi
6950
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6953set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6954{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6955$as_echo_n "checking for $ac_word... " >&6; }
6956if test "${ac_cv_prog_NMEDIT+set}" = set; then
6957 $as_echo_n "(cached) " >&6
6958else
6959 if test -n "$NMEDIT"; then
6960 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979NMEDIT=$ac_cv_prog_NMEDIT
6980if test -n "$NMEDIT"; then
6981 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6982$as_echo "$NMEDIT" >&6; }
6983else
6984 { $as_echo "$as_me:$LINENO: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988
6989fi
6990if test -z "$ac_cv_prog_NMEDIT"; then
6991 ac_ct_NMEDIT=$NMEDIT
6992 # Extract the first word of "nmedit", so it can be a program name with args.
6993set dummy nmedit; ac_word=$2
6994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6997 $as_echo_n "(cached) " >&6
6998else
6999 if test -n "$ac_ct_NMEDIT"; then
7000 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7020if test -n "$ac_ct_NMEDIT"; then
7021 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7022$as_echo "$ac_ct_NMEDIT" >&6; }
7023else
7024 { $as_echo "$as_me:$LINENO: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028 if test "x$ac_ct_NMEDIT" = x; then
7029 NMEDIT=":"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032yes:)
7033{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035ac_tool_warned=yes ;;
7036esac
7037 NMEDIT=$ac_ct_NMEDIT
7038 fi
7039else
7040 NMEDIT="$ac_cv_prog_NMEDIT"
7041fi
7042
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7045set dummy ${ac_tool_prefix}lipo; ac_word=$2
7046{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7047$as_echo_n "checking for $ac_word... " >&6; }
7048if test "${ac_cv_prog_LIPO+set}" = set; then
7049 $as_echo_n "(cached) " >&6
7050else
7051 if test -n "$LIPO"; then
7052 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071LIPO=$ac_cv_prog_LIPO
7072if test -n "$LIPO"; then
7073 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7074$as_echo "$LIPO" >&6; }
7075else
7076 { $as_echo "$as_me:$LINENO: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079
7080
7081fi
7082if test -z "$ac_cv_prog_LIPO"; then
7083 ac_ct_LIPO=$LIPO
7084 # Extract the first word of "lipo", so it can be a program name with args.
7085set dummy lipo; ac_word=$2
7086{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7089 $as_echo_n "(cached) " >&6
7090else
7091 if test -n "$ac_ct_LIPO"; then
7092 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_ac_ct_LIPO="lipo"
7102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107IFS=$as_save_IFS
7108
7109fi
7110fi
7111ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7112if test -n "$ac_ct_LIPO"; then
7113 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7114$as_echo "$ac_ct_LIPO" >&6; }
7115else
7116 { $as_echo "$as_me:$LINENO: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120 if test "x$ac_ct_LIPO" = x; then
7121 LIPO=":"
7122 else
7123 case $cross_compiling:$ac_tool_warned in
7124yes:)
7125{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127ac_tool_warned=yes ;;
7128esac
7129 LIPO=$ac_ct_LIPO
7130 fi
7131else
7132 LIPO="$ac_cv_prog_LIPO"
7133fi
7134
7135 if test -n "$ac_tool_prefix"; then
7136 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7137set dummy ${ac_tool_prefix}otool; ac_word=$2
7138{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7139$as_echo_n "checking for $ac_word... " >&6; }
7140if test "${ac_cv_prog_OTOOL+set}" = set; then
7141 $as_echo_n "(cached) " >&6
7142else
7143 if test -n "$OTOOL"; then
7144 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157done
7158done
7159IFS=$as_save_IFS
7160
7161fi
7162fi
7163OTOOL=$ac_cv_prog_OTOOL
7164if test -n "$OTOOL"; then
7165 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7166$as_echo "$OTOOL" >&6; }
7167else
7168 { $as_echo "$as_me:$LINENO: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171
7172
7173fi
7174if test -z "$ac_cv_prog_OTOOL"; then
7175 ac_ct_OTOOL=$OTOOL
7176 # Extract the first word of "otool", so it can be a program name with args.
7177set dummy otool; ac_word=$2
7178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7179$as_echo_n "checking for $ac_word... " >&6; }
7180if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7181 $as_echo_n "(cached) " >&6
7182else
7183 if test -n "$ac_ct_OTOOL"; then
7184 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7185else
7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_prog_ac_ct_OTOOL="otool"
7194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197done
7198done
7199IFS=$as_save_IFS
7200
7201fi
7202fi
7203ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7204if test -n "$ac_ct_OTOOL"; then
7205 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7206$as_echo "$ac_ct_OTOOL" >&6; }
7207else
7208 { $as_echo "$as_me:$LINENO: result: no" >&5
7209$as_echo "no" >&6; }
7210fi
7211
7212 if test "x$ac_ct_OTOOL" = x; then
7213 OTOOL=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216yes:)
7217{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219ac_tool_warned=yes ;;
7220esac
7221 OTOOL=$ac_ct_OTOOL
7222 fi
7223else
7224 OTOOL="$ac_cv_prog_OTOOL"
7225fi
7226
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7229set dummy ${ac_tool_prefix}otool64; ac_word=$2
7230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7231$as_echo_n "checking for $ac_word... " >&6; }
7232if test "${ac_cv_prog_OTOOL64+set}" = set; then
7233 $as_echo_n "(cached) " >&6
7234else
7235 if test -n "$OTOOL64"; then
7236 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7237else
7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250done
7251IFS=$as_save_IFS
7252
7253fi
7254fi
7255OTOOL64=$ac_cv_prog_OTOOL64
7256if test -n "$OTOOL64"; then
7257 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7258$as_echo "$OTOOL64" >&6; }
7259else
7260 { $as_echo "$as_me:$LINENO: result: no" >&5
7261$as_echo "no" >&6; }
7262fi
7263
7264
7265fi
7266if test -z "$ac_cv_prog_OTOOL64"; then
7267 ac_ct_OTOOL64=$OTOOL64
7268 # Extract the first word of "otool64", so it can be a program name with args.
7269set dummy otool64; ac_word=$2
7270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7271$as_echo_n "checking for $ac_word... " >&6; }
7272if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7273 $as_echo_n "(cached) " >&6
7274else
7275 if test -n "$ac_ct_OTOOL64"; then
7276 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7277else
7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_OTOOL64="otool64"
7286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290done
7291IFS=$as_save_IFS
7292
7293fi
7294fi
7295ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7296if test -n "$ac_ct_OTOOL64"; then
7297 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7298$as_echo "$ac_ct_OTOOL64" >&6; }
7299else
7300 { $as_echo "$as_me:$LINENO: result: no" >&5
7301$as_echo "no" >&6; }
7302fi
7303
7304 if test "x$ac_ct_OTOOL64" = x; then
7305 OTOOL64=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308yes:)
7309{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311ac_tool_warned=yes ;;
7312esac
7313 OTOOL64=$ac_ct_OTOOL64
7314 fi
7315else
7316 OTOOL64="$ac_cv_prog_OTOOL64"
7317fi
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7346$as_echo_n "checking for -single_module linker flag... " >&6; }
7347if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7349else
7350 lt_cv_apple_cc_single_mod=no
7351 if test -z "${LT_MULTI_MODULE}"; then
7352 # By default we will add the -single_module flag. You can override
7353 # by either setting the environment variable LT_MULTI_MODULE
7354 # non-empty at configure time, or by adding -multi_module to the
7355 # link flags.
7356 rm -rf libconftest.dylib*
7357 echo "int foo(void){return 1;}" > conftest.c
7358 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7359-dynamiclib -Wl,-single_module conftest.c" >&5
7360 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7361 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7362 _lt_result=$?
7363 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7364 lt_cv_apple_cc_single_mod=yes
7365 else
7366 cat conftest.err >&5
7367 fi
7368 rm -rf libconftest.dylib*
7369 rm -f conftest.*
7370 fi
7371fi
7372{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7373$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7374 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7375$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7376if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7377 $as_echo_n "(cached) " >&6
7378else
7379 lt_cv_ld_exported_symbols_list=no
7380 save_LDFLAGS=$LDFLAGS
7381 echo "_main" > conftest.sym
7382 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7383 cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h. */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h. */
7389
7390int
7391main ()
7392{
7393
7394 ;
7395 return 0;
7396}
7397_ACEOF
7398rm -f conftest.$ac_objext conftest$ac_exeext
7399if { (ac_try="$ac_link"
7400case "(($ac_try" in
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7403esac
7404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7405$as_echo "$ac_try_echo") >&5
7406 (eval "$ac_link") 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest$ac_exeext && {
7416 test "$cross_compiling" = yes ||
7417 $as_test_x conftest$ac_exeext
7418 }; then
7419 lt_cv_ld_exported_symbols_list=yes
7420else
7421 $as_echo "$as_me: failed program was:" >&5
7422sed 's/^/| /' conftest.$ac_ext >&5
7423
7424 lt_cv_ld_exported_symbols_list=no
7425fi
7426
7427rm -rf conftest.dSYM
7428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7429 conftest$ac_exeext conftest.$ac_ext
7430 LDFLAGS="$save_LDFLAGS"
7431
7432fi
7433{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7434$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7435 case $host_os in
7436 rhapsody* | darwin1.[012])
7437 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7438 darwin1.*)
7439 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7440 darwin*) # darwin 5.x on
7441 # if running on 10.5 or later, the deployment target defaults
7442 # to the OS version, if on x86, and 10.4, the deployment
7443 # target defaults to 10.4. Don't you love it?
7444 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7445 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7446 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7447 10.[012]*)
7448 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7449 10.*)
7450 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7451 esac
7452 ;;
7453 esac
7454 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7455 _lt_dar_single_mod='$single_module'
7456 fi
7457 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7458 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7459 else
7460 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7461 fi
7462 if test "$DSYMUTIL" != ":"; then
7463 _lt_dsymutil='~$DSYMUTIL $lib || :'
7464 else
7465 _lt_dsymutil=
7466 fi
7467 ;;
7468 esac
7469
7470
7471{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7472$as_echo_n "checking for ANSI C header files... " >&6; }
7473if test "${ac_cv_header_stdc+set}" = set; then
7474 $as_echo_n "(cached) " >&6
7475else
7476 cat >conftest.$ac_ext <<_ACEOF
7477/* confdefs.h. */
7478_ACEOF
7479cat confdefs.h >>conftest.$ac_ext
7480cat >>conftest.$ac_ext <<_ACEOF
7481/* end confdefs.h. */
7482#include <stdlib.h>
7483#include <stdarg.h>
7484#include <string.h>
7485#include <float.h>
7486
7487int
7488main ()
7489{
7490
7491 ;
7492 return 0;
7493}
7494_ACEOF
7495rm -f conftest.$ac_objext
7496if { (ac_try="$ac_compile"
7497case "(($ac_try" in
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7500esac
7501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7502$as_echo "$ac_try_echo") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_cv_header_stdc=yes
7514else
7515 $as_echo "$as_me: failed program was:" >&5
7516sed 's/^/| /' conftest.$ac_ext >&5
7517
7518 ac_cv_header_stdc=no
7519fi
7520
7521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522
7523if test $ac_cv_header_stdc = yes; then
7524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7525 cat >conftest.$ac_ext <<_ACEOF
7526/* confdefs.h. */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h. */
7531#include <string.h>
7532
7533_ACEOF
7534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535 $EGREP "memchr" >/dev/null 2>&1; then
7536 :
7537else
7538 ac_cv_header_stdc=no
7539fi
7540rm -f conftest*
7541
7542fi
7543
7544if test $ac_cv_header_stdc = yes; then
7545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7546 cat >conftest.$ac_ext <<_ACEOF
7547/* confdefs.h. */
7548_ACEOF
7549cat confdefs.h >>conftest.$ac_ext
7550cat >>conftest.$ac_ext <<_ACEOF
7551/* end confdefs.h. */
7552#include <stdlib.h>
7553
7554_ACEOF
7555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7556 $EGREP "free" >/dev/null 2>&1; then
7557 :
7558else
7559 ac_cv_header_stdc=no
7560fi
7561rm -f conftest*
7562
7563fi
7564
7565if test $ac_cv_header_stdc = yes; then
7566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7567 if test "$cross_compiling" = yes; then
7568 :
7569else
7570 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576#include <ctype.h>
7577#include <stdlib.h>
7578#if ((' ' & 0x0FF) == 0x020)
7579# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7580# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7581#else
7582# define ISLOWER(c) \
7583 (('a' <= (c) && (c) <= 'i') \
7584 || ('j' <= (c) && (c) <= 'r') \
7585 || ('s' <= (c) && (c) <= 'z'))
7586# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7587#endif
7588
7589#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7590int
7591main ()
7592{
7593 int i;
7594 for (i = 0; i < 256; i++)
7595 if (XOR (islower (i), ISLOWER (i))
7596 || toupper (i) != TOUPPER (i))
7597 return 2;
7598 return 0;
7599}
7600_ACEOF
7601rm -f conftest$ac_exeext
7602if { (ac_try="$ac_link"
7603case "(($ac_try" in
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606esac
7607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7608$as_echo "$ac_try_echo") >&5
7609 (eval "$ac_link") 2>&5
7610 ac_status=$?
7611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7613 { (case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616esac
7617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7618$as_echo "$ac_try_echo") >&5
7619 (eval "$ac_try") 2>&5
7620 ac_status=$?
7621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 :
7624else
7625 $as_echo "$as_me: program exited with status $ac_status" >&5
7626$as_echo "$as_me: failed program was:" >&5
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629( exit $ac_status )
7630ac_cv_header_stdc=no
7631fi
7632rm -rf conftest.dSYM
7633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7634fi
7635
7636
7637fi
7638fi
7639{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7640$as_echo "$ac_cv_header_stdc" >&6; }
7641if test $ac_cv_header_stdc = yes; then
7642
7643cat >>confdefs.h <<\_ACEOF
7644#define STDC_HEADERS 1
7645_ACEOF
7646
7647fi
7648
7649# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7660 inttypes.h stdint.h unistd.h
7661do
7662as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7663{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7664$as_echo_n "checking for $ac_header... " >&6; }
7665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7666 $as_echo_n "(cached) " >&6
7667else
7668 cat >conftest.$ac_ext <<_ACEOF
7669/* confdefs.h. */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h. */
7674$ac_includes_default
7675
7676#include <$ac_header>
7677_ACEOF
7678rm -f conftest.$ac_objext
7679if { (ac_try="$ac_compile"
7680case "(($ac_try" in
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7683esac
7684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7685$as_echo "$ac_try_echo") >&5
7686 (eval "$ac_compile") 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest.$ac_objext; then
7696 eval "$as_ac_Header=yes"
7697else
7698 $as_echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 eval "$as_ac_Header=no"
7702fi
7703
7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705fi
7706ac_res=`eval 'as_val=${'$as_ac_Header'}
7707 $as_echo "$as_val"'`
7708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7709$as_echo "$ac_res" >&6; }
7710as_val=`eval 'as_val=${'$as_ac_Header'}
7711 $as_echo "$as_val"'`
7712 if test "x$as_val" = x""yes; then
7713 cat >>confdefs.h <<_ACEOF
7714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7715_ACEOF
7716
7717fi
7718
7719done
7720
7721
7722
7723for ac_header in dlfcn.h
7724do
7725as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7726{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7727$as_echo_n "checking for $ac_header... " >&6; }
7728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7729 $as_echo_n "(cached) " >&6
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
7737$ac_includes_default
7738
7739#include <$ac_header>
7740_ACEOF
7741rm -f conftest.$ac_objext
7742if { (ac_try="$ac_compile"
7743case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7746esac
7747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7748$as_echo "$ac_try_echo") >&5
7749 (eval "$ac_compile") 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest.$ac_objext; then
7759 eval "$as_ac_Header=yes"
7760else
7761 $as_echo "$as_me: failed program was:" >&5
7762sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 eval "$as_ac_Header=no"
7765fi
7766
7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768fi
7769ac_res=`eval 'as_val=${'$as_ac_Header'}
7770 $as_echo "$as_val"'`
7771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7772$as_echo "$ac_res" >&6; }
7773as_val=`eval 'as_val=${'$as_ac_Header'}
7774 $as_echo "$as_val"'`
7775 if test "x$as_val" = x""yes; then
7776 cat >>confdefs.h <<_ACEOF
7777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7778_ACEOF
7779
7780fi
7781
7782done
7783
7784
7785
7786# Set options
7787
7788
7789
7790 enable_dlopen=no
7791
7792
7793 enable_win32_dll=no
7794
7795
7796 # Check whether --enable-shared was given.
7797if test "${enable_shared+set}" = set; then
7798 enableval=$enable_shared; p=${PACKAGE-default}
7799 case $enableval in
7800 yes) enable_shared=yes ;;
7801 no) enable_shared=no ;;
7802 *)
7803 enable_shared=no
7804 # Look at the argument we got. We use all the common list separators.
7805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7806 for pkg in $enableval; do
7807 IFS="$lt_save_ifs"
7808 if test "X$pkg" = "X$p"; then
7809 enable_shared=yes
7810 fi
7811 done
7812 IFS="$lt_save_ifs"
7813 ;;
7814 esac
7815else
7816 enable_shared=yes
7817fi
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 # Check whether --enable-static was given.
7828if test "${enable_static+set}" = set; then
7829 enableval=$enable_static; p=${PACKAGE-default}
7830 case $enableval in
7831 yes) enable_static=yes ;;
7832 no) enable_static=no ;;
7833 *)
7834 enable_static=no
7835 # Look at the argument we got. We use all the common list separators.
7836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7837 for pkg in $enableval; do
7838 IFS="$lt_save_ifs"
7839 if test "X$pkg" = "X$p"; then
7840 enable_static=yes
7841 fi
7842 done
7843 IFS="$lt_save_ifs"
7844 ;;
7845 esac
7846else
7847 enable_static=yes
7848fi
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859# Check whether --with-pic was given.
7860if test "${with_pic+set}" = set; then
7861 withval=$with_pic; pic_mode="$withval"
7862else
7863 pic_mode=default
7864fi
7865
7866
7867test -z "$pic_mode" && pic_mode=default
7868
7869
7870
7871
7872
7873
7874
7875 # Check whether --enable-fast-install was given.
7876if test "${enable_fast_install+set}" = set; then
7877 enableval=$enable_fast_install; p=${PACKAGE-default}
7878 case $enableval in
7879 yes) enable_fast_install=yes ;;
7880 no) enable_fast_install=no ;;
7881 *)
7882 enable_fast_install=no
7883 # Look at the argument we got. We use all the common list separators.
7884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7885 for pkg in $enableval; do
7886 IFS="$lt_save_ifs"
7887 if test "X$pkg" = "X$p"; then
7888 enable_fast_install=yes
7889 fi
7890 done
7891 IFS="$lt_save_ifs"
7892 ;;
7893 esac
7894else
7895 enable_fast_install=yes
7896fi
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908# This can be used to rebuild libtool when needed
7909LIBTOOL_DEPS="$ltmain"
7910
7911# Always use our own libtool.
7912LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938test -z "$LN_S" && LN_S="ln -s"
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953if test -n "${ZSH_VERSION+set}" ; then
7954 setopt NO_GLOB_SUBST
7955fi
7956
7957{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7958$as_echo_n "checking for objdir... " >&6; }
7959if test "${lt_cv_objdir+set}" = set; then
7960 $as_echo_n "(cached) " >&6
7961else
7962 rm -f .libs 2>/dev/null
7963mkdir .libs 2>/dev/null
7964if test -d .libs; then
7965 lt_cv_objdir=.libs
7966else
7967 # MS-DOS does not allow filenames that begin with a dot.
7968 lt_cv_objdir=_libs
7969fi
7970rmdir .libs 2>/dev/null
7971fi
7972{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7973$as_echo "$lt_cv_objdir" >&6; }
7974objdir=$lt_cv_objdir
7975
7976
7977
7978
7979
7980cat >>confdefs.h <<_ACEOF
7981#define LT_OBJDIR "$lt_cv_objdir/"
7982_ACEOF
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000case $host_os in
8001aix3*)
8002 # AIX sometimes has problems with the GCC collect2 program. For some
8003 # reason, if we set the COLLECT_NAMES environment variable, the problems
8004 # vanish in a puff of smoke.
8005 if test "X${COLLECT_NAMES+set}" != Xset; then
8006 COLLECT_NAMES=
8007 export COLLECT_NAMES
8008 fi
8009 ;;
8010esac
8011
8012# Sed substitution that helps us do robust quoting. It backslashifies
8013# metacharacters that are still active within double-quoted strings.
8014sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8015
8016# Same as above, but do not quote variable references.
8017double_quote_subst='s/\(["`\\]\)/\\\1/g'
8018
8019# Sed substitution to delay expansion of an escaped shell variable in a
8020# double_quote_subst'ed string.
8021delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8022
8023# Sed substitution to delay expansion of an escaped single quote.
8024delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8025
8026# Sed substitution to avoid accidental globbing in evaled expressions
8027no_glob_subst='s/\*/\\\*/g'
8028
8029# Global variables:
8030ofile=libtool
8031can_build_shared=yes
8032
8033# All known linkers require a `.a' archive for static linking (except MSVC,
8034# which needs '.lib').
8035libext=a
8036
8037with_gnu_ld="$lt_cv_prog_gnu_ld"
8038
8039old_CC="$CC"
8040old_CFLAGS="$CFLAGS"
8041
8042# Set sane defaults for various variables
8043test -z "$CC" && CC=cc
8044test -z "$LTCC" && LTCC=$CC
8045test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8046test -z "$LD" && LD=ld
8047test -z "$ac_objext" && ac_objext=o
8048
8049for cc_temp in $compiler""; do
8050 case $cc_temp in
8051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8053 \-*) ;;
8054 *) break;;
8055 esac
8056done
8057cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8058
8059
8060# Only perform the check for file, if the check method requires it
8061test -z "$MAGIC_CMD" && MAGIC_CMD=file
8062case $deplibs_check_method in
8063file_magic*)
8064 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8065 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8066$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8067if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8068 $as_echo_n "(cached) " >&6
8069else
8070 case $MAGIC_CMD in
8071[\\/*] | ?:[\\/]*)
8072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8073 ;;
8074*)
8075 lt_save_MAGIC_CMD="$MAGIC_CMD"
8076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8078 for ac_dir in $ac_dummy; do
8079 IFS="$lt_save_ifs"
8080 test -z "$ac_dir" && ac_dir=.
8081 if test -f $ac_dir/${ac_tool_prefix}file; then
8082 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8083 if test -n "$file_magic_test_file"; then
8084 case $deplibs_check_method in
8085 "file_magic "*)
8086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8089 $EGREP "$file_magic_regex" > /dev/null; then
8090 :
8091 else
8092 cat <<_LT_EOF 1>&2
8093
8094*** Warning: the command libtool uses to detect shared libraries,
8095*** $file_magic_cmd, produces output that libtool cannot recognize.
8096*** The result is that libtool may fail to recognize shared libraries
8097*** as such. This will affect the creation of libtool libraries that
8098*** depend on shared libraries, but programs linked with such libtool
8099*** libraries will work regardless of this problem. Nevertheless, you
8100*** may want to report the problem to your system manager and/or to
8101*** bug-libtool@gnu.org
8102
8103_LT_EOF
8104 fi ;;
8105 esac
8106 fi
8107 break
8108 fi
8109 done
8110 IFS="$lt_save_ifs"
8111 MAGIC_CMD="$lt_save_MAGIC_CMD"
8112 ;;
8113esac
8114fi
8115
8116MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8117if test -n "$MAGIC_CMD"; then
8118 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8119$as_echo "$MAGIC_CMD" >&6; }
8120else
8121 { $as_echo "$as_me:$LINENO: result: no" >&5
8122$as_echo "no" >&6; }
8123fi
8124
8125
8126
8127
8128
8129if test -z "$lt_cv_path_MAGIC_CMD"; then
8130 if test -n "$ac_tool_prefix"; then
8131 { $as_echo "$as_me:$LINENO: checking for file" >&5
8132$as_echo_n "checking for file... " >&6; }
8133if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8134 $as_echo_n "(cached) " >&6
8135else
8136 case $MAGIC_CMD in
8137[\\/*] | ?:[\\/]*)
8138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8139 ;;
8140*)
8141 lt_save_MAGIC_CMD="$MAGIC_CMD"
8142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8144 for ac_dir in $ac_dummy; do
8145 IFS="$lt_save_ifs"
8146 test -z "$ac_dir" && ac_dir=.
8147 if test -f $ac_dir/file; then
8148 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8149 if test -n "$file_magic_test_file"; then
8150 case $deplibs_check_method in
8151 "file_magic "*)
8152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8155 $EGREP "$file_magic_regex" > /dev/null; then
8156 :
8157 else
8158 cat <<_LT_EOF 1>&2
8159
8160*** Warning: the command libtool uses to detect shared libraries,
8161*** $file_magic_cmd, produces output that libtool cannot recognize.
8162*** The result is that libtool may fail to recognize shared libraries
8163*** as such. This will affect the creation of libtool libraries that
8164*** depend on shared libraries, but programs linked with such libtool
8165*** libraries will work regardless of this problem. Nevertheless, you
8166*** may want to report the problem to your system manager and/or to
8167*** bug-libtool@gnu.org
8168
8169_LT_EOF
8170 fi ;;
8171 esac
8172 fi
8173 break
8174 fi
8175 done
8176 IFS="$lt_save_ifs"
8177 MAGIC_CMD="$lt_save_MAGIC_CMD"
8178 ;;
8179esac
8180fi
8181
8182MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183if test -n "$MAGIC_CMD"; then
8184 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8185$as_echo "$MAGIC_CMD" >&6; }
8186else
8187 { $as_echo "$as_me:$LINENO: result: no" >&5
8188$as_echo "no" >&6; }
8189fi
8190
8191
8192 else
8193 MAGIC_CMD=:
8194 fi
8195fi
8196
8197 fi
8198 ;;
8199esac
8200
8201# Use C for the default configuration in the libtool script
8202
8203lt_save_CC="$CC"
8204ac_ext=c
8205ac_cpp='$CPP $CPPFLAGS'
8206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208ac_compiler_gnu=$ac_cv_c_compiler_gnu
8209
8210
8211# Source file extension for C test sources.
8212ac_ext=c
8213
8214# Object file extension for compiled C test sources.
8215objext=o
8216objext=$objext
8217
8218# Code to be used in simple compile tests
8219lt_simple_compile_test_code="int some_variable = 0;"
8220
8221# Code to be used in simple link tests
8222lt_simple_link_test_code='int main(){return(0);}'
8223
8224
8225
8226
8227
8228
8229
8230# If no C compiler was specified, use CC.
8231LTCC=${LTCC-"$CC"}
8232
8233# If no C compiler flags were specified, use CFLAGS.
8234LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8235
8236# Allow CC to be a program name with arguments.
8237compiler=$CC
8238
8239# Save the default compiler, since it gets overwritten when the other
8240# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8241compiler_DEFAULT=$CC
8242
8243# save warnings/boilerplate of simple test code
8244ac_outfile=conftest.$ac_objext
8245echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8246eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247_lt_compiler_boilerplate=`cat conftest.err`
8248$RM conftest*
8249
8250ac_outfile=conftest.$ac_objext
8251echo "$lt_simple_link_test_code" >conftest.$ac_ext
8252eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8253_lt_linker_boilerplate=`cat conftest.err`
8254$RM -r conftest*
8255
8256
8257if test -n "$compiler"; then
8258
8259lt_prog_compiler_no_builtin_flag=
8260
8261if test "$GCC" = yes; then
8262 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8263
8264 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8265$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8266if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8267 $as_echo_n "(cached) " >&6
8268else
8269 lt_cv_prog_compiler_rtti_exceptions=no
8270 ac_outfile=conftest.$ac_objext
8271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8272 lt_compiler_flag="-fno-rtti -fno-exceptions"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 # The option is referenced via a variable to avoid confusing sed.
8278 lt_compile=`echo "$ac_compile" | $SED \
8279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8281 -e 's:$: $lt_compiler_flag:'`
8282 (eval echo "\"\$as_me:8282: $lt_compile\"" >&5)
8283 (eval "$lt_compile" 2>conftest.err)
8284 ac_status=$?
8285 cat conftest.err >&5
8286 echo "$as_me:8286: \$? = $ac_status" >&5
8287 if (exit $ac_status) && test -s "$ac_outfile"; then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings other than the usual output.
8290 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_rtti_exceptions=yes
8294 fi
8295 fi
8296 $RM conftest*
8297
8298fi
8299{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8300$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8301
8302if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8304else
8305 :
8306fi
8307
8308fi
8309
8310
8311
8312
8313
8314
8315 lt_prog_compiler_wl=
8316lt_prog_compiler_pic=
8317lt_prog_compiler_static=
8318
8319{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8320$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8321
8322 if test "$GCC" = yes; then
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_static='-static'
8325
8326 case $host_os in
8327 aix*)
8328 # All AIX code is PIC.
8329 if test "$host_cpu" = ia64; then
8330 # AIX 5 now supports IA64 processor
8331 lt_prog_compiler_static='-Bstatic'
8332 fi
8333 ;;
8334
8335 amigaos*)
8336 case $host_cpu in
8337 powerpc)
8338 # see comment about AmigaOS4 .so support
8339 lt_prog_compiler_pic='-fPIC'
8340 ;;
8341 m68k)
8342 # FIXME: we need at least 68020 code to build shared libraries, but
8343 # adding the `-m68020' flag to GCC prevents building anything better,
8344 # like `-m68040'.
8345 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8346 ;;
8347 esac
8348 ;;
8349
8350 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8351 # PIC is the default for these OSes.
8352 ;;
8353
8354 mingw* | cygwin* | pw32* | os2* | cegcc*)
8355 # This hack is so that the source file can tell whether it is being
8356 # built for inclusion in a dll (and should export symbols for example).
8357 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8358 # (--disable-auto-import) libraries
8359 lt_prog_compiler_pic='-DDLL_EXPORT'
8360 ;;
8361
8362 darwin* | rhapsody*)
8363 # PIC is the default on this platform
8364 # Common symbols not allowed in MH_DYLIB files
8365 lt_prog_compiler_pic='-fno-common'
8366 ;;
8367
8368 hpux*)
8369 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8370 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8371 # sets the default TLS model and affects inlining.
8372 case $host_cpu in
8373 hppa*64*)
8374 # +Z the default
8375 ;;
8376 *)
8377 lt_prog_compiler_pic='-fPIC'
8378 ;;
8379 esac
8380 ;;
8381
8382 interix[3-9]*)
8383 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8384 # Instead, we relocate shared libraries at runtime.
8385 ;;
8386
8387 msdosdjgpp*)
8388 # Just because we use GCC doesn't mean we suddenly get shared libraries
8389 # on systems that don't support them.
8390 lt_prog_compiler_can_build_shared=no
8391 enable_shared=no
8392 ;;
8393
8394 *nto* | *qnx*)
8395 # QNX uses GNU C++, but need to define -shared option too, otherwise
8396 # it will coredump.
8397 lt_prog_compiler_pic='-fPIC -shared'
8398 ;;
8399
8400 sysv4*MP*)
8401 if test -d /usr/nec; then
8402 lt_prog_compiler_pic=-Kconform_pic
8403 fi
8404 ;;
8405
8406 *)
8407 lt_prog_compiler_pic='-fPIC'
8408 ;;
8409 esac
8410 else
8411 # PORTME Check for flag to pass linker flags through the system compiler.
8412 case $host_os in
8413 aix*)
8414 lt_prog_compiler_wl='-Wl,'
8415 if test "$host_cpu" = ia64; then
8416 # AIX 5 now supports IA64 processor
8417 lt_prog_compiler_static='-Bstatic'
8418 else
8419 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8420 fi
8421 ;;
8422
8423 mingw* | cygwin* | pw32* | os2* | cegcc*)
8424 # This hack is so that the source file can tell whether it is being
8425 # built for inclusion in a dll (and should export symbols for example).
8426 lt_prog_compiler_pic='-DDLL_EXPORT'
8427 ;;
8428
8429 hpux9* | hpux10* | hpux11*)
8430 lt_prog_compiler_wl='-Wl,'
8431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8432 # not for PA HP-UX.
8433 case $host_cpu in
8434 hppa*64*|ia64*)
8435 # +Z the default
8436 ;;
8437 *)
8438 lt_prog_compiler_pic='+Z'
8439 ;;
8440 esac
8441 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8442 lt_prog_compiler_static='${wl}-a ${wl}archive'
8443 ;;
8444
8445 irix5* | irix6* | nonstopux*)
8446 lt_prog_compiler_wl='-Wl,'
8447 # PIC (with -KPIC) is the default.
8448 lt_prog_compiler_static='-non_shared'
8449 ;;
8450
8451 linux* | k*bsd*-gnu)
8452 case $cc_basename in
8453 # old Intel for x86_64 which still supported -KPIC.
8454 ecc*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-static'
8458 ;;
8459 # icc used to be incompatible with GCC.
8460 # ICC 10 doesn't accept -KPIC any more.
8461 icc* | ifort*)
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_pic='-fPIC'
8464 lt_prog_compiler_static='-static'
8465 ;;
8466 # Lahey Fortran 8.1.
8467 lf95*)
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='--shared'
8470 lt_prog_compiler_static='--static'
8471 ;;
8472 pgcc* | pgf77* | pgf90* | pgf95*)
8473 # Portland Group compilers (*not* the Pentium gcc compiler,
8474 # which looks to be a dead project)
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_pic='-fpic'
8477 lt_prog_compiler_static='-Bstatic'
8478 ;;
8479 ccc*)
8480 lt_prog_compiler_wl='-Wl,'
8481 # All Alpha code is PIC.
8482 lt_prog_compiler_static='-non_shared'
8483 ;;
8484 xl*)
8485 # IBM XL C 8.0/Fortran 10.1 on PPC
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_pic='-qpic'
8488 lt_prog_compiler_static='-qstaticlink'
8489 ;;
8490 *)
8491 case `$CC -V 2>&1 | sed 5q` in
8492 *Sun\ C*)
8493 # Sun C 5.9
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-Bstatic'
8496 lt_prog_compiler_wl='-Wl,'
8497 ;;
8498 *Sun\ F*)
8499 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-Bstatic'
8502 lt_prog_compiler_wl=''
8503 ;;
8504 esac
8505 ;;
8506 esac
8507 ;;
8508
8509 newsos6)
8510 lt_prog_compiler_pic='-KPIC'
8511 lt_prog_compiler_static='-Bstatic'
8512 ;;
8513
8514 *nto* | *qnx*)
8515 # QNX uses GNU C++, but need to define -shared option too, otherwise
8516 # it will coredump.
8517 lt_prog_compiler_pic='-fPIC -shared'
8518 ;;
8519
8520 osf3* | osf4* | osf5*)
8521 lt_prog_compiler_wl='-Wl,'
8522 # All OSF/1 code is PIC.
8523 lt_prog_compiler_static='-non_shared'
8524 ;;
8525
8526 rdos*)
8527 lt_prog_compiler_static='-non_shared'
8528 ;;
8529
8530 solaris*)
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 case $cc_basename in
8534 f77* | f90* | f95*)
8535 lt_prog_compiler_wl='-Qoption ld ';;
8536 *)
8537 lt_prog_compiler_wl='-Wl,';;
8538 esac
8539 ;;
8540
8541 sunos4*)
8542 lt_prog_compiler_wl='-Qoption ld '
8543 lt_prog_compiler_pic='-PIC'
8544 lt_prog_compiler_static='-Bstatic'
8545 ;;
8546
8547 sysv4 | sysv4.2uw2* | sysv4.3*)
8548 lt_prog_compiler_wl='-Wl,'
8549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
8551 ;;
8552
8553 sysv4*MP*)
8554 if test -d /usr/nec ;then
8555 lt_prog_compiler_pic='-Kconform_pic'
8556 lt_prog_compiler_static='-Bstatic'
8557 fi
8558 ;;
8559
8560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8561 lt_prog_compiler_wl='-Wl,'
8562 lt_prog_compiler_pic='-KPIC'
8563 lt_prog_compiler_static='-Bstatic'
8564 ;;
8565
8566 unicos*)
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_can_build_shared=no
8569 ;;
8570
8571 uts4*)
8572 lt_prog_compiler_pic='-pic'
8573 lt_prog_compiler_static='-Bstatic'
8574 ;;
8575
8576 *)
8577 lt_prog_compiler_can_build_shared=no
8578 ;;
8579 esac
8580 fi
8581
8582case $host_os in
8583 # For platforms which do not support PIC, -DPIC is meaningless:
8584 *djgpp*)
8585 lt_prog_compiler_pic=
8586 ;;
8587 *)
8588 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8589 ;;
8590esac
8591{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8592$as_echo "$lt_prog_compiler_pic" >&6; }
8593
8594
8595
8596
8597
8598
8599#
8600# Check to make sure the PIC flag actually works.
8601#
8602if test -n "$lt_prog_compiler_pic"; then
8603 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8604$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8605if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8606 $as_echo_n "(cached) " >&6
8607else
8608 lt_cv_prog_compiler_pic_works=no
8609 ac_outfile=conftest.$ac_objext
8610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8612 # Insert the option either (1) after the last *FLAGS variable, or
8613 # (2) before a word containing "conftest.", or (3) at the end.
8614 # Note that $ac_compile itself does not contain backslashes and begins
8615 # with a dollar sign (not a hyphen), so the echo should work correctly.
8616 # The option is referenced via a variable to avoid confusing sed.
8617 lt_compile=`echo "$ac_compile" | $SED \
8618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620 -e 's:$: $lt_compiler_flag:'`
8621 (eval echo "\"\$as_me:8621: $lt_compile\"" >&5)
8622 (eval "$lt_compile" 2>conftest.err)
8623 ac_status=$?
8624 cat conftest.err >&5
8625 echo "$as_me:8625: \$? = $ac_status" >&5
8626 if (exit $ac_status) && test -s "$ac_outfile"; then
8627 # The compiler can only warn and ignore the option if not recognized
8628 # So say no if there are warnings other than the usual output.
8629 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8632 lt_cv_prog_compiler_pic_works=yes
8633 fi
8634 fi
8635 $RM conftest*
8636
8637fi
8638{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8639$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8640
8641if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8642 case $lt_prog_compiler_pic in
8643 "" | " "*) ;;
8644 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8645 esac
8646else
8647 lt_prog_compiler_pic=
8648 lt_prog_compiler_can_build_shared=no
8649fi
8650
8651fi
8652
8653
8654
8655
8656
8657
8658#
8659# Check to make sure the static flag actually works.
8660#
8661wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8662{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8663$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8664if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8665 $as_echo_n "(cached) " >&6
8666else
8667 lt_cv_prog_compiler_static_works=no
8668 save_LDFLAGS="$LDFLAGS"
8669 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8670 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8672 # The linker can only warn and ignore the option if not recognized
8673 # So say no if there are warnings
8674 if test -s conftest.err; then
8675 # Append any errors to the config.log.
8676 cat conftest.err 1>&5
8677 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8679 if diff conftest.exp conftest.er2 >/dev/null; then
8680 lt_cv_prog_compiler_static_works=yes
8681 fi
8682 else
8683 lt_cv_prog_compiler_static_works=yes
8684 fi
8685 fi
8686 $RM -r conftest*
8687 LDFLAGS="$save_LDFLAGS"
8688
8689fi
8690{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8691$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8692
8693if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8694 :
8695else
8696 lt_prog_compiler_static=
8697fi
8698
8699
8700
8701
8702
8703
8704
8705 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8706$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8707if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8708 $as_echo_n "(cached) " >&6
8709else
8710 lt_cv_prog_compiler_c_o=no
8711 $RM -r conftest 2>/dev/null
8712 mkdir conftest
8713 cd conftest
8714 mkdir out
8715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8716
8717 lt_compiler_flag="-o out/conftest2.$ac_objext"
8718 # Insert the option either (1) after the last *FLAGS variable, or
8719 # (2) before a word containing "conftest.", or (3) at the end.
8720 # Note that $ac_compile itself does not contain backslashes and begins
8721 # with a dollar sign (not a hyphen), so the echo should work correctly.
8722 lt_compile=`echo "$ac_compile" | $SED \
8723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8725 -e 's:$: $lt_compiler_flag:'`
8726 (eval echo "\"\$as_me:8726: $lt_compile\"" >&5)
8727 (eval "$lt_compile" 2>out/conftest.err)
8728 ac_status=$?
8729 cat out/conftest.err >&5
8730 echo "$as_me:8730: \$? = $ac_status" >&5
8731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8732 then
8733 # The compiler can only warn and ignore the option if not recognized
8734 # So say no if there are warnings
8735 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8738 lt_cv_prog_compiler_c_o=yes
8739 fi
8740 fi
8741 chmod u+w . 2>&5
8742 $RM conftest*
8743 # SGI C++ compiler will create directory out/ii_files/ for
8744 # template instantiation
8745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8746 $RM out/* && rmdir out
8747 cd ..
8748 $RM -r conftest
8749 $RM conftest*
8750
8751fi
8752{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8753$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8754
8755
8756
8757
8758
8759
8760 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8761$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8762if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8763 $as_echo_n "(cached) " >&6
8764else
8765 lt_cv_prog_compiler_c_o=no
8766 $RM -r conftest 2>/dev/null
8767 mkdir conftest
8768 cd conftest
8769 mkdir out
8770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8771
8772 lt_compiler_flag="-o out/conftest2.$ac_objext"
8773 # Insert the option either (1) after the last *FLAGS variable, or
8774 # (2) before a word containing "conftest.", or (3) at the end.
8775 # Note that $ac_compile itself does not contain backslashes and begins
8776 # with a dollar sign (not a hyphen), so the echo should work correctly.
8777 lt_compile=`echo "$ac_compile" | $SED \
8778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8780 -e 's:$: $lt_compiler_flag:'`
8781 (eval echo "\"\$as_me:8781: $lt_compile\"" >&5)
8782 (eval "$lt_compile" 2>out/conftest.err)
8783 ac_status=$?
8784 cat out/conftest.err >&5
8785 echo "$as_me:8785: \$? = $ac_status" >&5
8786 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8787 then
8788 # The compiler can only warn and ignore the option if not recognized
8789 # So say no if there are warnings
8790 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8793 lt_cv_prog_compiler_c_o=yes
8794 fi
8795 fi
8796 chmod u+w . 2>&5
8797 $RM conftest*
8798 # SGI C++ compiler will create directory out/ii_files/ for
8799 # template instantiation
8800 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8801 $RM out/* && rmdir out
8802 cd ..
8803 $RM -r conftest
8804 $RM conftest*
8805
8806fi
8807{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8808$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8809
8810
8811
8812
8813hard_links="nottested"
8814if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8815 # do not overwrite the value of need_locks provided by the user
8816 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8817$as_echo_n "checking if we can lock with hard links... " >&6; }
8818 hard_links=yes
8819 $RM conftest*
8820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8821 touch conftest.a
8822 ln conftest.a conftest.b 2>&5 || hard_links=no
8823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8824 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8825$as_echo "$hard_links" >&6; }
8826 if test "$hard_links" = no; then
8827 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8828$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8829 need_locks=warn
8830 fi
8831else
8832 need_locks=no
8833fi
8834
8835
8836
8837
8838
8839
8840 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8841$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8842
8843 runpath_var=
8844 allow_undefined_flag=
8845 always_export_symbols=no
8846 archive_cmds=
8847 archive_expsym_cmds=
8848 compiler_needs_object=no
8849 enable_shared_with_static_runtimes=no
8850 export_dynamic_flag_spec=
8851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8852 hardcode_automatic=no
8853 hardcode_direct=no
8854 hardcode_direct_absolute=no
8855 hardcode_libdir_flag_spec=
8856 hardcode_libdir_flag_spec_ld=
8857 hardcode_libdir_separator=
8858 hardcode_minus_L=no
8859 hardcode_shlibpath_var=unsupported
8860 inherit_rpath=no
8861 link_all_deplibs=unknown
8862 module_cmds=
8863 module_expsym_cmds=
8864 old_archive_from_new_cmds=
8865 old_archive_from_expsyms_cmds=
8866 thread_safe_flag_spec=
8867 whole_archive_flag_spec=
8868 # include_expsyms should be a list of space-separated symbols to be *always*
8869 # included in the symbol list
8870 include_expsyms=
8871 # exclude_expsyms can be an extended regexp of symbols to exclude
8872 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8874 # as well as any symbol that contains `d'.
8875 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8877 # platforms (ab)use it in PIC code, but their linkers get confused if
8878 # the symbol is explicitly referenced. Since portable code cannot
8879 # rely on this symbol name, it's probably fine to never include it in
8880 # preloaded symbol tables.
8881 # Exclude shared library initialization/finalization symbols.
8882 extract_expsyms_cmds=
8883
8884 case $host_os in
8885 cygwin* | mingw* | pw32* | cegcc*)
8886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8887 # When not using gcc, we currently assume that we are using
8888 # Microsoft Visual C++.
8889 if test "$GCC" != yes; then
8890 with_gnu_ld=no
8891 fi
8892 ;;
8893 interix*)
8894 # we just hope/assume this is gcc and not c89 (= MSVC++)
8895 with_gnu_ld=yes
8896 ;;
8897 openbsd*)
8898 with_gnu_ld=no
8899 ;;
8900 esac
8901
8902 ld_shlibs=yes
8903 if test "$with_gnu_ld" = yes; then
8904 # If archive_cmds runs LD, not CC, wlarc should be empty
8905 wlarc='${wl}'
8906
8907 # Set some defaults for GNU ld with shared library support. These
8908 # are reset later if shared libraries are not supported. Putting them
8909 # here allows them to be overridden if necessary.
8910 runpath_var=LD_RUN_PATH
8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8912 export_dynamic_flag_spec='${wl}--export-dynamic'
8913 # ancient GNU ld didn't support --whole-archive et. al.
8914 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8915 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8916 else
8917 whole_archive_flag_spec=
8918 fi
8919 supports_anon_versioning=no
8920 case `$LD -v 2>&1` in
8921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8924 *\ 2.11.*) ;; # other 2.11 versions
8925 *) supports_anon_versioning=yes ;;
8926 esac
8927
8928 # See if GNU ld supports shared libraries.
8929 case $host_os in
8930 aix[3-9]*)
8931 # On AIX/PPC, the GNU linker is very broken
8932 if test "$host_cpu" != ia64; then
8933 ld_shlibs=no
8934 cat <<_LT_EOF 1>&2
8935
8936*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8937*** to be unable to reliably create shared libraries on AIX.
8938*** Therefore, libtool is disabling shared libraries support. If you
8939*** really care for shared libraries, you may want to modify your PATH
8940*** so that a non-GNU linker is found, and then restart.
8941
8942_LT_EOF
8943 fi
8944 ;;
8945
8946 amigaos*)
8947 case $host_cpu in
8948 powerpc)
8949 # see comment about AmigaOS4 .so support
8950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951 archive_expsym_cmds=''
8952 ;;
8953 m68k)
8954 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)'
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_minus_L=yes
8957 ;;
8958 esac
8959 ;;
8960
8961 beos*)
8962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8963 allow_undefined_flag=unsupported
8964 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8965 # support --undefined. This deserves some investigation. FIXME
8966 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 else
8968 ld_shlibs=no
8969 fi
8970 ;;
8971
8972 cygwin* | mingw* | pw32* | cegcc*)
8973 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8974 # as there is no search path for DLLs.
8975 hardcode_libdir_flag_spec='-L$libdir'
8976 allow_undefined_flag=unsupported
8977 always_export_symbols=no
8978 enable_shared_with_static_runtimes=yes
8979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8980
8981 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8983 # If the export-symbols file already is a .def file (1st line
8984 # is EXPORTS), use it as is; otherwise, prepend...
8985 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8986 cp $export_symbols $output_objdir/$soname.def;
8987 else
8988 echo EXPORTS > $output_objdir/$soname.def;
8989 cat $export_symbols >> $output_objdir/$soname.def;
8990 fi~
8991 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8992 else
8993 ld_shlibs=no
8994 fi
8995 ;;
8996
8997 interix[3-9]*)
8998 hardcode_direct=no
8999 hardcode_shlibpath_var=no
9000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9001 export_dynamic_flag_spec='${wl}-E'
9002 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9003 # Instead, shared libraries are loaded at an image base (0x10000000 by
9004 # default) and relocated if they conflict, which is a slow very memory
9005 # consuming and fragmenting process. To avoid this, we pick a random,
9006 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9007 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9009 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'
9010 ;;
9011
9012 gnu* | linux* | tpf* | k*bsd*-gnu)
9013 tmp_diet=no
9014 if test "$host_os" = linux-dietlibc; then
9015 case $cc_basename in
9016 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9017 esac
9018 fi
9019 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9020 && test "$tmp_diet" = no
9021 then
9022 tmp_addflag=
9023 tmp_sharedflag='-shared'
9024 case $cc_basename,$host_cpu in
9025 pgcc*) # Portland Group C compiler
9026 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'
9027 tmp_addflag=' $pic_flag'
9028 ;;
9029 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9030 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'
9031 tmp_addflag=' $pic_flag -Mnomain' ;;
9032 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9033 tmp_addflag=' -i_dynamic' ;;
9034 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9035 tmp_addflag=' -i_dynamic -nofor_main' ;;
9036 ifc* | ifort*) # Intel Fortran compiler
9037 tmp_addflag=' -nofor_main' ;;
9038 lf95*) # Lahey Fortran 8.1
9039 whole_archive_flag_spec=
9040 tmp_sharedflag='--shared' ;;
9041 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9042 tmp_sharedflag='-qmkshrobj'
9043 tmp_addflag= ;;
9044 esac
9045 case `$CC -V 2>&1 | sed 5q` in
9046 *Sun\ C*) # Sun C 5.9
9047 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'
9048 compiler_needs_object=yes
9049 tmp_sharedflag='-G' ;;
9050 *Sun\ F*) # Sun Fortran 8.3
9051 tmp_sharedflag='-G' ;;
9052 esac
9053 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054
9055 if test "x$supports_anon_versioning" = xyes; then
9056 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9058 echo "local: *; };" >> $output_objdir/$libname.ver~
9059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9060 fi
9061
9062 case $cc_basename in
9063 xlf*)
9064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9065 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9066 hardcode_libdir_flag_spec=
9067 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9068 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9069 if test "x$supports_anon_versioning" = xyes; then
9070 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9072 echo "local: *; };" >> $output_objdir/$libname.ver~
9073 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9074 fi
9075 ;;
9076 esac
9077 else
9078 ld_shlibs=no
9079 fi
9080 ;;
9081
9082 netbsd*)
9083 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9085 wlarc=
9086 else
9087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089 fi
9090 ;;
9091
9092 solaris*)
9093 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9094 ld_shlibs=no
9095 cat <<_LT_EOF 1>&2
9096
9097*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9098*** create shared libraries on Solaris systems. Therefore, libtool
9099*** is disabling shared libraries support. We urge you to upgrade GNU
9100*** binutils to release 2.9.1 or newer. Another option is to modify
9101*** your PATH or compiler configuration so that the native linker is
9102*** used, and then restart.
9103
9104_LT_EOF
9105 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108 else
9109 ld_shlibs=no
9110 fi
9111 ;;
9112
9113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9114 case `$LD -v 2>&1` in
9115 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9116 ld_shlibs=no
9117 cat <<_LT_EOF 1>&2
9118
9119*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9120*** reliably create shared libraries on SCO systems. Therefore, libtool
9121*** is disabling shared libraries support. We urge you to upgrade GNU
9122*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9123*** your PATH or compiler configuration so that the native linker is
9124*** used, and then restart.
9125
9126_LT_EOF
9127 ;;
9128 *)
9129 # For security reasons, it is highly recommended that you always
9130 # use absolute paths for naming shared libraries, and exclude the
9131 # DT_RUNPATH tag from executables and libraries. But doing so
9132 # requires that you compile everything twice, which is a pain.
9133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9137 else
9138 ld_shlibs=no
9139 fi
9140 ;;
9141 esac
9142 ;;
9143
9144 sunos4*)
9145 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9146 wlarc=
9147 hardcode_direct=yes
9148 hardcode_shlibpath_var=no
9149 ;;
9150
9151 *)
9152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9155 else
9156 ld_shlibs=no
9157 fi
9158 ;;
9159 esac
9160
9161 if test "$ld_shlibs" = no; then
9162 runpath_var=
9163 hardcode_libdir_flag_spec=
9164 export_dynamic_flag_spec=
9165 whole_archive_flag_spec=
9166 fi
9167 else
9168 # PORTME fill in a description of your system's linker (not GNU ld)
9169 case $host_os in
9170 aix3*)
9171 allow_undefined_flag=unsupported
9172 always_export_symbols=yes
9173 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'
9174 # Note: this linker hardcodes the directories in LIBPATH if there
9175 # are no directories specified by -L.
9176 hardcode_minus_L=yes
9177 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9178 # Neither direct hardcoding nor static linking is supported with a
9179 # broken collect2.
9180 hardcode_direct=unsupported
9181 fi
9182 ;;
9183
9184 aix[4-9]*)
9185 if test "$host_cpu" = ia64; then
9186 # On IA64, the linker does run time linking by default, so we don't
9187 # have to do anything special.
9188 aix_use_runtimelinking=no
9189 exp_sym_flag='-Bexport'
9190 no_entry_flag=""
9191 else
9192 # If we're using GNU nm, then we don't want the "-C" option.
9193 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9194 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9195 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'
9196 else
9197 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'
9198 fi
9199 aix_use_runtimelinking=no
9200
9201 # Test if we are trying to use run time linking or normal
9202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9203 # need to do runtime linking.
9204 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9205 for ld_flag in $LDFLAGS; do
9206 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9207 aix_use_runtimelinking=yes
9208 break
9209 fi
9210 done
9211 ;;
9212 esac
9213
9214 exp_sym_flag='-bexport'
9215 no_entry_flag='-bnoentry'
9216 fi
9217
9218 # When large executables or shared objects are built, AIX ld can
9219 # have problems creating the table of contents. If linking a library
9220 # or program results in "error TOC overflow" add -mminimal-toc to
9221 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9222 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9223
9224 archive_cmds=''
9225 hardcode_direct=yes
9226 hardcode_direct_absolute=yes
9227 hardcode_libdir_separator=':'
9228 link_all_deplibs=yes
9229 file_list_spec='${wl}-f,'
9230
9231 if test "$GCC" = yes; then
9232 case $host_os in aix4.[012]|aix4.[012].*)
9233 # We only want to do this on AIX 4.2 and lower, the check
9234 # below for broken collect2 doesn't work under 4.3+
9235 collect2name=`${CC} -print-prog-name=collect2`
9236 if test -f "$collect2name" &&
9237 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9238 then
9239 # We have reworked collect2
9240 :
9241 else
9242 # We have old collect2
9243 hardcode_direct=unsupported
9244 # It fails to find uninstalled libraries when the uninstalled
9245 # path is not listed in the libpath. Setting hardcode_minus_L
9246 # to unsupported forces relinking
9247 hardcode_minus_L=yes
9248 hardcode_libdir_flag_spec='-L$libdir'
9249 hardcode_libdir_separator=
9250 fi
9251 ;;
9252 esac
9253 shared_flag='-shared'
9254 if test "$aix_use_runtimelinking" = yes; then
9255 shared_flag="$shared_flag "'${wl}-G'
9256 fi
9257 else
9258 # not using gcc
9259 if test "$host_cpu" = ia64; then
9260 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9261 # chokes on -Wl,-G. The following line is correct:
9262 shared_flag='-G'
9263 else
9264 if test "$aix_use_runtimelinking" = yes; then
9265 shared_flag='${wl}-G'
9266 else
9267 shared_flag='${wl}-bM:SRE'
9268 fi
9269 fi
9270 fi
9271
9272 export_dynamic_flag_spec='${wl}-bexpall'
9273 # It seems that -bexpall does not export symbols beginning with
9274 # underscore (_), so it is better to generate a list of symbols to export.
9275 always_export_symbols=yes
9276 if test "$aix_use_runtimelinking" = yes; then
9277 # Warning - without using the other runtime loading flags (-brtl),
9278 # -berok will link without error, but may produce a broken library.
9279 allow_undefined_flag='-berok'
9280 # Determine the default libpath from the value encoded in an
9281 # empty executable.
9282 cat >conftest.$ac_ext <<_ACEOF
9283/* confdefs.h. */
9284_ACEOF
9285cat confdefs.h >>conftest.$ac_ext
9286cat >>conftest.$ac_ext <<_ACEOF
9287/* end confdefs.h. */
9288
9289int
9290main ()
9291{
9292
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext conftest$ac_exeext
9298if { (ac_try="$ac_link"
9299case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9304$as_echo "$ac_try_echo") >&5
9305 (eval "$ac_link") 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest$ac_exeext && {
9315 test "$cross_compiling" = yes ||
9316 $as_test_x conftest$ac_exeext
9317 }; then
9318
9319lt_aix_libpath_sed='
9320 /Import File Strings/,/^$/ {
9321 /^0/ {
9322 s/^0 *\(.*\)$/\1/
9323 p
9324 }
9325 }'
9326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327# Check for a 64-bit object if we didn't find anything.
9328if test -z "$aix_libpath"; then
9329 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9330fi
9331else
9332 $as_echo "$as_me: failed program was:" >&5
9333sed 's/^/| /' conftest.$ac_ext >&5
9334
9335
9336fi
9337
9338rm -rf conftest.dSYM
9339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340 conftest$ac_exeext conftest.$ac_ext
9341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9342
9343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9344 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"
9345 else
9346 if test "$host_cpu" = ia64; then
9347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9348 allow_undefined_flag="-z nodefs"
9349 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"
9350 else
9351 # Determine the default libpath from the value encoded in an
9352 # empty executable.
9353 cat >conftest.$ac_ext <<_ACEOF
9354/* confdefs.h. */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h. */
9359
9360int
9361main ()
9362{
9363
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368rm -f conftest.$ac_objext conftest$ac_exeext
9369if { (ac_try="$ac_link"
9370case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373esac
9374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9375$as_echo "$ac_try_echo") >&5
9376 (eval "$ac_link") 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest$ac_exeext && {
9386 test "$cross_compiling" = yes ||
9387 $as_test_x conftest$ac_exeext
9388 }; then
9389
9390lt_aix_libpath_sed='
9391 /Import File Strings/,/^$/ {
9392 /^0/ {
9393 s/^0 *\(.*\)$/\1/
9394 p
9395 }
9396 }'
9397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9398# Check for a 64-bit object if we didn't find anything.
9399if test -z "$aix_libpath"; then
9400 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9401fi
9402else
9403 $as_echo "$as_me: failed program was:" >&5
9404sed 's/^/| /' conftest.$ac_ext >&5
9405
9406
9407fi
9408
9409rm -rf conftest.dSYM
9410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9411 conftest$ac_exeext conftest.$ac_ext
9412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9413
9414 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9415 # Warning - without using the other run time loading flags,
9416 # -berok will link without error, but may produce a broken library.
9417 no_undefined_flag=' ${wl}-bernotok'
9418 allow_undefined_flag=' ${wl}-berok'
9419 # Exported symbols can be pulled into shared objects from archives
9420 whole_archive_flag_spec='$convenience'
9421 archive_cmds_need_lc=yes
9422 # This is similar to how AIX traditionally builds its shared libraries.
9423 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'
9424 fi
9425 fi
9426 ;;
9427
9428 amigaos*)
9429 case $host_cpu in
9430 powerpc)
9431 # see comment about AmigaOS4 .so support
9432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds=''
9434 ;;
9435 m68k)
9436 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)'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_minus_L=yes
9439 ;;
9440 esac
9441 ;;
9442
9443 bsdi[45]*)
9444 export_dynamic_flag_spec=-rdynamic
9445 ;;
9446
9447 cygwin* | mingw* | pw32* | cegcc*)
9448 # When not using gcc, we currently assume that we are using
9449 # Microsoft Visual C++.
9450 # hardcode_libdir_flag_spec is actually meaningless, as there is
9451 # no search path for DLLs.
9452 hardcode_libdir_flag_spec=' '
9453 allow_undefined_flag=unsupported
9454 # Tell ltmain to make .lib files, not .a files.
9455 libext=lib
9456 # Tell ltmain to make .dll files, not .so files.
9457 shrext_cmds=".dll"
9458 # FIXME: Setting linknames here is a bad hack.
9459 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9460 # The linker will automatically build a .lib file if we build a DLL.
9461 old_archive_from_new_cmds='true'
9462 # FIXME: Should let the user specify the lib program.
9463 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9464 fix_srcfile_path='`cygpath -w "$srcfile"`'
9465 enable_shared_with_static_runtimes=yes
9466 ;;
9467
9468 darwin* | rhapsody*)
9469
9470
9471 archive_cmds_need_lc=no
9472 hardcode_direct=no
9473 hardcode_automatic=yes
9474 hardcode_shlibpath_var=unsupported
9475 whole_archive_flag_spec=''
9476 link_all_deplibs=yes
9477 allow_undefined_flag="$_lt_dar_allow_undefined"
9478 case $cc_basename in
9479 ifort*) _lt_dar_can_shared=yes ;;
9480 *) _lt_dar_can_shared=$GCC ;;
9481 esac
9482 if test "$_lt_dar_can_shared" = "yes"; then
9483 output_verbose_link_cmd=echo
9484 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9485 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9486 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}"
9487 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}"
9488
9489 else
9490 ld_shlibs=no
9491 fi
9492
9493 ;;
9494
9495 dgux*)
9496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_shlibpath_var=no
9499 ;;
9500
9501 freebsd1*)
9502 ld_shlibs=no
9503 ;;
9504
9505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9506 # support. Future versions do this automatically, but an explicit c++rt0.o
9507 # does not break anything, and helps significantly (at the cost of a little
9508 # extra space).
9509 freebsd2.2*)
9510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9511 hardcode_libdir_flag_spec='-R$libdir'
9512 hardcode_direct=yes
9513 hardcode_shlibpath_var=no
9514 ;;
9515
9516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9517 freebsd2*)
9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=yes
9520 hardcode_minus_L=yes
9521 hardcode_shlibpath_var=no
9522 ;;
9523
9524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9525 freebsd* | dragonfly*)
9526 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9527 hardcode_libdir_flag_spec='-R$libdir'
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
9530 ;;
9531
9532 hpux9*)
9533 if test "$GCC" = yes; then
9534 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'
9535 else
9536 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'
9537 fi
9538 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9539 hardcode_libdir_separator=:
9540 hardcode_direct=yes
9541
9542 # hardcode_minus_L: Not really in the search PATH,
9543 # but as the default location of the library.
9544 hardcode_minus_L=yes
9545 export_dynamic_flag_spec='${wl}-E'
9546 ;;
9547
9548 hpux10*)
9549 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9551 else
9552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9553 fi
9554 if test "$with_gnu_ld" = no; then
9555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9556 hardcode_libdir_flag_spec_ld='+b $libdir'
9557 hardcode_libdir_separator=:
9558 hardcode_direct=yes
9559 hardcode_direct_absolute=yes
9560 export_dynamic_flag_spec='${wl}-E'
9561 # hardcode_minus_L: Not really in the search PATH,
9562 # but as the default location of the library.
9563 hardcode_minus_L=yes
9564 fi
9565 ;;
9566
9567 hpux11*)
9568 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9569 case $host_cpu in
9570 hppa*64*)
9571 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9572 ;;
9573 ia64*)
9574 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9575 ;;
9576 *)
9577 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9578 ;;
9579 esac
9580 else
9581 case $host_cpu in
9582 hppa*64*)
9583 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9584 ;;
9585 ia64*)
9586 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9587 ;;
9588 *)
9589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9590 ;;
9591 esac
9592 fi
9593 if test "$with_gnu_ld" = no; then
9594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9595 hardcode_libdir_separator=:
9596
9597 case $host_cpu in
9598 hppa*64*|ia64*)
9599 hardcode_direct=no
9600 hardcode_shlibpath_var=no
9601 ;;
9602 *)
9603 hardcode_direct=yes
9604 hardcode_direct_absolute=yes
9605 export_dynamic_flag_spec='${wl}-E'
9606
9607 # hardcode_minus_L: Not really in the search PATH,
9608 # but as the default location of the library.
9609 hardcode_minus_L=yes
9610 ;;
9611 esac
9612 fi
9613 ;;
9614
9615 irix5* | irix6* | nonstopux*)
9616 if test "$GCC" = yes; then
9617 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'
9618 # Try to use the -exported_symbol ld option, if it does not
9619 # work, assume that -exports_file does not work either and
9620 # implicitly export all symbols.
9621 save_LDFLAGS="$LDFLAGS"
9622 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9623 cat >conftest.$ac_ext <<_ACEOF
9624int foo(void) {}
9625_ACEOF
9626rm -f conftest.$ac_objext conftest$ac_exeext
9627if { (ac_try="$ac_link"
9628case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631esac
9632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9633$as_echo "$ac_try_echo") >&5
9634 (eval "$ac_link") 2>conftest.er1
9635 ac_status=$?
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
9639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && {
9641 test -z "$ac_c_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest$ac_exeext && {
9644 test "$cross_compiling" = yes ||
9645 $as_test_x conftest$ac_exeext
9646 }; then
9647 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'
9648
9649else
9650 $as_echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653
9654fi
9655
9656rm -rf conftest.dSYM
9657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LDFLAGS="$save_LDFLAGS"
9660 else
9661 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'
9662 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'
9663 fi
9664 archive_cmds_need_lc='no'
9665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9666 hardcode_libdir_separator=:
9667 inherit_rpath=yes
9668 link_all_deplibs=yes
9669 ;;
9670
9671 netbsd*)
9672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9674 else
9675 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9676 fi
9677 hardcode_libdir_flag_spec='-R$libdir'
9678 hardcode_direct=yes
9679 hardcode_shlibpath_var=no
9680 ;;
9681
9682 newsos6)
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_direct=yes
9685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9686 hardcode_libdir_separator=:
9687 hardcode_shlibpath_var=no
9688 ;;
9689
9690 *nto* | *qnx*)
9691 ;;
9692
9693 openbsd*)
9694 if test -f /usr/libexec/ld.so; then
9695 hardcode_direct=yes
9696 hardcode_shlibpath_var=no
9697 hardcode_direct_absolute=yes
9698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9702 export_dynamic_flag_spec='${wl}-E'
9703 else
9704 case $host_os in
9705 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_libdir_flag_spec='-R$libdir'
9708 ;;
9709 *)
9710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9712 ;;
9713 esac
9714 fi
9715 else
9716 ld_shlibs=no
9717 fi
9718 ;;
9719
9720 os2*)
9721 hardcode_libdir_flag_spec='-L$libdir'
9722 hardcode_minus_L=yes
9723 allow_undefined_flag=unsupported
9724 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'
9725 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9726 ;;
9727
9728 osf3*)
9729 if test "$GCC" = yes; then
9730 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9731 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'
9732 else
9733 allow_undefined_flag=' -expect_unresolved \*'
9734 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'
9735 fi
9736 archive_cmds_need_lc='no'
9737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9738 hardcode_libdir_separator=:
9739 ;;
9740
9741 osf4* | osf5*) # as osf3* with the addition of -msym flag
9742 if test "$GCC" = yes; then
9743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9744 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'
9745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9746 else
9747 allow_undefined_flag=' -expect_unresolved \*'
9748 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'
9749 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~
9750 $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'
9751
9752 # Both c and cxx compiler support -rpath directly
9753 hardcode_libdir_flag_spec='-rpath $libdir'
9754 fi
9755 archive_cmds_need_lc='no'
9756 hardcode_libdir_separator=:
9757 ;;
9758
9759 solaris*)
9760 no_undefined_flag=' -z defs'
9761 if test "$GCC" = yes; then
9762 wlarc='${wl}'
9763 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9765 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9766 else
9767 case `$CC -V 2>&1` in
9768 *"Compilers 5.0"*)
9769 wlarc=''
9770 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9773 ;;
9774 *)
9775 wlarc='${wl}'
9776 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9778 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9779 ;;
9780 esac
9781 fi
9782 hardcode_libdir_flag_spec='-R$libdir'
9783 hardcode_shlibpath_var=no
9784 case $host_os in
9785 solaris2.[0-5] | solaris2.[0-5].*) ;;
9786 *)
9787 # The compiler driver will combine and reorder linker options,
9788 # but understands `-z linker_flag'. GCC discards it without `$wl',
9789 # but is careful enough not to reorder.
9790 # Supported since Solaris 2.6 (maybe 2.5.1?)
9791 if test "$GCC" = yes; then
9792 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9793 else
9794 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9795 fi
9796 ;;
9797 esac
9798 link_all_deplibs=yes
9799 ;;
9800
9801 sunos4*)
9802 if test "x$host_vendor" = xsequent; then
9803 # Use $CC to link under sequent, because it throws in some extra .o
9804 # files that make .init and .fini sections work.
9805 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9806 else
9807 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9808 fi
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_direct=yes
9811 hardcode_minus_L=yes
9812 hardcode_shlibpath_var=no
9813 ;;
9814
9815 sysv4)
9816 case $host_vendor in
9817 sni)
9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_direct=yes # is this really true???
9820 ;;
9821 siemens)
9822 ## LD is ld it makes a PLAMLIB
9823 ## CC just makes a GrossModule.
9824 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9825 reload_cmds='$CC -r -o $output$reload_objs'
9826 hardcode_direct=no
9827 ;;
9828 motorola)
9829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9830 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9831 ;;
9832 esac
9833 runpath_var='LD_RUN_PATH'
9834 hardcode_shlibpath_var=no
9835 ;;
9836
9837 sysv4.3*)
9838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_shlibpath_var=no
9840 export_dynamic_flag_spec='-Bexport'
9841 ;;
9842
9843 sysv4*MP*)
9844 if test -d /usr/nec; then
9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 hardcode_shlibpath_var=no
9847 runpath_var=LD_RUN_PATH
9848 hardcode_runpath_var=yes
9849 ld_shlibs=yes
9850 fi
9851 ;;
9852
9853 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9854 no_undefined_flag='${wl}-z,text'
9855 archive_cmds_need_lc=no
9856 hardcode_shlibpath_var=no
9857 runpath_var='LD_RUN_PATH'
9858
9859 if test "$GCC" = yes; then
9860 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 else
9863 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 fi
9866 ;;
9867
9868 sysv5* | sco3.2v5* | sco5v6*)
9869 # Note: We can NOT use -z defs as we might desire, because we do not
9870 # link with -lc, and that would cause any symbols used from libc to
9871 # always be unresolved, which means just about no library would
9872 # ever link correctly. If we're not using GNU ld we use -z text
9873 # though, which does catch some bad symbols but isn't as heavy-handed
9874 # as -z defs.
9875 no_undefined_flag='${wl}-z,text'
9876 allow_undefined_flag='${wl}-z,nodefs'
9877 archive_cmds_need_lc=no
9878 hardcode_shlibpath_var=no
9879 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9880 hardcode_libdir_separator=':'
9881 link_all_deplibs=yes
9882 export_dynamic_flag_spec='${wl}-Bexport'
9883 runpath_var='LD_RUN_PATH'
9884
9885 if test "$GCC" = yes; then
9886 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 else
9889 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 fi
9892 ;;
9893
9894 uts4*)
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_shlibpath_var=no
9898 ;;
9899
9900 *)
9901 ld_shlibs=no
9902 ;;
9903 esac
9904
9905 if test x$host_vendor = xsni; then
9906 case $host in
9907 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9908 export_dynamic_flag_spec='${wl}-Blargedynsym'
9909 ;;
9910 esac
9911 fi
9912 fi
9913
9914{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9915$as_echo "$ld_shlibs" >&6; }
9916test "$ld_shlibs" = no && can_build_shared=no
9917
9918with_gnu_ld=$with_gnu_ld
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934#
9935# Do we need to explicitly link libc?
9936#
9937case "x$archive_cmds_need_lc" in
9938x|xyes)
9939 # Assume -lc should be added
9940 archive_cmds_need_lc=yes
9941
9942 if test "$enable_shared" = yes && test "$GCC" = yes; then
9943 case $archive_cmds in
9944 *'~'*)
9945 # FIXME: we may have to deal with multi-command sequences.
9946 ;;
9947 '$CC '*)
9948 # Test whether the compiler implicitly links with -lc since on some
9949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9950 # to ld, don't add -lc before -lgcc.
9951 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9952$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9953 $RM conftest*
9954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9955
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957 (eval $ac_compile) 2>&5
9958 ac_status=$?
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } 2>conftest.err; then
9961 soname=conftest
9962 lib=conftest
9963 libobjs=conftest.$ac_objext
9964 deplibs=
9965 wl=$lt_prog_compiler_wl
9966 pic_flag=$lt_prog_compiler_pic
9967 compiler_flags=-v
9968 linker_flags=-v
9969 verstring=
9970 output_objdir=.
9971 libname=conftest
9972 lt_save_allow_undefined_flag=$allow_undefined_flag
9973 allow_undefined_flag=
9974 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9975 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9976 ac_status=$?
9977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }
9979 then
9980 archive_cmds_need_lc=no
9981 else
9982 archive_cmds_need_lc=yes
9983 fi
9984 allow_undefined_flag=$lt_save_allow_undefined_flag
9985 else
9986 cat conftest.err 1>&5
9987 fi
9988 $RM conftest*
9989 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9990$as_echo "$archive_cmds_need_lc" >&6; }
9991 ;;
9992 esac
9993 fi
9994 ;;
9995esac
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10154$as_echo_n "checking dynamic linker characteristics... " >&6; }
10155
10156if test "$GCC" = yes; then
10157 case $host_os in
10158 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10159 *) lt_awk_arg="/^libraries:/" ;;
10160 esac
10161 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10162 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10163 # if the path contains ";" then we assume it to be the separator
10164 # otherwise default to the standard path separator (i.e. ":") - it is
10165 # assumed that no part of a normal pathname contains ";" but that should
10166 # okay in the real world where ";" in dirpaths is itself problematic.
10167 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10168 else
10169 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10170 fi
10171 # Ok, now we have the path, separated by spaces, we can step through it
10172 # and add multilib dir if necessary.
10173 lt_tmp_lt_search_path_spec=
10174 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10175 for lt_sys_path in $lt_search_path_spec; do
10176 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10177 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10178 else
10179 test -d "$lt_sys_path" && \
10180 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10181 fi
10182 done
10183 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10184BEGIN {RS=" "; FS="/|\n";} {
10185 lt_foo="";
10186 lt_count=0;
10187 for (lt_i = NF; lt_i > 0; lt_i--) {
10188 if ($lt_i != "" && $lt_i != ".") {
10189 if ($lt_i == "..") {
10190 lt_count++;
10191 } else {
10192 if (lt_count == 0) {
10193 lt_foo="/" $lt_i lt_foo;
10194 } else {
10195 lt_count--;
10196 }
10197 }
10198 }
10199 }
10200 if (lt_foo != "") { lt_freq[lt_foo]++; }
10201 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10202}'`
10203 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10204else
10205 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10206fi
10207library_names_spec=
10208libname_spec='lib$name'
10209soname_spec=
10210shrext_cmds=".so"
10211postinstall_cmds=
10212postuninstall_cmds=
10213finish_cmds=
10214finish_eval=
10215shlibpath_var=
10216shlibpath_overrides_runpath=unknown
10217version_type=none
10218dynamic_linker="$host_os ld.so"
10219sys_lib_dlsearch_path_spec="/lib /usr/lib"
10220need_lib_prefix=unknown
10221hardcode_into_libs=no
10222
10223# when you set need_version to no, make sure it does not cause -set_version
10224# flags to be left without arguments
10225need_version=unknown
10226
10227case $host_os in
10228aix3*)
10229 version_type=linux
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10231 shlibpath_var=LIBPATH
10232
10233 # AIX 3 has no versioning support, so we append a major version to the name.
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 ;;
10236
10237aix[4-9]*)
10238 version_type=linux
10239 need_lib_prefix=no
10240 need_version=no
10241 hardcode_into_libs=yes
10242 if test "$host_cpu" = ia64; then
10243 # AIX 5 supports IA64
10244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 else
10247 # With GCC up to 2.95.x, collect2 would create an import file
10248 # for dependence libraries. The import file would start with
10249 # the line `#! .'. This would cause the generated library to
10250 # depend on `.', always an invalid library. This was fixed in
10251 # development snapshots of GCC prior to 3.0.
10252 case $host_os in
10253 aix4 | aix4.[01] | aix4.[01].*)
10254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10255 echo ' yes '
10256 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10257 :
10258 else
10259 can_build_shared=no
10260 fi
10261 ;;
10262 esac
10263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10264 # soname into executable. Probably we can add versioning support to
10265 # collect2, so additional links can be useful in future.
10266 if test "$aix_use_runtimelinking" = yes; then
10267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10268 # instead of lib<name>.a to let people know that these are not
10269 # typical AIX shared libraries.
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 else
10272 # We preserve .a as extension for shared libraries through AIX4.2
10273 # and later when we are not doing run time linking.
10274 library_names_spec='${libname}${release}.a $libname.a'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 fi
10277 shlibpath_var=LIBPATH
10278 fi
10279 ;;
10280
10281amigaos*)
10282 case $host_cpu in
10283 powerpc)
10284 # Since July 2007 AmigaOS4 officially supports .so libraries.
10285 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 ;;
10288 m68k)
10289 library_names_spec='$libname.ixlibrary $libname.a'
10290 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10291 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'
10292 ;;
10293 esac
10294 ;;
10295
10296beos*)
10297 library_names_spec='${libname}${shared_ext}'
10298 dynamic_linker="$host_os ld.so"
10299 shlibpath_var=LIBRARY_PATH
10300 ;;
10301
10302bsdi[45]*)
10303 version_type=linux
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10310 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10311 # the default ld.so.conf also contains /usr/contrib/lib and
10312 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10313 # libtool to hard-code these into programs
10314 ;;
10315
10316cygwin* | mingw* | pw32* | cegcc*)
10317 version_type=windows
10318 shrext_cmds=".dll"
10319 need_version=no
10320 need_lib_prefix=no
10321
10322 case $GCC,$host_os in
10323 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10324 library_names_spec='$libname.dll.a'
10325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10326 postinstall_cmds='base_file=`basename \${file}`~
10327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10328 dldir=$destdir/`dirname \$dlpath`~
10329 test -d \$dldir || mkdir -p \$dldir~
10330 $install_prog $dir/$dlname \$dldir/$dlname~
10331 chmod a+x \$dldir/$dlname~
10332 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10333 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10334 fi'
10335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10336 dlpath=$dir/\$dldll~
10337 $RM \$dlpath'
10338 shlibpath_overrides_runpath=yes
10339
10340 case $host_os in
10341 cygwin*)
10342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10345 ;;
10346 mingw* | cegcc*)
10347 # MinGW DLLs use traditional 'lib' prefix
10348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10349 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10350 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10351 # It is most probably a Windows format PATH printed by
10352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10353 # path with ; separators, and with drive letters. We can handle the
10354 # drive letters (cygwin fileutils understands them), so leave them,
10355 # especially as we might pass files found there to a mingw objdump,
10356 # which wouldn't understand a cygwinified path. Ahh.
10357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10358 else
10359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10360 fi
10361 ;;
10362 pw32*)
10363 # pw32 DLLs use 'pw' prefix rather than 'lib'
10364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10365 ;;
10366 esac
10367 ;;
10368
10369 *)
10370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10371 ;;
10372 esac
10373 dynamic_linker='Win32 ld.exe'
10374 # FIXME: first we should search . and the directory the executable is in
10375 shlibpath_var=PATH
10376 ;;
10377
10378darwin* | rhapsody*)
10379 dynamic_linker="$host_os dyld"
10380 version_type=darwin
10381 need_lib_prefix=no
10382 need_version=no
10383 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10384 soname_spec='${libname}${release}${major}$shared_ext'
10385 shlibpath_overrides_runpath=yes
10386 shlibpath_var=DYLD_LIBRARY_PATH
10387 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10388
10389 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10390 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10391 ;;
10392
10393dgux*)
10394 version_type=linux
10395 need_lib_prefix=no
10396 need_version=no
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 ;;
10401
10402freebsd1*)
10403 dynamic_linker=no
10404 ;;
10405
10406freebsd* | dragonfly*)
10407 # DragonFly does not have aout. When/if they implement a new
10408 # versioning mechanism, adjust this.
10409 if test -x /usr/bin/objformat; then
10410 objformat=`/usr/bin/objformat`
10411 else
10412 case $host_os in
10413 freebsd[123]*) objformat=aout ;;
10414 *) objformat=elf ;;
10415 esac
10416 fi
10417 version_type=freebsd-$objformat
10418 case $version_type in
10419 freebsd-elf*)
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10421 need_version=no
10422 need_lib_prefix=no
10423 ;;
10424 freebsd-*)
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10426 need_version=yes
10427 ;;
10428 esac
10429 shlibpath_var=LD_LIBRARY_PATH
10430 case $host_os in
10431 freebsd2*)
10432 shlibpath_overrides_runpath=yes
10433 ;;
10434 freebsd3.[01]* | freebsdelf3.[01]*)
10435 shlibpath_overrides_runpath=yes
10436 hardcode_into_libs=yes
10437 ;;
10438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10440 shlibpath_overrides_runpath=no
10441 hardcode_into_libs=yes
10442 ;;
10443 *) # from 4.6 on, and DragonFly
10444 shlibpath_overrides_runpath=yes
10445 hardcode_into_libs=yes
10446 ;;
10447 esac
10448 ;;
10449
10450gnu*)
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 hardcode_into_libs=yes
10458 ;;
10459
10460hpux9* | hpux10* | hpux11*)
10461 # Give a soname corresponding to the major version so that dld.sl refuses to
10462 # link against other versions.
10463 version_type=sunos
10464 need_lib_prefix=no
10465 need_version=no
10466 case $host_cpu in
10467 ia64*)
10468 shrext_cmds='.so'
10469 hardcode_into_libs=yes
10470 dynamic_linker="$host_os dld.so"
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 if test "X$HPUX_IA64_MODE" = X32; then
10476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10477 else
10478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10479 fi
10480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10481 ;;
10482 hppa*64*)
10483 shrext_cmds='.sl'
10484 hardcode_into_libs=yes
10485 dynamic_linker="$host_os dld.sl"
10486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10492 ;;
10493 *)
10494 shrext_cmds='.sl'
10495 dynamic_linker="$host_os dld.sl"
10496 shlibpath_var=SHLIB_PATH
10497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 ;;
10501 esac
10502 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10503 postinstall_cmds='chmod 555 $lib'
10504 ;;
10505
10506interix[3-9]*)
10507 version_type=linux
10508 need_lib_prefix=no
10509 need_version=no
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 ;;
10517
10518irix5* | irix6* | nonstopux*)
10519 case $host_os in
10520 nonstopux*) version_type=nonstopux ;;
10521 *)
10522 if test "$lt_cv_prog_gnu_ld" = yes; then
10523 version_type=linux
10524 else
10525 version_type=irix
10526 fi ;;
10527 esac
10528 need_lib_prefix=no
10529 need_version=no
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10532 case $host_os in
10533 irix5* | nonstopux*)
10534 libsuff= shlibsuff=
10535 ;;
10536 *)
10537 case $LD in # libtool.m4 will add one of these switches to LD
10538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10539 libsuff= shlibsuff= libmagic=32-bit;;
10540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10541 libsuff=32 shlibsuff=N32 libmagic=N32;;
10542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10543 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10544 *) libsuff= shlibsuff= libmagic=never-match;;
10545 esac
10546 ;;
10547 esac
10548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10549 shlibpath_overrides_runpath=no
10550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10552 hardcode_into_libs=yes
10553 ;;
10554
10555# No shared lib support for Linux oldld, aout, or coff.
10556linux*oldld* | linux*aout* | linux*coff*)
10557 dynamic_linker=no
10558 ;;
10559
10560# This must be Linux ELF.
10561linux* | k*bsd*-gnu)
10562 version_type=linux
10563 need_lib_prefix=no
10564 need_version=no
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath=no
10570 # Some binutils ld are patched to set DT_RUNPATH
10571 save_LDFLAGS=$LDFLAGS
10572 save_libdir=$libdir
10573 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10574 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10575 cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h. */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h. */
10581
10582int
10583main ()
10584{
10585
10586 ;
10587 return 0;
10588}
10589_ACEOF
10590rm -f conftest.$ac_objext conftest$ac_exeext
10591if { (ac_try="$ac_link"
10592case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10595esac
10596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597$as_echo "$ac_try_echo") >&5
10598 (eval "$ac_link") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest$ac_exeext && {
10608 test "$cross_compiling" = yes ||
10609 $as_test_x conftest$ac_exeext
10610 }; then
10611 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10612 shlibpath_overrides_runpath=yes
10613fi
10614
10615else
10616 $as_echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
10619
10620fi
10621
10622rm -rf conftest.dSYM
10623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LDFLAGS=$save_LDFLAGS
10626 libdir=$save_libdir
10627
10628 # This implies no fast_install, which is unacceptable.
10629 # Some rework will be needed to allow for fast_install
10630 # before this can be enabled.
10631 hardcode_into_libs=yes
10632
10633 # Add ABI-specific directories to the system library path.
10634 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10635
10636 # Append ld.so.conf contents to the search path
10637 if test -f /etc/ld.so.conf; then
10638 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' ' '`
10639 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10640 fi
10641
10642 # We used to test for /lib/ld.so.1 and disable shared libraries on
10643 # powerpc, because MkLinux only supported shared libraries with the
10644 # GNU dynamic linker. Since this was broken with cross compilers,
10645 # most powerpc-linux boxes support dynamic linking these days and
10646 # people can always --disable-shared, the test was removed, and we
10647 # assume the GNU/Linux dynamic linker is in use.
10648 dynamic_linker='GNU/Linux ld.so'
10649 ;;
10650
10651netbsd*)
10652 version_type=sunos
10653 need_lib_prefix=no
10654 need_version=no
10655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10658 dynamic_linker='NetBSD (a.out) ld.so'
10659 else
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 dynamic_linker='NetBSD ld.elf_so'
10663 fi
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 ;;
10668
10669newsos6)
10670 version_type=linux
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=yes
10674 ;;
10675
10676*nto* | *qnx*)
10677 version_type=qnx
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=no
10684 hardcode_into_libs=yes
10685 dynamic_linker='ldqnx.so'
10686 ;;
10687
10688openbsd*)
10689 version_type=sunos
10690 sys_lib_dlsearch_path_spec="/usr/lib"
10691 need_lib_prefix=no
10692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10693 case $host_os in
10694 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10695 *) need_version=no ;;
10696 esac
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10701 case $host_os in
10702 openbsd2.[89] | openbsd2.[89].*)
10703 shlibpath_overrides_runpath=no
10704 ;;
10705 *)
10706 shlibpath_overrides_runpath=yes
10707 ;;
10708 esac
10709 else
10710 shlibpath_overrides_runpath=yes
10711 fi
10712 ;;
10713
10714os2*)
10715 libname_spec='$name'
10716 shrext_cmds=".dll"
10717 need_lib_prefix=no
10718 library_names_spec='$libname${shared_ext} $libname.a'
10719 dynamic_linker='OS/2 ld.exe'
10720 shlibpath_var=LIBPATH
10721 ;;
10722
10723osf3* | osf4* | osf5*)
10724 version_type=osf
10725 need_lib_prefix=no
10726 need_version=no
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10732 ;;
10733
10734rdos*)
10735 dynamic_linker=no
10736 ;;
10737
10738solaris*)
10739 version_type=linux
10740 need_lib_prefix=no
10741 need_version=no
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=yes
10746 hardcode_into_libs=yes
10747 # ldd complains unless libraries are executable
10748 postinstall_cmds='chmod +x $lib'
10749 ;;
10750
10751sunos4*)
10752 version_type=sunos
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes
10757 if test "$with_gnu_ld" = yes; then
10758 need_lib_prefix=no
10759 fi
10760 need_version=yes
10761 ;;
10762
10763sysv4 | sysv4.3*)
10764 version_type=linux
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 case $host_vendor in
10769 sni)
10770 shlibpath_overrides_runpath=no
10771 need_lib_prefix=no
10772 runpath_var=LD_RUN_PATH
10773 ;;
10774 siemens)
10775 need_lib_prefix=no
10776 ;;
10777 motorola)
10778 need_lib_prefix=no
10779 need_version=no
10780 shlibpath_overrides_runpath=no
10781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10782 ;;
10783 esac
10784 ;;
10785
10786sysv4*MP*)
10787 if test -d /usr/nec ;then
10788 version_type=linux
10789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10790 soname_spec='$libname${shared_ext}.$major'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 fi
10793 ;;
10794
10795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10796 version_type=freebsd-elf
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=yes
10803 hardcode_into_libs=yes
10804 if test "$with_gnu_ld" = yes; then
10805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10806 else
10807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10808 case $host_os in
10809 sco3.2v5*)
10810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10811 ;;
10812 esac
10813 fi
10814 sys_lib_dlsearch_path_spec='/usr/lib'
10815 ;;
10816
10817tpf*)
10818 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10819 version_type=linux
10820 need_lib_prefix=no
10821 need_version=no
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=no
10825 hardcode_into_libs=yes
10826 ;;
10827
10828uts4*)
10829 version_type=linux
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 ;;
10834
10835*)
10836 dynamic_linker=no
10837 ;;
10838esac
10839{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10840$as_echo "$dynamic_linker" >&6; }
10841test "$dynamic_linker" = no && can_build_shared=no
10842
10843variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10844if test "$GCC" = yes; then
10845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10846fi
10847
10848if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10849 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10850fi
10851if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10852 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10853fi
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10942$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10943hardcode_action=
10944if test -n "$hardcode_libdir_flag_spec" ||
10945 test -n "$runpath_var" ||
10946 test "X$hardcode_automatic" = "Xyes" ; then
10947
10948 # We can hardcode non-existent directories.
10949 if test "$hardcode_direct" != no &&
10950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10951 # have to relink, otherwise we might link with an installed library
10952 # when we should be linking with a yet-to-be-installed one
10953 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10954 test "$hardcode_minus_L" != no; then
10955 # Linking always hardcodes the temporary library directory.
10956 hardcode_action=relink
10957 else
10958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10959 hardcode_action=immediate
10960 fi
10961else
10962 # We cannot hardcode anything, or else we can only hardcode existing
10963 # directories.
10964 hardcode_action=unsupported
10965fi
10966{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10967$as_echo "$hardcode_action" >&6; }
10968
10969if test "$hardcode_action" = relink ||
10970 test "$inherit_rpath" = yes; then
10971 # Fast installation is not supported
10972 enable_fast_install=no
10973elif test "$shlibpath_overrides_runpath" = yes ||
10974 test "$enable_shared" = no; then
10975 # Fast installation is not necessary
10976 enable_fast_install=needless
10977fi
10978
10979
10980
10981
10982
10983
10984 if test "x$enable_dlopen" != xyes; then
10985 enable_dlopen=unknown
10986 enable_dlopen_self=unknown
10987 enable_dlopen_self_static=unknown
10988else
10989 lt_cv_dlopen=no
10990 lt_cv_dlopen_libs=
10991
10992 case $host_os in
10993 beos*)
10994 lt_cv_dlopen="load_add_on"
10995 lt_cv_dlopen_libs=
10996 lt_cv_dlopen_self=yes
10997 ;;
10998
10999 mingw* | pw32* | cegcc*)
11000 lt_cv_dlopen="LoadLibrary"
11001 lt_cv_dlopen_libs=
11002 ;;
11003
11004 cygwin*)
11005 lt_cv_dlopen="dlopen"
11006 lt_cv_dlopen_libs=
11007 ;;
11008
11009 darwin*)
11010 # if libdl is installed we need to link against it
11011 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11012$as_echo_n "checking for dlopen in -ldl... " >&6; }
11013if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11014 $as_echo_n "(cached) " >&6
11015else
11016 ac_check_lib_save_LIBS=$LIBS
11017LIBS="-ldl $LIBS"
11018cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
11024
11025/* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11028#ifdef __cplusplus
11029extern "C"
11030#endif
11031char dlopen ();
11032int
11033main ()
11034{
11035return dlopen ();
11036 ;
11037 return 0;
11038}
11039_ACEOF
11040rm -f conftest.$ac_objext conftest$ac_exeext
11041if { (ac_try="$ac_link"
11042case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11045esac
11046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11047$as_echo "$ac_try_echo") >&5
11048 (eval "$ac_link") 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest$ac_exeext && {
11058 test "$cross_compiling" = yes ||
11059 $as_test_x conftest$ac_exeext
11060 }; then
11061 ac_cv_lib_dl_dlopen=yes
11062else
11063 $as_echo "$as_me: failed program was:" >&5
11064sed 's/^/| /' conftest.$ac_ext >&5
11065
11066 ac_cv_lib_dl_dlopen=no
11067fi
11068
11069rm -rf conftest.dSYM
11070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11071 conftest$ac_exeext conftest.$ac_ext
11072LIBS=$ac_check_lib_save_LIBS
11073fi
11074{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11075$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11076if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11078else
11079
11080 lt_cv_dlopen="dyld"
11081 lt_cv_dlopen_libs=
11082 lt_cv_dlopen_self=yes
11083
11084fi
11085
11086 ;;
11087
11088 *)
11089 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11090$as_echo_n "checking for shl_load... " >&6; }
11091if test "${ac_cv_func_shl_load+set}" = set; then
11092 $as_echo_n "(cached) " >&6
11093else
11094 cat >conftest.$ac_ext <<_ACEOF
11095/* confdefs.h. */
11096_ACEOF
11097cat confdefs.h >>conftest.$ac_ext
11098cat >>conftest.$ac_ext <<_ACEOF
11099/* end confdefs.h. */
11100/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102#define shl_load innocuous_shl_load
11103
11104/* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char shl_load (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11108
11109#ifdef __STDC__
11110# include <limits.h>
11111#else
11112# include <assert.h>
11113#endif
11114
11115#undef shl_load
11116
11117/* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120#ifdef __cplusplus
11121extern "C"
11122#endif
11123char shl_load ();
11124/* The GNU C library defines this for functions which it implements
11125 to always fail with ENOSYS. Some functions are actually named
11126 something starting with __ and the normal name is an alias. */
11127#if defined __stub_shl_load || defined __stub___shl_load
11128choke me
11129#endif
11130
11131int
11132main ()
11133{
11134return shl_load ();
11135 ;
11136 return 0;
11137}
11138_ACEOF
11139rm -f conftest.$ac_objext conftest$ac_exeext
11140if { (ac_try="$ac_link"
11141case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144esac
11145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146$as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11159 }; then
11160 ac_cv_func_shl_load=yes
11161else
11162 $as_echo "$as_me: failed program was:" >&5
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 ac_cv_func_shl_load=no
11166fi
11167
11168rm -rf conftest.dSYM
11169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11171fi
11172{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11173$as_echo "$ac_cv_func_shl_load" >&6; }
11174if test "x$ac_cv_func_shl_load" = x""yes; then
11175 lt_cv_dlopen="shl_load"
11176else
11177 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11178$as_echo_n "checking for shl_load in -ldld... " >&6; }
11179if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11180 $as_echo_n "(cached) " >&6
11181else
11182 ac_check_lib_save_LIBS=$LIBS
11183LIBS="-ldld $LIBS"
11184cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h. */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h. */
11190
11191/* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11194#ifdef __cplusplus
11195extern "C"
11196#endif
11197char shl_load ();
11198int
11199main ()
11200{
11201return shl_load ();
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206rm -f conftest.$ac_objext conftest$ac_exeext
11207if { (ac_try="$ac_link"
11208case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211esac
11212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11213$as_echo "$ac_try_echo") >&5
11214 (eval "$ac_link") 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } && {
11221 test -z "$ac_c_werror_flag" ||
11222 test ! -s conftest.err
11223 } && test -s conftest$ac_exeext && {
11224 test "$cross_compiling" = yes ||
11225 $as_test_x conftest$ac_exeext
11226 }; then
11227 ac_cv_lib_dld_shl_load=yes
11228else
11229 $as_echo "$as_me: failed program was:" >&5
11230sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 ac_cv_lib_dld_shl_load=no
11233fi
11234
11235rm -rf conftest.dSYM
11236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11237 conftest$ac_exeext conftest.$ac_ext
11238LIBS=$ac_check_lib_save_LIBS
11239fi
11240{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11241$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11242if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11244else
11245 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11246$as_echo_n "checking for dlopen... " >&6; }
11247if test "${ac_cv_func_dlopen+set}" = set; then
11248 $as_echo_n "(cached) " >&6
11249else
11250 cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h. */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h. */
11256/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11258#define dlopen innocuous_dlopen
11259
11260/* System header to define __stub macros and hopefully few prototypes,
11261 which can conflict with char dlopen (); below.
11262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11263 <limits.h> exists even on freestanding compilers. */
11264
11265#ifdef __STDC__
11266# include <limits.h>
11267#else
11268# include <assert.h>
11269#endif
11270
11271#undef dlopen
11272
11273/* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11276#ifdef __cplusplus
11277extern "C"
11278#endif
11279char dlopen ();
11280/* The GNU C library defines this for functions which it implements
11281 to always fail with ENOSYS. Some functions are actually named
11282 something starting with __ and the normal name is an alias. */
11283#if defined __stub_dlopen || defined __stub___dlopen
11284choke me
11285#endif
11286
11287int
11288main ()
11289{
11290return dlopen ();
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295rm -f conftest.$ac_objext conftest$ac_exeext
11296if { (ac_try="$ac_link"
11297case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300esac
11301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302$as_echo "$ac_try_echo") >&5
11303 (eval "$ac_link") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest$ac_exeext && {
11313 test "$cross_compiling" = yes ||
11314 $as_test_x conftest$ac_exeext
11315 }; then
11316 ac_cv_func_dlopen=yes
11317else
11318 $as_echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ac_cv_func_dlopen=no
11322fi
11323
11324rm -rf conftest.dSYM
11325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326 conftest$ac_exeext conftest.$ac_ext
11327fi
11328{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11329$as_echo "$ac_cv_func_dlopen" >&6; }
11330if test "x$ac_cv_func_dlopen" = x""yes; then
11331 lt_cv_dlopen="dlopen"
11332else
11333 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11334$as_echo_n "checking for dlopen in -ldl... " >&6; }
11335if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11336 $as_echo_n "(cached) " >&6
11337else
11338 ac_check_lib_save_LIBS=$LIBS
11339LIBS="-ldl $LIBS"
11340cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346
11347/* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350#ifdef __cplusplus
11351extern "C"
11352#endif
11353char dlopen ();
11354int
11355main ()
11356{
11357return dlopen ();
11358 ;
11359 return 0;
11360}
11361_ACEOF
11362rm -f conftest.$ac_objext conftest$ac_exeext
11363if { (ac_try="$ac_link"
11364case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367esac
11368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11369$as_echo "$ac_try_echo") >&5
11370 (eval "$ac_link") 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest$ac_exeext && {
11380 test "$cross_compiling" = yes ||
11381 $as_test_x conftest$ac_exeext
11382 }; then
11383 ac_cv_lib_dl_dlopen=yes
11384else
11385 $as_echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 ac_cv_lib_dl_dlopen=no
11389fi
11390
11391rm -rf conftest.dSYM
11392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11393 conftest$ac_exeext conftest.$ac_ext
11394LIBS=$ac_check_lib_save_LIBS
11395fi
11396{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11397$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11398if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11400else
11401 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11402$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11403if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11405else
11406 ac_check_lib_save_LIBS=$LIBS
11407LIBS="-lsvld $LIBS"
11408cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414
11415/* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */
11418#ifdef __cplusplus
11419extern "C"
11420#endif
11421char dlopen ();
11422int
11423main ()
11424{
11425return dlopen ();
11426 ;
11427 return 0;
11428}
11429_ACEOF
11430rm -f conftest.$ac_objext conftest$ac_exeext
11431if { (ac_try="$ac_link"
11432case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435esac
11436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11437$as_echo "$ac_try_echo") >&5
11438 (eval "$ac_link") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext && {
11448 test "$cross_compiling" = yes ||
11449 $as_test_x conftest$ac_exeext
11450 }; then
11451 ac_cv_lib_svld_dlopen=yes
11452else
11453 $as_echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 ac_cv_lib_svld_dlopen=no
11457fi
11458
11459rm -rf conftest.dSYM
11460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11461 conftest$ac_exeext conftest.$ac_ext
11462LIBS=$ac_check_lib_save_LIBS
11463fi
11464{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11465$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11466if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11468else
11469 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11470$as_echo_n "checking for dld_link in -ldld... " >&6; }
11471if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11472 $as_echo_n "(cached) " >&6
11473else
11474 ac_check_lib_save_LIBS=$LIBS
11475LIBS="-ldld $LIBS"
11476cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482
11483/* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486#ifdef __cplusplus
11487extern "C"
11488#endif
11489char dld_link ();
11490int
11491main ()
11492{
11493return dld_link ();
11494 ;
11495 return 0;
11496}
11497_ACEOF
11498rm -f conftest.$ac_objext conftest$ac_exeext
11499if { (ac_try="$ac_link"
11500case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503esac
11504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11505$as_echo "$ac_try_echo") >&5
11506 (eval "$ac_link") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest$ac_exeext && {
11516 test "$cross_compiling" = yes ||
11517 $as_test_x conftest$ac_exeext
11518 }; then
11519 ac_cv_lib_dld_dld_link=yes
11520else
11521 $as_echo "$as_me: failed program was:" >&5
11522sed 's/^/| /' conftest.$ac_ext >&5
11523
11524 ac_cv_lib_dld_dld_link=no
11525fi
11526
11527rm -rf conftest.dSYM
11528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11529 conftest$ac_exeext conftest.$ac_ext
11530LIBS=$ac_check_lib_save_LIBS
11531fi
11532{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11533$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11534if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11535 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11536fi
11537
11538
11539fi
11540
11541
11542fi
11543
11544
11545fi
11546
11547
11548fi
11549
11550
11551fi
11552
11553 ;;
11554 esac
11555
11556 if test "x$lt_cv_dlopen" != xno; then
11557 enable_dlopen=yes
11558 else
11559 enable_dlopen=no
11560 fi
11561
11562 case $lt_cv_dlopen in
11563 dlopen)
11564 save_CPPFLAGS="$CPPFLAGS"
11565 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11566
11567 save_LDFLAGS="$LDFLAGS"
11568 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11569
11570 save_LIBS="$LIBS"
11571 LIBS="$lt_cv_dlopen_libs $LIBS"
11572
11573 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11574$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11575if test "${lt_cv_dlopen_self+set}" = set; then
11576 $as_echo_n "(cached) " >&6
11577else
11578 if test "$cross_compiling" = yes; then :
11579 lt_cv_dlopen_self=cross
11580else
11581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11582 lt_status=$lt_dlunknown
11583 cat > conftest.$ac_ext <<_LT_EOF
11584#line 11584 "configure"
11585#include "confdefs.h"
11586
11587#if HAVE_DLFCN_H
11588#include <dlfcn.h>
11589#endif
11590
11591#include <stdio.h>
11592
11593#ifdef RTLD_GLOBAL
11594# define LT_DLGLOBAL RTLD_GLOBAL
11595#else
11596# ifdef DL_GLOBAL
11597# define LT_DLGLOBAL DL_GLOBAL
11598# else
11599# define LT_DLGLOBAL 0
11600# endif
11601#endif
11602
11603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11604 find out it does not work in some platform. */
11605#ifndef LT_DLLAZY_OR_NOW
11606# ifdef RTLD_LAZY
11607# define LT_DLLAZY_OR_NOW RTLD_LAZY
11608# else
11609# ifdef DL_LAZY
11610# define LT_DLLAZY_OR_NOW DL_LAZY
11611# else
11612# ifdef RTLD_NOW
11613# define LT_DLLAZY_OR_NOW RTLD_NOW
11614# else
11615# ifdef DL_NOW
11616# define LT_DLLAZY_OR_NOW DL_NOW
11617# else
11618# define LT_DLLAZY_OR_NOW 0
11619# endif
11620# endif
11621# endif
11622# endif
11623#endif
11624
11625void fnord() { int i=42;}
11626int main ()
11627{
11628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11629 int status = $lt_dlunknown;
11630
11631 if (self)
11632 {
11633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11634 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11635 /* dlclose (self); */
11636 }
11637 else
11638 puts (dlerror ());
11639
11640 return status;
11641}
11642_LT_EOF
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>&5
11645 ac_status=$?
11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11648 (./conftest; exit; ) >&5 2>/dev/null
11649 lt_status=$?
11650 case x$lt_status in
11651 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11652 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11653 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11654 esac
11655 else :
11656 # compilation failed
11657 lt_cv_dlopen_self=no
11658 fi
11659fi
11660rm -fr conftest*
11661
11662
11663fi
11664{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11665$as_echo "$lt_cv_dlopen_self" >&6; }
11666
11667 if test "x$lt_cv_dlopen_self" = xyes; then
11668 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11669 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11670$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11671if test "${lt_cv_dlopen_self_static+set}" = set; then
11672 $as_echo_n "(cached) " >&6
11673else
11674 if test "$cross_compiling" = yes; then :
11675 lt_cv_dlopen_self_static=cross
11676else
11677 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11678 lt_status=$lt_dlunknown
11679 cat > conftest.$ac_ext <<_LT_EOF
11680#line 11680 "configure"
11681#include "confdefs.h"
11682
11683#if HAVE_DLFCN_H
11684#include <dlfcn.h>
11685#endif
11686
11687#include <stdio.h>
11688
11689#ifdef RTLD_GLOBAL
11690# define LT_DLGLOBAL RTLD_GLOBAL
11691#else
11692# ifdef DL_GLOBAL
11693# define LT_DLGLOBAL DL_GLOBAL
11694# else
11695# define LT_DLGLOBAL 0
11696# endif
11697#endif
11698
11699/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11700 find out it does not work in some platform. */
11701#ifndef LT_DLLAZY_OR_NOW
11702# ifdef RTLD_LAZY
11703# define LT_DLLAZY_OR_NOW RTLD_LAZY
11704# else
11705# ifdef DL_LAZY
11706# define LT_DLLAZY_OR_NOW DL_LAZY
11707# else
11708# ifdef RTLD_NOW
11709# define LT_DLLAZY_OR_NOW RTLD_NOW
11710# else
11711# ifdef DL_NOW
11712# define LT_DLLAZY_OR_NOW DL_NOW
11713# else
11714# define LT_DLLAZY_OR_NOW 0
11715# endif
11716# endif
11717# endif
11718# endif
11719#endif
11720
11721void fnord() { int i=42;}
11722int main ()
11723{
11724 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11725 int status = $lt_dlunknown;
11726
11727 if (self)
11728 {
11729 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11730 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11731 /* dlclose (self); */
11732 }
11733 else
11734 puts (dlerror ());
11735
11736 return status;
11737}
11738_LT_EOF
11739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740 (eval $ac_link) 2>&5
11741 ac_status=$?
11742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11744 (./conftest; exit; ) >&5 2>/dev/null
11745 lt_status=$?
11746 case x$lt_status in
11747 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11748 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11749 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11750 esac
11751 else :
11752 # compilation failed
11753 lt_cv_dlopen_self_static=no
11754 fi
11755fi
11756rm -fr conftest*
11757
11758
11759fi
11760{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11761$as_echo "$lt_cv_dlopen_self_static" >&6; }
11762 fi
11763
11764 CPPFLAGS="$save_CPPFLAGS"
11765 LDFLAGS="$save_LDFLAGS"
11766 LIBS="$save_LIBS"
11767 ;;
11768 esac
11769
11770 case $lt_cv_dlopen_self in
11771 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11772 *) enable_dlopen_self=unknown ;;
11773 esac
11774
11775 case $lt_cv_dlopen_self_static in
11776 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11777 *) enable_dlopen_self_static=unknown ;;
11778 esac
11779fi
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797striplib=
11798old_striplib=
11799{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11800$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11801if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11804 { $as_echo "$as_me:$LINENO: result: yes" >&5
11805$as_echo "yes" >&6; }
11806else
11807# FIXME - insert some real tests, host_os isn't really good enough
11808 case $host_os in
11809 darwin*)
11810 if test -n "$STRIP" ; then
11811 striplib="$STRIP -x"
11812 old_striplib="$STRIP -S"
11813 { $as_echo "$as_me:$LINENO: result: yes" >&5
11814$as_echo "yes" >&6; }
11815 else
11816 { $as_echo "$as_me:$LINENO: result: no" >&5
11817$as_echo "no" >&6; }
11818 fi
11819 ;;
11820 *)
11821 { $as_echo "$as_me:$LINENO: result: no" >&5
11822$as_echo "no" >&6; }
11823 ;;
11824 esac
11825fi
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838 # Report which library types will actually be built
11839 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11840$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11841 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11842$as_echo "$can_build_shared" >&6; }
11843
11844 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11845$as_echo_n "checking whether to build shared libraries... " >&6; }
11846 test "$can_build_shared" = "no" && enable_shared=no
11847
11848 # On AIX, shared libraries and static libraries use the same namespace, and
11849 # are all built from PIC.
11850 case $host_os in
11851 aix3*)
11852 test "$enable_shared" = yes && enable_static=no
11853 if test -n "$RANLIB"; then
11854 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11855 postinstall_cmds='$RANLIB $lib'
11856 fi
11857 ;;
11858
11859 aix[4-9]*)
11860 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11861 test "$enable_shared" = yes && enable_static=no
11862 fi
11863 ;;
11864 esac
11865 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11866$as_echo "$enable_shared" >&6; }
11867
11868 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11869$as_echo_n "checking whether to build static libraries... " >&6; }
11870 # Make sure either enable_shared or enable_static is yes.
11871 test "$enable_shared" = yes || enable_static=yes
11872 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11873$as_echo "$enable_static" >&6; }
11874
11875
11876
11877
11878fi
11879ac_ext=c
11880ac_cpp='$CPP $CPPFLAGS'
11881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11883ac_compiler_gnu=$ac_cv_c_compiler_gnu
11884
11885CC="$lt_save_CC"
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899 ac_config_commands="$ac_config_commands libtool"
11900
11901
11902
11903
11904# Only expand once:
11905
11906
11907{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11908$as_echo_n "checking whether ln -s works... " >&6; }
11909LN_S=$as_ln_s
11910if test "$LN_S" = "ln -s"; then
11911 { $as_echo "$as_me:$LINENO: result: yes" >&5
11912$as_echo "yes" >&6; }
11913else
11914 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11915$as_echo "no, using $LN_S" >&6; }
11916fi
11917
11918
11919# Checks for libraries.
11920
11921# Checks for header files.
11922{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11923$as_echo_n "checking for ANSI C header files... " >&6; }
11924if test "${ac_cv_header_stdc+set}" = set; then
11925 $as_echo_n "(cached) " >&6
11926else
11927 cat >conftest.$ac_ext <<_ACEOF
11928/* confdefs.h. */
11929_ACEOF
11930cat confdefs.h >>conftest.$ac_ext
11931cat >>conftest.$ac_ext <<_ACEOF
11932/* end confdefs.h. */
11933#include <stdlib.h>
11934#include <stdarg.h>
11935#include <string.h>
11936#include <float.h>
11937
11938int
11939main ()
11940{
11941
11942 ;
11943 return 0;
11944}
11945_ACEOF
11946rm -f conftest.$ac_objext
11947if { (ac_try="$ac_compile"
11948case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11951esac
11952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953$as_echo "$ac_try_echo") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11964 ac_cv_header_stdc=yes
11965else
11966 $as_echo "$as_me: failed program was:" >&5
11967sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 ac_cv_header_stdc=no
11970fi
11971
11972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973
11974if test $ac_cv_header_stdc = yes; then
11975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11976 cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h. */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h. */
11982#include <string.h>
11983
11984_ACEOF
11985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11986 $EGREP "memchr" >/dev/null 2>&1; then
11987 :
11988else
11989 ac_cv_header_stdc=no
11990fi
11991rm -f conftest*
11992
11993fi
11994
11995if test $ac_cv_header_stdc = yes; then
11996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11997 cat >conftest.$ac_ext <<_ACEOF
11998/* confdefs.h. */
11999_ACEOF
12000cat confdefs.h >>conftest.$ac_ext
12001cat >>conftest.$ac_ext <<_ACEOF
12002/* end confdefs.h. */
12003#include <stdlib.h>
12004
12005_ACEOF
12006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12007 $EGREP "free" >/dev/null 2>&1; then
12008 :
12009else
12010 ac_cv_header_stdc=no
12011fi
12012rm -f conftest*
12013
12014fi
12015
12016if test $ac_cv_header_stdc = yes; then
12017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12018 if test "$cross_compiling" = yes; then
12019 :
12020else
12021 cat >conftest.$ac_ext <<_ACEOF
12022/* confdefs.h. */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h. */
12027#include <ctype.h>
12028#include <stdlib.h>
12029#if ((' ' & 0x0FF) == 0x020)
12030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12032#else
12033# define ISLOWER(c) \
12034 (('a' <= (c) && (c) <= 'i') \
12035 || ('j' <= (c) && (c) <= 'r') \
12036 || ('s' <= (c) && (c) <= 'z'))
12037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12038#endif
12039
12040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12041int
12042main ()
12043{
12044 int i;
12045 for (i = 0; i < 256; i++)
12046 if (XOR (islower (i), ISLOWER (i))
12047 || toupper (i) != TOUPPER (i))
12048 return 2;
12049 return 0;
12050}
12051_ACEOF
12052rm -f conftest$ac_exeext
12053if { (ac_try="$ac_link"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059$as_echo "$ac_try_echo") >&5
12060 (eval "$ac_link") 2>&5
12061 ac_status=$?
12062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12064 { (case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12069$as_echo "$ac_try_echo") >&5
12070 (eval "$ac_try") 2>&5
12071 ac_status=$?
12072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 :
12075else
12076 $as_echo "$as_me: program exited with status $ac_status" >&5
12077$as_echo "$as_me: failed program was:" >&5
12078sed 's/^/| /' conftest.$ac_ext >&5
12079
12080( exit $ac_status )
12081ac_cv_header_stdc=no
12082fi
12083rm -rf conftest.dSYM
12084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12085fi
12086
12087
12088fi
12089fi
12090{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12091$as_echo "$ac_cv_header_stdc" >&6; }
12092if test $ac_cv_header_stdc = yes; then
12093
12094cat >>confdefs.h <<\_ACEOF
12095#define STDC_HEADERS 1
12096_ACEOF
12097
12098fi
12099
12100
12101
12102
12103for ac_header in stddef.h stdlib.h string.h
12104do
12105as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108$as_echo_n "checking for $ac_header... " >&6; }
12109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111fi
12112ac_res=`eval 'as_val=${'$as_ac_Header'}
12113 $as_echo "$as_val"'`
12114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12115$as_echo "$ac_res" >&6; }
12116else
12117 # Is the header compilable?
12118{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12119$as_echo_n "checking $ac_header usability... " >&6; }
12120cat >conftest.$ac_ext <<_ACEOF
12121/* confdefs.h. */
12122_ACEOF
12123cat confdefs.h >>conftest.$ac_ext
12124cat >>conftest.$ac_ext <<_ACEOF
12125/* end confdefs.h. */
12126$ac_includes_default
12127#include <$ac_header>
12128_ACEOF
12129rm -f conftest.$ac_objext
12130if { (ac_try="$ac_compile"
12131case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
12135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12136$as_echo "$ac_try_echo") >&5
12137 (eval "$ac_compile") 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest.$ac_objext; then
12147 ac_header_compiler=yes
12148else
12149 $as_echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_header_compiler=no
12153fi
12154
12155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12157$as_echo "$ac_header_compiler" >&6; }
12158
12159# Is the header present?
12160{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12161$as_echo_n "checking $ac_header presence... " >&6; }
12162cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168#include <$ac_header>
12169_ACEOF
12170if { (ac_try="$ac_cpp conftest.$ac_ext"
12171case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12174esac
12175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12176$as_echo "$ac_try_echo") >&5
12177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } >/dev/null && {
12184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 }; then
12187 ac_header_preproc=yes
12188else
12189 $as_echo "$as_me: failed program was:" >&5
12190sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 ac_header_preproc=no
12193fi
12194
12195rm -f conftest.err conftest.$ac_ext
12196{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12197$as_echo "$ac_header_preproc" >&6; }
12198
12199# So? What about this header?
12200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12201 yes:no: )
12202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12203$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12205$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12206 ac_header_preproc=yes
12207 ;;
12208 no:yes:* )
12209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12210$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12212$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12214$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12216$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12218$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12220$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12221
12222 ;;
12223esac
12224{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12225$as_echo_n "checking for $ac_header... " >&6; }
12226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12227 $as_echo_n "(cached) " >&6
12228else
12229 eval "$as_ac_Header=\$ac_header_preproc"
12230fi
12231ac_res=`eval 'as_val=${'$as_ac_Header'}
12232 $as_echo "$as_val"'`
12233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12234$as_echo "$ac_res" >&6; }
12235
12236fi
12237as_val=`eval 'as_val=${'$as_ac_Header'}
12238 $as_echo "$as_val"'`
12239 if test "x$as_val" = x""yes; then
12240 cat >>confdefs.h <<_ACEOF
12241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12242_ACEOF
12243
12244fi
12245
12246done
12247
12248if test "${ac_cv_header_sys_types_h+set}" = set; then
12249 { $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
12250$as_echo_n "checking for sys/types.h... " >&6; }
12251if test "${ac_cv_header_sys_types_h+set}" = set; then
12252 $as_echo_n "(cached) " >&6
12253fi
12254{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
12255$as_echo "$ac_cv_header_sys_types_h" >&6; }
12256else
12257 # Is the header compilable?
12258{ $as_echo "$as_me:$LINENO: checking sys/types.h usability" >&5
12259$as_echo_n "checking sys/types.h usability... " >&6; }
12260cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266$ac_includes_default
12267#include <sys/types.h>
12268_ACEOF
12269rm -f conftest.$ac_objext
12270if { (ac_try="$ac_compile"
12271case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274esac
12275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12276$as_echo "$ac_try_echo") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12287 ac_header_compiler=yes
12288else
12289 $as_echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_header_compiler=no
12293fi
12294
12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12297$as_echo "$ac_header_compiler" >&6; }
12298
12299# Is the header present?
12300{ $as_echo "$as_me:$LINENO: checking sys/types.h presence" >&5
12301$as_echo_n "checking sys/types.h presence... " >&6; }
12302cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308#include <sys/types.h>
12309_ACEOF
12310if { (ac_try="$ac_cpp conftest.$ac_ext"
12311case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12316$as_echo "$ac_try_echo") >&5
12317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } >/dev/null && {
12324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 }; then
12327 ac_header_preproc=yes
12328else
12329 $as_echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 ac_header_preproc=no
12333fi
12334
12335rm -f conftest.err conftest.$ac_ext
12336{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12337$as_echo "$ac_header_preproc" >&6; }
12338
12339# So? What about this header?
12340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12341 yes:no: )
12342 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
12343$as_echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12344 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
12345$as_echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
12346 ac_header_preproc=yes
12347 ;;
12348 no:yes:* )
12349 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
12350$as_echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
12351 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
12352$as_echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
12353 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
12354$as_echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
12355 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
12356$as_echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
12357 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
12358$as_echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
12359 { $as_echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
12360$as_echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
12361
12362 ;;
12363esac
12364{ $as_echo "$as_me:$LINENO: checking for sys/types.h" >&5
12365$as_echo_n "checking for sys/types.h... " >&6; }
12366if test "${ac_cv_header_sys_types_h+set}" = set; then
12367 $as_echo_n "(cached) " >&6
12368else
12369 ac_cv_header_sys_types_h=$ac_header_preproc
12370fi
12371{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
12372$as_echo "$ac_cv_header_sys_types_h" >&6; }
12373
12374fi
12375if test "x$ac_cv_header_sys_types_h" = x""yes; then
12376
12377cat >>confdefs.h <<\_ACEOF
12378#define NEED_SYS_TYPES_H 1
12379_ACEOF
12380
12381fi
12382
12383
12384
12385# Checks for typedefs, structures, and compiler characteristics.
12386{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12387$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12388if test "${ac_cv_c_const+set}" = set; then
12389 $as_echo_n "(cached) " >&6
12390else
12391 cat >conftest.$ac_ext <<_ACEOF
12392/* confdefs.h. */
12393_ACEOF
12394cat confdefs.h >>conftest.$ac_ext
12395cat >>conftest.$ac_ext <<_ACEOF
12396/* end confdefs.h. */
12397
12398int
12399main ()
12400{
12401/* FIXME: Include the comments suggested by Paul. */
12402#ifndef __cplusplus
12403 /* Ultrix mips cc rejects this. */
12404 typedef int charset[2];
12405 const charset cs;
12406 /* SunOS 4.1.1 cc rejects this. */
12407 char const *const *pcpcc;
12408 char **ppc;
12409 /* NEC SVR4.0.2 mips cc rejects this. */
12410 struct point {int x, y;};
12411 static struct point const zero = {0,0};
12412 /* AIX XL C 1.02.0.0 rejects this.
12413 It does not let you subtract one const X* pointer from another in
12414 an arm of an if-expression whose if-part is not a constant
12415 expression */
12416 const char *g = "string";
12417 pcpcc = &g + (g ? g-g : 0);
12418 /* HPUX 7.0 cc rejects these. */
12419 ++pcpcc;
12420 ppc = (char**) pcpcc;
12421 pcpcc = (char const *const *) ppc;
12422 { /* SCO 3.2v4 cc rejects this. */
12423 char *t;
12424 char const *s = 0 ? (char *) 0 : (char const *) 0;
12425
12426 *t++ = 0;
12427 if (s) return 0;
12428 }
12429 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12430 int x[] = {25, 17};
12431 const int *foo = &x[0];
12432 ++foo;
12433 }
12434 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12435 typedef const int *iptr;
12436 iptr p = 0;
12437 ++p;
12438 }
12439 { /* AIX XL C 1.02.0.0 rejects this saying
12440 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12441 struct s { int j; const int *ap[3]; };
12442 struct s *b; b->j = 5;
12443 }
12444 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12445 const int foo = 10;
12446 if (!foo) return 0;
12447 }
12448 return !cs[0] && !zero.x;
12449#endif
12450
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455rm -f conftest.$ac_objext
12456if { (ac_try="$ac_compile"
12457case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12460esac
12461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12462$as_echo "$ac_try_echo") >&5
12463 (eval "$ac_compile") 2>conftest.er1
12464 ac_status=$?
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && {
12470 test -z "$ac_c_werror_flag" ||
12471 test ! -s conftest.err
12472 } && test -s conftest.$ac_objext; then
12473 ac_cv_c_const=yes
12474else
12475 $as_echo "$as_me: failed program was:" >&5
12476sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 ac_cv_c_const=no
12479fi
12480
12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482fi
12483{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12484$as_echo "$ac_cv_c_const" >&6; }
12485if test $ac_cv_c_const = no; then
12486
12487cat >>confdefs.h <<\_ACEOF
12488#define const /**/
12489_ACEOF
12490
12491fi
12492
12493
12494{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
12495$as_echo_n "checking whether char is unsigned... " >&6; }
12496if test "${ac_cv_c_char_unsigned+set}" = set; then
12497 $as_echo_n "(cached) " >&6
12498else
12499 cat >conftest.$ac_ext <<_ACEOF
12500/* confdefs.h. */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h. */
12505$ac_includes_default
12506int
12507main ()
12508{
12509static int test_array [1 - 2 * !(((char) -1) < 0)];
12510test_array [0] = 0
12511
12512 ;
12513 return 0;
12514}
12515_ACEOF
12516rm -f conftest.$ac_objext
12517if { (ac_try="$ac_compile"
12518case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12521esac
12522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12523$as_echo "$ac_try_echo") >&5
12524 (eval "$ac_compile") 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest.$ac_objext; then
12534 ac_cv_c_char_unsigned=no
12535else
12536 $as_echo "$as_me: failed program was:" >&5
12537sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_cv_c_char_unsigned=yes
12540fi
12541
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543fi
12544{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
12545$as_echo "$ac_cv_c_char_unsigned" >&6; }
12546if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12547 cat >>confdefs.h <<\_ACEOF
12548#define __CHAR_UNSIGNED__ 1
12549_ACEOF
12550
12551fi
12552
12553{ $as_echo "$as_me:$LINENO: checking for inline" >&5
12554$as_echo_n "checking for inline... " >&6; }
12555if test "${ac_cv_c_inline+set}" = set; then
12556 $as_echo_n "(cached) " >&6
12557else
12558 ac_cv_c_inline=no
12559for ac_kw in inline __inline__ __inline; do
12560 cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566#ifndef __cplusplus
12567typedef int foo_t;
12568static $ac_kw foo_t static_foo () {return 0; }
12569$ac_kw foo_t foo () {return 0; }
12570#endif
12571
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (ac_try="$ac_compile"
12575case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578esac
12579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12580$as_echo "$ac_try_echo") >&5
12581 (eval "$ac_compile") 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && {
12588 test -z "$ac_c_werror_flag" ||
12589 test ! -s conftest.err
12590 } && test -s conftest.$ac_objext; then
12591 ac_cv_c_inline=$ac_kw
12592else
12593 $as_echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596
12597fi
12598
12599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 test "$ac_cv_c_inline" != no && break
12601done
12602
12603fi
12604{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12605$as_echo "$ac_cv_c_inline" >&6; }
12606
12607
12608case $ac_cv_c_inline in
12609 inline | yes) ;;
12610 *)
12611 case $ac_cv_c_inline in
12612 no) ac_val=;;
12613 *) ac_val=$ac_cv_c_inline;;
12614 esac
12615 cat >>confdefs.h <<_ACEOF
12616#ifndef __cplusplus
12617#define inline $ac_val
12618#endif
12619_ACEOF
12620 ;;
12621esac
12622
12623{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
12624$as_echo_n "checking for size_t... " >&6; }
12625if test "${ac_cv_type_size_t+set}" = set; then
12626 $as_echo_n "(cached) " >&6
12627else
12628 ac_cv_type_size_t=no
12629cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h. */
12635$ac_includes_default
12636int
12637main ()
12638{
12639if (sizeof (size_t))
12640 return 0;
12641 ;
12642 return 0;
12643}
12644_ACEOF
12645rm -f conftest.$ac_objext
12646if { (ac_try="$ac_compile"
12647case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
12651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652$as_echo "$ac_try_echo") >&5
12653 (eval "$ac_compile") 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
12663 cat >conftest.$ac_ext <<_ACEOF
12664/* confdefs.h. */
12665_ACEOF
12666cat confdefs.h >>conftest.$ac_ext
12667cat >>conftest.$ac_ext <<_ACEOF
12668/* end confdefs.h. */
12669$ac_includes_default
12670int
12671main ()
12672{
12673if (sizeof ((size_t)))
12674 return 0;
12675 ;
12676 return 0;
12677}
12678_ACEOF
12679rm -f conftest.$ac_objext
12680if { (ac_try="$ac_compile"
12681case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686$as_echo "$ac_try_echo") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12697 :
12698else
12699 $as_echo "$as_me: failed program was:" >&5
12700sed 's/^/| /' conftest.$ac_ext >&5
12701
12702 ac_cv_type_size_t=yes
12703fi
12704
12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706else
12707 $as_echo "$as_me: failed program was:" >&5
12708sed 's/^/| /' conftest.$ac_ext >&5
12709
12710
12711fi
12712
12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714fi
12715{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12716$as_echo "$ac_cv_type_size_t" >&6; }
12717if test "x$ac_cv_type_size_t" = x""yes; then
12718 :
12719else
12720
12721cat >>confdefs.h <<_ACEOF
12722#define size_t unsigned int
12723_ACEOF
12724
12725fi
12726
12727{ $as_echo "$as_me:$LINENO: checking for unsigned char" >&5
12728$as_echo_n "checking for unsigned char... " >&6; }
12729if test "${ac_cv_type_unsigned_char+set}" = set; then
12730 $as_echo_n "(cached) " >&6
12731else
12732 ac_cv_type_unsigned_char=no
12733cat >conftest.$ac_ext <<_ACEOF
12734/* confdefs.h. */
12735_ACEOF
12736cat confdefs.h >>conftest.$ac_ext
12737cat >>conftest.$ac_ext <<_ACEOF
12738/* end confdefs.h. */
12739$ac_includes_default
12740int
12741main ()
12742{
12743if (sizeof (unsigned char))
12744 return 0;
12745 ;
12746 return 0;
12747}
12748_ACEOF
12749rm -f conftest.$ac_objext
12750if { (ac_try="$ac_compile"
12751case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12754esac
12755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12756$as_echo "$ac_try_echo") >&5
12757 (eval "$ac_compile") 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && {
12764 test -z "$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 } && test -s conftest.$ac_objext; then
12767 cat >conftest.$ac_ext <<_ACEOF
12768/* confdefs.h. */
12769_ACEOF
12770cat confdefs.h >>conftest.$ac_ext
12771cat >>conftest.$ac_ext <<_ACEOF
12772/* end confdefs.h. */
12773$ac_includes_default
12774int
12775main ()
12776{
12777if (sizeof ((unsigned char)))
12778 return 0;
12779 ;
12780 return 0;
12781}
12782_ACEOF
12783rm -f conftest.$ac_objext
12784if { (ac_try="$ac_compile"
12785case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788esac
12789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12790$as_echo "$ac_try_echo") >&5
12791 (eval "$ac_compile") 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest.$ac_objext; then
12801 :
12802else
12803 $as_echo "$as_me: failed program was:" >&5
12804sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 ac_cv_type_unsigned_char=yes
12807fi
12808
12809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810else
12811 $as_echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814
12815fi
12816
12817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818fi
12819{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
12820$as_echo "$ac_cv_type_unsigned_char" >&6; }
12821if test "x$ac_cv_type_unsigned_char" = x""yes; then
12822
12823cat >>confdefs.h <<_ACEOF
12824#define HAVE_UNSIGNED_CHAR 1
12825_ACEOF
12826
12827
12828fi
12829{ $as_echo "$as_me:$LINENO: checking for unsigned short" >&5
12830$as_echo_n "checking for unsigned short... " >&6; }
12831if test "${ac_cv_type_unsigned_short+set}" = set; then
12832 $as_echo_n "(cached) " >&6
12833else
12834 ac_cv_type_unsigned_short=no
12835cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841$ac_includes_default
12842int
12843main ()
12844{
12845if (sizeof (unsigned short))
12846 return 0;
12847 ;
12848 return 0;
12849}
12850_ACEOF
12851rm -f conftest.$ac_objext
12852if { (ac_try="$ac_compile"
12853case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856esac
12857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12858$as_echo "$ac_try_echo") >&5
12859 (eval "$ac_compile") 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && {
12866 test -z "$ac_c_werror_flag" ||
12867 test ! -s conftest.err
12868 } && test -s conftest.$ac_objext; then
12869 cat >conftest.$ac_ext <<_ACEOF
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875$ac_includes_default
12876int
12877main ()
12878{
12879if (sizeof ((unsigned short)))
12880 return 0;
12881 ;
12882 return 0;
12883}
12884_ACEOF
12885rm -f conftest.$ac_objext
12886if { (ac_try="$ac_compile"
12887case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890esac
12891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12892$as_echo "$ac_try_echo") >&5
12893 (eval "$ac_compile") 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } && {
12900 test -z "$ac_c_werror_flag" ||
12901 test ! -s conftest.err
12902 } && test -s conftest.$ac_objext; then
12903 :
12904else
12905 $as_echo "$as_me: failed program was:" >&5
12906sed 's/^/| /' conftest.$ac_ext >&5
12907
12908 ac_cv_type_unsigned_short=yes
12909fi
12910
12911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912else
12913 $as_echo "$as_me: failed program was:" >&5
12914sed 's/^/| /' conftest.$ac_ext >&5
12915
12916
12917fi
12918
12919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920fi
12921{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
12922$as_echo "$ac_cv_type_unsigned_short" >&6; }
12923if test "x$ac_cv_type_unsigned_short" = x""yes; then
12924
12925cat >>confdefs.h <<_ACEOF
12926#define HAVE_UNSIGNED_SHORT 1
12927_ACEOF
12928
12929
12930fi
12931
12932
12933{ $as_echo "$as_me:$LINENO: checking if right shift is signed" >&5
12934$as_echo_n "checking if right shift is signed... " >&6; }
12935if test "$cross_compiling" = yes; then
12936 { $as_echo "$as_me:$LINENO: result: Assuming that right shift is signed on target machine." >&5
12937$as_echo "Assuming that right shift is signed on target machine." >&6; }
12938else
12939 cat >conftest.$ac_ext <<_ACEOF
12940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945#include <stdio.h>
12946 int is_shifting_signed (long arg) {
12947 long res = arg >> 4;
12948
12949 if (res == -0x7F7E80CL)
12950 return 1; /* right shift is signed */
12951
12952 /* see if unsigned-shift hack will fix it. */
12953 /* we can't just test exact value since it depends on width of long... */
12954 res |= (~0L) << (32-4);
12955 if (res == -0x7F7E80CL)
12956 return 0; /* right shift is unsigned */
12957
12958 printf("Right shift isn't acting as I expect it to.\n");
12959 printf("I fear the JPEG software will not work at all.\n\n");
12960 return 0; /* try it with unsigned anyway */
12961 }
12962 int main (void) {
12963 exit(is_shifting_signed(-0x7F7E80B1L));
12964 }
12965_ACEOF
12966rm -f conftest$ac_exeext
12967if { (ac_try="$ac_link"
12968case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12973$as_echo "$ac_try_echo") >&5
12974 (eval "$ac_link") 2>&5
12975 ac_status=$?
12976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981esac
12982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12983$as_echo "$ac_try_echo") >&5
12984 (eval "$ac_try") 2>&5
12985 ac_status=$?
12986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }; }; then
12988 { $as_echo "$as_me:$LINENO: result: no" >&5
12989$as_echo "no" >&6; }
12990
12991cat >>confdefs.h <<\_ACEOF
12992#define RIGHT_SHIFT_IS_UNSIGNED 1
12993_ACEOF
12994
12995else
12996 $as_echo "$as_me: program exited with status $ac_status" >&5
12997$as_echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000( exit $ac_status )
13001{ $as_echo "$as_me:$LINENO: result: yes" >&5
13002$as_echo "yes" >&6; }
13003fi
13004rm -rf conftest.dSYM
13005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13006fi
13007
13008
13009
13010# test whether global names are unique to at least 15 chars
13011{ $as_echo "$as_me:$LINENO: checking for short external names" >&5
13012$as_echo_n "checking for short external names... " >&6; }
13013cat >conftest.$ac_ext <<_ACEOF
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
13019int possibly_duplicate_function () { return 0; }
13020 int possibly_dupli_function () { return 1; }
13021int
13022main ()
13023{
13024
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029rm -f conftest.$ac_objext conftest$ac_exeext
13030if { (ac_try="$ac_link"
13031case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034esac
13035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13036$as_echo "$ac_try_echo") >&5
13037 (eval "$ac_link") 2>conftest.er1
13038 ac_status=$?
13039 grep -v '^ *+' conftest.er1 >conftest.err
13040 rm -f conftest.er1
13041 cat conftest.err >&5
13042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && {
13044 test -z "$ac_c_werror_flag" ||
13045 test ! -s conftest.err
13046 } && test -s conftest$ac_exeext && {
13047 test "$cross_compiling" = yes ||
13048 $as_test_x conftest$ac_exeext
13049 }; then
13050 { $as_echo "$as_me:$LINENO: result: ok" >&5
13051$as_echo "ok" >&6; }
13052else
13053 $as_echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 { $as_echo "$as_me:$LINENO: result: short" >&5
13057$as_echo "short" >&6; }
13058
13059cat >>confdefs.h <<\_ACEOF
13060#define NEED_SHORT_EXTERNAL_NAMES 1
13061_ACEOF
13062
13063fi
13064
13065rm -rf conftest.dSYM
13066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13067 conftest$ac_exeext conftest.$ac_ext
13068
13069# Checks for library functions.
13070
13071
13072for ac_func in memset memcpy
13073do
13074as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13075{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13076$as_echo_n "checking for $ac_func... " >&6; }
13077if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13078 $as_echo_n "(cached) " >&6
13079else
13080 cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
13086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13088#define $ac_func innocuous_$ac_func
13089
13090/* System header to define __stub macros and hopefully few prototypes,
13091 which can conflict with char $ac_func (); below.
13092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13093 <limits.h> exists even on freestanding compilers. */
13094
13095#ifdef __STDC__
13096# include <limits.h>
13097#else
13098# include <assert.h>
13099#endif
13100
13101#undef $ac_func
13102
13103/* Override any GCC internal prototype to avoid an error.
13104 Use char because int might match the return type of a GCC
13105 builtin and then its argument prototype would still apply. */
13106#ifdef __cplusplus
13107extern "C"
13108#endif
13109char $ac_func ();
13110/* The GNU C library defines this for functions which it implements
13111 to always fail with ENOSYS. Some functions are actually named
13112 something starting with __ and the normal name is an alias. */
13113#if defined __stub_$ac_func || defined __stub___$ac_func
13114choke me
13115#endif
13116
13117int
13118main ()
13119{
13120return $ac_func ();
13121 ;
13122 return 0;
13123}
13124_ACEOF
13125rm -f conftest.$ac_objext conftest$ac_exeext
13126if { (ac_try="$ac_link"
13127case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130esac
13131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132$as_echo "$ac_try_echo") >&5
13133 (eval "$ac_link") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest$ac_exeext && {
13143 test "$cross_compiling" = yes ||
13144 $as_test_x conftest$ac_exeext
13145 }; then
13146 eval "$as_ac_var=yes"
13147else
13148 $as_echo "$as_me: failed program was:" >&5
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 eval "$as_ac_var=no"
13152fi
13153
13154rm -rf conftest.dSYM
13155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13156 conftest$ac_exeext conftest.$ac_ext
13157fi
13158ac_res=`eval 'as_val=${'$as_ac_var'}
13159 $as_echo "$as_val"'`
13160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13161$as_echo "$ac_res" >&6; }
13162as_val=`eval 'as_val=${'$as_ac_var'}
13163 $as_echo "$as_val"'`
13164 if test "x$as_val" = x""yes; then
13165 cat >>confdefs.h <<_ACEOF
13166#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13167_ACEOF
13168
13169else
13170
13171cat >>confdefs.h <<\_ACEOF
13172#define NEED_BSD_STRINGS 1
13173_ACEOF
13174
13175fi
13176done
13177
13178
13179# Set flags to indicate platform
13180case "$host_os" in
13181 cygwin* | mingw* | pw32* | interix*)
13182 is_win32=1
13183 ;;
13184esac
13185 if test "x$is_win32" = "x1"; then
13186 IS_WIN32_TRUE=
13187 IS_WIN32_FALSE='#'
13188else
13189 IS_WIN32_TRUE='#'
13190 IS_WIN32_FALSE=
13191fi
13192
13193
13194# SIMD is optional
13195
13196# Check whether --with-simd was given.
13197if test "${with_simd+set}" = set; then
13198 withval=$with_simd;
13199fi
13200
13201if test "x${with_simd}" != "xno"; then
13202 # Check if we're on a supported CPU
13203 { $as_echo "$as_me:$LINENO: checking if host cpu type is i386 or compatible" >&5
13204$as_echo_n "checking if host cpu type is i386 or compatible... " >&6; }
13205 case "$host_cpu" in
13206 i*86 | x86 | ia32)
13207 { $as_echo "$as_me:$LINENO: result: yes" >&5
13208$as_echo "yes" >&6; }
13209
13210
13211for ac_prog in nasm nasmw
13212do
13213 # Extract the first word of "$ac_prog", so it can be a program name with args.
13214set dummy $ac_prog; ac_word=$2
13215{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13216$as_echo_n "checking for $ac_word... " >&6; }
13217if test "${ac_cv_prog_NASM+set}" = set; then
13218 $as_echo_n "(cached) " >&6
13219else
13220 if test -n "$NASM"; then
13221 ac_cv_prog_NASM="$NASM" # Let the user override the test.
13222else
13223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224for as_dir in $PATH
13225do
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230 ac_cv_prog_NASM="$ac_prog"
13231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13233 fi
13234done
13235done
13236IFS=$as_save_IFS
13237
13238fi
13239fi
13240NASM=$ac_cv_prog_NASM
13241if test -n "$NASM"; then
13242 { $as_echo "$as_me:$LINENO: result: $NASM" >&5
13243$as_echo "$NASM" >&6; }
13244else
13245 { $as_echo "$as_me:$LINENO: result: no" >&5
13246$as_echo "no" >&6; }
13247fi
13248
13249
13250 test -n "$NASM" && break
13251done
13252
13253test -z "$NASM" && { { $as_echo "$as_me:$LINENO: error: no nasm (Netwide Assembler) found" >&5
13254$as_echo "$as_me: error: no nasm (Netwide Assembler) found" >&2;}
13255 { (exit 1); exit 1; }; }
13256
13257{ $as_echo "$as_me:$LINENO: checking for object file format of host system" >&5
13258$as_echo_n "checking for object file format of host system... " >&6; }
13259case "$host_os" in
13260 cygwin* | mingw* | pw32* | interix*)
13261 objfmt='Win32-COFF'
13262 ;;
13263 msdosdjgpp* | go32*)
13264 objfmt='COFF'
13265 ;;
13266 os2-emx*) # not tested
13267 objfmt='MSOMF' # obj
13268 ;;
13269 linux*coff* | linux*oldld*)
13270 objfmt='COFF' # ???
13271 ;;
13272 linux*aout*)
13273 objfmt='a.out'
13274 ;;
13275 linux*)
13276 objfmt='ELF'
13277 ;;
13278 freebsd* | netbsd* | openbsd*)
13279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13280 objfmt='BSD-a.out'
13281 else
13282 objfmt='ELF'
13283 fi
13284 ;;
13285 solaris* | sunos* | sysv* | sco*)
13286 objfmt='ELF'
13287 ;;
13288 darwin* | rhapsody* | nextstep* | openstep* | macos*)
13289 objfmt='Mach-O'
13290 ;;
13291 *)
13292 objfmt='ELF ?'
13293 ;;
13294esac
13295
13296{ $as_echo "$as_me:$LINENO: result: $objfmt" >&5
13297$as_echo "$objfmt" >&6; }
13298if test "$objfmt" = 'ELF ?'; then
13299 objfmt='ELF'
13300 { $as_echo "$as_me:$LINENO: WARNING: unexpected host system. assumed that the format is $objfmt." >&5
13301$as_echo "$as_me: WARNING: unexpected host system. assumed that the format is $objfmt." >&2;}
13302fi
13303
13304{ $as_echo "$as_me:$LINENO: checking for object file format specifier (NAFLAGS) " >&5
13305$as_echo_n "checking for object file format specifier (NAFLAGS) ... " >&6; }
13306case "$objfmt" in
13307 MSOMF) NAFLAGS='-fobj -DOBJ32';;
13308 Win32-COFF) NAFLAGS='-fwin32 -DWIN32';;
13309 COFF) NAFLAGS='-fcoff -DCOFF';;
13310 a.out) NAFLAGS='-faout -DAOUT';;
13311 BSD-a.out) NAFLAGS='-faoutb -DAOUT';;
13312 ELF) NAFLAGS='-felf -DELF';;
13313 RDF) NAFLAGS='-frdf -DRDF';;
13314 Mach-O) NAFLAGS='-fmacho -DMACHO';;
13315esac
13316{ $as_echo "$as_me:$LINENO: result: $NAFLAGS" >&5
13317$as_echo "$NAFLAGS" >&6; }
13318
13319
13320{ $as_echo "$as_me:$LINENO: checking whether the assembler ($NASM $NAFLAGS) works" >&5
13321$as_echo_n "checking whether the assembler ($NASM $NAFLAGS) works... " >&6; }
13322cat > conftest.asm <<EOF
13323%line 13323 "configure"
13324 section .text
13325 bits 32
13326 global _main,main
13327_main:
13328main: xor eax,eax
13329 ret
13330EOF
13331try_nasm='$NASM $NAFLAGS -o conftest.o conftest.asm'
13332if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
13333 (eval $try_nasm) 2>&5
13334 ac_status=$?
13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && test -s conftest.o; then
13337 { $as_echo "$as_me:$LINENO: result: yes" >&5
13338$as_echo "yes" >&6; }
13339else
13340 echo "configure: failed program was:" >&5
13341 cat conftest.asm >&5
13342 rm -rf conftest*
13343 { $as_echo "$as_me:$LINENO: result: no" >&5
13344$as_echo "no" >&6; }
13345 { { $as_echo "$as_me:$LINENO: error: installation or configuration problem: assembler cannot create object files." >&5
13346$as_echo "$as_me: error: installation or configuration problem: assembler cannot create object files." >&2;}
13347 { (exit 1); exit 1; }; }
13348fi
13349
13350{ $as_echo "$as_me:$LINENO: checking whether the linker accepts assembler output" >&5
13351$as_echo_n "checking whether the linker accepts assembler output... " >&6; }
13352try_nasm='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.o $LIBS 1>&5'
13353if { (eval echo "$as_me:$LINENO: \"$try_nasm\"") >&5
13354 (eval $try_nasm) 2>&5
13355 ac_status=$?
13356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13358 rm -rf conftest*
13359 { $as_echo "$as_me:$LINENO: result: yes" >&5
13360$as_echo "yes" >&6; }
13361else
13362 rm -rf conftest*
13363 { $as_echo "$as_me:$LINENO: result: no" >&5
13364$as_echo "no" >&6; }
13365 { { $as_echo "$as_me:$LINENO: error: configuration problem: maybe object file format mismatch." >&5
13366$as_echo "$as_me: error: configuration problem: maybe object file format mismatch." >&2;}
13367 { (exit 1); exit 1; }; }
13368fi
13369
13370
13371
13372cat >>confdefs.h <<\_ACEOF
13373#define WITH_SIMD 1
13374_ACEOF
13375
13376 ;;
13377 *)
13378 { $as_echo "$as_me:$LINENO: result: no (\"$host_cpu\")" >&5
13379$as_echo "no (\"$host_cpu\")" >&6; }
13380 with_simd=no
13381 ;;
13382 esac
13383fi
13384 if test "x$with_simd" != "xno"; then
13385 WITH_SIMD_TRUE=
13386 WITH_SIMD_FALSE='#'
13387else
13388 WITH_SIMD_TRUE='#'
13389 WITH_SIMD_FALSE=
13390fi
13391
13392
13393# jconfig.h is the file we use, but we have another before that to
13394# fool autoheader. the reason is that we include this header in our
13395# API headers, which can screw things up for users of the lib.
13396# jconfig.h is a minimal version that allows this package to be built
13397ac_config_headers="$ac_config_headers config.h"
13398
13399ac_config_headers="$ac_config_headers jconfig.h"
13400
13401ac_config_files="$ac_config_files Makefile"
13402
13403cat >confcache <<\_ACEOF
13404# This file is a shell script that caches the results of configure
13405# tests run on this system so they can be shared between configure
13406# scripts and configure runs, see configure's option --config-cache.
13407# It is not useful on other systems. If it contains results you don't
13408# want to keep, you may remove or edit it.
13409#
13410# config.status only pays attention to the cache file if you give it
13411# the --recheck option to rerun configure.
13412#
13413# `ac_cv_env_foo' variables (set or unset) will be overridden when
13414# loading this file, other *unset* `ac_cv_foo' will be assigned the
13415# following values.
13416
13417_ACEOF
13418
13419# The following way of writing the cache mishandles newlines in values,
13420# but we know of no workaround that is simple, portable, and efficient.
13421# So, we kill variables containing newlines.
13422# Ultrix sh set writes to stderr and can't be redirected directly,
13423# and sets the high bit in the cache file unless we assign to the vars.
13424(
13425 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13426 eval ac_val=\$$ac_var
13427 case $ac_val in #(
13428 *${as_nl}*)
13429 case $ac_var in #(
13430 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13431$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13432 esac
13433 case $ac_var in #(
13434 _ | IFS | as_nl) ;; #(
13435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13436 *) $as_unset $ac_var ;;
13437 esac ;;
13438 esac
13439 done
13440
13441 (set) 2>&1 |
13442 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13443 *${as_nl}ac_space=\ *)
13444 # `set' does not quote correctly, so add quotes (double-quote
13445 # substitution turns \\\\ into \\, and sed turns \\ into \).
13446 sed -n \
13447 "s/'/'\\\\''/g;
13448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13449 ;; #(
13450 *)
13451 # `set' quotes correctly as required by POSIX, so do not add quotes.
13452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13453 ;;
13454 esac |
13455 sort
13456) |
13457 sed '
13458 /^ac_cv_env_/b end
13459 t clear
13460 :clear
13461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13462 t end
13463 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13464 :end' >>confcache
13465if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13466 if test -w "$cache_file"; then
13467 test "x$cache_file" != "x/dev/null" &&
13468 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13469$as_echo "$as_me: updating cache $cache_file" >&6;}
13470 cat confcache >$cache_file
13471 else
13472 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13473$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13474 fi
13475fi
13476rm -f confcache
13477
13478test "x$prefix" = xNONE && prefix=$ac_default_prefix
13479# Let make expand exec_prefix.
13480test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13481
13482DEFS=-DHAVE_CONFIG_H
13483
13484ac_libobjs=
13485ac_ltlibobjs=
13486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13487 # 1. Remove the extension, and $U if already installed.
13488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13489 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13491 # will be set to the directory where LIBOBJS objects are built.
13492 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13493 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13494done
13495LIBOBJS=$ac_libobjs
13496
13497LTLIBOBJS=$ac_ltlibobjs
13498
13499
13500if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13501 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13502Usually this means the macro was only invoked conditionally." >&5
13503$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13504Usually this means the macro was only invoked conditionally." >&2;}
13505 { (exit 1); exit 1; }; }
13506fi
13507if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13508 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13509Usually this means the macro was only invoked conditionally." >&5
13510$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13511Usually this means the macro was only invoked conditionally." >&2;}
13512 { (exit 1); exit 1; }; }
13513fi
13514if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13515 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13516Usually this means the macro was only invoked conditionally." >&5
13517$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13518Usually this means the macro was only invoked conditionally." >&2;}
13519 { (exit 1); exit 1; }; }
13520fi
13521if test -z "${IS_WIN32_TRUE}" && test -z "${IS_WIN32_FALSE}"; then
13522 { { $as_echo "$as_me:$LINENO: error: conditional \"IS_WIN32\" was never defined.
13523Usually this means the macro was only invoked conditionally." >&5
13524$as_echo "$as_me: error: conditional \"IS_WIN32\" was never defined.
13525Usually this means the macro was only invoked conditionally." >&2;}
13526 { (exit 1); exit 1; }; }
13527fi
13528if test -z "${WITH_SIMD_TRUE}" && test -z "${WITH_SIMD_FALSE}"; then
13529 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_SIMD\" was never defined.
13530Usually this means the macro was only invoked conditionally." >&5
13531$as_echo "$as_me: error: conditional \"WITH_SIMD\" was never defined.
13532Usually this means the macro was only invoked conditionally." >&2;}
13533 { (exit 1); exit 1; }; }
13534fi
13535
13536: ${CONFIG_STATUS=./config.status}
13537ac_write_fail=0
13538ac_clean_files_save=$ac_clean_files
13539ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13540{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13541$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13542cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13543#! $SHELL
13544# Generated by $as_me.
13545# Run this file to recreate the current configuration.
13546# Compiler output produced by configure, useful for debugging
13547# configure, is in config.log if it exists.
13548
13549debug=false
13550ac_cs_recheck=false
13551ac_cs_silent=false
13552SHELL=\${CONFIG_SHELL-$SHELL}
13553_ACEOF
13554
13555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13556## --------------------- ##
13557## M4sh Initialization. ##
13558## --------------------- ##
13559
13560# Be more Bourne compatible
13561DUALCASE=1; export DUALCASE # for MKS sh
13562if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13563 emulate sh
13564 NULLCMD=:
13565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13566 # is contrary to our usage. Disable this feature.
13567 alias -g '${1+"$@"}'='"$@"'
13568 setopt NO_GLOB_SUBST
13569else
13570 case `(set -o) 2>/dev/null` in
13571 *posix*) set -o posix ;;
13572esac
13573
13574fi
13575
13576
13577
13578
13579# PATH needs CR
13580# Avoid depending upon Character Ranges.
13581as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13582as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13583as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13584as_cr_digits='0123456789'
13585as_cr_alnum=$as_cr_Letters$as_cr_digits
13586
13587as_nl='
13588'
13589export as_nl
13590# Printing a long string crashes Solaris 7 /usr/bin/printf.
13591as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13592as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13593as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13594if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13595 as_echo='printf %s\n'
13596 as_echo_n='printf %s'
13597else
13598 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13599 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13600 as_echo_n='/usr/ucb/echo -n'
13601 else
13602 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13603 as_echo_n_body='eval
13604 arg=$1;
13605 case $arg in
13606 *"$as_nl"*)
13607 expr "X$arg" : "X\\(.*\\)$as_nl";
13608 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13609 esac;
13610 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13611 '
13612 export as_echo_n_body
13613 as_echo_n='sh -c $as_echo_n_body as_echo'
13614 fi
13615 export as_echo_body
13616 as_echo='sh -c $as_echo_body as_echo'
13617fi
13618
13619# The user is always right.
13620if test "${PATH_SEPARATOR+set}" != set; then
13621 PATH_SEPARATOR=:
13622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13623 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13624 PATH_SEPARATOR=';'
13625 }
13626fi
13627
13628# Support unset when possible.
13629if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13630 as_unset=unset
13631else
13632 as_unset=false
13633fi
13634
13635
13636# IFS
13637# We need space, tab and new line, in precisely that order. Quoting is
13638# there to prevent editors from complaining about space-tab.
13639# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13640# splitting by setting IFS to empty value.)
13641IFS=" "" $as_nl"
13642
13643# Find who we are. Look in the path if we contain no directory separator.
13644case $0 in
13645 *[\\/]* ) as_myself=$0 ;;
13646 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647for as_dir in $PATH
13648do
13649 IFS=$as_save_IFS
13650 test -z "$as_dir" && as_dir=.
13651 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13652done
13653IFS=$as_save_IFS
13654
13655 ;;
13656esac
13657# We did not find ourselves, most probably we were run as `sh COMMAND'
13658# in which case we are not to be found in the path.
13659if test "x$as_myself" = x; then
13660 as_myself=$0
13661fi
13662if test ! -f "$as_myself"; then
13663 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13664 { (exit 1); exit 1; }
13665fi
13666
13667# Work around bugs in pre-3.0 UWIN ksh.
13668for as_var in ENV MAIL MAILPATH
13669do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13670done
13671PS1='$ '
13672PS2='> '
13673PS4='+ '
13674
13675# NLS nuisances.
13676LC_ALL=C
13677export LC_ALL
13678LANGUAGE=C
13679export LANGUAGE
13680
13681# Required to use basename.
13682if expr a : '\(a\)' >/dev/null 2>&1 &&
13683 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13684 as_expr=expr
13685else
13686 as_expr=false
13687fi
13688
13689if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13690 as_basename=basename
13691else
13692 as_basename=false
13693fi
13694
13695
13696# Name of the executable.
13697as_me=`$as_basename -- "$0" ||
13698$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13699 X"$0" : 'X\(//\)$' \| \
13700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13701$as_echo X/"$0" |
13702 sed '/^.*\/\([^/][^/]*\)\/*$/{
13703 s//\1/
13704 q
13705 }
13706 /^X\/\(\/\/\)$/{
13707 s//\1/
13708 q
13709 }
13710 /^X\/\(\/\).*/{
13711 s//\1/
13712 q
13713 }
13714 s/.*/./; q'`
13715
13716# CDPATH.
13717$as_unset CDPATH
13718
13719
13720
13721 as_lineno_1=$LINENO
13722 as_lineno_2=$LINENO
13723 test "x$as_lineno_1" != "x$as_lineno_2" &&
13724 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13725
13726 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13727 # uniformly replaced by the line number. The first 'sed' inserts a
13728 # line-number line after each line using $LINENO; the second 'sed'
13729 # does the real work. The second script uses 'N' to pair each
13730 # line-number line with the line containing $LINENO, and appends
13731 # trailing '-' during substitution so that $LINENO is not a special
13732 # case at line end.
13733 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13734 # scripts with optimization help from Paolo Bonzini. Blame Lee
13735 # E. McMahon (1931-1989) for sed's syntax. :-)
13736 sed -n '
13737 p
13738 /[$]LINENO/=
13739 ' <$as_myself |
13740 sed '
13741 s/[$]LINENO.*/&-/
13742 t lineno
13743 b
13744 :lineno
13745 N
13746 :loop
13747 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13748 t loop
13749 s/-\n.*//
13750 ' >$as_me.lineno &&
13751 chmod +x "$as_me.lineno" ||
13752 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13753 { (exit 1); exit 1; }; }
13754
13755 # Don't try to exec as it changes $[0], causing all sort of problems
13756 # (the dirname of $[0] is not the place where we might find the
13757 # original and so on. Autoconf is especially sensitive to this).
13758 . "./$as_me.lineno"
13759 # Exit status is that of the last command.
13760 exit
13761}
13762
13763
13764if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13765 as_dirname=dirname
13766else
13767 as_dirname=false
13768fi
13769
13770ECHO_C= ECHO_N= ECHO_T=
13771case `echo -n x` in
13772-n*)
13773 case `echo 'x\c'` in
13774 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13775 *) ECHO_C='\c';;
13776 esac;;
13777*)
13778 ECHO_N='-n';;
13779esac
13780if expr a : '\(a\)' >/dev/null 2>&1 &&
13781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13782 as_expr=expr
13783else
13784 as_expr=false
13785fi
13786
13787rm -f conf$$ conf$$.exe conf$$.file
13788if test -d conf$$.dir; then
13789 rm -f conf$$.dir/conf$$.file
13790else
13791 rm -f conf$$.dir
13792 mkdir conf$$.dir 2>/dev/null
13793fi
13794if (echo >conf$$.file) 2>/dev/null; then
13795 if ln -s conf$$.file conf$$ 2>/dev/null; then
13796 as_ln_s='ln -s'
13797 # ... but there are two gotchas:
13798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13800 # In both cases, we have to default to `cp -p'.
13801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13802 as_ln_s='cp -p'
13803 elif ln conf$$.file conf$$ 2>/dev/null; then
13804 as_ln_s=ln
13805 else
13806 as_ln_s='cp -p'
13807 fi
13808else
13809 as_ln_s='cp -p'
13810fi
13811rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13812rmdir conf$$.dir 2>/dev/null
13813
13814if mkdir -p . 2>/dev/null; then
13815 as_mkdir_p=:
13816else
13817 test -d ./-p && rmdir ./-p
13818 as_mkdir_p=false
13819fi
13820
13821if test -x / >/dev/null 2>&1; then
13822 as_test_x='test -x'
13823else
13824 if ls -dL / >/dev/null 2>&1; then
13825 as_ls_L_option=L
13826 else
13827 as_ls_L_option=
13828 fi
13829 as_test_x='
13830 eval sh -c '\''
13831 if test -d "$1"; then
13832 test -d "$1/.";
13833 else
13834 case $1 in
13835 -*)set "./$1";;
13836 esac;
13837 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13838 ???[sx]*):;;*)false;;esac;fi
13839 '\'' sh
13840 '
13841fi
13842as_executable_p=$as_test_x
13843
13844# Sed expression to map a string onto a valid CPP name.
13845as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13846
13847# Sed expression to map a string onto a valid variable name.
13848as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13849
13850
13851exec 6>&1
13852
13853# Save the log message, to keep $[0] and so on meaningful, and to
13854# report actual input values of CONFIG_FILES etc. instead of their
13855# values after options handling.
13856ac_log="
13857This file was extended by libjpeg $as_me 6.b, which was
13858generated by GNU Autoconf 2.63. Invocation command line was
13859
13860 CONFIG_FILES = $CONFIG_FILES
13861 CONFIG_HEADERS = $CONFIG_HEADERS
13862 CONFIG_LINKS = $CONFIG_LINKS
13863 CONFIG_COMMANDS = $CONFIG_COMMANDS
13864 $ $0 $@
13865
13866on `(hostname || uname -n) 2>/dev/null | sed 1q`
13867"
13868
13869_ACEOF
13870
13871case $ac_config_files in *"
13872"*) set x $ac_config_files; shift; ac_config_files=$*;;
13873esac
13874
13875case $ac_config_headers in *"
13876"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13877esac
13878
13879
13880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13881# Files that config.status was made for.
13882config_files="$ac_config_files"
13883config_headers="$ac_config_headers"
13884config_commands="$ac_config_commands"
13885
13886_ACEOF
13887
13888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13889ac_cs_usage="\
13890\`$as_me' instantiates files from templates according to the
13891current configuration.
13892
13893Usage: $0 [OPTION]... [FILE]...
13894
13895 -h, --help print this help, then exit
13896 -V, --version print version number and configuration settings, then exit
13897 -q, --quiet, --silent
13898 do not print progress messages
13899 -d, --debug don't remove temporary files
13900 --recheck update $as_me by reconfiguring in the same conditions
13901 --file=FILE[:TEMPLATE]
13902 instantiate the configuration file FILE
13903 --header=FILE[:TEMPLATE]
13904 instantiate the configuration header FILE
13905
13906Configuration files:
13907$config_files
13908
13909Configuration headers:
13910$config_headers
13911
13912Configuration commands:
13913$config_commands
13914
13915Report bugs to <bug-autoconf@gnu.org>."
13916
13917_ACEOF
13918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13919ac_cs_version="\\
13920libjpeg config.status 6.b
13921configured by $0, generated by GNU Autoconf 2.63,
13922 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13923
13924Copyright (C) 2008 Free Software Foundation, Inc.
13925This config.status script is free software; the Free Software Foundation
13926gives unlimited permission to copy, distribute and modify it."
13927
13928ac_pwd='$ac_pwd'
13929srcdir='$srcdir'
13930INSTALL='$INSTALL'
13931MKDIR_P='$MKDIR_P'
13932AWK='$AWK'
13933test -n "\$AWK" || AWK=awk
13934_ACEOF
13935
13936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13937# The default lists apply if the user does not specify any file.
13938ac_need_defaults=:
13939while test $# != 0
13940do
13941 case $1 in
13942 --*=*)
13943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13945 ac_shift=:
13946 ;;
13947 *)
13948 ac_option=$1
13949 ac_optarg=$2
13950 ac_shift=shift
13951 ;;
13952 esac
13953
13954 case $ac_option in
13955 # Handling of the options.
13956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13957 ac_cs_recheck=: ;;
13958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13959 $as_echo "$ac_cs_version"; exit ;;
13960 --debug | --debu | --deb | --de | --d | -d )
13961 debug=: ;;
13962 --file | --fil | --fi | --f )
13963 $ac_shift
13964 case $ac_optarg in
13965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13966 esac
13967 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13968 ac_need_defaults=false;;
13969 --header | --heade | --head | --hea )
13970 $ac_shift
13971 case $ac_optarg in
13972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13973 esac
13974 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13975 ac_need_defaults=false;;
13976 --he | --h)
13977 # Conflict between --help and --header
13978 { $as_echo "$as_me: error: ambiguous option: $1
13979Try \`$0 --help' for more information." >&2
13980 { (exit 1); exit 1; }; };;
13981 --help | --hel | -h )
13982 $as_echo "$ac_cs_usage"; exit ;;
13983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13985 ac_cs_silent=: ;;
13986
13987 # This is an error.
13988 -*) { $as_echo "$as_me: error: unrecognized option: $1
13989Try \`$0 --help' for more information." >&2
13990 { (exit 1); exit 1; }; } ;;
13991
13992 *) ac_config_targets="$ac_config_targets $1"
13993 ac_need_defaults=false ;;
13994
13995 esac
13996 shift
13997done
13998
13999ac_configure_extra_args=
14000
14001if $ac_cs_silent; then
14002 exec 6>/dev/null
14003 ac_configure_extra_args="$ac_configure_extra_args --silent"
14004fi
14005
14006_ACEOF
14007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14008if \$ac_cs_recheck; then
14009 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14010 shift
14011 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14012 CONFIG_SHELL='$SHELL'
14013 export CONFIG_SHELL
14014 exec "\$@"
14015fi
14016
14017_ACEOF
14018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14019exec 5>>config.log
14020{
14021 echo
14022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14023## Running $as_me. ##
14024_ASBOX
14025 $as_echo "$ac_log"
14026} >&5
14027
14028_ACEOF
14029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030#
14031# INIT-COMMANDS
14032#
14033AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14034
14035
14036# The HP-UX ksh and POSIX shell print the target directory to stdout
14037# if CDPATH is set.
14038(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14039
14040sed_quote_subst='$sed_quote_subst'
14041double_quote_subst='$double_quote_subst'
14042delay_variable_subst='$delay_variable_subst'
14043macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14044macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14045enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14046enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14047pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14048enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14049host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14050host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14051host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14052build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14053build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14054build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14055SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14056Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14057GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14058EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14059FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14060LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14061NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14062LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14063max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14064ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14065exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14066lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14067lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14068lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14069reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14070reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14071OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14072deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14073file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14074AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14075AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14076STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14077RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14078old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14079old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14080old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14081CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14082CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14083compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14084GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14085lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14086lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14087lt_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"`'
14088lt_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"`'
14089objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14090SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14091ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14092MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14093lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14094lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14095lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14096lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14097lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14098need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14099DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14100NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14101LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14102OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14103OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14104libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14105shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14106extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14107archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14108enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14109export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14110whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14111compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14112old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14113old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14114archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14115archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14116module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14117module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14118with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14119allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14120no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14121hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14122hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14123hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14124hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14125hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14126hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14127hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14128hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14129inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14130link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14131fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14132always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14133export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14134exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14135include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14136prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14137file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14138variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14139need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14140need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14141version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14142runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14143shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14144shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14145libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14146library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14147soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14148postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14149postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14150finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14151finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14152hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14153sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14154sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14155hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14156enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14157enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14158enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14159old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14160striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14161
14162LTCC='$LTCC'
14163LTCFLAGS='$LTCFLAGS'
14164compiler='$compiler_DEFAULT'
14165
14166# Quote evaled strings.
14167for var in SED \
14168GREP \
14169EGREP \
14170FGREP \
14171LD \
14172NM \
14173LN_S \
14174lt_SP2NL \
14175lt_NL2SP \
14176reload_flag \
14177OBJDUMP \
14178deplibs_check_method \
14179file_magic_cmd \
14180AR \
14181AR_FLAGS \
14182STRIP \
14183RANLIB \
14184CC \
14185CFLAGS \
14186compiler \
14187lt_cv_sys_global_symbol_pipe \
14188lt_cv_sys_global_symbol_to_cdecl \
14189lt_cv_sys_global_symbol_to_c_name_address \
14190lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14191SHELL \
14192ECHO \
14193lt_prog_compiler_no_builtin_flag \
14194lt_prog_compiler_wl \
14195lt_prog_compiler_pic \
14196lt_prog_compiler_static \
14197lt_cv_prog_compiler_c_o \
14198need_locks \
14199DSYMUTIL \
14200NMEDIT \
14201LIPO \
14202OTOOL \
14203OTOOL64 \
14204shrext_cmds \
14205export_dynamic_flag_spec \
14206whole_archive_flag_spec \
14207compiler_needs_object \
14208with_gnu_ld \
14209allow_undefined_flag \
14210no_undefined_flag \
14211hardcode_libdir_flag_spec \
14212hardcode_libdir_flag_spec_ld \
14213hardcode_libdir_separator \
14214fix_srcfile_path \
14215exclude_expsyms \
14216include_expsyms \
14217file_list_spec \
14218variables_saved_for_relink \
14219libname_spec \
14220library_names_spec \
14221soname_spec \
14222finish_eval \
14223old_striplib \
14224striplib; do
14225 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14226 *[\\\\\\\`\\"\\\$]*)
14227 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14228 ;;
14229 *)
14230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14231 ;;
14232 esac
14233done
14234
14235# Double-quote double-evaled strings.
14236for var in reload_cmds \
14237old_postinstall_cmds \
14238old_postuninstall_cmds \
14239old_archive_cmds \
14240extract_expsyms_cmds \
14241old_archive_from_new_cmds \
14242old_archive_from_expsyms_cmds \
14243archive_cmds \
14244archive_expsym_cmds \
14245module_cmds \
14246module_expsym_cmds \
14247export_symbols_cmds \
14248prelink_cmds \
14249postinstall_cmds \
14250postuninstall_cmds \
14251finish_cmds \
14252sys_lib_search_path_spec \
14253sys_lib_dlsearch_path_spec; do
14254 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14255 *[\\\\\\\`\\"\\\$]*)
14256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14257 ;;
14258 *)
14259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14260 ;;
14261 esac
14262done
14263
14264# Fix-up fallback echo if it was mangled by the above quoting rules.
14265case \$lt_ECHO in
14266*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14267 ;;
14268esac
14269
14270ac_aux_dir='$ac_aux_dir'
14271xsi_shell='$xsi_shell'
14272lt_shell_append='$lt_shell_append'
14273
14274# See if we are running on zsh, and set the options which allow our
14275# commands through without removal of \ escapes INIT.
14276if test -n "\${ZSH_VERSION+set}" ; then
14277 setopt NO_GLOB_SUBST
14278fi
14279
14280
14281 PACKAGE='$PACKAGE'
14282 VERSION='$VERSION'
14283 TIMESTAMP='$TIMESTAMP'
14284 RM='$RM'
14285 ofile='$ofile'
14286
14287
14288
14289
14290_ACEOF
14291
14292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14293
14294# Handling of arguments.
14295for ac_config_target in $ac_config_targets
14296do
14297 case $ac_config_target in
14298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14300 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14301 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h" ;;
14302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14303
14304 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14305$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14306 { (exit 1); exit 1; }; };;
14307 esac
14308done
14309
14310
14311# If the user did not use the arguments to specify the items to instantiate,
14312# then the envvar interface is used. Set only those that are not.
14313# We use the long form for the default assignment because of an extremely
14314# bizarre bug on SunOS 4.1.3.
14315if $ac_need_defaults; then
14316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14319fi
14320
14321# Have a temporary directory for convenience. Make it in the build tree
14322# simply because there is no reason against having it here, and in addition,
14323# creating and moving files from /tmp can sometimes cause problems.
14324# Hook for its removal unless debugging.
14325# Note that there is a small window in which the directory will not be cleaned:
14326# after its creation but before its name has been assigned to `$tmp'.
14327$debug ||
14328{
14329 tmp=
14330 trap 'exit_status=$?
14331 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14332' 0
14333 trap '{ (exit 1); exit 1; }' 1 2 13 15
14334}
14335# Create a (secure) tmp directory for tmp files.
14336
14337{
14338 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14339 test -n "$tmp" && test -d "$tmp"
14340} ||
14341{
14342 tmp=./conf$$-$RANDOM
14343 (umask 077 && mkdir "$tmp")
14344} ||
14345{
14346 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14347 { (exit 1); exit 1; }
14348}
14349
14350# Set up the scripts for CONFIG_FILES section.
14351# No need to generate them if there are no CONFIG_FILES.
14352# This happens for instance with `./config.status config.h'.
14353if test -n "$CONFIG_FILES"; then
14354
14355
14356ac_cr=' '
14357ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14358if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14359 ac_cs_awk_cr='\\r'
14360else
14361 ac_cs_awk_cr=$ac_cr
14362fi
14363
14364echo 'BEGIN {' >"$tmp/subs1.awk" &&
14365_ACEOF
14366
14367
14368{
14369 echo "cat >conf$$subs.awk <<_ACEOF" &&
14370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14371 echo "_ACEOF"
14372} >conf$$subs.sh ||
14373 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14374$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14375 { (exit 1); exit 1; }; }
14376ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14377ac_delim='%!_!# '
14378for ac_last_try in false false false false false :; do
14379 . ./conf$$subs.sh ||
14380 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14381$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14382 { (exit 1); exit 1; }; }
14383
14384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14385 if test $ac_delim_n = $ac_delim_num; then
14386 break
14387 elif $ac_last_try; then
14388 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14389$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14390 { (exit 1); exit 1; }; }
14391 else
14392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14393 fi
14394done
14395rm -f conf$$subs.sh
14396
14397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14398cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14399_ACEOF
14400sed -n '
14401h
14402s/^/S["/; s/!.*/"]=/
14403p
14404g
14405s/^[^!]*!//
14406:repl
14407t repl
14408s/'"$ac_delim"'$//
14409t delim
14410:nl
14411h
14412s/\(.\{148\}\).*/\1/
14413t more1
14414s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14415p
14416n
14417b repl
14418:more1
14419s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14420p
14421g
14422s/.\{148\}//
14423t nl
14424:delim
14425h
14426s/\(.\{148\}\).*/\1/
14427t more2
14428s/["\\]/\\&/g; s/^/"/; s/$/"/
14429p
14430b
14431:more2
14432s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14433p
14434g
14435s/.\{148\}//
14436t delim
14437' <conf$$subs.awk | sed '
14438/^[^""]/{
14439 N
14440 s/\n//
14441}
14442' >>$CONFIG_STATUS || ac_write_fail=1
14443rm -f conf$$subs.awk
14444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14445_ACAWK
14446cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14447 for (key in S) S_is_set[key] = 1
14448 FS = ""
14449
14450}
14451{
14452 line = $ 0
14453 nfields = split(line, field, "@")
14454 substed = 0
14455 len = length(field[1])
14456 for (i = 2; i < nfields; i++) {
14457 key = field[i]
14458 keylen = length(key)
14459 if (S_is_set[key]) {
14460 value = S[key]
14461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14462 len += length(value) + length(field[++i])
14463 substed = 1
14464 } else
14465 len += 1 + keylen
14466 }
14467
14468 print line
14469}
14470
14471_ACAWK
14472_ACEOF
14473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14474if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14476else
14477 cat
14478fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14479 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14480$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14481 { (exit 1); exit 1; }; }
14482_ACEOF
14483
14484# VPATH may cause trouble with some makes, so we remove $(srcdir),
14485# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14486# trailing colons and then remove the whole line if VPATH becomes empty
14487# (actually we leave an empty line to preserve line numbers).
14488if test "x$srcdir" = x.; then
14489 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14490s/:*\$(srcdir):*/:/
14491s/:*\${srcdir}:*/:/
14492s/:*@srcdir@:*/:/
14493s/^\([^=]*=[ ]*\):*/\1/
14494s/:*$//
14495s/^[^=]*=[ ]*$//
14496}'
14497fi
14498
14499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14500fi # test -n "$CONFIG_FILES"
14501
14502# Set up the scripts for CONFIG_HEADERS section.
14503# No need to generate them if there are no CONFIG_HEADERS.
14504# This happens for instance with `./config.status Makefile'.
14505if test -n "$CONFIG_HEADERS"; then
14506cat >"$tmp/defines.awk" <<\_ACAWK ||
14507BEGIN {
14508_ACEOF
14509
14510# Transform confdefs.h into an awk script `defines.awk', embedded as
14511# here-document in config.status, that substitutes the proper values into
14512# config.h.in to produce config.h.
14513
14514# Create a delimiter string that does not exist in confdefs.h, to ease
14515# handling of long lines.
14516ac_delim='%!_!# '
14517for ac_last_try in false false :; do
14518 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14519 if test -z "$ac_t"; then
14520 break
14521 elif $ac_last_try; then
14522 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14523$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14524 { (exit 1); exit 1; }; }
14525 else
14526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14527 fi
14528done
14529
14530# For the awk script, D is an array of macro values keyed by name,
14531# likewise P contains macro parameters if any. Preserve backslash
14532# newline sequences.
14533
14534ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14535sed -n '
14536s/.\{148\}/&'"$ac_delim"'/g
14537t rset
14538:rset
14539s/^[ ]*#[ ]*define[ ][ ]*/ /
14540t def
14541d
14542:def
14543s/\\$//
14544t bsnl
14545s/["\\]/\\&/g
14546s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14547D["\1"]=" \3"/p
14548s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14549d
14550:bsnl
14551s/["\\]/\\&/g
14552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14553D["\1"]=" \3\\\\\\n"\\/p
14554t cont
14555s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14556t cont
14557d
14558:cont
14559n
14560s/.\{148\}/&'"$ac_delim"'/g
14561t clear
14562:clear
14563s/\\$//
14564t bsnlc
14565s/["\\]/\\&/g; s/^/"/; s/$/"/p
14566d
14567:bsnlc
14568s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14569b cont
14570' <confdefs.h | sed '
14571s/'"$ac_delim"'/"\\\
14572"/g' >>$CONFIG_STATUS || ac_write_fail=1
14573
14574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14575 for (key in D) D_is_set[key] = 1
14576 FS = ""
14577}
14578/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14579 line = \$ 0
14580 split(line, arg, " ")
14581 if (arg[1] == "#") {
14582 defundef = arg[2]
14583 mac1 = arg[3]
14584 } else {
14585 defundef = substr(arg[1], 2)
14586 mac1 = arg[2]
14587 }
14588 split(mac1, mac2, "(") #)
14589 macro = mac2[1]
14590 prefix = substr(line, 1, index(line, defundef) - 1)
14591 if (D_is_set[macro]) {
14592 # Preserve the white space surrounding the "#".
14593 print prefix "define", macro P[macro] D[macro]
14594 next
14595 } else {
14596 # Replace #undef with comments. This is necessary, for example,
14597 # in the case of _POSIX_SOURCE, which is predefined and required
14598 # on some systems where configure will not decide to define it.
14599 if (defundef == "undef") {
14600 print "/*", prefix defundef, macro, "*/"
14601 next
14602 }
14603 }
14604}
14605{ print }
14606_ACAWK
14607_ACEOF
14608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14609 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14610$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14611 { (exit 1); exit 1; }; }
14612fi # test -n "$CONFIG_HEADERS"
14613
14614
14615eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14616shift
14617for ac_tag
14618do
14619 case $ac_tag in
14620 :[FHLC]) ac_mode=$ac_tag; continue;;
14621 esac
14622 case $ac_mode$ac_tag in
14623 :[FHL]*:*);;
14624 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14625$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14626 { (exit 1); exit 1; }; };;
14627 :[FH]-) ac_tag=-:-;;
14628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14629 esac
14630 ac_save_IFS=$IFS
14631 IFS=:
14632 set x $ac_tag
14633 IFS=$ac_save_IFS
14634 shift
14635 ac_file=$1
14636 shift
14637
14638 case $ac_mode in
14639 :L) ac_source=$1;;
14640 :[FH])
14641 ac_file_inputs=
14642 for ac_f
14643 do
14644 case $ac_f in
14645 -) ac_f="$tmp/stdin";;
14646 *) # Look for the file first in the build tree, then in the source tree
14647 # (if the path is not absolute). The absolute path cannot be DOS-style,
14648 # because $ac_f cannot contain `:'.
14649 test -f "$ac_f" ||
14650 case $ac_f in
14651 [\\/$]*) false;;
14652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14653 esac ||
14654 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14655$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14656 { (exit 1); exit 1; }; };;
14657 esac
14658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14659 ac_file_inputs="$ac_file_inputs '$ac_f'"
14660 done
14661
14662 # Let's still pretend it is `configure' which instantiates (i.e., don't
14663 # use $as_me), people would be surprised to read:
14664 # /* config.h. Generated by config.status. */
14665 configure_input='Generated from '`
14666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14667 `' by configure.'
14668 if test x"$ac_file" != x-; then
14669 configure_input="$ac_file. $configure_input"
14670 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14671$as_echo "$as_me: creating $ac_file" >&6;}
14672 fi
14673 # Neutralize special characters interpreted by sed in replacement strings.
14674 case $configure_input in #(
14675 *\&* | *\|* | *\\* )
14676 ac_sed_conf_input=`$as_echo "$configure_input" |
14677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14678 *) ac_sed_conf_input=$configure_input;;
14679 esac
14680
14681 case $ac_tag in
14682 *:-:* | *:-) cat >"$tmp/stdin" \
14683 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14684$as_echo "$as_me: error: could not create $ac_file" >&2;}
14685 { (exit 1); exit 1; }; } ;;
14686 esac
14687 ;;
14688 esac
14689
14690 ac_dir=`$as_dirname -- "$ac_file" ||
14691$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14692 X"$ac_file" : 'X\(//\)[^/]' \| \
14693 X"$ac_file" : 'X\(//\)$' \| \
14694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14695$as_echo X"$ac_file" |
14696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14697 s//\1/
14698 q
14699 }
14700 /^X\(\/\/\)[^/].*/{
14701 s//\1/
14702 q
14703 }
14704 /^X\(\/\/\)$/{
14705 s//\1/
14706 q
14707 }
14708 /^X\(\/\).*/{
14709 s//\1/
14710 q
14711 }
14712 s/.*/./; q'`
14713 { as_dir="$ac_dir"
14714 case $as_dir in #(
14715 -*) as_dir=./$as_dir;;
14716 esac
14717 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14718 as_dirs=
14719 while :; do
14720 case $as_dir in #(
14721 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14722 *) as_qdir=$as_dir;;
14723 esac
14724 as_dirs="'$as_qdir' $as_dirs"
14725 as_dir=`$as_dirname -- "$as_dir" ||
14726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14727 X"$as_dir" : 'X\(//\)[^/]' \| \
14728 X"$as_dir" : 'X\(//\)$' \| \
14729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14730$as_echo X"$as_dir" |
14731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14732 s//\1/
14733 q
14734 }
14735 /^X\(\/\/\)[^/].*/{
14736 s//\1/
14737 q
14738 }
14739 /^X\(\/\/\)$/{
14740 s//\1/
14741 q
14742 }
14743 /^X\(\/\).*/{
14744 s//\1/
14745 q
14746 }
14747 s/.*/./; q'`
14748 test -d "$as_dir" && break
14749 done
14750 test -z "$as_dirs" || eval "mkdir $as_dirs"
14751 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14752$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14753 { (exit 1); exit 1; }; }; }
14754 ac_builddir=.
14755
14756case "$ac_dir" in
14757.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14758*)
14759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14760 # A ".." for each directory in $ac_dir_suffix.
14761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14762 case $ac_top_builddir_sub in
14763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14765 esac ;;
14766esac
14767ac_abs_top_builddir=$ac_pwd
14768ac_abs_builddir=$ac_pwd$ac_dir_suffix
14769# for backward compatibility:
14770ac_top_builddir=$ac_top_build_prefix
14771
14772case $srcdir in
14773 .) # We are building in place.
14774 ac_srcdir=.
14775 ac_top_srcdir=$ac_top_builddir_sub
14776 ac_abs_top_srcdir=$ac_pwd ;;
14777 [\\/]* | ?:[\\/]* ) # Absolute name.
14778 ac_srcdir=$srcdir$ac_dir_suffix;
14779 ac_top_srcdir=$srcdir
14780 ac_abs_top_srcdir=$srcdir ;;
14781 *) # Relative name.
14782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14783 ac_top_srcdir=$ac_top_build_prefix$srcdir
14784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14785esac
14786ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14787
14788
14789 case $ac_mode in
14790 :F)
14791 #
14792 # CONFIG_FILE
14793 #
14794
14795 case $INSTALL in
14796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14797 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14798 esac
14799 ac_MKDIR_P=$MKDIR_P
14800 case $MKDIR_P in
14801 [\\/$]* | ?:[\\/]* ) ;;
14802 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14803 esac
14804_ACEOF
14805
14806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14807# If the template does not know about datarootdir, expand it.
14808# FIXME: This hack should be removed a few years after 2.60.
14809ac_datarootdir_hack=; ac_datarootdir_seen=
14810
14811ac_sed_dataroot='
14812/datarootdir/ {
14813 p
14814 q
14815}
14816/@datadir@/p
14817/@docdir@/p
14818/@infodir@/p
14819/@localedir@/p
14820/@mandir@/p
14821'
14822case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14823*datarootdir*) ac_datarootdir_seen=yes;;
14824*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14825 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14826$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14827_ACEOF
14828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14829 ac_datarootdir_hack='
14830 s&@datadir@&$datadir&g
14831 s&@docdir@&$docdir&g
14832 s&@infodir@&$infodir&g
14833 s&@localedir@&$localedir&g
14834 s&@mandir@&$mandir&g
14835 s&\\\${datarootdir}&$datarootdir&g' ;;
14836esac
14837_ACEOF
14838
14839# Neutralize VPATH when `$srcdir' = `.'.
14840# Shell code in configure.ac might set extrasub.
14841# FIXME: do we really want to maintain this feature?
14842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14843ac_sed_extra="$ac_vpsub
14844$extrasub
14845_ACEOF
14846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14847:t
14848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14849s|@configure_input@|$ac_sed_conf_input|;t t
14850s&@top_builddir@&$ac_top_builddir_sub&;t t
14851s&@top_build_prefix@&$ac_top_build_prefix&;t t
14852s&@srcdir@&$ac_srcdir&;t t
14853s&@abs_srcdir@&$ac_abs_srcdir&;t t
14854s&@top_srcdir@&$ac_top_srcdir&;t t
14855s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14856s&@builddir@&$ac_builddir&;t t
14857s&@abs_builddir@&$ac_abs_builddir&;t t
14858s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14859s&@INSTALL@&$ac_INSTALL&;t t
14860s&@MKDIR_P@&$ac_MKDIR_P&;t t
14861$ac_datarootdir_hack
14862"
14863eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14864 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14865$as_echo "$as_me: error: could not create $ac_file" >&2;}
14866 { (exit 1); exit 1; }; }
14867
14868test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14871 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14872which seems to be undefined. Please make sure it is defined." >&5
14873$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14874which seems to be undefined. Please make sure it is defined." >&2;}
14875
14876 rm -f "$tmp/stdin"
14877 case $ac_file in
14878 -) cat "$tmp/out" && rm -f "$tmp/out";;
14879 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14880 esac \
14881 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14882$as_echo "$as_me: error: could not create $ac_file" >&2;}
14883 { (exit 1); exit 1; }; }
14884 ;;
14885 :H)
14886 #
14887 # CONFIG_HEADER
14888 #
14889 if test x"$ac_file" != x-; then
14890 {
14891 $as_echo "/* $configure_input */" \
14892 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14893 } >"$tmp/config.h" \
14894 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14895$as_echo "$as_me: error: could not create $ac_file" >&2;}
14896 { (exit 1); exit 1; }; }
14897 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14898 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14899$as_echo "$as_me: $ac_file is unchanged" >&6;}
14900 else
14901 rm -f "$ac_file"
14902 mv "$tmp/config.h" "$ac_file" \
14903 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14904$as_echo "$as_me: error: could not create $ac_file" >&2;}
14905 { (exit 1); exit 1; }; }
14906 fi
14907 else
14908 $as_echo "/* $configure_input */" \
14909 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14910 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14911$as_echo "$as_me: error: could not create -" >&2;}
14912 { (exit 1); exit 1; }; }
14913 fi
14914# Compute "$ac_file"'s index in $config_headers.
14915_am_arg="$ac_file"
14916_am_stamp_count=1
14917for _am_header in $config_headers :; do
14918 case $_am_header in
14919 $_am_arg | $_am_arg:* )
14920 break ;;
14921 * )
14922 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14923 esac
14924done
14925echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14926$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14927 X"$_am_arg" : 'X\(//\)[^/]' \| \
14928 X"$_am_arg" : 'X\(//\)$' \| \
14929 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14930$as_echo X"$_am_arg" |
14931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14932 s//\1/
14933 q
14934 }
14935 /^X\(\/\/\)[^/].*/{
14936 s//\1/
14937 q
14938 }
14939 /^X\(\/\/\)$/{
14940 s//\1/
14941 q
14942 }
14943 /^X\(\/\).*/{
14944 s//\1/
14945 q
14946 }
14947 s/.*/./; q'`/stamp-h$_am_stamp_count
14948 ;;
14949
14950 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14951$as_echo "$as_me: executing $ac_file commands" >&6;}
14952 ;;
14953 esac
14954
14955
14956 case $ac_file$ac_mode in
14957 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14958# are listed without --file. Let's play safe and only enable the eval
14959# if we detect the quoting.
14960case $CONFIG_FILES in
14961*\'*) eval set x "$CONFIG_FILES" ;;
14962*) set x $CONFIG_FILES ;;
14963esac
14964shift
14965for mf
14966do
14967 # Strip MF so we end up with the name of the file.
14968 mf=`echo "$mf" | sed -e 's/:.*$//'`
14969 # Check whether this is an Automake generated Makefile or not.
14970 # We used to match only the files named `Makefile.in', but
14971 # some people rename them; so instead we look at the file content.
14972 # Grep'ing the first line is not enough: some people post-process
14973 # each Makefile.in and add a new line on top of each file to say so.
14974 # Grep'ing the whole file is not good either: AIX grep has a line
14975 # limit of 2048, but all sed's we know have understand at least 4000.
14976 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14977 dirpart=`$as_dirname -- "$mf" ||
14978$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14979 X"$mf" : 'X\(//\)[^/]' \| \
14980 X"$mf" : 'X\(//\)$' \| \
14981 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14982$as_echo X"$mf" |
14983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14984 s//\1/
14985 q
14986 }
14987 /^X\(\/\/\)[^/].*/{
14988 s//\1/
14989 q
14990 }
14991 /^X\(\/\/\)$/{
14992 s//\1/
14993 q
14994 }
14995 /^X\(\/\).*/{
14996 s//\1/
14997 q
14998 }
14999 s/.*/./; q'`
15000 else
15001 continue
15002 fi
15003 # Extract the definition of DEPDIR, am__include, and am__quote
15004 # from the Makefile without running `make'.
15005 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15006 test -z "$DEPDIR" && continue
15007 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15008 test -z "am__include" && continue
15009 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15010 # When using ansi2knr, U may be empty or an underscore; expand it
15011 U=`sed -n 's/^U = //p' < "$mf"`
15012 # Find all dependency output files, they are included files with
15013 # $(DEPDIR) in their names. We invoke sed twice because it is the
15014 # simplest approach to changing $(DEPDIR) to its actual value in the
15015 # expansion.
15016 for file in `sed -n "
15017 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15018 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15019 # Make sure the directory exists.
15020 test -f "$dirpart/$file" && continue
15021 fdir=`$as_dirname -- "$file" ||
15022$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15023 X"$file" : 'X\(//\)[^/]' \| \
15024 X"$file" : 'X\(//\)$' \| \
15025 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15026$as_echo X"$file" |
15027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15028 s//\1/
15029 q
15030 }
15031 /^X\(\/\/\)[^/].*/{
15032 s//\1/
15033 q
15034 }
15035 /^X\(\/\/\)$/{
15036 s//\1/
15037 q
15038 }
15039 /^X\(\/\).*/{
15040 s//\1/
15041 q
15042 }
15043 s/.*/./; q'`
15044 { as_dir=$dirpart/$fdir
15045 case $as_dir in #(
15046 -*) as_dir=./$as_dir;;
15047 esac
15048 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15049 as_dirs=
15050 while :; do
15051 case $as_dir in #(
15052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15053 *) as_qdir=$as_dir;;
15054 esac
15055 as_dirs="'$as_qdir' $as_dirs"
15056 as_dir=`$as_dirname -- "$as_dir" ||
15057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15058 X"$as_dir" : 'X\(//\)[^/]' \| \
15059 X"$as_dir" : 'X\(//\)$' \| \
15060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15061$as_echo X"$as_dir" |
15062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15063 s//\1/
15064 q
15065 }
15066 /^X\(\/\/\)[^/].*/{
15067 s//\1/
15068 q
15069 }
15070 /^X\(\/\/\)$/{
15071 s//\1/
15072 q
15073 }
15074 /^X\(\/\).*/{
15075 s//\1/
15076 q
15077 }
15078 s/.*/./; q'`
15079 test -d "$as_dir" && break
15080 done
15081 test -z "$as_dirs" || eval "mkdir $as_dirs"
15082 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15083$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15084 { (exit 1); exit 1; }; }; }
15085 # echo "creating $dirpart/$file"
15086 echo '# dummy' > "$dirpart/$file"
15087 done
15088done
15089 ;;
15090 "libtool":C)
15091
15092 # See if we are running on zsh, and set the options which allow our
15093 # commands through without removal of \ escapes.
15094 if test -n "${ZSH_VERSION+set}" ; then
15095 setopt NO_GLOB_SUBST
15096 fi
15097
15098 cfgfile="${ofile}T"
15099 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15100 $RM "$cfgfile"
15101
15102 cat <<_LT_EOF >> "$cfgfile"
15103#! $SHELL
15104
15105# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15106# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15107# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15108# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15109#
15110# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15111# 2006, 2007, 2008 Free Software Foundation, Inc.
15112# Written by Gordon Matzigkeit, 1996
15113#
15114# This file is part of GNU Libtool.
15115#
15116# GNU Libtool is free software; you can redistribute it and/or
15117# modify it under the terms of the GNU General Public License as
15118# published by the Free Software Foundation; either version 2 of
15119# the License, or (at your option) any later version.
15120#
15121# As a special exception to the GNU General Public License,
15122# if you distribute this file as part of a program or library that
15123# is built using GNU Libtool, you may include this file under the
15124# same distribution terms that you use for the rest of that program.
15125#
15126# GNU Libtool is distributed in the hope that it will be useful,
15127# but WITHOUT ANY WARRANTY; without even the implied warranty of
15128# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15129# GNU General Public License for more details.
15130#
15131# You should have received a copy of the GNU General Public License
15132# along with GNU Libtool; see the file COPYING. If not, a copy
15133# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15134# obtained by writing to the Free Software Foundation, Inc.,
15135# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15136
15137
15138# The names of the tagged configurations supported by this script.
15139available_tags=""
15140
15141# ### BEGIN LIBTOOL CONFIG
15142
15143# Which release of libtool.m4 was used?
15144macro_version=$macro_version
15145macro_revision=$macro_revision
15146
15147# Whether or not to build shared libraries.
15148build_libtool_libs=$enable_shared
15149
15150# Whether or not to build static libraries.
15151build_old_libs=$enable_static
15152
15153# What type of objects to build.
15154pic_mode=$pic_mode
15155
15156# Whether or not to optimize for fast installation.
15157fast_install=$enable_fast_install
15158
15159# The host system.
15160host_alias=$host_alias
15161host=$host
15162host_os=$host_os
15163
15164# The build system.
15165build_alias=$build_alias
15166build=$build
15167build_os=$build_os
15168
15169# A sed program that does not truncate output.
15170SED=$lt_SED
15171
15172# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15173Xsed="\$SED -e 1s/^X//"
15174
15175# A grep program that handles long lines.
15176GREP=$lt_GREP
15177
15178# An ERE matcher.
15179EGREP=$lt_EGREP
15180
15181# A literal string matcher.
15182FGREP=$lt_FGREP
15183
15184# A BSD- or MS-compatible name lister.
15185NM=$lt_NM
15186
15187# Whether we need soft or hard links.
15188LN_S=$lt_LN_S
15189
15190# What is the maximum length of a command?
15191max_cmd_len=$max_cmd_len
15192
15193# Object file suffix (normally "o").
15194objext=$ac_objext
15195
15196# Executable file suffix (normally "").
15197exeext=$exeext
15198
15199# whether the shell understands "unset".
15200lt_unset=$lt_unset
15201
15202# turn spaces into newlines.
15203SP2NL=$lt_lt_SP2NL
15204
15205# turn newlines into spaces.
15206NL2SP=$lt_lt_NL2SP
15207
15208# How to create reloadable object files.
15209reload_flag=$lt_reload_flag
15210reload_cmds=$lt_reload_cmds
15211
15212# An object symbol dumper.
15213OBJDUMP=$lt_OBJDUMP
15214
15215# Method to check whether dependent libraries are shared objects.
15216deplibs_check_method=$lt_deplibs_check_method
15217
15218# Command to use when deplibs_check_method == "file_magic".
15219file_magic_cmd=$lt_file_magic_cmd
15220
15221# The archiver.
15222AR=$lt_AR
15223AR_FLAGS=$lt_AR_FLAGS
15224
15225# A symbol stripping program.
15226STRIP=$lt_STRIP
15227
15228# Commands used to install an old-style archive.
15229RANLIB=$lt_RANLIB
15230old_postinstall_cmds=$lt_old_postinstall_cmds
15231old_postuninstall_cmds=$lt_old_postuninstall_cmds
15232
15233# A C compiler.
15234LTCC=$lt_CC
15235
15236# LTCC compiler flags.
15237LTCFLAGS=$lt_CFLAGS
15238
15239# Take the output of nm and produce a listing of raw symbols and C names.
15240global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15241
15242# Transform the output of nm in a proper C declaration.
15243global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15244
15245# Transform the output of nm in a C name address pair.
15246global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15247
15248# Transform the output of nm in a C name address pair when lib prefix is needed.
15249global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15250
15251# The name of the directory that contains temporary libtool files.
15252objdir=$objdir
15253
15254# Shell to use when invoking shell scripts.
15255SHELL=$lt_SHELL
15256
15257# An echo program that does not interpret backslashes.
15258ECHO=$lt_ECHO
15259
15260# Used to examine libraries when file_magic_cmd begins with "file".
15261MAGIC_CMD=$MAGIC_CMD
15262
15263# Must we lock files when doing compilation?
15264need_locks=$lt_need_locks
15265
15266# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15267DSYMUTIL=$lt_DSYMUTIL
15268
15269# Tool to change global to local symbols on Mac OS X.
15270NMEDIT=$lt_NMEDIT
15271
15272# Tool to manipulate fat objects and archives on Mac OS X.
15273LIPO=$lt_LIPO
15274
15275# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15276OTOOL=$lt_OTOOL
15277
15278# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15279OTOOL64=$lt_OTOOL64
15280
15281# Old archive suffix (normally "a").
15282libext=$libext
15283
15284# Shared library suffix (normally ".so").
15285shrext_cmds=$lt_shrext_cmds
15286
15287# The commands to extract the exported symbol list from a shared archive.
15288extract_expsyms_cmds=$lt_extract_expsyms_cmds
15289
15290# Variables whose values should be saved in libtool wrapper scripts and
15291# restored at link time.
15292variables_saved_for_relink=$lt_variables_saved_for_relink
15293
15294# Do we need the "lib" prefix for modules?
15295need_lib_prefix=$need_lib_prefix
15296
15297# Do we need a version for libraries?
15298need_version=$need_version
15299
15300# Library versioning type.
15301version_type=$version_type
15302
15303# Shared library runtime path variable.
15304runpath_var=$runpath_var
15305
15306# Shared library path variable.
15307shlibpath_var=$shlibpath_var
15308
15309# Is shlibpath searched before the hard-coded library search path?
15310shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15311
15312# Format of library name prefix.
15313libname_spec=$lt_libname_spec
15314
15315# List of archive names. First name is the real one, the rest are links.
15316# The last name is the one that the linker finds with -lNAME
15317library_names_spec=$lt_library_names_spec
15318
15319# The coded name of the library, if different from the real name.
15320soname_spec=$lt_soname_spec
15321
15322# Command to use after installation of a shared archive.
15323postinstall_cmds=$lt_postinstall_cmds
15324
15325# Command to use after uninstallation of a shared archive.
15326postuninstall_cmds=$lt_postuninstall_cmds
15327
15328# Commands used to finish a libtool library installation in a directory.
15329finish_cmds=$lt_finish_cmds
15330
15331# As "finish_cmds", except a single script fragment to be evaled but
15332# not shown.
15333finish_eval=$lt_finish_eval
15334
15335# Whether we should hardcode library paths into libraries.
15336hardcode_into_libs=$hardcode_into_libs
15337
15338# Compile-time system search path for libraries.
15339sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15340
15341# Run-time system search path for libraries.
15342sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15343
15344# Whether dlopen is supported.
15345dlopen_support=$enable_dlopen
15346
15347# Whether dlopen of programs is supported.
15348dlopen_self=$enable_dlopen_self
15349
15350# Whether dlopen of statically linked programs is supported.
15351dlopen_self_static=$enable_dlopen_self_static
15352
15353# Commands to strip libraries.
15354old_striplib=$lt_old_striplib
15355striplib=$lt_striplib
15356
15357
15358# The linker used to build libraries.
15359LD=$lt_LD
15360
15361# Commands used to build an old-style archive.
15362old_archive_cmds=$lt_old_archive_cmds
15363
15364# A language specific compiler.
15365CC=$lt_compiler
15366
15367# Is the compiler the GNU compiler?
15368with_gcc=$GCC
15369
15370# Compiler flag to turn off builtin functions.
15371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15372
15373# How to pass a linker flag through the compiler.
15374wl=$lt_lt_prog_compiler_wl
15375
15376# Additional compiler flags for building library objects.
15377pic_flag=$lt_lt_prog_compiler_pic
15378
15379# Compiler flag to prevent dynamic linking.
15380link_static_flag=$lt_lt_prog_compiler_static
15381
15382# Does compiler simultaneously support -c and -o options?
15383compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15384
15385# Whether or not to add -lc for building shared libraries.
15386build_libtool_need_lc=$archive_cmds_need_lc
15387
15388# Whether or not to disallow shared libs when runtime libs are static.
15389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15390
15391# Compiler flag to allow reflexive dlopens.
15392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15393
15394# Compiler flag to generate shared objects directly from archives.
15395whole_archive_flag_spec=$lt_whole_archive_flag_spec
15396
15397# Whether the compiler copes with passing no objects directly.
15398compiler_needs_object=$lt_compiler_needs_object
15399
15400# Create an old-style archive from a shared archive.
15401old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15402
15403# Create a temporary old-style archive to link instead of a shared archive.
15404old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15405
15406# Commands used to build a shared archive.
15407archive_cmds=$lt_archive_cmds
15408archive_expsym_cmds=$lt_archive_expsym_cmds
15409
15410# Commands used to build a loadable module if different from building
15411# a shared archive.
15412module_cmds=$lt_module_cmds
15413module_expsym_cmds=$lt_module_expsym_cmds
15414
15415# Whether we are building with GNU ld or not.
15416with_gnu_ld=$lt_with_gnu_ld
15417
15418# Flag that allows shared libraries with undefined symbols to be built.
15419allow_undefined_flag=$lt_allow_undefined_flag
15420
15421# Flag that enforces no undefined symbols.
15422no_undefined_flag=$lt_no_undefined_flag
15423
15424# Flag to hardcode \$libdir into a binary during linking.
15425# This must work even if \$libdir does not exist
15426hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15427
15428# If ld is used when linking, flag to hardcode \$libdir into a binary
15429# during linking. This must work even if \$libdir does not exist.
15430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15431
15432# Whether we need a single "-rpath" flag with a separated argument.
15433hardcode_libdir_separator=$lt_hardcode_libdir_separator
15434
15435# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15436# DIR into the resulting binary.
15437hardcode_direct=$hardcode_direct
15438
15439# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15440# DIR into the resulting binary and the resulting library dependency is
15441# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15442# library is relocated.
15443hardcode_direct_absolute=$hardcode_direct_absolute
15444
15445# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15446# into the resulting binary.
15447hardcode_minus_L=$hardcode_minus_L
15448
15449# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15450# into the resulting binary.
15451hardcode_shlibpath_var=$hardcode_shlibpath_var
15452
15453# Set to "yes" if building a shared library automatically hardcodes DIR
15454# into the library and all subsequent libraries and executables linked
15455# against it.
15456hardcode_automatic=$hardcode_automatic
15457
15458# Set to yes if linker adds runtime paths of dependent libraries
15459# to runtime path list.
15460inherit_rpath=$inherit_rpath
15461
15462# Whether libtool must link a program against all its dependency libraries.
15463link_all_deplibs=$link_all_deplibs
15464
15465# Fix the shell variable \$srcfile for the compiler.
15466fix_srcfile_path=$lt_fix_srcfile_path
15467
15468# Set to "yes" if exported symbols are required.
15469always_export_symbols=$always_export_symbols
15470
15471# The commands to list exported symbols.
15472export_symbols_cmds=$lt_export_symbols_cmds
15473
15474# Symbols that should not be listed in the preloaded symbols.
15475exclude_expsyms=$lt_exclude_expsyms
15476
15477# Symbols that must always be exported.
15478include_expsyms=$lt_include_expsyms
15479
15480# Commands necessary for linking programs (against libraries) with templates.
15481prelink_cmds=$lt_prelink_cmds
15482
15483# Specify filename containing input files.
15484file_list_spec=$lt_file_list_spec
15485
15486# How to hardcode a shared library path into an executable.
15487hardcode_action=$hardcode_action
15488
15489# ### END LIBTOOL CONFIG
15490
15491_LT_EOF
15492
15493 case $host_os in
15494 aix3*)
15495 cat <<\_LT_EOF >> "$cfgfile"
15496# AIX sometimes has problems with the GCC collect2 program. For some
15497# reason, if we set the COLLECT_NAMES environment variable, the problems
15498# vanish in a puff of smoke.
15499if test "X${COLLECT_NAMES+set}" != Xset; then
15500 COLLECT_NAMES=
15501 export COLLECT_NAMES
15502fi
15503_LT_EOF
15504 ;;
15505 esac
15506
15507
15508ltmain="$ac_aux_dir/ltmain.sh"
15509
15510
15511 # We use sed instead of cat because bash on DJGPP gets confused if
15512 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15513 # text mode, it properly converts lines to CR/LF. This bash problem
15514 # is reportedly fixed, but why not run on old versions too?
15515 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15516 || (rm -f "$cfgfile"; exit 1)
15517
15518 case $xsi_shell in
15519 yes)
15520 cat << \_LT_EOF >> "$cfgfile"
15521
15522# func_dirname file append nondir_replacement
15523# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15524# otherwise set result to NONDIR_REPLACEMENT.
15525func_dirname ()
15526{
15527 case ${1} in
15528 */*) func_dirname_result="${1%/*}${2}" ;;
15529 * ) func_dirname_result="${3}" ;;
15530 esac
15531}
15532
15533# func_basename file
15534func_basename ()
15535{
15536 func_basename_result="${1##*/}"
15537}
15538
15539# func_dirname_and_basename file append nondir_replacement
15540# perform func_basename and func_dirname in a single function
15541# call:
15542# dirname: Compute the dirname of FILE. If nonempty,
15543# add APPEND to the result, otherwise set result
15544# to NONDIR_REPLACEMENT.
15545# value returned in "$func_dirname_result"
15546# basename: Compute filename of FILE.
15547# value retuned in "$func_basename_result"
15548# Implementation must be kept synchronized with func_dirname
15549# and func_basename. For efficiency, we do not delegate to
15550# those functions but instead duplicate the functionality here.
15551func_dirname_and_basename ()
15552{
15553 case ${1} in
15554 */*) func_dirname_result="${1%/*}${2}" ;;
15555 * ) func_dirname_result="${3}" ;;
15556 esac
15557 func_basename_result="${1##*/}"
15558}
15559
15560# func_stripname prefix suffix name
15561# strip PREFIX and SUFFIX off of NAME.
15562# PREFIX and SUFFIX must not contain globbing or regex special
15563# characters, hashes, percent signs, but SUFFIX may contain a leading
15564# dot (in which case that matches only a dot).
15565func_stripname ()
15566{
15567 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15568 # positional parameters, so assign one to ordinary parameter first.
15569 func_stripname_result=${3}
15570 func_stripname_result=${func_stripname_result#"${1}"}
15571 func_stripname_result=${func_stripname_result%"${2}"}
15572}
15573
15574# func_opt_split
15575func_opt_split ()
15576{
15577 func_opt_split_opt=${1%%=*}
15578 func_opt_split_arg=${1#*=}
15579}
15580
15581# func_lo2o object
15582func_lo2o ()
15583{
15584 case ${1} in
15585 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15586 *) func_lo2o_result=${1} ;;
15587 esac
15588}
15589
15590# func_xform libobj-or-source
15591func_xform ()
15592{
15593 func_xform_result=${1%.*}.lo
15594}
15595
15596# func_arith arithmetic-term...
15597func_arith ()
15598{
15599 func_arith_result=$(( $* ))
15600}
15601
15602# func_len string
15603# STRING may not start with a hyphen.
15604func_len ()
15605{
15606 func_len_result=${#1}
15607}
15608
15609_LT_EOF
15610 ;;
15611 *) # Bourne compatible functions.
15612 cat << \_LT_EOF >> "$cfgfile"
15613
15614# func_dirname file append nondir_replacement
15615# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15616# otherwise set result to NONDIR_REPLACEMENT.
15617func_dirname ()
15618{
15619 # Extract subdirectory from the argument.
15620 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15621 if test "X$func_dirname_result" = "X${1}"; then
15622 func_dirname_result="${3}"
15623 else
15624 func_dirname_result="$func_dirname_result${2}"
15625 fi
15626}
15627
15628# func_basename file
15629func_basename ()
15630{
15631 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15632}
15633
15634
15635# func_stripname prefix suffix name
15636# strip PREFIX and SUFFIX off of NAME.
15637# PREFIX and SUFFIX must not contain globbing or regex special
15638# characters, hashes, percent signs, but SUFFIX may contain a leading
15639# dot (in which case that matches only a dot).
15640# func_strip_suffix prefix name
15641func_stripname ()
15642{
15643 case ${2} in
15644 .*) func_stripname_result=`$ECHO "X${3}" \
15645 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15646 *) func_stripname_result=`$ECHO "X${3}" \
15647 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15648 esac
15649}
15650
15651# sed scripts:
15652my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15653my_sed_long_arg='1s/^-[^=]*=//'
15654
15655# func_opt_split
15656func_opt_split ()
15657{
15658 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15659 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15660}
15661
15662# func_lo2o object
15663func_lo2o ()
15664{
15665 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15666}
15667
15668# func_xform libobj-or-source
15669func_xform ()
15670{
15671 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15672}
15673
15674# func_arith arithmetic-term...
15675func_arith ()
15676{
15677 func_arith_result=`expr "$@"`
15678}
15679
15680# func_len string
15681# STRING may not start with a hyphen.
15682func_len ()
15683{
15684 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15685}
15686
15687_LT_EOF
15688esac
15689
15690case $lt_shell_append in
15691 yes)
15692 cat << \_LT_EOF >> "$cfgfile"
15693
15694# func_append var value
15695# Append VALUE to the end of shell variable VAR.
15696func_append ()
15697{
15698 eval "$1+=\$2"
15699}
15700_LT_EOF
15701 ;;
15702 *)
15703 cat << \_LT_EOF >> "$cfgfile"
15704
15705# func_append var value
15706# Append VALUE to the end of shell variable VAR.
15707func_append ()
15708{
15709 eval "$1=\$$1\$2"
15710}
15711
15712_LT_EOF
15713 ;;
15714 esac
15715
15716
15717 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15718 || (rm -f "$cfgfile"; exit 1)
15719
15720 mv -f "$cfgfile" "$ofile" ||
15721 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15722 chmod +x "$ofile"
15723
15724 ;;
15725
15726 esac
15727done # for ac_tag
15728
15729
15730{ (exit 0); exit 0; }
15731_ACEOF
15732chmod +x $CONFIG_STATUS
15733ac_clean_files=$ac_clean_files_save
15734
15735test $ac_write_fail = 0 ||
15736 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15737$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15738 { (exit 1); exit 1; }; }
15739
15740
15741# configure is writing to config.log, and then calls config.status.
15742# config.status does its own redirection, appending to config.log.
15743# Unfortunately, on DOS this fails, as config.log is still kept open
15744# by configure, so config.status won't be able to write to it; its
15745# output is simply discarded. So we exec the FD to /dev/null,
15746# effectively closing config.log, so it can be properly (re)opened and
15747# appended to by config.status. When coming back to configure, we
15748# need to make the FD available again.
15749if test "$no_create" != yes; then
15750 ac_cs_success=:
15751 ac_config_status_args=
15752 test "$silent" = yes &&
15753 ac_config_status_args="$ac_config_status_args --quiet"
15754 exec 5>/dev/null
15755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15756 exec 5>>config.log
15757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15758 # would make configure fail if this is the last instruction.
15759 $ac_cs_success || { (exit 1); exit 1; }
15760fi
15761if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15762 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15763$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15764fi
15765