Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if 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
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
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.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
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.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if 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; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_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
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$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 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
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
251 done
252 IFS=$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
259 if 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
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
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
280 if 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
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $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
355 fi
356
357 fi
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+"$@"}
367 fi
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; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell [email protected] 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
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `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';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (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
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
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 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_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.
570 as_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.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if 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
607 fi
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
613 if 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
711 fi
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.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 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.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="Makefile.am"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 # include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 # include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='LTLIBOBJS
788 LIBOBJS
789 lt_age
790 lt_revision
791 lt_current
792 LIBRAW1394_LIBS
793 LIBRAW1394_CFLAGS
794 PKG_CONFIG
795 CPP
796 OTOOL64
797 OTOOL
798 LIPO
799 NMEDIT
800 DSYMUTIL
801 lt_ECHO
802 RANLIB
803 AR
804 OBJDUMP
805 LN_S
806 NM
807 ac_ct_DUMPBIN
808 DUMPBIN
809 LD
810 FGREP
811 EGREP
812 GREP
813 SED
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 LIBTOOL
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
844 AWK
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_dependency_tracking
903 enable_shared
904 enable_static
905 with_pic
906 enable_fast_install
907 with_gnu_ld
908 enable_libtool_lock
909 enable_largefile
910 '
911 ac_precious_vars='build_alias
912 host_alias
913 target_alias
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP
920 PKG_CONFIG
921 LIBRAW1394_CFLAGS
922 LIBRAW1394_LIBS'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
946
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
980 ac_prev=
981 continue
982 fi
983
984 case $ac_option in
985 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 *) ac_optarg=yes ;;
987 esac
988
989 # Accept the important Cygnus configure options, so we can diagnose typos.
990
991 case $ac_dashdash$ac_option in
992 --)
993 ac_dashdash=yes ;;
994
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 ac_prev=bindir ;;
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 bindir=$ac_optarg ;;
999
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1004
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1011
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1014
1015 -datadir | --datadir | --datadi | --datad)
1016 ac_prev=datadir ;;
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1019
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1026
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=no ;;
1043
1044 -docdir | --docdir | --docdi | --doc | --do)
1045 ac_prev=docdir ;;
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1048
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 ac_prev=dvidir ;;
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
1053
1054 -enable-* | --enable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=\$ac_optarg ;;
1070
1071 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073 | --exec | --exe | --ex)
1074 ac_prev=exec_prefix ;;
1075 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077 | --exec=* | --exe=* | --ex=*)
1078 exec_prefix=$ac_optarg ;;
1079
1080 -gas | --gas | --ga | --g)
1081 # Obsolete; use --with-gas.
1082 with_gas=yes ;;
1083
1084 -help | --help | --hel | --he | -h)
1085 ac_init_help=long ;;
1086 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087 ac_init_help=recursive ;;
1088 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089 ac_init_help=short ;;
1090
1091 -host | --host | --hos | --ho)
1092 ac_prev=host_alias ;;
1093 -host=* | --host=* | --hos=* | --ho=*)
1094 host_alias=$ac_optarg ;;
1095
1096 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097 ac_prev=htmldir ;;
1098 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099 | --ht=*)
1100 htmldir=$ac_optarg ;;
1101
1102 -includedir | --includedir | --includedi | --included | --include \
1103 | --includ | --inclu | --incl | --inc)
1104 ac_prev=includedir ;;
1105 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106 | --includ=* | --inclu=* | --incl=* | --inc=*)
1107 includedir=$ac_optarg ;;
1108
1109 -infodir | --infodir | --infodi | --infod | --info | --inf)
1110 ac_prev=infodir ;;
1111 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112 infodir=$ac_optarg ;;
1113
1114 -libdir | --libdir | --libdi | --libd)
1115 ac_prev=libdir ;;
1116 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117 libdir=$ac_optarg ;;
1118
1119 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120 | --libexe | --libex | --libe)
1121 ac_prev=libexecdir ;;
1122 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123 | --libexe=* | --libex=* | --libe=*)
1124 libexecdir=$ac_optarg ;;
1125
1126 -localedir | --localedir | --localedi | --localed | --locale)
1127 ac_prev=localedir ;;
1128 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129 localedir=$ac_optarg ;;
1130
1131 -localstatedir | --localstatedir | --localstatedi | --localstated \
1132 | --localstate | --localstat | --localsta | --localst | --locals)
1133 ac_prev=localstatedir ;;
1134 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136 localstatedir=$ac_optarg ;;
1137
1138 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139 ac_prev=mandir ;;
1140 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141 mandir=$ac_optarg ;;
1142
1143 -nfp | --nfp | --nf)
1144 # Obsolete; use --without-fp.
1145 with_fp=no ;;
1146
1147 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148 | --no-cr | --no-c | -n)
1149 no_create=yes ;;
1150
1151 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153 no_recursion=yes ;;
1154
1155 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157 | --oldin | --oldi | --old | --ol | --o)
1158 ac_prev=oldincludedir ;;
1159 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162 oldincludedir=$ac_optarg ;;
1163
1164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165 ac_prev=prefix ;;
1166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167 prefix=$ac_optarg ;;
1168
1169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170 | --program-pre | --program-pr | --program-p)
1171 ac_prev=program_prefix ;;
1172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174 program_prefix=$ac_optarg ;;
1175
1176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177 | --program-suf | --program-su | --program-s)
1178 ac_prev=program_suffix ;;
1179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181 program_suffix=$ac_optarg ;;
1182
1183 -program-transform-name | --program-transform-name \
1184 | --program-transform-nam | --program-transform-na \
1185 | --program-transform-n | --program-transform- \
1186 | --program-transform | --program-transfor \
1187 | --program-transfo | --program-transf \
1188 | --program-trans | --program-tran \
1189 | --progr-tra | --program-tr | --program-t)
1190 ac_prev=program_transform_name ;;
1191 -program-transform-name=* | --program-transform-name=* \
1192 | --program-transform-nam=* | --program-transform-na=* \
1193 | --program-transform-n=* | --program-transform-=* \
1194 | --program-transform=* | --program-transfor=* \
1195 | --program-transfo=* | --program-transf=* \
1196 | --program-trans=* | --program-tran=* \
1197 | --progr-tra=* | --program-tr=* | --program-t=*)
1198 program_transform_name=$ac_optarg ;;
1199
1200 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201 ac_prev=pdfdir ;;
1202 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203 pdfdir=$ac_optarg ;;
1204
1205 -psdir | --psdir | --psdi | --psd | --ps)
1206 ac_prev=psdir ;;
1207 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208 psdir=$ac_optarg ;;
1209
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 silent=yes ;;
1213
1214 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215 ac_prev=sbindir ;;
1216 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217 | --sbi=* | --sb=*)
1218 sbindir=$ac_optarg ;;
1219
1220 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222 | --sharedst | --shareds | --shared | --share | --shar \
1223 | --sha | --sh)
1224 ac_prev=sharedstatedir ;;
1225 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228 | --sha=* | --sh=*)
1229 sharedstatedir=$ac_optarg ;;
1230
1231 -site | --site | --sit)
1232 ac_prev=site ;;
1233 -site=* | --site=* | --sit=*)
1234 site=$ac_optarg ;;
1235
1236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237 ac_prev=srcdir ;;
1238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239 srcdir=$ac_optarg ;;
1240
1241 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242 | --syscon | --sysco | --sysc | --sys | --sy)
1243 ac_prev=sysconfdir ;;
1244 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246 sysconfdir=$ac_optarg ;;
1247
1248 -target | --target | --targe | --targ | --tar | --ta | --t)
1249 ac_prev=target_alias ;;
1250 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251 target_alias=$ac_optarg ;;
1252
1253 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 verbose=yes ;;
1255
1256 -version | --version | --versio | --versi | --vers | -V)
1257 ac_init_version=: ;;
1258
1259 -with-* | --with-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1264 { (exit 1); exit 1; }; }
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=\$ac_optarg ;;
1275
1276 -without-* | --without-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
1292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1310
1311 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1312 Try \`$0 --help' for more information." >&2
1313 { (exit 1); exit 1; }; }
1314 ;;
1315
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321 { (exit 1); exit 1; }; }
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1324
1325 *)
1326 # FIXME: should be removed in autoconf 3.0.
1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331 ;;
1332
1333 esac
1334 done
1335
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1339 { (exit 1); exit 1; }; }
1340 fi
1341
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1344 no) ;;
1345 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1346 { (exit 1); exit 1; }; } ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348 esac
1349 fi
1350
1351 # Check all directory arguments for consistency.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
1356 do
1357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
1359 case $ac_val in
1360 */ )
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1363 esac
1364 # Be sure to have absolute directory names.
1365 case $ac_val in
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 esac
1369 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1370 { (exit 1); exit 1; }; }
1371 done
1372
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1379
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1385 If a cross compiler is detected then cross compile mode will be used." >&2
1386 elif test "x$build_alias" != "x$host_alias"; then
1387 cross_compiling=yes
1388 fi
1389 fi
1390
1391 ac_tool_prefix=
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394 test "$silent" = yes && exec 6>/dev/null
1395
1396
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1401 { (exit 1); exit 1; }; }
1402 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1403 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1404 { (exit 1); exit 1; }; }
1405
1406
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$as_myself" : 'X\(//\)[^/]' \| \
1414 X"$as_myself" : 'X\(//\)$' \| \
1415 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)[^/].*/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\/\)$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\).*/{
1430 s//\1/
1431 q
1432 }
1433 s/.*/./; q'`
1434 srcdir=$ac_confdir
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 srcdir=..
1437 fi
1438 else
1439 ac_srcdir_defaulted=no
1440 fi
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1444 { (exit 1); exit 1; }; }
1445 fi
1446 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 ac_abs_confdir=`(
1448 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1449 { (exit 1); exit 1; }; }
1450 pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454 fi
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1467
1468 #
1469 # Report the --help message.
1470 #
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
1475 \`configure' configures this package to adapt to many kinds of systems.
1476
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482 Defaults for the options are specified in brackets.
1483
1484 Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 [PREFIX]
1500
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1505
1506 For better control, use the options below.
1507
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1528 _ACEOF
1529
1530 cat <<\_ACEOF
1531
1532 Program names:
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536
1537 System types:
1538 --build=BUILD configure for building on BUILD [guessed]
1539 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540 _ACEOF
1541 fi
1542
1543 if test -n "$ac_init_help"; then
1544
1545 cat <<\_ACEOF
1546
1547 Optional Features:
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --disable-dependency-tracking speeds up one-time build
1552 --enable-dependency-tracking do not reject slow dependency extractors
1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1558 --disable-largefile omit support for large files
1559
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-pic try to use only PIC/non-PIC objects [default=use
1564 both]
1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CPP C preprocessor
1576 PKG_CONFIG path to pkg-config utility
1577 LIBRAW1394_CFLAGS
1578 C compiler flags for LIBRAW1394, overriding pkg-config
1579 LIBRAW1394_LIBS
1580 linker flags for LIBRAW1394, overriding pkg-config
1581
1582 Use these variables to override the choices made by `configure' or to help
1583 it to find libraries and programs with nonstandard names/locations.
1584
1585 _ACEOF
1586 ac_status=$?
1587 fi
1588
1589 if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
1595 ac_builddir=.
1596
1597 case "$ac_dir" in
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *)
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607 esac
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1612
1613 case $srcdir in
1614 .) # We are building in place.
1615 ac_srcdir=.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 esac
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1637 else
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1641 done
1642 fi
1643
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1646 cat <<\_ACEOF
1647 configure
1648 generated by GNU Autoconf 2.63
1649
1650 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1651 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1652 This configure script is free software; the Free Software Foundation
1653 gives unlimited permission to copy, distribute and modify it.
1654 _ACEOF
1655 exit
1656 fi
1657 cat >config.log <<_ACEOF
1658 This file contains any messages produced by compilers while
1659 running configure, to aid debugging if configure makes a mistake.
1660
1661 It was created by $as_me, which was
1662 generated by GNU Autoconf 2.63. Invocation command line was
1663
1664 $ $0 $@
1665
1666 _ACEOF
1667 exec 5>>config.log
1668 {
1669 cat <<_ASUNAME
1670 ## --------- ##
1671 ## Platform. ##
1672 ## --------- ##
1673
1674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679
1680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1682
1683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1690
1691 _ASUNAME
1692
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 $as_echo "PATH: $as_dir"
1699 done
1700 IFS=$as_save_IFS
1701
1702 } >&5
1703
1704 cat >&5 <<_ACEOF
1705
1706
1707 ## ----------- ##
1708 ## Core tests. ##
1709 ## ----------- ##
1710
1711 _ACEOF
1712
1713
1714 # Keep a trace of the command line.
1715 # Strip out --no-create and --no-recursion so they do not pile up.
1716 # Strip out --silent because we don't want to record it for future runs.
1717 # Also quote any args containing shell meta-characters.
1718 # Make two passes to allow for proper duplicate-argument suppression.
1719 ac_configure_args=
1720 ac_configure_args0=
1721 ac_configure_args1=
1722 ac_must_keep_next=false
1723 for ac_pass in 1 2
1724 do
1725 for ac_arg
1726 do
1727 case $ac_arg in
1728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1730 | -silent | --silent | --silen | --sile | --sil)
1731 continue ;;
1732 *\'*)
1733 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734 esac
1735 case $ac_pass in
1736 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1737 2)
1738 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1739 if test $ac_must_keep_next = true; then
1740 ac_must_keep_next=false # Got value, back to normal.
1741 else
1742 case $ac_arg in
1743 *=* | --config-cache | -C | -disable-* | --disable-* \
1744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1746 | -with-* | --with-* | -without-* | --without-* | --x)
1747 case "$ac_configure_args0 " in
1748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749 esac
1750 ;;
1751 -* ) ac_must_keep_next=true ;;
1752 esac
1753 fi
1754 ac_configure_args="$ac_configure_args '$ac_arg'"
1755 ;;
1756 esac
1757 done
1758 done
1759 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1760 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1761
1762 # When interrupted or exit'd, cleanup temporary files, and complete
1763 # config.log. We remove comments because anyway the quotes in there
1764 # would cause problems or look ugly.
1765 # WARNING: Use '\'' to represent an apostrophe within the trap.
1766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1767 trap 'exit_status=$?
1768 # Save into config.log some information that might help in debugging.
1769 {
1770 echo
1771
1772 cat <<\_ASBOX
1773 ## ---------------- ##
1774 ## Cache variables. ##
1775 ## ---------------- ##
1776 _ASBOX
1777 echo
1778 # The following way of writing the cache mishandles newlines in values,
1779 (
1780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781 eval ac_val=\$$ac_var
1782 case $ac_val in #(
1783 *${as_nl}*)
1784 case $ac_var in #(
1785 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1787 esac
1788 case $ac_var in #(
1789 _ | IFS | as_nl) ;; #(
1790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1791 *) $as_unset $ac_var ;;
1792 esac ;;
1793 esac
1794 done
1795 (set) 2>&1 |
1796 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1797 *${as_nl}ac_space=\ *)
1798 sed -n \
1799 "s/'\''/'\''\\\\'\'''\''/g;
1800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1801 ;; #(
1802 *)
1803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1804 ;;
1805 esac |
1806 sort
1807 )
1808 echo
1809
1810 cat <<\_ASBOX
1811 ## ----------------- ##
1812 ## Output variables. ##
1813 ## ----------------- ##
1814 _ASBOX
1815 echo
1816 for ac_var in $ac_subst_vars
1817 do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in
1820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 esac
1822 $as_echo "$ac_var='\''$ac_val'\''"
1823 done | sort
1824 echo
1825
1826 if test -n "$ac_subst_files"; then
1827 cat <<\_ASBOX
1828 ## ------------------- ##
1829 ## File substitutions. ##
1830 ## ------------------- ##
1831 _ASBOX
1832 echo
1833 for ac_var in $ac_subst_files
1834 do
1835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 $as_echo "$ac_var='\''$ac_val'\''"
1840 done | sort
1841 echo
1842 fi
1843
1844 if test -s confdefs.h; then
1845 cat <<\_ASBOX
1846 ## ----------- ##
1847 ## confdefs.h. ##
1848 ## ----------- ##
1849 _ASBOX
1850 echo
1851 cat confdefs.h
1852 echo
1853 fi
1854 test "$ac_signal" != 0 &&
1855 $as_echo "$as_me: caught signal $ac_signal"
1856 $as_echo "$as_me: exit $exit_status"
1857 } >&5
1858 rm -f core *.core core.conftest.* &&
1859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1860 exit $exit_status
1861 ' 0
1862 for ac_signal in 1 2 13 15; do
1863 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1864 done
1865 ac_signal=0
1866
1867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1868 rm -f -r conftest* confdefs.h
1869
1870 # Predefined preprocessor variables.
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_NAME "$PACKAGE_NAME"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_STRING "$PACKAGE_STRING"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1894 _ACEOF
1895
1896
1897 # Let the site file select an alternate cache file if it wants to.
1898 # Prefer an explicitly selected file to automatically selected ones.
1899 ac_site_file1=NONE
1900 ac_site_file2=NONE
1901 if test -n "$CONFIG_SITE"; then
1902 ac_site_file1=$CONFIG_SITE
1903 elif test "x$prefix" != xNONE; then
1904 ac_site_file1=$prefix/share/config.site
1905 ac_site_file2=$prefix/etc/config.site
1906 else
1907 ac_site_file1=$ac_default_prefix/share/config.site
1908 ac_site_file2=$ac_default_prefix/etc/config.site
1909 fi
1910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1911 do
1912 test "x$ac_site_file" = xNONE && continue
1913 if test -r "$ac_site_file"; then
1914 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1916 sed 's/^/| /' "$ac_site_file" >&5
1917 . "$ac_site_file"
1918 fi
1919 done
1920
1921 if test -r "$cache_file"; then
1922 # Some versions of bash will fail to source /dev/null (special
1923 # files actually), so we avoid doing that.
1924 if test -f "$cache_file"; then
1925 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1926 $as_echo "$as_me: loading cache $cache_file" >&6;}
1927 case $cache_file in
1928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1929 *) . "./$cache_file";;
1930 esac
1931 fi
1932 else
1933 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1934 $as_echo "$as_me: creating cache $cache_file" >&6;}
1935 >$cache_file
1936 fi
1937
1938 # Check that the precious variables saved in the cache have kept the same
1939 # value.
1940 ac_cache_corrupted=false
1941 for ac_var in $ac_precious_vars; do
1942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1943 eval ac_new_set=\$ac_env_${ac_var}_set
1944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1945 eval ac_new_val=\$ac_env_${ac_var}_value
1946 case $ac_old_set,$ac_new_set in
1947 set,)
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1950 ac_cache_corrupted=: ;;
1951 ,set)
1952 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1954 ac_cache_corrupted=: ;;
1955 ,);;
1956 *)
1957 if test "x$ac_old_val" != "x$ac_new_val"; then
1958 # differences in whitespace do not lead to failure.
1959 ac_old_val_w=`echo x $ac_old_val`
1960 ac_new_val_w=`echo x $ac_new_val`
1961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964 ac_cache_corrupted=:
1965 else
1966 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1968 eval $ac_var=\$ac_old_val
1969 fi
1970 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1971 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1972 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1974 fi;;
1975 esac
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1978 case $ac_new_val in
1979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 *) ac_arg=$ac_var=$ac_new_val ;;
1981 esac
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 esac
1986 fi
1987 done
1988 if $ac_cache_corrupted; then
1989 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1991 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1993 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1994 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1995 { (exit 1); exit 1; }; }
1996 fi
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019
2020
2021 am__api_version='1.10'
2022
2023 ac_aux_dir=
2024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2025 if test -f "$ac_dir/install-sh"; then
2026 ac_aux_dir=$ac_dir
2027 ac_install_sh="$ac_aux_dir/install-sh -c"
2028 break
2029 elif test -f "$ac_dir/install.sh"; then
2030 ac_aux_dir=$ac_dir
2031 ac_install_sh="$ac_aux_dir/install.sh -c"
2032 break
2033 elif test -f "$ac_dir/shtool"; then
2034 ac_aux_dir=$ac_dir
2035 ac_install_sh="$ac_aux_dir/shtool install -c"
2036 break
2037 fi
2038 done
2039 if test -z "$ac_aux_dir"; then
2040 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2041 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2042 { (exit 1); exit 1; }; }
2043 fi
2044
2045 # These three variables are undocumented and unsupported,
2046 # and are intended to be withdrawn in a future Autoconf release.
2047 # They can cause serious problems if a builder's source tree is in a directory
2048 # whose full name contains unusual characters.
2049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2052
2053
2054 # Find a good install program. We prefer a C program (faster),
2055 # so one script is as good as another. But avoid the broken or
2056 # incompatible versions:
2057 # SysV /etc/install, /usr/sbin/install
2058 # SunOS /usr/etc/install
2059 # IRIX /sbin/install
2060 # AIX /bin/install
2061 # AmigaOS /C/install, which installs bootblocks on floppy discs
2062 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2063 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2064 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2065 # OS/2's system install, which has a completely different semantic
2066 # ./install, which can be erroneously created by make from ./install.sh.
2067 # Reject install programs that cannot install multiple files.
2068 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2069 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2070 if test -z "$INSTALL"; then
2071 if test "${ac_cv_path_install+set}" = set; then
2072 $as_echo_n "(cached) " >&6
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 # Account for people who put trailing slashes in PATH elements.
2080 case $as_dir/ in
2081 ./ | .// | /cC/* | \
2082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2083 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2084 /usr/ucb/* ) ;;
2085 *)
2086 # OSF1 and SCO ODT 3.0 have their own names for install.
2087 # Don't use installbsd from OSF since it installs stuff as root
2088 # by default.
2089 for ac_prog in ginstall scoinst install; do
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2092 if test $ac_prog = install &&
2093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2094 # AIX install. It has an incompatible calling convention.
2095 :
2096 elif test $ac_prog = install &&
2097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2098 # program-specific install script used by HP pwplus--don't use.
2099 :
2100 else
2101 rm -rf conftest.one conftest.two conftest.dir
2102 echo one > conftest.one
2103 echo two > conftest.two
2104 mkdir conftest.dir
2105 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2106 test -s conftest.one && test -s conftest.two &&
2107 test -s conftest.dir/conftest.one &&
2108 test -s conftest.dir/conftest.two
2109 then
2110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2111 break 3
2112 fi
2113 fi
2114 fi
2115 done
2116 done
2117 ;;
2118 esac
2119
2120 done
2121 IFS=$as_save_IFS
2122
2123 rm -rf conftest.one conftest.two conftest.dir
2124
2125 fi
2126 if test "${ac_cv_path_install+set}" = set; then
2127 INSTALL=$ac_cv_path_install
2128 else
2129 # As a last resort, use the slow shell script. Don't cache a
2130 # value for INSTALL within a source directory, because that will
2131 # break other packages using the cache if that directory is
2132 # removed, or if the value is a relative name.
2133 INSTALL=$ac_install_sh
2134 fi
2135 fi
2136 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2137 $as_echo "$INSTALL" >&6; }
2138
2139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2140 # It thinks the first close brace ends the variable substitution.
2141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2142
2143 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2144
2145 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2146
2147 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2148 $as_echo_n "checking whether build environment is sane... " >&6; }
2149 # Just in case
2150 sleep 1
2151 echo timestamp > conftest.file
2152 # Do `set' in a subshell so we don't clobber the current shell's
2153 # arguments. Must try -L first in case configure is actually a
2154 # symlink; some systems play weird games with the mod time of symlinks
2155 # (eg FreeBSD returns the mod time of the symlink's containing
2156 # directory).
2157 if (
2158 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2159 if test "$*" = "X"; then
2160 # -L didn't work.
2161 set X `ls -t $srcdir/configure conftest.file`
2162 fi
2163 rm -f conftest.file
2164 if test "$*" != "X $srcdir/configure conftest.file" \
2165 && test "$*" != "X conftest.file $srcdir/configure"; then
2166
2167 # If neither matched, then we have a broken ls. This can happen
2168 # if, for instance, CONFIG_SHELL is bash and it inherits a
2169 # broken ls alias from the environment. This has actually
2170 # happened. Such a system could not be considered "sane".
2171 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2172 alias in your environment" >&5
2173 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2174 alias in your environment" >&2;}
2175 { (exit 1); exit 1; }; }
2176 fi
2177
2178 test "$2" = conftest.file
2179 )
2180 then
2181 # Ok.
2182 :
2183 else
2184 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2185 Check your system clock" >&5
2186 $as_echo "$as_me: error: newly created file is older than distributed files!
2187 Check your system clock" >&2;}
2188 { (exit 1); exit 1; }; }
2189 fi
2190 { $as_echo "$as_me:$LINENO: result: yes" >&5
2191 $as_echo "yes" >&6; }
2192 test "$program_prefix" != NONE &&
2193 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2194 # Use a double $ so make ignores it.
2195 test "$program_suffix" != NONE &&
2196 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2197 # Double any \ or $.
2198 # By default was `s,x,x', remove it if useless.
2199 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2200 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2201
2202 # expand $ac_aux_dir to an absolute path
2203 am_aux_dir=`cd $ac_aux_dir && pwd`
2204
2205 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2206 # Use eval to expand $SHELL
2207 if eval "$MISSING --run true"; then
2208 am_missing_run="$MISSING --run "
2209 else
2210 am_missing_run=
2211 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2212 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2213 fi
2214
2215 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2216 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2217 if test -z "$MKDIR_P"; then
2218 if test "${ac_cv_path_mkdir+set}" = set; then
2219 $as_echo_n "(cached) " >&6
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_prog in mkdir gmkdir; do
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2229 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2230 'mkdir (GNU coreutils) '* | \
2231 'mkdir (coreutils) '* | \
2232 'mkdir (fileutils) '4.1*)
2233 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2234 break 3;;
2235 esac
2236 done
2237 done
2238 done
2239 IFS=$as_save_IFS
2240
2241 fi
2242
2243 if test "${ac_cv_path_mkdir+set}" = set; then
2244 MKDIR_P="$ac_cv_path_mkdir -p"
2245 else
2246 # As a last resort, use the slow shell script. Don't cache a
2247 # value for MKDIR_P within a source directory, because that will
2248 # break other packages using the cache if that directory is
2249 # removed, or if the value is a relative name.
2250 test -d ./--version && rmdir ./--version
2251 MKDIR_P="$ac_install_sh -d"
2252 fi
2253 fi
2254 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2255 $as_echo "$MKDIR_P" >&6; }
2256
2257 mkdir_p="$MKDIR_P"
2258 case $mkdir_p in
2259 [\\/$]* | ?:[\\/]*) ;;
2260 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2261 esac
2262
2263 for ac_prog in gawk mawk nawk awk
2264 do
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 $as_echo_n "checking for $ac_word... " >&6; }
2269 if test "${ac_cv_prog_AWK+set}" = set; then
2270 $as_echo_n "(cached) " >&6
2271 else
2272 if test -n "$AWK"; then
2273 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 ac_cv_prog_AWK="$ac_prog"
2283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286 done
2287 done
2288 IFS=$as_save_IFS
2289
2290 fi
2291 fi
2292 AWK=$ac_cv_prog_AWK
2293 if test -n "$AWK"; then
2294 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2295 $as_echo "$AWK" >&6; }
2296 else
2297 { $as_echo "$as_me:$LINENO: result: no" >&5
2298 $as_echo "no" >&6; }
2299 fi
2300
2301
2302 test -n "$AWK" && break
2303 done
2304
2305 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2307 set x ${MAKE-make}
2308 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2309 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2310 $as_echo_n "(cached) " >&6
2311 else
2312 cat >conftest.make <<\_ACEOF
2313 SHELL = /bin/sh
2314 all:
2315 @echo '@@@%%%=$(MAKE)=@@@%%%'
2316 _ACEOF
2317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2319 *@@@%%%=?*=@@@%%%*)
2320 eval ac_cv_prog_make_${ac_make}_set=yes;;
2321 *)
2322 eval ac_cv_prog_make_${ac_make}_set=no;;
2323 esac
2324 rm -f conftest.make
2325 fi
2326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2327 { $as_echo "$as_me:$LINENO: result: yes" >&5
2328 $as_echo "yes" >&6; }
2329 SET_MAKE=
2330 else
2331 { $as_echo "$as_me:$LINENO: result: no" >&5
2332 $as_echo "no" >&6; }
2333 SET_MAKE="MAKE=${MAKE-make}"
2334 fi
2335
2336 rm -rf .tst 2>/dev/null
2337 mkdir .tst 2>/dev/null
2338 if test -d .tst; then
2339 am__leading_dot=.
2340 else
2341 am__leading_dot=_
2342 fi
2343 rmdir .tst 2>/dev/null
2344
2345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2346 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2347 # is not polluted with repeated "-I."
2348 am__isrc=' -I$(srcdir)'
2349 # test to see if srcdir already configured
2350 if test -f $srcdir/config.status; then
2351 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2352 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2353 { (exit 1); exit 1; }; }
2354 fi
2355 fi
2356
2357 # test whether we have cygpath
2358 if test -z "$CYGPATH_W"; then
2359 if (cygpath --version) >/dev/null 2>/dev/null; then
2360 CYGPATH_W='cygpath -w'
2361 else
2362 CYGPATH_W=echo
2363 fi
2364 fi
2365
2366
2367 # Define the identity of the package.
2368 PACKAGE=libiec61883
2369 VERSION=1.2.0
2370
2371
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE "$PACKAGE"
2374 _ACEOF
2375
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define VERSION "$VERSION"
2379 _ACEOF
2380
2381 # Some tools Automake needs.
2382
2383 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2384
2385
2386 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2387
2388
2389 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2390
2391
2392 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2393
2394
2395 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2396
2397 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2398
2399 # Installed binaries are usually stripped using `strip' when the user
2400 # run `make install-strip'. However `strip' might not be the right
2401 # tool to use in cross-compilation environments, therefore Automake
2402 # will honor the `STRIP' environment variable to overrule this program.
2403 if test "$cross_compiling" != no; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}strip; ac_word=$2
2407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if test "${ac_cv_prog_STRIP+set}" = set; then
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$STRIP"; then
2413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2429
2430 fi
2431 fi
2432 STRIP=$ac_cv_prog_STRIP
2433 if test -n "$STRIP"; then
2434 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2435 $as_echo "$STRIP" >&6; }
2436 else
2437 { $as_echo "$as_me:$LINENO: result: no" >&5
2438 $as_echo "no" >&6; }
2439 fi
2440
2441
2442 fi
2443 if test -z "$ac_cv_prog_STRIP"; then
2444 ac_ct_STRIP=$STRIP
2445 # Extract the first word of "strip", so it can be a program name with args.
2446 set dummy strip; ac_word=$2
2447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$ac_ct_STRIP"; then
2453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_STRIP="strip"
2463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2473 if test -n "$ac_ct_STRIP"; then
2474 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2475 $as_echo "$ac_ct_STRIP" >&6; }
2476 else
2477 { $as_echo "$as_me:$LINENO: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481 if test "x$ac_ct_STRIP" = x; then
2482 STRIP=":"
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490 STRIP=$ac_ct_STRIP
2491 fi
2492 else
2493 STRIP="$ac_cv_prog_STRIP"
2494 fi
2495
2496 fi
2497 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2498
2499 # We need awk for the "check" target. The system "awk" is bad on
2500 # some platforms.
2501 # Always define AMTAR for backward compatibility.
2502
2503 AMTAR=${AMTAR-"${am_missing_run}tar"}
2504
2505 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2506
2507
2508
2509
2510
2511 ac_config_headers="$ac_config_headers config.h"
2512
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2550 $as_echo "$CC" >&6; }
2551 else
2552 { $as_echo "$as_me:$LINENO: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557 fi
2558 if test -z "$ac_cv_prog_CC"; then
2559 ac_ct_CC=$CC
2560 # Extract the first word of "gcc", so it can be a program name with args.
2561 set dummy gcc; ac_word=$2
2562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="gcc"
2578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 $as_echo "$ac_ct_CC" >&6; }
2591 else
2592 { $as_echo "$as_me:$LINENO: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596 if test "x$ac_ct_CC" = x; then
2597 CC=""
2598 else
2599 case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2603 ac_tool_warned=yes ;;
2604 esac
2605 CC=$ac_ct_CC
2606 fi
2607 else
2608 CC="$ac_cv_prog_CC"
2609 fi
2610
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}cc; ac_word=$2
2615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_CC="${ac_tool_prefix}cc"
2631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2643 $as_echo "$CC" >&6; }
2644 else
2645 { $as_echo "$as_me:$LINENO: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649
2650 fi
2651 fi
2652 if test -z "$CC"; then
2653 # Extract the first word of "cc", so it can be a program name with args.
2654 set dummy cc; ac_word=$2
2655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 ac_prog_rejected=no
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2672 ac_prog_rejected=yes
2673 continue
2674 fi
2675 ac_cv_prog_CC="cc"
2676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 if test $ac_prog_rejected = yes; then
2684 # We found a bogon in the path, so make sure we never use it.
2685 set dummy $ac_cv_prog_CC
2686 shift
2687 if test $# != 0; then
2688 # We chose a different compiler from the bogus one.
2689 # However, it has the same basename, so the bogon will be chosen
2690 # first if we set CC to just the basename; use the full file name.
2691 shift
2692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693 fi
2694 fi
2695 fi
2696 fi
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702 { $as_echo "$as_me:$LINENO: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706
2707 fi
2708 if test -z "$CC"; then
2709 if test -n "$ac_tool_prefix"; then
2710 for ac_prog in cl.exe
2711 do
2712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_CC+set}" = set; then
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2730 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2742 $as_echo "$CC" >&6; }
2743 else
2744 { $as_echo "$as_me:$LINENO: result: no" >&5
2745 $as_echo "no" >&6; }
2746 fi
2747
2748
2749 test -n "$CC" && break
2750 done
2751 fi
2752 if test -z "$CC"; then
2753 ac_ct_CC=$CC
2754 for ac_prog in cl.exe
2755 do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$ac_ct_CC"; then
2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_ac_ct_CC="$ac_prog"
2774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784 if test -n "$ac_ct_CC"; then
2785 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2786 $as_echo "$ac_ct_CC" >&6; }
2787 else
2788 { $as_echo "$as_me:$LINENO: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 test -n "$ac_ct_CC" && break
2794 done
2795
2796 if test "x$ac_ct_CC" = x; then
2797 CC=""
2798 else
2799 case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805 CC=$ac_ct_CC
2806 fi
2807 fi
2808
2809 fi
2810
2811
2812 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details." >&5
2816 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2817 See \`config.log' for more details." >&2;}
2818 { (exit 1); exit 1; }; }; }
2819
2820 # Provide some information about the compiler.
2821 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2822 set X $ac_compile
2823 ac_compiler=$2
2824 { (ac_try="$ac_compiler --version >&5"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2830 $as_echo "$ac_try_echo") >&5
2831 (eval "$ac_compiler --version >&5") 2>&5
2832 ac_status=$?
2833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }
2835 { (ac_try="$ac_compiler -v >&5"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841 $as_echo "$ac_try_echo") >&5
2842 (eval "$ac_compiler -v >&5") 2>&5
2843 ac_status=$?
2844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
2846 { (ac_try="$ac_compiler -V >&5"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2852 $as_echo "$ac_try_echo") >&5
2853 (eval "$ac_compiler -V >&5") 2>&5
2854 ac_status=$?
2855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }
2857
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864
2865 int
2866 main ()
2867 {
2868
2869 ;
2870 return 0;
2871 }
2872 _ACEOF
2873 ac_clean_files_save=$ac_clean_files
2874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2875 # Try to create an executable without -o first, disregard a.out.
2876 # It will help us diagnose broken compilers, and finding out an intuition
2877 # of exeext.
2878 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2879 $as_echo_n "checking for C compiler default output file name... " >&6; }
2880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881
2882 # The possible output files:
2883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2884
2885 ac_rmfiles=
2886 for ac_file in $ac_files
2887 do
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2891 esac
2892 done
2893 rm -f $ac_rmfiles
2894
2895 if { (ac_try="$ac_link_default"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2901 $as_echo "$ac_try_echo") >&5
2902 (eval "$ac_link_default") 2>&5
2903 ac_status=$?
2904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2909 # so that the user can short-circuit this test for compilers unknown to
2910 # Autoconf.
2911 for ac_file in $ac_files ''
2912 do
2913 test -f "$ac_file" || continue
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2916 ;;
2917 [ab].out )
2918 # We found the default executable, but exeext='' is most
2919 # certainly right.
2920 break;;
2921 *.* )
2922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923 then :; else
2924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 fi
2926 # We set ac_cv_exeext here because the later test for it is not
2927 # safe: cross compilers may not add the suffix if given an `-o'
2928 # argument, so we may need to know it at that point already.
2929 # Even if this section looks crufty: it has the advantage of
2930 # actually working.
2931 break;;
2932 * )
2933 break;;
2934 esac
2935 done
2936 test "$ac_cv_exeext" = no && ac_cv_exeext=
2937
2938 else
2939 ac_file=''
2940 fi
2941
2942 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2943 $as_echo "$ac_file" >&6; }
2944 if test -z "$ac_file"; then
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2951 See \`config.log' for more details." >&5
2952 $as_echo "$as_me: error: C compiler cannot create executables
2953 See \`config.log' for more details." >&2;}
2954 { (exit 77); exit 77; }; }; }
2955 fi
2956
2957 ac_exeext=$ac_cv_exeext
2958
2959 # Check that the compiler produces executables we can run. If not, either
2960 # the compiler is broken, or we cross compile.
2961 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2962 $as_echo_n "checking whether the C compiler works... " >&6; }
2963 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2964 # If not cross compiling, check that we can run a simple program.
2965 if test "$cross_compiling" != yes; then
2966 if { ac_try='./$ac_file'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2972 $as_echo "$ac_try_echo") >&5
2973 (eval "$ac_try") 2>&5
2974 ac_status=$?
2975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 cross_compiling=no
2978 else
2979 if test "$cross_compiling" = maybe; then
2980 cross_compiling=yes
2981 else
2982 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2985 If you meant to cross compile, use \`--host'.
2986 See \`config.log' for more details." >&5
2987 $as_echo "$as_me: error: cannot run C compiled programs.
2988 If you meant to cross compile, use \`--host'.
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }; }
2991 fi
2992 fi
2993 fi
2994 { $as_echo "$as_me:$LINENO: result: yes" >&5
2995 $as_echo "yes" >&6; }
2996
2997 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2998 ac_clean_files=$ac_clean_files_save
2999 # Check that the compiler produces executables we can run. If not, either
3000 # the compiler is broken, or we cross compile.
3001 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3002 $as_echo_n "checking whether we are cross compiling... " >&6; }
3003 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3004 $as_echo "$cross_compiling" >&6; }
3005
3006 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3007 $as_echo_n "checking for suffix of executables... " >&6; }
3008 if { (ac_try="$ac_link"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_link") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3020 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3021 # work properly (i.e., refer to `conftest.exe'), while it won't with
3022 # `rm'.
3023 for ac_file in conftest.exe conftest conftest.*; do
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 break;;
3029 * ) break;;
3030 esac
3031 done
3032 else
3033 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3036 See \`config.log' for more details." >&5
3037 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }; }
3040 fi
3041
3042 rm -f conftest$ac_cv_exeext
3043 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3044 $as_echo "$ac_cv_exeext" >&6; }
3045
3046 rm -f conftest.$ac_ext
3047 EXEEXT=$ac_cv_exeext
3048 ac_exeext=$EXEEXT
3049 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3050 $as_echo_n "checking for suffix of object files... " >&6; }
3051 if test "${ac_cv_objext+set}" = set; then
3052 $as_echo_n "(cached) " >&6
3053 else
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060
3061 int
3062 main ()
3063 {
3064
3065 ;
3066 return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.o conftest.obj
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3076 $as_echo "$ac_try_echo") >&5
3077 (eval "$ac_compile") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 for ac_file in conftest.o conftest.obj conftest.*; do
3082 test -f "$ac_file" || continue;
3083 case $ac_file in
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3085 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3086 break;;
3087 esac
3088 done
3089 else
3090 $as_echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3096 See \`config.log' for more details." >&5
3097 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }; }
3100 fi
3101
3102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103 fi
3104 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3105 $as_echo "$ac_cv_objext" >&6; }
3106 OBJEXT=$ac_cv_objext
3107 ac_objext=$OBJEXT
3108 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3110 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3111 $as_echo_n "(cached) " >&6
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119
3120 int
3121 main ()
3122 {
3123 #ifndef __GNUC__
3124 choke me
3125 #endif
3126
3127 ;
3128 return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138 $as_echo "$ac_try_echo") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3149 ac_compiler_gnu=yes
3150 else
3151 $as_echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 ac_compiler_gnu=no
3155 fi
3156
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3159
3160 fi
3161 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3163 if test $ac_compiler_gnu = yes; then
3164 GCC=yes
3165 else
3166 GCC=
3167 fi
3168 ac_test_CFLAGS=${CFLAGS+set}
3169 ac_save_CFLAGS=$CFLAGS
3170 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3172 if test "${ac_cv_prog_cc_g+set}" = set; then
3173 $as_echo_n "(cached) " >&6
3174 else
3175 ac_save_c_werror_flag=$ac_c_werror_flag
3176 ac_c_werror_flag=yes
3177 ac_cv_prog_cc_g=no
3178 CFLAGS="-g"
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185
3186 int
3187 main ()
3188 {
3189
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201 $as_echo "$ac_try_echo") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 ac_cv_prog_cc_g=yes
3213 else
3214 $as_echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 CFLAGS=""
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240 $as_echo "$ac_try_echo") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 :
3252 else
3253 $as_echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256 ac_c_werror_flag=$ac_save_c_werror_flag
3257 CFLAGS="-g"
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h. */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264
3265 int
3266 main ()
3267 {
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3280 $as_echo "$ac_try_echo") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
3291 ac_cv_prog_cc_g=yes
3292 else
3293 $as_echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296
3297 fi
3298
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 fi
3301
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 fi
3304
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3307 fi
3308 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3309 $as_echo "$ac_cv_prog_cc_g" >&6; }
3310 if test "$ac_test_CFLAGS" = set; then
3311 CFLAGS=$ac_save_CFLAGS
3312 elif test $ac_cv_prog_cc_g = yes; then
3313 if test "$GCC" = yes; then
3314 CFLAGS="-g -O2"
3315 else
3316 CFLAGS="-g"
3317 fi
3318 else
3319 if test "$GCC" = yes; then
3320 CFLAGS="-O2"
3321 else
3322 CFLAGS=
3323 fi
3324 fi
3325 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3327 if test "${ac_cv_prog_cc_c89+set}" = set; then
3328 $as_echo_n "(cached) " >&6
3329 else
3330 ac_cv_prog_cc_c89=no
3331 ac_save_CC=$CC
3332 cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h. */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338 #include <stdarg.h>
3339 #include <stdio.h>
3340 #include <sys/types.h>
3341 #include <sys/stat.h>
3342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3343 struct buf { int x; };
3344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345 static char *e (p, i)
3346 char **p;
3347 int i;
3348 {
3349 return p[i];
3350 }
3351 static char *f (char * (*g) (char **, int), char **p, ...)
3352 {
3353 char *s;
3354 va_list v;
3355 va_start (v,p);
3356 s = g (p, va_arg (v,int));
3357 va_end (v);
3358 return s;
3359 }
3360
3361 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3362 function prototypes and stuff, but not '\xHH' hex character constants.
3363 These don't provoke an error unfortunately, instead are silently treated
3364 as 'x'. The following induces an error, until -std is added to get
3365 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3366 array size at least. It's necessary to write '\x00'==0 to get something
3367 that's true only with -std. */
3368 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3369
3370 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3371 inside strings and character constants. */
3372 #define FOO(x) 'x'
3373 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3374
3375 int test (int i, double x);
3376 struct s1 {int (*f) (int a);};
3377 struct s2 {int (*f) (double a);};
3378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379 int argc;
3380 char **argv;
3381 int
3382 main ()
3383 {
3384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3390 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3391 do
3392 CC="$ac_save_CC $ac_arg"
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400 $as_echo "$ac_try_echo") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_cv_prog_cc_c89=$ac_arg
3412 else
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417 fi
3418
3419 rm -f core conftest.err conftest.$ac_objext
3420 test "x$ac_cv_prog_cc_c89" != "xno" && break
3421 done
3422 rm -f conftest.$ac_ext
3423 CC=$ac_save_CC
3424
3425 fi
3426 # AC_CACHE_VAL
3427 case "x$ac_cv_prog_cc_c89" in
3428 x)
3429 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3430 $as_echo "none needed" >&6; } ;;
3431 xno)
3432 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3433 $as_echo "unsupported" >&6; } ;;
3434 *)
3435 CC="$CC $ac_cv_prog_cc_c89"
3436 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3437 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3438 esac
3439
3440
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 DEPDIR="${am__leading_dot}deps"
3447
3448 ac_config_commands="$ac_config_commands depfiles"
3449
3450
3451 am_make=${MAKE-make}
3452 cat > confinc << 'END'
3453 am__doit:
3454 @echo done
3455 .PHONY: am__doit
3456 END
3457 # If we don't find an include directive, just comment out the code.
3458 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3459 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3460 am__include="#"
3461 am__quote=
3462 _am_result=none
3463 # First try GNU make style include.
3464 echo "include confinc" > confmf
3465 # We grep out `Entering directory' and `Leaving directory'
3466 # messages which can occur if `w' ends up in MAKEFLAGS.
3467 # In particular we don't look at `^make:' because GNU make might
3468 # be invoked under some other name (usually "gmake"), in which
3469 # case it prints its new name instead of `make'.
3470 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3471 am__include=include
3472 am__quote=
3473 _am_result=GNU
3474 fi
3475 # Now try BSD make style include.
3476 if test "$am__include" = "#"; then
3477 echo '.include "confinc"' > confmf
3478 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3479 am__include=.include
3480 am__quote="\""
3481 _am_result=BSD
3482 fi
3483 fi
3484
3485
3486 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3487 $as_echo "$_am_result" >&6; }
3488 rm -f confinc confmf
3489
3490 # Check whether --enable-dependency-tracking was given.
3491 if test "${enable_dependency_tracking+set}" = set; then
3492 enableval=$enable_dependency_tracking;
3493 fi
3494
3495 if test "x$enable_dependency_tracking" != xno; then
3496 am_depcomp="$ac_aux_dir/depcomp"
3497 AMDEPBACKSLASH='\'
3498 fi
3499 if test "x$enable_dependency_tracking" != xno; then
3500 AMDEP_TRUE=
3501 AMDEP_FALSE='#'
3502 else
3503 AMDEP_TRUE='#'
3504 AMDEP_FALSE=
3505 fi
3506
3507
3508
3509 depcc="$CC" am_compiler_list=
3510
3511 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3512 $as_echo_n "checking dependency style of $depcc... " >&6; }
3513 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3517 # We make a subdir and do the tests there. Otherwise we can end up
3518 # making bogus files that we don't know about and never remove. For
3519 # instance it was reported that on HP-UX the gcc test will end up
3520 # making a dummy file named `D' -- because `-MD' means `put the output
3521 # in D'.
3522 mkdir conftest.dir
3523 # Copy depcomp to subdir because otherwise we won't find it if we're
3524 # using a relative directory.
3525 cp "$am_depcomp" conftest.dir
3526 cd conftest.dir
3527 # We will build objects and dependencies in a subdirectory because
3528 # it helps to detect inapplicable dependency modes. For instance
3529 # both Tru64's cc and ICC support -MD to output dependencies as a
3530 # side effect of compilation, but ICC will put the dependencies in
3531 # the current directory while Tru64 will put them in the object
3532 # directory.
3533 mkdir sub
3534
3535 am_cv_CC_dependencies_compiler_type=none
3536 if test "$am_compiler_list" = ""; then
3537 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3538 fi
3539 for depmode in $am_compiler_list; do
3540 # Setup a source with many dependencies, because some compilers
3541 # like to wrap large dependency lists on column 80 (with \), and
3542 # we should not choose a depcomp mode which is confused by this.
3543 #
3544 # We need to recreate these files for each test, as the compiler may
3545 # overwrite some of them when testing with obscure command lines.
3546 # This happens at least with the AIX C compiler.
3547 : > sub/conftest.c
3548 for i in 1 2 3 4 5 6; do
3549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3550 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3551 # Solaris 8's {/usr,}/bin/sh.
3552 touch sub/conftst$i.h
3553 done
3554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3555
3556 case $depmode in
3557 nosideeffect)
3558 # after this tag, mechanisms are not by side-effect, so they'll
3559 # only be used when explicitly requested
3560 if test "x$enable_dependency_tracking" = xyes; then
3561 continue
3562 else
3563 break
3564 fi
3565 ;;
3566 none) break ;;
3567 esac
3568 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3569 # mode. It turns out that the SunPro C++ compiler does not properly
3570 # handle `-M -o', and we need to detect this.
3571 if depmode=$depmode \
3572 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3573 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3574 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3575 >/dev/null 2>conftest.err &&
3576 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3577 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3578 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3579 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3580 # icc doesn't choke on unknown options, it will just issue warnings
3581 # or remarks (even with -Werror). So we grep stderr for any message
3582 # that says an option was ignored or not supported.
3583 # When given -MP, icc 7.0 and 7.1 complain thusly:
3584 # icc: Command line warning: ignoring option '-M'; no argument required
3585 # The diagnosis changed in icc 8.0:
3586 # icc: Command line remark: option '-MP' not supported
3587 if (grep 'ignoring option' conftest.err ||
3588 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3589 am_cv_CC_dependencies_compiler_type=$depmode
3590 break
3591 fi
3592 fi
3593 done
3594
3595 cd ..
3596 rm -rf conftest.dir
3597 else
3598 am_cv_CC_dependencies_compiler_type=none
3599 fi
3600
3601 fi
3602 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3603 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3604 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3605
3606 if
3607 test "x$enable_dependency_tracking" != xno \
3608 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3609 am__fastdepCC_TRUE=
3610 am__fastdepCC_FALSE='#'
3611 else
3612 am__fastdepCC_TRUE='#'
3613 am__fastdepCC_FALSE=
3614 fi
3615
3616
3617 case `pwd` in
3618 *\ * | *\ *)
3619 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3620 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3621 esac
3622
3623
3624
3625 macro_version='2.2.6'
3626 macro_revision='1.3012'
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640 ltmain="$ac_aux_dir/ltmain.sh"
3641
3642 # Make sure we can run config.sub.
3643 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3644 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3645 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3646 { (exit 1); exit 1; }; }
3647
3648 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3649 $as_echo_n "checking build system type... " >&6; }
3650 if test "${ac_cv_build+set}" = set; then
3651 $as_echo_n "(cached) " >&6
3652 else
3653 ac_build_alias=$build_alias
3654 test "x$ac_build_alias" = x &&
3655 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3656 test "x$ac_build_alias" = x &&
3657 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3658 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3659 { (exit 1); exit 1; }; }
3660 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3661 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3662 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3663 { (exit 1); exit 1; }; }
3664
3665 fi
3666 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3667 $as_echo "$ac_cv_build" >&6; }
3668 case $ac_cv_build in
3669 *-*-*) ;;
3670 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3671 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3672 { (exit 1); exit 1; }; };;
3673 esac
3674 build=$ac_cv_build
3675 ac_save_IFS=$IFS; IFS='-'
3676 set x $ac_cv_build
3677 shift
3678 build_cpu=$1
3679 build_vendor=$2
3680 shift; shift
3681 # Remember, the first character of IFS is used to create $*,
3682 # except with old shells:
3683 build_os=$*
3684 IFS=$ac_save_IFS
3685 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3686
3687
3688 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3689 $as_echo_n "checking host system type... " >&6; }
3690 if test "${ac_cv_host+set}" = set; then
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test "x$host_alias" = x; then
3694 ac_cv_host=$ac_cv_build
3695 else
3696 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3697 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3698 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3699 { (exit 1); exit 1; }; }
3700 fi
3701
3702 fi
3703 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3704 $as_echo "$ac_cv_host" >&6; }
3705 case $ac_cv_host in
3706 *-*-*) ;;
3707 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3708 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3709 { (exit 1); exit 1; }; };;
3710 esac
3711 host=$ac_cv_host
3712 ac_save_IFS=$IFS; IFS='-'
3713 set x $ac_cv_host
3714 shift
3715 host_cpu=$1
3716 host_vendor=$2
3717 shift; shift
3718 # Remember, the first character of IFS is used to create $*,
3719 # except with old shells:
3720 host_os=$*
3721 IFS=$ac_save_IFS
3722 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3723
3724
3725 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3726 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3727 if test "${ac_cv_path_SED+set}" = set; then
3728 $as_echo_n "(cached) " >&6
3729 else
3730 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3731 for ac_i in 1 2 3 4 5 6 7; do
3732 ac_script="$ac_script$as_nl$ac_script"
3733 done
3734 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3735 $as_unset ac_script || ac_script=
3736 if test -z "$SED"; then
3737 ac_path_SED_found=false
3738 # Loop through the user's path and test for each of PROGNAME-LIST
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_prog in sed gsed; do
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3747 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3748 # Check for GNU ac_path_SED and select it if it is found.
3749 # Check for GNU $ac_path_SED
3750 case `"$ac_path_SED" --version 2>&1` in
3751 *GNU*)
3752 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3753 *)
3754 ac_count=0
3755 $as_echo_n 0123456789 >"conftest.in"
3756 while :
3757 do
3758 cat "conftest.in" "conftest.in" >"conftest.tmp"
3759 mv "conftest.tmp" "conftest.in"
3760 cp "conftest.in" "conftest.nl"
3761 $as_echo '' >> "conftest.nl"
3762 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3764 ac_count=`expr $ac_count + 1`
3765 if test $ac_count -gt ${ac_path_SED_max-0}; then
3766 # Best one so far, save it but keep looking for a better one
3767 ac_cv_path_SED="$ac_path_SED"
3768 ac_path_SED_max=$ac_count
3769 fi
3770 # 10*(2^10) chars as input seems more than enough
3771 test $ac_count -gt 10 && break
3772 done
3773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3774 esac
3775
3776 $ac_path_SED_found && break 3
3777 done
3778 done
3779 done
3780 IFS=$as_save_IFS
3781 if test -z "$ac_cv_path_SED"; then
3782 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3783 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3784 { (exit 1); exit 1; }; }
3785 fi
3786 else
3787 ac_cv_path_SED=$SED
3788 fi
3789
3790 fi
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3792 $as_echo "$ac_cv_path_SED" >&6; }
3793 SED="$ac_cv_path_SED"
3794 rm -f conftest.sed
3795
3796 test -z "$SED" && SED=sed
3797 Xsed="$SED -e 1s/^X//"
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3810 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3811 if test "${ac_cv_path_GREP+set}" = set; then
3812 $as_echo_n "(cached) " >&6
3813 else
3814 if test -z "$GREP"; then
3815 ac_path_GREP_found=false
3816 # Loop through the user's path and test for each of PROGNAME-LIST
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3819 do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_prog in grep ggrep; do
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3825 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3826 # Check for GNU ac_path_GREP and select it if it is found.
3827 # Check for GNU $ac_path_GREP
3828 case `"$ac_path_GREP" --version 2>&1` in
3829 *GNU*)
3830 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3831 *)
3832 ac_count=0
3833 $as_echo_n 0123456789 >"conftest.in"
3834 while :
3835 do
3836 cat "conftest.in" "conftest.in" >"conftest.tmp"
3837 mv "conftest.tmp" "conftest.in"
3838 cp "conftest.in" "conftest.nl"
3839 $as_echo 'GREP' >> "conftest.nl"
3840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3842 ac_count=`expr $ac_count + 1`
3843 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3844 # Best one so far, save it but keep looking for a better one
3845 ac_cv_path_GREP="$ac_path_GREP"
3846 ac_path_GREP_max=$ac_count
3847 fi
3848 # 10*(2^10) chars as input seems more than enough
3849 test $ac_count -gt 10 && break
3850 done
3851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3852 esac
3853
3854 $ac_path_GREP_found && break 3
3855 done
3856 done
3857 done
3858 IFS=$as_save_IFS
3859 if test -z "$ac_cv_path_GREP"; then
3860 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3861 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3862 { (exit 1); exit 1; }; }
3863 fi
3864 else
3865 ac_cv_path_GREP=$GREP
3866 fi
3867
3868 fi
3869 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3870 $as_echo "$ac_cv_path_GREP" >&6; }
3871 GREP="$ac_cv_path_GREP"
3872
3873
3874 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3875 $as_echo_n "checking for egrep... " >&6; }
3876 if test "${ac_cv_path_EGREP+set}" = set; then
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3880 then ac_cv_path_EGREP="$GREP -E"
3881 else
3882 if test -z "$EGREP"; then
3883 ac_path_EGREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887 do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in egrep; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3893 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3894 # Check for GNU ac_path_EGREP and select it if it is found.
3895 # Check for GNU $ac_path_EGREP
3896 case `"$ac_path_EGREP" --version 2>&1` in
3897 *GNU*)
3898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3899 *)
3900 ac_count=0
3901 $as_echo_n 0123456789 >"conftest.in"
3902 while :
3903 do
3904 cat "conftest.in" "conftest.in" >"conftest.tmp"
3905 mv "conftest.tmp" "conftest.in"
3906 cp "conftest.in" "conftest.nl"
3907 $as_echo 'EGREP' >> "conftest.nl"
3908 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910 ac_count=`expr $ac_count + 1`
3911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3912 # Best one so far, save it but keep looking for a better one
3913 ac_cv_path_EGREP="$ac_path_EGREP"
3914 ac_path_EGREP_max=$ac_count
3915 fi
3916 # 10*(2^10) chars as input seems more than enough
3917 test $ac_count -gt 10 && break
3918 done
3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 esac
3921
3922 $ac_path_EGREP_found && break 3
3923 done
3924 done
3925 done
3926 IFS=$as_save_IFS
3927 if test -z "$ac_cv_path_EGREP"; then
3928 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931 fi
3932 else
3933 ac_cv_path_EGREP=$EGREP
3934 fi
3935
3936 fi
3937 fi
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3939 $as_echo "$ac_cv_path_EGREP" >&6; }
3940 EGREP="$ac_cv_path_EGREP"
3941
3942
3943 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3944 $as_echo_n "checking for fgrep... " >&6; }
3945 if test "${ac_cv_path_FGREP+set}" = set; then
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3949 then ac_cv_path_FGREP="$GREP -F"
3950 else
3951 if test -z "$FGREP"; then
3952 ac_path_FGREP_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in fgrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3963 # Check for GNU ac_path_FGREP and select it if it is found.
3964 # Check for GNU $ac_path_FGREP
3965 case `"$ac_path_FGREP" --version 2>&1` in
3966 *GNU*)
3967 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3968 *)
3969 ac_count=0
3970 $as_echo_n 0123456789 >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo 'FGREP' >> "conftest.nl"
3977 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 ac_count=`expr $ac_count + 1`
3980 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_FGREP="$ac_path_FGREP"
3983 ac_path_FGREP_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 esac
3990
3991 $ac_path_FGREP_found && break 3
3992 done
3993 done
3994 done
3995 IFS=$as_save_IFS
3996 if test -z "$ac_cv_path_FGREP"; then
3997 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3998 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3999 { (exit 1); exit 1; }; }
4000 fi
4001 else
4002 ac_cv_path_FGREP=$FGREP
4003 fi
4004
4005 fi
4006 fi
4007 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4008 $as_echo "$ac_cv_path_FGREP" >&6; }
4009 FGREP="$ac_cv_path_FGREP"
4010
4011
4012 test -z "$GREP" && GREP=grep
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032 # Check whether --with-gnu-ld was given.
4033 if test "${with_gnu_ld+set}" = set; then
4034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4035 else
4036 with_gnu_ld=no
4037 fi
4038
4039 ac_prog=ld
4040 if test "$GCC" = yes; then
4041 # Check if gcc -print-prog-name=ld gives a path.
4042 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4043 $as_echo_n "checking for ld used by $CC... " >&6; }
4044 case $host in
4045 *-*-mingw*)
4046 # gcc leaves a trailing carriage return which upsets mingw
4047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4048 *)
4049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4050 esac
4051 case $ac_prog in
4052 # Accept absolute paths.
4053 [\\/]* | ?:[\\/]*)
4054 re_direlt='/[^/][^/]*/\.\./'
4055 # Canonicalize the pathname of ld
4056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4059 done
4060 test -z "$LD" && LD="$ac_prog"
4061 ;;
4062 "")
4063 # If it fails, then pretend we aren't using GCC.
4064 ac_prog=ld
4065 ;;
4066 *)
4067 # If it is relative, then search for the first ld in PATH.
4068 with_gnu_ld=unknown
4069 ;;
4070 esac
4071 elif test "$with_gnu_ld" = yes; then
4072 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4073 $as_echo_n "checking for GNU ld... " >&6; }
4074 else
4075 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4076 $as_echo_n "checking for non-GNU ld... " >&6; }
4077 fi
4078 if test "${lt_cv_path_LD+set}" = set; then
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -z "$LD"; then
4082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4083 for ac_dir in $PATH; do
4084 IFS="$lt_save_ifs"
4085 test -z "$ac_dir" && ac_dir=.
4086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4087 lt_cv_path_LD="$ac_dir/$ac_prog"
4088 # Check to see if the program is GNU ld. I'd rather use --version,
4089 # but apparently some variants of GNU ld only accept -v.
4090 # Break only if it was the GNU/non-GNU ld that we prefer.
4091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4092 *GNU* | *'with BFD'*)
4093 test "$with_gnu_ld" != no && break
4094 ;;
4095 *)
4096 test "$with_gnu_ld" != yes && break
4097 ;;
4098 esac
4099 fi
4100 done
4101 IFS="$lt_save_ifs"
4102 else
4103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4104 fi
4105 fi
4106
4107 LD="$lt_cv_path_LD"
4108 if test -n "$LD"; then
4109 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4110 $as_echo "$LD" >&6; }
4111 else
4112 { $as_echo "$as_me:$LINENO: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4116 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4117 { (exit 1); exit 1; }; }
4118 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4120 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4121 $as_echo_n "(cached) " >&6
4122 else
4123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4124 case `$LD -v 2>&1 </dev/null` in
4125 *GNU* | *'with BFD'*)
4126 lt_cv_prog_gnu_ld=yes
4127 ;;
4128 *)
4129 lt_cv_prog_gnu_ld=no
4130 ;;
4131 esac
4132 fi
4133 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4135 with_gnu_ld=$lt_cv_prog_gnu_ld
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4147 if test "${lt_cv_path_NM+set}" = set; then
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -n "$NM"; then
4151 # Let the user override the test.
4152 lt_cv_path_NM="$NM"
4153 else
4154 lt_nm_to_check="${ac_tool_prefix}nm"
4155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4156 lt_nm_to_check="$lt_nm_to_check nm"
4157 fi
4158 for lt_tmp_nm in $lt_nm_to_check; do
4159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4161 IFS="$lt_save_ifs"
4162 test -z "$ac_dir" && ac_dir=.
4163 tmp_nm="$ac_dir/$lt_tmp_nm"
4164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4165 # Check to see if the nm accepts a BSD-compat flag.
4166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4167 # nm: unknown option "B" ignored
4168 # Tru64's nm complains that /dev/null is an invalid object file
4169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4170 */dev/null* | *'Invalid file or object type'*)
4171 lt_cv_path_NM="$tmp_nm -B"
4172 break
4173 ;;
4174 *)
4175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4176 */dev/null*)
4177 lt_cv_path_NM="$tmp_nm -p"
4178 break
4179 ;;
4180 *)
4181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4182 continue # so that we can try to find one that supports BSD flags
4183 ;;
4184 esac
4185 ;;
4186 esac
4187 fi
4188 done
4189 IFS="$lt_save_ifs"
4190 done
4191 : ${lt_cv_path_NM=no}
4192 fi
4193 fi
4194 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4195 $as_echo "$lt_cv_path_NM" >&6; }
4196 if test "$lt_cv_path_NM" != "no"; then
4197 NM="$lt_cv_path_NM"
4198 else
4199 # Didn't find any BSD compatible name lister, look for dumpbin.
4200 if test -n "$ac_tool_prefix"; then
4201 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4202 do
4203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -n "$DUMPBIN"; then
4211 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 DUMPBIN=$ac_cv_prog_DUMPBIN
4231 if test -n "$DUMPBIN"; then
4232 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4233 $as_echo "$DUMPBIN" >&6; }
4234 else
4235 { $as_echo "$as_me:$LINENO: result: no" >&5
4236 $as_echo "no" >&6; }
4237 fi
4238
4239
4240 test -n "$DUMPBIN" && break
4241 done
4242 fi
4243 if test -z "$DUMPBIN"; then
4244 ac_ct_DUMPBIN=$DUMPBIN
4245 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4246 do
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -n "$ac_ct_DUMPBIN"; then
4255 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4275 if test -n "$ac_ct_DUMPBIN"; then
4276 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4277 $as_echo "$ac_ct_DUMPBIN" >&6; }
4278 else
4279 { $as_echo "$as_me:$LINENO: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283
4284 test -n "$ac_ct_DUMPBIN" && break
4285 done
4286
4287 if test "x$ac_ct_DUMPBIN" = x; then
4288 DUMPBIN=":"
4289 else
4290 case $cross_compiling:$ac_tool_warned in
4291 yes:)
4292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294 ac_tool_warned=yes ;;
4295 esac
4296 DUMPBIN=$ac_ct_DUMPBIN
4297 fi
4298 fi
4299
4300
4301 if test "$DUMPBIN" != ":"; then
4302 NM="$DUMPBIN"
4303 fi
4304 fi
4305 test -z "$NM" && NM=nm
4306
4307
4308
4309
4310
4311
4312 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4313 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4314 if test "${lt_cv_nm_interface+set}" = set; then
4315 $as_echo_n "(cached) " >&6
4316 else
4317 lt_cv_nm_interface="BSD nm"
4318 echo "int some_variable = 0;" > conftest.$ac_ext
4319 (eval echo "\"\$as_me:4319: $ac_compile\"" >&5)
4320 (eval "$ac_compile" 2>conftest.err)
4321 cat conftest.err >&5
4322 (eval echo "\"\$as_me:4322: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4324 cat conftest.err >&5
4325 (eval echo "\"\$as_me:4325: output\"" >&5)
4326 cat conftest.out >&5
4327 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4328 lt_cv_nm_interface="MS dumpbin"
4329 fi
4330 rm -f conftest*
4331 fi
4332 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4333 $as_echo "$lt_cv_nm_interface" >&6; }
4334
4335 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4336 $as_echo_n "checking whether ln -s works... " >&6; }
4337 LN_S=$as_ln_s
4338 if test "$LN_S" = "ln -s"; then
4339 { $as_echo "$as_me:$LINENO: result: yes" >&5
4340 $as_echo "yes" >&6; }
4341 else
4342 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4343 $as_echo "no, using $LN_S" >&6; }
4344 fi
4345
4346 # find the maximum length of command line arguments
4347 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4348 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4349 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4350 $as_echo_n "(cached) " >&6
4351 else
4352 i=0
4353 teststring="ABCD"
4354
4355 case $build_os in
4356 msdosdjgpp*)
4357 # On DJGPP, this test can blow up pretty badly due to problems in libc
4358 # (any single argument exceeding 2000 bytes causes a buffer overrun
4359 # during glob expansion). Even if it were fixed, the result of this
4360 # check would be larger than it should be.
4361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4362 ;;
4363
4364 gnu*)
4365 # Under GNU Hurd, this test is not required because there is
4366 # no limit to the length of command line arguments.
4367 # Libtool will interpret -1 as no limit whatsoever
4368 lt_cv_sys_max_cmd_len=-1;
4369 ;;
4370
4371 cygwin* | mingw* | cegcc*)
4372 # On Win9x/ME, this test blows up -- it succeeds, but takes
4373 # about 5 minutes as the teststring grows exponentially.
4374 # Worse, since 9x/ME are not pre-emptively multitasking,
4375 # you end up with a "frozen" computer, even though with patience
4376 # the test eventually succeeds (with a max line length of 256k).
4377 # Instead, let's just punt: use the minimum linelength reported by
4378 # all of the supported platforms: 8192 (on NT/2K/XP).
4379 lt_cv_sys_max_cmd_len=8192;
4380 ;;
4381
4382 amigaos*)
4383 # On AmigaOS with pdksh, this test takes hours, literally.
4384 # So we just punt and use a minimum line length of 8192.
4385 lt_cv_sys_max_cmd_len=8192;
4386 ;;
4387
4388 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4389 # This has been around since 386BSD, at least. Likely further.
4390 if test -x /sbin/sysctl; then
4391 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4392 elif test -x /usr/sbin/sysctl; then
4393 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4394 else
4395 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4396 fi
4397 # And add a safety zone
4398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4400 ;;
4401
4402 interix*)
4403 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4404 lt_cv_sys_max_cmd_len=196608
4405 ;;
4406
4407 osf*)
4408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4410 # nice to cause kernel panics so lets avoid the loop below.
4411 # First set a reasonable default.
4412 lt_cv_sys_max_cmd_len=16384
4413 #
4414 if test -x /sbin/sysconfig; then
4415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4416 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4417 esac
4418 fi
4419 ;;
4420 sco3.2v5*)
4421 lt_cv_sys_max_cmd_len=102400
4422 ;;
4423 sysv5* | sco5v6* | sysv4.2uw2*)
4424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4425 if test -n "$kargmax"; then
4426 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4427 else
4428 lt_cv_sys_max_cmd_len=32768
4429 fi
4430 ;;
4431 *)
4432 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4433 if test -n "$lt_cv_sys_max_cmd_len"; then
4434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4436 else
4437 # Make teststring a little bigger before we do anything with it.
4438 # a 1K string should be a reasonable start.
4439 for i in 1 2 3 4 5 6 7 8 ; do
4440 teststring=$teststring$teststring
4441 done
4442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4443 # If test is not a shell built-in, we'll probably end up computing a
4444 # maximum length that is only half of the actual maximum length, but
4445 # we can't tell.
4446 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4447 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4448 test $i != 17 # 1/2 MB should be enough
4449 do
4450 i=`expr $i + 1`
4451 teststring=$teststring$teststring
4452 done
4453 # Only check the string length outside the loop.
4454 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4455 teststring=
4456 # Add a significant safety factor because C++ compilers can tack on
4457 # massive amounts of additional arguments before passing them to the
4458 # linker. It appears as though 1/2 is a usable value.
4459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4460 fi
4461 ;;
4462 esac
4463
4464 fi
4465
4466 if test -n $lt_cv_sys_max_cmd_len ; then
4467 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4468 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4469 else
4470 { $as_echo "$as_me:$LINENO: result: none" >&5
4471 $as_echo "none" >&6; }
4472 fi
4473 max_cmd_len=$lt_cv_sys_max_cmd_len
4474
4475
4476
4477
4478
4479
4480 : ${CP="cp -f"}
4481 : ${MV="mv -f"}
4482 : ${RM="rm -f"}
4483
4484 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4485 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4486 # Try some XSI features
4487 xsi_shell=no
4488 ( _lt_dummy="a/b/c"
4489 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4490 = c,a/b,, \
4491 && eval 'test $(( 1 + 1 )) -eq 2 \
4492 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4493 && xsi_shell=yes
4494 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4495 $as_echo "$xsi_shell" >&6; }
4496
4497
4498 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4499 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4500 lt_shell_append=no
4501 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4502 >/dev/null 2>&1 \
4503 && lt_shell_append=yes
4504 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4505 $as_echo "$lt_shell_append" >&6; }
4506
4507
4508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4509 lt_unset=unset
4510 else
4511 lt_unset=false
4512 fi
4513
4514
4515
4516
4517
4518 # test EBCDIC or ASCII
4519 case `echo X|tr X '\101'` in
4520 A) # ASCII based system
4521 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4522 lt_SP2NL='tr \040 \012'
4523 lt_NL2SP='tr \015\012 \040\040'
4524 ;;
4525 *) # EBCDIC based system
4526 lt_SP2NL='tr \100 \n'
4527 lt_NL2SP='tr \r\n \100\100'
4528 ;;
4529 esac
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4540 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4541 if test "${lt_cv_ld_reload_flag+set}" = set; then
4542 $as_echo_n "(cached) " >&6
4543 else
4544 lt_cv_ld_reload_flag='-r'
4545 fi
4546 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4547 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4548 reload_flag=$lt_cv_ld_reload_flag
4549 case $reload_flag in
4550 "" | " "*) ;;
4551 *) reload_flag=" $reload_flag" ;;
4552 esac
4553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4554 case $host_os in
4555 darwin*)
4556 if test "$GCC" = yes; then
4557 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4558 else
4559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4560 fi
4561 ;;
4562 esac
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572 if test -n "$ac_tool_prefix"; then
4573 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4574 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4575 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$OBJDUMP"; then
4581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594 done
4595 done
4596 IFS=$as_save_IFS
4597
4598 fi
4599 fi
4600 OBJDUMP=$ac_cv_prog_OBJDUMP
4601 if test -n "$OBJDUMP"; then
4602 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4603 $as_echo "$OBJDUMP" >&6; }
4604 else
4605 { $as_echo "$as_me:$LINENO: result: no" >&5
4606 $as_echo "no" >&6; }
4607 fi
4608
4609
4610 fi
4611 if test -z "$ac_cv_prog_OBJDUMP"; then
4612 ac_ct_OBJDUMP=$OBJDUMP
4613 # Extract the first word of "objdump", so it can be a program name with args.
4614 set dummy objdump; ac_word=$2
4615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$ac_ct_OBJDUMP"; then
4621 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638 fi
4639 fi
4640 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4641 if test -n "$ac_ct_OBJDUMP"; then
4642 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4643 $as_echo "$ac_ct_OBJDUMP" >&6; }
4644 else
4645 { $as_echo "$as_me:$LINENO: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648
4649 if test "x$ac_ct_OBJDUMP" = x; then
4650 OBJDUMP="false"
4651 else
4652 case $cross_compiling:$ac_tool_warned in
4653 yes:)
4654 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656 ac_tool_warned=yes ;;
4657 esac
4658 OBJDUMP=$ac_ct_OBJDUMP
4659 fi
4660 else
4661 OBJDUMP="$ac_cv_prog_OBJDUMP"
4662 fi
4663
4664 test -z "$OBJDUMP" && OBJDUMP=objdump
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4675 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4676 if test "${lt_cv_deplibs_check_method+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4678 else
4679 lt_cv_file_magic_cmd='$MAGIC_CMD'
4680 lt_cv_file_magic_test_file=
4681 lt_cv_deplibs_check_method='unknown'
4682 # Need to set the preceding variable on all platforms that support
4683 # interlibrary dependencies.
4684 # 'none' -- dependencies not supported.
4685 # `unknown' -- same as none, but documents that we really don't know.
4686 # 'pass_all' -- all dependencies passed with no checks.
4687 # 'test_compile' -- check by making test program.
4688 # 'file_magic [[regex]]' -- check by looking for files in library path
4689 # which responds to the $file_magic_cmd with a given extended regex.
4690 # If you have `file' or equivalent on your system and you're not sure
4691 # whether `pass_all' will *always* work, you probably want this one.
4692
4693 case $host_os in
4694 aix[4-9]*)
4695 lt_cv_deplibs_check_method=pass_all
4696 ;;
4697
4698 beos*)
4699 lt_cv_deplibs_check_method=pass_all
4700 ;;
4701
4702 bsdi[45]*)
4703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4704 lt_cv_file_magic_cmd='/usr/bin/file -L'
4705 lt_cv_file_magic_test_file=/shlib/libc.so
4706 ;;
4707
4708 cygwin*)
4709 # func_win32_libid is a shell function defined in ltmain.sh
4710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4711 lt_cv_file_magic_cmd='func_win32_libid'
4712 ;;
4713
4714 mingw* | pw32*)
4715 # Base MSYS/MinGW do not provide the 'file' command needed by
4716 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4717 # unless we find 'file', for example because we are cross-compiling.
4718 if ( file / ) >/dev/null 2>&1; then
4719 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4720 lt_cv_file_magic_cmd='func_win32_libid'
4721 else
4722 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4723 lt_cv_file_magic_cmd='$OBJDUMP -f'
4724 fi
4725 ;;
4726
4727 cegcc)
4728 # use the weaker test based on 'objdump'. See mingw*.
4729 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4730 lt_cv_file_magic_cmd='$OBJDUMP -f'
4731 ;;
4732
4733 darwin* | rhapsody*)
4734 lt_cv_deplibs_check_method=pass_all
4735 ;;
4736
4737 freebsd* | dragonfly*)
4738 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4739 case $host_cpu in
4740 i*86 )
4741 # Not sure whether the presence of OpenBSD here was a mistake.
4742 # Let's accept both of them until this is cleared up.
4743 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4744 lt_cv_file_magic_cmd=/usr/bin/file
4745 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4746 ;;
4747 esac
4748 else
4749 lt_cv_deplibs_check_method=pass_all
4750 fi
4751 ;;
4752
4753 gnu*)
4754 lt_cv_deplibs_check_method=pass_all
4755 ;;
4756
4757 hpux10.20* | hpux11*)
4758 lt_cv_file_magic_cmd=/usr/bin/file
4759 case $host_cpu in
4760 ia64*)
4761 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4762 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4763 ;;
4764 hppa*64*)
4765 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]'
4766 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4767 ;;
4768 *)
4769 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4770 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4771 ;;
4772 esac
4773 ;;
4774
4775 interix[3-9]*)
4776 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4778 ;;
4779
4780 irix5* | irix6* | nonstopux*)
4781 case $LD in
4782 *-32|*"-32 ") libmagic=32-bit;;
4783 *-n32|*"-n32 ") libmagic=N32;;
4784 *-64|*"-64 ") libmagic=64-bit;;
4785 *) libmagic=never-match;;
4786 esac
4787 lt_cv_deplibs_check_method=pass_all
4788 ;;
4789
4790 # This must be Linux ELF.
4791 linux* | k*bsd*-gnu)
4792 lt_cv_deplibs_check_method=pass_all
4793 ;;
4794
4795 netbsd*)
4796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4798 else
4799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4800 fi
4801 ;;
4802
4803 newos6*)
4804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4805 lt_cv_file_magic_cmd=/usr/bin/file
4806 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4807 ;;
4808
4809 *nto* | *qnx*)
4810 lt_cv_deplibs_check_method=pass_all
4811 ;;
4812
4813 openbsd*)
4814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4816 else
4817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4818 fi
4819 ;;
4820
4821 osf3* | osf4* | osf5*)
4822 lt_cv_deplibs_check_method=pass_all
4823 ;;
4824
4825 rdos*)
4826 lt_cv_deplibs_check_method=pass_all
4827 ;;
4828
4829 solaris*)
4830 lt_cv_deplibs_check_method=pass_all
4831 ;;
4832
4833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4834 lt_cv_deplibs_check_method=pass_all
4835 ;;
4836
4837 sysv4 | sysv4.3*)
4838 case $host_vendor in
4839 motorola)
4840 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]'
4841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4842 ;;
4843 ncr)
4844 lt_cv_deplibs_check_method=pass_all
4845 ;;
4846 sequent)
4847 lt_cv_file_magic_cmd='/bin/file'
4848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4849 ;;
4850 sni)
4851 lt_cv_file_magic_cmd='/bin/file'
4852 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4853 lt_cv_file_magic_test_file=/lib/libc.so
4854 ;;
4855 siemens)
4856 lt_cv_deplibs_check_method=pass_all
4857 ;;
4858 pc)
4859 lt_cv_deplibs_check_method=pass_all
4860 ;;
4861 esac
4862 ;;
4863
4864 tpf*)
4865 lt_cv_deplibs_check_method=pass_all
4866 ;;
4867 esac
4868
4869 fi
4870 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4871 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4872 file_magic_cmd=$lt_cv_file_magic_cmd
4873 deplibs_check_method=$lt_cv_deplibs_check_method
4874 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}ar; ac_word=$2
4890 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_AR+set}" = set; then
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$AR"; then
4896 ac_cv_prog_AR="$AR" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_AR="${ac_tool_prefix}ar"
4906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 AR=$ac_cv_prog_AR
4916 if test -n "$AR"; then
4917 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4918 $as_echo "$AR" >&6; }
4919 else
4920 { $as_echo "$as_me:$LINENO: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923
4924
4925 fi
4926 if test -z "$ac_cv_prog_AR"; then
4927 ac_ct_AR=$AR
4928 # Extract the first word of "ar", so it can be a program name with args.
4929 set dummy ar; ac_word=$2
4930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4933 $as_echo_n "(cached) " >&6
4934 else
4935 if test -n "$ac_ct_AR"; then
4936 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_ac_ct_AR="ar"
4946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4956 if test -n "$ac_ct_AR"; then
4957 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4958 $as_echo "$ac_ct_AR" >&6; }
4959 else
4960 { $as_echo "$as_me:$LINENO: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964 if test "x$ac_ct_AR" = x; then
4965 AR="false"
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 AR=$ac_ct_AR
4974 fi
4975 else
4976 AR="$ac_cv_prog_AR"
4977 fi
4978
4979 test -z "$AR" && AR=ar
4980 test -z "$AR_FLAGS" && AR_FLAGS=cru
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 if test -n "$ac_tool_prefix"; then
4993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4994 set dummy ${ac_tool_prefix}strip; ac_word=$2
4995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if test "${ac_cv_prog_STRIP+set}" = set; then
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -n "$STRIP"; then
5001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5013 fi
5014 done
5015 done
5016 IFS=$as_save_IFS
5017
5018 fi
5019 fi
5020 STRIP=$ac_cv_prog_STRIP
5021 if test -n "$STRIP"; then
5022 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5023 $as_echo "$STRIP" >&6; }
5024 else
5025 { $as_echo "$as_me:$LINENO: result: no" >&5
5026 $as_echo "no" >&6; }
5027 fi
5028
5029
5030 fi
5031 if test -z "$ac_cv_prog_STRIP"; then
5032 ac_ct_STRIP=$STRIP
5033 # Extract the first word of "strip", so it can be a program name with args.
5034 set dummy strip; ac_word=$2
5035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$ac_ct_STRIP"; then
5041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5045 do
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_ac_ct_STRIP="strip"
5051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5061 if test -n "$ac_ct_STRIP"; then
5062 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5063 $as_echo "$ac_ct_STRIP" >&6; }
5064 else
5065 { $as_echo "$as_me:$LINENO: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069 if test "x$ac_ct_STRIP" = x; then
5070 STRIP=":"
5071 else
5072 case $cross_compiling:$ac_tool_warned in
5073 yes:)
5074 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078 STRIP=$ac_ct_STRIP
5079 fi
5080 else
5081 STRIP="$ac_cv_prog_STRIP"
5082 fi
5083
5084 test -z "$STRIP" && STRIP=:
5085
5086
5087
5088
5089
5090
5091 if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5093 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_prog_RANLIB+set}" = set; then
5097 $as_echo_n "(cached) " >&6
5098 else
5099 if test -n "$RANLIB"; then
5100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5101 else
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 break 2
5112 fi
5113 done
5114 done
5115 IFS=$as_save_IFS
5116
5117 fi
5118 fi
5119 RANLIB=$ac_cv_prog_RANLIB
5120 if test -n "$RANLIB"; then
5121 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5122 $as_echo "$RANLIB" >&6; }
5123 else
5124 { $as_echo "$as_me:$LINENO: result: no" >&5
5125 $as_echo "no" >&6; }
5126 fi
5127
5128
5129 fi
5130 if test -z "$ac_cv_prog_RANLIB"; then
5131 ac_ct_RANLIB=$RANLIB
5132 # Extract the first word of "ranlib", so it can be a program name with args.
5133 set dummy ranlib; ac_word=$2
5134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$ac_ct_RANLIB"; then
5140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_ac_ct_RANLIB="ranlib"
5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5160 if test -n "$ac_ct_RANLIB"; then
5161 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5162 $as_echo "$ac_ct_RANLIB" >&6; }
5163 else
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168 if test "x$ac_ct_RANLIB" = x; then
5169 RANLIB=":"
5170 else
5171 case $cross_compiling:$ac_tool_warned in
5172 yes:)
5173 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5175 ac_tool_warned=yes ;;
5176 esac
5177 RANLIB=$ac_ct_RANLIB
5178 fi
5179 else
5180 RANLIB="$ac_cv_prog_RANLIB"
5181 fi
5182
5183 test -z "$RANLIB" && RANLIB=:
5184
5185
5186
5187
5188
5189
5190 # Determine commands to create old-style static archives.
5191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5192 old_postinstall_cmds='chmod 644 $oldlib'
5193 old_postuninstall_cmds=
5194
5195 if test -n "$RANLIB"; then
5196 case $host_os in
5197 openbsd*)
5198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5199 ;;
5200 *)
5201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5202 ;;
5203 esac
5204 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5205 fi
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240 # If no C compiler was specified, use CC.
5241 LTCC=${LTCC-"$CC"}
5242
5243 # If no C compiler flags were specified, use CFLAGS.
5244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5245
5246 # Allow CC to be a program name with arguments.
5247 compiler=$CC
5248
5249
5250 # Check for command to grab the raw symbol name followed by C symbol from nm.
5251 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5252 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5253 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5254 $as_echo_n "(cached) " >&6
5255 else
5256
5257 # These are sane defaults that work on at least a few old systems.
5258 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5259
5260 # Character class describing NM global symbol codes.
5261 symcode='[BCDEGRST]'
5262
5263 # Regexp to match symbols that can be accessed directly from C.
5264 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5265
5266 # Define system-specific variables.
5267 case $host_os in
5268 aix*)
5269 symcode='[BCDT]'
5270 ;;
5271 cygwin* | mingw* | pw32* | cegcc*)
5272 symcode='[ABCDGISTW]'
5273 ;;
5274 hpux*)
5275 if test "$host_cpu" = ia64; then
5276 symcode='[ABCDEGRST]'
5277 fi
5278 ;;
5279 irix* | nonstopux*)
5280 symcode='[BCDEGRST]'
5281 ;;
5282 osf*)
5283 symcode='[BCDEGQRST]'
5284 ;;
5285 solaris*)
5286 symcode='[BDRT]'
5287 ;;
5288 sco3.2v5*)
5289 symcode='[DT]'
5290 ;;
5291 sysv4.2uw2*)
5292 symcode='[DT]'
5293 ;;
5294 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5295 symcode='[ABDT]'
5296 ;;
5297 sysv4)
5298 symcode='[DFNSTU]'
5299 ;;
5300 esac
5301
5302 # If we're using GNU nm, then use its standard symbol codes.
5303 case `$NM -V 2>&1` in
5304 *GNU* | *'with BFD'*)
5305 symcode='[ABCDGIRSTW]' ;;
5306 esac
5307
5308 # Transform an extracted symbol line into a proper C declaration.
5309 # Some systems (esp. on ia64) link data and code symbols differently,
5310 # so use this general approach.
5311 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5312
5313 # Transform an extracted symbol line into symbol name and symbol address
5314 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5315 lt_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'"
5316
5317 # Handle CRLF in mingw tool chain
5318 opt_cr=
5319 case $build_os in
5320 mingw*)
5321 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5322 ;;
5323 esac
5324
5325 # Try without a prefix underscore, then with it.
5326 for ac_symprfx in "" "_"; do
5327
5328 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5329 symxfrm="\\1 $ac_symprfx\\2 \\2"
5330
5331 # Write the raw and C identifiers.
5332 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5333 # Fake it for dumpbin and say T for any non-static function
5334 # and D for any global variable.
5335 # Also find C++ and __fastcall symbols from MSVC++,
5336 # which start with @ or ?.
5337 lt_cv_sys_global_symbol_pipe="$AWK '"\
5338 " {last_section=section; section=\$ 3};"\
5339 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5340 " \$ 0!~/External *\|/{next};"\
5341 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5342 " {if(hide[section]) next};"\
5343 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5344 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5345 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5346 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5347 " ' prfx=^$ac_symprfx"
5348 else
5349 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5350 fi
5351
5352 # Check to see that the pipe works correctly.
5353 pipe_works=no
5354
5355 rm -f conftest*
5356 cat > conftest.$ac_ext <<_LT_EOF
5357 #ifdef __cplusplus
5358 extern "C" {
5359 #endif
5360 char nm_test_var;
5361 void nm_test_func(void);
5362 void nm_test_func(void){}
5363 #ifdef __cplusplus
5364 }
5365 #endif
5366 int main(){nm_test_var='a';nm_test_func();return(0);}
5367 _LT_EOF
5368
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>&5
5371 ac_status=$?
5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; then
5374 # Now try to grab the symbols.
5375 nlist=conftest.nm
5376 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5377 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5378 ac_status=$?
5379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && test -s "$nlist"; then
5381 # Try sorting and uniquifying the output.
5382 if sort "$nlist" | uniq > "$nlist"T; then
5383 mv -f "$nlist"T "$nlist"
5384 else
5385 rm -f "$nlist"T
5386 fi
5387
5388 # Make sure that we snagged all the symbols we need.
5389 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5390 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5391 cat <<_LT_EOF > conftest.$ac_ext
5392 #ifdef __cplusplus
5393 extern "C" {
5394 #endif
5395
5396 _LT_EOF
5397 # Now generate the symbol file.
5398 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5399
5400 cat <<_LT_EOF >> conftest.$ac_ext
5401
5402 /* The mapping between symbol names and symbols. */
5403 const struct {
5404 const char *name;
5405 void *address;
5406 }
5407 lt__PROGRAM__LTX_preloaded_symbols[] =
5408 {
5409 { "@PROGRAM@", (void *) 0 },
5410 _LT_EOF
5411 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5412 cat <<\_LT_EOF >> conftest.$ac_ext
5413 {0, (void *) 0}
5414 };
5415
5416 /* This works around a problem in FreeBSD linker */
5417 #ifdef FREEBSD_WORKAROUND
5418 static const void *lt_preloaded_setup() {
5419 return lt__PROGRAM__LTX_preloaded_symbols;
5420 }
5421 #endif
5422
5423 #ifdef __cplusplus
5424 }
5425 #endif
5426 _LT_EOF
5427 # Now try linking the two files.
5428 mv conftest.$ac_objext conftstm.$ac_objext
5429 lt_save_LIBS="$LIBS"
5430 lt_save_CFLAGS="$CFLAGS"
5431 LIBS="conftstm.$ac_objext"
5432 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5434 (eval $ac_link) 2>&5
5435 ac_status=$?
5436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5438 pipe_works=yes
5439 fi
5440 LIBS="$lt_save_LIBS"
5441 CFLAGS="$lt_save_CFLAGS"
5442 else
5443 echo "cannot find nm_test_func in $nlist" >&5
5444 fi
5445 else
5446 echo "cannot find nm_test_var in $nlist" >&5
5447 fi
5448 else
5449 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5450 fi
5451 else
5452 echo "$progname: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 fi
5455 rm -rf conftest* conftst*
5456
5457 # Do not use the global_symbol_pipe unless it works.
5458 if test "$pipe_works" = yes; then
5459 break
5460 else
5461 lt_cv_sys_global_symbol_pipe=
5462 fi
5463 done
5464
5465 fi
5466
5467 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5468 lt_cv_sys_global_symbol_to_cdecl=
5469 fi
5470 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5471 { $as_echo "$as_me:$LINENO: result: failed" >&5
5472 $as_echo "failed" >&6; }
5473 else
5474 { $as_echo "$as_me:$LINENO: result: ok" >&5
5475 $as_echo "ok" >&6; }
5476 fi
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500 # Check whether --enable-libtool-lock was given.
5501 if test "${enable_libtool_lock+set}" = set; then
5502 enableval=$enable_libtool_lock;
5503 fi
5504
5505 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5506
5507 # Some flags need to be propagated to the compiler or linker for good
5508 # libtool support.
5509 case $host in
5510 ia64-*-hpux*)
5511 # Find out which ABI we are using.
5512 echo 'int i;' > conftest.$ac_ext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>&5
5515 ac_status=$?
5516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; then
5518 case `/usr/bin/file conftest.$ac_objext` in
5519 *ELF-32*)
5520 HPUX_IA64_MODE="32"
5521 ;;
5522 *ELF-64*)
5523 HPUX_IA64_MODE="64"
5524 ;;
5525 esac
5526 fi
5527 rm -rf conftest*
5528 ;;
5529 *-*-irix6*)
5530 # Find out which ABI we are using.
5531 echo '#line 5531 "configure"' > conftest.$ac_ext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5534 ac_status=$?
5535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; then
5537 if test "$lt_cv_prog_gnu_ld" = yes; then
5538 case `/usr/bin/file conftest.$ac_objext` in
5539 *32-bit*)
5540 LD="${LD-ld} -melf32bsmip"
5541 ;;
5542 *N32*)
5543 LD="${LD-ld} -melf32bmipn32"
5544 ;;
5545 *64-bit*)
5546 LD="${LD-ld} -melf64bmip"
5547 ;;
5548 esac
5549 else
5550 case `/usr/bin/file conftest.$ac_objext` in
5551 *32-bit*)
5552 LD="${LD-ld} -32"
5553 ;;
5554 *N32*)
5555 LD="${LD-ld} -n32"
5556 ;;
5557 *64-bit*)
5558 LD="${LD-ld} -64"
5559 ;;
5560 esac
5561 fi
5562 fi
5563 rm -rf conftest*
5564 ;;
5565
5566 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5567 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5568 # Find out which ABI we are using.
5569 echo 'int i;' > conftest.$ac_ext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>&5
5572 ac_status=$?
5573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; then
5575 case `/usr/bin/file conftest.o` in
5576 *32-bit*)
5577 case $host in
5578 x86_64-*kfreebsd*-gnu)
5579 LD="${LD-ld} -m elf_i386_fbsd"
5580 ;;
5581 x86_64-*linux*)
5582 LD="${LD-ld} -m elf_i386"
5583 ;;
5584 ppc64-*linux*|powerpc64-*linux*)
5585 LD="${LD-ld} -m elf32ppclinux"
5586 ;;
5587 s390x-*linux*)
5588 LD="${LD-ld} -m elf_s390"
5589 ;;
5590 sparc64-*linux*)
5591 LD="${LD-ld} -m elf32_sparc"
5592 ;;
5593 esac
5594 ;;
5595 *64-bit*)
5596 case $host in
5597 x86_64-*kfreebsd*-gnu)
5598 LD="${LD-ld} -m elf_x86_64_fbsd"
5599 ;;
5600 x86_64-*linux*)
5601 LD="${LD-ld} -m elf_x86_64"
5602 ;;
5603 ppc*-*linux*|powerpc*-*linux*)
5604 LD="${LD-ld} -m elf64ppc"
5605 ;;
5606 s390*-*linux*|s390*-*tpf*)
5607 LD="${LD-ld} -m elf64_s390"
5608 ;;
5609 sparc*-*linux*)
5610 LD="${LD-ld} -m elf64_sparc"
5611 ;;
5612 esac
5613 ;;
5614 esac
5615 fi
5616 rm -rf conftest*
5617 ;;
5618
5619 *-*-sco3.2v5*)
5620 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5621 SAVE_CFLAGS="$CFLAGS"
5622 CFLAGS="$CFLAGS -belf"
5623 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5624 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5625 if test "${lt_cv_cc_needs_belf+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5627 else
5628 ac_ext=c
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640
5641 int
5642 main ()
5643 {
5644
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (ac_try="$ac_link"
5651 case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5656 $as_echo "$ac_try_echo") >&5
5657 (eval "$ac_link") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest$ac_exeext && {
5667 test "$cross_compiling" = yes ||
5668 $as_test_x conftest$ac_exeext
5669 }; then
5670 lt_cv_cc_needs_belf=yes
5671 else
5672 $as_echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 lt_cv_cc_needs_belf=no
5676 fi
5677
5678 rm -rf conftest.dSYM
5679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5680 conftest$ac_exeext conftest.$ac_ext
5681 ac_ext=c
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686
5687 fi
5688 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5689 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5690 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5691 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5692 CFLAGS="$SAVE_CFLAGS"
5693 fi
5694 ;;
5695 sparc*-*solaris*)
5696 # Find out which ABI we are using.
5697 echo 'int i;' > conftest.$ac_ext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5700 ac_status=$?
5701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; then
5703 case `/usr/bin/file conftest.o` in
5704 *64-bit*)
5705 case $lt_cv_prog_gnu_ld in
5706 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5707 *)
5708 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5709 LD="${LD-ld} -64"
5710 fi
5711 ;;
5712 esac
5713 ;;
5714 esac
5715 fi
5716 rm -rf conftest*
5717 ;;
5718 esac
5719
5720 need_locks="$enable_libtool_lock"
5721
5722
5723 case $host_os in
5724 rhapsody* | darwin*)
5725 if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if test -n "$DSYMUTIL"; then
5734 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747 done
5748 done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5754 if test -n "$DSYMUTIL"; then
5755 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5756 $as_echo "$DSYMUTIL" >&6; }
5757 else
5758 { $as_echo "$as_me:$LINENO: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763 fi
5764 if test -z "$ac_cv_prog_DSYMUTIL"; then
5765 ac_ct_DSYMUTIL=$DSYMUTIL
5766 # Extract the first word of "dsymutil", so it can be a program name with args.
5767 set dummy dsymutil; ac_word=$2
5768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5771 $as_echo_n "(cached) " >&6
5772 else
5773 if test -n "$ac_ct_DSYMUTIL"; then
5774 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787 done
5788 done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5794 if test -n "$ac_ct_DSYMUTIL"; then
5795 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5796 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5797 else
5798 { $as_echo "$as_me:$LINENO: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802 if test "x$ac_ct_DSYMUTIL" = x; then
5803 DSYMUTIL=":"
5804 else
5805 case $cross_compiling:$ac_tool_warned in
5806 yes:)
5807 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809 ac_tool_warned=yes ;;
5810 esac
5811 DSYMUTIL=$ac_ct_DSYMUTIL
5812 fi
5813 else
5814 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5815 fi
5816
5817 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$NMEDIT"; then
5826 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 NMEDIT=$ac_cv_prog_NMEDIT
5846 if test -n "$NMEDIT"; then
5847 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5848 $as_echo "$NMEDIT" >&6; }
5849 else
5850 { $as_echo "$as_me:$LINENO: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 fi
5856 if test -z "$ac_cv_prog_NMEDIT"; then
5857 ac_ct_NMEDIT=$NMEDIT
5858 # Extract the first word of "nmedit", so it can be a program name with args.
5859 set dummy nmedit; ac_word=$2
5860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$ac_ct_NMEDIT"; then
5866 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5886 if test -n "$ac_ct_NMEDIT"; then
5887 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5888 $as_echo "$ac_ct_NMEDIT" >&6; }
5889 else
5890 { $as_echo "$as_me:$LINENO: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894 if test "x$ac_ct_NMEDIT" = x; then
5895 NMEDIT=":"
5896 else
5897 case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903 NMEDIT=$ac_ct_NMEDIT
5904 fi
5905 else
5906 NMEDIT="$ac_cv_prog_NMEDIT"
5907 fi
5908
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5912 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_LIPO+set}" = set; then
5915 $as_echo_n "(cached) " >&6
5916 else
5917 if test -n "$LIPO"; then
5918 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931 done
5932 done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 LIPO=$ac_cv_prog_LIPO
5938 if test -n "$LIPO"; then
5939 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5940 $as_echo "$LIPO" >&6; }
5941 else
5942 { $as_echo "$as_me:$LINENO: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947 fi
5948 if test -z "$ac_cv_prog_LIPO"; then
5949 ac_ct_LIPO=$LIPO
5950 # Extract the first word of "lipo", so it can be a program name with args.
5951 set dummy lipo; ac_word=$2
5952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$ac_ct_LIPO"; then
5958 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_LIPO="lipo"
5968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973 IFS=$as_save_IFS
5974
5975 fi
5976 fi
5977 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5978 if test -n "$ac_ct_LIPO"; then
5979 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5980 $as_echo "$ac_ct_LIPO" >&6; }
5981 else
5982 { $as_echo "$as_me:$LINENO: result: no" >&5
5983 $as_echo "no" >&6; }
5984 fi
5985
5986 if test "x$ac_ct_LIPO" = x; then
5987 LIPO=":"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 LIPO=$ac_ct_LIPO
5996 fi
5997 else
5998 LIPO="$ac_cv_prog_LIPO"
5999 fi
6000
6001 if test -n "$ac_tool_prefix"; then
6002 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}otool; ac_word=$2
6004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_prog_OTOOL+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if test -n "$OTOOL"; then
6010 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023 done
6024 done
6025 IFS=$as_save_IFS
6026
6027 fi
6028 fi
6029 OTOOL=$ac_cv_prog_OTOOL
6030 if test -n "$OTOOL"; then
6031 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6032 $as_echo "$OTOOL" >&6; }
6033 else
6034 { $as_echo "$as_me:$LINENO: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037
6038
6039 fi
6040 if test -z "$ac_cv_prog_OTOOL"; then
6041 ac_ct_OTOOL=$OTOOL
6042 # Extract the first word of "otool", so it can be a program name with args.
6043 set dummy otool; ac_word=$2
6044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$ac_ct_OTOOL"; then
6050 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_ac_ct_OTOOL="otool"
6060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6070 if test -n "$ac_ct_OTOOL"; then
6071 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6072 $as_echo "$ac_ct_OTOOL" >&6; }
6073 else
6074 { $as_echo "$as_me:$LINENO: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078 if test "x$ac_ct_OTOOL" = x; then
6079 OTOOL=":"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 OTOOL=$ac_ct_OTOOL
6088 fi
6089 else
6090 OTOOL="$ac_cv_prog_OTOOL"
6091 fi
6092
6093 if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6095 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6099 $as_echo_n "(cached) " >&6
6100 else
6101 if test -n "$OTOOL64"; then
6102 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6103 else
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115 done
6116 done
6117 IFS=$as_save_IFS
6118
6119 fi
6120 fi
6121 OTOOL64=$ac_cv_prog_OTOOL64
6122 if test -n "$OTOOL64"; then
6123 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6124 $as_echo "$OTOOL64" >&6; }
6125 else
6126 { $as_echo "$as_me:$LINENO: result: no" >&5
6127 $as_echo "no" >&6; }
6128 fi
6129
6130
6131 fi
6132 if test -z "$ac_cv_prog_OTOOL64"; then
6133 ac_ct_OTOOL64=$OTOOL64
6134 # Extract the first word of "otool64", so it can be a program name with args.
6135 set dummy otool64; ac_word=$2
6136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -n "$ac_ct_OTOOL64"; then
6142 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_OTOOL64="otool64"
6152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6162 if test -n "$ac_ct_OTOOL64"; then
6163 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6164 $as_echo "$ac_ct_OTOOL64" >&6; }
6165 else
6166 { $as_echo "$as_me:$LINENO: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170 if test "x$ac_ct_OTOOL64" = x; then
6171 OTOOL64=":"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179 OTOOL64=$ac_ct_OTOOL64
6180 fi
6181 else
6182 OTOOL64="$ac_cv_prog_OTOOL64"
6183 fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6212 $as_echo_n "checking for -single_module linker flag... " >&6; }
6213 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6215 else
6216 lt_cv_apple_cc_single_mod=no
6217 if test -z "${LT_MULTI_MODULE}"; then
6218 # By default we will add the -single_module flag. You can override
6219 # by either setting the environment variable LT_MULTI_MODULE
6220 # non-empty at configure time, or by adding -multi_module to the
6221 # link flags.
6222 rm -rf libconftest.dylib*
6223 echo "int foo(void){return 1;}" > conftest.c
6224 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6225 -dynamiclib -Wl,-single_module conftest.c" >&5
6226 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6227 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6228 _lt_result=$?
6229 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6230 lt_cv_apple_cc_single_mod=yes
6231 else
6232 cat conftest.err >&5
6233 fi
6234 rm -rf libconftest.dylib*
6235 rm -f conftest.*
6236 fi
6237 fi
6238 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6239 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6240 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6241 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6242 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6243 $as_echo_n "(cached) " >&6
6244 else
6245 lt_cv_ld_exported_symbols_list=no
6246 save_LDFLAGS=$LDFLAGS
6247 echo "_main" > conftest.sym
6248 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255
6256 int
6257 main ()
6258 {
6259
6260 ;
6261 return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (ac_try="$ac_link"
6266 case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269 esac
6270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6271 $as_echo "$ac_try_echo") >&5
6272 (eval "$ac_link") 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && {
6279 test -z "$ac_c_werror_flag" ||
6280 test ! -s conftest.err
6281 } && test -s conftest$ac_exeext && {
6282 test "$cross_compiling" = yes ||
6283 $as_test_x conftest$ac_exeext
6284 }; then
6285 lt_cv_ld_exported_symbols_list=yes
6286 else
6287 $as_echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290 lt_cv_ld_exported_symbols_list=no
6291 fi
6292
6293 rm -rf conftest.dSYM
6294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6295 conftest$ac_exeext conftest.$ac_ext
6296 LDFLAGS="$save_LDFLAGS"
6297
6298 fi
6299 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6300 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6301 case $host_os in
6302 rhapsody* | darwin1.[012])
6303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6304 darwin1.*)
6305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6306 darwin*) # darwin 5.x on
6307 # if running on 10.5 or later, the deployment target defaults
6308 # to the OS version, if on x86, and 10.4, the deployment
6309 # target defaults to 10.4. Don't you love it?
6310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6313 10.[012]*)
6314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6315 10.*)
6316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6317 esac
6318 ;;
6319 esac
6320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6321 _lt_dar_single_mod='$single_module'
6322 fi
6323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6325 else
6326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6327 fi
6328 if test "$DSYMUTIL" != ":"; then
6329 _lt_dsymutil='~$DSYMUTIL $lib || :'
6330 else
6331 _lt_dsymutil=
6332 fi
6333 ;;
6334 esac
6335
6336 ac_ext=c
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6342 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6343 # On Suns, sometimes $CPP names a directory.
6344 if test -n "$CPP" && test -d "$CPP"; then
6345 CPP=
6346 fi
6347 if test -z "$CPP"; then
6348 if test "${ac_cv_prog_CPP+set}" = set; then
6349 $as_echo_n "(cached) " >&6
6350 else
6351 # Double quotes because CPP needs to be expanded
6352 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6353 do
6354 ac_preproc_ok=false
6355 for ac_c_preproc_warn_flag in '' yes
6356 do
6357 # Use a header file that comes with gcc, so configuring glibc
6358 # with a fresh cross-compiler works.
6359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6360 # <limits.h> exists even on freestanding compilers.
6361 # On the NeXT, cc -E runs the code through the compiler's parser,
6362 # not just through cpp. "Syntax error" is here to catch this case.
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #ifdef __STDC__
6370 # include <limits.h>
6371 #else
6372 # include <assert.h>
6373 #endif
6374 Syntax error
6375 _ACEOF
6376 if { (ac_try="$ac_cpp conftest.$ac_ext"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } >/dev/null && {
6390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 }; then
6393 :
6394 else
6395 $as_echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 # Broken: fails on valid input.
6399 continue
6400 fi
6401
6402 rm -f conftest.err conftest.$ac_ext
6403
6404 # OK, works on sane cases. Now check whether nonexistent headers
6405 # can be detected and how.
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <ac_nonexistent.h>
6413 _ACEOF
6414 if { (ac_try="$ac_cpp conftest.$ac_ext"
6415 case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418 esac
6419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6420 $as_echo "$ac_try_echo") >&5
6421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } >/dev/null && {
6428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6430 }; then
6431 # Broken: success on invalid input.
6432 continue
6433 else
6434 $as_echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437 # Passes both tests.
6438 ac_preproc_ok=:
6439 break
6440 fi
6441
6442 rm -f conftest.err conftest.$ac_ext
6443
6444 done
6445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6446 rm -f conftest.err conftest.$ac_ext
6447 if $ac_preproc_ok; then
6448 break
6449 fi
6450
6451 done
6452 ac_cv_prog_CPP=$CPP
6453
6454 fi
6455 CPP=$ac_cv_prog_CPP
6456 else
6457 ac_cv_prog_CPP=$CPP
6458 fi
6459 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6460 $as_echo "$CPP" >&6; }
6461 ac_preproc_ok=false
6462 for ac_c_preproc_warn_flag in '' yes
6463 do
6464 # Use a header file that comes with gcc, so configuring glibc
6465 # with a fresh cross-compiler works.
6466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467 # <limits.h> exists even on freestanding compilers.
6468 # On the NeXT, cc -E runs the code through the compiler's parser,
6469 # not just through cpp. "Syntax error" is here to catch this case.
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 #ifdef __STDC__
6477 # include <limits.h>
6478 #else
6479 # include <assert.h>
6480 #endif
6481 Syntax error
6482 _ACEOF
6483 if { (ac_try="$ac_cpp conftest.$ac_ext"
6484 case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489 $as_echo "$ac_try_echo") >&5
6490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } >/dev/null && {
6497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6498 test ! -s conftest.err
6499 }; then
6500 :
6501 else
6502 $as_echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505 # Broken: fails on valid input.
6506 continue
6507 fi
6508
6509 rm -f conftest.err conftest.$ac_ext
6510
6511 # OK, works on sane cases. Now check whether nonexistent headers
6512 # can be detected and how.
6513 cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h. */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 #include <ac_nonexistent.h>
6520 _ACEOF
6521 if { (ac_try="$ac_cpp conftest.$ac_ext"
6522 case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525 esac
6526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6527 $as_echo "$ac_try_echo") >&5
6528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } >/dev/null && {
6535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 }; then
6538 # Broken: success on invalid input.
6539 continue
6540 else
6541 $as_echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 # Passes both tests.
6545 ac_preproc_ok=:
6546 break
6547 fi
6548
6549 rm -f conftest.err conftest.$ac_ext
6550
6551 done
6552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6553 rm -f conftest.err conftest.$ac_ext
6554 if $ac_preproc_ok; then
6555 :
6556 else
6557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6559 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6560 See \`config.log' for more details." >&5
6561 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6562 See \`config.log' for more details." >&2;}
6563 { (exit 1); exit 1; }; }; }
6564 fi
6565
6566 ac_ext=c
6567 ac_cpp='$CPP $CPPFLAGS'
6568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572
6573 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6574 $as_echo_n "checking for ANSI C header files... " >&6; }
6575 if test "${ac_cv_header_stdc+set}" = set; then
6576 $as_echo_n "(cached) " >&6
6577 else
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 #include <stdlib.h>
6585 #include <stdarg.h>
6586 #include <string.h>
6587 #include <float.h>
6588
6589 int
6590 main ()
6591 {
6592
6593 ;
6594 return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext
6598 if { (ac_try="$ac_compile"
6599 case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6604 $as_echo "$ac_try_echo") >&5
6605 (eval "$ac_compile") 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && {
6612 test -z "$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 } && test -s conftest.$ac_objext; then
6615 ac_cv_header_stdc=yes
6616 else
6617 $as_echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 ac_cv_header_stdc=no
6621 fi
6622
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624
6625 if test $ac_cv_header_stdc = yes; then
6626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #include <string.h>
6634
6635 _ACEOF
6636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6637 $EGREP "memchr" >/dev/null 2>&1; then
6638 :
6639 else
6640 ac_cv_header_stdc=no
6641 fi
6642 rm -f conftest*
6643
6644 fi
6645
6646 if test $ac_cv_header_stdc = yes; then
6647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <stdlib.h>
6655
6656 _ACEOF
6657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6658 $EGREP "free" >/dev/null 2>&1; then
6659 :
6660 else
6661 ac_cv_header_stdc=no
6662 fi
6663 rm -f conftest*
6664
6665 fi
6666
6667 if test $ac_cv_header_stdc = yes; then
6668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6669 if test "$cross_compiling" = yes; then
6670 :
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <ctype.h>
6679 #include <stdlib.h>
6680 #if ((' ' & 0x0FF) == 0x020)
6681 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6682 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6683 #else
6684 # define ISLOWER(c) \
6685 (('a' <= (c) && (c) <= 'i') \
6686 || ('j' <= (c) && (c) <= 'r') \
6687 || ('s' <= (c) && (c) <= 'z'))
6688 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6689 #endif
6690
6691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6692 int
6693 main ()
6694 {
6695 int i;
6696 for (i = 0; i < 256; i++)
6697 if (XOR (islower (i), ISLOWER (i))
6698 || toupper (i) != TOUPPER (i))
6699 return 2;
6700 return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest$ac_exeext
6704 if { (ac_try="$ac_link"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6710 $as_echo "$ac_try_echo") >&5
6711 (eval "$ac_link") 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6715 { (case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6720 $as_echo "$ac_try_echo") >&5
6721 (eval "$ac_try") 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 :
6726 else
6727 $as_echo "$as_me: program exited with status $ac_status" >&5
6728 $as_echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ( exit $ac_status )
6732 ac_cv_header_stdc=no
6733 fi
6734 rm -rf conftest.dSYM
6735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6736 fi
6737
6738
6739 fi
6740 fi
6741 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6742 $as_echo "$ac_cv_header_stdc" >&6; }
6743 if test $ac_cv_header_stdc = yes; then
6744
6745 cat >>confdefs.h <<\_ACEOF
6746 #define STDC_HEADERS 1
6747 _ACEOF
6748
6749 fi
6750
6751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6762 inttypes.h stdint.h unistd.h
6763 do
6764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6765 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6766 $as_echo_n "checking for $ac_header... " >&6; }
6767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6768 $as_echo_n "(cached) " >&6
6769 else
6770 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h. */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 $ac_includes_default
6777
6778 #include <$ac_header>
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6782 case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6787 $as_echo "$ac_try_echo") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 eval "$as_ac_Header=yes"
6799 else
6800 $as_echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 eval "$as_ac_Header=no"
6804 fi
6805
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 fi
6808 ac_res=`eval 'as_val=${'$as_ac_Header'}
6809 $as_echo "$as_val"'`
6810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 as_val=`eval 'as_val=${'$as_ac_Header'}
6813 $as_echo "$as_val"'`
6814 if test "x$as_val" = x""yes; then
6815 cat >>confdefs.h <<_ACEOF
6816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6817 _ACEOF
6818
6819 fi
6820
6821 done
6822
6823
6824
6825 for ac_header in dlfcn.h
6826 do
6827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 $as_echo_n "checking for $ac_header... " >&6; }
6830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6831 $as_echo_n "(cached) " >&6
6832 else
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6840
6841 #include <$ac_header>
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6845 case "(($ac_try" in
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6848 esac
6849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850 $as_echo "$ac_try_echo") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6852 ac_status=$?
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.$ac_objext; then
6861 eval "$as_ac_Header=yes"
6862 else
6863 $as_echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 eval "$as_ac_Header=no"
6867 fi
6868
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 fi
6871 ac_res=`eval 'as_val=${'$as_ac_Header'}
6872 $as_echo "$as_val"'`
6873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6874 $as_echo "$ac_res" >&6; }
6875 as_val=`eval 'as_val=${'$as_ac_Header'}
6876 $as_echo "$as_val"'`
6877 if test "x$as_val" = x""yes; then
6878 cat >>confdefs.h <<_ACEOF
6879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6880 _ACEOF
6881
6882 fi
6883
6884 done
6885
6886
6887
6888 # Set options
6889
6890
6891
6892 enable_dlopen=no
6893
6894
6895 enable_win32_dll=no
6896
6897
6898 # Check whether --enable-shared was given.
6899 if test "${enable_shared+set}" = set; then
6900 enableval=$enable_shared; p=${PACKAGE-default}
6901 case $enableval in
6902 yes) enable_shared=yes ;;
6903 no) enable_shared=no ;;
6904 *)
6905 enable_shared=no
6906 # Look at the argument we got. We use all the common list separators.
6907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6908 for pkg in $enableval; do
6909 IFS="$lt_save_ifs"
6910 if test "X$pkg" = "X$p"; then
6911 enable_shared=yes
6912 fi
6913 done
6914 IFS="$lt_save_ifs"
6915 ;;
6916 esac
6917 else
6918 enable_shared=yes
6919 fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 # Check whether --enable-static was given.
6930 if test "${enable_static+set}" = set; then
6931 enableval=$enable_static; p=${PACKAGE-default}
6932 case $enableval in
6933 yes) enable_static=yes ;;
6934 no) enable_static=no ;;
6935 *)
6936 enable_static=no
6937 # Look at the argument we got. We use all the common list separators.
6938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939 for pkg in $enableval; do
6940 IFS="$lt_save_ifs"
6941 if test "X$pkg" = "X$p"; then
6942 enable_static=yes
6943 fi
6944 done
6945 IFS="$lt_save_ifs"
6946 ;;
6947 esac
6948 else
6949 enable_static=yes
6950 fi
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 # Check whether --with-pic was given.
6962 if test "${with_pic+set}" = set; then
6963 withval=$with_pic; pic_mode="$withval"
6964 else
6965 pic_mode=default
6966 fi
6967
6968
6969 test -z "$pic_mode" && pic_mode=default
6970
6971
6972
6973
6974
6975
6976
6977 # Check whether --enable-fast-install was given.
6978 if test "${enable_fast_install+set}" = set; then
6979 enableval=$enable_fast_install; p=${PACKAGE-default}
6980 case $enableval in
6981 yes) enable_fast_install=yes ;;
6982 no) enable_fast_install=no ;;
6983 *)
6984 enable_fast_install=no
6985 # Look at the argument we got. We use all the common list separators.
6986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6987 for pkg in $enableval; do
6988 IFS="$lt_save_ifs"
6989 if test "X$pkg" = "X$p"; then
6990 enable_fast_install=yes
6991 fi
6992 done
6993 IFS="$lt_save_ifs"
6994 ;;
6995 esac
6996 else
6997 enable_fast_install=yes
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010 # This can be used to rebuild libtool when needed
7011 LIBTOOL_DEPS="$ltmain"
7012
7013 # Always use our own libtool.
7014 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 test -z "$LN_S" && LN_S="ln -s"
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055 if test -n "${ZSH_VERSION+set}" ; then
7056 setopt NO_GLOB_SUBST
7057 fi
7058
7059 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7060 $as_echo_n "checking for objdir... " >&6; }
7061 if test "${lt_cv_objdir+set}" = set; then
7062 $as_echo_n "(cached) " >&6
7063 else
7064 rm -f .libs 2>/dev/null
7065 mkdir .libs 2>/dev/null
7066 if test -d .libs; then
7067 lt_cv_objdir=.libs
7068 else
7069 # MS-DOS does not allow filenames that begin with a dot.
7070 lt_cv_objdir=_libs
7071 fi
7072 rmdir .libs 2>/dev/null
7073 fi
7074 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7075 $as_echo "$lt_cv_objdir" >&6; }
7076 objdir=$lt_cv_objdir
7077
7078
7079
7080
7081
7082 cat >>confdefs.h <<_ACEOF
7083 #define LT_OBJDIR "$lt_cv_objdir/"
7084 _ACEOF
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 case $host_os in
7103 aix3*)
7104 # AIX sometimes has problems with the GCC collect2 program. For some
7105 # reason, if we set the COLLECT_NAMES environment variable, the problems
7106 # vanish in a puff of smoke.
7107 if test "X${COLLECT_NAMES+set}" != Xset; then
7108 COLLECT_NAMES=
7109 export COLLECT_NAMES
7110 fi
7111 ;;
7112 esac
7113
7114 # Sed substitution that helps us do robust quoting. It backslashifies
7115 # metacharacters that are still active within double-quoted strings.
7116 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7117
7118 # Same as above, but do not quote variable references.
7119 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7120
7121 # Sed substitution to delay expansion of an escaped shell variable in a
7122 # double_quote_subst'ed string.
7123 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7124
7125 # Sed substitution to delay expansion of an escaped single quote.
7126 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7127
7128 # Sed substitution to avoid accidental globbing in evaled expressions
7129 no_glob_subst='s/\*/\\\*/g'
7130
7131 # Global variables:
7132 ofile=libtool
7133 can_build_shared=yes
7134
7135 # All known linkers require a `.a' archive for static linking (except MSVC,
7136 # which needs '.lib').
7137 libext=a
7138
7139 with_gnu_ld="$lt_cv_prog_gnu_ld"
7140
7141 old_CC="$CC"
7142 old_CFLAGS="$CFLAGS"
7143
7144 # Set sane defaults for various variables
7145 test -z "$CC" && CC=cc
7146 test -z "$LTCC" && LTCC=$CC
7147 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7148 test -z "$LD" && LD=ld
7149 test -z "$ac_objext" && ac_objext=o
7150
7151 for cc_temp in $compiler""; do
7152 case $cc_temp in
7153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7155 \-*) ;;
7156 *) break;;
7157 esac
7158 done
7159 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7160
7161
7162 # Only perform the check for file, if the check method requires it
7163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7164 case $deplibs_check_method in
7165 file_magic*)
7166 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7167 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7168 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7170 $as_echo_n "(cached) " >&6
7171 else
7172 case $MAGIC_CMD in
7173 [\\/*] | ?:[\\/]*)
7174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7175 ;;
7176 *)
7177 lt_save_MAGIC_CMD="$MAGIC_CMD"
7178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7180 for ac_dir in $ac_dummy; do
7181 IFS="$lt_save_ifs"
7182 test -z "$ac_dir" && ac_dir=.
7183 if test -f $ac_dir/${ac_tool_prefix}file; then
7184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7185 if test -n "$file_magic_test_file"; then
7186 case $deplibs_check_method in
7187 "file_magic "*)
7188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7191 $EGREP "$file_magic_regex" > /dev/null; then
7192 :
7193 else
7194 cat <<_LT_EOF 1>&2
7195
7196 *** Warning: the command libtool uses to detect shared libraries,
7197 *** $file_magic_cmd, produces output that libtool cannot recognize.
7198 *** The result is that libtool may fail to recognize shared libraries
7199 *** as such. This will affect the creation of libtool libraries that
7200 *** depend on shared libraries, but programs linked with such libtool
7201 *** libraries will work regardless of this problem. Nevertheless, you
7202 *** may want to report the problem to your system manager and/or to
7203 *** [email protected]
7204
7205 _LT_EOF
7206 fi ;;
7207 esac
7208 fi
7209 break
7210 fi
7211 done
7212 IFS="$lt_save_ifs"
7213 MAGIC_CMD="$lt_save_MAGIC_CMD"
7214 ;;
7215 esac
7216 fi
7217
7218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219 if test -n "$MAGIC_CMD"; then
7220 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7221 $as_echo "$MAGIC_CMD" >&6; }
7222 else
7223 { $as_echo "$as_me:$LINENO: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228
7229
7230
7231 if test -z "$lt_cv_path_MAGIC_CMD"; then
7232 if test -n "$ac_tool_prefix"; then
7233 { $as_echo "$as_me:$LINENO: checking for file" >&5
7234 $as_echo_n "checking for file... " >&6; }
7235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7236 $as_echo_n "(cached) " >&6
7237 else
7238 case $MAGIC_CMD in
7239 [\\/*] | ?:[\\/]*)
7240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7241 ;;
7242 *)
7243 lt_save_MAGIC_CMD="$MAGIC_CMD"
7244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7246 for ac_dir in $ac_dummy; do
7247 IFS="$lt_save_ifs"
7248 test -z "$ac_dir" && ac_dir=.
7249 if test -f $ac_dir/file; then
7250 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7251 if test -n "$file_magic_test_file"; then
7252 case $deplibs_check_method in
7253 "file_magic "*)
7254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7257 $EGREP "$file_magic_regex" > /dev/null; then
7258 :
7259 else
7260 cat <<_LT_EOF 1>&2
7261
7262 *** Warning: the command libtool uses to detect shared libraries,
7263 *** $file_magic_cmd, produces output that libtool cannot recognize.
7264 *** The result is that libtool may fail to recognize shared libraries
7265 *** as such. This will affect the creation of libtool libraries that
7266 *** depend on shared libraries, but programs linked with such libtool
7267 *** libraries will work regardless of this problem. Nevertheless, you
7268 *** may want to report the problem to your system manager and/or to
7269 *** [email protected]
7270
7271 _LT_EOF
7272 fi ;;
7273 esac
7274 fi
7275 break
7276 fi
7277 done
7278 IFS="$lt_save_ifs"
7279 MAGIC_CMD="$lt_save_MAGIC_CMD"
7280 ;;
7281 esac
7282 fi
7283
7284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7285 if test -n "$MAGIC_CMD"; then
7286 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7287 $as_echo "$MAGIC_CMD" >&6; }
7288 else
7289 { $as_echo "$as_me:$LINENO: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293
7294 else
7295 MAGIC_CMD=:
7296 fi
7297 fi
7298
7299 fi
7300 ;;
7301 esac
7302
7303 # Use C for the default configuration in the libtool script
7304
7305 lt_save_CC="$CC"
7306 ac_ext=c
7307 ac_cpp='$CPP $CPPFLAGS'
7308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7311
7312
7313 # Source file extension for C test sources.
7314 ac_ext=c
7315
7316 # Object file extension for compiled C test sources.
7317 objext=o
7318 objext=$objext
7319
7320 # Code to be used in simple compile tests
7321 lt_simple_compile_test_code="int some_variable = 0;"
7322
7323 # Code to be used in simple link tests
7324 lt_simple_link_test_code='int main(){return(0);}'
7325
7326
7327
7328
7329
7330
7331
7332 # If no C compiler was specified, use CC.
7333 LTCC=${LTCC-"$CC"}
7334
7335 # If no C compiler flags were specified, use CFLAGS.
7336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7337
7338 # Allow CC to be a program name with arguments.
7339 compiler=$CC
7340
7341 # Save the default compiler, since it gets overwritten when the other
7342 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7343 compiler_DEFAULT=$CC
7344
7345 # save warnings/boilerplate of simple test code
7346 ac_outfile=conftest.$ac_objext
7347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7349 _lt_compiler_boilerplate=`cat conftest.err`
7350 $RM conftest*
7351
7352 ac_outfile=conftest.$ac_objext
7353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7355 _lt_linker_boilerplate=`cat conftest.err`
7356 $RM -r conftest*
7357
7358
7359 if test -n "$compiler"; then
7360
7361 lt_prog_compiler_no_builtin_flag=
7362
7363 if test "$GCC" = yes; then
7364 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7365
7366 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7367 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7368 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7369 $as_echo_n "(cached) " >&6
7370 else
7371 lt_cv_prog_compiler_rtti_exceptions=no
7372 ac_outfile=conftest.$ac_objext
7373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374 lt_compiler_flag="-fno-rtti -fno-exceptions"
7375 # Insert the option either (1) after the last *FLAGS variable, or
7376 # (2) before a word containing "conftest.", or (3) at the end.
7377 # Note that $ac_compile itself does not contain backslashes and begins
7378 # with a dollar sign (not a hyphen), so the echo should work correctly.
7379 # The option is referenced via a variable to avoid confusing sed.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>conftest.err)
7386 ac_status=$?
7387 cat conftest.err >&5
7388 echo "$as_me:7388: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s "$ac_outfile"; then
7390 # The compiler can only warn and ignore the option if not recognized
7391 # So say no if there are warnings other than the usual output.
7392 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7395 lt_cv_prog_compiler_rtti_exceptions=yes
7396 fi
7397 fi
7398 $RM conftest*
7399
7400 fi
7401 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7402 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7403
7404 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7405 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7406 else
7407 :
7408 fi
7409
7410 fi
7411
7412
7413
7414
7415
7416
7417 lt_prog_compiler_wl=
7418 lt_prog_compiler_pic=
7419 lt_prog_compiler_static=
7420
7421 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7423
7424 if test "$GCC" = yes; then
7425 lt_prog_compiler_wl='-Wl,'
7426 lt_prog_compiler_static='-static'
7427
7428 case $host_os in
7429 aix*)
7430 # All AIX code is PIC.
7431 if test "$host_cpu" = ia64; then
7432 # AIX 5 now supports IA64 processor
7433 lt_prog_compiler_static='-Bstatic'
7434 fi
7435 ;;
7436
7437 amigaos*)
7438 case $host_cpu in
7439 powerpc)
7440 # see comment about AmigaOS4 .so support
7441 lt_prog_compiler_pic='-fPIC'
7442 ;;
7443 m68k)
7444 # FIXME: we need at least 68020 code to build shared libraries, but
7445 # adding the `-m68020' flag to GCC prevents building anything better,
7446 # like `-m68040'.
7447 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7448 ;;
7449 esac
7450 ;;
7451
7452 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7453 # PIC is the default for these OSes.
7454 ;;
7455
7456 mingw* | cygwin* | pw32* | os2* | cegcc*)
7457 # This hack is so that the source file can tell whether it is being
7458 # built for inclusion in a dll (and should export symbols for example).
7459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7460 # (--disable-auto-import) libraries
7461 lt_prog_compiler_pic='-DDLL_EXPORT'
7462 ;;
7463
7464 darwin* | rhapsody*)
7465 # PIC is the default on this platform
7466 # Common symbols not allowed in MH_DYLIB files
7467 lt_prog_compiler_pic='-fno-common'
7468 ;;
7469
7470 hpux*)
7471 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7472 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7473 # sets the default TLS model and affects inlining.
7474 case $host_cpu in
7475 hppa*64*)
7476 # +Z the default
7477 ;;
7478 *)
7479 lt_prog_compiler_pic='-fPIC'
7480 ;;
7481 esac
7482 ;;
7483
7484 interix[3-9]*)
7485 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7486 # Instead, we relocate shared libraries at runtime.
7487 ;;
7488
7489 msdosdjgpp*)
7490 # Just because we use GCC doesn't mean we suddenly get shared libraries
7491 # on systems that don't support them.
7492 lt_prog_compiler_can_build_shared=no
7493 enable_shared=no
7494 ;;
7495
7496 *nto* | *qnx*)
7497 # QNX uses GNU C++, but need to define -shared option too, otherwise
7498 # it will coredump.
7499 lt_prog_compiler_pic='-fPIC -shared'
7500 ;;
7501
7502 sysv4*MP*)
7503 if test -d /usr/nec; then
7504 lt_prog_compiler_pic=-Kconform_pic
7505 fi
7506 ;;
7507
7508 *)
7509 lt_prog_compiler_pic='-fPIC'
7510 ;;
7511 esac
7512 else
7513 # PORTME Check for flag to pass linker flags through the system compiler.
7514 case $host_os in
7515 aix*)
7516 lt_prog_compiler_wl='-Wl,'
7517 if test "$host_cpu" = ia64; then
7518 # AIX 5 now supports IA64 processor
7519 lt_prog_compiler_static='-Bstatic'
7520 else
7521 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7522 fi
7523 ;;
7524
7525 mingw* | cygwin* | pw32* | os2* | cegcc*)
7526 # This hack is so that the source file can tell whether it is being
7527 # built for inclusion in a dll (and should export symbols for example).
7528 lt_prog_compiler_pic='-DDLL_EXPORT'
7529 ;;
7530
7531 hpux9* | hpux10* | hpux11*)
7532 lt_prog_compiler_wl='-Wl,'
7533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7534 # not for PA HP-UX.
7535 case $host_cpu in
7536 hppa*64*|ia64*)
7537 # +Z the default
7538 ;;
7539 *)
7540 lt_prog_compiler_pic='+Z'
7541 ;;
7542 esac
7543 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7544 lt_prog_compiler_static='${wl}-a ${wl}archive'
7545 ;;
7546
7547 irix5* | irix6* | nonstopux*)
7548 lt_prog_compiler_wl='-Wl,'
7549 # PIC (with -KPIC) is the default.
7550 lt_prog_compiler_static='-non_shared'
7551 ;;
7552
7553 linux* | k*bsd*-gnu)
7554 case $cc_basename in
7555 # old Intel for x86_64 which still supported -KPIC.
7556 ecc*)
7557 lt_prog_compiler_wl='-Wl,'
7558 lt_prog_compiler_pic='-KPIC'
7559 lt_prog_compiler_static='-static'
7560 ;;
7561 # icc used to be incompatible with GCC.
7562 # ICC 10 doesn't accept -KPIC any more.
7563 icc* | ifort*)
7564 lt_prog_compiler_wl='-Wl,'
7565 lt_prog_compiler_pic='-fPIC'
7566 lt_prog_compiler_static='-static'
7567 ;;
7568 # Lahey Fortran 8.1.
7569 lf95*)
7570 lt_prog_compiler_wl='-Wl,'
7571 lt_prog_compiler_pic='--shared'
7572 lt_prog_compiler_static='--static'
7573 ;;
7574 pgcc* | pgf77* | pgf90* | pgf95*)
7575 # Portland Group compilers (*not* the Pentium gcc compiler,
7576 # which looks to be a dead project)
7577 lt_prog_compiler_wl='-Wl,'
7578 lt_prog_compiler_pic='-fpic'
7579 lt_prog_compiler_static='-Bstatic'
7580 ;;
7581 ccc*)
7582 lt_prog_compiler_wl='-Wl,'
7583 # All Alpha code is PIC.
7584 lt_prog_compiler_static='-non_shared'
7585 ;;
7586 xl*)
7587 # IBM XL C 8.0/Fortran 10.1 on PPC
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_pic='-qpic'
7590 lt_prog_compiler_static='-qstaticlink'
7591 ;;
7592 *)
7593 case `$CC -V 2>&1 | sed 5q` in
7594 *Sun\ C*)
7595 # Sun C 5.9
7596 lt_prog_compiler_pic='-KPIC'
7597 lt_prog_compiler_static='-Bstatic'
7598 lt_prog_compiler_wl='-Wl,'
7599 ;;
7600 *Sun\ F*)
7601 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7602 lt_prog_compiler_pic='-KPIC'
7603 lt_prog_compiler_static='-Bstatic'
7604 lt_prog_compiler_wl=''
7605 ;;
7606 esac
7607 ;;
7608 esac
7609 ;;
7610
7611 newsos6)
7612 lt_prog_compiler_pic='-KPIC'
7613 lt_prog_compiler_static='-Bstatic'
7614 ;;
7615
7616 *nto* | *qnx*)
7617 # QNX uses GNU C++, but need to define -shared option too, otherwise
7618 # it will coredump.
7619 lt_prog_compiler_pic='-fPIC -shared'
7620 ;;
7621
7622 osf3* | osf4* | osf5*)
7623 lt_prog_compiler_wl='-Wl,'
7624 # All OSF/1 code is PIC.
7625 lt_prog_compiler_static='-non_shared'
7626 ;;
7627
7628 rdos*)
7629 lt_prog_compiler_static='-non_shared'
7630 ;;
7631
7632 solaris*)
7633 lt_prog_compiler_pic='-KPIC'
7634 lt_prog_compiler_static='-Bstatic'
7635 case $cc_basename in
7636 f77* | f90* | f95*)
7637 lt_prog_compiler_wl='-Qoption ld ';;
7638 *)
7639 lt_prog_compiler_wl='-Wl,';;
7640 esac
7641 ;;
7642
7643 sunos4*)
7644 lt_prog_compiler_wl='-Qoption ld '
7645 lt_prog_compiler_pic='-PIC'
7646 lt_prog_compiler_static='-Bstatic'
7647 ;;
7648
7649 sysv4 | sysv4.2uw2* | sysv4.3*)
7650 lt_prog_compiler_wl='-Wl,'
7651 lt_prog_compiler_pic='-KPIC'
7652 lt_prog_compiler_static='-Bstatic'
7653 ;;
7654
7655 sysv4*MP*)
7656 if test -d /usr/nec ;then
7657 lt_prog_compiler_pic='-Kconform_pic'
7658 lt_prog_compiler_static='-Bstatic'
7659 fi
7660 ;;
7661
7662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7663 lt_prog_compiler_wl='-Wl,'
7664 lt_prog_compiler_pic='-KPIC'
7665 lt_prog_compiler_static='-Bstatic'
7666 ;;
7667
7668 unicos*)
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_can_build_shared=no
7671 ;;
7672
7673 uts4*)
7674 lt_prog_compiler_pic='-pic'
7675 lt_prog_compiler_static='-Bstatic'
7676 ;;
7677
7678 *)
7679 lt_prog_compiler_can_build_shared=no
7680 ;;
7681 esac
7682 fi
7683
7684 case $host_os in
7685 # For platforms which do not support PIC, -DPIC is meaningless:
7686 *djgpp*)
7687 lt_prog_compiler_pic=
7688 ;;
7689 *)
7690 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7691 ;;
7692 esac
7693 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7694 $as_echo "$lt_prog_compiler_pic" >&6; }
7695
7696
7697
7698
7699
7700
7701 #
7702 # Check to make sure the PIC flag actually works.
7703 #
7704 if test -n "$lt_prog_compiler_pic"; then
7705 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7706 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7707 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7708 $as_echo_n "(cached) " >&6
7709 else
7710 lt_cv_prog_compiler_pic_works=no
7711 ac_outfile=conftest.$ac_objext
7712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7713 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7714 # Insert the option either (1) after the last *FLAGS variable, or
7715 # (2) before a word containing "conftest.", or (3) at the end.
7716 # Note that $ac_compile itself does not contain backslashes and begins
7717 # with a dollar sign (not a hyphen), so the echo should work correctly.
7718 # The option is referenced via a variable to avoid confusing sed.
7719 lt_compile=`echo "$ac_compile" | $SED \
7720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722 -e 's:$: $lt_compiler_flag:'`
7723 (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
7724 (eval "$lt_compile" 2>conftest.err)
7725 ac_status=$?
7726 cat conftest.err >&5
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 if (exit $ac_status) && test -s "$ac_outfile"; then
7729 # The compiler can only warn and ignore the option if not recognized
7730 # So say no if there are warnings other than the usual output.
7731 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7734 lt_cv_prog_compiler_pic_works=yes
7735 fi
7736 fi
7737 $RM conftest*
7738
7739 fi
7740 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7741 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7742
7743 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7744 case $lt_prog_compiler_pic in
7745 "" | " "*) ;;
7746 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7747 esac
7748 else
7749 lt_prog_compiler_pic=
7750 lt_prog_compiler_can_build_shared=no
7751 fi
7752
7753 fi
7754
7755
7756
7757
7758
7759
7760 #
7761 # Check to make sure the static flag actually works.
7762 #
7763 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7764 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7765 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7766 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7767 $as_echo_n "(cached) " >&6
7768 else
7769 lt_cv_prog_compiler_static_works=no
7770 save_LDFLAGS="$LDFLAGS"
7771 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7772 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7774 # The linker can only warn and ignore the option if not recognized
7775 # So say no if there are warnings
7776 if test -s conftest.err; then
7777 # Append any errors to the config.log.
7778 cat conftest.err 1>&5
7779 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7781 if diff conftest.exp conftest.er2 >/dev/null; then
7782 lt_cv_prog_compiler_static_works=yes
7783 fi
7784 else
7785 lt_cv_prog_compiler_static_works=yes
7786 fi
7787 fi
7788 $RM -r conftest*
7789 LDFLAGS="$save_LDFLAGS"
7790
7791 fi
7792 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7793 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7794
7795 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7796 :
7797 else
7798 lt_prog_compiler_static=
7799 fi
7800
7801
7802
7803
7804
7805
7806
7807 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7809 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7810 $as_echo_n "(cached) " >&6
7811 else
7812 lt_cv_prog_compiler_c_o=no
7813 $RM -r conftest 2>/dev/null
7814 mkdir conftest
7815 cd conftest
7816 mkdir out
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818
7819 lt_compiler_flag="-o out/conftest2.$ac_objext"
7820 # Insert the option either (1) after the last *FLAGS variable, or
7821 # (2) before a word containing "conftest.", or (3) at the end.
7822 # Note that $ac_compile itself does not contain backslashes and begins
7823 # with a dollar sign (not a hyphen), so the echo should work correctly.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
7828 (eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
7829 (eval "$lt_compile" 2>out/conftest.err)
7830 ac_status=$?
7831 cat out/conftest.err >&5
7832 echo "$as_me:7832: \$? = $ac_status" >&5
7833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7834 then
7835 # The compiler can only warn and ignore the option if not recognized
7836 # So say no if there are warnings
7837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7840 lt_cv_prog_compiler_c_o=yes
7841 fi
7842 fi
7843 chmod u+w . 2>&5
7844 $RM conftest*
7845 # SGI C++ compiler will create directory out/ii_files/ for
7846 # template instantiation
7847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7848 $RM out/* && rmdir out
7849 cd ..
7850 $RM -r conftest
7851 $RM conftest*
7852
7853 fi
7854 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7855 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7856
7857
7858
7859
7860
7861
7862 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7865 $as_echo_n "(cached) " >&6
7866 else
7867 lt_cv_prog_compiler_c_o=no
7868 $RM -r conftest 2>/dev/null
7869 mkdir conftest
7870 cd conftest
7871 mkdir out
7872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7873
7874 lt_compiler_flag="-o out/conftest2.$ac_objext"
7875 # Insert the option either (1) after the last *FLAGS variable, or
7876 # (2) before a word containing "conftest.", or (3) at the end.
7877 # Note that $ac_compile itself does not contain backslashes and begins
7878 # with a dollar sign (not a hyphen), so the echo should work correctly.
7879 lt_compile=`echo "$ac_compile" | $SED \
7880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7882 -e 's:$: $lt_compiler_flag:'`
7883 (eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
7884 (eval "$lt_compile" 2>out/conftest.err)
7885 ac_status=$?
7886 cat out/conftest.err >&5
7887 echo "$as_me:7887: \$? = $ac_status" >&5
7888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7889 then
7890 # The compiler can only warn and ignore the option if not recognized
7891 # So say no if there are warnings
7892 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7895 lt_cv_prog_compiler_c_o=yes
7896 fi
7897 fi
7898 chmod u+w . 2>&5
7899 $RM conftest*
7900 # SGI C++ compiler will create directory out/ii_files/ for
7901 # template instantiation
7902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7903 $RM out/* && rmdir out
7904 cd ..
7905 $RM -r conftest
7906 $RM conftest*
7907
7908 fi
7909 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7910 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7911
7912
7913
7914
7915 hard_links="nottested"
7916 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7917 # do not overwrite the value of need_locks provided by the user
7918 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7919 $as_echo_n "checking if we can lock with hard links... " >&6; }
7920 hard_links=yes
7921 $RM conftest*
7922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7923 touch conftest.a
7924 ln conftest.a conftest.b 2>&5 || hard_links=no
7925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7926 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7927 $as_echo "$hard_links" >&6; }
7928 if test "$hard_links" = no; then
7929 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7930 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7931 need_locks=warn
7932 fi
7933 else
7934 need_locks=no
7935 fi
7936
7937
7938
7939
7940
7941
7942 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7944
7945 runpath_var=
7946 allow_undefined_flag=
7947 always_export_symbols=no
7948 archive_cmds=
7949 archive_expsym_cmds=
7950 compiler_needs_object=no
7951 enable_shared_with_static_runtimes=no
7952 export_dynamic_flag_spec=
7953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7954 hardcode_automatic=no
7955 hardcode_direct=no
7956 hardcode_direct_absolute=no
7957 hardcode_libdir_flag_spec=
7958 hardcode_libdir_flag_spec_ld=
7959 hardcode_libdir_separator=
7960 hardcode_minus_L=no
7961 hardcode_shlibpath_var=unsupported
7962 inherit_rpath=no
7963 link_all_deplibs=unknown
7964 module_cmds=
7965 module_expsym_cmds=
7966 old_archive_from_new_cmds=
7967 old_archive_from_expsyms_cmds=
7968 thread_safe_flag_spec=
7969 whole_archive_flag_spec=
7970 # include_expsyms should be a list of space-separated symbols to be *always*
7971 # included in the symbol list
7972 include_expsyms=
7973 # exclude_expsyms can be an extended regexp of symbols to exclude
7974 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7975 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7976 # as well as any symbol that contains `d'.
7977 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7978 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7979 # platforms (ab)use it in PIC code, but their linkers get confused if
7980 # the symbol is explicitly referenced. Since portable code cannot
7981 # rely on this symbol name, it's probably fine to never include it in
7982 # preloaded symbol tables.
7983 # Exclude shared library initialization/finalization symbols.
7984 extract_expsyms_cmds=
7985
7986 case $host_os in
7987 cygwin* | mingw* | pw32* | cegcc*)
7988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7989 # When not using gcc, we currently assume that we are using
7990 # Microsoft Visual C++.
7991 if test "$GCC" != yes; then
7992 with_gnu_ld=no
7993 fi
7994 ;;
7995 interix*)
7996 # we just hope/assume this is gcc and not c89 (= MSVC++)
7997 with_gnu_ld=yes
7998 ;;
7999 openbsd*)
8000 with_gnu_ld=no
8001 ;;
8002 esac
8003
8004 ld_shlibs=yes
8005 if test "$with_gnu_ld" = yes; then
8006 # If archive_cmds runs LD, not CC, wlarc should be empty
8007 wlarc='${wl}'
8008
8009 # Set some defaults for GNU ld with shared library support. These
8010 # are reset later if shared libraries are not supported. Putting them
8011 # here allows them to be overridden if necessary.
8012 runpath_var=LD_RUN_PATH
8013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8014 export_dynamic_flag_spec='${wl}--export-dynamic'
8015 # ancient GNU ld didn't support --whole-archive et. al.
8016 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8017 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8018 else
8019 whole_archive_flag_spec=
8020 fi
8021 supports_anon_versioning=no
8022 case `$LD -v 2>&1` in
8023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8026 *\ 2.11.*) ;; # other 2.11 versions
8027 *) supports_anon_versioning=yes ;;
8028 esac
8029
8030 # See if GNU ld supports shared libraries.
8031 case $host_os in
8032 aix[3-9]*)
8033 # On AIX/PPC, the GNU linker is very broken
8034 if test "$host_cpu" != ia64; then
8035 ld_shlibs=no
8036 cat <<_LT_EOF 1>&2
8037
8038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8039 *** to be unable to reliably create shared libraries on AIX.
8040 *** Therefore, libtool is disabling shared libraries support. If you
8041 *** really care for shared libraries, you may want to modify your PATH
8042 *** so that a non-GNU linker is found, and then restart.
8043
8044 _LT_EOF
8045 fi
8046 ;;
8047
8048 amigaos*)
8049 case $host_cpu in
8050 powerpc)
8051 # see comment about AmigaOS4 .so support
8052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053 archive_expsym_cmds=''
8054 ;;
8055 m68k)
8056 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)'
8057 hardcode_libdir_flag_spec='-L$libdir'
8058 hardcode_minus_L=yes
8059 ;;
8060 esac
8061 ;;
8062
8063 beos*)
8064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8065 allow_undefined_flag=unsupported
8066 # Joseph Beckenbach <[email protected]> says some releases of gcc
8067 # support --undefined. This deserves some investigation. FIXME
8068 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8069 else
8070 ld_shlibs=no
8071 fi
8072 ;;
8073
8074 cygwin* | mingw* | pw32* | cegcc*)
8075 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8076 # as there is no search path for DLLs.
8077 hardcode_libdir_flag_spec='-L$libdir'
8078 allow_undefined_flag=unsupported
8079 always_export_symbols=no
8080 enable_shared_with_static_runtimes=yes
8081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8082
8083 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8085 # If the export-symbols file already is a .def file (1st line
8086 # is EXPORTS), use it as is; otherwise, prepend...
8087 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8088 cp $export_symbols $output_objdir/$soname.def;
8089 else
8090 echo EXPORTS > $output_objdir/$soname.def;
8091 cat $export_symbols >> $output_objdir/$soname.def;
8092 fi~
8093 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8094 else
8095 ld_shlibs=no
8096 fi
8097 ;;
8098
8099 interix[3-9]*)
8100 hardcode_direct=no
8101 hardcode_shlibpath_var=no
8102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8103 export_dynamic_flag_spec='${wl}-E'
8104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8105 # Instead, shared libraries are loaded at an image base (0x10000000 by
8106 # default) and relocated if they conflict, which is a slow very memory
8107 # consuming and fragmenting process. To avoid this, we pick a random,
8108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8109 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8110 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8111 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'
8112 ;;
8113
8114 gnu* | linux* | tpf* | k*bsd*-gnu)
8115 tmp_diet=no
8116 if test "$host_os" = linux-dietlibc; then
8117 case $cc_basename in
8118 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8119 esac
8120 fi
8121 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8122 && test "$tmp_diet" = no
8123 then
8124 tmp_addflag=
8125 tmp_sharedflag='-shared'
8126 case $cc_basename,$host_cpu in
8127 pgcc*) # Portland Group C compiler
8128 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'
8129 tmp_addflag=' $pic_flag'
8130 ;;
8131 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8132 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'
8133 tmp_addflag=' $pic_flag -Mnomain' ;;
8134 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8135 tmp_addflag=' -i_dynamic' ;;
8136 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8137 tmp_addflag=' -i_dynamic -nofor_main' ;;
8138 ifc* | ifort*) # Intel Fortran compiler
8139 tmp_addflag=' -nofor_main' ;;
8140 lf95*) # Lahey Fortran 8.1
8141 whole_archive_flag_spec=
8142 tmp_sharedflag='--shared' ;;
8143 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8144 tmp_sharedflag='-qmkshrobj'
8145 tmp_addflag= ;;
8146 esac
8147 case `$CC -V 2>&1 | sed 5q` in
8148 *Sun\ C*) # Sun C 5.9
8149 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'
8150 compiler_needs_object=yes
8151 tmp_sharedflag='-G' ;;
8152 *Sun\ F*) # Sun Fortran 8.3
8153 tmp_sharedflag='-G' ;;
8154 esac
8155 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156
8157 if test "x$supports_anon_versioning" = xyes; then
8158 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8160 echo "local: *; };" >> $output_objdir/$libname.ver~
8161 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8162 fi
8163
8164 case $cc_basename in
8165 xlf*)
8166 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8167 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8168 hardcode_libdir_flag_spec=
8169 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8170 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8171 if test "x$supports_anon_versioning" = xyes; then
8172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8174 echo "local: *; };" >> $output_objdir/$libname.ver~
8175 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8176 fi
8177 ;;
8178 esac
8179 else
8180 ld_shlibs=no
8181 fi
8182 ;;
8183
8184 netbsd*)
8185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8187 wlarc=
8188 else
8189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8190 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8191 fi
8192 ;;
8193
8194 solaris*)
8195 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8196 ld_shlibs=no
8197 cat <<_LT_EOF 1>&2
8198
8199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8200 *** create shared libraries on Solaris systems. Therefore, libtool
8201 *** is disabling shared libraries support. We urge you to upgrade GNU
8202 *** binutils to release 2.9.1 or newer. Another option is to modify
8203 *** your PATH or compiler configuration so that the native linker is
8204 *** used, and then restart.
8205
8206 _LT_EOF
8207 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8210 else
8211 ld_shlibs=no
8212 fi
8213 ;;
8214
8215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8216 case `$LD -v 2>&1` in
8217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8218 ld_shlibs=no
8219 cat <<_LT_EOF 1>&2
8220
8221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8222 *** reliably create shared libraries on SCO systems. Therefore, libtool
8223 *** is disabling shared libraries support. We urge you to upgrade GNU
8224 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8225 *** your PATH or compiler configuration so that the native linker is
8226 *** used, and then restart.
8227
8228 _LT_EOF
8229 ;;
8230 *)
8231 # For security reasons, it is highly recommended that you always
8232 # use absolute paths for naming shared libraries, and exclude the
8233 # DT_RUNPATH tag from executables and libraries. But doing so
8234 # requires that you compile everything twice, which is a pain.
8235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8239 else
8240 ld_shlibs=no
8241 fi
8242 ;;
8243 esac
8244 ;;
8245
8246 sunos4*)
8247 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8248 wlarc=
8249 hardcode_direct=yes
8250 hardcode_shlibpath_var=no
8251 ;;
8252
8253 *)
8254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8257 else
8258 ld_shlibs=no
8259 fi
8260 ;;
8261 esac
8262
8263 if test "$ld_shlibs" = no; then
8264 runpath_var=
8265 hardcode_libdir_flag_spec=
8266 export_dynamic_flag_spec=
8267 whole_archive_flag_spec=
8268 fi
8269 else
8270 # PORTME fill in a description of your system's linker (not GNU ld)
8271 case $host_os in
8272 aix3*)
8273 allow_undefined_flag=unsupported
8274 always_export_symbols=yes
8275 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'
8276 # Note: this linker hardcodes the directories in LIBPATH if there
8277 # are no directories specified by -L.
8278 hardcode_minus_L=yes
8279 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8280 # Neither direct hardcoding nor static linking is supported with a
8281 # broken collect2.
8282 hardcode_direct=unsupported
8283 fi
8284 ;;
8285
8286 aix[4-9]*)
8287 if test "$host_cpu" = ia64; then
8288 # On IA64, the linker does run time linking by default, so we don't
8289 # have to do anything special.
8290 aix_use_runtimelinking=no
8291 exp_sym_flag='-Bexport'
8292 no_entry_flag=""
8293 else
8294 # If we're using GNU nm, then we don't want the "-C" option.
8295 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8296 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8297 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'
8298 else
8299 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'
8300 fi
8301 aix_use_runtimelinking=no
8302
8303 # Test if we are trying to use run time linking or normal
8304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8305 # need to do runtime linking.
8306 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8307 for ld_flag in $LDFLAGS; do
8308 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8309 aix_use_runtimelinking=yes
8310 break
8311 fi
8312 done
8313 ;;
8314 esac
8315
8316 exp_sym_flag='-bexport'
8317 no_entry_flag='-bnoentry'
8318 fi
8319
8320 # When large executables or shared objects are built, AIX ld can
8321 # have problems creating the table of contents. If linking a library
8322 # or program results in "error TOC overflow" add -mminimal-toc to
8323 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8324 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8325
8326 archive_cmds=''
8327 hardcode_direct=yes
8328 hardcode_direct_absolute=yes
8329 hardcode_libdir_separator=':'
8330 link_all_deplibs=yes
8331 file_list_spec='${wl}-f,'
8332
8333 if test "$GCC" = yes; then
8334 case $host_os in aix4.[012]|aix4.[012].*)
8335 # We only want to do this on AIX 4.2 and lower, the check
8336 # below for broken collect2 doesn't work under 4.3+
8337 collect2name=`${CC} -print-prog-name=collect2`
8338 if test -f "$collect2name" &&
8339 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8340 then
8341 # We have reworked collect2
8342 :
8343 else
8344 # We have old collect2
8345 hardcode_direct=unsupported
8346 # It fails to find uninstalled libraries when the uninstalled
8347 # path is not listed in the libpath. Setting hardcode_minus_L
8348 # to unsupported forces relinking
8349 hardcode_minus_L=yes
8350 hardcode_libdir_flag_spec='-L$libdir'
8351 hardcode_libdir_separator=
8352 fi
8353 ;;
8354 esac
8355 shared_flag='-shared'
8356 if test "$aix_use_runtimelinking" = yes; then
8357 shared_flag="$shared_flag "'${wl}-G'
8358 fi
8359 else
8360 # not using gcc
8361 if test "$host_cpu" = ia64; then
8362 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8363 # chokes on -Wl,-G. The following line is correct:
8364 shared_flag='-G'
8365 else
8366 if test "$aix_use_runtimelinking" = yes; then
8367 shared_flag='${wl}-G'
8368 else
8369 shared_flag='${wl}-bM:SRE'
8370 fi
8371 fi
8372 fi
8373
8374 export_dynamic_flag_spec='${wl}-bexpall'
8375 # It seems that -bexpall does not export symbols beginning with
8376 # underscore (_), so it is better to generate a list of symbols to export.
8377 always_export_symbols=yes
8378 if test "$aix_use_runtimelinking" = yes; then
8379 # Warning - without using the other runtime loading flags (-brtl),
8380 # -berok will link without error, but may produce a broken library.
8381 allow_undefined_flag='-berok'
8382 # Determine the default libpath from the value encoded in an
8383 # empty executable.
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h. */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390
8391 int
8392 main ()
8393 {
8394
8395 ;
8396 return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (ac_try="$ac_link"
8401 case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8406 $as_echo "$ac_try_echo") >&5
8407 (eval "$ac_link") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest$ac_exeext && {
8417 test "$cross_compiling" = yes ||
8418 $as_test_x conftest$ac_exeext
8419 }; then
8420
8421 lt_aix_libpath_sed='
8422 /Import File Strings/,/^$/ {
8423 /^0/ {
8424 s/^0 *\(.*\)$/\1/
8425 p
8426 }
8427 }'
8428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8429 # Check for a 64-bit object if we didn't find anything.
8430 if test -z "$aix_libpath"; then
8431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432 fi
8433 else
8434 $as_echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437
8438 fi
8439
8440 rm -rf conftest.dSYM
8441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8442 conftest$ac_exeext conftest.$ac_ext
8443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8444
8445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8446 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"
8447 else
8448 if test "$host_cpu" = ia64; then
8449 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8450 allow_undefined_flag="-z nodefs"
8451 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"
8452 else
8453 # Determine the default libpath from the value encoded in an
8454 # empty executable.
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h. */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461
8462 int
8463 main ()
8464 {
8465
8466 ;
8467 return 0;
8468 }
8469 _ACEOF
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (ac_try="$ac_link"
8472 case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8475 esac
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_link") 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest$ac_exeext && {
8488 test "$cross_compiling" = yes ||
8489 $as_test_x conftest$ac_exeext
8490 }; then
8491
8492 lt_aix_libpath_sed='
8493 /Import File Strings/,/^$/ {
8494 /^0/ {
8495 s/^0 *\(.*\)$/\1/
8496 p
8497 }
8498 }'
8499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8500 # Check for a 64-bit object if we didn't find anything.
8501 if test -z "$aix_libpath"; then
8502 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8503 fi
8504 else
8505 $as_echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508
8509 fi
8510
8511 rm -rf conftest.dSYM
8512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8513 conftest$ac_exeext conftest.$ac_ext
8514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8515
8516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8517 # Warning - without using the other run time loading flags,
8518 # -berok will link without error, but may produce a broken library.
8519 no_undefined_flag=' ${wl}-bernotok'
8520 allow_undefined_flag=' ${wl}-berok'
8521 # Exported symbols can be pulled into shared objects from archives
8522 whole_archive_flag_spec='$convenience'
8523 archive_cmds_need_lc=yes
8524 # This is similar to how AIX traditionally builds its shared libraries.
8525 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'
8526 fi
8527 fi
8528 ;;
8529
8530 amigaos*)
8531 case $host_cpu in
8532 powerpc)
8533 # see comment about AmigaOS4 .so support
8534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8535 archive_expsym_cmds=''
8536 ;;
8537 m68k)
8538 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)'
8539 hardcode_libdir_flag_spec='-L$libdir'
8540 hardcode_minus_L=yes
8541 ;;
8542 esac
8543 ;;
8544
8545 bsdi[45]*)
8546 export_dynamic_flag_spec=-rdynamic
8547 ;;
8548
8549 cygwin* | mingw* | pw32* | cegcc*)
8550 # When not using gcc, we currently assume that we are using
8551 # Microsoft Visual C++.
8552 # hardcode_libdir_flag_spec is actually meaningless, as there is
8553 # no search path for DLLs.
8554 hardcode_libdir_flag_spec=' '
8555 allow_undefined_flag=unsupported
8556 # Tell ltmain to make .lib files, not .a files.
8557 libext=lib
8558 # Tell ltmain to make .dll files, not .so files.
8559 shrext_cmds=".dll"
8560 # FIXME: Setting linknames here is a bad hack.
8561 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8562 # The linker will automatically build a .lib file if we build a DLL.
8563 old_archive_from_new_cmds='true'
8564 # FIXME: Should let the user specify the lib program.
8565 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8566 fix_srcfile_path='`cygpath -w "$srcfile"`'
8567 enable_shared_with_static_runtimes=yes
8568 ;;
8569
8570 darwin* | rhapsody*)
8571
8572
8573 archive_cmds_need_lc=no
8574 hardcode_direct=no
8575 hardcode_automatic=yes
8576 hardcode_shlibpath_var=unsupported
8577 whole_archive_flag_spec=''
8578 link_all_deplibs=yes
8579 allow_undefined_flag="$_lt_dar_allow_undefined"
8580 case $cc_basename in
8581 ifort*) _lt_dar_can_shared=yes ;;
8582 *) _lt_dar_can_shared=$GCC ;;
8583 esac
8584 if test "$_lt_dar_can_shared" = "yes"; then
8585 output_verbose_link_cmd=echo
8586 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8587 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8588 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}"
8589 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}"
8590
8591 else
8592 ld_shlibs=no
8593 fi
8594
8595 ;;
8596
8597 dgux*)
8598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8599 hardcode_libdir_flag_spec='-L$libdir'
8600 hardcode_shlibpath_var=no
8601 ;;
8602
8603 freebsd1*)
8604 ld_shlibs=no
8605 ;;
8606
8607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8608 # support. Future versions do this automatically, but an explicit c++rt0.o
8609 # does not break anything, and helps significantly (at the cost of a little
8610 # extra space).
8611 freebsd2.2*)
8612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8613 hardcode_libdir_flag_spec='-R$libdir'
8614 hardcode_direct=yes
8615 hardcode_shlibpath_var=no
8616 ;;
8617
8618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8619 freebsd2*)
8620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8621 hardcode_direct=yes
8622 hardcode_minus_L=yes
8623 hardcode_shlibpath_var=no
8624 ;;
8625
8626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8627 freebsd* | dragonfly*)
8628 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8629 hardcode_libdir_flag_spec='-R$libdir'
8630 hardcode_direct=yes
8631 hardcode_shlibpath_var=no
8632 ;;
8633
8634 hpux9*)
8635 if test "$GCC" = yes; then
8636 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'
8637 else
8638 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'
8639 fi
8640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8641 hardcode_libdir_separator=:
8642 hardcode_direct=yes
8643
8644 # hardcode_minus_L: Not really in the search PATH,
8645 # but as the default location of the library.
8646 hardcode_minus_L=yes
8647 export_dynamic_flag_spec='${wl}-E'
8648 ;;
8649
8650 hpux10*)
8651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8652 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8653 else
8654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8655 fi
8656 if test "$with_gnu_ld" = no; then
8657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8658 hardcode_libdir_flag_spec_ld='+b $libdir'
8659 hardcode_libdir_separator=:
8660 hardcode_direct=yes
8661 hardcode_direct_absolute=yes
8662 export_dynamic_flag_spec='${wl}-E'
8663 # hardcode_minus_L: Not really in the search PATH,
8664 # but as the default location of the library.
8665 hardcode_minus_L=yes
8666 fi
8667 ;;
8668
8669 hpux11*)
8670 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8671 case $host_cpu in
8672 hppa*64*)
8673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8674 ;;
8675 ia64*)
8676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8677 ;;
8678 *)
8679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8680 ;;
8681 esac
8682 else
8683 case $host_cpu in
8684 hppa*64*)
8685 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 ;;
8687 ia64*)
8688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8689 ;;
8690 *)
8691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8692 ;;
8693 esac
8694 fi
8695 if test "$with_gnu_ld" = no; then
8696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8697 hardcode_libdir_separator=:
8698
8699 case $host_cpu in
8700 hppa*64*|ia64*)
8701 hardcode_direct=no
8702 hardcode_shlibpath_var=no
8703 ;;
8704 *)
8705 hardcode_direct=yes
8706 hardcode_direct_absolute=yes
8707 export_dynamic_flag_spec='${wl}-E'
8708
8709 # hardcode_minus_L: Not really in the search PATH,
8710 # but as the default location of the library.
8711 hardcode_minus_L=yes
8712 ;;
8713 esac
8714 fi
8715 ;;
8716
8717 irix5* | irix6* | nonstopux*)
8718 if test "$GCC" = yes; then
8719 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'
8720 # Try to use the -exported_symbol ld option, if it does not
8721 # work, assume that -exports_file does not work either and
8722 # implicitly export all symbols.
8723 save_LDFLAGS="$LDFLAGS"
8724 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8725 cat >conftest.$ac_ext <<_ACEOF
8726 int foo(void) {}
8727 _ACEOF
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (ac_try="$ac_link"
8730 case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733 esac
8734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8735 $as_echo "$ac_try_echo") >&5
8736 (eval "$ac_link") 2>conftest.er1
8737 ac_status=$?
8738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
8741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest$ac_exeext && {
8746 test "$cross_compiling" = yes ||
8747 $as_test_x conftest$ac_exeext
8748 }; then
8749 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'
8750
8751 else
8752 $as_echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755
8756 fi
8757
8758 rm -rf conftest.dSYM
8759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8760 conftest$ac_exeext conftest.$ac_ext
8761 LDFLAGS="$save_LDFLAGS"
8762 else
8763 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'
8764 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'
8765 fi
8766 archive_cmds_need_lc='no'
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 hardcode_libdir_separator=:
8769 inherit_rpath=yes
8770 link_all_deplibs=yes
8771 ;;
8772
8773 netbsd*)
8774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8776 else
8777 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8778 fi
8779 hardcode_libdir_flag_spec='-R$libdir'
8780 hardcode_direct=yes
8781 hardcode_shlibpath_var=no
8782 ;;
8783
8784 newsos6)
8785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_direct=yes
8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788 hardcode_libdir_separator=:
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 *nto* | *qnx*)
8793 ;;
8794
8795 openbsd*)
8796 if test -f /usr/libexec/ld.so; then
8797 hardcode_direct=yes
8798 hardcode_shlibpath_var=no
8799 hardcode_direct_absolute=yes
8800 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8803 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8804 export_dynamic_flag_spec='${wl}-E'
8805 else
8806 case $host_os in
8807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_libdir_flag_spec='-R$libdir'
8810 ;;
8811 *)
8812 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8814 ;;
8815 esac
8816 fi
8817 else
8818 ld_shlibs=no
8819 fi
8820 ;;
8821
8822 os2*)
8823 hardcode_libdir_flag_spec='-L$libdir'
8824 hardcode_minus_L=yes
8825 allow_undefined_flag=unsupported
8826 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'
8827 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8828 ;;
8829
8830 osf3*)
8831 if test "$GCC" = yes; then
8832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833 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'
8834 else
8835 allow_undefined_flag=' -expect_unresolved \*'
8836 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'
8837 fi
8838 archive_cmds_need_lc='no'
8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840 hardcode_libdir_separator=:
8841 ;;
8842
8843 osf4* | osf5*) # as osf3* with the addition of -msym flag
8844 if test "$GCC" = yes; then
8845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8846 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'
8847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8848 else
8849 allow_undefined_flag=' -expect_unresolved \*'
8850 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'
8851 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~
8852 $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'
8853
8854 # Both c and cxx compiler support -rpath directly
8855 hardcode_libdir_flag_spec='-rpath $libdir'
8856 fi
8857 archive_cmds_need_lc='no'
8858 hardcode_libdir_separator=:
8859 ;;
8860
8861 solaris*)
8862 no_undefined_flag=' -z defs'
8863 if test "$GCC" = yes; then
8864 wlarc='${wl}'
8865 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8867 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8868 else
8869 case `$CC -V 2>&1` in
8870 *"Compilers 5.0"*)
8871 wlarc=''
8872 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8875 ;;
8876 *)
8877 wlarc='${wl}'
8878 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8880 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8881 ;;
8882 esac
8883 fi
8884 hardcode_libdir_flag_spec='-R$libdir'
8885 hardcode_shlibpath_var=no
8886 case $host_os in
8887 solaris2.[0-5] | solaris2.[0-5].*) ;;
8888 *)
8889 # The compiler driver will combine and reorder linker options,
8890 # but understands `-z linker_flag'. GCC discards it without `$wl',
8891 # but is careful enough not to reorder.
8892 # Supported since Solaris 2.6 (maybe 2.5.1?)
8893 if test "$GCC" = yes; then
8894 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8895 else
8896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8897 fi
8898 ;;
8899 esac
8900 link_all_deplibs=yes
8901 ;;
8902
8903 sunos4*)
8904 if test "x$host_vendor" = xsequent; then
8905 # Use $CC to link under sequent, because it throws in some extra .o
8906 # files that make .init and .fini sections work.
8907 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8908 else
8909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8910 fi
8911 hardcode_libdir_flag_spec='-L$libdir'
8912 hardcode_direct=yes
8913 hardcode_minus_L=yes
8914 hardcode_shlibpath_var=no
8915 ;;
8916
8917 sysv4)
8918 case $host_vendor in
8919 sni)
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_direct=yes # is this really true???
8922 ;;
8923 siemens)
8924 ## LD is ld it makes a PLAMLIB
8925 ## CC just makes a GrossModule.
8926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8927 reload_cmds='$CC -r -o $output$reload_objs'
8928 hardcode_direct=no
8929 ;;
8930 motorola)
8931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8933 ;;
8934 esac
8935 runpath_var='LD_RUN_PATH'
8936 hardcode_shlibpath_var=no
8937 ;;
8938
8939 sysv4.3*)
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_shlibpath_var=no
8942 export_dynamic_flag_spec='-Bexport'
8943 ;;
8944
8945 sysv4*MP*)
8946 if test -d /usr/nec; then
8947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 hardcode_shlibpath_var=no
8949 runpath_var=LD_RUN_PATH
8950 hardcode_runpath_var=yes
8951 ld_shlibs=yes
8952 fi
8953 ;;
8954
8955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8956 no_undefined_flag='${wl}-z,text'
8957 archive_cmds_need_lc=no
8958 hardcode_shlibpath_var=no
8959 runpath_var='LD_RUN_PATH'
8960
8961 if test "$GCC" = yes; then
8962 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 else
8965 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8966 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8967 fi
8968 ;;
8969
8970 sysv5* | sco3.2v5* | sco5v6*)
8971 # Note: We can NOT use -z defs as we might desire, because we do not
8972 # link with -lc, and that would cause any symbols used from libc to
8973 # always be unresolved, which means just about no library would
8974 # ever link correctly. If we're not using GNU ld we use -z text
8975 # though, which does catch some bad symbols but isn't as heavy-handed
8976 # as -z defs.
8977 no_undefined_flag='${wl}-z,text'
8978 allow_undefined_flag='${wl}-z,nodefs'
8979 archive_cmds_need_lc=no
8980 hardcode_shlibpath_var=no
8981 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8982 hardcode_libdir_separator=':'
8983 link_all_deplibs=yes
8984 export_dynamic_flag_spec='${wl}-Bexport'
8985 runpath_var='LD_RUN_PATH'
8986
8987 if test "$GCC" = yes; then
8988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 else
8991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 fi
8994 ;;
8995
8996 uts4*)
8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_libdir_flag_spec='-L$libdir'
8999 hardcode_shlibpath_var=no
9000 ;;
9001
9002 *)
9003 ld_shlibs=no
9004 ;;
9005 esac
9006
9007 if test x$host_vendor = xsni; then
9008 case $host in
9009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9010 export_dynamic_flag_spec='${wl}-Blargedynsym'
9011 ;;
9012 esac
9013 fi
9014 fi
9015
9016 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9017 $as_echo "$ld_shlibs" >&6; }
9018 test "$ld_shlibs" = no && can_build_shared=no
9019
9020 with_gnu_ld=$with_gnu_ld
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036 #
9037 # Do we need to explicitly link libc?
9038 #
9039 case "x$archive_cmds_need_lc" in
9040 x|xyes)
9041 # Assume -lc should be added
9042 archive_cmds_need_lc=yes
9043
9044 if test "$enable_shared" = yes && test "$GCC" = yes; then
9045 case $archive_cmds in
9046 *'~'*)
9047 # FIXME: we may have to deal with multi-command sequences.
9048 ;;
9049 '$CC '*)
9050 # Test whether the compiler implicitly links with -lc since on some
9051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9052 # to ld, don't add -lc before -lgcc.
9053 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9054 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9055 $RM conftest*
9056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9057
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>&5
9060 ac_status=$?
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } 2>conftest.err; then
9063 soname=conftest
9064 lib=conftest
9065 libobjs=conftest.$ac_objext
9066 deplibs=
9067 wl=$lt_prog_compiler_wl
9068 pic_flag=$lt_prog_compiler_pic
9069 compiler_flags=-v
9070 linker_flags=-v
9071 verstring=
9072 output_objdir=.
9073 libname=conftest
9074 lt_save_allow_undefined_flag=$allow_undefined_flag
9075 allow_undefined_flag=
9076 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9077 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9078 ac_status=$?
9079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }
9081 then
9082 archive_cmds_need_lc=no
9083 else
9084 archive_cmds_need_lc=yes
9085 fi
9086 allow_undefined_flag=$lt_save_allow_undefined_flag
9087 else
9088 cat conftest.err 1>&5
9089 fi
9090 $RM conftest*
9091 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9092 $as_echo "$archive_cmds_need_lc" >&6; }
9093 ;;
9094 esac
9095 fi
9096 ;;
9097 esac
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9256 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9257
9258 if test "$GCC" = yes; then
9259 case $host_os in
9260 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9261 *) lt_awk_arg="/^libraries:/" ;;
9262 esac
9263 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9264 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9265 # if the path contains ";" then we assume it to be the separator
9266 # otherwise default to the standard path separator (i.e. ":") - it is
9267 # assumed that no part of a normal pathname contains ";" but that should
9268 # okay in the real world where ";" in dirpaths is itself problematic.
9269 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9270 else
9271 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9272 fi
9273 # Ok, now we have the path, separated by spaces, we can step through it
9274 # and add multilib dir if necessary.
9275 lt_tmp_lt_search_path_spec=
9276 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9277 for lt_sys_path in $lt_search_path_spec; do
9278 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9280 else
9281 test -d "$lt_sys_path" && \
9282 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9283 fi
9284 done
9285 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9286 BEGIN {RS=" "; FS="/|\n";} {
9287 lt_foo="";
9288 lt_count=0;
9289 for (lt_i = NF; lt_i > 0; lt_i--) {
9290 if ($lt_i != "" && $lt_i != ".") {
9291 if ($lt_i == "..") {
9292 lt_count++;
9293 } else {
9294 if (lt_count == 0) {
9295 lt_foo="/" $lt_i lt_foo;
9296 } else {
9297 lt_count--;
9298 }
9299 }
9300 }
9301 }
9302 if (lt_foo != "") { lt_freq[lt_foo]++; }
9303 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9304 }'`
9305 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9306 else
9307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9308 fi
9309 library_names_spec=
9310 libname_spec='lib$name'
9311 soname_spec=
9312 shrext_cmds=".so"
9313 postinstall_cmds=
9314 postuninstall_cmds=
9315 finish_cmds=
9316 finish_eval=
9317 shlibpath_var=
9318 shlibpath_overrides_runpath=unknown
9319 version_type=none
9320 dynamic_linker="$host_os ld.so"
9321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9322 need_lib_prefix=unknown
9323 hardcode_into_libs=no
9324
9325 # when you set need_version to no, make sure it does not cause -set_version
9326 # flags to be left without arguments
9327 need_version=unknown
9328
9329 case $host_os in
9330 aix3*)
9331 version_type=linux
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9333 shlibpath_var=LIBPATH
9334
9335 # AIX 3 has no versioning support, so we append a major version to the name.
9336 soname_spec='${libname}${release}${shared_ext}$major'
9337 ;;
9338
9339 aix[4-9]*)
9340 version_type=linux
9341 need_lib_prefix=no
9342 need_version=no
9343 hardcode_into_libs=yes
9344 if test "$host_cpu" = ia64; then
9345 # AIX 5 supports IA64
9346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 else
9349 # With GCC up to 2.95.x, collect2 would create an import file
9350 # for dependence libraries. The import file would start with
9351 # the line `#! .'. This would cause the generated library to
9352 # depend on `.', always an invalid library. This was fixed in
9353 # development snapshots of GCC prior to 3.0.
9354 case $host_os in
9355 aix4 | aix4.[01] | aix4.[01].*)
9356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9357 echo ' yes '
9358 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9359 :
9360 else
9361 can_build_shared=no
9362 fi
9363 ;;
9364 esac
9365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9366 # soname into executable. Probably we can add versioning support to
9367 # collect2, so additional links can be useful in future.
9368 if test "$aix_use_runtimelinking" = yes; then
9369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9370 # instead of lib<name>.a to let people know that these are not
9371 # typical AIX shared libraries.
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 else
9374 # We preserve .a as extension for shared libraries through AIX4.2
9375 # and later when we are not doing run time linking.
9376 library_names_spec='${libname}${release}.a $libname.a'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 fi
9379 shlibpath_var=LIBPATH
9380 fi
9381 ;;
9382
9383 amigaos*)
9384 case $host_cpu in
9385 powerpc)
9386 # Since July 2007 AmigaOS4 officially supports .so libraries.
9387 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 ;;
9390 m68k)
9391 library_names_spec='$libname.ixlibrary $libname.a'
9392 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9393 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'
9394 ;;
9395 esac
9396 ;;
9397
9398 beos*)
9399 library_names_spec='${libname}${shared_ext}'
9400 dynamic_linker="$host_os ld.so"
9401 shlibpath_var=LIBRARY_PATH
9402 ;;
9403
9404 bsdi[45]*)
9405 version_type=linux
9406 need_version=no
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9412 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9413 # the default ld.so.conf also contains /usr/contrib/lib and
9414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9415 # libtool to hard-code these into programs
9416 ;;
9417
9418 cygwin* | mingw* | pw32* | cegcc*)
9419 version_type=windows
9420 shrext_cmds=".dll"
9421 need_version=no
9422 need_lib_prefix=no
9423
9424 case $GCC,$host_os in
9425 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9426 library_names_spec='$libname.dll.a'
9427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9428 postinstall_cmds='base_file=`basename \${file}`~
9429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9430 dldir=$destdir/`dirname \$dlpath`~
9431 test -d \$dldir || mkdir -p \$dldir~
9432 $install_prog $dir/$dlname \$dldir/$dlname~
9433 chmod a+x \$dldir/$dlname~
9434 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9435 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9436 fi'
9437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9438 dlpath=$dir/\$dldll~
9439 $RM \$dlpath'
9440 shlibpath_overrides_runpath=yes
9441
9442 case $host_os in
9443 cygwin*)
9444 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9446 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9447 ;;
9448 mingw* | cegcc*)
9449 # MinGW DLLs use traditional 'lib' prefix
9450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9451 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9452 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9453 # It is most probably a Windows format PATH printed by
9454 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9455 # path with ; separators, and with drive letters. We can handle the
9456 # drive letters (cygwin fileutils understands them), so leave them,
9457 # especially as we might pass files found there to a mingw objdump,
9458 # which wouldn't understand a cygwinified path. Ahh.
9459 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9460 else
9461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9462 fi
9463 ;;
9464 pw32*)
9465 # pw32 DLLs use 'pw' prefix rather than 'lib'
9466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9467 ;;
9468 esac
9469 ;;
9470
9471 *)
9472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9473 ;;
9474 esac
9475 dynamic_linker='Win32 ld.exe'
9476 # FIXME: first we should search . and the directory the executable is in
9477 shlibpath_var=PATH
9478 ;;
9479
9480 darwin* | rhapsody*)
9481 dynamic_linker="$host_os dyld"
9482 version_type=darwin
9483 need_lib_prefix=no
9484 need_version=no
9485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9486 soname_spec='${libname}${release}${major}$shared_ext'
9487 shlibpath_overrides_runpath=yes
9488 shlibpath_var=DYLD_LIBRARY_PATH
9489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9490
9491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9493 ;;
9494
9495 dgux*)
9496 version_type=linux
9497 need_lib_prefix=no
9498 need_version=no
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 ;;
9503
9504 freebsd1*)
9505 dynamic_linker=no
9506 ;;
9507
9508 freebsd* | dragonfly*)
9509 # DragonFly does not have aout. When/if they implement a new
9510 # versioning mechanism, adjust this.
9511 if test -x /usr/bin/objformat; then
9512 objformat=`/usr/bin/objformat`
9513 else
9514 case $host_os in
9515 freebsd[123]*) objformat=aout ;;
9516 *) objformat=elf ;;
9517 esac
9518 fi
9519 version_type=freebsd-$objformat
9520 case $version_type in
9521 freebsd-elf*)
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9523 need_version=no
9524 need_lib_prefix=no
9525 ;;
9526 freebsd-*)
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9528 need_version=yes
9529 ;;
9530 esac
9531 shlibpath_var=LD_LIBRARY_PATH
9532 case $host_os in
9533 freebsd2*)
9534 shlibpath_overrides_runpath=yes
9535 ;;
9536 freebsd3.[01]* | freebsdelf3.[01]*)
9537 shlibpath_overrides_runpath=yes
9538 hardcode_into_libs=yes
9539 ;;
9540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9542 shlibpath_overrides_runpath=no
9543 hardcode_into_libs=yes
9544 ;;
9545 *) # from 4.6 on, and DragonFly
9546 shlibpath_overrides_runpath=yes
9547 hardcode_into_libs=yes
9548 ;;
9549 esac
9550 ;;
9551
9552 gnu*)
9553 version_type=linux
9554 need_lib_prefix=no
9555 need_version=no
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 shlibpath_var=LD_LIBRARY_PATH
9559 hardcode_into_libs=yes
9560 ;;
9561
9562 hpux9* | hpux10* | hpux11*)
9563 # Give a soname corresponding to the major version so that dld.sl refuses to
9564 # link against other versions.
9565 version_type=sunos
9566 need_lib_prefix=no
9567 need_version=no
9568 case $host_cpu in
9569 ia64*)
9570 shrext_cmds='.so'
9571 hardcode_into_libs=yes
9572 dynamic_linker="$host_os dld.so"
9573 shlibpath_var=LD_LIBRARY_PATH
9574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 if test "X$HPUX_IA64_MODE" = X32; then
9578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9579 else
9580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9581 fi
9582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9583 ;;
9584 hppa*64*)
9585 shrext_cmds='.sl'
9586 hardcode_into_libs=yes
9587 dynamic_linker="$host_os dld.sl"
9588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9594 ;;
9595 *)
9596 shrext_cmds='.sl'
9597 dynamic_linker="$host_os dld.sl"
9598 shlibpath_var=SHLIB_PATH
9599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 ;;
9603 esac
9604 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9605 postinstall_cmds='chmod 555 $lib'
9606 ;;
9607
9608 interix[3-9]*)
9609 version_type=linux
9610 need_lib_prefix=no
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 shlibpath_overrides_runpath=no
9617 hardcode_into_libs=yes
9618 ;;
9619
9620 irix5* | irix6* | nonstopux*)
9621 case $host_os in
9622 nonstopux*) version_type=nonstopux ;;
9623 *)
9624 if test "$lt_cv_prog_gnu_ld" = yes; then
9625 version_type=linux
9626 else
9627 version_type=irix
9628 fi ;;
9629 esac
9630 need_lib_prefix=no
9631 need_version=no
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9634 case $host_os in
9635 irix5* | nonstopux*)
9636 libsuff= shlibsuff=
9637 ;;
9638 *)
9639 case $LD in # libtool.m4 will add one of these switches to LD
9640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9641 libsuff= shlibsuff= libmagic=32-bit;;
9642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9643 libsuff=32 shlibsuff=N32 libmagic=N32;;
9644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9645 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9646 *) libsuff= shlibsuff= libmagic=never-match;;
9647 esac
9648 ;;
9649 esac
9650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9651 shlibpath_overrides_runpath=no
9652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9654 hardcode_into_libs=yes
9655 ;;
9656
9657 # No shared lib support for Linux oldld, aout, or coff.
9658 linux*oldld* | linux*aout* | linux*coff*)
9659 dynamic_linker=no
9660 ;;
9661
9662 # This must be Linux ELF.
9663 linux* | k*bsd*-gnu)
9664 version_type=linux
9665 need_lib_prefix=no
9666 need_version=no
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 shlibpath_overrides_runpath=no
9672 # Some binutils ld are patched to set DT_RUNPATH
9673 save_LDFLAGS=$LDFLAGS
9674 save_libdir=$libdir
9675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683
9684 int
9685 main ()
9686 {
9687
9688 ;
9689 return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9694 case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697 esac
9698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9699 $as_echo "$ac_try_echo") >&5
9700 (eval "$ac_link") 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } && {
9707 test -z "$ac_c_werror_flag" ||
9708 test ! -s conftest.err
9709 } && test -s conftest$ac_exeext && {
9710 test "$cross_compiling" = yes ||
9711 $as_test_x conftest$ac_exeext
9712 }; then
9713 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9714 shlibpath_overrides_runpath=yes
9715 fi
9716
9717 else
9718 $as_echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721
9722 fi
9723
9724 rm -rf conftest.dSYM
9725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LDFLAGS=$save_LDFLAGS
9728 libdir=$save_libdir
9729
9730 # This implies no fast_install, which is unacceptable.
9731 # Some rework will be needed to allow for fast_install
9732 # before this can be enabled.
9733 hardcode_into_libs=yes
9734
9735 # Append ld.so.conf contents to the search path
9736 if test -f /etc/ld.so.conf; then
9737 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' ' '`
9738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9739 fi
9740
9741 # We used to test for /lib/ld.so.1 and disable shared libraries on
9742 # powerpc, because MkLinux only supported shared libraries with the
9743 # GNU dynamic linker. Since this was broken with cross compilers,
9744 # most powerpc-linux boxes support dynamic linking these days and
9745 # people can always --disable-shared, the test was removed, and we
9746 # assume the GNU/Linux dynamic linker is in use.
9747 dynamic_linker='GNU/Linux ld.so'
9748 ;;
9749
9750 netbsd*)
9751 version_type=sunos
9752 need_lib_prefix=no
9753 need_version=no
9754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9757 dynamic_linker='NetBSD (a.out) ld.so'
9758 else
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 dynamic_linker='NetBSD ld.elf_so'
9762 fi
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 hardcode_into_libs=yes
9766 ;;
9767
9768 newsos6)
9769 version_type=linux
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 shlibpath_overrides_runpath=yes
9773 ;;
9774
9775 *nto* | *qnx*)
9776 version_type=qnx
9777 need_lib_prefix=no
9778 need_version=no
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 shlibpath_overrides_runpath=no
9783 hardcode_into_libs=yes
9784 dynamic_linker='ldqnx.so'
9785 ;;
9786
9787 openbsd*)
9788 version_type=sunos
9789 sys_lib_dlsearch_path_spec="/usr/lib"
9790 need_lib_prefix=no
9791 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9792 case $host_os in
9793 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9794 *) need_version=no ;;
9795 esac
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9798 shlibpath_var=LD_LIBRARY_PATH
9799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9800 case $host_os in
9801 openbsd2.[89] | openbsd2.[89].*)
9802 shlibpath_overrides_runpath=no
9803 ;;
9804 *)
9805 shlibpath_overrides_runpath=yes
9806 ;;
9807 esac
9808 else
9809 shlibpath_overrides_runpath=yes
9810 fi
9811 ;;
9812
9813 os2*)
9814 libname_spec='$name'
9815 shrext_cmds=".dll"
9816 need_lib_prefix=no
9817 library_names_spec='$libname${shared_ext} $libname.a'
9818 dynamic_linker='OS/2 ld.exe'
9819 shlibpath_var=LIBPATH
9820 ;;
9821
9822 osf3* | osf4* | osf5*)
9823 version_type=osf
9824 need_lib_prefix=no
9825 need_version=no
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9830 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9831 ;;
9832
9833 rdos*)
9834 dynamic_linker=no
9835 ;;
9836
9837 solaris*)
9838 version_type=linux
9839 need_lib_prefix=no
9840 need_version=no
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 shlibpath_overrides_runpath=yes
9845 hardcode_into_libs=yes
9846 # ldd complains unless libraries are executable
9847 postinstall_cmds='chmod +x $lib'
9848 ;;
9849
9850 sunos4*)
9851 version_type=sunos
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 shlibpath_overrides_runpath=yes
9856 if test "$with_gnu_ld" = yes; then
9857 need_lib_prefix=no
9858 fi
9859 need_version=yes
9860 ;;
9861
9862 sysv4 | sysv4.3*)
9863 version_type=linux
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 case $host_vendor in
9868 sni)
9869 shlibpath_overrides_runpath=no
9870 need_lib_prefix=no
9871 runpath_var=LD_RUN_PATH
9872 ;;
9873 siemens)
9874 need_lib_prefix=no
9875 ;;
9876 motorola)
9877 need_lib_prefix=no
9878 need_version=no
9879 shlibpath_overrides_runpath=no
9880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9881 ;;
9882 esac
9883 ;;
9884
9885 sysv4*MP*)
9886 if test -d /usr/nec ;then
9887 version_type=linux
9888 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9889 soname_spec='$libname${shared_ext}.$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 fi
9892 ;;
9893
9894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9895 version_type=freebsd-elf
9896 need_lib_prefix=no
9897 need_version=no
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 shlibpath_overrides_runpath=yes
9902 hardcode_into_libs=yes
9903 if test "$with_gnu_ld" = yes; then
9904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9905 else
9906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9907 case $host_os in
9908 sco3.2v5*)
9909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9910 ;;
9911 esac
9912 fi
9913 sys_lib_dlsearch_path_spec='/usr/lib'
9914 ;;
9915
9916 tpf*)
9917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9918 version_type=linux
9919 need_lib_prefix=no
9920 need_version=no
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 shlibpath_overrides_runpath=no
9924 hardcode_into_libs=yes
9925 ;;
9926
9927 uts4*)
9928 version_type=linux
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 ;;
9933
9934 *)
9935 dynamic_linker=no
9936 ;;
9937 esac
9938 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9939 $as_echo "$dynamic_linker" >&6; }
9940 test "$dynamic_linker" = no && can_build_shared=no
9941
9942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9943 if test "$GCC" = yes; then
9944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9945 fi
9946
9947 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9948 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9949 fi
9950 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9951 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9952 fi
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10041 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10042 hardcode_action=
10043 if test -n "$hardcode_libdir_flag_spec" ||
10044 test -n "$runpath_var" ||
10045 test "X$hardcode_automatic" = "Xyes" ; then
10046
10047 # We can hardcode non-existent directories.
10048 if test "$hardcode_direct" != no &&
10049 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10050 # have to relink, otherwise we might link with an installed library
10051 # when we should be linking with a yet-to-be-installed one
10052 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10053 test "$hardcode_minus_L" != no; then
10054 # Linking always hardcodes the temporary library directory.
10055 hardcode_action=relink
10056 else
10057 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10058 hardcode_action=immediate
10059 fi
10060 else
10061 # We cannot hardcode anything, or else we can only hardcode existing
10062 # directories.
10063 hardcode_action=unsupported
10064 fi
10065 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10066 $as_echo "$hardcode_action" >&6; }
10067
10068 if test "$hardcode_action" = relink ||
10069 test "$inherit_rpath" = yes; then
10070 # Fast installation is not supported
10071 enable_fast_install=no
10072 elif test "$shlibpath_overrides_runpath" = yes ||
10073 test "$enable_shared" = no; then
10074 # Fast installation is not necessary
10075 enable_fast_install=needless
10076 fi
10077
10078
10079
10080
10081
10082
10083 if test "x$enable_dlopen" != xyes; then
10084 enable_dlopen=unknown
10085 enable_dlopen_self=unknown
10086 enable_dlopen_self_static=unknown
10087 else
10088 lt_cv_dlopen=no
10089 lt_cv_dlopen_libs=
10090
10091 case $host_os in
10092 beos*)
10093 lt_cv_dlopen="load_add_on"
10094 lt_cv_dlopen_libs=
10095 lt_cv_dlopen_self=yes
10096 ;;
10097
10098 mingw* | pw32* | cegcc*)
10099 lt_cv_dlopen="LoadLibrary"
10100 lt_cv_dlopen_libs=
10101 ;;
10102
10103 cygwin*)
10104 lt_cv_dlopen="dlopen"
10105 lt_cv_dlopen_libs=
10106 ;;
10107
10108 darwin*)
10109 # if libdl is installed we need to link against it
10110 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10111 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10113 $as_echo_n "(cached) " >&6
10114 else
10115 ac_check_lib_save_LIBS=$LIBS
10116 LIBS="-ldl $LIBS"
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123
10124 /* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 char dlopen ();
10131 int
10132 main ()
10133 {
10134 return dlopen ();
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 rm -f conftest.$ac_objext conftest$ac_exeext
10140 if { (ac_try="$ac_link"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144 esac
10145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10146 $as_echo "$ac_try_echo") >&5
10147 (eval "$ac_link") 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest$ac_exeext && {
10157 test "$cross_compiling" = yes ||
10158 $as_test_x conftest$ac_exeext
10159 }; then
10160 ac_cv_lib_dl_dlopen=yes
10161 else
10162 $as_echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 ac_cv_lib_dl_dlopen=no
10166 fi
10167
10168 rm -rf conftest.dSYM
10169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10172 fi
10173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10175 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10177 else
10178
10179 lt_cv_dlopen="dyld"
10180 lt_cv_dlopen_libs=
10181 lt_cv_dlopen_self=yes
10182
10183 fi
10184
10185 ;;
10186
10187 *)
10188 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10189 $as_echo_n "checking for shl_load... " >&6; }
10190 if test "${ac_cv_func_shl_load+set}" = set; then
10191 $as_echo_n "(cached) " >&6
10192 else
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10201 #define shl_load innocuous_shl_load
10202
10203 /* System header to define __stub macros and hopefully few prototypes,
10204 which can conflict with char shl_load (); below.
10205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10206 <limits.h> exists even on freestanding compilers. */
10207
10208 #ifdef __STDC__
10209 # include <limits.h>
10210 #else
10211 # include <assert.h>
10212 #endif
10213
10214 #undef shl_load
10215
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 char shl_load ();
10223 /* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226 #if defined __stub_shl_load || defined __stub___shl_load
10227 choke me
10228 #endif
10229
10230 int
10231 main ()
10232 {
10233 return shl_load ();
10234 ;
10235 return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243 esac
10244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10245 $as_echo "$ac_try_echo") >&5
10246 (eval "$ac_link") 2>conftest.er1
10247 ac_status=$?
10248 grep -v '^ *+' conftest.er1 >conftest.err
10249 rm -f conftest.er1
10250 cat conftest.err >&5
10251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } && {
10253 test -z "$ac_c_werror_flag" ||
10254 test ! -s conftest.err
10255 } && test -s conftest$ac_exeext && {
10256 test "$cross_compiling" = yes ||
10257 $as_test_x conftest$ac_exeext
10258 }; then
10259 ac_cv_func_shl_load=yes
10260 else
10261 $as_echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_cv_func_shl_load=no
10265 fi
10266
10267 rm -rf conftest.dSYM
10268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10269 conftest$ac_exeext conftest.$ac_ext
10270 fi
10271 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10272 $as_echo "$ac_cv_func_shl_load" >&6; }
10273 if test "x$ac_cv_func_shl_load" = x""yes; then
10274 lt_cv_dlopen="shl_load"
10275 else
10276 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10277 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10278 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10279 $as_echo_n "(cached) " >&6
10280 else
10281 ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-ldld $LIBS"
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289
10290 /* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 char shl_load ();
10297 int
10298 main ()
10299 {
10300 return shl_load ();
10301 ;
10302 return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310 esac
10311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10312 $as_echo "$ac_try_echo") >&5
10313 (eval "$ac_link") 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest$ac_exeext && {
10323 test "$cross_compiling" = yes ||
10324 $as_test_x conftest$ac_exeext
10325 }; then
10326 ac_cv_lib_dld_shl_load=yes
10327 else
10328 $as_echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_cv_lib_dld_shl_load=no
10332 fi
10333
10334 rm -rf conftest.dSYM
10335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10338 fi
10339 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10340 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10341 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10342 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10343 else
10344 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10345 $as_echo_n "checking for dlopen... " >&6; }
10346 if test "${ac_cv_func_dlopen+set}" = set; then
10347 $as_echo_n "(cached) " >&6
10348 else
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10357 #define dlopen innocuous_dlopen
10358
10359 /* System header to define __stub macros and hopefully few prototypes,
10360 which can conflict with char dlopen (); below.
10361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10362 <limits.h> exists even on freestanding compilers. */
10363
10364 #ifdef __STDC__
10365 # include <limits.h>
10366 #else
10367 # include <assert.h>
10368 #endif
10369
10370 #undef dlopen
10371
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 char dlopen ();
10379 /* The GNU C library defines this for functions which it implements
10380 to always fail with ENOSYS. Some functions are actually named
10381 something starting with __ and the normal name is an alias. */
10382 #if defined __stub_dlopen || defined __stub___dlopen
10383 choke me
10384 #endif
10385
10386 int
10387 main ()
10388 {
10389 return dlopen ();
10390 ;
10391 return 0;
10392 }
10393 _ACEOF
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (ac_try="$ac_link"
10396 case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399 esac
10400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10401 $as_echo "$ac_try_echo") >&5
10402 (eval "$ac_link") 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext && {
10412 test "$cross_compiling" = yes ||
10413 $as_test_x conftest$ac_exeext
10414 }; then
10415 ac_cv_func_dlopen=yes
10416 else
10417 $as_echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 ac_cv_func_dlopen=no
10421 fi
10422
10423 rm -rf conftest.dSYM
10424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10425 conftest$ac_exeext conftest.$ac_ext
10426 fi
10427 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10428 $as_echo "$ac_cv_func_dlopen" >&6; }
10429 if test "x$ac_cv_func_dlopen" = x""yes; then
10430 lt_cv_dlopen="dlopen"
10431 else
10432 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10434 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10435 $as_echo_n "(cached) " >&6
10436 else
10437 ac_check_lib_save_LIBS=$LIBS
10438 LIBS="-ldl $LIBS"
10439 cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h. */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445
10446 /* Override any GCC internal prototype to avoid an error.
10447 Use char because int might match the return type of a GCC
10448 builtin and then its argument prototype would still apply. */
10449 #ifdef __cplusplus
10450 extern "C"
10451 #endif
10452 char dlopen ();
10453 int
10454 main ()
10455 {
10456 return dlopen ();
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (ac_try="$ac_link"
10463 case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466 esac
10467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10468 $as_echo "$ac_try_echo") >&5
10469 (eval "$ac_link") 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext && {
10479 test "$cross_compiling" = yes ||
10480 $as_test_x conftest$ac_exeext
10481 }; then
10482 ac_cv_lib_dl_dlopen=yes
10483 else
10484 $as_echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_cv_lib_dl_dlopen=no
10488 fi
10489
10490 rm -rf conftest.dSYM
10491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10492 conftest$ac_exeext conftest.$ac_ext
10493 LIBS=$ac_check_lib_save_LIBS
10494 fi
10495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10496 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10497 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10499 else
10500 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10501 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10502 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10503 $as_echo_n "(cached) " >&6
10504 else
10505 ac_check_lib_save_LIBS=$LIBS
10506 LIBS="-lsvld $LIBS"
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h. */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513
10514 /* Override any GCC internal prototype to avoid an error.
10515 Use char because int might match the return type of a GCC
10516 builtin and then its argument prototype would still apply. */
10517 #ifdef __cplusplus
10518 extern "C"
10519 #endif
10520 char dlopen ();
10521 int
10522 main ()
10523 {
10524 return dlopen ();
10525 ;
10526 return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (ac_try="$ac_link"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534 esac
10535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10536 $as_echo "$ac_try_echo") >&5
10537 (eval "$ac_link") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest$ac_exeext && {
10547 test "$cross_compiling" = yes ||
10548 $as_test_x conftest$ac_exeext
10549 }; then
10550 ac_cv_lib_svld_dlopen=yes
10551 else
10552 $as_echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_cv_lib_svld_dlopen=no
10556 fi
10557
10558 rm -rf conftest.dSYM
10559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10562 fi
10563 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10564 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10565 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10567 else
10568 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10569 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10570 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10571 $as_echo_n "(cached) " >&6
10572 else
10573 ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-ldld $LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h. */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 char dld_link ();
10589 int
10590 main ()
10591 {
10592 return dld_link ();
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605 (eval "$ac_link") 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest$ac_exeext && {
10615 test "$cross_compiling" = yes ||
10616 $as_test_x conftest$ac_exeext
10617 }; then
10618 ac_cv_lib_dld_dld_link=yes
10619 else
10620 $as_echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_cv_lib_dld_dld_link=no
10624 fi
10625
10626 rm -rf conftest.dSYM
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10630 fi
10631 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10632 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10633 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10634 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10635 fi
10636
10637
10638 fi
10639
10640
10641 fi
10642
10643
10644 fi
10645
10646
10647 fi
10648
10649
10650 fi
10651
10652 ;;
10653 esac
10654
10655 if test "x$lt_cv_dlopen" != xno; then
10656 enable_dlopen=yes
10657 else
10658 enable_dlopen=no
10659 fi
10660
10661 case $lt_cv_dlopen in
10662 dlopen)
10663 save_CPPFLAGS="$CPPFLAGS"
10664 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10665
10666 save_LDFLAGS="$LDFLAGS"
10667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10668
10669 save_LIBS="$LIBS"
10670 LIBS="$lt_cv_dlopen_libs $LIBS"
10671
10672 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10673 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10674 if test "${lt_cv_dlopen_self+set}" = set; then
10675 $as_echo_n "(cached) " >&6
10676 else
10677 if test "$cross_compiling" = yes; then :
10678 lt_cv_dlopen_self=cross
10679 else
10680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10681 lt_status=$lt_dlunknown
10682 cat > conftest.$ac_ext <<_LT_EOF
10683 #line 10683 "configure"
10684 #include "confdefs.h"
10685
10686 #if HAVE_DLFCN_H
10687 #include <dlfcn.h>
10688 #endif
10689
10690 #include <stdio.h>
10691
10692 #ifdef RTLD_GLOBAL
10693 # define LT_DLGLOBAL RTLD_GLOBAL
10694 #else
10695 # ifdef DL_GLOBAL
10696 # define LT_DLGLOBAL DL_GLOBAL
10697 # else
10698 # define LT_DLGLOBAL 0
10699 # endif
10700 #endif
10701
10702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10703 find out it does not work in some platform. */
10704 #ifndef LT_DLLAZY_OR_NOW
10705 # ifdef RTLD_LAZY
10706 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10707 # else
10708 # ifdef DL_LAZY
10709 # define LT_DLLAZY_OR_NOW DL_LAZY
10710 # else
10711 # ifdef RTLD_NOW
10712 # define LT_DLLAZY_OR_NOW RTLD_NOW
10713 # else
10714 # ifdef DL_NOW
10715 # define LT_DLLAZY_OR_NOW DL_NOW
10716 # else
10717 # define LT_DLLAZY_OR_NOW 0
10718 # endif
10719 # endif
10720 # endif
10721 # endif
10722 #endif
10723
10724 void fnord() { int i=42;}
10725 int main ()
10726 {
10727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10728 int status = $lt_dlunknown;
10729
10730 if (self)
10731 {
10732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10733 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10734 /* dlclose (self); */
10735 }
10736 else
10737 puts (dlerror ());
10738
10739 return status;
10740 }
10741 _LT_EOF
10742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10743 (eval $ac_link) 2>&5
10744 ac_status=$?
10745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10747 (./conftest; exit; ) >&5 2>/dev/null
10748 lt_status=$?
10749 case x$lt_status in
10750 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10751 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10752 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10753 esac
10754 else :
10755 # compilation failed
10756 lt_cv_dlopen_self=no
10757 fi
10758 fi
10759 rm -fr conftest*
10760
10761
10762 fi
10763 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10764 $as_echo "$lt_cv_dlopen_self" >&6; }
10765
10766 if test "x$lt_cv_dlopen_self" = xyes; then
10767 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10768 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10769 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10770 if test "${lt_cv_dlopen_self_static+set}" = set; then
10771 $as_echo_n "(cached) " >&6
10772 else
10773 if test "$cross_compiling" = yes; then :
10774 lt_cv_dlopen_self_static=cross
10775 else
10776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10777 lt_status=$lt_dlunknown
10778 cat > conftest.$ac_ext <<_LT_EOF
10779 #line 10779 "configure"
10780 #include "confdefs.h"
10781
10782 #if HAVE_DLFCN_H
10783 #include <dlfcn.h>
10784 #endif
10785
10786 #include <stdio.h>
10787
10788 #ifdef RTLD_GLOBAL
10789 # define LT_DLGLOBAL RTLD_GLOBAL
10790 #else
10791 # ifdef DL_GLOBAL
10792 # define LT_DLGLOBAL DL_GLOBAL
10793 # else
10794 # define LT_DLGLOBAL 0
10795 # endif
10796 #endif
10797
10798 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10799 find out it does not work in some platform. */
10800 #ifndef LT_DLLAZY_OR_NOW
10801 # ifdef RTLD_LAZY
10802 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10803 # else
10804 # ifdef DL_LAZY
10805 # define LT_DLLAZY_OR_NOW DL_LAZY
10806 # else
10807 # ifdef RTLD_NOW
10808 # define LT_DLLAZY_OR_NOW RTLD_NOW
10809 # else
10810 # ifdef DL_NOW
10811 # define LT_DLLAZY_OR_NOW DL_NOW
10812 # else
10813 # define LT_DLLAZY_OR_NOW 0
10814 # endif
10815 # endif
10816 # endif
10817 # endif
10818 #endif
10819
10820 void fnord() { int i=42;}
10821 int main ()
10822 {
10823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10824 int status = $lt_dlunknown;
10825
10826 if (self)
10827 {
10828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10829 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10830 /* dlclose (self); */
10831 }
10832 else
10833 puts (dlerror ());
10834
10835 return status;
10836 }
10837 _LT_EOF
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>&5
10840 ac_status=$?
10841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10843 (./conftest; exit; ) >&5 2>/dev/null
10844 lt_status=$?
10845 case x$lt_status in
10846 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10847 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10848 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10849 esac
10850 else :
10851 # compilation failed
10852 lt_cv_dlopen_self_static=no
10853 fi
10854 fi
10855 rm -fr conftest*
10856
10857
10858 fi
10859 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10860 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10861 fi
10862
10863 CPPFLAGS="$save_CPPFLAGS"
10864 LDFLAGS="$save_LDFLAGS"
10865 LIBS="$save_LIBS"
10866 ;;
10867 esac
10868
10869 case $lt_cv_dlopen_self in
10870 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10871 *) enable_dlopen_self=unknown ;;
10872 esac
10873
10874 case $lt_cv_dlopen_self_static in
10875 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10876 *) enable_dlopen_self_static=unknown ;;
10877 esac
10878 fi
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896 striplib=
10897 old_striplib=
10898 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10899 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10900 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10901 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10902 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10903 { $as_echo "$as_me:$LINENO: result: yes" >&5
10904 $as_echo "yes" >&6; }
10905 else
10906 # FIXME - insert some real tests, host_os isn't really good enough
10907 case $host_os in
10908 darwin*)
10909 if test -n "$STRIP" ; then
10910 striplib="$STRIP -x"
10911 old_striplib="$STRIP -S"
10912 { $as_echo "$as_me:$LINENO: result: yes" >&5
10913 $as_echo "yes" >&6; }
10914 else
10915 { $as_echo "$as_me:$LINENO: result: no" >&5
10916 $as_echo "no" >&6; }
10917 fi
10918 ;;
10919 *)
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921 $as_echo "no" >&6; }
10922 ;;
10923 esac
10924 fi
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937 # Report which library types will actually be built
10938 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10939 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10940 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10941 $as_echo "$can_build_shared" >&6; }
10942
10943 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10944 $as_echo_n "checking whether to build shared libraries... " >&6; }
10945 test "$can_build_shared" = "no" && enable_shared=no
10946
10947 # On AIX, shared libraries and static libraries use the same namespace, and
10948 # are all built from PIC.
10949 case $host_os in
10950 aix3*)
10951 test "$enable_shared" = yes && enable_static=no
10952 if test -n "$RANLIB"; then
10953 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10954 postinstall_cmds='$RANLIB $lib'
10955 fi
10956 ;;
10957
10958 aix[4-9]*)
10959 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10960 test "$enable_shared" = yes && enable_static=no
10961 fi
10962 ;;
10963 esac
10964 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10965 $as_echo "$enable_shared" >&6; }
10966
10967 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10968 $as_echo_n "checking whether to build static libraries... " >&6; }
10969 # Make sure either enable_shared or enable_static is yes.
10970 test "$enable_shared" = yes || enable_static=yes
10971 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10972 $as_echo "$enable_static" >&6; }
10973
10974
10975
10976
10977 fi
10978 ac_ext=c
10979 ac_cpp='$CPP $CPPFLAGS'
10980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10983
10984 CC="$lt_save_CC"
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998 ac_config_commands="$ac_config_commands libtool"
10999
11000
11001
11002
11003 # Only expand once:
11004
11005
11006 # Find a good install program. We prefer a C program (faster),
11007 # so one script is as good as another. But avoid the broken or
11008 # incompatible versions:
11009 # SysV /etc/install, /usr/sbin/install
11010 # SunOS /usr/etc/install
11011 # IRIX /sbin/install
11012 # AIX /bin/install
11013 # AmigaOS /C/install, which installs bootblocks on floppy discs
11014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11017 # OS/2's system install, which has a completely different semantic
11018 # ./install, which can be erroneously created by make from ./install.sh.
11019 # Reject install programs that cannot install multiple files.
11020 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11021 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11022 if test -z "$INSTALL"; then
11023 if test "${ac_cv_path_install+set}" = set; then
11024 $as_echo_n "(cached) " >&6
11025 else
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11028 do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 # Account for people who put trailing slashes in PATH elements.
11032 case $as_dir/ in
11033 ./ | .// | /cC/* | \
11034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11036 /usr/ucb/* ) ;;
11037 *)
11038 # OSF1 and SCO ODT 3.0 have their own names for install.
11039 # Don't use installbsd from OSF since it installs stuff as root
11040 # by default.
11041 for ac_prog in ginstall scoinst install; do
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11044 if test $ac_prog = install &&
11045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11046 # AIX install. It has an incompatible calling convention.
11047 :
11048 elif test $ac_prog = install &&
11049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11050 # program-specific install script used by HP pwplus--don't use.
11051 :
11052 else
11053 rm -rf conftest.one conftest.two conftest.dir
11054 echo one > conftest.one
11055 echo two > conftest.two
11056 mkdir conftest.dir
11057 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11058 test -s conftest.one && test -s conftest.two &&
11059 test -s conftest.dir/conftest.one &&
11060 test -s conftest.dir/conftest.two
11061 then
11062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11063 break 3
11064 fi
11065 fi
11066 fi
11067 done
11068 done
11069 ;;
11070 esac
11071
11072 done
11073 IFS=$as_save_IFS
11074
11075 rm -rf conftest.one conftest.two conftest.dir
11076
11077 fi
11078 if test "${ac_cv_path_install+set}" = set; then
11079 INSTALL=$ac_cv_path_install
11080 else
11081 # As a last resort, use the slow shell script. Don't cache a
11082 # value for INSTALL within a source directory, because that will
11083 # break other packages using the cache if that directory is
11084 # removed, or if the value is a relative name.
11085 INSTALL=$ac_install_sh
11086 fi
11087 fi
11088 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
11089 $as_echo "$INSTALL" >&6; }
11090
11091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11092 # It thinks the first close brace ends the variable substitution.
11093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11094
11095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11096
11097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11098
11099
11100 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11101 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11102 if test "${ac_cv_c_const+set}" = set; then
11103 $as_echo_n "(cached) " >&6
11104 else
11105 cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h. */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111
11112 int
11113 main ()
11114 {
11115 /* FIXME: Include the comments suggested by Paul. */
11116 #ifndef __cplusplus
11117 /* Ultrix mips cc rejects this. */
11118 typedef int charset[2];
11119 const charset cs;
11120 /* SunOS 4.1.1 cc rejects this. */
11121 char const *const *pcpcc;
11122 char **ppc;
11123 /* NEC SVR4.0.2 mips cc rejects this. */
11124 struct point {int x, y;};
11125 static struct point const zero = {0,0};
11126 /* AIX XL C 1.02.0.0 rejects this.
11127 It does not let you subtract one const X* pointer from another in
11128 an arm of an if-expression whose if-part is not a constant
11129 expression */
11130 const char *g = "string";
11131 pcpcc = &g + (g ? g-g : 0);
11132 /* HPUX 7.0 cc rejects these. */
11133 ++pcpcc;
11134 ppc = (char**) pcpcc;
11135 pcpcc = (char const *const *) ppc;
11136 { /* SCO 3.2v4 cc rejects this. */
11137 char *t;
11138 char const *s = 0 ? (char *) 0 : (char const *) 0;
11139
11140 *t++ = 0;
11141 if (s) return 0;
11142 }
11143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11144 int x[] = {25, 17};
11145 const int *foo = &x[0];
11146 ++foo;
11147 }
11148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11149 typedef const int *iptr;
11150 iptr p = 0;
11151 ++p;
11152 }
11153 { /* AIX XL C 1.02.0.0 rejects this saying
11154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11155 struct s { int j; const int *ap[3]; };
11156 struct s *b; b->j = 5;
11157 }
11158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11159 const int foo = 10;
11160 if (!foo) return 0;
11161 }
11162 return !cs[0] && !zero.x;
11163 #endif
11164
11165 ;
11166 return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (ac_try="$ac_compile"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174 esac
11175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11176 $as_echo "$ac_try_echo") >&5
11177 (eval "$ac_compile") 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest.$ac_objext; then
11187 ac_cv_c_const=yes
11188 else
11189 $as_echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 ac_cv_c_const=no
11193 fi
11194
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 fi
11197 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11198 $as_echo "$ac_cv_c_const" >&6; }
11199 if test $ac_cv_c_const = no; then
11200
11201 cat >>confdefs.h <<\_ACEOF
11202 #define const /**/
11203 _ACEOF
11204
11205 fi
11206
11207
11208 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11209 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11210 if test "${ac_cv_c_bigendian+set}" = set; then
11211 $as_echo_n "(cached) " >&6
11212 else
11213 ac_cv_c_bigendian=unknown
11214 # See if we're dealing with a universal compiler.
11215 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 #ifndef __APPLE_CC__
11222 not a universal capable compiler
11223 #endif
11224 typedef int dummy;
11225
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (ac_try="$ac_compile"
11229 case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232 esac
11233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11234 $as_echo "$ac_try_echo") >&5
11235 (eval "$ac_compile") 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && {
11242 test -z "$ac_c_werror_flag" ||
11243 test ! -s conftest.err
11244 } && test -s conftest.$ac_objext; then
11245
11246 # Check for potential -arch flags. It is not universal unless
11247 # there are some -arch flags. Note that *ppc* also matches
11248 # ppc64. This check is also rather less than ideal.
11249 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
11250 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
11251 esac
11252 else
11253 $as_echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256
11257 fi
11258
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 if test $ac_cv_c_bigendian = unknown; then
11261 # See if sys/param.h defines the BYTE_ORDER macro.
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 #include <sys/types.h>
11269 #include <sys/param.h>
11270
11271 int
11272 main ()
11273 {
11274 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11276 && LITTLE_ENDIAN)
11277 bogus endian macros
11278 #endif
11279
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289 esac
11290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11291 $as_echo "$ac_try_echo") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest.$ac_objext; then
11302 # It does; now see whether it defined to BIG_ENDIAN or not.
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <sys/types.h>
11310 #include <sys/param.h>
11311
11312 int
11313 main ()
11314 {
11315 #if BYTE_ORDER != BIG_ENDIAN
11316 not big endian
11317 #endif
11318
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331 (eval "$ac_compile") 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest.$ac_objext; then
11341 ac_cv_c_bigendian=yes
11342 else
11343 $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 ac_cv_c_bigendian=no
11347 fi
11348
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 else
11351 $as_echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 fi
11359 if test $ac_cv_c_bigendian = unknown; then
11360 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 #include <limits.h>
11368
11369 int
11370 main ()
11371 {
11372 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11373 bogus endian macros
11374 #endif
11375
11376 ;
11377 return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385 esac
11386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11387 $as_echo "$ac_try_echo") >&5
11388 (eval "$ac_compile") 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } && {
11395 test -z "$ac_c_werror_flag" ||
11396 test ! -s conftest.err
11397 } && test -s conftest.$ac_objext; then
11398 # It does; now see whether it defined to _BIG_ENDIAN or not.
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 #include <limits.h>
11406
11407 int
11408 main ()
11409 {
11410 #ifndef _BIG_ENDIAN
11411 not big endian
11412 #endif
11413
11414 ;
11415 return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (ac_try="$ac_compile"
11420 case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11423 esac
11424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11425 $as_echo "$ac_try_echo") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
11436 ac_cv_c_bigendian=yes
11437 else
11438 $as_echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 ac_cv_c_bigendian=no
11442 fi
11443
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 else
11446 $as_echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449
11450 fi
11451
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453 fi
11454 if test $ac_cv_c_bigendian = unknown; then
11455 # Compile a test program.
11456 if test "$cross_compiling" = yes; then
11457 # Try to guess by grepping values from an object file.
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 short int ascii_mm[] =
11465 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11466 short int ascii_ii[] =
11467 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11468 int use_ascii (int i) {
11469 return ascii_mm[i] + ascii_ii[i];
11470 }
11471 short int ebcdic_ii[] =
11472 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11473 short int ebcdic_mm[] =
11474 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11475 int use_ebcdic (int i) {
11476 return ebcdic_mm[i] + ebcdic_ii[i];
11477 }
11478 extern int foo;
11479
11480 int
11481 main ()
11482 {
11483 return use_ascii (foo) == use_ebcdic (foo);
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (ac_try="$ac_compile"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11495 $as_echo "$ac_try_echo") >&5
11496 (eval "$ac_compile") 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && {
11503 test -z "$ac_c_werror_flag" ||
11504 test ! -s conftest.err
11505 } && test -s conftest.$ac_objext; then
11506 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11507 ac_cv_c_bigendian=yes
11508 fi
11509 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11510 if test "$ac_cv_c_bigendian" = unknown; then
11511 ac_cv_c_bigendian=no
11512 else
11513 # finding both strings is unlikely to happen, but who knows?
11514 ac_cv_c_bigendian=unknown
11515 fi
11516 fi
11517 else
11518 $as_echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521
11522 fi
11523
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 else
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 int
11534 main ()
11535 {
11536
11537 /* Are we little or big endian? From Harbison&Steele. */
11538 union
11539 {
11540 long int l;
11541 char c[sizeof (long int)];
11542 } u;
11543 u.l = 1;
11544 return u.c[sizeof (long int) - 1] == 1;
11545
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555 esac
11556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11557 $as_echo "$ac_try_echo") >&5
11558 (eval "$ac_link") 2>&5
11559 ac_status=$?
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11562 { (case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_try") 2>&5
11569 ac_status=$?
11570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 ac_cv_c_bigendian=no
11573 else
11574 $as_echo "$as_me: program exited with status $ac_status" >&5
11575 $as_echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ( exit $ac_status )
11579 ac_cv_c_bigendian=yes
11580 fi
11581 rm -rf conftest.dSYM
11582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11583 fi
11584
11585
11586 fi
11587 fi
11588 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11589 $as_echo "$ac_cv_c_bigendian" >&6; }
11590 case $ac_cv_c_bigendian in #(
11591 yes)
11592 cat >>confdefs.h <<\_ACEOF
11593 #define WORDS_BIGENDIAN 1
11594 _ACEOF
11595 ;; #(
11596 no)
11597 ;; #(
11598 universal)
11599
11600 cat >>confdefs.h <<\_ACEOF
11601 #define AC_APPLE_UNIVERSAL_BUILD 1
11602 _ACEOF
11603
11604 ;; #(
11605 *)
11606 { { $as_echo "$as_me:$LINENO: error: unknown endianness
11607 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11608 $as_echo "$as_me: error: unknown endianness
11609 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11610 { (exit 1); exit 1; }; } ;;
11611 esac
11612
11613
11614
11615 cat >>confdefs.h <<\_ACEOF
11616 #define _GNU_SOURCE 1
11617 _ACEOF
11618
11619 # Check whether --enable-largefile was given.
11620 if test "${enable_largefile+set}" = set; then
11621 enableval=$enable_largefile;
11622 fi
11623
11624 if test "$enable_largefile" != no; then
11625
11626 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
11627 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11628 if test "${ac_cv_sys_largefile_CC+set}" = set; then
11629 $as_echo_n "(cached) " >&6
11630 else
11631 ac_cv_sys_largefile_CC=no
11632 if test "$GCC" != yes; then
11633 ac_save_CC=$CC
11634 while :; do
11635 # IRIX 6.2 and later do not support large files by default,
11636 # so use the C compiler's -n32 option if that helps.
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 #include <sys/types.h>
11644 /* Check that off_t can represent 2**63 - 1 correctly.
11645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11646 since some C++ compilers masquerading as C compilers
11647 incorrectly reject 9223372036854775807. */
11648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11650 && LARGE_OFF_T % 2147483647 == 1)
11651 ? 1 : -1];
11652 int
11653 main ()
11654 {
11655
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (ac_try="$ac_compile"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665 esac
11666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11667 $as_echo "$ac_try_echo") >&5
11668 (eval "$ac_compile") 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest.$ac_objext; then
11678 break
11679 else
11680 $as_echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683
11684 fi
11685
11686 rm -f core conftest.err conftest.$ac_objext
11687 CC="$CC -n32"
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11695 $as_echo "$ac_try_echo") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest.$ac_objext; then
11706 ac_cv_sys_largefile_CC=' -n32'; break
11707 else
11708 $as_echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711
11712 fi
11713
11714 rm -f core conftest.err conftest.$ac_objext
11715 break
11716 done
11717 CC=$ac_save_CC
11718 rm -f conftest.$ac_ext
11719 fi
11720 fi
11721 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
11722 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11723 if test "$ac_cv_sys_largefile_CC" != no; then
11724 CC=$CC$ac_cv_sys_largefile_CC
11725 fi
11726
11727 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11728 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11729 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11730 $as_echo_n "(cached) " >&6
11731 else
11732 while :; do
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h. */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739 #include <sys/types.h>
11740 /* Check that off_t can represent 2**63 - 1 correctly.
11741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11742 since some C++ compilers masquerading as C compilers
11743 incorrectly reject 9223372036854775807. */
11744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11746 && LARGE_OFF_T % 2147483647 == 1)
11747 ? 1 : -1];
11748 int
11749 main ()
11750 {
11751
11752 ;
11753 return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext
11757 if { (ac_try="$ac_compile"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761 esac
11762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11763 $as_echo "$ac_try_echo") >&5
11764 (eval "$ac_compile") 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } && {
11771 test -z "$ac_c_werror_flag" ||
11772 test ! -s conftest.err
11773 } && test -s conftest.$ac_objext; then
11774 ac_cv_sys_file_offset_bits=no; break
11775 else
11776 $as_echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779
11780 fi
11781
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 #define _FILE_OFFSET_BITS 64
11790 #include <sys/types.h>
11791 /* Check that off_t can represent 2**63 - 1 correctly.
11792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11793 since some C++ compilers masquerading as C compilers
11794 incorrectly reject 9223372036854775807. */
11795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11797 && LARGE_OFF_T % 2147483647 == 1)
11798 ? 1 : -1];
11799 int
11800 main ()
11801 {
11802
11803 ;
11804 return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext
11808 if { (ac_try="$ac_compile"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11814 $as_echo "$ac_try_echo") >&5
11815 (eval "$ac_compile") 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } && {
11822 test -z "$ac_c_werror_flag" ||
11823 test ! -s conftest.err
11824 } && test -s conftest.$ac_objext; then
11825 ac_cv_sys_file_offset_bits=64; break
11826 else
11827 $as_echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830
11831 fi
11832
11833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11834 ac_cv_sys_file_offset_bits=unknown
11835 break
11836 done
11837 fi
11838 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11839 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11840 case $ac_cv_sys_file_offset_bits in #(
11841 no | unknown) ;;
11842 *)
11843 cat >>confdefs.h <<_ACEOF
11844 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11845 _ACEOF
11846 ;;
11847 esac
11848 rm -rf conftest*
11849 if test $ac_cv_sys_file_offset_bits = unknown; then
11850 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
11851 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11852 if test "${ac_cv_sys_large_files+set}" = set; then
11853 $as_echo_n "(cached) " >&6
11854 else
11855 while :; do
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 #include <sys/types.h>
11863 /* Check that off_t can represent 2**63 - 1 correctly.
11864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11865 since some C++ compilers masquerading as C compilers
11866 incorrectly reject 9223372036854775807. */
11867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11869 && LARGE_OFF_T % 2147483647 == 1)
11870 ? 1 : -1];
11871 int
11872 main ()
11873 {
11874
11875 ;
11876 return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext
11880 if { (ac_try="$ac_compile"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884 esac
11885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11886 $as_echo "$ac_try_echo") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
11897 ac_cv_sys_large_files=no; break
11898 else
11899 $as_echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902
11903 fi
11904
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 #define _LARGE_FILES 1
11913 #include <sys/types.h>
11914 /* Check that off_t can represent 2**63 - 1 correctly.
11915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11916 since some C++ compilers masquerading as C compilers
11917 incorrectly reject 9223372036854775807. */
11918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11920 && LARGE_OFF_T % 2147483647 == 1)
11921 ? 1 : -1];
11922 int
11923 main ()
11924 {
11925
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext
11931 if { (ac_try="$ac_compile"
11932 case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935 esac
11936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11937 $as_echo "$ac_try_echo") >&5
11938 (eval "$ac_compile") 2>conftest.er1
11939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } && {
11945 test -z "$ac_c_werror_flag" ||
11946 test ! -s conftest.err
11947 } && test -s conftest.$ac_objext; then
11948 ac_cv_sys_large_files=1; break
11949 else
11950 $as_echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953
11954 fi
11955
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 ac_cv_sys_large_files=unknown
11958 break
11959 done
11960 fi
11961 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11962 $as_echo "$ac_cv_sys_large_files" >&6; }
11963 case $ac_cv_sys_large_files in #(
11964 no | unknown) ;;
11965 *)
11966 cat >>confdefs.h <<_ACEOF
11967 #define _LARGE_FILES $ac_cv_sys_large_files
11968 _ACEOF
11969 ;;
11970 esac
11971 rm -rf conftest*
11972 fi
11973 fi
11974
11975
11976
11977
11978 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11979 if test -n "$ac_tool_prefix"; then
11980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11981 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11985 $as_echo_n "(cached) " >&6
11986 else
11987 case $PKG_CONFIG in
11988 [\\/]* | ?:[\\/]*)
11989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11990 ;;
11991 *)
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995 IFS=$as_save_IFS
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001 break 2
12002 fi
12003 done
12004 done
12005 IFS=$as_save_IFS
12006
12007 ;;
12008 esac
12009 fi
12010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12011 if test -n "$PKG_CONFIG"; then
12012 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12013 $as_echo "$PKG_CONFIG" >&6; }
12014 else
12015 { $as_echo "$as_me:$LINENO: result: no" >&5
12016 $as_echo "no" >&6; }
12017 fi
12018
12019
12020 fi
12021 if test -z "$ac_cv_path_PKG_CONFIG"; then
12022 ac_pt_PKG_CONFIG=$PKG_CONFIG
12023 # Extract the first word of "pkg-config", so it can be a program name with args.
12024 set dummy pkg-config; ac_word=$2
12025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12026 $as_echo_n "checking for $ac_word... " >&6; }
12027 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12028 $as_echo_n "(cached) " >&6
12029 else
12030 case $ac_pt_PKG_CONFIG in
12031 [\\/]* | ?:[\\/]*)
12032 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12033 ;;
12034 *)
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12042 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12045 fi
12046 done
12047 done
12048 IFS=$as_save_IFS
12049
12050 ;;
12051 esac
12052 fi
12053 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12054 if test -n "$ac_pt_PKG_CONFIG"; then
12055 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12056 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12057 else
12058 { $as_echo "$as_me:$LINENO: result: no" >&5
12059 $as_echo "no" >&6; }
12060 fi
12061
12062 if test "x$ac_pt_PKG_CONFIG" = x; then
12063 PKG_CONFIG=""
12064 else
12065 case $cross_compiling:$ac_tool_warned in
12066 yes:)
12067 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12069 ac_tool_warned=yes ;;
12070 esac
12071 PKG_CONFIG=$ac_pt_PKG_CONFIG
12072 fi
12073 else
12074 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12075 fi
12076
12077 fi
12078 if test -n "$PKG_CONFIG"; then
12079 _pkg_min_version=0.9.0
12080 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12081 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12082 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12083 { $as_echo "$as_me:$LINENO: result: yes" >&5
12084 $as_echo "yes" >&6; }
12085 else
12086 { $as_echo "$as_me:$LINENO: result: no" >&5
12087 $as_echo "no" >&6; }
12088 PKG_CONFIG=""
12089 fi
12090
12091 fi
12092
12093 pkg_failed=no
12094 { $as_echo "$as_me:$LINENO: checking for LIBRAW1394" >&5
12095 $as_echo_n "checking for LIBRAW1394... " >&6; }
12096
12097 if test -n "$LIBRAW1394_CFLAGS"; then
12098 pkg_cv_LIBRAW1394_CFLAGS="$LIBRAW1394_CFLAGS"
12099 elif test -n "$PKG_CONFIG"; then
12100 if test -n "$PKG_CONFIG" && \
12101 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libraw1394 >= 1.2.1\"") >&5
12102 ($PKG_CONFIG --exists --print-errors "libraw1394 >= 1.2.1") 2>&5
12103 ac_status=$?
12104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; then
12106 pkg_cv_LIBRAW1394_CFLAGS=`$PKG_CONFIG --cflags "libraw1394 >= 1.2.1" 2>/dev/null`
12107 else
12108 pkg_failed=yes
12109 fi
12110 else
12111 pkg_failed=untried
12112 fi
12113 if test -n "$LIBRAW1394_LIBS"; then
12114 pkg_cv_LIBRAW1394_LIBS="$LIBRAW1394_LIBS"
12115 elif test -n "$PKG_CONFIG"; then
12116 if test -n "$PKG_CONFIG" && \
12117 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libraw1394 >= 1.2.1\"") >&5
12118 ($PKG_CONFIG --exists --print-errors "libraw1394 >= 1.2.1") 2>&5
12119 ac_status=$?
12120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; then
12122 pkg_cv_LIBRAW1394_LIBS=`$PKG_CONFIG --libs "libraw1394 >= 1.2.1" 2>/dev/null`
12123 else
12124 pkg_failed=yes
12125 fi
12126 else
12127 pkg_failed=untried
12128 fi
12129
12130
12131
12132 if test $pkg_failed = yes; then
12133
12134 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12135 _pkg_short_errors_supported=yes
12136 else
12137 _pkg_short_errors_supported=no
12138 fi
12139 if test $_pkg_short_errors_supported = yes; then
12140 LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libraw1394 >= 1.2.1" 2>&1`
12141 else
12142 LIBRAW1394_PKG_ERRORS=`$PKG_CONFIG --print-errors "libraw1394 >= 1.2.1" 2>&1`
12143 fi
12144 # Put the nasty error message in config.log where it belongs
12145 echo "$LIBRAW1394_PKG_ERRORS" >&5
12146
12147 { { $as_echo "$as_me:$LINENO: error: Package requirements (libraw1394 >= 1.2.1) were not met:
12148
12149 $LIBRAW1394_PKG_ERRORS
12150
12151 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12152 installed software in a non-standard prefix.
12153
12154 Alternatively, you may set the environment variables LIBRAW1394_CFLAGS
12155 and LIBRAW1394_LIBS to avoid the need to call pkg-config.
12156 See the pkg-config man page for more details.
12157 " >&5
12158 $as_echo "$as_me: error: Package requirements (libraw1394 >= 1.2.1) were not met:
12159
12160 $LIBRAW1394_PKG_ERRORS
12161
12162 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12163 installed software in a non-standard prefix.
12164
12165 Alternatively, you may set the environment variables LIBRAW1394_CFLAGS
12166 and LIBRAW1394_LIBS to avoid the need to call pkg-config.
12167 See the pkg-config man page for more details.
12168 " >&2;}
12169 { (exit 1); exit 1; }; }
12170 elif test $pkg_failed = untried; then
12171 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12173 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12174 is in your PATH or set the PKG_CONFIG environment variable to the full
12175 path to pkg-config.
12176
12177 Alternatively, you may set the environment variables LIBRAW1394_CFLAGS
12178 and LIBRAW1394_LIBS to avoid the need to call pkg-config.
12179 See the pkg-config man page for more details.
12180
12181 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12182 See \`config.log' for more details." >&5
12183 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12184 is in your PATH or set the PKG_CONFIG environment variable to the full
12185 path to pkg-config.
12186
12187 Alternatively, you may set the environment variables LIBRAW1394_CFLAGS
12188 and LIBRAW1394_LIBS to avoid the need to call pkg-config.
12189 See the pkg-config man page for more details.
12190
12191 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12192 See \`config.log' for more details." >&2;}
12193 { (exit 1); exit 1; }; }; }
12194 else
12195 LIBRAW1394_CFLAGS=$pkg_cv_LIBRAW1394_CFLAGS
12196 LIBRAW1394_LIBS=$pkg_cv_LIBRAW1394_LIBS
12197 { $as_echo "$as_me:$LINENO: result: yes" >&5
12198 $as_echo "yes" >&6; }
12199 :
12200 fi
12201
12202 # set the libtool so version numbers
12203 lt_current=1
12204 lt_revision=1
12205 lt_age=1
12206
12207
12208
12209
12210
12211 CFLAGS=${CFLAGS:-"-Wall"}
12212 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile libiec61883.pc libiec61883.spec"
12213
12214 cat >confcache <<\_ACEOF
12215 # This file is a shell script that caches the results of configure
12216 # tests run on this system so they can be shared between configure
12217 # scripts and configure runs, see configure's option --config-cache.
12218 # It is not useful on other systems. If it contains results you don't
12219 # want to keep, you may remove or edit it.
12220 #
12221 # config.status only pays attention to the cache file if you give it
12222 # the --recheck option to rerun configure.
12223 #
12224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12226 # following values.
12227
12228 _ACEOF
12229
12230 # The following way of writing the cache mishandles newlines in values,
12231 # but we know of no workaround that is simple, portable, and efficient.
12232 # So, we kill variables containing newlines.
12233 # Ultrix sh set writes to stderr and can't be redirected directly,
12234 # and sets the high bit in the cache file unless we assign to the vars.
12235 (
12236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12237 eval ac_val=\$$ac_var
12238 case $ac_val in #(
12239 *${as_nl}*)
12240 case $ac_var in #(
12241 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12243 esac
12244 case $ac_var in #(
12245 _ | IFS | as_nl) ;; #(
12246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12247 *) $as_unset $ac_var ;;
12248 esac ;;
12249 esac
12250 done
12251
12252 (set) 2>&1 |
12253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12254 *${as_nl}ac_space=\ *)
12255 # `set' does not quote correctly, so add quotes (double-quote
12256 # substitution turns \\\\ into \\, and sed turns \\ into \).
12257 sed -n \
12258 "s/'/'\\\\''/g;
12259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12260 ;; #(
12261 *)
12262 # `set' quotes correctly as required by POSIX, so do not add quotes.
12263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12264 ;;
12265 esac |
12266 sort
12267 ) |
12268 sed '
12269 /^ac_cv_env_/b end
12270 t clear
12271 :clear
12272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12273 t end
12274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12275 :end' >>confcache
12276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12277 if test -w "$cache_file"; then
12278 test "x$cache_file" != "x/dev/null" &&
12279 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12280 $as_echo "$as_me: updating cache $cache_file" >&6;}
12281 cat confcache >$cache_file
12282 else
12283 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12284 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12285 fi
12286 fi
12287 rm -f confcache
12288
12289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12290 # Let make expand exec_prefix.
12291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12292
12293 DEFS=-DHAVE_CONFIG_H
12294
12295 ac_libobjs=
12296 ac_ltlibobjs=
12297 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12298 # 1. Remove the extension, and $U if already installed.
12299 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12300 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12302 # will be set to the directory where LIBOBJS objects are built.
12303 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12304 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12305 done
12306 LIBOBJS=$ac_libobjs
12307
12308 LTLIBOBJS=$ac_ltlibobjs
12309
12310
12311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12312 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12313 Usually this means the macro was only invoked conditionally." >&5
12314 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12315 Usually this means the macro was only invoked conditionally." >&2;}
12316 { (exit 1); exit 1; }; }
12317 fi
12318 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12319 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12320 Usually this means the macro was only invoked conditionally." >&5
12321 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12322 Usually this means the macro was only invoked conditionally." >&2;}
12323 { (exit 1); exit 1; }; }
12324 fi
12325
12326
12327 : ${CONFIG_STATUS=./config.status}
12328 ac_write_fail=0
12329 ac_clean_files_save=$ac_clean_files
12330 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12331 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12332 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12333 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12334 #! $SHELL
12335 # Generated by $as_me.
12336 # Run this file to recreate the current configuration.
12337 # Compiler output produced by configure, useful for debugging
12338 # configure, is in config.log if it exists.
12339
12340 debug=false
12341 ac_cs_recheck=false
12342 ac_cs_silent=false
12343 SHELL=\${CONFIG_SHELL-$SHELL}
12344 _ACEOF
12345
12346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12347 ## --------------------- ##
12348 ## M4sh Initialization. ##
12349 ## --------------------- ##
12350
12351 # Be more Bourne compatible
12352 DUALCASE=1; export DUALCASE # for MKS sh
12353 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12354 emulate sh
12355 NULLCMD=:
12356 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12357 # is contrary to our usage. Disable this feature.
12358 alias -g '${1+"$@"}'='"$@"'
12359 setopt NO_GLOB_SUBST
12360 else
12361 case `(set -o) 2>/dev/null` in
12362 *posix*) set -o posix ;;
12363 esac
12364
12365 fi
12366
12367
12368
12369
12370 # PATH needs CR
12371 # Avoid depending upon Character Ranges.
12372 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12373 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12374 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12375 as_cr_digits='0123456789'
12376 as_cr_alnum=$as_cr_Letters$as_cr_digits
12377
12378 as_nl='
12379 '
12380 export as_nl
12381 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12382 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12383 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12385 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12386 as_echo='printf %s\n'
12387 as_echo_n='printf %s'
12388 else
12389 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12390 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12391 as_echo_n='/usr/ucb/echo -n'
12392 else
12393 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12394 as_echo_n_body='eval
12395 arg=$1;
12396 case $arg in
12397 *"$as_nl"*)
12398 expr "X$arg" : "X\\(.*\\)$as_nl";
12399 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12400 esac;
12401 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12402 '
12403 export as_echo_n_body
12404 as_echo_n='sh -c $as_echo_n_body as_echo'
12405 fi
12406 export as_echo_body
12407 as_echo='sh -c $as_echo_body as_echo'
12408 fi
12409
12410 # The user is always right.
12411 if test "${PATH_SEPARATOR+set}" != set; then
12412 PATH_SEPARATOR=:
12413 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12414 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12415 PATH_SEPARATOR=';'
12416 }
12417 fi
12418
12419 # Support unset when possible.
12420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12421 as_unset=unset
12422 else
12423 as_unset=false
12424 fi
12425
12426
12427 # IFS
12428 # We need space, tab and new line, in precisely that order. Quoting is
12429 # there to prevent editors from complaining about space-tab.
12430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12431 # splitting by setting IFS to empty value.)
12432 IFS=" "" $as_nl"
12433
12434 # Find who we are. Look in the path if we contain no directory separator.
12435 case $0 in
12436 *[\\/]* ) as_myself=$0 ;;
12437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12439 do
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
12442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12443 done
12444 IFS=$as_save_IFS
12445
12446 ;;
12447 esac
12448 # We did not find ourselves, most probably we were run as `sh COMMAND'
12449 # in which case we are not to be found in the path.
12450 if test "x$as_myself" = x; then
12451 as_myself=$0
12452 fi
12453 if test ! -f "$as_myself"; then
12454 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12455 { (exit 1); exit 1; }
12456 fi
12457
12458 # Work around bugs in pre-3.0 UWIN ksh.
12459 for as_var in ENV MAIL MAILPATH
12460 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12461 done
12462 PS1='$ '
12463 PS2='> '
12464 PS4='+ '
12465
12466 # NLS nuisances.
12467 LC_ALL=C
12468 export LC_ALL
12469 LANGUAGE=C
12470 export LANGUAGE
12471
12472 # Required to use basename.
12473 if expr a : '\(a\)' >/dev/null 2>&1 &&
12474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12475 as_expr=expr
12476 else
12477 as_expr=false
12478 fi
12479
12480 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12481 as_basename=basename
12482 else
12483 as_basename=false
12484 fi
12485
12486
12487 # Name of the executable.
12488 as_me=`$as_basename -- "$0" ||
12489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12490 X"$0" : 'X\(//\)$' \| \
12491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12492 $as_echo X/"$0" |
12493 sed '/^.*\/\([^/][^/]*\)\/*$/{
12494 s//\1/
12495 q
12496 }
12497 /^X\/\(\/\/\)$/{
12498 s//\1/
12499 q
12500 }
12501 /^X\/\(\/\).*/{
12502 s//\1/
12503 q
12504 }
12505 s/.*/./; q'`
12506
12507 # CDPATH.
12508 $as_unset CDPATH
12509
12510
12511
12512 as_lineno_1=$LINENO
12513 as_lineno_2=$LINENO
12514 test "x$as_lineno_1" != "x$as_lineno_2" &&
12515 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12516
12517 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12518 # uniformly replaced by the line number. The first 'sed' inserts a
12519 # line-number line after each line using $LINENO; the second 'sed'
12520 # does the real work. The second script uses 'N' to pair each
12521 # line-number line with the line containing $LINENO, and appends
12522 # trailing '-' during substitution so that $LINENO is not a special
12523 # case at line end.
12524 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12525 # scripts with optimization help from Paolo Bonzini. Blame Lee
12526 # E. McMahon (1931-1989) for sed's syntax. :-)
12527 sed -n '
12528 p
12529 /[$]LINENO/=
12530 ' <$as_myself |
12531 sed '
12532 s/[$]LINENO.*/&-/
12533 t lineno
12534 b
12535 :lineno
12536 N
12537 :loop
12538 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12539 t loop
12540 s/-\n.*//
12541 ' >$as_me.lineno &&
12542 chmod +x "$as_me.lineno" ||
12543 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12544 { (exit 1); exit 1; }; }
12545
12546 # Don't try to exec as it changes $[0], causing all sort of problems
12547 # (the dirname of $[0] is not the place where we might find the
12548 # original and so on. Autoconf is especially sensitive to this).
12549 . "./$as_me.lineno"
12550 # Exit status is that of the last command.
12551 exit
12552 }
12553
12554
12555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12556 as_dirname=dirname
12557 else
12558 as_dirname=false
12559 fi
12560
12561 ECHO_C= ECHO_N= ECHO_T=
12562 case `echo -n x` in
12563 -n*)
12564 case `echo 'x\c'` in
12565 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12566 *) ECHO_C='\c';;
12567 esac;;
12568 *)
12569 ECHO_N='-n';;
12570 esac
12571 if expr a : '\(a\)' >/dev/null 2>&1 &&
12572 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12573 as_expr=expr
12574 else
12575 as_expr=false
12576 fi
12577
12578 rm -f conf$$ conf$$.exe conf$$.file
12579 if test -d conf$$.dir; then
12580 rm -f conf$$.dir/conf$$.file
12581 else
12582 rm -f conf$$.dir
12583 mkdir conf$$.dir 2>/dev/null
12584 fi
12585 if (echo >conf$$.file) 2>/dev/null; then
12586 if ln -s conf$$.file conf$$ 2>/dev/null; then
12587 as_ln_s='ln -s'
12588 # ... but there are two gotchas:
12589 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12590 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12591 # In both cases, we have to default to `cp -p'.
12592 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12593 as_ln_s='cp -p'
12594 elif ln conf$$.file conf$$ 2>/dev/null; then
12595 as_ln_s=ln
12596 else
12597 as_ln_s='cp -p'
12598 fi
12599 else
12600 as_ln_s='cp -p'
12601 fi
12602 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12603 rmdir conf$$.dir 2>/dev/null
12604
12605 if mkdir -p . 2>/dev/null; then
12606 as_mkdir_p=:
12607 else
12608 test -d ./-p && rmdir ./-p
12609 as_mkdir_p=false
12610 fi
12611
12612 if test -x / >/dev/null 2>&1; then
12613 as_test_x='test -x'
12614 else
12615 if ls -dL / >/dev/null 2>&1; then
12616 as_ls_L_option=L
12617 else
12618 as_ls_L_option=
12619 fi
12620 as_test_x='
12621 eval sh -c '\''
12622 if test -d "$1"; then
12623 test -d "$1/.";
12624 else
12625 case $1 in
12626 -*)set "./$1";;
12627 esac;
12628 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12629 ???[sx]*):;;*)false;;esac;fi
12630 '\'' sh
12631 '
12632 fi
12633 as_executable_p=$as_test_x
12634
12635 # Sed expression to map a string onto a valid CPP name.
12636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12637
12638 # Sed expression to map a string onto a valid variable name.
12639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12640
12641
12642 exec 6>&1
12643
12644 # Save the log message, to keep $[0] and so on meaningful, and to
12645 # report actual input values of CONFIG_FILES etc. instead of their
12646 # values after options handling.
12647 ac_log="
12648 This file was extended by $as_me, which was
12649 generated by GNU Autoconf 2.63. Invocation command line was
12650
12651 CONFIG_FILES = $CONFIG_FILES
12652 CONFIG_HEADERS = $CONFIG_HEADERS
12653 CONFIG_LINKS = $CONFIG_LINKS
12654 CONFIG_COMMANDS = $CONFIG_COMMANDS
12655 $ $0 $@
12656
12657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12658 "
12659
12660 _ACEOF
12661
12662 case $ac_config_files in *"
12663 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12664 esac
12665
12666 case $ac_config_headers in *"
12667 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12668 esac
12669
12670
12671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12672 # Files that config.status was made for.
12673 config_files="$ac_config_files"
12674 config_headers="$ac_config_headers"
12675 config_commands="$ac_config_commands"
12676
12677 _ACEOF
12678
12679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12680 ac_cs_usage="\
12681 \`$as_me' instantiates files from templates according to the
12682 current configuration.
12683
12684 Usage: $0 [OPTION]... [FILE]...
12685
12686 -h, --help print this help, then exit
12687 -V, --version print version number and configuration settings, then exit
12688 -q, --quiet, --silent
12689 do not print progress messages
12690 -d, --debug don't remove temporary files
12691 --recheck update $as_me by reconfiguring in the same conditions
12692 --file=FILE[:TEMPLATE]
12693 instantiate the configuration file FILE
12694 --header=FILE[:TEMPLATE]
12695 instantiate the configuration header FILE
12696
12697 Configuration files:
12698 $config_files
12699
12700 Configuration headers:
12701 $config_headers
12702
12703 Configuration commands:
12704 $config_commands
12705
12706 Report bugs to <[email protected]>."
12707
12708 _ACEOF
12709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12710 ac_cs_version="\\
12711 config.status
12712 configured by $0, generated by GNU Autoconf 2.63,
12713 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12714
12715 Copyright (C) 2008 Free Software Foundation, Inc.
12716 This config.status script is free software; the Free Software Foundation
12717 gives unlimited permission to copy, distribute and modify it."
12718
12719 ac_pwd='$ac_pwd'
12720 srcdir='$srcdir'
12721 INSTALL='$INSTALL'
12722 MKDIR_P='$MKDIR_P'
12723 AWK='$AWK'
12724 test -n "\$AWK" || AWK=awk
12725 _ACEOF
12726
12727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12728 # The default lists apply if the user does not specify any file.
12729 ac_need_defaults=:
12730 while test $# != 0
12731 do
12732 case $1 in
12733 --*=*)
12734 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12735 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12736 ac_shift=:
12737 ;;
12738 *)
12739 ac_option=$1
12740 ac_optarg=$2
12741 ac_shift=shift
12742 ;;
12743 esac
12744
12745 case $ac_option in
12746 # Handling of the options.
12747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12748 ac_cs_recheck=: ;;
12749 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12750 $as_echo "$ac_cs_version"; exit ;;
12751 --debug | --debu | --deb | --de | --d | -d )
12752 debug=: ;;
12753 --file | --fil | --fi | --f )
12754 $ac_shift
12755 case $ac_optarg in
12756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12757 esac
12758 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12759 ac_need_defaults=false;;
12760 --header | --heade | --head | --hea )
12761 $ac_shift
12762 case $ac_optarg in
12763 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12764 esac
12765 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12766 ac_need_defaults=false;;
12767 --he | --h)
12768 # Conflict between --help and --header
12769 { $as_echo "$as_me: error: ambiguous option: $1
12770 Try \`$0 --help' for more information." >&2
12771 { (exit 1); exit 1; }; };;
12772 --help | --hel | -h )
12773 $as_echo "$ac_cs_usage"; exit ;;
12774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12775 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12776 ac_cs_silent=: ;;
12777
12778 # This is an error.
12779 -*) { $as_echo "$as_me: error: unrecognized option: $1
12780 Try \`$0 --help' for more information." >&2
12781 { (exit 1); exit 1; }; } ;;
12782
12783 *) ac_config_targets="$ac_config_targets $1"
12784 ac_need_defaults=false ;;
12785
12786 esac
12787 shift
12788 done
12789
12790 ac_configure_extra_args=
12791
12792 if $ac_cs_silent; then
12793 exec 6>/dev/null
12794 ac_configure_extra_args="$ac_configure_extra_args --silent"
12795 fi
12796
12797 _ACEOF
12798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12799 if \$ac_cs_recheck; then
12800 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12801 shift
12802 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12803 CONFIG_SHELL='$SHELL'
12804 export CONFIG_SHELL
12805 exec "\$@"
12806 fi
12807
12808 _ACEOF
12809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12810 exec 5>>config.log
12811 {
12812 echo
12813 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12814 ## Running $as_me. ##
12815 _ASBOX
12816 $as_echo "$ac_log"
12817 } >&5
12818
12819 _ACEOF
12820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12821 #
12822 # INIT-COMMANDS
12823 #
12824 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12825
12826
12827 # The HP-UX ksh and POSIX shell print the target directory to stdout
12828 # if CDPATH is set.
12829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12830
12831 sed_quote_subst='$sed_quote_subst'
12832 double_quote_subst='$double_quote_subst'
12833 delay_variable_subst='$delay_variable_subst'
12834 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12835 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12836 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12837 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12838 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12839 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12840 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12841 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12842 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12843 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12844 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12845 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12846 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12847 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12848 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12849 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12850 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12851 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12852 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12853 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12854 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12855 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12856 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12857 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12858 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12859 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12860 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12861 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12862 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12863 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12864 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12865 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12866 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12867 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12868 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12869 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12870 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12871 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12872 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12873 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12874 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12875 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12876 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12877 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12878 lt_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"`'
12879 lt_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"`'
12880 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12881 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12882 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12883 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12884 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12885 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12886 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12887 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12888 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12889 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12890 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12891 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12892 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12893 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12894 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12895 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12896 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12897 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12898 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12899 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12900 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12901 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12902 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12903 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12904 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12905 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12906 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12907 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12908 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12909 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12910 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12911 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12912 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12913 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12914 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12915 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12916 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12917 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12918 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12919 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12920 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12921 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12922 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12923 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12924 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12925 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12926 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12927 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12928 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12929 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12930 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12931 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12932 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12933 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12934 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12935 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12936 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12937 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12938 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12939 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12940 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12941 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12942 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12943 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12944 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12945 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12946 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12947 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12948 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12949 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12950 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12951 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12952
12953 LTCC='$LTCC'
12954 LTCFLAGS='$LTCFLAGS'
12955 compiler='$compiler_DEFAULT'
12956
12957 # Quote evaled strings.
12958 for var in SED \
12959 GREP \
12960 EGREP \
12961 FGREP \
12962 LD \
12963 NM \
12964 LN_S \
12965 lt_SP2NL \
12966 lt_NL2SP \
12967 reload_flag \
12968 OBJDUMP \
12969 deplibs_check_method \
12970 file_magic_cmd \
12971 AR \
12972 AR_FLAGS \
12973 STRIP \
12974 RANLIB \
12975 CC \
12976 CFLAGS \
12977 compiler \
12978 lt_cv_sys_global_symbol_pipe \
12979 lt_cv_sys_global_symbol_to_cdecl \
12980 lt_cv_sys_global_symbol_to_c_name_address \
12981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12982 SHELL \
12983 ECHO \
12984 lt_prog_compiler_no_builtin_flag \
12985 lt_prog_compiler_wl \
12986 lt_prog_compiler_pic \
12987 lt_prog_compiler_static \
12988 lt_cv_prog_compiler_c_o \
12989 need_locks \
12990 DSYMUTIL \
12991 NMEDIT \
12992 LIPO \
12993 OTOOL \
12994 OTOOL64 \
12995 shrext_cmds \
12996 export_dynamic_flag_spec \
12997 whole_archive_flag_spec \
12998 compiler_needs_object \
12999 with_gnu_ld \
13000 allow_undefined_flag \
13001 no_undefined_flag \
13002 hardcode_libdir_flag_spec \
13003 hardcode_libdir_flag_spec_ld \
13004 hardcode_libdir_separator \
13005 fix_srcfile_path \
13006 exclude_expsyms \
13007 include_expsyms \
13008 file_list_spec \
13009 variables_saved_for_relink \
13010 libname_spec \
13011 library_names_spec \
13012 soname_spec \
13013 finish_eval \
13014 old_striplib \
13015 striplib; do
13016 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13017 *[\\\\\\\`\\"\\\$]*)
13018 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13019 ;;
13020 *)
13021 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13022 ;;
13023 esac
13024 done
13025
13026 # Double-quote double-evaled strings.
13027 for var in reload_cmds \
13028 old_postinstall_cmds \
13029 old_postuninstall_cmds \
13030 old_archive_cmds \
13031 extract_expsyms_cmds \
13032 old_archive_from_new_cmds \
13033 old_archive_from_expsyms_cmds \
13034 archive_cmds \
13035 archive_expsym_cmds \
13036 module_cmds \
13037 module_expsym_cmds \
13038 export_symbols_cmds \
13039 prelink_cmds \
13040 postinstall_cmds \
13041 postuninstall_cmds \
13042 finish_cmds \
13043 sys_lib_search_path_spec \
13044 sys_lib_dlsearch_path_spec; do
13045 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13046 *[\\\\\\\`\\"\\\$]*)
13047 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13048 ;;
13049 *)
13050 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13051 ;;
13052 esac
13053 done
13054
13055 # Fix-up fallback echo if it was mangled by the above quoting rules.
13056 case \$lt_ECHO in
13057 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13058 ;;
13059 esac
13060
13061 ac_aux_dir='$ac_aux_dir'
13062 xsi_shell='$xsi_shell'
13063 lt_shell_append='$lt_shell_append'
13064
13065 # See if we are running on zsh, and set the options which allow our
13066 # commands through without removal of \ escapes INIT.
13067 if test -n "\${ZSH_VERSION+set}" ; then
13068 setopt NO_GLOB_SUBST
13069 fi
13070
13071
13072 PACKAGE='$PACKAGE'
13073 VERSION='$VERSION'
13074 TIMESTAMP='$TIMESTAMP'
13075 RM='$RM'
13076 ofile='$ofile'
13077
13078
13079
13080
13081 _ACEOF
13082
13083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13084
13085 # Handling of arguments.
13086 for ac_config_target in $ac_config_targets
13087 do
13088 case $ac_config_target in
13089 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13090 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13091 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13093 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13094 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13095 "libiec61883.pc") CONFIG_FILES="$CONFIG_FILES libiec61883.pc" ;;
13096 "libiec61883.spec") CONFIG_FILES="$CONFIG_FILES libiec61883.spec" ;;
13097
13098 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13099 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13100 { (exit 1); exit 1; }; };;
13101 esac
13102 done
13103
13104
13105 # If the user did not use the arguments to specify the items to instantiate,
13106 # then the envvar interface is used. Set only those that are not.
13107 # We use the long form for the default assignment because of an extremely
13108 # bizarre bug on SunOS 4.1.3.
13109 if $ac_need_defaults; then
13110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13113 fi
13114
13115 # Have a temporary directory for convenience. Make it in the build tree
13116 # simply because there is no reason against having it here, and in addition,
13117 # creating and moving files from /tmp can sometimes cause problems.
13118 # Hook for its removal unless debugging.
13119 # Note that there is a small window in which the directory will not be cleaned:
13120 # after its creation but before its name has been assigned to `$tmp'.
13121 $debug ||
13122 {
13123 tmp=
13124 trap 'exit_status=$?
13125 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13126 ' 0
13127 trap '{ (exit 1); exit 1; }' 1 2 13 15
13128 }
13129 # Create a (secure) tmp directory for tmp files.
13130
13131 {
13132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13133 test -n "$tmp" && test -d "$tmp"
13134 } ||
13135 {
13136 tmp=./conf$$-$RANDOM
13137 (umask 077 && mkdir "$tmp")
13138 } ||
13139 {
13140 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13141 { (exit 1); exit 1; }
13142 }
13143
13144 # Set up the scripts for CONFIG_FILES section.
13145 # No need to generate them if there are no CONFIG_FILES.
13146 # This happens for instance with `./config.status config.h'.
13147 if test -n "$CONFIG_FILES"; then
13148
13149
13150 ac_cr=' '
13151 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13153 ac_cs_awk_cr='\\r'
13154 else
13155 ac_cs_awk_cr=$ac_cr
13156 fi
13157
13158 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13159 _ACEOF
13160
13161
13162 {
13163 echo "cat >conf$$subs.awk <<_ACEOF" &&
13164 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13165 echo "_ACEOF"
13166 } >conf$$subs.sh ||
13167 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13168 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13169 { (exit 1); exit 1; }; }
13170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13171 ac_delim='%!_!# '
13172 for ac_last_try in false false false false false :; do
13173 . ./conf$$subs.sh ||
13174 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13175 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13176 { (exit 1); exit 1; }; }
13177
13178 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13179 if test $ac_delim_n = $ac_delim_num; then
13180 break
13181 elif $ac_last_try; then
13182 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13183 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13184 { (exit 1); exit 1; }; }
13185 else
13186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13187 fi
13188 done
13189 rm -f conf$$subs.sh
13190
13191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13192 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13193 _ACEOF
13194 sed -n '
13195 h
13196 s/^/S["/; s/!.*/"]=/
13197 p
13198 g
13199 s/^[^!]*!//
13200 :repl
13201 t repl
13202 s/'"$ac_delim"'$//
13203 t delim
13204 :nl
13205 h
13206 s/\(.\{148\}\).*/\1/
13207 t more1
13208 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13209 p
13210 n
13211 b repl
13212 :more1
13213 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13214 p
13215 g
13216 s/.\{148\}//
13217 t nl
13218 :delim
13219 h
13220 s/\(.\{148\}\).*/\1/
13221 t more2
13222 s/["\\]/\\&/g; s/^/"/; s/$/"/
13223 p
13224 b
13225 :more2
13226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13227 p
13228 g
13229 s/.\{148\}//
13230 t delim
13231 ' <conf$$subs.awk | sed '
13232 /^[^""]/{
13233 N
13234 s/\n//
13235 }
13236 ' >>$CONFIG_STATUS || ac_write_fail=1
13237 rm -f conf$$subs.awk
13238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13239 _ACAWK
13240 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13241 for (key in S) S_is_set[key] = 1
13242 FS = ""
13243
13244 }
13245 {
13246 line = $ 0
13247 nfields = split(line, field, "@")
13248 substed = 0
13249 len = length(field[1])
13250 for (i = 2; i < nfields; i++) {
13251 key = field[i]
13252 keylen = length(key)
13253 if (S_is_set[key]) {
13254 value = S[key]
13255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13256 len += length(value) + length(field[++i])
13257 substed = 1
13258 } else
13259 len += 1 + keylen
13260 }
13261
13262 print line
13263 }
13264
13265 _ACAWK
13266 _ACEOF
13267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13268 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13269 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13270 else
13271 cat
13272 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13273 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13274 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13275 { (exit 1); exit 1; }; }
13276 _ACEOF
13277
13278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13280 # trailing colons and then remove the whole line if VPATH becomes empty
13281 # (actually we leave an empty line to preserve line numbers).
13282 if test "x$srcdir" = x.; then
13283 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13284 s/:*\$(srcdir):*/:/
13285 s/:*\${srcdir}:*/:/
13286 s/:*@srcdir@:*/:/
13287 s/^\([^=]*=[ ]*\):*/\1/
13288 s/:*$//
13289 s/^[^=]*=[ ]*$//
13290 }'
13291 fi
13292
13293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13294 fi # test -n "$CONFIG_FILES"
13295
13296 # Set up the scripts for CONFIG_HEADERS section.
13297 # No need to generate them if there are no CONFIG_HEADERS.
13298 # This happens for instance with `./config.status Makefile'.
13299 if test -n "$CONFIG_HEADERS"; then
13300 cat >"$tmp/defines.awk" <<\_ACAWK ||
13301 BEGIN {
13302 _ACEOF
13303
13304 # Transform confdefs.h into an awk script `defines.awk', embedded as
13305 # here-document in config.status, that substitutes the proper values into
13306 # config.h.in to produce config.h.
13307
13308 # Create a delimiter string that does not exist in confdefs.h, to ease
13309 # handling of long lines.
13310 ac_delim='%!_!# '
13311 for ac_last_try in false false :; do
13312 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13313 if test -z "$ac_t"; then
13314 break
13315 elif $ac_last_try; then
13316 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13317 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13318 { (exit 1); exit 1; }; }
13319 else
13320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13321 fi
13322 done
13323
13324 # For the awk script, D is an array of macro values keyed by name,
13325 # likewise P contains macro parameters if any. Preserve backslash
13326 # newline sequences.
13327
13328 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13329 sed -n '
13330 s/.\{148\}/&'"$ac_delim"'/g
13331 t rset
13332 :rset
13333 s/^[ ]*#[ ]*define[ ][ ]*/ /
13334 t def
13335 d
13336 :def
13337 s/\\$//
13338 t bsnl
13339 s/["\\]/\\&/g
13340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13341 D["\1"]=" \3"/p
13342 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13343 d
13344 :bsnl
13345 s/["\\]/\\&/g
13346 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13347 D["\1"]=" \3\\\\\\n"\\/p
13348 t cont
13349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13350 t cont
13351 d
13352 :cont
13353 n
13354 s/.\{148\}/&'"$ac_delim"'/g
13355 t clear
13356 :clear
13357 s/\\$//
13358 t bsnlc
13359 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13360 d
13361 :bsnlc
13362 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13363 b cont
13364 ' <confdefs.h | sed '
13365 s/'"$ac_delim"'/"\\\
13366 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13367
13368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13369 for (key in D) D_is_set[key] = 1
13370 FS = ""
13371 }
13372 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13373 line = \$ 0
13374 split(line, arg, " ")
13375 if (arg[1] == "#") {
13376 defundef = arg[2]
13377 mac1 = arg[3]
13378 } else {
13379 defundef = substr(arg[1], 2)
13380 mac1 = arg[2]
13381 }
13382 split(mac1, mac2, "(") #)
13383 macro = mac2[1]
13384 prefix = substr(line, 1, index(line, defundef) - 1)
13385 if (D_is_set[macro]) {
13386 # Preserve the white space surrounding the "#".
13387 print prefix "define", macro P[macro] D[macro]
13388 next
13389 } else {
13390 # Replace #undef with comments. This is necessary, for example,
13391 # in the case of _POSIX_SOURCE, which is predefined and required
13392 # on some systems where configure will not decide to define it.
13393 if (defundef == "undef") {
13394 print "/*", prefix defundef, macro, "*/"
13395 next
13396 }
13397 }
13398 }
13399 { print }
13400 _ACAWK
13401 _ACEOF
13402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13403 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13404 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13405 { (exit 1); exit 1; }; }
13406 fi # test -n "$CONFIG_HEADERS"
13407
13408
13409 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13410 shift
13411 for ac_tag
13412 do
13413 case $ac_tag in
13414 :[FHLC]) ac_mode=$ac_tag; continue;;
13415 esac
13416 case $ac_mode$ac_tag in
13417 :[FHL]*:*);;
13418 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13419 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13420 { (exit 1); exit 1; }; };;
13421 :[FH]-) ac_tag=-:-;;
13422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13423 esac
13424 ac_save_IFS=$IFS
13425 IFS=:
13426 set x $ac_tag
13427 IFS=$ac_save_IFS
13428 shift
13429 ac_file=$1
13430 shift
13431
13432 case $ac_mode in
13433 :L) ac_source=$1;;
13434 :[FH])
13435 ac_file_inputs=
13436 for ac_f
13437 do
13438 case $ac_f in
13439 -) ac_f="$tmp/stdin";;
13440 *) # Look for the file first in the build tree, then in the source tree
13441 # (if the path is not absolute). The absolute path cannot be DOS-style,
13442 # because $ac_f cannot contain `:'.
13443 test -f "$ac_f" ||
13444 case $ac_f in
13445 [\\/$]*) false;;
13446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13447 esac ||
13448 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13449 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13450 { (exit 1); exit 1; }; };;
13451 esac
13452 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13453 ac_file_inputs="$ac_file_inputs '$ac_f'"
13454 done
13455
13456 # Let's still pretend it is `configure' which instantiates (i.e., don't
13457 # use $as_me), people would be surprised to read:
13458 # /* config.h. Generated by config.status. */
13459 configure_input='Generated from '`
13460 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13461 `' by configure.'
13462 if test x"$ac_file" != x-; then
13463 configure_input="$ac_file. $configure_input"
13464 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13465 $as_echo "$as_me: creating $ac_file" >&6;}
13466 fi
13467 # Neutralize special characters interpreted by sed in replacement strings.
13468 case $configure_input in #(
13469 *\&* | *\|* | *\\* )
13470 ac_sed_conf_input=`$as_echo "$configure_input" |
13471 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13472 *) ac_sed_conf_input=$configure_input;;
13473 esac
13474
13475 case $ac_tag in
13476 *:-:* | *:-) cat >"$tmp/stdin" \
13477 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13478 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13479 { (exit 1); exit 1; }; } ;;
13480 esac
13481 ;;
13482 esac
13483
13484 ac_dir=`$as_dirname -- "$ac_file" ||
13485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13486 X"$ac_file" : 'X\(//\)[^/]' \| \
13487 X"$ac_file" : 'X\(//\)$' \| \
13488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13489 $as_echo X"$ac_file" |
13490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13491 s//\1/
13492 q
13493 }
13494 /^X\(\/\/\)[^/].*/{
13495 s//\1/
13496 q
13497 }
13498 /^X\(\/\/\)$/{
13499 s//\1/
13500 q
13501 }
13502 /^X\(\/\).*/{
13503 s//\1/
13504 q
13505 }
13506 s/.*/./; q'`
13507 { as_dir="$ac_dir"
13508 case $as_dir in #(
13509 -*) as_dir=./$as_dir;;
13510 esac
13511 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13512 as_dirs=
13513 while :; do
13514 case $as_dir in #(
13515 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13516 *) as_qdir=$as_dir;;
13517 esac
13518 as_dirs="'$as_qdir' $as_dirs"
13519 as_dir=`$as_dirname -- "$as_dir" ||
13520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13521 X"$as_dir" : 'X\(//\)[^/]' \| \
13522 X"$as_dir" : 'X\(//\)$' \| \
13523 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13524 $as_echo X"$as_dir" |
13525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13526 s//\1/
13527 q
13528 }
13529 /^X\(\/\/\)[^/].*/{
13530 s//\1/
13531 q
13532 }
13533 /^X\(\/\/\)$/{
13534 s//\1/
13535 q
13536 }
13537 /^X\(\/\).*/{
13538 s//\1/
13539 q
13540 }
13541 s/.*/./; q'`
13542 test -d "$as_dir" && break
13543 done
13544 test -z "$as_dirs" || eval "mkdir $as_dirs"
13545 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13546 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13547 { (exit 1); exit 1; }; }; }
13548 ac_builddir=.
13549
13550 case "$ac_dir" in
13551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13552 *)
13553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13554 # A ".." for each directory in $ac_dir_suffix.
13555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13556 case $ac_top_builddir_sub in
13557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13559 esac ;;
13560 esac
13561 ac_abs_top_builddir=$ac_pwd
13562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13563 # for backward compatibility:
13564 ac_top_builddir=$ac_top_build_prefix
13565
13566 case $srcdir in
13567 .) # We are building in place.
13568 ac_srcdir=.
13569 ac_top_srcdir=$ac_top_builddir_sub
13570 ac_abs_top_srcdir=$ac_pwd ;;
13571 [\\/]* | ?:[\\/]* ) # Absolute name.
13572 ac_srcdir=$srcdir$ac_dir_suffix;
13573 ac_top_srcdir=$srcdir
13574 ac_abs_top_srcdir=$srcdir ;;
13575 *) # Relative name.
13576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13577 ac_top_srcdir=$ac_top_build_prefix$srcdir
13578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13579 esac
13580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13581
13582
13583 case $ac_mode in
13584 :F)
13585 #
13586 # CONFIG_FILE
13587 #
13588
13589 case $INSTALL in
13590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13592 esac
13593 ac_MKDIR_P=$MKDIR_P
13594 case $MKDIR_P in
13595 [\\/$]* | ?:[\\/]* ) ;;
13596 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13597 esac
13598 _ACEOF
13599
13600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601 # If the template does not know about datarootdir, expand it.
13602 # FIXME: This hack should be removed a few years after 2.60.
13603 ac_datarootdir_hack=; ac_datarootdir_seen=
13604
13605 ac_sed_dataroot='
13606 /datarootdir/ {
13607 p
13608 q
13609 }
13610 /@datadir@/p
13611 /@docdir@/p
13612 /@infodir@/p
13613 /@localedir@/p
13614 /@mandir@/p
13615 '
13616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13617 *datarootdir*) ac_datarootdir_seen=yes;;
13618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13619 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13621 _ACEOF
13622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623 ac_datarootdir_hack='
13624 s&@datadir@&$datadir&g
13625 s&@docdir@&$docdir&g
13626 s&@infodir@&$infodir&g
13627 s&@localedir@&$localedir&g
13628 s&@mandir@&$mandir&g
13629 s&\\\${datarootdir}&$datarootdir&g' ;;
13630 esac
13631 _ACEOF
13632
13633 # Neutralize VPATH when `$srcdir' = `.'.
13634 # Shell code in configure.ac might set extrasub.
13635 # FIXME: do we really want to maintain this feature?
13636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13637 ac_sed_extra="$ac_vpsub
13638 $extrasub
13639 _ACEOF
13640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13641 :t
13642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13643 s|@configure_input@|$ac_sed_conf_input|;t t
13644 s&@top_builddir@&$ac_top_builddir_sub&;t t
13645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13646 s&@srcdir@&$ac_srcdir&;t t
13647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13648 s&@top_srcdir@&$ac_top_srcdir&;t t
13649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13650 s&@builddir@&$ac_builddir&;t t
13651 s&@abs_builddir@&$ac_abs_builddir&;t t
13652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13653 s&@INSTALL@&$ac_INSTALL&;t t
13654 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13655 $ac_datarootdir_hack
13656 "
13657 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13658 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13659 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13660 { (exit 1); exit 1; }; }
13661
13662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13665 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13666 which seems to be undefined. Please make sure it is defined." >&5
13667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13668 which seems to be undefined. Please make sure it is defined." >&2;}
13669
13670 rm -f "$tmp/stdin"
13671 case $ac_file in
13672 -) cat "$tmp/out" && rm -f "$tmp/out";;
13673 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13674 esac \
13675 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13676 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13677 { (exit 1); exit 1; }; }
13678 ;;
13679 :H)
13680 #
13681 # CONFIG_HEADER
13682 #
13683 if test x"$ac_file" != x-; then
13684 {
13685 $as_echo "/* $configure_input */" \
13686 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13687 } >"$tmp/config.h" \
13688 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13689 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13690 { (exit 1); exit 1; }; }
13691 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13692 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13693 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13694 else
13695 rm -f "$ac_file"
13696 mv "$tmp/config.h" "$ac_file" \
13697 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13698 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13699 { (exit 1); exit 1; }; }
13700 fi
13701 else
13702 $as_echo "/* $configure_input */" \
13703 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13704 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13705 $as_echo "$as_me: error: could not create -" >&2;}
13706 { (exit 1); exit 1; }; }
13707 fi
13708 # Compute "$ac_file"'s index in $config_headers.
13709 _am_arg="$ac_file"
13710 _am_stamp_count=1
13711 for _am_header in $config_headers :; do
13712 case $_am_header in
13713 $_am_arg | $_am_arg:* )
13714 break ;;
13715 * )
13716 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13717 esac
13718 done
13719 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13720 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13721 X"$_am_arg" : 'X\(//\)[^/]' \| \
13722 X"$_am_arg" : 'X\(//\)$' \| \
13723 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13724 $as_echo X"$_am_arg" |
13725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13726 s//\1/
13727 q
13728 }
13729 /^X\(\/\/\)[^/].*/{
13730 s//\1/
13731 q
13732 }
13733 /^X\(\/\/\)$/{
13734 s//\1/
13735 q
13736 }
13737 /^X\(\/\).*/{
13738 s//\1/
13739 q
13740 }
13741 s/.*/./; q'`/stamp-h$_am_stamp_count
13742 ;;
13743
13744 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13745 $as_echo "$as_me: executing $ac_file commands" >&6;}
13746 ;;
13747 esac
13748
13749
13750 case $ac_file$ac_mode in
13751 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13752 # Strip MF so we end up with the name of the file.
13753 mf=`echo "$mf" | sed -e 's/:.*$//'`
13754 # Check whether this is an Automake generated Makefile or not.
13755 # We used to match only the files named `Makefile.in', but
13756 # some people rename them; so instead we look at the file content.
13757 # Grep'ing the first line is not enough: some people post-process
13758 # each Makefile.in and add a new line on top of each file to say so.
13759 # Grep'ing the whole file is not good either: AIX grep has a line
13760 # limit of 2048, but all sed's we know have understand at least 4000.
13761 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13762 dirpart=`$as_dirname -- "$mf" ||
13763 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13764 X"$mf" : 'X\(//\)[^/]' \| \
13765 X"$mf" : 'X\(//\)$' \| \
13766 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13767 $as_echo X"$mf" |
13768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13769 s//\1/
13770 q
13771 }
13772 /^X\(\/\/\)[^/].*/{
13773 s//\1/
13774 q
13775 }
13776 /^X\(\/\/\)$/{
13777 s//\1/
13778 q
13779 }
13780 /^X\(\/\).*/{
13781 s//\1/
13782 q
13783 }
13784 s/.*/./; q'`
13785 else
13786 continue
13787 fi
13788 # Extract the definition of DEPDIR, am__include, and am__quote
13789 # from the Makefile without running `make'.
13790 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13791 test -z "$DEPDIR" && continue
13792 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13793 test -z "am__include" && continue
13794 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13795 # When using ansi2knr, U may be empty or an underscore; expand it
13796 U=`sed -n 's/^U = //p' < "$mf"`
13797 # Find all dependency output files, they are included files with
13798 # $(DEPDIR) in their names. We invoke sed twice because it is the
13799 # simplest approach to changing $(DEPDIR) to its actual value in the
13800 # expansion.
13801 for file in `sed -n "
13802 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13803 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13804 # Make sure the directory exists.
13805 test -f "$dirpart/$file" && continue
13806 fdir=`$as_dirname -- "$file" ||
13807 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13808 X"$file" : 'X\(//\)[^/]' \| \
13809 X"$file" : 'X\(//\)$' \| \
13810 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13811 $as_echo X"$file" |
13812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13813 s//\1/
13814 q
13815 }
13816 /^X\(\/\/\)[^/].*/{
13817 s//\1/
13818 q
13819 }
13820 /^X\(\/\/\)$/{
13821 s//\1/
13822 q
13823 }
13824 /^X\(\/\).*/{
13825 s//\1/
13826 q
13827 }
13828 s/.*/./; q'`
13829 { as_dir=$dirpart/$fdir
13830 case $as_dir in #(
13831 -*) as_dir=./$as_dir;;
13832 esac
13833 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13834 as_dirs=
13835 while :; do
13836 case $as_dir in #(
13837 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13838 *) as_qdir=$as_dir;;
13839 esac
13840 as_dirs="'$as_qdir' $as_dirs"
13841 as_dir=`$as_dirname -- "$as_dir" ||
13842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13843 X"$as_dir" : 'X\(//\)[^/]' \| \
13844 X"$as_dir" : 'X\(//\)$' \| \
13845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13846 $as_echo X"$as_dir" |
13847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13848 s//\1/
13849 q
13850 }
13851 /^X\(\/\/\)[^/].*/{
13852 s//\1/
13853 q
13854 }
13855 /^X\(\/\/\)$/{
13856 s//\1/
13857 q
13858 }
13859 /^X\(\/\).*/{
13860 s//\1/
13861 q
13862 }
13863 s/.*/./; q'`
13864 test -d "$as_dir" && break
13865 done
13866 test -z "$as_dirs" || eval "mkdir $as_dirs"
13867 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13868 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13869 { (exit 1); exit 1; }; }; }
13870 # echo "creating $dirpart/$file"
13871 echo '# dummy' > "$dirpart/$file"
13872 done
13873 done
13874 ;;
13875 "libtool":C)
13876
13877 # See if we are running on zsh, and set the options which allow our
13878 # commands through without removal of \ escapes.
13879 if test -n "${ZSH_VERSION+set}" ; then
13880 setopt NO_GLOB_SUBST
13881 fi
13882
13883 cfgfile="${ofile}T"
13884 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13885 $RM "$cfgfile"
13886
13887 cat <<_LT_EOF >> "$cfgfile"
13888 #! $SHELL
13889
13890 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13891 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13894 #
13895 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13896 # 2006, 2007, 2008 Free Software Foundation, Inc.
13897 # Written by Gordon Matzigkeit, 1996
13898 #
13899 # This file is part of GNU Libtool.
13900 #
13901 # GNU Libtool is free software; you can redistribute it and/or
13902 # modify it under the terms of the GNU General Public License as
13903 # published by the Free Software Foundation; either version 2 of
13904 # the License, or (at your option) any later version.
13905 #
13906 # As a special exception to the GNU General Public License,
13907 # if you distribute this file as part of a program or library that
13908 # is built using GNU Libtool, you may include this file under the
13909 # same distribution terms that you use for the rest of that program.
13910 #
13911 # GNU Libtool is distributed in the hope that it will be useful,
13912 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13913 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13914 # GNU General Public License for more details.
13915 #
13916 # You should have received a copy of the GNU General Public License
13917 # along with GNU Libtool; see the file COPYING. If not, a copy
13918 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13919 # obtained by writing to the Free Software Foundation, Inc.,
13920 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13921
13922
13923 # The names of the tagged configurations supported by this script.
13924 available_tags=""
13925
13926 # ### BEGIN LIBTOOL CONFIG
13927
13928 # Which release of libtool.m4 was used?
13929 macro_version=$macro_version
13930 macro_revision=$macro_revision
13931
13932 # Whether or not to build shared libraries.
13933 build_libtool_libs=$enable_shared
13934
13935 # Whether or not to build static libraries.
13936 build_old_libs=$enable_static
13937
13938 # What type of objects to build.
13939 pic_mode=$pic_mode
13940
13941 # Whether or not to optimize for fast installation.
13942 fast_install=$enable_fast_install
13943
13944 # The host system.
13945 host_alias=$host_alias
13946 host=$host
13947 host_os=$host_os
13948
13949 # The build system.
13950 build_alias=$build_alias
13951 build=$build
13952 build_os=$build_os
13953
13954 # A sed program that does not truncate output.
13955 SED=$lt_SED
13956
13957 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13958 Xsed="\$SED -e 1s/^X//"
13959
13960 # A grep program that handles long lines.
13961 GREP=$lt_GREP
13962
13963 # An ERE matcher.
13964 EGREP=$lt_EGREP
13965
13966 # A literal string matcher.
13967 FGREP=$lt_FGREP
13968
13969 # A BSD- or MS-compatible name lister.
13970 NM=$lt_NM
13971
13972 # Whether we need soft or hard links.
13973 LN_S=$lt_LN_S
13974
13975 # What is the maximum length of a command?
13976 max_cmd_len=$max_cmd_len
13977
13978 # Object file suffix (normally "o").
13979 objext=$ac_objext
13980
13981 # Executable file suffix (normally "").
13982 exeext=$exeext
13983
13984 # whether the shell understands "unset".
13985 lt_unset=$lt_unset
13986
13987 # turn spaces into newlines.
13988 SP2NL=$lt_lt_SP2NL
13989
13990 # turn newlines into spaces.
13991 NL2SP=$lt_lt_NL2SP
13992
13993 # How to create reloadable object files.
13994 reload_flag=$lt_reload_flag
13995 reload_cmds=$lt_reload_cmds
13996
13997 # An object symbol dumper.
13998 OBJDUMP=$lt_OBJDUMP
13999
14000 # Method to check whether dependent libraries are shared objects.
14001 deplibs_check_method=$lt_deplibs_check_method
14002
14003 # Command to use when deplibs_check_method == "file_magic".
14004 file_magic_cmd=$lt_file_magic_cmd
14005
14006 # The archiver.
14007 AR=$lt_AR
14008 AR_FLAGS=$lt_AR_FLAGS
14009
14010 # A symbol stripping program.
14011 STRIP=$lt_STRIP
14012
14013 # Commands used to install an old-style archive.
14014 RANLIB=$lt_RANLIB
14015 old_postinstall_cmds=$lt_old_postinstall_cmds
14016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14017
14018 # A C compiler.
14019 LTCC=$lt_CC
14020
14021 # LTCC compiler flags.
14022 LTCFLAGS=$lt_CFLAGS
14023
14024 # Take the output of nm and produce a listing of raw symbols and C names.
14025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14026
14027 # Transform the output of nm in a proper C declaration.
14028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14029
14030 # Transform the output of nm in a C name address pair.
14031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14032
14033 # Transform the output of nm in a C name address pair when lib prefix is needed.
14034 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14035
14036 # The name of the directory that contains temporary libtool files.
14037 objdir=$objdir
14038
14039 # Shell to use when invoking shell scripts.
14040 SHELL=$lt_SHELL
14041
14042 # An echo program that does not interpret backslashes.
14043 ECHO=$lt_ECHO
14044
14045 # Used to examine libraries when file_magic_cmd begins with "file".
14046 MAGIC_CMD=$MAGIC_CMD
14047
14048 # Must we lock files when doing compilation?
14049 need_locks=$lt_need_locks
14050
14051 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14052 DSYMUTIL=$lt_DSYMUTIL
14053
14054 # Tool to change global to local symbols on Mac OS X.
14055 NMEDIT=$lt_NMEDIT
14056
14057 # Tool to manipulate fat objects and archives on Mac OS X.
14058 LIPO=$lt_LIPO
14059
14060 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14061 OTOOL=$lt_OTOOL
14062
14063 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14064 OTOOL64=$lt_OTOOL64
14065
14066 # Old archive suffix (normally "a").
14067 libext=$libext
14068
14069 # Shared library suffix (normally ".so").
14070 shrext_cmds=$lt_shrext_cmds
14071
14072 # The commands to extract the exported symbol list from a shared archive.
14073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14074
14075 # Variables whose values should be saved in libtool wrapper scripts and
14076 # restored at link time.
14077 variables_saved_for_relink=$lt_variables_saved_for_relink
14078
14079 # Do we need the "lib" prefix for modules?
14080 need_lib_prefix=$need_lib_prefix
14081
14082 # Do we need a version for libraries?
14083 need_version=$need_version
14084
14085 # Library versioning type.
14086 version_type=$version_type
14087
14088 # Shared library runtime path variable.
14089 runpath_var=$runpath_var
14090
14091 # Shared library path variable.
14092 shlibpath_var=$shlibpath_var
14093
14094 # Is shlibpath searched before the hard-coded library search path?
14095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14096
14097 # Format of library name prefix.
14098 libname_spec=$lt_libname_spec
14099
14100 # List of archive names. First name is the real one, the rest are links.
14101 # The last name is the one that the linker finds with -lNAME
14102 library_names_spec=$lt_library_names_spec
14103
14104 # The coded name of the library, if different from the real name.
14105 soname_spec=$lt_soname_spec
14106
14107 # Command to use after installation of a shared archive.
14108 postinstall_cmds=$lt_postinstall_cmds
14109
14110 # Command to use after uninstallation of a shared archive.
14111 postuninstall_cmds=$lt_postuninstall_cmds
14112
14113 # Commands used to finish a libtool library installation in a directory.
14114 finish_cmds=$lt_finish_cmds
14115
14116 # As "finish_cmds", except a single script fragment to be evaled but
14117 # not shown.
14118 finish_eval=$lt_finish_eval
14119
14120 # Whether we should hardcode library paths into libraries.
14121 hardcode_into_libs=$hardcode_into_libs
14122
14123 # Compile-time system search path for libraries.
14124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14125
14126 # Run-time system search path for libraries.
14127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14128
14129 # Whether dlopen is supported.
14130 dlopen_support=$enable_dlopen
14131
14132 # Whether dlopen of programs is supported.
14133 dlopen_self=$enable_dlopen_self
14134
14135 # Whether dlopen of statically linked programs is supported.
14136 dlopen_self_static=$enable_dlopen_self_static
14137
14138 # Commands to strip libraries.
14139 old_striplib=$lt_old_striplib
14140 striplib=$lt_striplib
14141
14142
14143 # The linker used to build libraries.
14144 LD=$lt_LD
14145
14146 # Commands used to build an old-style archive.
14147 old_archive_cmds=$lt_old_archive_cmds
14148
14149 # A language specific compiler.
14150 CC=$lt_compiler
14151
14152 # Is the compiler the GNU compiler?
14153 with_gcc=$GCC
14154
14155 # Compiler flag to turn off builtin functions.
14156 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14157
14158 # How to pass a linker flag through the compiler.
14159 wl=$lt_lt_prog_compiler_wl
14160
14161 # Additional compiler flags for building library objects.
14162 pic_flag=$lt_lt_prog_compiler_pic
14163
14164 # Compiler flag to prevent dynamic linking.
14165 link_static_flag=$lt_lt_prog_compiler_static
14166
14167 # Does compiler simultaneously support -c and -o options?
14168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14169
14170 # Whether or not to add -lc for building shared libraries.
14171 build_libtool_need_lc=$archive_cmds_need_lc
14172
14173 # Whether or not to disallow shared libs when runtime libs are static.
14174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14175
14176 # Compiler flag to allow reflexive dlopens.
14177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14178
14179 # Compiler flag to generate shared objects directly from archives.
14180 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14181
14182 # Whether the compiler copes with passing no objects directly.
14183 compiler_needs_object=$lt_compiler_needs_object
14184
14185 # Create an old-style archive from a shared archive.
14186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14187
14188 # Create a temporary old-style archive to link instead of a shared archive.
14189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14190
14191 # Commands used to build a shared archive.
14192 archive_cmds=$lt_archive_cmds
14193 archive_expsym_cmds=$lt_archive_expsym_cmds
14194
14195 # Commands used to build a loadable module if different from building
14196 # a shared archive.
14197 module_cmds=$lt_module_cmds
14198 module_expsym_cmds=$lt_module_expsym_cmds
14199
14200 # Whether we are building with GNU ld or not.
14201 with_gnu_ld=$lt_with_gnu_ld
14202
14203 # Flag that allows shared libraries with undefined symbols to be built.
14204 allow_undefined_flag=$lt_allow_undefined_flag
14205
14206 # Flag that enforces no undefined symbols.
14207 no_undefined_flag=$lt_no_undefined_flag
14208
14209 # Flag to hardcode \$libdir into a binary during linking.
14210 # This must work even if \$libdir does not exist
14211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14212
14213 # If ld is used when linking, flag to hardcode \$libdir into a binary
14214 # during linking. This must work even if \$libdir does not exist.
14215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14216
14217 # Whether we need a single "-rpath" flag with a separated argument.
14218 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14219
14220 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14221 # DIR into the resulting binary.
14222 hardcode_direct=$hardcode_direct
14223
14224 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14225 # DIR into the resulting binary and the resulting library dependency is
14226 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14227 # library is relocated.
14228 hardcode_direct_absolute=$hardcode_direct_absolute
14229
14230 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14231 # into the resulting binary.
14232 hardcode_minus_L=$hardcode_minus_L
14233
14234 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14235 # into the resulting binary.
14236 hardcode_shlibpath_var=$hardcode_shlibpath_var
14237
14238 # Set to "yes" if building a shared library automatically hardcodes DIR
14239 # into the library and all subsequent libraries and executables linked
14240 # against it.
14241 hardcode_automatic=$hardcode_automatic
14242
14243 # Set to yes if linker adds runtime paths of dependent libraries
14244 # to runtime path list.
14245 inherit_rpath=$inherit_rpath
14246
14247 # Whether libtool must link a program against all its dependency libraries.
14248 link_all_deplibs=$link_all_deplibs
14249
14250 # Fix the shell variable \$srcfile for the compiler.
14251 fix_srcfile_path=$lt_fix_srcfile_path
14252
14253 # Set to "yes" if exported symbols are required.
14254 always_export_symbols=$always_export_symbols
14255
14256 # The commands to list exported symbols.
14257 export_symbols_cmds=$lt_export_symbols_cmds
14258
14259 # Symbols that should not be listed in the preloaded symbols.
14260 exclude_expsyms=$lt_exclude_expsyms
14261
14262 # Symbols that must always be exported.
14263 include_expsyms=$lt_include_expsyms
14264
14265 # Commands necessary for linking programs (against libraries) with templates.
14266 prelink_cmds=$lt_prelink_cmds
14267
14268 # Specify filename containing input files.
14269 file_list_spec=$lt_file_list_spec
14270
14271 # How to hardcode a shared library path into an executable.
14272 hardcode_action=$hardcode_action
14273
14274 # ### END LIBTOOL CONFIG
14275
14276 _LT_EOF
14277
14278 case $host_os in
14279 aix3*)
14280 cat <<\_LT_EOF >> "$cfgfile"
14281 # AIX sometimes has problems with the GCC collect2 program. For some
14282 # reason, if we set the COLLECT_NAMES environment variable, the problems
14283 # vanish in a puff of smoke.
14284 if test "X${COLLECT_NAMES+set}" != Xset; then
14285 COLLECT_NAMES=
14286 export COLLECT_NAMES
14287 fi
14288 _LT_EOF
14289 ;;
14290 esac
14291
14292
14293 ltmain="$ac_aux_dir/ltmain.sh"
14294
14295
14296 # We use sed instead of cat because bash on DJGPP gets confused if
14297 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14298 # text mode, it properly converts lines to CR/LF. This bash problem
14299 # is reportedly fixed, but why not run on old versions too?
14300 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14301 || (rm -f "$cfgfile"; exit 1)
14302
14303 case $xsi_shell in
14304 yes)
14305 cat << \_LT_EOF >> "$cfgfile"
14306
14307 # func_dirname file append nondir_replacement
14308 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14309 # otherwise set result to NONDIR_REPLACEMENT.
14310 func_dirname ()
14311 {
14312 case ${1} in
14313 */*) func_dirname_result="${1%/*}${2}" ;;
14314 * ) func_dirname_result="${3}" ;;
14315 esac
14316 }
14317
14318 # func_basename file
14319 func_basename ()
14320 {
14321 func_basename_result="${1##*/}"
14322 }
14323
14324 # func_dirname_and_basename file append nondir_replacement
14325 # perform func_basename and func_dirname in a single function
14326 # call:
14327 # dirname: Compute the dirname of FILE. If nonempty,
14328 # add APPEND to the result, otherwise set result
14329 # to NONDIR_REPLACEMENT.
14330 # value returned in "$func_dirname_result"
14331 # basename: Compute filename of FILE.
14332 # value retuned in "$func_basename_result"
14333 # Implementation must be kept synchronized with func_dirname
14334 # and func_basename. For efficiency, we do not delegate to
14335 # those functions but instead duplicate the functionality here.
14336 func_dirname_and_basename ()
14337 {
14338 case ${1} in
14339 */*) func_dirname_result="${1%/*}${2}" ;;
14340 * ) func_dirname_result="${3}" ;;
14341 esac
14342 func_basename_result="${1##*/}"
14343 }
14344
14345 # func_stripname prefix suffix name
14346 # strip PREFIX and SUFFIX off of NAME.
14347 # PREFIX and SUFFIX must not contain globbing or regex special
14348 # characters, hashes, percent signs, but SUFFIX may contain a leading
14349 # dot (in which case that matches only a dot).
14350 func_stripname ()
14351 {
14352 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14353 # positional parameters, so assign one to ordinary parameter first.
14354 func_stripname_result=${3}
14355 func_stripname_result=${func_stripname_result#"${1}"}
14356 func_stripname_result=${func_stripname_result%"${2}"}
14357 }
14358
14359 # func_opt_split
14360 func_opt_split ()
14361 {
14362 func_opt_split_opt=${1%%=*}
14363 func_opt_split_arg=${1#*=}
14364 }
14365
14366 # func_lo2o object
14367 func_lo2o ()
14368 {
14369 case ${1} in
14370 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14371 *) func_lo2o_result=${1} ;;
14372 esac
14373 }
14374
14375 # func_xform libobj-or-source
14376 func_xform ()
14377 {
14378 func_xform_result=${1%.*}.lo
14379 }
14380
14381 # func_arith arithmetic-term...
14382 func_arith ()
14383 {
14384 func_arith_result=$(( $* ))
14385 }
14386
14387 # func_len string
14388 # STRING may not start with a hyphen.
14389 func_len ()
14390 {
14391 func_len_result=${#1}
14392 }
14393
14394 _LT_EOF
14395 ;;
14396 *) # Bourne compatible functions.
14397 cat << \_LT_EOF >> "$cfgfile"
14398
14399 # func_dirname file append nondir_replacement
14400 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14401 # otherwise set result to NONDIR_REPLACEMENT.
14402 func_dirname ()
14403 {
14404 # Extract subdirectory from the argument.
14405 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14406 if test "X$func_dirname_result" = "X${1}"; then
14407 func_dirname_result="${3}"
14408 else
14409 func_dirname_result="$func_dirname_result${2}"
14410 fi
14411 }
14412
14413 # func_basename file
14414 func_basename ()
14415 {
14416 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14417 }
14418
14419
14420 # func_stripname prefix suffix name
14421 # strip PREFIX and SUFFIX off of NAME.
14422 # PREFIX and SUFFIX must not contain globbing or regex special
14423 # characters, hashes, percent signs, but SUFFIX may contain a leading
14424 # dot (in which case that matches only a dot).
14425 # func_strip_suffix prefix name
14426 func_stripname ()
14427 {
14428 case ${2} in
14429 .*) func_stripname_result=`$ECHO "X${3}" \
14430 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14431 *) func_stripname_result=`$ECHO "X${3}" \
14432 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14433 esac
14434 }
14435
14436 # sed scripts:
14437 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14438 my_sed_long_arg='1s/^-[^=]*=//'
14439
14440 # func_opt_split
14441 func_opt_split ()
14442 {
14443 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14444 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14445 }
14446
14447 # func_lo2o object
14448 func_lo2o ()
14449 {
14450 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14451 }
14452
14453 # func_xform libobj-or-source
14454 func_xform ()
14455 {
14456 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14457 }
14458
14459 # func_arith arithmetic-term...
14460 func_arith ()
14461 {
14462 func_arith_result=`expr "$@"`
14463 }
14464
14465 # func_len string
14466 # STRING may not start with a hyphen.
14467 func_len ()
14468 {
14469 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14470 }
14471
14472 _LT_EOF
14473 esac
14474
14475 case $lt_shell_append in
14476 yes)
14477 cat << \_LT_EOF >> "$cfgfile"
14478
14479 # func_append var value
14480 # Append VALUE to the end of shell variable VAR.
14481 func_append ()
14482 {
14483 eval "$1+=\$2"
14484 }
14485 _LT_EOF
14486 ;;
14487 *)
14488 cat << \_LT_EOF >> "$cfgfile"
14489
14490 # func_append var value
14491 # Append VALUE to the end of shell variable VAR.
14492 func_append ()
14493 {
14494 eval "$1=\$$1\$2"
14495 }
14496
14497 _LT_EOF
14498 ;;
14499 esac
14500
14501
14502 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14503 || (rm -f "$cfgfile"; exit 1)
14504
14505 mv -f "$cfgfile" "$ofile" ||
14506 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14507 chmod +x "$ofile"
14508
14509 ;;
14510
14511 esac
14512 done # for ac_tag
14513
14514
14515 { (exit 0); exit 0; }
14516 _ACEOF
14517 chmod +x $CONFIG_STATUS
14518 ac_clean_files=$ac_clean_files_save
14519
14520 test $ac_write_fail = 0 ||
14521 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14522 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14523 { (exit 1); exit 1; }; }
14524
14525
14526 # configure is writing to config.log, and then calls config.status.
14527 # config.status does its own redirection, appending to config.log.
14528 # Unfortunately, on DOS this fails, as config.log is still kept open
14529 # by configure, so config.status won't be able to write to it; its
14530 # output is simply discarded. So we exec the FD to /dev/null,
14531 # effectively closing config.log, so it can be properly (re)opened and
14532 # appended to by config.status. When coming back to configure, we
14533 # need to make the FD available again.
14534 if test "$no_create" != yes; then
14535 ac_cs_success=:
14536 ac_config_status_args=
14537 test "$silent" = yes &&
14538 ac_config_status_args="$ac_config_status_args --quiet"
14539 exec 5>/dev/null
14540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14541 exec 5>>config.log
14542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14543 # would make configure fail if this is the last instruction.
14544 $ac_cs_success || { (exit 1); exit 1; }
14545 fi
14546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14547 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14549 fi
14550