Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
582 $*
583 _LT_EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="README"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 # include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 # include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 MAJOR_VERSION
803 MINOR_VERSION
804 MICRO_VERSION
805 INTERFACE_AGE
806 BINARY_AGE
807 VERSION
808 AS
809 DLLTOOL
810 OBJDUMP
811 LIBTOOL
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 CC
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 ac_ct_CC
825 EXEEXT
826 OBJEXT
827 SED
828 GREP
829 EGREP
830 FGREP
831 LD
832 DUMPBIN
833 ac_ct_DUMPBIN
834 NM
835 LN_S
836 AR
837 STRIP
838 RANLIB
839 lt_ECHO
840 DSYMUTIL
841 NMEDIT
842 LIPO
843 OTOOL
844 OTOOL64
845 CPP
846 LT_RELEASE
847 LT_CURRENT
848 LT_REVISION
849 LT_AGE
850 INSTALL_PROGRAM
851 INSTALL_SCRIPT
852 INSTALL_DATA
853 am__isrc
854 CYGPATH_W
855 PACKAGE
856 ACLOCAL
857 AUTOCONF
858 AUTOMAKE
859 AUTOHEADER
860 MAKEINFO
861 install_sh
862 INSTALL_STRIP_PROGRAM
863 mkdir_p
864 AWK
865 SET_MAKE
866 am__leading_dot
867 AMTAR
868 am__tar
869 am__untar
870 DEPDIR
871 am__include
872 am__quote
873 AMDEP_TRUE
874 AMDEP_FALSE
875 AMDEPBACKSLASH
876 CCDEPMODE
877 am__fastdepCC_TRUE
878 am__fastdepCC_FALSE
879 WINDRES
880 ALLOCA
881 USE_VERSION_RC_TRUE
882 USE_VERSION_RC_FALSE
883 FREETYPE_CONFIG
884 SDL_VERSION
885 PKG_CONFIG
886 SDL_CFLAGS
887 SDL_LIBS
888 SDL_CONFIG
889 XMKMF
890 X_CFLAGS
891 X_PRE_LIBS
892 X_LIBS
893 X_EXTRA_LIBS
894 GL_LIBS
895 MATHLIB
896 LIBOBJS
897 LTLIBOBJS'
898 ac_subst_files=''
899 ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 PKG_CONFIG
909 SDL_CFLAGS
910 SDL_LIBS
911 XMKMF'
912
913
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
933
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
969 fi
970
971 case $ac_option in
972 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *) ac_optarg=yes ;;
974 esac
975
976 # Accept the important Cygnus configure options, so we can diagnose typos.
977
978 case $ac_dashdash$ac_option in
979 --)
980 ac_dashdash=yes ;;
981
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 bindir=$ac_optarg ;;
986
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
991
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
998
999 --config-cache | -C)
1000 cache_file=config.cache ;;
1001
1002 -datadir | --datadir | --datadi | --datad)
1003 ac_prev=datadir ;;
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1006
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1013
1014 -disable-* | --disable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=no ;;
1022
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1027
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1032
1033 -enable-* | --enable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=\$ac_optarg ;;
1041
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1050
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1054
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1061
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1066
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1072
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1079
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1084
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1089
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1096
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1101
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1108
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1113
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1117
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1121
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1125
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1134
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1139
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1146
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1153
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1170
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1175
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1180
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1184
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1190
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1201
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1206
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1211
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1218
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1223
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1226
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1229
1230 -with-* | --with-*)
1231 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_$ac_package=\$ac_optarg ;;
1238
1239 -without-* | --without-*)
1240 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_$ac_package=no ;;
1247
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1251
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1258
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1265
1266 -*) { echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1269 ;;
1270
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1279
1280 *)
1281 # FIXME: should be removed in autoconf 3.0.
1282 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 ;;
1287
1288 esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 { echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1295 fi
1296
1297 # Be sure to have absolute directory names.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1302 do
1303 eval ac_val=\$$ac_var
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { echo "$as_me: error: Working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$0" ||
1351 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$0" : 'X\(//\)[^/]' \| \
1353 X"$0" : 'X\(//\)$' \| \
1354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355 echo X"$0" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 \`configure' configures this package to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1468
1469 cat <<\_ACEOF
1470
1471 Program names:
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475
1476 X features:
1477 --x-includes=DIR X include files are in DIR
1478 --x-libraries=DIR X library files are in DIR
1479
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1484 fi
1485
1486 if test -n "$ac_init_help"; then
1487
1488 cat <<\_ACEOF
1489
1490 Optional Features:
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1498 --disable-dependency-tracking speeds up one-time build
1499 --enable-dependency-tracking do not reject slow dependency extractors
1500 --disable-sdltest Do not try to compile and run a test SDL program
1501
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pic try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-freetype-prefix=PFX Prefix where FREETYPE is
1509 installed (optional)
1510 --with-freetype-exec-prefix=PFX Exec prefix
1511 where FREETYPE is installed (optional)
1512 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1513 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1514 --with-x use the X Window System
1515
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 CPP C preprocessor
1525 PKG_CONFIG path to pkg-config utility
1526 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1527 SDL_LIBS linker flags for SDL, overriding pkg-config
1528 XMKMF Path to xmkmf, Makefile generator for X Window System
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" || continue
1541 ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
1593 configure
1594 generated by GNU Autoconf 2.61
1595
1596 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1597 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601 exit
1602 fi
1603 cat >config.log <<_ACEOF
1604 This file contains any messages produced by compilers while
1605 running configure, to aid debugging if configure makes a mistake.
1606
1607 It was created by $as_me, which was
1608 generated by GNU Autoconf 2.61. Invocation command line was
1609
1610 $ $0 $@
1611
1612 _ACEOF
1613 exec 5>>config.log
1614 {
1615 cat <<_ASUNAME
1616 ## --------- ##
1617 ## Platform. ##
1618 ## --------- ##
1619
1620 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1621 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1622 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1623 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1624 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1625
1626 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1627 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1628
1629 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1630 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1631 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1632 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1633 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1634 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1635 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1636
1637 _ASUNAME
1638
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 echo "PATH: $as_dir"
1645 done
1646 IFS=$as_save_IFS
1647
1648 } >&5
1649
1650 cat >&5 <<_ACEOF
1651
1652
1653 ## ----------- ##
1654 ## Core tests. ##
1655 ## ----------- ##
1656
1657 _ACEOF
1658
1659
1660 # Keep a trace of the command line.
1661 # Strip out --no-create and --no-recursion so they do not pile up.
1662 # Strip out --silent because we don't want to record it for future runs.
1663 # Also quote any args containing shell meta-characters.
1664 # Make two passes to allow for proper duplicate-argument suppression.
1665 ac_configure_args=
1666 ac_configure_args0=
1667 ac_configure_args1=
1668 ac_must_keep_next=false
1669 for ac_pass in 1 2
1670 do
1671 for ac_arg
1672 do
1673 case $ac_arg in
1674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676 | -silent | --silent | --silen | --sile | --sil)
1677 continue ;;
1678 *\'*)
1679 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 esac
1681 case $ac_pass in
1682 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1683 2)
1684 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685 if test $ac_must_keep_next = true; then
1686 ac_must_keep_next=false # Got value, back to normal.
1687 else
1688 case $ac_arg in
1689 *=* | --config-cache | -C | -disable-* | --disable-* \
1690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692 | -with-* | --with-* | -without-* | --without-* | --x)
1693 case "$ac_configure_args0 " in
1694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 esac
1696 ;;
1697 -* ) ac_must_keep_next=true ;;
1698 esac
1699 fi
1700 ac_configure_args="$ac_configure_args '$ac_arg'"
1701 ;;
1702 esac
1703 done
1704 done
1705 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1707
1708 # When interrupted or exit'd, cleanup temporary files, and complete
1709 # config.log. We remove comments because anyway the quotes in there
1710 # would cause problems or look ugly.
1711 # WARNING: Use '\'' to represent an apostrophe within the trap.
1712 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713 trap 'exit_status=$?
1714 # Save into config.log some information that might help in debugging.
1715 {
1716 echo
1717
1718 cat <<\_ASBOX
1719 ## ---------------- ##
1720 ## Cache variables. ##
1721 ## ---------------- ##
1722 _ASBOX
1723 echo
1724 # The following way of writing the cache mishandles newlines in values,
1725 (
1726 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1727 eval ac_val=\$$ac_var
1728 case $ac_val in #(
1729 *${as_nl}*)
1730 case $ac_var in #(
1731 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1732 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733 esac
1734 case $ac_var in #(
1735 _ | IFS | as_nl) ;; #(
1736 *) $as_unset $ac_var ;;
1737 esac ;;
1738 esac
1739 done
1740 (set) 2>&1 |
1741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1742 *${as_nl}ac_space=\ *)
1743 sed -n \
1744 "s/'\''/'\''\\\\'\'''\''/g;
1745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746 ;; #(
1747 *)
1748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 ;;
1750 esac |
1751 sort
1752 )
1753 echo
1754
1755 cat <<\_ASBOX
1756 ## ----------------- ##
1757 ## Output variables. ##
1758 ## ----------------- ##
1759 _ASBOX
1760 echo
1761 for ac_var in $ac_subst_vars
1762 do
1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 echo "$ac_var='\''$ac_val'\''"
1768 done | sort
1769 echo
1770
1771 if test -n "$ac_subst_files"; then
1772 cat <<\_ASBOX
1773 ## ------------------- ##
1774 ## File substitutions. ##
1775 ## ------------------- ##
1776 _ASBOX
1777 echo
1778 for ac_var in $ac_subst_files
1779 do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in
1782 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 esac
1784 echo "$ac_var='\''$ac_val'\''"
1785 done | sort
1786 echo
1787 fi
1788
1789 if test -s confdefs.h; then
1790 cat <<\_ASBOX
1791 ## ----------- ##
1792 ## confdefs.h. ##
1793 ## ----------- ##
1794 _ASBOX
1795 echo
1796 cat confdefs.h
1797 echo
1798 fi
1799 test "$ac_signal" != 0 &&
1800 echo "$as_me: caught signal $ac_signal"
1801 echo "$as_me: exit $exit_status"
1802 } >&5
1803 rm -f core *.core core.conftest.* &&
1804 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805 exit $exit_status
1806 ' 0
1807 for ac_signal in 1 2 13 15; do
1808 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809 done
1810 ac_signal=0
1811
1812 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1813 rm -f -r conftest* confdefs.h
1814
1815 # Predefined preprocessor variables.
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_NAME "$PACKAGE_NAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_STRING "$PACKAGE_STRING"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839 _ACEOF
1840
1841
1842 # Let the site file select an alternate cache file if it wants to.
1843 # Prefer explicitly selected file to automatically selected ones.
1844 if test -n "$CONFIG_SITE"; then
1845 set x "$CONFIG_SITE"
1846 elif test "x$prefix" != xNONE; then
1847 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1848 else
1849 set x "$ac_default_prefix/share/config.site" \
1850 "$ac_default_prefix/etc/config.site"
1851 fi
1852 shift
1853 for ac_site_file
1854 do
1855 if test -r "$ac_site_file"; then
1856 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857 echo "$as_me: loading site script $ac_site_file" >&6;}
1858 sed 's/^/| /' "$ac_site_file" >&5
1859 . "$ac_site_file"
1860 fi
1861 done
1862
1863 if test -r "$cache_file"; then
1864 # Some versions of bash will fail to source /dev/null (special
1865 # files actually), so we avoid doing that.
1866 if test -f "$cache_file"; then
1867 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868 echo "$as_me: loading cache $cache_file" >&6;}
1869 case $cache_file in
1870 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871 *) . "./$cache_file";;
1872 esac
1873 fi
1874 else
1875 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876 echo "$as_me: creating cache $cache_file" >&6;}
1877 >$cache_file
1878 fi
1879
1880 # Check that the precious variables saved in the cache have kept the same
1881 # value.
1882 ac_cache_corrupted=false
1883 for ac_var in $ac_precious_vars; do
1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885 eval ac_new_set=\$ac_env_${ac_var}_set
1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887 eval ac_new_val=\$ac_env_${ac_var}_value
1888 case $ac_old_set,$ac_new_set in
1889 set,)
1890 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,set)
1894 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1897 ,);;
1898 *)
1899 if test "x$ac_old_val" != "x$ac_new_val"; then
1900 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1903 echo "$as_me: former value: $ac_old_val" >&2;}
1904 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1905 echo "$as_me: current value: $ac_new_val" >&2;}
1906 ac_cache_corrupted=:
1907 fi;;
1908 esac
1909 # Pass precious variables to config.status.
1910 if test "$ac_new_set" = set; then
1911 case $ac_new_val in
1912 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1913 *) ac_arg=$ac_var=$ac_new_val ;;
1914 esac
1915 case " $ac_configure_args " in
1916 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1917 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1918 esac
1919 fi
1920 done
1921 if $ac_cache_corrupted; then
1922 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1925 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1926 { (exit 1); exit 1; }; }
1927 fi
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945 ac_ext=c
1946 ac_cpp='$CPP $CPPFLAGS'
1947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950
1951
1952
1953
1954 # Making releases:
1955 # MICRO_VERSION += 1;
1956 # INTERFACE_AGE += 1;
1957 # BINARY_AGE += 1;
1958 # if any functions have been added, set INTERFACE_AGE to 0.
1959 # if backwards compatibility has been broken,
1960 # set BINARY_AGE and INTERFACE_AGE to 0.
1961
1962 MAJOR_VERSION=2
1963 MINOR_VERSION=0
1964 MICRO_VERSION=11
1965 INTERFACE_AGE=1
1966 BINARY_AGE=11
1967 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
1968
1969
1970
1971
1972
1973
1974
1975
1976 # libtool versioning
1977 case `pwd` in
1978 *\ * | *\ *)
1979 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1980 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1981 esac
1982
1983
1984
1985 macro_version='2.2.6'
1986 macro_revision='1.3012'
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000 ltmain="$ac_aux_dir/ltmain.sh"
2001
2002 ac_aux_dir=
2003 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2004 if test -f "$ac_dir/install-sh"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install-sh -c"
2007 break
2008 elif test -f "$ac_dir/install.sh"; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/install.sh -c"
2011 break
2012 elif test -f "$ac_dir/shtool"; then
2013 ac_aux_dir=$ac_dir
2014 ac_install_sh="$ac_aux_dir/shtool install -c"
2015 break
2016 fi
2017 done
2018 if test -z "$ac_aux_dir"; then
2019 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2020 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2021 { (exit 1); exit 1; }; }
2022 fi
2023
2024 # These three variables are undocumented and unsupported,
2025 # and are intended to be withdrawn in a future Autoconf release.
2026 # They can cause serious problems if a builder's source tree is in a directory
2027 # whose full name contains unusual characters.
2028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2031
2032
2033 # Make sure we can run config.sub.
2034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2035 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2036 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2037 { (exit 1); exit 1; }; }
2038
2039 { echo "$as_me:$LINENO: checking build system type" >&5
2040 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2041 if test "${ac_cv_build+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044 ac_build_alias=$build_alias
2045 test "x$ac_build_alias" = x &&
2046 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2047 test "x$ac_build_alias" = x &&
2048 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2050 { (exit 1); exit 1; }; }
2051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2054 { (exit 1); exit 1; }; }
2055
2056 fi
2057 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2058 echo "${ECHO_T}$ac_cv_build" >&6; }
2059 case $ac_cv_build in
2060 *-*-*) ;;
2061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2062 echo "$as_me: error: invalid value of canonical build" >&2;}
2063 { (exit 1); exit 1; }; };;
2064 esac
2065 build=$ac_cv_build
2066 ac_save_IFS=$IFS; IFS='-'
2067 set x $ac_cv_build
2068 shift
2069 build_cpu=$1
2070 build_vendor=$2
2071 shift; shift
2072 # Remember, the first character of IFS is used to create $*,
2073 # except with old shells:
2074 build_os=$*
2075 IFS=$ac_save_IFS
2076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2077
2078
2079 { echo "$as_me:$LINENO: checking host system type" >&5
2080 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2081 if test "${ac_cv_host+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 if test "x$host_alias" = x; then
2085 ac_cv_host=$ac_cv_build
2086 else
2087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2088 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2090 { (exit 1); exit 1; }; }
2091 fi
2092
2093 fi
2094 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2095 echo "${ECHO_T}$ac_cv_host" >&6; }
2096 case $ac_cv_host in
2097 *-*-*) ;;
2098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2099 echo "$as_me: error: invalid value of canonical host" >&2;}
2100 { (exit 1); exit 1; }; };;
2101 esac
2102 host=$ac_cv_host
2103 ac_save_IFS=$IFS; IFS='-'
2104 set x $ac_cv_host
2105 shift
2106 host_cpu=$1
2107 host_vendor=$2
2108 shift; shift
2109 # Remember, the first character of IFS is used to create $*,
2110 # except with old shells:
2111 host_os=$*
2112 IFS=$ac_save_IFS
2113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2114
2115
2116 ac_ext=c
2117 ac_cpp='$CPP $CPPFLAGS'
2118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2123 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2126 if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2139 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2142 fi
2143 done
2144 done
2145 IFS=$as_save_IFS
2146
2147 fi
2148 fi
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151 { echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6; }
2153 else
2154 { echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6; }
2156 fi
2157
2158
2159 fi
2160 if test -z "$ac_cv_prog_CC"; then
2161 ac_ct_CC=$CC
2162 # Extract the first word of "gcc", so it can be a program name with args.
2163 set dummy gcc; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$ac_ct_CC"; then
2170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_ac_ct_CC="gcc"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2182 fi
2183 done
2184 done
2185 IFS=$as_save_IFS
2186
2187 fi
2188 fi
2189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190 if test -n "$ac_ct_CC"; then
2191 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192 echo "${ECHO_T}$ac_ct_CC" >&6; }
2193 else
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2196 fi
2197
2198 if test "x$ac_ct_CC" = x; then
2199 CC=""
2200 else
2201 case $cross_compiling:$ac_tool_warned in
2202 yes:)
2203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2204 whose name does not start with the host triplet. If you think this
2205 configuration is useful to you, please write to [email protected]." >&5
2206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2207 whose name does not start with the host triplet. If you think this
2208 configuration is useful to you, please write to [email protected]." >&2;}
2209 ac_tool_warned=yes ;;
2210 esac
2211 CC=$ac_ct_CC
2212 fi
2213 else
2214 CC="$ac_cv_prog_CC"
2215 fi
2216
2217 if test -z "$CC"; then
2218 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}cc; ac_word=$2
2221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236 ac_cv_prog_CC="${ac_tool_prefix}cc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2239 fi
2240 done
2241 done
2242 IFS=$as_save_IFS
2243
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248 { echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6; }
2250 else
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2253 fi
2254
2255
2256 fi
2257 fi
2258 if test -z "$CC"; then
2259 # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 if test -n "$CC"; then
2267 ac_cv_prog_CC="$CC" # Let the user override the test.
2268 else
2269 ac_prog_rejected=no
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2278 ac_prog_rejected=yes
2279 continue
2280 fi
2281 ac_cv_prog_CC="cc"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2284 fi
2285 done
2286 done
2287 IFS=$as_save_IFS
2288
2289 if test $ac_prog_rejected = yes; then
2290 # We found a bogon in the path, so make sure we never use it.
2291 set dummy $ac_cv_prog_CC
2292 shift
2293 if test $# != 0; then
2294 # We chose a different compiler from the bogus one.
2295 # However, it has the same basename, so the bogon will be chosen
2296 # first if we set CC to just the basename; use the full file name.
2297 shift
2298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2299 fi
2300 fi
2301 fi
2302 fi
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305 { echo "$as_me:$LINENO: result: $CC" >&5
2306 echo "${ECHO_T}$CC" >&6; }
2307 else
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2310 fi
2311
2312
2313 fi
2314 if test -z "$CC"; then
2315 if test -n "$ac_tool_prefix"; then
2316 for ac_prog in cl.exe
2317 do
2318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_CC+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 if test -n "$CC"; then
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2338 fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347 { echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6; }
2349 else
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355 test -n "$CC" && break
2356 done
2357 fi
2358 if test -z "$CC"; then
2359 ac_ct_CC=$CC
2360 for ac_prog in cl.exe
2361 do
2362 # Extract the first word of "$ac_prog", so it can be a program name with args.
2363 set dummy $ac_prog; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_CC="$ac_prog"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 fi
2397
2398
2399 test -n "$ac_ct_CC" && break
2400 done
2401
2402 if test "x$ac_ct_CC" = x; then
2403 CC=""
2404 else
2405 case $cross_compiling:$ac_tool_warned in
2406 yes:)
2407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to [email protected]." >&5
2410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet. If you think this
2412 configuration is useful to you, please write to [email protected]." >&2;}
2413 ac_tool_warned=yes ;;
2414 esac
2415 CC=$ac_ct_CC
2416 fi
2417 fi
2418
2419 fi
2420
2421
2422 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: no acceptable C compiler found in \$PATH
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427
2428 # Provide some information about the compiler.
2429 echo "$as_me:$LINENO: checking for C compiler version" >&5
2430 ac_compiler=`set X $ac_compile; echo $2`
2431 { (ac_try="$ac_compiler --version >&5"
2432 case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_compiler --version >&5") 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }
2441 { (ac_try="$ac_compiler -v >&5"
2442 case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_compiler -v >&5") 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }
2451 { (ac_try="$ac_compiler -V >&5"
2452 case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457 (eval "$ac_compiler -V >&5") 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }
2461
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h. */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2468
2469 int
2470 main ()
2471 {
2472
2473 ;
2474 return 0;
2475 }
2476 _ACEOF
2477 ac_clean_files_save=$ac_clean_files
2478 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2479 # Try to create an executable without -o first, disregard a.out.
2480 # It will help us diagnose broken compilers, and finding out an intuition
2481 # of exeext.
2482 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2483 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2484 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485 #
2486 # List of possible output files, starting from the most likely.
2487 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2488 # only as a last resort. b.out is created by i960 compilers.
2489 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2490 #
2491 # The IRIX 6 linker writes into existing files which may not be
2492 # executable, retaining their permissions. Remove them first so a
2493 # subsequent execution test works.
2494 ac_rmfiles=
2495 for ac_file in $ac_files
2496 do
2497 case $ac_file in
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2500 esac
2501 done
2502 rm -f $ac_rmfiles
2503
2504 if { (ac_try="$ac_link_default"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_link_default") 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2515 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2516 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2517 # so that the user can short-circuit this test for compilers unknown to
2518 # Autoconf.
2519 for ac_file in $ac_files ''
2520 do
2521 test -f "$ac_file" || continue
2522 case $ac_file in
2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2524 ;;
2525 [ab].out )
2526 # We found the default executable, but exeext='' is most
2527 # certainly right.
2528 break;;
2529 *.* )
2530 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2531 then :; else
2532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 fi
2534 # We set ac_cv_exeext here because the later test for it is not
2535 # safe: cross compilers may not add the suffix if given an `-o'
2536 # argument, so we may need to know it at that point already.
2537 # Even if this section looks crufty: it has the advantage of
2538 # actually working.
2539 break;;
2540 * )
2541 break;;
2542 esac
2543 done
2544 test "$ac_cv_exeext" = no && ac_cv_exeext=
2545
2546 else
2547 ac_file=''
2548 fi
2549
2550 { echo "$as_me:$LINENO: result: $ac_file" >&5
2551 echo "${ECHO_T}$ac_file" >&6; }
2552 if test -z "$ac_file"; then
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2555
2556 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2557 See \`config.log' for more details." >&5
2558 echo "$as_me: error: C compiler cannot create executables
2559 See \`config.log' for more details." >&2;}
2560 { (exit 77); exit 77; }; }
2561 fi
2562
2563 ac_exeext=$ac_cv_exeext
2564
2565 # Check that the compiler produces executables we can run. If not, either
2566 # the compiler is broken, or we cross compile.
2567 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2568 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2569 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2570 # If not cross compiling, check that we can run a simple program.
2571 if test "$cross_compiling" != yes; then
2572 if { ac_try='./$ac_file'
2573 { (case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_try") 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2582 cross_compiling=no
2583 else
2584 if test "$cross_compiling" = maybe; then
2585 cross_compiling=yes
2586 else
2587 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2588 If you meant to cross compile, use \`--host'.
2589 See \`config.log' for more details." >&5
2590 echo "$as_me: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&2;}
2593 { (exit 1); exit 1; }; }
2594 fi
2595 fi
2596 fi
2597 { echo "$as_me:$LINENO: result: yes" >&5
2598 echo "${ECHO_T}yes" >&6; }
2599
2600 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2601 ac_clean_files=$ac_clean_files_save
2602 # Check that the compiler produces executables we can run. If not, either
2603 # the compiler is broken, or we cross compile.
2604 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2605 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2606 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2607 echo "${ECHO_T}$cross_compiling" >&6; }
2608
2609 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2610 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2611 if { (ac_try="$ac_link"
2612 case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_link") 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; then
2621 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2622 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2623 # work properly (i.e., refer to `conftest.exe'), while it won't with
2624 # `rm'.
2625 for ac_file in conftest.exe conftest conftest.*; do
2626 test -f "$ac_file" || continue
2627 case $ac_file in
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2630 break;;
2631 * ) break;;
2632 esac
2633 done
2634 else
2635 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2638 See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2640 fi
2641
2642 rm -f conftest$ac_cv_exeext
2643 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2644 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2645
2646 rm -f conftest.$ac_ext
2647 EXEEXT=$ac_cv_exeext
2648 ac_exeext=$EXEEXT
2649 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2650 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2651 if test "${ac_cv_objext+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2660
2661 int
2662 main ()
2663 {
2664
2665 ;
2666 return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.o conftest.obj
2670 if { (ac_try="$ac_compile"
2671 case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compile") 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; then
2680 for ac_file in conftest.o conftest.obj conftest.*; do
2681 test -f "$ac_file" || continue;
2682 case $ac_file in
2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2685 break;;
2686 esac
2687 done
2688 else
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2697 fi
2698
2699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2700 fi
2701 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2702 echo "${ECHO_T}$ac_cv_objext" >&6; }
2703 OBJEXT=$ac_cv_objext
2704 ac_objext=$OBJEXT
2705 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2706 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2707 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716
2717 int
2718 main ()
2719 {
2720 #ifndef __GNUC__
2721 choke me
2722 #endif
2723
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest.$ac_objext; then
2745 ac_compiler_gnu=yes
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 ac_compiler_gnu=no
2751 fi
2752
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2755
2756 fi
2757 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2758 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2759 GCC=`test $ac_compiler_gnu = yes && echo yes`
2760 ac_test_CFLAGS=${CFLAGS+set}
2761 ac_save_CFLAGS=$CFLAGS
2762 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2763 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_cc_g+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 ac_save_c_werror_flag=$ac_c_werror_flag
2768 ac_c_werror_flag=yes
2769 ac_cv_prog_cc_g=no
2770 CFLAGS="-g"
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777
2778 int
2779 main ()
2780 {
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (ac_try="$ac_compile"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compile") 2>conftest.er1
2794 ac_status=$?
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } && {
2800 test -z "$ac_c_werror_flag" ||
2801 test ! -s conftest.err
2802 } && test -s conftest.$ac_objext; then
2803 ac_cv_prog_cc_g=yes
2804 else
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 CFLAGS=""
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815
2816 int
2817 main ()
2818 {
2819
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (ac_try="$ac_compile"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_compile") 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } && {
2838 test -z "$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2840 } && test -s conftest.$ac_objext; then
2841 :
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2845
2846 ac_c_werror_flag=$ac_save_c_werror_flag
2847 CFLAGS="-g"
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854
2855 int
2856 main ()
2857 {
2858
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (ac_try="$ac_compile"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compile") 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } && {
2877 test -z "$ac_c_werror_flag" ||
2878 test ! -s conftest.err
2879 } && test -s conftest.$ac_objext; then
2880 ac_cv_prog_cc_g=yes
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885
2886 fi
2887
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 fi
2890
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 fi
2893
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 ac_c_werror_flag=$ac_save_c_werror_flag
2896 fi
2897 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2898 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2899 if test "$ac_test_CFLAGS" = set; then
2900 CFLAGS=$ac_save_CFLAGS
2901 elif test $ac_cv_prog_cc_g = yes; then
2902 if test "$GCC" = yes; then
2903 CFLAGS="-g -O2"
2904 else
2905 CFLAGS="-g"
2906 fi
2907 else
2908 if test "$GCC" = yes; then
2909 CFLAGS="-O2"
2910 else
2911 CFLAGS=
2912 fi
2913 fi
2914 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2915 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_cc_c89+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 ac_cv_prog_cc_c89=no
2920 ac_save_CC=$CC
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 #include <stdarg.h>
2928 #include <stdio.h>
2929 #include <sys/types.h>
2930 #include <sys/stat.h>
2931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2932 struct buf { int x; };
2933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2934 static char *e (p, i)
2935 char **p;
2936 int i;
2937 {
2938 return p[i];
2939 }
2940 static char *f (char * (*g) (char **, int), char **p, ...)
2941 {
2942 char *s;
2943 va_list v;
2944 va_start (v,p);
2945 s = g (p, va_arg (v,int));
2946 va_end (v);
2947 return s;
2948 }
2949
2950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2951 function prototypes and stuff, but not '\xHH' hex character constants.
2952 These don't provoke an error unfortunately, instead are silently treated
2953 as 'x'. The following induces an error, until -std is added to get
2954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2955 array size at least. It's necessary to write '\x00'==0 to get something
2956 that's true only with -std. */
2957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2958
2959 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2960 inside strings and character constants. */
2961 #define FOO(x) 'x'
2962 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2963
2964 int test (int i, double x);
2965 struct s1 {int (*f) (int a);};
2966 struct s2 {int (*f) (double a);};
2967 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2968 int argc;
2969 char **argv;
2970 int
2971 main ()
2972 {
2973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2980 do
2981 CC="$ac_save_CC $ac_arg"
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
2999 ac_cv_prog_cc_c89=$ac_arg
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004
3005 fi
3006
3007 rm -f core conftest.err conftest.$ac_objext
3008 test "x$ac_cv_prog_cc_c89" != "xno" && break
3009 done
3010 rm -f conftest.$ac_ext
3011 CC=$ac_save_CC
3012
3013 fi
3014 # AC_CACHE_VAL
3015 case "x$ac_cv_prog_cc_c89" in
3016 x)
3017 { echo "$as_me:$LINENO: result: none needed" >&5
3018 echo "${ECHO_T}none needed" >&6; } ;;
3019 xno)
3020 { echo "$as_me:$LINENO: result: unsupported" >&5
3021 echo "${ECHO_T}unsupported" >&6; } ;;
3022 *)
3023 CC="$CC $ac_cv_prog_cc_c89"
3024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3025 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3026 esac
3027
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034
3035 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3036 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3037 if test "${ac_cv_path_SED+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3041 for ac_i in 1 2 3 4 5 6 7; do
3042 ac_script="$ac_script$as_nl$ac_script"
3043 done
3044 echo "$ac_script" | sed 99q >conftest.sed
3045 $as_unset ac_script || ac_script=
3046 # Extract the first word of "sed gsed" to use in msg output
3047 if test -z "$SED"; then
3048 set dummy sed gsed; ac_prog_name=$2
3049 if test "${ac_cv_path_SED+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 ac_path_SED_found=false
3053 # Loop through the user's path and test for each of PROGNAME-LIST
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_prog in sed gsed; do
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3062 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3063 # Check for GNU ac_path_SED and select it if it is found.
3064 # Check for GNU $ac_path_SED
3065 case `"$ac_path_SED" --version 2>&1` in
3066 *GNU*)
3067 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3068 *)
3069 ac_count=0
3070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3071 while :
3072 do
3073 cat "conftest.in" "conftest.in" >"conftest.tmp"
3074 mv "conftest.tmp" "conftest.in"
3075 cp "conftest.in" "conftest.nl"
3076 echo '' >> "conftest.nl"
3077 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3079 ac_count=`expr $ac_count + 1`
3080 if test $ac_count -gt ${ac_path_SED_max-0}; then
3081 # Best one so far, save it but keep looking for a better one
3082 ac_cv_path_SED="$ac_path_SED"
3083 ac_path_SED_max=$ac_count
3084 fi
3085 # 10*(2^10) chars as input seems more than enough
3086 test $ac_count -gt 10 && break
3087 done
3088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3089 esac
3090
3091
3092 $ac_path_SED_found && break 3
3093 done
3094 done
3095
3096 done
3097 IFS=$as_save_IFS
3098
3099
3100 fi
3101
3102 SED="$ac_cv_path_SED"
3103 if test -z "$SED"; then
3104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3105 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3106 { (exit 1); exit 1; }; }
3107 fi
3108
3109 else
3110 ac_cv_path_SED=$SED
3111 fi
3112
3113 fi
3114 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3115 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3116 SED="$ac_cv_path_SED"
3117 rm -f conftest.sed
3118
3119 test -z "$SED" && SED=sed
3120 Xsed="$SED -e 1s/^X//"
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3133 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3134 if test "${ac_cv_path_GREP+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 # Extract the first word of "grep ggrep" to use in msg output
3138 if test -z "$GREP"; then
3139 set dummy grep ggrep; ac_prog_name=$2
3140 if test "${ac_cv_path_GREP+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 ac_path_GREP_found=false
3144 # Loop through the user's path and test for each of PROGNAME-LIST
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3147 do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_prog in grep ggrep; do
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3153 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3154 # Check for GNU ac_path_GREP and select it if it is found.
3155 # Check for GNU $ac_path_GREP
3156 case `"$ac_path_GREP" --version 2>&1` in
3157 *GNU*)
3158 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3159 *)
3160 ac_count=0
3161 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3162 while :
3163 do
3164 cat "conftest.in" "conftest.in" >"conftest.tmp"
3165 mv "conftest.tmp" "conftest.in"
3166 cp "conftest.in" "conftest.nl"
3167 echo 'GREP' >> "conftest.nl"
3168 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3170 ac_count=`expr $ac_count + 1`
3171 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3172 # Best one so far, save it but keep looking for a better one
3173 ac_cv_path_GREP="$ac_path_GREP"
3174 ac_path_GREP_max=$ac_count
3175 fi
3176 # 10*(2^10) chars as input seems more than enough
3177 test $ac_count -gt 10 && break
3178 done
3179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3180 esac
3181
3182
3183 $ac_path_GREP_found && break 3
3184 done
3185 done
3186
3187 done
3188 IFS=$as_save_IFS
3189
3190
3191 fi
3192
3193 GREP="$ac_cv_path_GREP"
3194 if test -z "$GREP"; then
3195 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3196 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3197 { (exit 1); exit 1; }; }
3198 fi
3199
3200 else
3201 ac_cv_path_GREP=$GREP
3202 fi
3203
3204
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3207 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3208 GREP="$ac_cv_path_GREP"
3209
3210
3211 { echo "$as_me:$LINENO: checking for egrep" >&5
3212 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3213 if test "${ac_cv_path_EGREP+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3217 then ac_cv_path_EGREP="$GREP -E"
3218 else
3219 # Extract the first word of "egrep" to use in msg output
3220 if test -z "$EGREP"; then
3221 set dummy egrep; ac_prog_name=$2
3222 if test "${ac_cv_path_EGREP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 ac_path_EGREP_found=false
3226 # Loop through the user's path and test for each of PROGNAME-LIST
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_prog in egrep; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3235 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3236 # Check for GNU ac_path_EGREP and select it if it is found.
3237 # Check for GNU $ac_path_EGREP
3238 case `"$ac_path_EGREP" --version 2>&1` in
3239 *GNU*)
3240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3241 *)
3242 ac_count=0
3243 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3244 while :
3245 do
3246 cat "conftest.in" "conftest.in" >"conftest.tmp"
3247 mv "conftest.tmp" "conftest.in"
3248 cp "conftest.in" "conftest.nl"
3249 echo 'EGREP' >> "conftest.nl"
3250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3252 ac_count=`expr $ac_count + 1`
3253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3254 # Best one so far, save it but keep looking for a better one
3255 ac_cv_path_EGREP="$ac_path_EGREP"
3256 ac_path_EGREP_max=$ac_count
3257 fi
3258 # 10*(2^10) chars as input seems more than enough
3259 test $ac_count -gt 10 && break
3260 done
3261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3262 esac
3263
3264
3265 $ac_path_EGREP_found && break 3
3266 done
3267 done
3268
3269 done
3270 IFS=$as_save_IFS
3271
3272
3273 fi
3274
3275 EGREP="$ac_cv_path_EGREP"
3276 if test -z "$EGREP"; then
3277 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3278 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3279 { (exit 1); exit 1; }; }
3280 fi
3281
3282 else
3283 ac_cv_path_EGREP=$EGREP
3284 fi
3285
3286
3287 fi
3288 fi
3289 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3290 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3291 EGREP="$ac_cv_path_EGREP"
3292
3293
3294 { echo "$as_me:$LINENO: checking for fgrep" >&5
3295 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3296 if test "${ac_cv_path_FGREP+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3300 then ac_cv_path_FGREP="$GREP -F"
3301 else
3302 # Extract the first word of "fgrep" to use in msg output
3303 if test -z "$FGREP"; then
3304 set dummy fgrep; ac_prog_name=$2
3305 if test "${ac_cv_path_FGREP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 ac_path_FGREP_found=false
3309 # Loop through the user's path and test for each of PROGNAME-LIST
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_prog in fgrep; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3318 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3319 # Check for GNU ac_path_FGREP and select it if it is found.
3320 # Check for GNU $ac_path_FGREP
3321 case `"$ac_path_FGREP" --version 2>&1` in
3322 *GNU*)
3323 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3324 *)
3325 ac_count=0
3326 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3327 while :
3328 do
3329 cat "conftest.in" "conftest.in" >"conftest.tmp"
3330 mv "conftest.tmp" "conftest.in"
3331 cp "conftest.in" "conftest.nl"
3332 echo 'FGREP' >> "conftest.nl"
3333 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3335 ac_count=`expr $ac_count + 1`
3336 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3337 # Best one so far, save it but keep looking for a better one
3338 ac_cv_path_FGREP="$ac_path_FGREP"
3339 ac_path_FGREP_max=$ac_count
3340 fi
3341 # 10*(2^10) chars as input seems more than enough
3342 test $ac_count -gt 10 && break
3343 done
3344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3345 esac
3346
3347
3348 $ac_path_FGREP_found && break 3
3349 done
3350 done
3351
3352 done
3353 IFS=$as_save_IFS
3354
3355
3356 fi
3357
3358 FGREP="$ac_cv_path_FGREP"
3359 if test -z "$FGREP"; then
3360 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3362 { (exit 1); exit 1; }; }
3363 fi
3364
3365 else
3366 ac_cv_path_FGREP=$FGREP
3367 fi
3368
3369
3370 fi
3371 fi
3372 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3373 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3374 FGREP="$ac_cv_path_FGREP"
3375
3376
3377 test -z "$GREP" && GREP=grep
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then
3399 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3400 else
3401 with_gnu_ld=no
3402 fi
3403
3404 ac_prog=ld
3405 if test "$GCC" = yes; then
3406 # Check if gcc -print-prog-name=ld gives a path.
3407 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3408 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3409 case $host in
3410 *-*-mingw*)
3411 # gcc leaves a trailing carriage return which upsets mingw
3412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3413 *)
3414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3415 esac
3416 case $ac_prog in
3417 # Accept absolute paths.
3418 [\\/]* | ?:[\\/]*)
3419 re_direlt='/[^/][^/]*/\.\./'
3420 # Canonicalize the pathname of ld
3421 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3422 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3423 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3424 done
3425 test -z "$LD" && LD="$ac_prog"
3426 ;;
3427 "")
3428 # If it fails, then pretend we aren't using GCC.
3429 ac_prog=ld
3430 ;;
3431 *)
3432 # If it is relative, then search for the first ld in PATH.
3433 with_gnu_ld=unknown
3434 ;;
3435 esac
3436 elif test "$with_gnu_ld" = yes; then
3437 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3439 else
3440 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3442 fi
3443 if test "${lt_cv_path_LD+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 if test -z "$LD"; then
3447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3448 for ac_dir in $PATH; do
3449 IFS="$lt_save_ifs"
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3452 lt_cv_path_LD="$ac_dir/$ac_prog"
3453 # Check to see if the program is GNU ld. I'd rather use --version,
3454 # but apparently some variants of GNU ld only accept -v.
3455 # Break only if it was the GNU/non-GNU ld that we prefer.
3456 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3457 *GNU* | *'with BFD'*)
3458 test "$with_gnu_ld" != no && break
3459 ;;
3460 *)
3461 test "$with_gnu_ld" != yes && break
3462 ;;
3463 esac
3464 fi
3465 done
3466 IFS="$lt_save_ifs"
3467 else
3468 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3469 fi
3470 fi
3471
3472 LD="$lt_cv_path_LD"
3473 if test -n "$LD"; then
3474 { echo "$as_me:$LINENO: result: $LD" >&5
3475 echo "${ECHO_T}$LD" >&6; }
3476 else
3477 { echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6; }
3479 fi
3480 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3481 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3482 { (exit 1); exit 1; }; }
3483 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3484 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3485 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3489 case `$LD -v 2>&1 </dev/null` in
3490 *GNU* | *'with BFD'*)
3491 lt_cv_prog_gnu_ld=yes
3492 ;;
3493 *)
3494 lt_cv_prog_gnu_ld=no
3495 ;;
3496 esac
3497 fi
3498 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3499 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3500 with_gnu_ld=$lt_cv_prog_gnu_ld
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3511 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3512 if test "${lt_cv_path_NM+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 if test -n "$NM"; then
3516 # Let the user override the test.
3517 lt_cv_path_NM="$NM"
3518 else
3519 lt_nm_to_check="${ac_tool_prefix}nm"
3520 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3521 lt_nm_to_check="$lt_nm_to_check nm"
3522 fi
3523 for lt_tmp_nm in $lt_nm_to_check; do
3524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3525 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3526 IFS="$lt_save_ifs"
3527 test -z "$ac_dir" && ac_dir=.
3528 tmp_nm="$ac_dir/$lt_tmp_nm"
3529 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3530 # Check to see if the nm accepts a BSD-compat flag.
3531 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3532 # nm: unknown option "B" ignored
3533 # Tru64's nm complains that /dev/null is an invalid object file
3534 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3535 */dev/null* | *'Invalid file or object type'*)
3536 lt_cv_path_NM="$tmp_nm -B"
3537 break
3538 ;;
3539 *)
3540 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3541 */dev/null*)
3542 lt_cv_path_NM="$tmp_nm -p"
3543 break
3544 ;;
3545 *)
3546 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3547 continue # so that we can try to find one that supports BSD flags
3548 ;;
3549 esac
3550 ;;
3551 esac
3552 fi
3553 done
3554 IFS="$lt_save_ifs"
3555 done
3556 : ${lt_cv_path_NM=no}
3557 fi
3558 fi
3559 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3560 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3561 if test "$lt_cv_path_NM" != "no"; then
3562 NM="$lt_cv_path_NM"
3563 else
3564 # Didn't find any BSD compatible name lister, look for dumpbin.
3565 if test -n "$ac_tool_prefix"; then
3566 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3567 do
3568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3572 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 if test -n "$DUMPBIN"; then
3576 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589 done
3590 done
3591 IFS=$as_save_IFS
3592
3593 fi
3594 fi
3595 DUMPBIN=$ac_cv_prog_DUMPBIN
3596 if test -n "$DUMPBIN"; then
3597 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3598 echo "${ECHO_T}$DUMPBIN" >&6; }
3599 else
3600 { echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6; }
3602 fi
3603
3604
3605 test -n "$DUMPBIN" && break
3606 done
3607 fi
3608 if test -z "$DUMPBIN"; then
3609 ac_ct_DUMPBIN=$DUMPBIN
3610 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3611 do
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy $ac_prog; ac_word=$2
3614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3616 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 if test -n "$ac_ct_DUMPBIN"; then
3620 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3640 if test -n "$ac_ct_DUMPBIN"; then
3641 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3642 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
3643 else
3644 { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; }
3646 fi
3647
3648
3649 test -n "$ac_ct_DUMPBIN" && break
3650 done
3651
3652 if test "x$ac_ct_DUMPBIN" = x; then
3653 DUMPBIN=":"
3654 else
3655 case $cross_compiling:$ac_tool_warned in
3656 yes:)
3657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3658 whose name does not start with the host triplet. If you think this
3659 configuration is useful to you, please write to [email protected]." >&5
3660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3661 whose name does not start with the host triplet. If you think this
3662 configuration is useful to you, please write to [email protected]." >&2;}
3663 ac_tool_warned=yes ;;
3664 esac
3665 DUMPBIN=$ac_ct_DUMPBIN
3666 fi
3667 fi
3668
3669
3670 if test "$DUMPBIN" != ":"; then
3671 NM="$DUMPBIN"
3672 fi
3673 fi
3674 test -z "$NM" && NM=nm
3675
3676
3677
3678
3679
3680
3681 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3682 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
3683 if test "${lt_cv_nm_interface+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 lt_cv_nm_interface="BSD nm"
3687 echo "int some_variable = 0;" > conftest.$ac_ext
3688 (eval echo "\"\$as_me:3688: $ac_compile\"" >&5)
3689 (eval "$ac_compile" 2>conftest.err)
3690 cat conftest.err >&5
3691 (eval echo "\"\$as_me:3691: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3692 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3693 cat conftest.err >&5
3694 (eval echo "\"\$as_me:3694: output\"" >&5)
3695 cat conftest.out >&5
3696 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3697 lt_cv_nm_interface="MS dumpbin"
3698 fi
3699 rm -f conftest*
3700 fi
3701 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3702 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
3703
3704 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3705 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3706 LN_S=$as_ln_s
3707 if test "$LN_S" = "ln -s"; then
3708 { echo "$as_me:$LINENO: result: yes" >&5
3709 echo "${ECHO_T}yes" >&6; }
3710 else
3711 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3712 echo "${ECHO_T}no, using $LN_S" >&6; }
3713 fi
3714
3715 # find the maximum length of command line arguments
3716 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3717 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
3718 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 i=0
3722 teststring="ABCD"
3723
3724 case $build_os in
3725 msdosdjgpp*)
3726 # On DJGPP, this test can blow up pretty badly due to problems in libc
3727 # (any single argument exceeding 2000 bytes causes a buffer overrun
3728 # during glob expansion). Even if it were fixed, the result of this
3729 # check would be larger than it should be.
3730 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3731 ;;
3732
3733 gnu*)
3734 # Under GNU Hurd, this test is not required because there is
3735 # no limit to the length of command line arguments.
3736 # Libtool will interpret -1 as no limit whatsoever
3737 lt_cv_sys_max_cmd_len=-1;
3738 ;;
3739
3740 cygwin* | mingw* | cegcc*)
3741 # On Win9x/ME, this test blows up -- it succeeds, but takes
3742 # about 5 minutes as the teststring grows exponentially.
3743 # Worse, since 9x/ME are not pre-emptively multitasking,
3744 # you end up with a "frozen" computer, even though with patience
3745 # the test eventually succeeds (with a max line length of 256k).
3746 # Instead, let's just punt: use the minimum linelength reported by
3747 # all of the supported platforms: 8192 (on NT/2K/XP).
3748 lt_cv_sys_max_cmd_len=8192;
3749 ;;
3750
3751 beos*)
3752 # On BeOS, this test takes a really really long time.
3753 # So we just punt and use a minimum line length of 8192.
3754 lt_cv_sys_max_cmd_len=8192;
3755 ;;
3756
3757 amigaos*)
3758 # On AmigaOS with pdksh, this test takes hours, literally.
3759 # So we just punt and use a minimum line length of 8192.
3760 lt_cv_sys_max_cmd_len=8192;
3761 ;;
3762
3763 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3764 # This has been around since 386BSD, at least. Likely further.
3765 if test -x /sbin/sysctl; then
3766 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3767 elif test -x /usr/sbin/sysctl; then
3768 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3769 else
3770 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3771 fi
3772 # And add a safety zone
3773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3775 ;;
3776
3777 interix*)
3778 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3779 lt_cv_sys_max_cmd_len=196608
3780 ;;
3781
3782 osf*)
3783 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3784 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3785 # nice to cause kernel panics so lets avoid the loop below.
3786 # First set a reasonable default.
3787 lt_cv_sys_max_cmd_len=16384
3788 #
3789 if test -x /sbin/sysconfig; then
3790 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3791 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3792 esac
3793 fi
3794 ;;
3795 sco3.2v5*)
3796 lt_cv_sys_max_cmd_len=102400
3797 ;;
3798 sysv5* | sco5v6* | sysv4.2uw2*)
3799 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3800 if test -n "$kargmax"; then
3801 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3802 else
3803 lt_cv_sys_max_cmd_len=32768
3804 fi
3805 ;;
3806 *)
3807 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3808 if test -n "$lt_cv_sys_max_cmd_len"; then
3809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3811 else
3812 # Make teststring a little bigger before we do anything with it.
3813 # a 1K string should be a reasonable start.
3814 for i in 1 2 3 4 5 6 7 8 ; do
3815 teststring=$teststring$teststring
3816 done
3817 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3818 # If test is not a shell built-in, we'll probably end up computing a
3819 # maximum length that is only half of the actual maximum length, but
3820 # we can't tell.
3821 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3822 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3823 test $i != 17 # 1/2 MB should be enough
3824 do
3825 i=`expr $i + 1`
3826 teststring=$teststring$teststring
3827 done
3828 # Only check the string length outside the loop.
3829 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3830 teststring=
3831 # Add a significant safety factor because C++ compilers can tack on
3832 # massive amounts of additional arguments before passing them to the
3833 # linker. It appears as though 1/2 is a usable value.
3834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3835 fi
3836 ;;
3837 esac
3838
3839 fi
3840
3841 if test -n $lt_cv_sys_max_cmd_len ; then
3842 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3843 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
3844 else
3845 { echo "$as_me:$LINENO: result: none" >&5
3846 echo "${ECHO_T}none" >&6; }
3847 fi
3848 max_cmd_len=$lt_cv_sys_max_cmd_len
3849
3850
3851
3852
3853
3854
3855 : ${CP="cp -f"}
3856 : ${MV="mv -f"}
3857 : ${RM="rm -f"}
3858
3859 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3860 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
3861 # Try some XSI features
3862 xsi_shell=no
3863 ( _lt_dummy="a/b/c"
3864 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3865 = c,a/b,, \
3866 && eval 'test $(( 1 + 1 )) -eq 2 \
3867 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3868 && xsi_shell=yes
3869 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
3870 echo "${ECHO_T}$xsi_shell" >&6; }
3871
3872
3873 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3874 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
3875 lt_shell_append=no
3876 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3877 >/dev/null 2>&1 \
3878 && lt_shell_append=yes
3879 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3880 echo "${ECHO_T}$lt_shell_append" >&6; }
3881
3882
3883 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3884 lt_unset=unset
3885 else
3886 lt_unset=false
3887 fi
3888
3889
3890
3891
3892
3893 # test EBCDIC or ASCII
3894 case `echo X|tr X '\101'` in
3895 A) # ASCII based system
3896 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3897 lt_SP2NL='tr \040 \012'
3898 lt_NL2SP='tr \015\012 \040\040'
3899 ;;
3900 *) # EBCDIC based system
3901 lt_SP2NL='tr \100 \n'
3902 lt_NL2SP='tr \r\n \100\100'
3903 ;;
3904 esac
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3915 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3916 if test "${lt_cv_ld_reload_flag+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 lt_cv_ld_reload_flag='-r'
3920 fi
3921 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3922 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3923 reload_flag=$lt_cv_ld_reload_flag
3924 case $reload_flag in
3925 "" | " "*) ;;
3926 *) reload_flag=" $reload_flag" ;;
3927 esac
3928 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3929 case $host_os in
3930 darwin*)
3931 if test "$GCC" = yes; then
3932 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3933 else
3934 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3935 fi
3936 ;;
3937 esac
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947 if test -n "$ac_tool_prefix"; then
3948 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3949 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3952 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 if test -n "$OBJDUMP"; then
3956 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3968 fi
3969 done
3970 done
3971 IFS=$as_save_IFS
3972
3973 fi
3974 fi
3975 OBJDUMP=$ac_cv_prog_OBJDUMP
3976 if test -n "$OBJDUMP"; then
3977 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3978 echo "${ECHO_T}$OBJDUMP" >&6; }
3979 else
3980 { echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6; }
3982 fi
3983
3984
3985 fi
3986 if test -z "$ac_cv_prog_OBJDUMP"; then
3987 ac_ct_OBJDUMP=$OBJDUMP
3988 # Extract the first word of "objdump", so it can be a program name with args.
3989 set dummy objdump; ac_word=$2
3990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3992 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 if test -n "$ac_ct_OBJDUMP"; then
3996 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4016 if test -n "$ac_ct_OBJDUMP"; then
4017 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4018 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4019 else
4020 { echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6; }
4022 fi
4023
4024 if test "x$ac_ct_OBJDUMP" = x; then
4025 OBJDUMP="false"
4026 else
4027 case $cross_compiling:$ac_tool_warned in
4028 yes:)
4029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4030 whose name does not start with the host triplet. If you think this
4031 configuration is useful to you, please write to [email protected]." >&5
4032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4033 whose name does not start with the host triplet. If you think this
4034 configuration is useful to you, please write to [email protected]." >&2;}
4035 ac_tool_warned=yes ;;
4036 esac
4037 OBJDUMP=$ac_ct_OBJDUMP
4038 fi
4039 else
4040 OBJDUMP="$ac_cv_prog_OBJDUMP"
4041 fi
4042
4043 test -z "$OBJDUMP" && OBJDUMP=objdump
4044
4045
4046
4047
4048
4049
4050 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4051 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4052 if test "${lt_cv_deplibs_check_method+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 lt_cv_file_magic_cmd='$MAGIC_CMD'
4056 lt_cv_file_magic_test_file=
4057 lt_cv_deplibs_check_method='unknown'
4058 # Need to set the preceding variable on all platforms that support
4059 # interlibrary dependencies.
4060 # 'none' -- dependencies not supported.
4061 # `unknown' -- same as none, but documents that we really don't know.
4062 # 'pass_all' -- all dependencies passed with no checks.
4063 # 'test_compile' -- check by making test program.
4064 # 'file_magic [[regex]]' -- check by looking for files in library path
4065 # which responds to the $file_magic_cmd with a given extended regex.
4066 # If you have `file' or equivalent on your system and you're not sure
4067 # whether `pass_all' will *always* work, you probably want this one.
4068
4069 case $host_os in
4070 aix[4-9]*)
4071 lt_cv_deplibs_check_method=pass_all
4072 ;;
4073
4074 beos*)
4075 lt_cv_deplibs_check_method=pass_all
4076 ;;
4077
4078 bsdi[45]*)
4079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4080 lt_cv_file_magic_cmd='/usr/bin/file -L'
4081 lt_cv_file_magic_test_file=/shlib/libc.so
4082 ;;
4083
4084 cygwin*)
4085 # func_win32_libid is a shell function defined in ltmain.sh
4086 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4087 lt_cv_deplibs_check_method=pass_all
4088 lt_cv_file_magic_cmd='func_win32_libid'
4089 ;;
4090
4091 mingw* | pw32*)
4092 # Base MSYS/MinGW do not provide the 'file' command needed by
4093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4094 # unless we find 'file', for example because we are cross-compiling.
4095 if ( file / ) >/dev/null 2>&1; then
4096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4097 lt_cv_file_magic_cmd='func_win32_libid'
4098 else
4099 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4100 lt_cv_file_magic_cmd='$OBJDUMP -f'
4101 fi
4102 lt_cv_deplibs_check_method=pass_all
4103 ;;
4104
4105 cegcc)
4106 # use the weaker test based on 'objdump'. See mingw*.
4107 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4108 lt_cv_file_magic_cmd='$OBJDUMP -f'
4109 ;;
4110
4111 darwin* | rhapsody*)
4112 lt_cv_deplibs_check_method=pass_all
4113 ;;
4114
4115 freebsd* | dragonfly*)
4116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4117 case $host_cpu in
4118 i*86 )
4119 # Not sure whether the presence of OpenBSD here was a mistake.
4120 # Let's accept both of them until this is cleared up.
4121 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4122 lt_cv_file_magic_cmd=/usr/bin/file
4123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4124 ;;
4125 esac
4126 else
4127 lt_cv_deplibs_check_method=pass_all
4128 fi
4129 ;;
4130
4131 gnu*)
4132 lt_cv_deplibs_check_method=pass_all
4133 ;;
4134
4135 hpux10.20* | hpux11*)
4136 lt_cv_file_magic_cmd=/usr/bin/file
4137 case $host_cpu in
4138 ia64*)
4139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4141 ;;
4142 hppa*64*)
4143 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]'
4144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4145 ;;
4146 *)
4147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4149 ;;
4150 esac
4151 ;;
4152
4153 interix[3-9]*)
4154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4156 ;;
4157
4158 irix5* | irix6* | nonstopux*)
4159 case $LD in
4160 *-32|*"-32 ") libmagic=32-bit;;
4161 *-n32|*"-n32 ") libmagic=N32;;
4162 *-64|*"-64 ") libmagic=64-bit;;
4163 *) libmagic=never-match;;
4164 esac
4165 lt_cv_deplibs_check_method=pass_all
4166 ;;
4167
4168 # This must be Linux ELF.
4169 linux* | k*bsd*-gnu)
4170 lt_cv_deplibs_check_method=pass_all
4171 ;;
4172
4173 netbsd*)
4174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4176 else
4177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4178 fi
4179 ;;
4180
4181 newos6*)
4182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4183 lt_cv_file_magic_cmd=/usr/bin/file
4184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4185 ;;
4186
4187 *nto* | *qnx*)
4188 lt_cv_deplibs_check_method=pass_all
4189 ;;
4190
4191 openbsd*)
4192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4194 else
4195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4196 fi
4197 ;;
4198
4199 osf3* | osf4* | osf5*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203 rdos*)
4204 lt_cv_deplibs_check_method=pass_all
4205 ;;
4206
4207 solaris*)
4208 lt_cv_deplibs_check_method=pass_all
4209 ;;
4210
4211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4212 lt_cv_deplibs_check_method=pass_all
4213 ;;
4214
4215 sysv4 | sysv4.3*)
4216 case $host_vendor in
4217 motorola)
4218 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]'
4219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4220 ;;
4221 ncr)
4222 lt_cv_deplibs_check_method=pass_all
4223 ;;
4224 sequent)
4225 lt_cv_file_magic_cmd='/bin/file'
4226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4227 ;;
4228 sni)
4229 lt_cv_file_magic_cmd='/bin/file'
4230 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4231 lt_cv_file_magic_test_file=/lib/libc.so
4232 ;;
4233 siemens)
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236 pc)
4237 lt_cv_deplibs_check_method=pass_all
4238 ;;
4239 esac
4240 ;;
4241
4242 tpf*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245 esac
4246
4247 fi
4248 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4249 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4250 file_magic_cmd=$lt_cv_file_magic_cmd
4251 deplibs_check_method=$lt_cv_deplibs_check_method
4252 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4267 set dummy ${ac_tool_prefix}ar; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_AR+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 if test -n "$AR"; then
4274 ac_cv_prog_AR="$AR" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_AR="${ac_tool_prefix}ar"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287 done
4288 done
4289 IFS=$as_save_IFS
4290
4291 fi
4292 fi
4293 AR=$ac_cv_prog_AR
4294 if test -n "$AR"; then
4295 { echo "$as_me:$LINENO: result: $AR" >&5
4296 echo "${ECHO_T}$AR" >&6; }
4297 else
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4300 fi
4301
4302
4303 fi
4304 if test -z "$ac_cv_prog_AR"; then
4305 ac_ct_AR=$AR
4306 # Extract the first word of "ar", so it can be a program name with args.
4307 set dummy ar; ac_word=$2
4308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4310 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 if test -n "$ac_ct_AR"; then
4314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_ac_ct_AR="ar"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4334 if test -n "$ac_ct_AR"; then
4335 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4336 echo "${ECHO_T}$ac_ct_AR" >&6; }
4337 else
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4340 fi
4341
4342 if test "x$ac_ct_AR" = x; then
4343 AR="false"
4344 else
4345 case $cross_compiling:$ac_tool_warned in
4346 yes:)
4347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4348 whose name does not start with the host triplet. If you think this
4349 configuration is useful to you, please write to [email protected]." >&5
4350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4351 whose name does not start with the host triplet. If you think this
4352 configuration is useful to you, please write to [email protected]." >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355 AR=$ac_ct_AR
4356 fi
4357 else
4358 AR="$ac_cv_prog_AR"
4359 fi
4360
4361 test -z "$AR" && AR=ar
4362 test -z "$AR_FLAGS" && AR_FLAGS=cru
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374 if test -n "$ac_tool_prefix"; then
4375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4376 set dummy ${ac_tool_prefix}strip; ac_word=$2
4377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4379 if test "${ac_cv_prog_STRIP+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 if test -n "$STRIP"; then
4383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396 done
4397 done
4398 IFS=$as_save_IFS
4399
4400 fi
4401 fi
4402 STRIP=$ac_cv_prog_STRIP
4403 if test -n "$STRIP"; then
4404 { echo "$as_me:$LINENO: result: $STRIP" >&5
4405 echo "${ECHO_T}$STRIP" >&6; }
4406 else
4407 { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4409 fi
4410
4411
4412 fi
4413 if test -z "$ac_cv_prog_STRIP"; then
4414 ac_ct_STRIP=$STRIP
4415 # Extract the first word of "strip", so it can be a program name with args.
4416 set dummy strip; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422 if test -n "$ac_ct_STRIP"; then
4423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 ac_cv_prog_ac_ct_STRIP="strip"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4435 fi
4436 done
4437 done
4438 IFS=$as_save_IFS
4439
4440 fi
4441 fi
4442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4443 if test -n "$ac_ct_STRIP"; then
4444 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4445 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4446 else
4447 { echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6; }
4449 fi
4450
4451 if test "x$ac_ct_STRIP" = x; then
4452 STRIP=":"
4453 else
4454 case $cross_compiling:$ac_tool_warned in
4455 yes:)
4456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4457 whose name does not start with the host triplet. If you think this
4458 configuration is useful to you, please write to [email protected]." >&5
4459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4460 whose name does not start with the host triplet. If you think this
4461 configuration is useful to you, please write to [email protected]." >&2;}
4462 ac_tool_warned=yes ;;
4463 esac
4464 STRIP=$ac_ct_STRIP
4465 fi
4466 else
4467 STRIP="$ac_cv_prog_STRIP"
4468 fi
4469
4470 test -z "$STRIP" && STRIP=:
4471
4472
4473
4474
4475
4476
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482 if test "${ac_cv_prog_RANLIB+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 if test -n "$RANLIB"; then
4486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4498 fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503 fi
4504 fi
4505 RANLIB=$ac_cv_prog_RANLIB
4506 if test -n "$RANLIB"; then
4507 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4508 echo "${ECHO_T}$RANLIB" >&6; }
4509 else
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4512 fi
4513
4514
4515 fi
4516 if test -z "$ac_cv_prog_RANLIB"; then
4517 ac_ct_RANLIB=$RANLIB
4518 # Extract the first word of "ranlib", so it can be a program name with args.
4519 set dummy ranlib; ac_word=$2
4520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 if test -n "$ac_ct_RANLIB"; then
4526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_ac_ct_RANLIB="ranlib"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4546 if test -n "$ac_ct_RANLIB"; then
4547 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4548 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4549 else
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4552 fi
4553
4554 if test "x$ac_ct_RANLIB" = x; then
4555 RANLIB=":"
4556 else
4557 case $cross_compiling:$ac_tool_warned in
4558 yes:)
4559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4560 whose name does not start with the host triplet. If you think this
4561 configuration is useful to you, please write to [email protected]." >&5
4562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4563 whose name does not start with the host triplet. If you think this
4564 configuration is useful to you, please write to [email protected]." >&2;}
4565 ac_tool_warned=yes ;;
4566 esac
4567 RANLIB=$ac_ct_RANLIB
4568 fi
4569 else
4570 RANLIB="$ac_cv_prog_RANLIB"
4571 fi
4572
4573 test -z "$RANLIB" && RANLIB=:
4574
4575
4576
4577
4578
4579
4580 # Determine commands to create old-style static archives.
4581 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4582 old_postinstall_cmds='chmod 644 $oldlib'
4583 old_postuninstall_cmds=
4584
4585 if test -n "$RANLIB"; then
4586 case $host_os in
4587 openbsd*)
4588 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4589 ;;
4590 *)
4591 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4592 ;;
4593 esac
4594 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4595 fi
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630 # If no C compiler was specified, use CC.
4631 LTCC=${LTCC-"$CC"}
4632
4633 # If no C compiler flags were specified, use CFLAGS.
4634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4635
4636 # Allow CC to be a program name with arguments.
4637 compiler=$CC
4638
4639
4640 # Check for command to grab the raw symbol name followed by C symbol from nm.
4641 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4642 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
4643 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646
4647 # These are sane defaults that work on at least a few old systems.
4648 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4649
4650 # Character class describing NM global symbol codes.
4651 symcode='[BCDEGRST]'
4652
4653 # Regexp to match symbols that can be accessed directly from C.
4654 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4655
4656 # Define system-specific variables.
4657 case $host_os in
4658 aix*)
4659 symcode='[BCDT]'
4660 ;;
4661 cygwin* | mingw* | pw32* | cegcc*)
4662 symcode='[ABCDGISTW]'
4663 ;;
4664 hpux*)
4665 if test "$host_cpu" = ia64; then
4666 symcode='[ABCDEGRST]'
4667 fi
4668 ;;
4669 irix* | nonstopux*)
4670 symcode='[BCDEGRST]'
4671 ;;
4672 osf*)
4673 symcode='[BCDEGQRST]'
4674 ;;
4675 solaris*)
4676 symcode='[BDRT]'
4677 ;;
4678 sco3.2v5*)
4679 symcode='[DT]'
4680 ;;
4681 sysv4.2uw2*)
4682 symcode='[DT]'
4683 ;;
4684 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4685 symcode='[ABDT]'
4686 ;;
4687 sysv4)
4688 symcode='[DFNSTU]'
4689 ;;
4690 esac
4691
4692 # If we're using GNU nm, then use its standard symbol codes.
4693 case `$NM -V 2>&1` in
4694 *GNU* | *'with BFD'*)
4695 symcode='[ABCDGIRSTW]' ;;
4696 esac
4697
4698 # Transform an extracted symbol line into a proper C declaration.
4699 # Some systems (esp. on ia64) link data and code symbols differently,
4700 # so use this general approach.
4701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4702
4703 # Transform an extracted symbol line into symbol name and symbol address
4704 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4705 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'"
4706
4707 # Handle CRLF in mingw tool chain
4708 opt_cr=
4709 case $build_os in
4710 mingw*)
4711 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4712 ;;
4713 esac
4714
4715 # Try without a prefix underscore, then with it.
4716 for ac_symprfx in "" "_"; do
4717
4718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4719 symxfrm="\\1 $ac_symprfx\\2 \\2"
4720
4721 # Write the raw and C identifiers.
4722 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4723 # Fake it for dumpbin and say T for any non-static function
4724 # and D for any global variable.
4725 # Also find C++ and __fastcall symbols from MSVC++,
4726 # which start with @ or ?.
4727 lt_cv_sys_global_symbol_pipe="$AWK '"\
4728 " {last_section=section; section=\$ 3};"\
4729 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4730 " \$ 0!~/External *\|/{next};"\
4731 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4732 " {if(hide[section]) next};"\
4733 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4734 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4735 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4736 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4737 " ' prfx=^$ac_symprfx"
4738 else
4739 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4740 fi
4741
4742 # Check to see that the pipe works correctly.
4743 pipe_works=no
4744
4745 rm -f conftest*
4746 cat > conftest.$ac_ext <<_LT_EOF
4747 #ifdef __cplusplus
4748 extern "C" {
4749 #endif
4750 char nm_test_var;
4751 void nm_test_func(void);
4752 void nm_test_func(void){}
4753 #ifdef __cplusplus
4754 }
4755 #endif
4756 int main(){nm_test_var='a';nm_test_func();return(0);}
4757 _LT_EOF
4758
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; then
4764 # Now try to grab the symbols.
4765 nlist=conftest.nm
4766 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4767 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && test -s "$nlist"; then
4771 # Try sorting and uniquifying the output.
4772 if sort "$nlist" | uniq > "$nlist"T; then
4773 mv -f "$nlist"T "$nlist"
4774 else
4775 rm -f "$nlist"T
4776 fi
4777
4778 # Make sure that we snagged all the symbols we need.
4779 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4780 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4781 cat <<_LT_EOF > conftest.$ac_ext
4782 #ifdef __cplusplus
4783 extern "C" {
4784 #endif
4785
4786 _LT_EOF
4787 # Now generate the symbol file.
4788 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4789
4790 cat <<_LT_EOF >> conftest.$ac_ext
4791
4792 /* The mapping between symbol names and symbols. */
4793 const struct {
4794 const char *name;
4795 void *address;
4796 }
4797 lt__PROGRAM__LTX_preloaded_symbols[] =
4798 {
4799 { "@PROGRAM@", (void *) 0 },
4800 _LT_EOF
4801 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4802 cat <<\_LT_EOF >> conftest.$ac_ext
4803 {0, (void *) 0}
4804 };
4805
4806 /* This works around a problem in FreeBSD linker */
4807 #ifdef FREEBSD_WORKAROUND
4808 static const void *lt_preloaded_setup() {
4809 return lt__PROGRAM__LTX_preloaded_symbols;
4810 }
4811 #endif
4812
4813 #ifdef __cplusplus
4814 }
4815 #endif
4816 _LT_EOF
4817 # Now try linking the two files.
4818 mv conftest.$ac_objext conftstm.$ac_objext
4819 lt_save_LIBS="$LIBS"
4820 lt_save_CFLAGS="$CFLAGS"
4821 LIBS="conftstm.$ac_objext"
4822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4824 (eval $ac_link) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4828 pipe_works=yes
4829 fi
4830 LIBS="$lt_save_LIBS"
4831 CFLAGS="$lt_save_CFLAGS"
4832 else
4833 echo "cannot find nm_test_func in $nlist" >&5
4834 fi
4835 else
4836 echo "cannot find nm_test_var in $nlist" >&5
4837 fi
4838 else
4839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4840 fi
4841 else
4842 echo "$progname: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4844 fi
4845 rm -rf conftest* conftst*
4846
4847 # Do not use the global_symbol_pipe unless it works.
4848 if test "$pipe_works" = yes; then
4849 break
4850 else
4851 lt_cv_sys_global_symbol_pipe=
4852 fi
4853 done
4854
4855 fi
4856
4857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4858 lt_cv_sys_global_symbol_to_cdecl=
4859 fi
4860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4861 { echo "$as_me:$LINENO: result: failed" >&5
4862 echo "${ECHO_T}failed" >&6; }
4863 else
4864 { echo "$as_me:$LINENO: result: ok" >&5
4865 echo "${ECHO_T}ok" >&6; }
4866 fi
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890 # Check whether --enable-libtool-lock was given.
4891 if test "${enable_libtool_lock+set}" = set; then
4892 enableval=$enable_libtool_lock;
4893 fi
4894
4895 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4896
4897 # Some flags need to be propagated to the compiler or linker for good
4898 # libtool support.
4899 case $host in
4900 ia64-*-hpux*)
4901 # Find out which ABI we are using.
4902 echo 'int i;' > conftest.$ac_ext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; then
4908 case `/usr/bin/file conftest.$ac_objext` in
4909 *ELF-32*)
4910 HPUX_IA64_MODE="32"
4911 ;;
4912 *ELF-64*)
4913 HPUX_IA64_MODE="64"
4914 ;;
4915 esac
4916 fi
4917 rm -rf conftest*
4918 ;;
4919 *-*-irix6*)
4920 # Find out which ABI we are using.
4921 echo '#line 4921 "configure"' > conftest.$ac_ext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; then
4927 if test "$lt_cv_prog_gnu_ld" = yes; then
4928 case `/usr/bin/file conftest.$ac_objext` in
4929 *32-bit*)
4930 LD="${LD-ld} -melf32bsmip"
4931 ;;
4932 *N32*)
4933 LD="${LD-ld} -melf32bmipn32"
4934 ;;
4935 *64-bit*)
4936 LD="${LD-ld} -melf64bmip"
4937 ;;
4938 esac
4939 else
4940 case `/usr/bin/file conftest.$ac_objext` in
4941 *32-bit*)
4942 LD="${LD-ld} -32"
4943 ;;
4944 *N32*)
4945 LD="${LD-ld} -n32"
4946 ;;
4947 *64-bit*)
4948 LD="${LD-ld} -64"
4949 ;;
4950 esac
4951 fi
4952 fi
4953 rm -rf conftest*
4954 ;;
4955
4956 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4957 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4958 # Find out which ABI we are using.
4959 echo 'int i;' > conftest.$ac_ext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; then
4965 case `/usr/bin/file conftest.o` in
4966 *32-bit*)
4967 case $host in
4968 x86_64-*kfreebsd*-gnu)
4969 LD="${LD-ld} -m elf_i386_fbsd"
4970 ;;
4971 x86_64-*linux*)
4972 LD="${LD-ld} -m elf_i386"
4973 ;;
4974 ppc64-*linux*|powerpc64-*linux*)
4975 LD="${LD-ld} -m elf32ppclinux"
4976 ;;
4977 s390x-*linux*)
4978 LD="${LD-ld} -m elf_s390"
4979 ;;
4980 sparc64-*linux*)
4981 LD="${LD-ld} -m elf32_sparc"
4982 ;;
4983 esac
4984 ;;
4985 *64-bit*)
4986 case $host in
4987 x86_64-*kfreebsd*-gnu)
4988 LD="${LD-ld} -m elf_x86_64_fbsd"
4989 ;;
4990 x86_64-*linux*)
4991 LD="${LD-ld} -m elf_x86_64"
4992 ;;
4993 ppc*-*linux*|powerpc*-*linux*)
4994 LD="${LD-ld} -m elf64ppc"
4995 ;;
4996 s390*-*linux*|s390*-*tpf*)
4997 LD="${LD-ld} -m elf64_s390"
4998 ;;
4999 sparc*-*linux*)
5000 LD="${LD-ld} -m elf64_sparc"
5001 ;;
5002 esac
5003 ;;
5004 esac
5005 fi
5006 rm -rf conftest*
5007 ;;
5008
5009 *-*-sco3.2v5*)
5010 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5011 SAVE_CFLAGS="$CFLAGS"
5012 CFLAGS="$CFLAGS -belf"
5013 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5014 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5015 if test "${lt_cv_cc_needs_belf+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030
5031 int
5032 main ()
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5041 case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_link") 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } && {
5053 test -z "$ac_c_werror_flag" ||
5054 test ! -s conftest.err
5055 } && test -s conftest$ac_exeext &&
5056 $as_test_x conftest$ac_exeext; then
5057 lt_cv_cc_needs_belf=yes
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 lt_cv_cc_needs_belf=no
5063 fi
5064
5065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5066 conftest$ac_exeext conftest.$ac_ext
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073 fi
5074 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5075 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5076 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5077 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5078 CFLAGS="$SAVE_CFLAGS"
5079 fi
5080 ;;
5081 sparc*-*solaris*)
5082 # Find out which ABI we are using.
5083 echo 'int i;' > conftest.$ac_ext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085 (eval $ac_compile) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; then
5089 case `/usr/bin/file conftest.o` in
5090 *64-bit*)
5091 case $lt_cv_prog_gnu_ld in
5092 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5093 *)
5094 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5095 LD="${LD-ld} -64"
5096 fi
5097 ;;
5098 esac
5099 ;;
5100 esac
5101 fi
5102 rm -rf conftest*
5103 ;;
5104 esac
5105
5106 need_locks="$enable_libtool_lock"
5107
5108
5109 case $host_os in
5110 rhapsody* | darwin*)
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5116 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 if test -n "$DSYMUTIL"; then
5120 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5140 if test -n "$DSYMUTIL"; then
5141 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5142 echo "${ECHO_T}$DSYMUTIL" >&6; }
5143 else
5144 { echo "$as_me:$LINENO: result: no" >&5
5145 echo "${ECHO_T}no" >&6; }
5146 fi
5147
5148
5149 fi
5150 if test -z "$ac_cv_prog_DSYMUTIL"; then
5151 ac_ct_DSYMUTIL=$DSYMUTIL
5152 # Extract the first word of "dsymutil", so it can be a program name with args.
5153 set dummy dsymutil; ac_word=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test -n "$ac_ct_DSYMUTIL"; then
5160 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5180 if test -n "$ac_ct_DSYMUTIL"; then
5181 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5182 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5183 else
5184 { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5186 fi
5187
5188 if test "x$ac_ct_DSYMUTIL" = x; then
5189 DSYMUTIL=":"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5194 whose name does not start with the host triplet. If you think this
5195 configuration is useful to you, please write to [email protected]." >&5
5196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5197 whose name does not start with the host triplet. If you think this
5198 configuration is useful to you, please write to [email protected]." >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201 DSYMUTIL=$ac_ct_DSYMUTIL
5202 fi
5203 else
5204 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5205 fi
5206
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5212 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 if test -n "$NMEDIT"; then
5216 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229 done
5230 done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 NMEDIT=$ac_cv_prog_NMEDIT
5236 if test -n "$NMEDIT"; then
5237 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5238 echo "${ECHO_T}$NMEDIT" >&6; }
5239 else
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5242 fi
5243
5244
5245 fi
5246 if test -z "$ac_cv_prog_NMEDIT"; then
5247 ac_ct_NMEDIT=$NMEDIT
5248 # Extract the first word of "nmedit", so it can be a program name with args.
5249 set dummy nmedit; ac_word=$2
5250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5252 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 if test -n "$ac_ct_NMEDIT"; then
5256 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5276 if test -n "$ac_ct_NMEDIT"; then
5277 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5278 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5279 else
5280 { echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6; }
5282 fi
5283
5284 if test "x$ac_ct_NMEDIT" = x; then
5285 NMEDIT=":"
5286 else
5287 case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5290 whose name does not start with the host triplet. If you think this
5291 configuration is useful to you, please write to [email protected]." >&5
5292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5293 whose name does not start with the host triplet. If you think this
5294 configuration is useful to you, please write to [email protected]." >&2;}
5295 ac_tool_warned=yes ;;
5296 esac
5297 NMEDIT=$ac_ct_NMEDIT
5298 fi
5299 else
5300 NMEDIT="$ac_cv_prog_NMEDIT"
5301 fi
5302
5303 if test -n "$ac_tool_prefix"; then
5304 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5305 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5308 if test "${ac_cv_prog_LIPO+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 if test -n "$LIPO"; then
5312 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 LIPO=$ac_cv_prog_LIPO
5332 if test -n "$LIPO"; then
5333 { echo "$as_me:$LINENO: result: $LIPO" >&5
5334 echo "${ECHO_T}$LIPO" >&6; }
5335 else
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5338 fi
5339
5340
5341 fi
5342 if test -z "$ac_cv_prog_LIPO"; then
5343 ac_ct_LIPO=$LIPO
5344 # Extract the first word of "lipo", so it can be a program name with args.
5345 set dummy lipo; ac_word=$2
5346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 if test -n "$ac_ct_LIPO"; then
5352 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_prog_ac_ct_LIPO="lipo"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5364 fi
5365 done
5366 done
5367 IFS=$as_save_IFS
5368
5369 fi
5370 fi
5371 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5372 if test -n "$ac_ct_LIPO"; then
5373 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5374 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5375 else
5376 { echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6; }
5378 fi
5379
5380 if test "x$ac_ct_LIPO" = x; then
5381 LIPO=":"
5382 else
5383 case $cross_compiling:$ac_tool_warned in
5384 yes:)
5385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5386 whose name does not start with the host triplet. If you think this
5387 configuration is useful to you, please write to [email protected]." >&5
5388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5389 whose name does not start with the host triplet. If you think this
5390 configuration is useful to you, please write to [email protected]." >&2;}
5391 ac_tool_warned=yes ;;
5392 esac
5393 LIPO=$ac_ct_LIPO
5394 fi
5395 else
5396 LIPO="$ac_cv_prog_LIPO"
5397 fi
5398
5399 if test -n "$ac_tool_prefix"; then
5400 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5401 set dummy ${ac_tool_prefix}otool; ac_word=$2
5402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_OTOOL+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407 if test -n "$OTOOL"; then
5408 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 OTOOL=$ac_cv_prog_OTOOL
5428 if test -n "$OTOOL"; then
5429 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5430 echo "${ECHO_T}$OTOOL" >&6; }
5431 else
5432 { echo "$as_me:$LINENO: result: no" >&5
5433 echo "${ECHO_T}no" >&6; }
5434 fi
5435
5436
5437 fi
5438 if test -z "$ac_cv_prog_OTOOL"; then
5439 ac_ct_OTOOL=$OTOOL
5440 # Extract the first word of "otool", so it can be a program name with args.
5441 set dummy otool; ac_word=$2
5442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5444 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 if test -n "$ac_ct_OTOOL"; then
5448 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_prog_ac_ct_OTOOL="otool"
5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461 done
5462 done
5463 IFS=$as_save_IFS
5464
5465 fi
5466 fi
5467 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5468 if test -n "$ac_ct_OTOOL"; then
5469 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5470 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5471 else
5472 { echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6; }
5474 fi
5475
5476 if test "x$ac_ct_OTOOL" = x; then
5477 OTOOL=":"
5478 else
5479 case $cross_compiling:$ac_tool_warned in
5480 yes:)
5481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5482 whose name does not start with the host triplet. If you think this
5483 configuration is useful to you, please write to [email protected]." >&5
5484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5485 whose name does not start with the host triplet. If you think this
5486 configuration is useful to you, please write to [email protected]." >&2;}
5487 ac_tool_warned=yes ;;
5488 esac
5489 OTOOL=$ac_ct_OTOOL
5490 fi
5491 else
5492 OTOOL="$ac_cv_prog_OTOOL"
5493 fi
5494
5495 if test -n "$ac_tool_prefix"; then
5496 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5497 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5500 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 if test -n "$OTOOL64"; then
5504 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 OTOOL64=$ac_cv_prog_OTOOL64
5524 if test -n "$OTOOL64"; then
5525 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5526 echo "${ECHO_T}$OTOOL64" >&6; }
5527 else
5528 { echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6; }
5530 fi
5531
5532
5533 fi
5534 if test -z "$ac_cv_prog_OTOOL64"; then
5535 ac_ct_OTOOL64=$OTOOL64
5536 # Extract the first word of "otool64", so it can be a program name with args.
5537 set dummy otool64; ac_word=$2
5538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5540 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 if test -n "$ac_ct_OTOOL64"; then
5544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553 ac_cv_prog_ac_ct_OTOOL64="otool64"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557 done
5558 done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5564 if test -n "$ac_ct_OTOOL64"; then
5565 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5566 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
5567 else
5568 { echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6; }
5570 fi
5571
5572 if test "x$ac_ct_OTOOL64" = x; then
5573 OTOOL64=":"
5574 else
5575 case $cross_compiling:$ac_tool_warned in
5576 yes:)
5577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5578 whose name does not start with the host triplet. If you think this
5579 configuration is useful to you, please write to [email protected]." >&5
5580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5581 whose name does not start with the host triplet. If you think this
5582 configuration is useful to you, please write to [email protected]." >&2;}
5583 ac_tool_warned=yes ;;
5584 esac
5585 OTOOL64=$ac_ct_OTOOL64
5586 fi
5587 else
5588 OTOOL64="$ac_cv_prog_OTOOL64"
5589 fi
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5618 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
5619 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 lt_cv_apple_cc_single_mod=no
5623 if test -z "${LT_MULTI_MODULE}"; then
5624 # By default we will add the -single_module flag. You can override
5625 # by either setting the environment variable LT_MULTI_MODULE
5626 # non-empty at configure time, or by adding -multi_module to the
5627 # link flags.
5628 rm -rf libconftest.dylib*
5629 echo "int foo(void){return 1;}" > conftest.c
5630 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5631 -dynamiclib -Wl,-single_module conftest.c" >&5
5632 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5633 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5634 _lt_result=$?
5635 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5636 lt_cv_apple_cc_single_mod=yes
5637 else
5638 cat conftest.err >&5
5639 fi
5640 rm -rf libconftest.dylib*
5641 rm -f conftest.*
5642 fi
5643 fi
5644 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5645 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
5646 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5647 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
5648 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 lt_cv_ld_exported_symbols_list=no
5652 save_LDFLAGS=$LDFLAGS
5653 echo "_main" > conftest.sym
5654 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661
5662 int
5663 main ()
5664 {
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (ac_try="$ac_link"
5672 case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_link") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest$ac_exeext &&
5687 $as_test_x conftest$ac_exeext; then
5688 lt_cv_ld_exported_symbols_list=yes
5689 else
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 lt_cv_ld_exported_symbols_list=no
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5697 conftest$ac_exeext conftest.$ac_ext
5698 LDFLAGS="$save_LDFLAGS"
5699
5700 fi
5701 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5702 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
5703 case $host_os in
5704 rhapsody* | darwin1.[012])
5705 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5706 darwin1.*)
5707 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5708 darwin*) # darwin 5.x on
5709 # if running on 10.5 or later, the deployment target defaults
5710 # to the OS version, if on x86, and 10.4, the deployment
5711 # target defaults to 10.4. Don't you love it?
5712 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5713 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5715 10.[012]*)
5716 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5717 10.*)
5718 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5719 esac
5720 ;;
5721 esac
5722 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5723 _lt_dar_single_mod='$single_module'
5724 fi
5725 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5726 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5727 else
5728 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5729 fi
5730 if test "$DSYMUTIL" != ":"; then
5731 _lt_dsymutil='~$DSYMUTIL $lib || :'
5732 else
5733 _lt_dsymutil=
5734 fi
5735 ;;
5736 esac
5737
5738 ac_ext=c
5739 ac_cpp='$CPP $CPPFLAGS'
5740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5744 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5745 # On Suns, sometimes $CPP names a directory.
5746 if test -n "$CPP" && test -d "$CPP"; then
5747 CPP=
5748 fi
5749 if test -z "$CPP"; then
5750 if test "${ac_cv_prog_CPP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 # Double quotes because CPP needs to be expanded
5754 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5755 do
5756 ac_preproc_ok=false
5757 for ac_c_preproc_warn_flag in '' yes
5758 do
5759 # Use a header file that comes with gcc, so configuring glibc
5760 # with a fresh cross-compiler works.
5761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762 # <limits.h> exists even on freestanding compilers.
5763 # On the NeXT, cc -E runs the code through the compiler's parser,
5764 # not just through cpp. "Syntax error" is here to catch this case.
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #ifdef __STDC__
5772 # include <limits.h>
5773 #else
5774 # include <assert.h>
5775 #endif
5776 Syntax error
5777 _ACEOF
5778 if { (ac_try="$ac_cpp conftest.$ac_ext"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } >/dev/null && {
5791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 }; then
5794 :
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 # Broken: fails on valid input.
5800 continue
5801 fi
5802
5803 rm -f conftest.err conftest.$ac_ext
5804
5805 # OK, works on sane cases. Now check whether nonexistent headers
5806 # can be detected and how.
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #include <ac_nonexistent.h>
5814 _ACEOF
5815 if { (ac_try="$ac_cpp conftest.$ac_ext"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } >/dev/null && {
5828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5829 test ! -s conftest.err
5830 }; then
5831 # Broken: success on invalid input.
5832 continue
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 # Passes both tests.
5838 ac_preproc_ok=:
5839 break
5840 fi
5841
5842 rm -f conftest.err conftest.$ac_ext
5843
5844 done
5845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846 rm -f conftest.err conftest.$ac_ext
5847 if $ac_preproc_ok; then
5848 break
5849 fi
5850
5851 done
5852 ac_cv_prog_CPP=$CPP
5853
5854 fi
5855 CPP=$ac_cv_prog_CPP
5856 else
5857 ac_cv_prog_CPP=$CPP
5858 fi
5859 { echo "$as_me:$LINENO: result: $CPP" >&5
5860 echo "${ECHO_T}$CPP" >&6; }
5861 ac_preproc_ok=false
5862 for ac_c_preproc_warn_flag in '' yes
5863 do
5864 # Use a header file that comes with gcc, so configuring glibc
5865 # with a fresh cross-compiler works.
5866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867 # <limits.h> exists even on freestanding compilers.
5868 # On the NeXT, cc -E runs the code through the compiler's parser,
5869 # not just through cpp. "Syntax error" is here to catch this case.
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #ifdef __STDC__
5877 # include <limits.h>
5878 #else
5879 # include <assert.h>
5880 #endif
5881 Syntax error
5882 _ACEOF
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5884 case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null && {
5896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5897 test ! -s conftest.err
5898 }; then
5899 :
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 # Broken: fails on valid input.
5905 continue
5906 fi
5907
5908 rm -f conftest.err conftest.$ac_ext
5909
5910 # OK, works on sane cases. Now check whether nonexistent headers
5911 # can be detected and how.
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <ac_nonexistent.h>
5919 _ACEOF
5920 if { (ac_try="$ac_cpp conftest.$ac_ext"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } >/dev/null && {
5933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 }; then
5936 # Broken: success on invalid input.
5937 continue
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 # Passes both tests.
5943 ac_preproc_ok=:
5944 break
5945 fi
5946
5947 rm -f conftest.err conftest.$ac_ext
5948
5949 done
5950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951 rm -f conftest.err conftest.$ac_ext
5952 if $ac_preproc_ok; then
5953 :
5954 else
5955 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5956 See \`config.log' for more details." >&5
5957 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5958 See \`config.log' for more details." >&2;}
5959 { (exit 1); exit 1; }; }
5960 fi
5961
5962 ac_ext=c
5963 ac_cpp='$CPP $CPPFLAGS'
5964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967
5968
5969 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5970 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5971 if test "${ac_cv_header_stdc+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h. */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <stdlib.h>
5981 #include <stdarg.h>
5982 #include <string.h>
5983 #include <float.h>
5984
5985 int
5986 main ()
5987 {
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 ac_cv_header_stdc=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_cv_header_stdc=no
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019
6020 if test $ac_cv_header_stdc = yes; then
6021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6022 cat >conftest.$ac_ext <<_ACEOF
6023 /* confdefs.h. */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 #include <string.h>
6029
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 $EGREP "memchr" >/dev/null 2>&1; then
6033 :
6034 else
6035 ac_cv_header_stdc=no
6036 fi
6037 rm -f -r conftest*
6038
6039 fi
6040
6041 if test $ac_cv_header_stdc = yes; then
6042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <stdlib.h>
6050
6051 _ACEOF
6052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6053 $EGREP "free" >/dev/null 2>&1; then
6054 :
6055 else
6056 ac_cv_header_stdc=no
6057 fi
6058 rm -f -r conftest*
6059
6060 fi
6061
6062 if test $ac_cv_header_stdc = yes; then
6063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6064 if test "$cross_compiling" = yes; then
6065 :
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <ctype.h>
6074 #include <stdlib.h>
6075 #if ((' ' & 0x0FF) == 0x020)
6076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6078 #else
6079 # define ISLOWER(c) \
6080 (('a' <= (c) && (c) <= 'i') \
6081 || ('j' <= (c) && (c) <= 'r') \
6082 || ('s' <= (c) && (c) <= 'z'))
6083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6084 #endif
6085
6086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6087 int
6088 main ()
6089 {
6090 int i;
6091 for (i = 0; i < 256; i++)
6092 if (XOR (islower (i), ISLOWER (i))
6093 || toupper (i) != TOUPPER (i))
6094 return 2;
6095 return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest$ac_exeext
6099 if { (ac_try="$ac_link"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_link") 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6109 { (case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_try") 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 :
6119 else
6120 echo "$as_me: program exited with status $ac_status" >&5
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 ( exit $ac_status )
6125 ac_cv_header_stdc=no
6126 fi
6127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6128 fi
6129
6130
6131 fi
6132 fi
6133 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6134 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6135 if test $ac_cv_header_stdc = yes; then
6136
6137 cat >>confdefs.h <<\_ACEOF
6138 #define STDC_HEADERS 1
6139 _ACEOF
6140
6141 fi
6142
6143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6154 inttypes.h stdint.h unistd.h
6155 do
6156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169
6170 #include <$ac_header>
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.$ac_objext; then
6189 eval "$as_ac_Header=yes"
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 eval "$as_ac_Header=no"
6195 fi
6196
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 fi
6199 ac_res=`eval echo '${'$as_ac_Header'}'`
6200 { echo "$as_me:$LINENO: result: $ac_res" >&5
6201 echo "${ECHO_T}$ac_res" >&6; }
6202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6203 cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6205 _ACEOF
6206
6207 fi
6208
6209 done
6210
6211
6212
6213 for ac_header in dlfcn.h
6214 do
6215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 $ac_includes_default
6228
6229 #include <$ac_header>
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (ac_try="$ac_compile"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_compile") 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_objext; then
6248 eval "$as_ac_Header=yes"
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 eval "$as_ac_Header=no"
6254 fi
6255
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 fi
6258 ac_res=`eval echo '${'$as_ac_Header'}'`
6259 { echo "$as_me:$LINENO: result: $ac_res" >&5
6260 echo "${ECHO_T}$ac_res" >&6; }
6261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262 cat >>confdefs.h <<_ACEOF
6263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264 _ACEOF
6265
6266 fi
6267
6268 done
6269
6270
6271
6272 # Set options
6273 enable_win32_dll=yes
6274
6275 case $host in
6276 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6277 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6279 set dummy ${ac_tool_prefix}as; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_AS+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 if test -n "$AS"; then
6286 ac_cv_prog_AS="$AS" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_AS="${ac_tool_prefix}as"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 AS=$ac_cv_prog_AS
6306 if test -n "$AS"; then
6307 { echo "$as_me:$LINENO: result: $AS" >&5
6308 echo "${ECHO_T}$AS" >&6; }
6309 else
6310 { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6312 fi
6313
6314
6315 fi
6316 if test -z "$ac_cv_prog_AS"; then
6317 ac_ct_AS=$AS
6318 # Extract the first word of "as", so it can be a program name with args.
6319 set dummy as; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 if test -n "$ac_ct_AS"; then
6326 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_ac_ct_AS="as"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6346 if test -n "$ac_ct_AS"; then
6347 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6348 echo "${ECHO_T}$ac_ct_AS" >&6; }
6349 else
6350 { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6352 fi
6353
6354 if test "x$ac_ct_AS" = x; then
6355 AS="false"
6356 else
6357 case $cross_compiling:$ac_tool_warned in
6358 yes:)
6359 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6360 whose name does not start with the host triplet. If you think this
6361 configuration is useful to you, please write to [email protected]." >&5
6362 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6363 whose name does not start with the host triplet. If you think this
6364 configuration is useful to you, please write to [email protected]." >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367 AS=$ac_ct_AS
6368 fi
6369 else
6370 AS="$ac_cv_prog_AS"
6371 fi
6372
6373 if test -n "$ac_tool_prefix"; then
6374 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6375 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 if test -n "$DLLTOOL"; then
6382 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6394 fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 DLLTOOL=$ac_cv_prog_DLLTOOL
6402 if test -n "$DLLTOOL"; then
6403 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6404 echo "${ECHO_T}$DLLTOOL" >&6; }
6405 else
6406 { echo "$as_me:$LINENO: result: no" >&5
6407 echo "${ECHO_T}no" >&6; }
6408 fi
6409
6410
6411 fi
6412 if test -z "$ac_cv_prog_DLLTOOL"; then
6413 ac_ct_DLLTOOL=$DLLTOOL
6414 # Extract the first word of "dlltool", so it can be a program name with args.
6415 set dummy dlltool; ac_word=$2
6416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6418 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 if test -n "$ac_ct_DLLTOOL"; then
6422 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6442 if test -n "$ac_ct_DLLTOOL"; then
6443 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6444 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6445 else
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6448 fi
6449
6450 if test "x$ac_ct_DLLTOOL" = x; then
6451 DLLTOOL="false"
6452 else
6453 case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6456 whose name does not start with the host triplet. If you think this
6457 configuration is useful to you, please write to [email protected]." >&5
6458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6459 whose name does not start with the host triplet. If you think this
6460 configuration is useful to you, please write to [email protected]." >&2;}
6461 ac_tool_warned=yes ;;
6462 esac
6463 DLLTOOL=$ac_ct_DLLTOOL
6464 fi
6465 else
6466 DLLTOOL="$ac_cv_prog_DLLTOOL"
6467 fi
6468
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6474 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477 if test -n "$OBJDUMP"; then
6478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 OBJDUMP=$ac_cv_prog_OBJDUMP
6498 if test -n "$OBJDUMP"; then
6499 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6500 echo "${ECHO_T}$OBJDUMP" >&6; }
6501 else
6502 { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6504 fi
6505
6506
6507 fi
6508 if test -z "$ac_cv_prog_OBJDUMP"; then
6509 ac_ct_OBJDUMP=$OBJDUMP
6510 # Extract the first word of "objdump", so it can be a program name with args.
6511 set dummy objdump; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 if test -n "$ac_ct_OBJDUMP"; then
6518 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6538 if test -n "$ac_ct_OBJDUMP"; then
6539 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6540 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6541 else
6542 { echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6; }
6544 fi
6545
6546 if test "x$ac_ct_OBJDUMP" = x; then
6547 OBJDUMP="false"
6548 else
6549 case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6552 whose name does not start with the host triplet. If you think this
6553 configuration is useful to you, please write to [email protected]." >&5
6554 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6555 whose name does not start with the host triplet. If you think this
6556 configuration is useful to you, please write to [email protected]." >&2;}
6557 ac_tool_warned=yes ;;
6558 esac
6559 OBJDUMP=$ac_ct_OBJDUMP
6560 fi
6561 else
6562 OBJDUMP="$ac_cv_prog_OBJDUMP"
6563 fi
6564
6565 ;;
6566 esac
6567
6568 test -z "$AS" && AS=as
6569
6570
6571
6572
6573
6574 test -z "$DLLTOOL" && DLLTOOL=dlltool
6575
6576
6577
6578
6579
6580 test -z "$OBJDUMP" && OBJDUMP=objdump
6581
6582
6583
6584
6585
6586
6587
6588 enable_dlopen=no
6589
6590
6591
6592 # Check whether --enable-shared was given.
6593 if test "${enable_shared+set}" = set; then
6594 enableval=$enable_shared; p=${PACKAGE-default}
6595 case $enableval in
6596 yes) enable_shared=yes ;;
6597 no) enable_shared=no ;;
6598 *)
6599 enable_shared=no
6600 # Look at the argument we got. We use all the common list separators.
6601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6602 for pkg in $enableval; do
6603 IFS="$lt_save_ifs"
6604 if test "X$pkg" = "X$p"; then
6605 enable_shared=yes
6606 fi
6607 done
6608 IFS="$lt_save_ifs"
6609 ;;
6610 esac
6611 else
6612 enable_shared=yes
6613 fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 # Check whether --enable-static was given.
6624 if test "${enable_static+set}" = set; then
6625 enableval=$enable_static; p=${PACKAGE-default}
6626 case $enableval in
6627 yes) enable_static=yes ;;
6628 no) enable_static=no ;;
6629 *)
6630 enable_static=no
6631 # Look at the argument we got. We use all the common list separators.
6632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6633 for pkg in $enableval; do
6634 IFS="$lt_save_ifs"
6635 if test "X$pkg" = "X$p"; then
6636 enable_static=yes
6637 fi
6638 done
6639 IFS="$lt_save_ifs"
6640 ;;
6641 esac
6642 else
6643 enable_static=yes
6644 fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655 # Check whether --with-pic was given.
6656 if test "${with_pic+set}" = set; then
6657 withval=$with_pic; pic_mode="$withval"
6658 else
6659 pic_mode=default
6660 fi
6661
6662
6663 test -z "$pic_mode" && pic_mode=default
6664
6665
6666
6667
6668
6669
6670
6671 # Check whether --enable-fast-install was given.
6672 if test "${enable_fast_install+set}" = set; then
6673 enableval=$enable_fast_install; p=${PACKAGE-default}
6674 case $enableval in
6675 yes) enable_fast_install=yes ;;
6676 no) enable_fast_install=no ;;
6677 *)
6678 enable_fast_install=no
6679 # Look at the argument we got. We use all the common list separators.
6680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6681 for pkg in $enableval; do
6682 IFS="$lt_save_ifs"
6683 if test "X$pkg" = "X$p"; then
6684 enable_fast_install=yes
6685 fi
6686 done
6687 IFS="$lt_save_ifs"
6688 ;;
6689 esac
6690 else
6691 enable_fast_install=yes
6692 fi
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704 # This can be used to rebuild libtool when needed
6705 LIBTOOL_DEPS="$ltmain"
6706
6707 # Always use our own libtool.
6708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734 test -z "$LN_S" && LN_S="ln -s"
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 if test -n "${ZSH_VERSION+set}" ; then
6750 setopt NO_GLOB_SUBST
6751 fi
6752
6753 { echo "$as_me:$LINENO: checking for objdir" >&5
6754 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6755 if test "${lt_cv_objdir+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 rm -f .libs 2>/dev/null
6759 mkdir .libs 2>/dev/null
6760 if test -d .libs; then
6761 lt_cv_objdir=.libs
6762 else
6763 # MS-DOS does not allow filenames that begin with a dot.
6764 lt_cv_objdir=_libs
6765 fi
6766 rmdir .libs 2>/dev/null
6767 fi
6768 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6769 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6770 objdir=$lt_cv_objdir
6771
6772
6773
6774
6775
6776 cat >>confdefs.h <<_ACEOF
6777 #define LT_OBJDIR "$lt_cv_objdir/"
6778 _ACEOF
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 case $host_os in
6797 aix3*)
6798 # AIX sometimes has problems with the GCC collect2 program. For some
6799 # reason, if we set the COLLECT_NAMES environment variable, the problems
6800 # vanish in a puff of smoke.
6801 if test "X${COLLECT_NAMES+set}" != Xset; then
6802 COLLECT_NAMES=
6803 export COLLECT_NAMES
6804 fi
6805 ;;
6806 esac
6807
6808 # Sed substitution that helps us do robust quoting. It backslashifies
6809 # metacharacters that are still active within double-quoted strings.
6810 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6811
6812 # Same as above, but do not quote variable references.
6813 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6814
6815 # Sed substitution to delay expansion of an escaped shell variable in a
6816 # double_quote_subst'ed string.
6817 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6818
6819 # Sed substitution to delay expansion of an escaped single quote.
6820 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6821
6822 # Sed substitution to avoid accidental globbing in evaled expressions
6823 no_glob_subst='s/\*/\\\*/g'
6824
6825 # Global variables:
6826 ofile=libtool
6827 can_build_shared=yes
6828
6829 # All known linkers require a `.a' archive for static linking (except MSVC,
6830 # which needs '.lib').
6831 libext=a
6832
6833 with_gnu_ld="$lt_cv_prog_gnu_ld"
6834
6835 old_CC="$CC"
6836 old_CFLAGS="$CFLAGS"
6837
6838 # Set sane defaults for various variables
6839 test -z "$CC" && CC=cc
6840 test -z "$LTCC" && LTCC=$CC
6841 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6842 test -z "$LD" && LD=ld
6843 test -z "$ac_objext" && ac_objext=o
6844
6845 for cc_temp in $compiler""; do
6846 case $cc_temp in
6847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6849 \-*) ;;
6850 *) break;;
6851 esac
6852 done
6853 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6854
6855
6856 # Only perform the check for file, if the check method requires it
6857 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6858 case $deplibs_check_method in
6859 file_magic*)
6860 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6861 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6862 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 case $MAGIC_CMD in
6867 [\\/*] | ?:[\\/]*)
6868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6869 ;;
6870 *)
6871 lt_save_MAGIC_CMD="$MAGIC_CMD"
6872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6874 for ac_dir in $ac_dummy; do
6875 IFS="$lt_save_ifs"
6876 test -z "$ac_dir" && ac_dir=.
6877 if test -f $ac_dir/${ac_tool_prefix}file; then
6878 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6879 if test -n "$file_magic_test_file"; then
6880 case $deplibs_check_method in
6881 "file_magic "*)
6882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6885 $EGREP "$file_magic_regex" > /dev/null; then
6886 :
6887 else
6888 cat <<_LT_EOF 1>&2
6889
6890 *** Warning: the command libtool uses to detect shared libraries,
6891 *** $file_magic_cmd, produces output that libtool cannot recognize.
6892 *** The result is that libtool may fail to recognize shared libraries
6893 *** as such. This will affect the creation of libtool libraries that
6894 *** depend on shared libraries, but programs linked with such libtool
6895 *** libraries will work regardless of this problem. Nevertheless, you
6896 *** may want to report the problem to your system manager and/or to
6897 *** [email protected]
6898
6899 _LT_EOF
6900 fi ;;
6901 esac
6902 fi
6903 break
6904 fi
6905 done
6906 IFS="$lt_save_ifs"
6907 MAGIC_CMD="$lt_save_MAGIC_CMD"
6908 ;;
6909 esac
6910 fi
6911
6912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6913 if test -n "$MAGIC_CMD"; then
6914 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6915 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6916 else
6917 { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919 fi
6920
6921
6922
6923
6924
6925 if test -z "$lt_cv_path_MAGIC_CMD"; then
6926 if test -n "$ac_tool_prefix"; then
6927 { echo "$as_me:$LINENO: checking for file" >&5
6928 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 case $MAGIC_CMD in
6933 [\\/*] | ?:[\\/]*)
6934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6935 ;;
6936 *)
6937 lt_save_MAGIC_CMD="$MAGIC_CMD"
6938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6940 for ac_dir in $ac_dummy; do
6941 IFS="$lt_save_ifs"
6942 test -z "$ac_dir" && ac_dir=.
6943 if test -f $ac_dir/file; then
6944 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6945 if test -n "$file_magic_test_file"; then
6946 case $deplibs_check_method in
6947 "file_magic "*)
6948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6951 $EGREP "$file_magic_regex" > /dev/null; then
6952 :
6953 else
6954 cat <<_LT_EOF 1>&2
6955
6956 *** Warning: the command libtool uses to detect shared libraries,
6957 *** $file_magic_cmd, produces output that libtool cannot recognize.
6958 *** The result is that libtool may fail to recognize shared libraries
6959 *** as such. This will affect the creation of libtool libraries that
6960 *** depend on shared libraries, but programs linked with such libtool
6961 *** libraries will work regardless of this problem. Nevertheless, you
6962 *** may want to report the problem to your system manager and/or to
6963 *** [email protected]
6964
6965 _LT_EOF
6966 fi ;;
6967 esac
6968 fi
6969 break
6970 fi
6971 done
6972 IFS="$lt_save_ifs"
6973 MAGIC_CMD="$lt_save_MAGIC_CMD"
6974 ;;
6975 esac
6976 fi
6977
6978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979 if test -n "$MAGIC_CMD"; then
6980 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6981 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6982 else
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988 else
6989 MAGIC_CMD=:
6990 fi
6991 fi
6992
6993 fi
6994 ;;
6995 esac
6996
6997 # Use C for the default configuration in the libtool script
6998
6999 lt_save_CC="$CC"
7000 ac_ext=c
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005
7006
7007 # Source file extension for C test sources.
7008 ac_ext=c
7009
7010 # Object file extension for compiled C test sources.
7011 objext=o
7012 objext=$objext
7013
7014 # Code to be used in simple compile tests
7015 lt_simple_compile_test_code="int some_variable = 0;"
7016
7017 # Code to be used in simple link tests
7018 lt_simple_link_test_code='int main(){return(0);}'
7019
7020
7021
7022
7023
7024
7025
7026 # If no C compiler was specified, use CC.
7027 LTCC=${LTCC-"$CC"}
7028
7029 # If no C compiler flags were specified, use CFLAGS.
7030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7031
7032 # Allow CC to be a program name with arguments.
7033 compiler=$CC
7034
7035 # Save the default compiler, since it gets overwritten when the other
7036 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7037 compiler_DEFAULT=$CC
7038
7039 # save warnings/boilerplate of simple test code
7040 ac_outfile=conftest.$ac_objext
7041 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7042 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7043 _lt_compiler_boilerplate=`cat conftest.err`
7044 $RM conftest*
7045
7046 ac_outfile=conftest.$ac_objext
7047 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7048 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7049 _lt_linker_boilerplate=`cat conftest.err`
7050 $RM -r conftest*
7051
7052
7053 ## CAVEAT EMPTOR:
7054 ## There is no encapsulation within the following macros, do not change
7055 ## the running order or otherwise move them around unless you know exactly
7056 ## what you are doing...
7057 if test -n "$compiler"; then
7058
7059 lt_prog_compiler_no_builtin_flag=
7060
7061 if test "$GCC" = yes; then
7062 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7063
7064 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7065 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7066 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 lt_cv_prog_compiler_rtti_exceptions=no
7070 ac_outfile=conftest.$ac_objext
7071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7072 lt_compiler_flag="-fno-rtti -fno-exceptions"
7073 # Insert the option either (1) after the last *FLAGS variable, or
7074 # (2) before a word containing "conftest.", or (3) at the end.
7075 # Note that $ac_compile itself does not contain backslashes and begins
7076 # with a dollar sign (not a hyphen), so the echo should work correctly.
7077 # The option is referenced via a variable to avoid confusing sed.
7078 lt_compile=`echo "$ac_compile" | $SED \
7079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7081 -e 's:$: $lt_compiler_flag:'`
7082 (eval echo "\"\$as_me:7082: $lt_compile\"" >&5)
7083 (eval "$lt_compile" 2>conftest.err)
7084 ac_status=$?
7085 cat conftest.err >&5
7086 echo "$as_me:7086: \$? = $ac_status" >&5
7087 if (exit $ac_status) && test -s "$ac_outfile"; then
7088 # The compiler can only warn and ignore the option if not recognized
7089 # So say no if there are warnings other than the usual output.
7090 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7093 lt_cv_prog_compiler_rtti_exceptions=yes
7094 fi
7095 fi
7096 $RM conftest*
7097
7098 fi
7099 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7100 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7101
7102 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7103 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7104 else
7105 :
7106 fi
7107
7108 fi
7109
7110
7111
7112
7113
7114
7115 lt_prog_compiler_wl=
7116 lt_prog_compiler_pic=
7117 lt_prog_compiler_static=
7118
7119 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7120 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7121
7122 if test "$GCC" = yes; then
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_static='-static'
7125
7126 case $host_os in
7127 aix*)
7128 # All AIX code is PIC.
7129 if test "$host_cpu" = ia64; then
7130 # AIX 5 now supports IA64 processor
7131 lt_prog_compiler_static='-Bstatic'
7132 fi
7133 ;;
7134
7135 amigaos*)
7136 case $host_cpu in
7137 powerpc)
7138 # see comment about AmigaOS4 .so support
7139 lt_prog_compiler_pic='-fPIC'
7140 ;;
7141 m68k)
7142 # FIXME: we need at least 68020 code to build shared libraries, but
7143 # adding the `-m68020' flag to GCC prevents building anything better,
7144 # like `-m68040'.
7145 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7146 ;;
7147 esac
7148 ;;
7149
7150 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7151 # PIC is the default for these OSes.
7152 ;;
7153
7154 mingw* | cygwin* | pw32* | os2* | cegcc*)
7155 # This hack is so that the source file can tell whether it is being
7156 # built for inclusion in a dll (and should export symbols for example).
7157 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7158 # (--disable-auto-import) libraries
7159 lt_prog_compiler_pic='-DDLL_EXPORT'
7160 ;;
7161
7162 darwin* | rhapsody*)
7163 # PIC is the default on this platform
7164 # Common symbols not allowed in MH_DYLIB files
7165 lt_prog_compiler_pic='-fno-common'
7166 ;;
7167
7168 hpux*)
7169 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7170 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7171 # sets the default TLS model and affects inlining.
7172 case $host_cpu in
7173 hppa*64*)
7174 # +Z the default
7175 ;;
7176 *)
7177 lt_prog_compiler_pic='-fPIC'
7178 ;;
7179 esac
7180 ;;
7181
7182 interix[3-9]*)
7183 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7184 # Instead, we relocate shared libraries at runtime.
7185 ;;
7186
7187 msdosdjgpp*)
7188 # Just because we use GCC doesn't mean we suddenly get shared libraries
7189 # on systems that don't support them.
7190 lt_prog_compiler_can_build_shared=no
7191 enable_shared=no
7192 ;;
7193
7194 *nto* | *qnx*)
7195 # QNX uses GNU C++, but need to define -shared option too, otherwise
7196 # it will coredump.
7197 lt_prog_compiler_pic='-fPIC -shared'
7198 ;;
7199
7200 sysv4*MP*)
7201 if test -d /usr/nec; then
7202 lt_prog_compiler_pic=-Kconform_pic
7203 fi
7204 ;;
7205
7206 *)
7207 lt_prog_compiler_pic='-fPIC'
7208 ;;
7209 esac
7210 else
7211 # PORTME Check for flag to pass linker flags through the system compiler.
7212 case $host_os in
7213 aix*)
7214 lt_prog_compiler_wl='-Wl,'
7215 if test "$host_cpu" = ia64; then
7216 # AIX 5 now supports IA64 processor
7217 lt_prog_compiler_static='-Bstatic'
7218 else
7219 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7220 fi
7221 ;;
7222
7223 mingw* | cygwin* | pw32* | os2* | cegcc*)
7224 # This hack is so that the source file can tell whether it is being
7225 # built for inclusion in a dll (and should export symbols for example).
7226 lt_prog_compiler_pic='-DDLL_EXPORT'
7227 ;;
7228
7229 hpux9* | hpux10* | hpux11*)
7230 lt_prog_compiler_wl='-Wl,'
7231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7232 # not for PA HP-UX.
7233 case $host_cpu in
7234 hppa*64*|ia64*)
7235 # +Z the default
7236 ;;
7237 *)
7238 lt_prog_compiler_pic='+Z'
7239 ;;
7240 esac
7241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7242 lt_prog_compiler_static='${wl}-a ${wl}archive'
7243 ;;
7244
7245 irix5* | irix6* | nonstopux*)
7246 lt_prog_compiler_wl='-Wl,'
7247 # PIC (with -KPIC) is the default.
7248 lt_prog_compiler_static='-non_shared'
7249 ;;
7250
7251 linux* | k*bsd*-gnu)
7252 case $cc_basename in
7253 # old Intel for x86_64 which still supported -KPIC.
7254 ecc*)
7255 lt_prog_compiler_wl='-Wl,'
7256 lt_prog_compiler_pic='-KPIC'
7257 lt_prog_compiler_static='-static'
7258 ;;
7259 # icc used to be incompatible with GCC.
7260 # ICC 10 doesn't accept -KPIC any more.
7261 icc* | ifort*)
7262 lt_prog_compiler_wl='-Wl,'
7263 lt_prog_compiler_pic='-fPIC'
7264 lt_prog_compiler_static='-static'
7265 ;;
7266 # Lahey Fortran 8.1.
7267 lf95*)
7268 lt_prog_compiler_wl='-Wl,'
7269 lt_prog_compiler_pic='--shared'
7270 lt_prog_compiler_static='--static'
7271 ;;
7272 pgcc* | pgf77* | pgf90* | pgf95*)
7273 # Portland Group compilers (*not* the Pentium gcc compiler,
7274 # which looks to be a dead project)
7275 lt_prog_compiler_wl='-Wl,'
7276 lt_prog_compiler_pic='-fpic'
7277 lt_prog_compiler_static='-Bstatic'
7278 ;;
7279 ccc*)
7280 lt_prog_compiler_wl='-Wl,'
7281 # All Alpha code is PIC.
7282 lt_prog_compiler_static='-non_shared'
7283 ;;
7284 xl*)
7285 # IBM XL C 8.0/Fortran 10.1 on PPC
7286 lt_prog_compiler_wl='-Wl,'
7287 lt_prog_compiler_pic='-qpic'
7288 lt_prog_compiler_static='-qstaticlink'
7289 ;;
7290 *)
7291 case `$CC -V 2>&1 | sed 5q` in
7292 *Sun\ C*)
7293 # Sun C 5.9
7294 lt_prog_compiler_pic='-KPIC'
7295 lt_prog_compiler_static='-Bstatic'
7296 lt_prog_compiler_wl='-Wl,'
7297 ;;
7298 *Sun\ F*)
7299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7300 lt_prog_compiler_pic='-KPIC'
7301 lt_prog_compiler_static='-Bstatic'
7302 lt_prog_compiler_wl=''
7303 ;;
7304 esac
7305 ;;
7306 esac
7307 ;;
7308
7309 newsos6)
7310 lt_prog_compiler_pic='-KPIC'
7311 lt_prog_compiler_static='-Bstatic'
7312 ;;
7313
7314 *nto* | *qnx*)
7315 # QNX uses GNU C++, but need to define -shared option too, otherwise
7316 # it will coredump.
7317 lt_prog_compiler_pic='-fPIC -shared'
7318 ;;
7319
7320 osf3* | osf4* | osf5*)
7321 lt_prog_compiler_wl='-Wl,'
7322 # All OSF/1 code is PIC.
7323 lt_prog_compiler_static='-non_shared'
7324 ;;
7325
7326 rdos*)
7327 lt_prog_compiler_static='-non_shared'
7328 ;;
7329
7330 solaris*)
7331 lt_prog_compiler_pic='-KPIC'
7332 lt_prog_compiler_static='-Bstatic'
7333 case $cc_basename in
7334 f77* | f90* | f95*)
7335 lt_prog_compiler_wl='-Qoption ld ';;
7336 *)
7337 lt_prog_compiler_wl='-Wl,';;
7338 esac
7339 ;;
7340
7341 sunos4*)
7342 lt_prog_compiler_wl='-Qoption ld '
7343 lt_prog_compiler_pic='-PIC'
7344 lt_prog_compiler_static='-Bstatic'
7345 ;;
7346
7347 sysv4 | sysv4.2uw2* | sysv4.3*)
7348 lt_prog_compiler_wl='-Wl,'
7349 lt_prog_compiler_pic='-KPIC'
7350 lt_prog_compiler_static='-Bstatic'
7351 ;;
7352
7353 sysv4*MP*)
7354 if test -d /usr/nec ;then
7355 lt_prog_compiler_pic='-Kconform_pic'
7356 lt_prog_compiler_static='-Bstatic'
7357 fi
7358 ;;
7359
7360 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7361 lt_prog_compiler_wl='-Wl,'
7362 lt_prog_compiler_pic='-KPIC'
7363 lt_prog_compiler_static='-Bstatic'
7364 ;;
7365
7366 unicos*)
7367 lt_prog_compiler_wl='-Wl,'
7368 lt_prog_compiler_can_build_shared=no
7369 ;;
7370
7371 uts4*)
7372 lt_prog_compiler_pic='-pic'
7373 lt_prog_compiler_static='-Bstatic'
7374 ;;
7375
7376 *)
7377 lt_prog_compiler_can_build_shared=no
7378 ;;
7379 esac
7380 fi
7381
7382 case $host_os in
7383 # For platforms which do not support PIC, -DPIC is meaningless:
7384 *djgpp*)
7385 lt_prog_compiler_pic=
7386 ;;
7387 *)
7388 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7389 ;;
7390 esac
7391 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7392 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7393
7394
7395
7396
7397
7398
7399 #
7400 # Check to make sure the PIC flag actually works.
7401 #
7402 if test -n "$lt_prog_compiler_pic"; then
7403 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7404 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7405 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 lt_cv_prog_compiler_pic_works=no
7409 ac_outfile=conftest.$ac_objext
7410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7411 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7412 # Insert the option either (1) after the last *FLAGS variable, or
7413 # (2) before a word containing "conftest.", or (3) at the end.
7414 # Note that $ac_compile itself does not contain backslashes and begins
7415 # with a dollar sign (not a hyphen), so the echo should work correctly.
7416 # The option is referenced via a variable to avoid confusing sed.
7417 lt_compile=`echo "$ac_compile" | $SED \
7418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7420 -e 's:$: $lt_compiler_flag:'`
7421 (eval echo "\"\$as_me:7421: $lt_compile\"" >&5)
7422 (eval "$lt_compile" 2>conftest.err)
7423 ac_status=$?
7424 cat conftest.err >&5
7425 echo "$as_me:7425: \$? = $ac_status" >&5
7426 if (exit $ac_status) && test -s "$ac_outfile"; then
7427 # The compiler can only warn and ignore the option if not recognized
7428 # So say no if there are warnings other than the usual output.
7429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7432 lt_cv_prog_compiler_pic_works=yes
7433 fi
7434 fi
7435 $RM conftest*
7436
7437 fi
7438 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7439 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7440
7441 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7442 case $lt_prog_compiler_pic in
7443 "" | " "*) ;;
7444 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7445 esac
7446 else
7447 lt_prog_compiler_pic=
7448 lt_prog_compiler_can_build_shared=no
7449 fi
7450
7451 fi
7452
7453
7454
7455
7456
7457
7458 #
7459 # Check to make sure the static flag actually works.
7460 #
7461 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7462 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7463 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7464 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467 lt_cv_prog_compiler_static_works=no
7468 save_LDFLAGS="$LDFLAGS"
7469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7472 # The linker can only warn and ignore the option if not recognized
7473 # So say no if there are warnings
7474 if test -s conftest.err; then
7475 # Append any errors to the config.log.
7476 cat conftest.err 1>&5
7477 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7479 if diff conftest.exp conftest.er2 >/dev/null; then
7480 lt_cv_prog_compiler_static_works=yes
7481 fi
7482 else
7483 lt_cv_prog_compiler_static_works=yes
7484 fi
7485 fi
7486 $RM -r conftest*
7487 LDFLAGS="$save_LDFLAGS"
7488
7489 fi
7490 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7491 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7492
7493 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7494 :
7495 else
7496 lt_prog_compiler_static=
7497 fi
7498
7499
7500
7501
7502
7503
7504
7505 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7506 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7507 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 lt_cv_prog_compiler_c_o=no
7511 $RM -r conftest 2>/dev/null
7512 mkdir conftest
7513 cd conftest
7514 mkdir out
7515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7516
7517 lt_compiler_flag="-o out/conftest2.$ac_objext"
7518 # Insert the option either (1) after the last *FLAGS variable, or
7519 # (2) before a word containing "conftest.", or (3) at the end.
7520 # Note that $ac_compile itself does not contain backslashes and begins
7521 # with a dollar sign (not a hyphen), so the echo should work correctly.
7522 lt_compile=`echo "$ac_compile" | $SED \
7523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7525 -e 's:$: $lt_compiler_flag:'`
7526 (eval echo "\"\$as_me:7526: $lt_compile\"" >&5)
7527 (eval "$lt_compile" 2>out/conftest.err)
7528 ac_status=$?
7529 cat out/conftest.err >&5
7530 echo "$as_me:7530: \$? = $ac_status" >&5
7531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7532 then
7533 # The compiler can only warn and ignore the option if not recognized
7534 # So say no if there are warnings
7535 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7538 lt_cv_prog_compiler_c_o=yes
7539 fi
7540 fi
7541 chmod u+w . 2>&5
7542 $RM conftest*
7543 # SGI C++ compiler will create directory out/ii_files/ for
7544 # template instantiation
7545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7546 $RM out/* && rmdir out
7547 cd ..
7548 $RM -r conftest
7549 $RM conftest*
7550
7551 fi
7552 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7553 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7554
7555
7556
7557
7558
7559
7560 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7561 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 lt_cv_prog_compiler_c_o=no
7566 $RM -r conftest 2>/dev/null
7567 mkdir conftest
7568 cd conftest
7569 mkdir out
7570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7571
7572 lt_compiler_flag="-o out/conftest2.$ac_objext"
7573 # Insert the option either (1) after the last *FLAGS variable, or
7574 # (2) before a word containing "conftest.", or (3) at the end.
7575 # Note that $ac_compile itself does not contain backslashes and begins
7576 # with a dollar sign (not a hyphen), so the echo should work correctly.
7577 lt_compile=`echo "$ac_compile" | $SED \
7578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7580 -e 's:$: $lt_compiler_flag:'`
7581 (eval echo "\"\$as_me:7581: $lt_compile\"" >&5)
7582 (eval "$lt_compile" 2>out/conftest.err)
7583 ac_status=$?
7584 cat out/conftest.err >&5
7585 echo "$as_me:7585: \$? = $ac_status" >&5
7586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7587 then
7588 # The compiler can only warn and ignore the option if not recognized
7589 # So say no if there are warnings
7590 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7593 lt_cv_prog_compiler_c_o=yes
7594 fi
7595 fi
7596 chmod u+w . 2>&5
7597 $RM conftest*
7598 # SGI C++ compiler will create directory out/ii_files/ for
7599 # template instantiation
7600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7601 $RM out/* && rmdir out
7602 cd ..
7603 $RM -r conftest
7604 $RM conftest*
7605
7606 fi
7607 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7608 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7609
7610
7611
7612
7613 hard_links="nottested"
7614 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7615 # do not overwrite the value of need_locks provided by the user
7616 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7617 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7618 hard_links=yes
7619 $RM conftest*
7620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7621 touch conftest.a
7622 ln conftest.a conftest.b 2>&5 || hard_links=no
7623 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7624 { echo "$as_me:$LINENO: result: $hard_links" >&5
7625 echo "${ECHO_T}$hard_links" >&6; }
7626 if test "$hard_links" = no; then
7627 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7628 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7629 need_locks=warn
7630 fi
7631 else
7632 need_locks=no
7633 fi
7634
7635
7636
7637
7638
7639
7640 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7641 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7642
7643 runpath_var=
7644 allow_undefined_flag=
7645 always_export_symbols=no
7646 archive_cmds=
7647 archive_expsym_cmds=
7648 compiler_needs_object=no
7649 enable_shared_with_static_runtimes=no
7650 export_dynamic_flag_spec=
7651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7652 hardcode_automatic=no
7653 hardcode_direct=no
7654 hardcode_direct_absolute=no
7655 hardcode_libdir_flag_spec=
7656 hardcode_libdir_flag_spec_ld=
7657 hardcode_libdir_separator=
7658 hardcode_minus_L=no
7659 hardcode_shlibpath_var=unsupported
7660 inherit_rpath=no
7661 link_all_deplibs=unknown
7662 module_cmds=
7663 module_expsym_cmds=
7664 old_archive_from_new_cmds=
7665 old_archive_from_expsyms_cmds=
7666 thread_safe_flag_spec=
7667 whole_archive_flag_spec=
7668 # include_expsyms should be a list of space-separated symbols to be *always*
7669 # included in the symbol list
7670 include_expsyms=
7671 # exclude_expsyms can be an extended regexp of symbols to exclude
7672 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7674 # as well as any symbol that contains `d'.
7675 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7677 # platforms (ab)use it in PIC code, but their linkers get confused if
7678 # the symbol is explicitly referenced. Since portable code cannot
7679 # rely on this symbol name, it's probably fine to never include it in
7680 # preloaded symbol tables.
7681 # Exclude shared library initialization/finalization symbols.
7682 extract_expsyms_cmds=
7683
7684 case $host_os in
7685 cygwin* | mingw* | pw32* | cegcc*)
7686 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7687 # When not using gcc, we currently assume that we are using
7688 # Microsoft Visual C++.
7689 if test "$GCC" != yes; then
7690 with_gnu_ld=no
7691 fi
7692 ;;
7693 interix*)
7694 # we just hope/assume this is gcc and not c89 (= MSVC++)
7695 with_gnu_ld=yes
7696 ;;
7697 openbsd*)
7698 with_gnu_ld=no
7699 ;;
7700 esac
7701
7702 ld_shlibs=yes
7703 if test "$with_gnu_ld" = yes; then
7704 # If archive_cmds runs LD, not CC, wlarc should be empty
7705 wlarc='${wl}'
7706
7707 # Set some defaults for GNU ld with shared library support. These
7708 # are reset later if shared libraries are not supported. Putting them
7709 # here allows them to be overridden if necessary.
7710 runpath_var=LD_RUN_PATH
7711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7712 export_dynamic_flag_spec='${wl}--export-dynamic'
7713 # ancient GNU ld didn't support --whole-archive et. al.
7714 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7715 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7716 else
7717 whole_archive_flag_spec=
7718 fi
7719 supports_anon_versioning=no
7720 case `$LD -v 2>&1` in
7721 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7722 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7723 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7724 *\ 2.11.*) ;; # other 2.11 versions
7725 *) supports_anon_versioning=yes ;;
7726 esac
7727
7728 # See if GNU ld supports shared libraries.
7729 case $host_os in
7730 aix[3-9]*)
7731 # On AIX/PPC, the GNU linker is very broken
7732 if test "$host_cpu" != ia64; then
7733 ld_shlibs=no
7734 cat <<_LT_EOF 1>&2
7735
7736 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7737 *** to be unable to reliably create shared libraries on AIX.
7738 *** Therefore, libtool is disabling shared libraries support. If you
7739 *** really care for shared libraries, you may want to modify your PATH
7740 *** so that a non-GNU linker is found, and then restart.
7741
7742 _LT_EOF
7743 fi
7744 ;;
7745
7746 amigaos*)
7747 case $host_cpu in
7748 powerpc)
7749 # see comment about AmigaOS4 .so support
7750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7751 archive_expsym_cmds=''
7752 ;;
7753 m68k)
7754 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)'
7755 hardcode_libdir_flag_spec='-L$libdir'
7756 hardcode_minus_L=yes
7757 ;;
7758 esac
7759 ;;
7760
7761 beos*)
7762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7763 allow_undefined_flag=unsupported
7764 # Joseph Beckenbach <[email protected]> says some releases of gcc
7765 # support --undefined. This deserves some investigation. FIXME
7766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7767 else
7768 ld_shlibs=no
7769 fi
7770 ;;
7771
7772 cygwin* | mingw* | pw32* | cegcc*)
7773 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7774 # as there is no search path for DLLs.
7775 hardcode_libdir_flag_spec='-L$libdir'
7776 allow_undefined_flag=unsupported
7777 always_export_symbols=no
7778 enable_shared_with_static_runtimes=yes
7779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7780
7781 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7783 # If the export-symbols file already is a .def file (1st line
7784 # is EXPORTS), use it as is; otherwise, prepend...
7785 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7786 cp $export_symbols $output_objdir/$soname.def;
7787 else
7788 echo EXPORTS > $output_objdir/$soname.def;
7789 cat $export_symbols >> $output_objdir/$soname.def;
7790 fi~
7791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7792 else
7793 ld_shlibs=no
7794 fi
7795 ;;
7796
7797 interix[3-9]*)
7798 hardcode_direct=no
7799 hardcode_shlibpath_var=no
7800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7801 export_dynamic_flag_spec='${wl}-E'
7802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7803 # Instead, shared libraries are loaded at an image base (0x10000000 by
7804 # default) and relocated if they conflict, which is a slow very memory
7805 # consuming and fragmenting process. To avoid this, we pick a random,
7806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7809 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'
7810 ;;
7811
7812 gnu* | linux* | tpf* | k*bsd*-gnu)
7813 tmp_diet=no
7814 if test "$host_os" = linux-dietlibc; then
7815 case $cc_basename in
7816 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7817 esac
7818 fi
7819 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7820 && test "$tmp_diet" = no
7821 then
7822 tmp_addflag=
7823 tmp_sharedflag='-shared'
7824 case $cc_basename,$host_cpu in
7825 pgcc*) # Portland Group C compiler
7826 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'
7827 tmp_addflag=' $pic_flag'
7828 ;;
7829 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7830 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'
7831 tmp_addflag=' $pic_flag -Mnomain' ;;
7832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7833 tmp_addflag=' -i_dynamic' ;;
7834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7835 tmp_addflag=' -i_dynamic -nofor_main' ;;
7836 ifc* | ifort*) # Intel Fortran compiler
7837 tmp_addflag=' -nofor_main' ;;
7838 lf95*) # Lahey Fortran 8.1
7839 whole_archive_flag_spec=
7840 tmp_sharedflag='--shared' ;;
7841 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7842 tmp_sharedflag='-qmkshrobj'
7843 tmp_addflag= ;;
7844 esac
7845 case `$CC -V 2>&1 | sed 5q` in
7846 *Sun\ C*) # Sun C 5.9
7847 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'
7848 compiler_needs_object=yes
7849 tmp_sharedflag='-G' ;;
7850 *Sun\ F*) # Sun Fortran 8.3
7851 tmp_sharedflag='-G' ;;
7852 esac
7853 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854
7855 if test "x$supports_anon_versioning" = xyes; then
7856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7858 echo "local: *; };" >> $output_objdir/$libname.ver~
7859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7860 fi
7861
7862 case $cc_basename in
7863 xlf*)
7864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7865 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7866 hardcode_libdir_flag_spec=
7867 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7868 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7869 if test "x$supports_anon_versioning" = xyes; then
7870 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7872 echo "local: *; };" >> $output_objdir/$libname.ver~
7873 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7874 fi
7875 ;;
7876 esac
7877 else
7878 ld_shlibs=no
7879 fi
7880 ;;
7881
7882 netbsd*)
7883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7885 wlarc=
7886 else
7887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7889 fi
7890 ;;
7891
7892 solaris*)
7893 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7894 ld_shlibs=no
7895 cat <<_LT_EOF 1>&2
7896
7897 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7898 *** create shared libraries on Solaris systems. Therefore, libtool
7899 *** is disabling shared libraries support. We urge you to upgrade GNU
7900 *** binutils to release 2.9.1 or newer. Another option is to modify
7901 *** your PATH or compiler configuration so that the native linker is
7902 *** used, and then restart.
7903
7904 _LT_EOF
7905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7908 else
7909 ld_shlibs=no
7910 fi
7911 ;;
7912
7913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7914 case `$LD -v 2>&1` in
7915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7916 ld_shlibs=no
7917 cat <<_LT_EOF 1>&2
7918
7919 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7920 *** reliably create shared libraries on SCO systems. Therefore, libtool
7921 *** is disabling shared libraries support. We urge you to upgrade GNU
7922 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7923 *** your PATH or compiler configuration so that the native linker is
7924 *** used, and then restart.
7925
7926 _LT_EOF
7927 ;;
7928 *)
7929 # For security reasons, it is highly recommended that you always
7930 # use absolute paths for naming shared libraries, and exclude the
7931 # DT_RUNPATH tag from executables and libraries. But doing so
7932 # requires that you compile everything twice, which is a pain.
7933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7937 else
7938 ld_shlibs=no
7939 fi
7940 ;;
7941 esac
7942 ;;
7943
7944 sunos4*)
7945 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7946 wlarc=
7947 hardcode_direct=yes
7948 hardcode_shlibpath_var=no
7949 ;;
7950
7951 *)
7952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7955 else
7956 ld_shlibs=no
7957 fi
7958 ;;
7959 esac
7960
7961 if test "$ld_shlibs" = no; then
7962 runpath_var=
7963 hardcode_libdir_flag_spec=
7964 export_dynamic_flag_spec=
7965 whole_archive_flag_spec=
7966 fi
7967 else
7968 # PORTME fill in a description of your system's linker (not GNU ld)
7969 case $host_os in
7970 aix3*)
7971 allow_undefined_flag=unsupported
7972 always_export_symbols=yes
7973 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'
7974 # Note: this linker hardcodes the directories in LIBPATH if there
7975 # are no directories specified by -L.
7976 hardcode_minus_L=yes
7977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7978 # Neither direct hardcoding nor static linking is supported with a
7979 # broken collect2.
7980 hardcode_direct=unsupported
7981 fi
7982 ;;
7983
7984 aix[4-9]*)
7985 if test "$host_cpu" = ia64; then
7986 # On IA64, the linker does run time linking by default, so we don't
7987 # have to do anything special.
7988 aix_use_runtimelinking=no
7989 exp_sym_flag='-Bexport'
7990 no_entry_flag=""
7991 else
7992 # If we're using GNU nm, then we don't want the "-C" option.
7993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7994 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7995 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'
7996 else
7997 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'
7998 fi
7999 aix_use_runtimelinking=no
8000
8001 # Test if we are trying to use run time linking or normal
8002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8003 # need to do runtime linking.
8004 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8005 for ld_flag in $LDFLAGS; do
8006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8007 aix_use_runtimelinking=yes
8008 break
8009 fi
8010 done
8011 ;;
8012 esac
8013
8014 exp_sym_flag='-bexport'
8015 no_entry_flag='-bnoentry'
8016 fi
8017
8018 # When large executables or shared objects are built, AIX ld can
8019 # have problems creating the table of contents. If linking a library
8020 # or program results in "error TOC overflow" add -mminimal-toc to
8021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8023
8024 archive_cmds=''
8025 hardcode_direct=yes
8026 hardcode_direct_absolute=yes
8027 hardcode_libdir_separator=':'
8028 link_all_deplibs=yes
8029 file_list_spec='${wl}-f,'
8030
8031 if test "$GCC" = yes; then
8032 case $host_os in aix4.[012]|aix4.[012].*)
8033 # We only want to do this on AIX 4.2 and lower, the check
8034 # below for broken collect2 doesn't work under 4.3+
8035 collect2name=`${CC} -print-prog-name=collect2`
8036 if test -f "$collect2name" &&
8037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8038 then
8039 # We have reworked collect2
8040 :
8041 else
8042 # We have old collect2
8043 hardcode_direct=unsupported
8044 # It fails to find uninstalled libraries when the uninstalled
8045 # path is not listed in the libpath. Setting hardcode_minus_L
8046 # to unsupported forces relinking
8047 hardcode_minus_L=yes
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_libdir_separator=
8050 fi
8051 ;;
8052 esac
8053 shared_flag='-shared'
8054 if test "$aix_use_runtimelinking" = yes; then
8055 shared_flag="$shared_flag "'${wl}-G'
8056 fi
8057 else
8058 # not using gcc
8059 if test "$host_cpu" = ia64; then
8060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8061 # chokes on -Wl,-G. The following line is correct:
8062 shared_flag='-G'
8063 else
8064 if test "$aix_use_runtimelinking" = yes; then
8065 shared_flag='${wl}-G'
8066 else
8067 shared_flag='${wl}-bM:SRE'
8068 fi
8069 fi
8070 fi
8071
8072 export_dynamic_flag_spec='${wl}-bexpall'
8073 # It seems that -bexpall does not export symbols beginning with
8074 # underscore (_), so it is better to generate a list of symbols to export.
8075 always_export_symbols=yes
8076 if test "$aix_use_runtimelinking" = yes; then
8077 # Warning - without using the other runtime loading flags (-brtl),
8078 # -berok will link without error, but may produce a broken library.
8079 allow_undefined_flag='-berok'
8080 # Determine the default libpath from the value encoded in an
8081 # empty executable.
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088
8089 int
8090 main ()
8091 {
8092
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8099 case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102 esac
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest$ac_exeext &&
8114 $as_test_x conftest$ac_exeext; then
8115
8116 lt_aix_libpath_sed='
8117 /Import File Strings/,/^$/ {
8118 /^0/ {
8119 s/^0 *\(.*\)$/\1/
8120 p
8121 }
8122 }'
8123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8124 # Check for a 64-bit object if we didn't find anything.
8125 if test -z "$aix_libpath"; then
8126 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8127 fi
8128 else
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132
8133 fi
8134
8135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8136 conftest$ac_exeext conftest.$ac_ext
8137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8138
8139 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8140 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"
8141 else
8142 if test "$host_cpu" = ia64; then
8143 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8144 allow_undefined_flag="-z nodefs"
8145 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"
8146 else
8147 # Determine the default libpath from the value encoded in an
8148 # empty executable.
8149 cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h. */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155
8156 int
8157 main ()
8158 {
8159
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest$ac_exeext &&
8181 $as_test_x conftest$ac_exeext; then
8182
8183 lt_aix_libpath_sed='
8184 /Import File Strings/,/^$/ {
8185 /^0/ {
8186 s/^0 *\(.*\)$/\1/
8187 p
8188 }
8189 }'
8190 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8191 # Check for a 64-bit object if we didn't find anything.
8192 if test -z "$aix_libpath"; then
8193 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8194 fi
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199
8200 fi
8201
8202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203 conftest$ac_exeext conftest.$ac_ext
8204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8205
8206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8207 # Warning - without using the other run time loading flags,
8208 # -berok will link without error, but may produce a broken library.
8209 no_undefined_flag=' ${wl}-bernotok'
8210 allow_undefined_flag=' ${wl}-berok'
8211 # Exported symbols can be pulled into shared objects from archives
8212 whole_archive_flag_spec='$convenience'
8213 archive_cmds_need_lc=yes
8214 # This is similar to how AIX traditionally builds its shared libraries.
8215 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'
8216 fi
8217 fi
8218 ;;
8219
8220 amigaos*)
8221 case $host_cpu in
8222 powerpc)
8223 # see comment about AmigaOS4 .so support
8224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225 archive_expsym_cmds=''
8226 ;;
8227 m68k)
8228 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)'
8229 hardcode_libdir_flag_spec='-L$libdir'
8230 hardcode_minus_L=yes
8231 ;;
8232 esac
8233 ;;
8234
8235 bsdi[45]*)
8236 export_dynamic_flag_spec=-rdynamic
8237 ;;
8238
8239 cygwin* | mingw* | pw32* | cegcc*)
8240 # When not using gcc, we currently assume that we are using
8241 # Microsoft Visual C++.
8242 # hardcode_libdir_flag_spec is actually meaningless, as there is
8243 # no search path for DLLs.
8244 hardcode_libdir_flag_spec=' '
8245 allow_undefined_flag=unsupported
8246 # Tell ltmain to make .lib files, not .a files.
8247 libext=lib
8248 # Tell ltmain to make .dll files, not .so files.
8249 shrext_cmds=".dll"
8250 # FIXME: Setting linknames here is a bad hack.
8251 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8252 # The linker will automatically build a .lib file if we build a DLL.
8253 old_archive_from_new_cmds='true'
8254 # FIXME: Should let the user specify the lib program.
8255 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8256 fix_srcfile_path='`cygpath -w "$srcfile"`'
8257 enable_shared_with_static_runtimes=yes
8258 ;;
8259
8260 darwin* | rhapsody*)
8261
8262
8263 archive_cmds_need_lc=no
8264 hardcode_direct=no
8265 hardcode_automatic=yes
8266 hardcode_shlibpath_var=unsupported
8267 whole_archive_flag_spec=''
8268 link_all_deplibs=yes
8269 allow_undefined_flag="$_lt_dar_allow_undefined"
8270 case $cc_basename in
8271 ifort*) _lt_dar_can_shared=yes ;;
8272 *) _lt_dar_can_shared=$GCC ;;
8273 esac
8274 if test "$_lt_dar_can_shared" = "yes"; then
8275 output_verbose_link_cmd=echo
8276 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8277 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8278 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}"
8279 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}"
8280
8281 else
8282 ld_shlibs=no
8283 fi
8284
8285 ;;
8286
8287 dgux*)
8288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8289 hardcode_libdir_flag_spec='-L$libdir'
8290 hardcode_shlibpath_var=no
8291 ;;
8292
8293 freebsd1*)
8294 ld_shlibs=no
8295 ;;
8296
8297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8298 # support. Future versions do this automatically, but an explicit c++rt0.o
8299 # does not break anything, and helps significantly (at the cost of a little
8300 # extra space).
8301 freebsd2.2*)
8302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8303 hardcode_libdir_flag_spec='-R$libdir'
8304 hardcode_direct=yes
8305 hardcode_shlibpath_var=no
8306 ;;
8307
8308 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8309 freebsd2*)
8310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311 hardcode_direct=yes
8312 hardcode_minus_L=yes
8313 hardcode_shlibpath_var=no
8314 ;;
8315
8316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8317 freebsd* | dragonfly*)
8318 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8319 hardcode_libdir_flag_spec='-R$libdir'
8320 hardcode_direct=yes
8321 hardcode_shlibpath_var=no
8322 ;;
8323
8324 hpux9*)
8325 if test "$GCC" = yes; then
8326 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'
8327 else
8328 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'
8329 fi
8330 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8331 hardcode_libdir_separator=:
8332 hardcode_direct=yes
8333
8334 # hardcode_minus_L: Not really in the search PATH,
8335 # but as the default location of the library.
8336 hardcode_minus_L=yes
8337 export_dynamic_flag_spec='${wl}-E'
8338 ;;
8339
8340 hpux10*)
8341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8343 else
8344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8345 fi
8346 if test "$with_gnu_ld" = no; then
8347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8348 hardcode_libdir_flag_spec_ld='+b $libdir'
8349 hardcode_libdir_separator=:
8350 hardcode_direct=yes
8351 hardcode_direct_absolute=yes
8352 export_dynamic_flag_spec='${wl}-E'
8353 # hardcode_minus_L: Not really in the search PATH,
8354 # but as the default location of the library.
8355 hardcode_minus_L=yes
8356 fi
8357 ;;
8358
8359 hpux11*)
8360 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8361 case $host_cpu in
8362 hppa*64*)
8363 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8364 ;;
8365 ia64*)
8366 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8367 ;;
8368 *)
8369 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8370 ;;
8371 esac
8372 else
8373 case $host_cpu in
8374 hppa*64*)
8375 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8376 ;;
8377 ia64*)
8378 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8379 ;;
8380 *)
8381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8382 ;;
8383 esac
8384 fi
8385 if test "$with_gnu_ld" = no; then
8386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8387 hardcode_libdir_separator=:
8388
8389 case $host_cpu in
8390 hppa*64*|ia64*)
8391 hardcode_direct=no
8392 hardcode_shlibpath_var=no
8393 ;;
8394 *)
8395 hardcode_direct=yes
8396 hardcode_direct_absolute=yes
8397 export_dynamic_flag_spec='${wl}-E'
8398
8399 # hardcode_minus_L: Not really in the search PATH,
8400 # but as the default location of the library.
8401 hardcode_minus_L=yes
8402 ;;
8403 esac
8404 fi
8405 ;;
8406
8407 irix5* | irix6* | nonstopux*)
8408 if test "$GCC" = yes; then
8409 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'
8410 # Try to use the -exported_symbol ld option, if it does not
8411 # work, assume that -exports_file does not work either and
8412 # implicitly export all symbols.
8413 save_LDFLAGS="$LDFLAGS"
8414 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8415 cat >conftest.$ac_ext <<_ACEOF
8416 int foo(void) {}
8417 _ACEOF
8418 rm -f conftest.$ac_objext conftest$ac_exeext
8419 if { (ac_try="$ac_link"
8420 case "(($ac_try" in
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_link") 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && {
8432 test -z "$ac_c_werror_flag" ||
8433 test ! -s conftest.err
8434 } && test -s conftest$ac_exeext &&
8435 $as_test_x conftest$ac_exeext; then
8436 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'
8437
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442
8443 fi
8444
8445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8446 conftest$ac_exeext conftest.$ac_ext
8447 LDFLAGS="$save_LDFLAGS"
8448 else
8449 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'
8450 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'
8451 fi
8452 archive_cmds_need_lc='no'
8453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8454 hardcode_libdir_separator=:
8455 inherit_rpath=yes
8456 link_all_deplibs=yes
8457 ;;
8458
8459 netbsd*)
8460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8462 else
8463 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8464 fi
8465 hardcode_libdir_flag_spec='-R$libdir'
8466 hardcode_direct=yes
8467 hardcode_shlibpath_var=no
8468 ;;
8469
8470 newsos6)
8471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472 hardcode_direct=yes
8473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8474 hardcode_libdir_separator=:
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 *nto* | *qnx*)
8479 ;;
8480
8481 openbsd*)
8482 if test -f /usr/libexec/ld.so; then
8483 hardcode_direct=yes
8484 hardcode_shlibpath_var=no
8485 hardcode_direct_absolute=yes
8486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8488 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8489 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8490 export_dynamic_flag_spec='${wl}-E'
8491 else
8492 case $host_os in
8493 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8495 hardcode_libdir_flag_spec='-R$libdir'
8496 ;;
8497 *)
8498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8499 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8500 ;;
8501 esac
8502 fi
8503 else
8504 ld_shlibs=no
8505 fi
8506 ;;
8507
8508 os2*)
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 hardcode_minus_L=yes
8511 allow_undefined_flag=unsupported
8512 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'
8513 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8514 ;;
8515
8516 osf3*)
8517 if test "$GCC" = yes; then
8518 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8519 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'
8520 else
8521 allow_undefined_flag=' -expect_unresolved \*'
8522 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'
8523 fi
8524 archive_cmds_need_lc='no'
8525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526 hardcode_libdir_separator=:
8527 ;;
8528
8529 osf4* | osf5*) # as osf3* with the addition of -msym flag
8530 if test "$GCC" = yes; then
8531 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8532 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'
8533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8534 else
8535 allow_undefined_flag=' -expect_unresolved \*'
8536 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'
8537 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~
8538 $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'
8539
8540 # Both c and cxx compiler support -rpath directly
8541 hardcode_libdir_flag_spec='-rpath $libdir'
8542 fi
8543 archive_cmds_need_lc='no'
8544 hardcode_libdir_separator=:
8545 ;;
8546
8547 solaris*)
8548 no_undefined_flag=' -z defs'
8549 if test "$GCC" = yes; then
8550 wlarc='${wl}'
8551 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8553 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8554 else
8555 case `$CC -V 2>&1` in
8556 *"Compilers 5.0"*)
8557 wlarc=''
8558 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8560 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8561 ;;
8562 *)
8563 wlarc='${wl}'
8564 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8565 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8566 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8567 ;;
8568 esac
8569 fi
8570 hardcode_libdir_flag_spec='-R$libdir'
8571 hardcode_shlibpath_var=no
8572 case $host_os in
8573 solaris2.[0-5] | solaris2.[0-5].*) ;;
8574 *)
8575 # The compiler driver will combine and reorder linker options,
8576 # but understands `-z linker_flag'. GCC discards it without `$wl',
8577 # but is careful enough not to reorder.
8578 # Supported since Solaris 2.6 (maybe 2.5.1?)
8579 if test "$GCC" = yes; then
8580 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8581 else
8582 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8583 fi
8584 ;;
8585 esac
8586 link_all_deplibs=yes
8587 ;;
8588
8589 sunos4*)
8590 if test "x$host_vendor" = xsequent; then
8591 # Use $CC to link under sequent, because it throws in some extra .o
8592 # files that make .init and .fini sections work.
8593 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8594 else
8595 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8596 fi
8597 hardcode_libdir_flag_spec='-L$libdir'
8598 hardcode_direct=yes
8599 hardcode_minus_L=yes
8600 hardcode_shlibpath_var=no
8601 ;;
8602
8603 sysv4)
8604 case $host_vendor in
8605 sni)
8606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_direct=yes # is this really true???
8608 ;;
8609 siemens)
8610 ## LD is ld it makes a PLAMLIB
8611 ## CC just makes a GrossModule.
8612 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8613 reload_cmds='$CC -r -o $output$reload_objs'
8614 hardcode_direct=no
8615 ;;
8616 motorola)
8617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8618 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8619 ;;
8620 esac
8621 runpath_var='LD_RUN_PATH'
8622 hardcode_shlibpath_var=no
8623 ;;
8624
8625 sysv4.3*)
8626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627 hardcode_shlibpath_var=no
8628 export_dynamic_flag_spec='-Bexport'
8629 ;;
8630
8631 sysv4*MP*)
8632 if test -d /usr/nec; then
8633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8634 hardcode_shlibpath_var=no
8635 runpath_var=LD_RUN_PATH
8636 hardcode_runpath_var=yes
8637 ld_shlibs=yes
8638 fi
8639 ;;
8640
8641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8642 no_undefined_flag='${wl}-z,text'
8643 archive_cmds_need_lc=no
8644 hardcode_shlibpath_var=no
8645 runpath_var='LD_RUN_PATH'
8646
8647 if test "$GCC" = yes; then
8648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8650 else
8651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8653 fi
8654 ;;
8655
8656 sysv5* | sco3.2v5* | sco5v6*)
8657 # Note: We can NOT use -z defs as we might desire, because we do not
8658 # link with -lc, and that would cause any symbols used from libc to
8659 # always be unresolved, which means just about no library would
8660 # ever link correctly. If we're not using GNU ld we use -z text
8661 # though, which does catch some bad symbols but isn't as heavy-handed
8662 # as -z defs.
8663 no_undefined_flag='${wl}-z,text'
8664 allow_undefined_flag='${wl}-z,nodefs'
8665 archive_cmds_need_lc=no
8666 hardcode_shlibpath_var=no
8667 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8668 hardcode_libdir_separator=':'
8669 link_all_deplibs=yes
8670 export_dynamic_flag_spec='${wl}-Bexport'
8671 runpath_var='LD_RUN_PATH'
8672
8673 if test "$GCC" = yes; then
8674 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8675 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8676 else
8677 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8679 fi
8680 ;;
8681
8682 uts4*)
8683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_shlibpath_var=no
8686 ;;
8687
8688 *)
8689 ld_shlibs=no
8690 ;;
8691 esac
8692
8693 if test x$host_vendor = xsni; then
8694 case $host in
8695 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8696 export_dynamic_flag_spec='${wl}-Blargedynsym'
8697 ;;
8698 esac
8699 fi
8700 fi
8701
8702 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8703 echo "${ECHO_T}$ld_shlibs" >&6; }
8704 test "$ld_shlibs" = no && can_build_shared=no
8705
8706 with_gnu_ld=$with_gnu_ld
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722 #
8723 # Do we need to explicitly link libc?
8724 #
8725 case "x$archive_cmds_need_lc" in
8726 x|xyes)
8727 # Assume -lc should be added
8728 archive_cmds_need_lc=yes
8729
8730 if test "$enable_shared" = yes && test "$GCC" = yes; then
8731 case $archive_cmds in
8732 *'~'*)
8733 # FIXME: we may have to deal with multi-command sequences.
8734 ;;
8735 '$CC '*)
8736 # Test whether the compiler implicitly links with -lc since on some
8737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8738 # to ld, don't add -lc before -lgcc.
8739 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8741 $RM conftest*
8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743
8744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745 (eval $ac_compile) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } 2>conftest.err; then
8749 soname=conftest
8750 lib=conftest
8751 libobjs=conftest.$ac_objext
8752 deplibs=
8753 wl=$lt_prog_compiler_wl
8754 pic_flag=$lt_prog_compiler_pic
8755 compiler_flags=-v
8756 linker_flags=-v
8757 verstring=
8758 output_objdir=.
8759 libname=conftest
8760 lt_save_allow_undefined_flag=$allow_undefined_flag
8761 allow_undefined_flag=
8762 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8763 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }
8767 then
8768 archive_cmds_need_lc=no
8769 else
8770 archive_cmds_need_lc=yes
8771 fi
8772 allow_undefined_flag=$lt_save_allow_undefined_flag
8773 else
8774 cat conftest.err 1>&5
8775 fi
8776 $RM conftest*
8777 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8778 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8779 ;;
8780 esac
8781 fi
8782 ;;
8783 esac
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8942 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8943
8944 if test "$GCC" = yes; then
8945 case $host_os in
8946 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8947 *) lt_awk_arg="/^libraries:/" ;;
8948 esac
8949 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8950 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8951 # if the path contains ";" then we assume it to be the separator
8952 # otherwise default to the standard path separator (i.e. ":") - it is
8953 # assumed that no part of a normal pathname contains ";" but that should
8954 # okay in the real world where ";" in dirpaths is itself problematic.
8955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8956 else
8957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8958 fi
8959 # Ok, now we have the path, separated by spaces, we can step through it
8960 # and add multilib dir if necessary.
8961 lt_tmp_lt_search_path_spec=
8962 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8963 for lt_sys_path in $lt_search_path_spec; do
8964 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8966 else
8967 test -d "$lt_sys_path" && \
8968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8969 fi
8970 done
8971 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8972 BEGIN {RS=" "; FS="/|\n";} {
8973 lt_foo="";
8974 lt_count=0;
8975 for (lt_i = NF; lt_i > 0; lt_i--) {
8976 if ($lt_i != "" && $lt_i != ".") {
8977 if ($lt_i == "..") {
8978 lt_count++;
8979 } else {
8980 if (lt_count == 0) {
8981 lt_foo="/" $lt_i lt_foo;
8982 } else {
8983 lt_count--;
8984 }
8985 }
8986 }
8987 }
8988 if (lt_foo != "") { lt_freq[lt_foo]++; }
8989 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8990 }'`
8991 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8992 else
8993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8994 fi
8995 library_names_spec=
8996 libname_spec='lib$name'
8997 soname_spec=
8998 shrext_cmds=".so"
8999 postinstall_cmds=
9000 postuninstall_cmds=
9001 finish_cmds=
9002 finish_eval=
9003 shlibpath_var=
9004 shlibpath_overrides_runpath=unknown
9005 version_type=none
9006 dynamic_linker="$host_os ld.so"
9007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9008 need_lib_prefix=unknown
9009 hardcode_into_libs=no
9010
9011 # when you set need_version to no, make sure it does not cause -set_version
9012 # flags to be left without arguments
9013 need_version=unknown
9014
9015 case $host_os in
9016 aix3*)
9017 version_type=linux
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9019 shlibpath_var=LIBPATH
9020
9021 # AIX 3 has no versioning support, so we append a major version to the name.
9022 soname_spec='${libname}${release}${shared_ext}$major'
9023 ;;
9024
9025 aix[4-9]*)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 hardcode_into_libs=yes
9030 if test "$host_cpu" = ia64; then
9031 # AIX 5 supports IA64
9032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 else
9035 # With GCC up to 2.95.x, collect2 would create an import file
9036 # for dependence libraries. The import file would start with
9037 # the line `#! .'. This would cause the generated library to
9038 # depend on `.', always an invalid library. This was fixed in
9039 # development snapshots of GCC prior to 3.0.
9040 case $host_os in
9041 aix4 | aix4.[01] | aix4.[01].*)
9042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9043 echo ' yes '
9044 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9045 :
9046 else
9047 can_build_shared=no
9048 fi
9049 ;;
9050 esac
9051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9052 # soname into executable. Probably we can add versioning support to
9053 # collect2, so additional links can be useful in future.
9054 if test "$aix_use_runtimelinking" = yes; then
9055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9056 # instead of lib<name>.a to let people know that these are not
9057 # typical AIX shared libraries.
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 else
9060 # We preserve .a as extension for shared libraries through AIX4.2
9061 # and later when we are not doing run time linking.
9062 library_names_spec='${libname}${release}.a $libname.a'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 fi
9065 shlibpath_var=LIBPATH
9066 fi
9067 ;;
9068
9069 amigaos*)
9070 case $host_cpu in
9071 powerpc)
9072 # Since July 2007 AmigaOS4 officially supports .so libraries.
9073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 ;;
9076 m68k)
9077 library_names_spec='$libname.ixlibrary $libname.a'
9078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9079 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'
9080 ;;
9081 esac
9082 ;;
9083
9084 beos*)
9085 library_names_spec='${libname}${shared_ext}'
9086 dynamic_linker="$host_os ld.so"
9087 shlibpath_var=LIBRARY_PATH
9088 ;;
9089
9090 bsdi[45]*)
9091 version_type=linux
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9099 # the default ld.so.conf also contains /usr/contrib/lib and
9100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9101 # libtool to hard-code these into programs
9102 ;;
9103
9104 cygwin* | mingw* | pw32* | cegcc*)
9105 version_type=windows
9106 shrext_cmds=".dll"
9107 need_version=no
9108 need_lib_prefix=no
9109
9110 case $GCC,$host_os in
9111 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9112 library_names_spec='$libname.dll.a'
9113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9114 postinstall_cmds='base_file=`basename \${file}`~
9115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9116 dldir=$destdir/`dirname \$dlpath`~
9117 test -d \$dldir || mkdir -p \$dldir~
9118 $install_prog $dir/$dlname \$dldir/$dlname~
9119 chmod a+x \$dldir/$dlname~
9120 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9121 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9122 fi'
9123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9124 dlpath=$dir/\$dldll~
9125 $RM \$dlpath'
9126 shlibpath_overrides_runpath=yes
9127
9128 case $host_os in
9129 cygwin*)
9130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9131 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9132 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9134 ;;
9135 mingw* | cegcc*)
9136 # MinGW DLLs use traditional 'lib' prefix
9137 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9138 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9139 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9140 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9141 # It is most probably a Windows format PATH printed by
9142 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9143 # path with ; separators, and with drive letters. We can handle the
9144 # drive letters (cygwin fileutils understands them), so leave them,
9145 # especially as we might pass files found there to a mingw objdump,
9146 # which wouldn't understand a cygwinified path. Ahh.
9147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9148 else
9149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9150 fi
9151 ;;
9152 pw32*)
9153 # pw32 DLLs use 'pw' prefix rather than 'lib'
9154 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155 ;;
9156 esac
9157 ;;
9158
9159 *)
9160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9161 ;;
9162 esac
9163 dynamic_linker='Win32 ld.exe'
9164 # FIXME: first we should search . and the directory the executable is in
9165 shlibpath_var=PATH
9166 ;;
9167
9168 darwin* | rhapsody*)
9169 dynamic_linker="$host_os dyld"
9170 version_type=darwin
9171 need_lib_prefix=no
9172 need_version=no
9173 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9174 soname_spec='${libname}${release}${major}$shared_ext'
9175 shlibpath_overrides_runpath=yes
9176 shlibpath_var=DYLD_LIBRARY_PATH
9177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9178
9179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9181 ;;
9182
9183 dgux*)
9184 version_type=linux
9185 need_lib_prefix=no
9186 need_version=no
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 ;;
9191
9192 freebsd1*)
9193 dynamic_linker=no
9194 ;;
9195
9196 freebsd* | dragonfly*)
9197 # DragonFly does not have aout. When/if they implement a new
9198 # versioning mechanism, adjust this.
9199 if test -x /usr/bin/objformat; then
9200 objformat=`/usr/bin/objformat`
9201 else
9202 case $host_os in
9203 freebsd[123]*) objformat=aout ;;
9204 *) objformat=elf ;;
9205 esac
9206 fi
9207 version_type=freebsd-$objformat
9208 case $version_type in
9209 freebsd-elf*)
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9211 need_version=no
9212 need_lib_prefix=no
9213 ;;
9214 freebsd-*)
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9216 need_version=yes
9217 ;;
9218 esac
9219 shlibpath_var=LD_LIBRARY_PATH
9220 case $host_os in
9221 freebsd2*)
9222 shlibpath_overrides_runpath=yes
9223 ;;
9224 freebsd3.[01]* | freebsdelf3.[01]*)
9225 shlibpath_overrides_runpath=yes
9226 hardcode_into_libs=yes
9227 ;;
9228 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9229 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9230 shlibpath_overrides_runpath=no
9231 hardcode_into_libs=yes
9232 ;;
9233 *) # from 4.6 on, and DragonFly
9234 shlibpath_overrides_runpath=yes
9235 hardcode_into_libs=yes
9236 ;;
9237 esac
9238 ;;
9239
9240 gnu*)
9241 version_type=linux
9242 need_lib_prefix=no
9243 need_version=no
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 hardcode_into_libs=yes
9248 ;;
9249
9250 hpux9* | hpux10* | hpux11*)
9251 # Give a soname corresponding to the major version so that dld.sl refuses to
9252 # link against other versions.
9253 version_type=sunos
9254 need_lib_prefix=no
9255 need_version=no
9256 case $host_cpu in
9257 ia64*)
9258 shrext_cmds='.so'
9259 hardcode_into_libs=yes
9260 dynamic_linker="$host_os dld.so"
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 if test "X$HPUX_IA64_MODE" = X32; then
9266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9267 else
9268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9269 fi
9270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9271 ;;
9272 hppa*64*)
9273 shrext_cmds='.sl'
9274 hardcode_into_libs=yes
9275 dynamic_linker="$host_os dld.sl"
9276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9282 ;;
9283 *)
9284 shrext_cmds='.sl'
9285 dynamic_linker="$host_os dld.sl"
9286 shlibpath_var=SHLIB_PATH
9287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 ;;
9291 esac
9292 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9293 postinstall_cmds='chmod 555 $lib'
9294 ;;
9295
9296 interix[3-9]*)
9297 version_type=linux
9298 need_lib_prefix=no
9299 need_version=no
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=no
9305 hardcode_into_libs=yes
9306 ;;
9307
9308 irix5* | irix6* | nonstopux*)
9309 case $host_os in
9310 nonstopux*) version_type=nonstopux ;;
9311 *)
9312 if test "$lt_cv_prog_gnu_ld" = yes; then
9313 version_type=linux
9314 else
9315 version_type=irix
9316 fi ;;
9317 esac
9318 need_lib_prefix=no
9319 need_version=no
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9322 case $host_os in
9323 irix5* | nonstopux*)
9324 libsuff= shlibsuff=
9325 ;;
9326 *)
9327 case $LD in # libtool.m4 will add one of these switches to LD
9328 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9329 libsuff= shlibsuff= libmagic=32-bit;;
9330 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9331 libsuff=32 shlibsuff=N32 libmagic=N32;;
9332 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9333 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9334 *) libsuff= shlibsuff= libmagic=never-match;;
9335 esac
9336 ;;
9337 esac
9338 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9339 shlibpath_overrides_runpath=no
9340 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9341 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9342 hardcode_into_libs=yes
9343 ;;
9344
9345 # No shared lib support for Linux oldld, aout, or coff.
9346 linux*oldld* | linux*aout* | linux*coff*)
9347 dynamic_linker=no
9348 ;;
9349
9350 # This must be Linux ELF.
9351 linux* | k*bsd*-gnu)
9352 version_type=linux
9353 need_lib_prefix=no
9354 need_version=no
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 shlibpath_overrides_runpath=no
9360 # Some binutils ld are patched to set DT_RUNPATH
9361 save_LDFLAGS=$LDFLAGS
9362 save_libdir=$libdir
9363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9365 cat >conftest.$ac_ext <<_ACEOF
9366 /* confdefs.h. */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9371
9372 int
9373 main ()
9374 {
9375
9376 ;
9377 return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (ac_try="$ac_link"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_link") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest$ac_exeext &&
9397 $as_test_x conftest$ac_exeext; then
9398 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9399 shlibpath_overrides_runpath=yes
9400 fi
9401
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406
9407 fi
9408
9409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9410 conftest$ac_exeext conftest.$ac_ext
9411 LDFLAGS=$save_LDFLAGS
9412 libdir=$save_libdir
9413
9414 # This implies no fast_install, which is unacceptable.
9415 # Some rework will be needed to allow for fast_install
9416 # before this can be enabled.
9417 hardcode_into_libs=yes
9418
9419 # Append ld.so.conf contents to the search path
9420 if test -f /etc/ld.so.conf; then
9421 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' ' '`
9422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9423 fi
9424
9425 # We used to test for /lib/ld.so.1 and disable shared libraries on
9426 # powerpc, because MkLinux only supported shared libraries with the
9427 # GNU dynamic linker. Since this was broken with cross compilers,
9428 # most powerpc-linux boxes support dynamic linking these days and
9429 # people can always --disable-shared, the test was removed, and we
9430 # assume the GNU/Linux dynamic linker is in use.
9431 dynamic_linker='GNU/Linux ld.so'
9432 ;;
9433
9434 netbsd*)
9435 version_type=sunos
9436 need_lib_prefix=no
9437 need_version=no
9438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9441 dynamic_linker='NetBSD (a.out) ld.so'
9442 else
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 dynamic_linker='NetBSD ld.elf_so'
9446 fi
9447 shlibpath_var=LD_LIBRARY_PATH
9448 shlibpath_overrides_runpath=yes
9449 hardcode_into_libs=yes
9450 ;;
9451
9452 newsos6)
9453 version_type=linux
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=yes
9457 ;;
9458
9459 *nto* | *qnx*)
9460 version_type=qnx
9461 need_lib_prefix=no
9462 need_version=no
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 shlibpath_var=LD_LIBRARY_PATH
9466 shlibpath_overrides_runpath=no
9467 hardcode_into_libs=yes
9468 dynamic_linker='ldqnx.so'
9469 ;;
9470
9471 openbsd*)
9472 version_type=sunos
9473 sys_lib_dlsearch_path_spec="/usr/lib"
9474 need_lib_prefix=no
9475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9476 case $host_os in
9477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9478 *) need_version=no ;;
9479 esac
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9484 case $host_os in
9485 openbsd2.[89] | openbsd2.[89].*)
9486 shlibpath_overrides_runpath=no
9487 ;;
9488 *)
9489 shlibpath_overrides_runpath=yes
9490 ;;
9491 esac
9492 else
9493 shlibpath_overrides_runpath=yes
9494 fi
9495 ;;
9496
9497 os2*)
9498 libname_spec='$name'
9499 shrext_cmds=".dll"
9500 need_lib_prefix=no
9501 library_names_spec='$libname${shared_ext} $libname.a'
9502 dynamic_linker='OS/2 ld.exe'
9503 shlibpath_var=LIBPATH
9504 ;;
9505
9506 osf3* | osf4* | osf5*)
9507 version_type=osf
9508 need_lib_prefix=no
9509 need_version=no
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9515 ;;
9516
9517 rdos*)
9518 dynamic_linker=no
9519 ;;
9520
9521 solaris*)
9522 version_type=linux
9523 need_lib_prefix=no
9524 need_version=no
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 shlibpath_var=LD_LIBRARY_PATH
9528 shlibpath_overrides_runpath=yes
9529 hardcode_into_libs=yes
9530 # ldd complains unless libraries are executable
9531 postinstall_cmds='chmod +x $lib'
9532 ;;
9533
9534 sunos4*)
9535 version_type=sunos
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 shlibpath_overrides_runpath=yes
9540 if test "$with_gnu_ld" = yes; then
9541 need_lib_prefix=no
9542 fi
9543 need_version=yes
9544 ;;
9545
9546 sysv4 | sysv4.3*)
9547 version_type=linux
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 case $host_vendor in
9552 sni)
9553 shlibpath_overrides_runpath=no
9554 need_lib_prefix=no
9555 runpath_var=LD_RUN_PATH
9556 ;;
9557 siemens)
9558 need_lib_prefix=no
9559 ;;
9560 motorola)
9561 need_lib_prefix=no
9562 need_version=no
9563 shlibpath_overrides_runpath=no
9564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9565 ;;
9566 esac
9567 ;;
9568
9569 sysv4*MP*)
9570 if test -d /usr/nec ;then
9571 version_type=linux
9572 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9573 soname_spec='$libname${shared_ext}.$major'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 fi
9576 ;;
9577
9578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9579 version_type=freebsd-elf
9580 need_lib_prefix=no
9581 need_version=no
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 shlibpath_var=LD_LIBRARY_PATH
9585 shlibpath_overrides_runpath=yes
9586 hardcode_into_libs=yes
9587 if test "$with_gnu_ld" = yes; then
9588 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9589 else
9590 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9591 case $host_os in
9592 sco3.2v5*)
9593 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9594 ;;
9595 esac
9596 fi
9597 sys_lib_dlsearch_path_spec='/usr/lib'
9598 ;;
9599
9600 tpf*)
9601 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9602 version_type=linux
9603 need_lib_prefix=no
9604 need_version=no
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 shlibpath_overrides_runpath=no
9608 hardcode_into_libs=yes
9609 ;;
9610
9611 uts4*)
9612 version_type=linux
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614 soname_spec='${libname}${release}${shared_ext}$major'
9615 shlibpath_var=LD_LIBRARY_PATH
9616 ;;
9617
9618 *)
9619 dynamic_linker=no
9620 ;;
9621 esac
9622 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9623 echo "${ECHO_T}$dynamic_linker" >&6; }
9624 test "$dynamic_linker" = no && can_build_shared=no
9625
9626 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9627 if test "$GCC" = yes; then
9628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9629 fi
9630
9631 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9632 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9633 fi
9634 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9635 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9636 fi
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9725 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9726 hardcode_action=
9727 if test -n "$hardcode_libdir_flag_spec" ||
9728 test -n "$runpath_var" ||
9729 test "X$hardcode_automatic" = "Xyes" ; then
9730
9731 # We can hardcode non-existent directories.
9732 if test "$hardcode_direct" != no &&
9733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9734 # have to relink, otherwise we might link with an installed library
9735 # when we should be linking with a yet-to-be-installed one
9736 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9737 test "$hardcode_minus_L" != no; then
9738 # Linking always hardcodes the temporary library directory.
9739 hardcode_action=relink
9740 else
9741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9742 hardcode_action=immediate
9743 fi
9744 else
9745 # We cannot hardcode anything, or else we can only hardcode existing
9746 # directories.
9747 hardcode_action=unsupported
9748 fi
9749 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9750 echo "${ECHO_T}$hardcode_action" >&6; }
9751
9752 if test "$hardcode_action" = relink ||
9753 test "$inherit_rpath" = yes; then
9754 # Fast installation is not supported
9755 enable_fast_install=no
9756 elif test "$shlibpath_overrides_runpath" = yes ||
9757 test "$enable_shared" = no; then
9758 # Fast installation is not necessary
9759 enable_fast_install=needless
9760 fi
9761
9762
9763
9764
9765
9766
9767 if test "x$enable_dlopen" != xyes; then
9768 enable_dlopen=unknown
9769 enable_dlopen_self=unknown
9770 enable_dlopen_self_static=unknown
9771 else
9772 lt_cv_dlopen=no
9773 lt_cv_dlopen_libs=
9774
9775 case $host_os in
9776 beos*)
9777 lt_cv_dlopen="load_add_on"
9778 lt_cv_dlopen_libs=
9779 lt_cv_dlopen_self=yes
9780 ;;
9781
9782 mingw* | pw32* | cegcc*)
9783 lt_cv_dlopen="LoadLibrary"
9784 lt_cv_dlopen_libs=
9785 ;;
9786
9787 cygwin*)
9788 lt_cv_dlopen="dlopen"
9789 lt_cv_dlopen_libs=
9790 ;;
9791
9792 darwin*)
9793 # if libdl is installed we need to link against it
9794 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799 ac_check_lib_save_LIBS=$LIBS
9800 LIBS="-ldl $LIBS"
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h. */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807
9808 /* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811 #ifdef __cplusplus
9812 extern "C"
9813 #endif
9814 char dlopen ();
9815 int
9816 main ()
9817 {
9818 return dlopen ();
9819 ;
9820 return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9825 case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828 esac
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest$ac_exeext &&
9840 $as_test_x conftest$ac_exeext; then
9841 ac_cv_lib_dl_dlopen=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_cv_lib_dl_dlopen=no
9847 fi
9848
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9852 fi
9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9855 if test $ac_cv_lib_dl_dlopen = yes; then
9856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9857 else
9858
9859 lt_cv_dlopen="dyld"
9860 lt_cv_dlopen_libs=
9861 lt_cv_dlopen_self=yes
9862
9863 fi
9864
9865 ;;
9866
9867 *)
9868 { echo "$as_me:$LINENO: checking for shl_load" >&5
9869 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9870 if test "${ac_cv_func_shl_load+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9881 #define shl_load innocuous_shl_load
9882
9883 /* System header to define __stub macros and hopefully few prototypes,
9884 which can conflict with char shl_load (); below.
9885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9886 <limits.h> exists even on freestanding compilers. */
9887
9888 #ifdef __STDC__
9889 # include <limits.h>
9890 #else
9891 # include <assert.h>
9892 #endif
9893
9894 #undef shl_load
9895
9896 /* Override any GCC internal prototype to avoid an error.
9897 Use char because int might match the return type of a GCC
9898 builtin and then its argument prototype would still apply. */
9899 #ifdef __cplusplus
9900 extern "C"
9901 #endif
9902 char shl_load ();
9903 /* The GNU C library defines this for functions which it implements
9904 to always fail with ENOSYS. Some functions are actually named
9905 something starting with __ and the normal name is an alias. */
9906 #if defined __stub_shl_load || defined __stub___shl_load
9907 choke me
9908 #endif
9909
9910 int
9911 main ()
9912 {
9913 return shl_load ();
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9920 case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_link") 2>conftest.er1
9926 ac_status=$?
9927 grep -v '^ *+' conftest.er1 >conftest.err
9928 rm -f conftest.er1
9929 cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } && {
9932 test -z "$ac_c_werror_flag" ||
9933 test ! -s conftest.err
9934 } && test -s conftest$ac_exeext &&
9935 $as_test_x conftest$ac_exeext; then
9936 ac_cv_func_shl_load=yes
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 ac_cv_func_shl_load=no
9942 fi
9943
9944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9945 conftest$ac_exeext conftest.$ac_ext
9946 fi
9947 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9948 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9949 if test $ac_cv_func_shl_load = yes; then
9950 lt_cv_dlopen="shl_load"
9951 else
9952 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9953 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9954 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-ldld $LIBS"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h. */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965
9966 /* Override any GCC internal prototype to avoid an error.
9967 Use char because int might match the return type of a GCC
9968 builtin and then its argument prototype would still apply. */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 char shl_load ();
9973 int
9974 main ()
9975 {
9976 return shl_load ();
9977 ;
9978 return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9983 case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_link") 2>conftest.er1
9989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } && {
9995 test -z "$ac_c_werror_flag" ||
9996 test ! -s conftest.err
9997 } && test -s conftest$ac_exeext &&
9998 $as_test_x conftest$ac_exeext; then
9999 ac_cv_lib_dld_shl_load=yes
10000 else
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004 ac_cv_lib_dld_shl_load=no
10005 fi
10006
10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008 conftest$ac_exeext conftest.$ac_ext
10009 LIBS=$ac_check_lib_save_LIBS
10010 fi
10011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10012 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10013 if test $ac_cv_lib_dld_shl_load = yes; then
10014 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10015 else
10016 { echo "$as_me:$LINENO: checking for dlopen" >&5
10017 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10018 if test "${ac_cv_func_dlopen+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029 #define dlopen innocuous_dlopen
10030
10031 /* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char dlopen (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10035
10036 #ifdef __STDC__
10037 # include <limits.h>
10038 #else
10039 # include <assert.h>
10040 #endif
10041
10042 #undef dlopen
10043
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 char dlopen ();
10051 /* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054 #if defined __stub_dlopen || defined __stub___dlopen
10055 choke me
10056 #endif
10057
10058 int
10059 main ()
10060 {
10061 return dlopen ();
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (ac_try="$ac_link"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_link") 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest$ac_exeext &&
10083 $as_test_x conftest$ac_exeext; then
10084 ac_cv_func_dlopen=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_cv_func_dlopen=no
10090 fi
10091
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093 conftest$ac_exeext conftest.$ac_ext
10094 fi
10095 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10096 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10097 if test $ac_cv_func_dlopen = yes; then
10098 lt_cv_dlopen="dlopen"
10099 else
10100 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10101 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10102 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105 ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-ldl $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char dlopen ();
10121 int
10122 main ()
10123 {
10124 return dlopen ();
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest$ac_exeext &&
10146 $as_test_x conftest$ac_exeext; then
10147 ac_cv_lib_dl_dlopen=yes
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ac_cv_lib_dl_dlopen=no
10153 fi
10154
10155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10158 fi
10159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10161 if test $ac_cv_lib_dl_dlopen = yes; then
10162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10163 else
10164 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10165 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10166 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 ac_check_lib_save_LIBS=$LIBS
10170 LIBS="-lsvld $LIBS"
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char dlopen ();
10185 int
10186 main ()
10187 {
10188 return dlopen ();
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 rm -f conftest.$ac_objext conftest$ac_exeext
10194 if { (ac_try="$ac_link"
10195 case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest$ac_exeext &&
10210 $as_test_x conftest$ac_exeext; then
10211 ac_cv_lib_svld_dlopen=yes
10212 else
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 ac_cv_lib_svld_dlopen=no
10217 fi
10218
10219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10220 conftest$ac_exeext conftest.$ac_ext
10221 LIBS=$ac_check_lib_save_LIBS
10222 fi
10223 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10225 if test $ac_cv_lib_svld_dlopen = yes; then
10226 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10227 else
10228 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10229 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10230 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 ac_check_lib_save_LIBS=$LIBS
10234 LIBS="-ldld $LIBS"
10235 cat >conftest.$ac_ext <<_ACEOF
10236 /* confdefs.h. */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241
10242 /* Override any GCC internal prototype to avoid an error.
10243 Use char because int might match the return type of a GCC
10244 builtin and then its argument prototype would still apply. */
10245 #ifdef __cplusplus
10246 extern "C"
10247 #endif
10248 char dld_link ();
10249 int
10250 main ()
10251 {
10252 return dld_link ();
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (ac_try="$ac_link"
10259 case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262 esac
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_link") 2>conftest.er1
10265 ac_status=$?
10266 grep -v '^ *+' conftest.er1 >conftest.err
10267 rm -f conftest.er1
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext &&
10274 $as_test_x conftest$ac_exeext; then
10275 ac_cv_lib_dld_dld_link=yes
10276 else
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 ac_cv_lib_dld_dld_link=no
10281 fi
10282
10283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284 conftest$ac_exeext conftest.$ac_ext
10285 LIBS=$ac_check_lib_save_LIBS
10286 fi
10287 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10288 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10289 if test $ac_cv_lib_dld_dld_link = yes; then
10290 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10291 fi
10292
10293
10294 fi
10295
10296
10297 fi
10298
10299
10300 fi
10301
10302
10303 fi
10304
10305
10306 fi
10307
10308 ;;
10309 esac
10310
10311 if test "x$lt_cv_dlopen" != xno; then
10312 enable_dlopen=yes
10313 else
10314 enable_dlopen=no
10315 fi
10316
10317 case $lt_cv_dlopen in
10318 dlopen)
10319 save_CPPFLAGS="$CPPFLAGS"
10320 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10321
10322 save_LDFLAGS="$LDFLAGS"
10323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10324
10325 save_LIBS="$LIBS"
10326 LIBS="$lt_cv_dlopen_libs $LIBS"
10327
10328 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10329 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10330 if test "${lt_cv_dlopen_self+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333 if test "$cross_compiling" = yes; then :
10334 lt_cv_dlopen_self=cross
10335 else
10336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10337 lt_status=$lt_dlunknown
10338 cat > conftest.$ac_ext <<_LT_EOF
10339 #line 10339 "configure"
10340 #include "confdefs.h"
10341
10342 #if HAVE_DLFCN_H
10343 #include <dlfcn.h>
10344 #endif
10345
10346 #include <stdio.h>
10347
10348 #ifdef RTLD_GLOBAL
10349 # define LT_DLGLOBAL RTLD_GLOBAL
10350 #else
10351 # ifdef DL_GLOBAL
10352 # define LT_DLGLOBAL DL_GLOBAL
10353 # else
10354 # define LT_DLGLOBAL 0
10355 # endif
10356 #endif
10357
10358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10359 find out it does not work in some platform. */
10360 #ifndef LT_DLLAZY_OR_NOW
10361 # ifdef RTLD_LAZY
10362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10363 # else
10364 # ifdef DL_LAZY
10365 # define LT_DLLAZY_OR_NOW DL_LAZY
10366 # else
10367 # ifdef RTLD_NOW
10368 # define LT_DLLAZY_OR_NOW RTLD_NOW
10369 # else
10370 # ifdef DL_NOW
10371 # define LT_DLLAZY_OR_NOW DL_NOW
10372 # else
10373 # define LT_DLLAZY_OR_NOW 0
10374 # endif
10375 # endif
10376 # endif
10377 # endif
10378 #endif
10379
10380 void fnord() { int i=42;}
10381 int main ()
10382 {
10383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10384 int status = $lt_dlunknown;
10385
10386 if (self)
10387 {
10388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10390 /* dlclose (self); */
10391 }
10392 else
10393 puts (dlerror ());
10394
10395 return status;
10396 }
10397 _LT_EOF
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>&5
10400 ac_status=$?
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10403 (./conftest; exit; ) >&5 2>/dev/null
10404 lt_status=$?
10405 case x$lt_status in
10406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10408 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10409 esac
10410 else :
10411 # compilation failed
10412 lt_cv_dlopen_self=no
10413 fi
10414 fi
10415 rm -fr conftest*
10416
10417
10418 fi
10419 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10420 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10421
10422 if test "x$lt_cv_dlopen_self" = xyes; then
10423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10424 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10425 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10426 if test "${lt_cv_dlopen_self_static+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429 if test "$cross_compiling" = yes; then :
10430 lt_cv_dlopen_self_static=cross
10431 else
10432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10433 lt_status=$lt_dlunknown
10434 cat > conftest.$ac_ext <<_LT_EOF
10435 #line 10435 "configure"
10436 #include "confdefs.h"
10437
10438 #if HAVE_DLFCN_H
10439 #include <dlfcn.h>
10440 #endif
10441
10442 #include <stdio.h>
10443
10444 #ifdef RTLD_GLOBAL
10445 # define LT_DLGLOBAL RTLD_GLOBAL
10446 #else
10447 # ifdef DL_GLOBAL
10448 # define LT_DLGLOBAL DL_GLOBAL
10449 # else
10450 # define LT_DLGLOBAL 0
10451 # endif
10452 #endif
10453
10454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10455 find out it does not work in some platform. */
10456 #ifndef LT_DLLAZY_OR_NOW
10457 # ifdef RTLD_LAZY
10458 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10459 # else
10460 # ifdef DL_LAZY
10461 # define LT_DLLAZY_OR_NOW DL_LAZY
10462 # else
10463 # ifdef RTLD_NOW
10464 # define LT_DLLAZY_OR_NOW RTLD_NOW
10465 # else
10466 # ifdef DL_NOW
10467 # define LT_DLLAZY_OR_NOW DL_NOW
10468 # else
10469 # define LT_DLLAZY_OR_NOW 0
10470 # endif
10471 # endif
10472 # endif
10473 # endif
10474 #endif
10475
10476 void fnord() { int i=42;}
10477 int main ()
10478 {
10479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10480 int status = $lt_dlunknown;
10481
10482 if (self)
10483 {
10484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10485 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10486 /* dlclose (self); */
10487 }
10488 else
10489 puts (dlerror ());
10490
10491 return status;
10492 }
10493 _LT_EOF
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10499 (./conftest; exit; ) >&5 2>/dev/null
10500 lt_status=$?
10501 case x$lt_status in
10502 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10503 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10504 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10505 esac
10506 else :
10507 # compilation failed
10508 lt_cv_dlopen_self_static=no
10509 fi
10510 fi
10511 rm -fr conftest*
10512
10513
10514 fi
10515 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10516 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10517 fi
10518
10519 CPPFLAGS="$save_CPPFLAGS"
10520 LDFLAGS="$save_LDFLAGS"
10521 LIBS="$save_LIBS"
10522 ;;
10523 esac
10524
10525 case $lt_cv_dlopen_self in
10526 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10527 *) enable_dlopen_self=unknown ;;
10528 esac
10529
10530 case $lt_cv_dlopen_self_static in
10531 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10532 *) enable_dlopen_self_static=unknown ;;
10533 esac
10534 fi
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552 striplib=
10553 old_striplib=
10554 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10555 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10556 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10557 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10558 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10559 { echo "$as_me:$LINENO: result: yes" >&5
10560 echo "${ECHO_T}yes" >&6; }
10561 else
10562 # FIXME - insert some real tests, host_os isn't really good enough
10563 case $host_os in
10564 darwin*)
10565 if test -n "$STRIP" ; then
10566 striplib="$STRIP -x"
10567 old_striplib="$STRIP -S"
10568 { echo "$as_me:$LINENO: result: yes" >&5
10569 echo "${ECHO_T}yes" >&6; }
10570 else
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10573 fi
10574 ;;
10575 *)
10576 { echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6; }
10578 ;;
10579 esac
10580 fi
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593 # Report which library types will actually be built
10594 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10595 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10596 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10597 echo "${ECHO_T}$can_build_shared" >&6; }
10598
10599 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10600 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10601 test "$can_build_shared" = "no" && enable_shared=no
10602
10603 # On AIX, shared libraries and static libraries use the same namespace, and
10604 # are all built from PIC.
10605 case $host_os in
10606 aix3*)
10607 test "$enable_shared" = yes && enable_static=no
10608 if test -n "$RANLIB"; then
10609 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10610 postinstall_cmds='$RANLIB $lib'
10611 fi
10612 ;;
10613
10614 aix[4-9]*)
10615 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10616 test "$enable_shared" = yes && enable_static=no
10617 fi
10618 ;;
10619 esac
10620 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10621 echo "${ECHO_T}$enable_shared" >&6; }
10622
10623 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10624 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10625 # Make sure either enable_shared or enable_static is yes.
10626 test "$enable_shared" = yes || enable_static=yes
10627 { echo "$as_me:$LINENO: result: $enable_static" >&5
10628 echo "${ECHO_T}$enable_static" >&6; }
10629
10630
10631
10632
10633 fi
10634 ac_ext=c
10635 ac_cpp='$CPP $CPPFLAGS'
10636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639
10640 CC="$lt_save_CC"
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654 ac_config_commands="$ac_config_commands libtool"
10655
10656
10657
10658
10659 # Only expand once:
10660
10661
10662
10663 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
10664 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
10665 LT_REVISION=$INTERFACE_AGE
10666 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
10667
10668
10669
10670
10671
10672
10673 { echo "$as_me:$LINENO: checking host system type" >&5
10674 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10675 if test "${ac_cv_host+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678 if test "x$host_alias" = x; then
10679 ac_cv_host=$ac_cv_build
10680 else
10681 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10682 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10683 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10684 { (exit 1); exit 1; }; }
10685 fi
10686
10687 fi
10688 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10689 echo "${ECHO_T}$ac_cv_host" >&6; }
10690 case $ac_cv_host in
10691 *-*-*) ;;
10692 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10693 echo "$as_me: error: invalid value of canonical host" >&2;}
10694 { (exit 1); exit 1; }; };;
10695 esac
10696 host=$ac_cv_host
10697 ac_save_IFS=$IFS; IFS='-'
10698 set x $ac_cv_host
10699 shift
10700 host_cpu=$1
10701 host_vendor=$2
10702 shift; shift
10703 # Remember, the first character of IFS is used to create $*,
10704 # except with old shells:
10705 host_os=$*
10706 IFS=$ac_save_IFS
10707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10708
10709
10710
10711 am__api_version='1.10'
10712
10713 # Find a good install program. We prefer a C program (faster),
10714 # so one script is as good as another. But avoid the broken or
10715 # incompatible versions:
10716 # SysV /etc/install, /usr/sbin/install
10717 # SunOS /usr/etc/install
10718 # IRIX /sbin/install
10719 # AIX /bin/install
10720 # AmigaOS /C/install, which installs bootblocks on floppy discs
10721 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10722 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10723 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10724 # OS/2's system install, which has a completely different semantic
10725 # ./install, which can be erroneously created by make from ./install.sh.
10726 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10727 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10728 if test -z "$INSTALL"; then
10729 if test "${ac_cv_path_install+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10734 do
10735 IFS=$as_save_IFS
10736 test -z "$as_dir" && as_dir=.
10737 # Account for people who put trailing slashes in PATH elements.
10738 case $as_dir/ in
10739 ./ | .// | /cC/* | \
10740 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10741 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10742 /usr/ucb/* ) ;;
10743 *)
10744 # OSF1 and SCO ODT 3.0 have their own names for install.
10745 # Don't use installbsd from OSF since it installs stuff as root
10746 # by default.
10747 for ac_prog in ginstall scoinst install; do
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10750 if test $ac_prog = install &&
10751 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10752 # AIX install. It has an incompatible calling convention.
10753 :
10754 elif test $ac_prog = install &&
10755 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10756 # program-specific install script used by HP pwplus--don't use.
10757 :
10758 else
10759 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10760 break 3
10761 fi
10762 fi
10763 done
10764 done
10765 ;;
10766 esac
10767 done
10768 IFS=$as_save_IFS
10769
10770
10771 fi
10772 if test "${ac_cv_path_install+set}" = set; then
10773 INSTALL=$ac_cv_path_install
10774 else
10775 # As a last resort, use the slow shell script. Don't cache a
10776 # value for INSTALL within a source directory, because that will
10777 # break other packages using the cache if that directory is
10778 # removed, or if the value is a relative name.
10779 INSTALL=$ac_install_sh
10780 fi
10781 fi
10782 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10783 echo "${ECHO_T}$INSTALL" >&6; }
10784
10785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10786 # It thinks the first close brace ends the variable substitution.
10787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10788
10789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10790
10791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10792
10793 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10794 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
10795 # Just in case
10796 sleep 1
10797 echo timestamp > conftest.file
10798 # Do `set' in a subshell so we don't clobber the current shell's
10799 # arguments. Must try -L first in case configure is actually a
10800 # symlink; some systems play weird games with the mod time of symlinks
10801 # (eg FreeBSD returns the mod time of the symlink's containing
10802 # directory).
10803 if (
10804 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
10805 if test "$*" = "X"; then
10806 # -L didn't work.
10807 set X `ls -t $srcdir/configure conftest.file`
10808 fi
10809 rm -f conftest.file
10810 if test "$*" != "X $srcdir/configure conftest.file" \
10811 && test "$*" != "X conftest.file $srcdir/configure"; then
10812
10813 # If neither matched, then we have a broken ls. This can happen
10814 # if, for instance, CONFIG_SHELL is bash and it inherits a
10815 # broken ls alias from the environment. This has actually
10816 # happened. Such a system could not be considered "sane".
10817 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
10818 alias in your environment" >&5
10819 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
10820 alias in your environment" >&2;}
10821 { (exit 1); exit 1; }; }
10822 fi
10823
10824 test "$2" = conftest.file
10825 )
10826 then
10827 # Ok.
10828 :
10829 else
10830 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10831 Check your system clock" >&5
10832 echo "$as_me: error: newly created file is older than distributed files!
10833 Check your system clock" >&2;}
10834 { (exit 1); exit 1; }; }
10835 fi
10836 { echo "$as_me:$LINENO: result: yes" >&5
10837 echo "${ECHO_T}yes" >&6; }
10838 test "$program_prefix" != NONE &&
10839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10840 # Use a double $ so make ignores it.
10841 test "$program_suffix" != NONE &&
10842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10843 # Double any \ or $. echo might interpret backslashes.
10844 # By default was `s,x,x', remove it if useless.
10845 cat <<\_ACEOF >conftest.sed
10846 s/[\\$]/&&/g;s/;s,x,x,$//
10847 _ACEOF
10848 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
10849 rm -f conftest.sed
10850
10851 # expand $ac_aux_dir to an absolute path
10852 am_aux_dir=`cd $ac_aux_dir && pwd`
10853
10854 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
10855 # Use eval to expand $SHELL
10856 if eval "$MISSING --run true"; then
10857 am_missing_run="$MISSING --run "
10858 else
10859 am_missing_run=
10860 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10861 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10862 fi
10863
10864 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10865 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
10866 if test -z "$MKDIR_P"; then
10867 if test "${ac_cv_path_mkdir+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10872 do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_prog in mkdir gmkdir; do
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10879 'mkdir (GNU coreutils) '* | \
10880 'mkdir (coreutils) '* | \
10881 'mkdir (fileutils) '4.1*)
10882 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10883 break 3;;
10884 esac
10885 done
10886 done
10887 done
10888 IFS=$as_save_IFS
10889
10890 fi
10891
10892 if test "${ac_cv_path_mkdir+set}" = set; then
10893 MKDIR_P="$ac_cv_path_mkdir -p"
10894 else
10895 # As a last resort, use the slow shell script. Don't cache a
10896 # value for MKDIR_P within a source directory, because that will
10897 # break other packages using the cache if that directory is
10898 # removed, or if the value is a relative name.
10899 test -d ./--version && rmdir ./--version
10900 MKDIR_P="$ac_install_sh -d"
10901 fi
10902 fi
10903 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10904 echo "${ECHO_T}$MKDIR_P" >&6; }
10905
10906 mkdir_p="$MKDIR_P"
10907 case $mkdir_p in
10908 [\\/$]* | ?:[\\/]*) ;;
10909 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10910 esac
10911
10912 for ac_prog in gawk mawk nawk awk
10913 do
10914 # Extract the first word of "$ac_prog", so it can be a program name with args.
10915 set dummy $ac_prog; ac_word=$2
10916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10918 if test "${ac_cv_prog_AWK+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 if test -n "$AWK"; then
10922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10923 else
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927 IFS=$as_save_IFS
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931 ac_cv_prog_AWK="$ac_prog"
10932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935 done
10936 done
10937 IFS=$as_save_IFS
10938
10939 fi
10940 fi
10941 AWK=$ac_cv_prog_AWK
10942 if test -n "$AWK"; then
10943 { echo "$as_me:$LINENO: result: $AWK" >&5
10944 echo "${ECHO_T}$AWK" >&6; }
10945 else
10946 { echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6; }
10948 fi
10949
10950
10951 test -n "$AWK" && break
10952 done
10953
10954 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10955 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10956 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10957 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960 cat >conftest.make <<\_ACEOF
10961 SHELL = /bin/sh
10962 all:
10963 @echo '@@@%%%=$(MAKE)=@@@%%%'
10964 _ACEOF
10965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10967 *@@@%%%=?*=@@@%%%*)
10968 eval ac_cv_prog_make_${ac_make}_set=yes;;
10969 *)
10970 eval ac_cv_prog_make_${ac_make}_set=no;;
10971 esac
10972 rm -f conftest.make
10973 fi
10974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10975 { echo "$as_me:$LINENO: result: yes" >&5
10976 echo "${ECHO_T}yes" >&6; }
10977 SET_MAKE=
10978 else
10979 { echo "$as_me:$LINENO: result: no" >&5
10980 echo "${ECHO_T}no" >&6; }
10981 SET_MAKE="MAKE=${MAKE-make}"
10982 fi
10983
10984 rm -rf .tst 2>/dev/null
10985 mkdir .tst 2>/dev/null
10986 if test -d .tst; then
10987 am__leading_dot=.
10988 else
10989 am__leading_dot=_
10990 fi
10991 rmdir .tst 2>/dev/null
10992
10993 DEPDIR="${am__leading_dot}deps"
10994
10995 ac_config_commands="$ac_config_commands depfiles"
10996
10997
10998 am_make=${MAKE-make}
10999 cat > confinc << 'END'
11000 am__doit:
11001 @echo done
11002 .PHONY: am__doit
11003 END
11004 # If we don't find an include directive, just comment out the code.
11005 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11006 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
11007 am__include="#"
11008 am__quote=
11009 _am_result=none
11010 # First try GNU make style include.
11011 echo "include confinc" > confmf
11012 # We grep out `Entering directory' and `Leaving directory'
11013 # messages which can occur if `w' ends up in MAKEFLAGS.
11014 # In particular we don't look at `^make:' because GNU make might
11015 # be invoked under some other name (usually "gmake"), in which
11016 # case it prints its new name instead of `make'.
11017 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
11018 am__include=include
11019 am__quote=
11020 _am_result=GNU
11021 fi
11022 # Now try BSD make style include.
11023 if test "$am__include" = "#"; then
11024 echo '.include "confinc"' > confmf
11025 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
11026 am__include=.include
11027 am__quote="\""
11028 _am_result=BSD
11029 fi
11030 fi
11031
11032
11033 { echo "$as_me:$LINENO: result: $_am_result" >&5
11034 echo "${ECHO_T}$_am_result" >&6; }
11035 rm -f confinc confmf
11036
11037 # Check whether --enable-dependency-tracking was given.
11038 if test "${enable_dependency_tracking+set}" = set; then
11039 enableval=$enable_dependency_tracking;
11040 fi
11041
11042 if test "x$enable_dependency_tracking" != xno; then
11043 am_depcomp="$ac_aux_dir/depcomp"
11044 AMDEPBACKSLASH='\'
11045 fi
11046 if test "x$enable_dependency_tracking" != xno; then
11047 AMDEP_TRUE=
11048 AMDEP_FALSE='#'
11049 else
11050 AMDEP_TRUE='#'
11051 AMDEP_FALSE=
11052 fi
11053
11054
11055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11057 # is not polluted with repeated "-I."
11058 am__isrc=' -I$(srcdir)'
11059 # test to see if srcdir already configured
11060 if test -f $srcdir/config.status; then
11061 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11062 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11063 { (exit 1); exit 1; }; }
11064 fi
11065 fi
11066
11067 # test whether we have cygpath
11068 if test -z "$CYGPATH_W"; then
11069 if (cygpath --version) >/dev/null 2>/dev/null; then
11070 CYGPATH_W='cygpath -w'
11071 else
11072 CYGPATH_W=echo
11073 fi
11074 fi
11075
11076
11077 # Define the identity of the package.
11078 PACKAGE=SDL_ttf
11079 VERSION=$VERSION
11080
11081
11082 cat >>confdefs.h <<_ACEOF
11083 #define PACKAGE "$PACKAGE"
11084 _ACEOF
11085
11086
11087 cat >>confdefs.h <<_ACEOF
11088 #define VERSION "$VERSION"
11089 _ACEOF
11090
11091 # Some tools Automake needs.
11092
11093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11094
11095
11096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11097
11098
11099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11100
11101
11102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11103
11104
11105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11106
11107 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
11108
11109 # Installed binaries are usually stripped using `strip' when the user
11110 # run `make install-strip'. However `strip' might not be the right
11111 # tool to use in cross-compilation environments, therefore Automake
11112 # will honor the `STRIP' environment variable to overrule this program.
11113 if test "$cross_compiling" != no; then
11114 if test -n "$ac_tool_prefix"; then
11115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11116 set dummy ${ac_tool_prefix}strip; ac_word=$2
11117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11119 if test "${ac_cv_prog_STRIP+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 if test -n "$STRIP"; then
11123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11124 else
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $PATH
11127 do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136 done
11137 done
11138 IFS=$as_save_IFS
11139
11140 fi
11141 fi
11142 STRIP=$ac_cv_prog_STRIP
11143 if test -n "$STRIP"; then
11144 { echo "$as_me:$LINENO: result: $STRIP" >&5
11145 echo "${ECHO_T}$STRIP" >&6; }
11146 else
11147 { echo "$as_me:$LINENO: result: no" >&5
11148 echo "${ECHO_T}no" >&6; }
11149 fi
11150
11151
11152 fi
11153 if test -z "$ac_cv_prog_STRIP"; then
11154 ac_ct_STRIP=$STRIP
11155 # Extract the first word of "strip", so it can be a program name with args.
11156 set dummy strip; ac_word=$2
11157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162 if test -n "$ac_ct_STRIP"; then
11163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11164 else
11165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166 for as_dir in $PATH
11167 do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11172 ac_cv_prog_ac_ct_STRIP="strip"
11173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11174 break 2
11175 fi
11176 done
11177 done
11178 IFS=$as_save_IFS
11179
11180 fi
11181 fi
11182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11183 if test -n "$ac_ct_STRIP"; then
11184 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11185 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11186 else
11187 { echo "$as_me:$LINENO: result: no" >&5
11188 echo "${ECHO_T}no" >&6; }
11189 fi
11190
11191 if test "x$ac_ct_STRIP" = x; then
11192 STRIP=":"
11193 else
11194 case $cross_compiling:$ac_tool_warned in
11195 yes:)
11196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11197 whose name does not start with the host triplet. If you think this
11198 configuration is useful to you, please write to [email protected]." >&5
11199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11200 whose name does not start with the host triplet. If you think this
11201 configuration is useful to you, please write to [email protected]." >&2;}
11202 ac_tool_warned=yes ;;
11203 esac
11204 STRIP=$ac_ct_STRIP
11205 fi
11206 else
11207 STRIP="$ac_cv_prog_STRIP"
11208 fi
11209
11210 fi
11211 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11212
11213 # We need awk for the "check" target. The system "awk" is bad on
11214 # some platforms.
11215 # Always define AMTAR for backward compatibility.
11216
11217 AMTAR=${AMTAR-"${am_missing_run}tar"}
11218
11219 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11220
11221
11222
11223
11224 depcc="$CC" am_compiler_list=
11225
11226 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11227 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11228 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11232 # We make a subdir and do the tests there. Otherwise we can end up
11233 # making bogus files that we don't know about and never remove. For
11234 # instance it was reported that on HP-UX the gcc test will end up
11235 # making a dummy file named `D' -- because `-MD' means `put the output
11236 # in D'.
11237 mkdir conftest.dir
11238 # Copy depcomp to subdir because otherwise we won't find it if we're
11239 # using a relative directory.
11240 cp "$am_depcomp" conftest.dir
11241 cd conftest.dir
11242 # We will build objects and dependencies in a subdirectory because
11243 # it helps to detect inapplicable dependency modes. For instance
11244 # both Tru64's cc and ICC support -MD to output dependencies as a
11245 # side effect of compilation, but ICC will put the dependencies in
11246 # the current directory while Tru64 will put them in the object
11247 # directory.
11248 mkdir sub
11249
11250 am_cv_CC_dependencies_compiler_type=none
11251 if test "$am_compiler_list" = ""; then
11252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11253 fi
11254 for depmode in $am_compiler_list; do
11255 # Setup a source with many dependencies, because some compilers
11256 # like to wrap large dependency lists on column 80 (with \), and
11257 # we should not choose a depcomp mode which is confused by this.
11258 #
11259 # We need to recreate these files for each test, as the compiler may
11260 # overwrite some of them when testing with obscure command lines.
11261 # This happens at least with the AIX C compiler.
11262 : > sub/conftest.c
11263 for i in 1 2 3 4 5 6; do
11264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11266 # Solaris 8's {/usr,}/bin/sh.
11267 touch sub/conftst$i.h
11268 done
11269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11270
11271 case $depmode in
11272 nosideeffect)
11273 # after this tag, mechanisms are not by side-effect, so they'll
11274 # only be used when explicitly requested
11275 if test "x$enable_dependency_tracking" = xyes; then
11276 continue
11277 else
11278 break
11279 fi
11280 ;;
11281 none) break ;;
11282 esac
11283 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11284 # mode. It turns out that the SunPro C++ compiler does not properly
11285 # handle `-M -o', and we need to detect this.
11286 if depmode=$depmode \
11287 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11289 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11290 >/dev/null 2>conftest.err &&
11291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11293 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11295 # icc doesn't choke on unknown options, it will just issue warnings
11296 # or remarks (even with -Werror). So we grep stderr for any message
11297 # that says an option was ignored or not supported.
11298 # When given -MP, icc 7.0 and 7.1 complain thusly:
11299 # icc: Command line warning: ignoring option '-M'; no argument required
11300 # The diagnosis changed in icc 8.0:
11301 # icc: Command line remark: option '-MP' not supported
11302 if (grep 'ignoring option' conftest.err ||
11303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11304 am_cv_CC_dependencies_compiler_type=$depmode
11305 break
11306 fi
11307 fi
11308 done
11309
11310 cd ..
11311 rm -rf conftest.dir
11312 else
11313 am_cv_CC_dependencies_compiler_type=none
11314 fi
11315
11316 fi
11317 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11318 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11319 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11320
11321 if
11322 test "x$enable_dependency_tracking" != xno \
11323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11324 am__fastdepCC_TRUE=
11325 am__fastdepCC_FALSE='#'
11326 else
11327 am__fastdepCC_TRUE='#'
11328 am__fastdepCC_FALSE=
11329 fi
11330
11331
11332
11333
11334
11335 ac_ext=c
11336 ac_cpp='$CPP $CPPFLAGS'
11337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11340 if test -n "$ac_tool_prefix"; then
11341 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11345 if test "${ac_cv_prog_CC+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348 if test -n "$CC"; then
11349 ac_cv_prog_CC="$CC" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362 done
11363 done
11364 IFS=$as_save_IFS
11365
11366 fi
11367 fi
11368 CC=$ac_cv_prog_CC
11369 if test -n "$CC"; then
11370 { echo "$as_me:$LINENO: result: $CC" >&5
11371 echo "${ECHO_T}$CC" >&6; }
11372 else
11373 { echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6; }
11375 fi
11376
11377
11378 fi
11379 if test -z "$ac_cv_prog_CC"; then
11380 ac_ct_CC=$CC
11381 # Extract the first word of "gcc", so it can be a program name with args.
11382 set dummy gcc; ac_word=$2
11383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 if test -n "$ac_ct_CC"; then
11389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_ac_ct_CC="gcc"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402 done
11403 done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11409 if test -n "$ac_ct_CC"; then
11410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11411 echo "${ECHO_T}$ac_ct_CC" >&6; }
11412 else
11413 { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11415 fi
11416
11417 if test "x$ac_ct_CC" = x; then
11418 CC=""
11419 else
11420 case $cross_compiling:$ac_tool_warned in
11421 yes:)
11422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11423 whose name does not start with the host triplet. If you think this
11424 configuration is useful to you, please write to [email protected]." >&5
11425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11426 whose name does not start with the host triplet. If you think this
11427 configuration is useful to you, please write to [email protected]." >&2;}
11428 ac_tool_warned=yes ;;
11429 esac
11430 CC=$ac_ct_CC
11431 fi
11432 else
11433 CC="$ac_cv_prog_CC"
11434 fi
11435
11436 if test -z "$CC"; then
11437 if test -n "$ac_tool_prefix"; then
11438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11439 set dummy ${ac_tool_prefix}cc; ac_word=$2
11440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11442 if test "${ac_cv_prog_CC+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445 if test -n "$CC"; then
11446 ac_cv_prog_CC="$CC" # Let the user override the test.
11447 else
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455 ac_cv_prog_CC="${ac_tool_prefix}cc"
11456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11458 fi
11459 done
11460 done
11461 IFS=$as_save_IFS
11462
11463 fi
11464 fi
11465 CC=$ac_cv_prog_CC
11466 if test -n "$CC"; then
11467 { echo "$as_me:$LINENO: result: $CC" >&5
11468 echo "${ECHO_T}$CC" >&6; }
11469 else
11470 { echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6; }
11472 fi
11473
11474
11475 fi
11476 fi
11477 if test -z "$CC"; then
11478 # Extract the first word of "cc", so it can be a program name with args.
11479 set dummy cc; ac_word=$2
11480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11482 if test "${ac_cv_prog_CC+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 if test -n "$CC"; then
11486 ac_cv_prog_CC="$CC" # Let the user override the test.
11487 else
11488 ac_prog_rejected=no
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11497 ac_prog_rejected=yes
11498 continue
11499 fi
11500 ac_cv_prog_CC="cc"
11501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504 done
11505 done
11506 IFS=$as_save_IFS
11507
11508 if test $ac_prog_rejected = yes; then
11509 # We found a bogon in the path, so make sure we never use it.
11510 set dummy $ac_cv_prog_CC
11511 shift
11512 if test $# != 0; then
11513 # We chose a different compiler from the bogus one.
11514 # However, it has the same basename, so the bogon will be chosen
11515 # first if we set CC to just the basename; use the full file name.
11516 shift
11517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11518 fi
11519 fi
11520 fi
11521 fi
11522 CC=$ac_cv_prog_CC
11523 if test -n "$CC"; then
11524 { echo "$as_me:$LINENO: result: $CC" >&5
11525 echo "${ECHO_T}$CC" >&6; }
11526 else
11527 { echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6; }
11529 fi
11530
11531
11532 fi
11533 if test -z "$CC"; then
11534 if test -n "$ac_tool_prefix"; then
11535 for ac_prog in cl.exe
11536 do
11537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11541 if test "${ac_cv_prog_CC+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544 if test -n "$CC"; then
11545 ac_cv_prog_CC="$CC" # Let the user override the test.
11546 else
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11549 do
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 break 2
11557 fi
11558 done
11559 done
11560 IFS=$as_save_IFS
11561
11562 fi
11563 fi
11564 CC=$ac_cv_prog_CC
11565 if test -n "$CC"; then
11566 { echo "$as_me:$LINENO: result: $CC" >&5
11567 echo "${ECHO_T}$CC" >&6; }
11568 else
11569 { echo "$as_me:$LINENO: result: no" >&5
11570 echo "${ECHO_T}no" >&6; }
11571 fi
11572
11573
11574 test -n "$CC" && break
11575 done
11576 fi
11577 if test -z "$CC"; then
11578 ac_ct_CC=$CC
11579 for ac_prog in cl.exe
11580 do
11581 # Extract the first word of "$ac_prog", so it can be a program name with args.
11582 set dummy $ac_prog; ac_word=$2
11583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588 if test -n "$ac_ct_CC"; then
11589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598 ac_cv_prog_ac_ct_CC="$ac_prog"
11599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11601 fi
11602 done
11603 done
11604 IFS=$as_save_IFS
11605
11606 fi
11607 fi
11608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11609 if test -n "$ac_ct_CC"; then
11610 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11611 echo "${ECHO_T}$ac_ct_CC" >&6; }
11612 else
11613 { echo "$as_me:$LINENO: result: no" >&5
11614 echo "${ECHO_T}no" >&6; }
11615 fi
11616
11617
11618 test -n "$ac_ct_CC" && break
11619 done
11620
11621 if test "x$ac_ct_CC" = x; then
11622 CC=""
11623 else
11624 case $cross_compiling:$ac_tool_warned in
11625 yes:)
11626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11627 whose name does not start with the host triplet. If you think this
11628 configuration is useful to you, please write to [email protected]." >&5
11629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11630 whose name does not start with the host triplet. If you think this
11631 configuration is useful to you, please write to [email protected]." >&2;}
11632 ac_tool_warned=yes ;;
11633 esac
11634 CC=$ac_ct_CC
11635 fi
11636 fi
11637
11638 fi
11639
11640
11641 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11642 See \`config.log' for more details." >&5
11643 echo "$as_me: error: no acceptable C compiler found in \$PATH
11644 See \`config.log' for more details." >&2;}
11645 { (exit 1); exit 1; }; }
11646
11647 # Provide some information about the compiler.
11648 echo "$as_me:$LINENO: checking for C compiler version" >&5
11649 ac_compiler=`set X $ac_compile; echo $2`
11650 { (ac_try="$ac_compiler --version >&5"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_compiler --version >&5") 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }
11660 { (ac_try="$ac_compiler -v >&5"
11661 case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_compiler -v >&5") 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }
11670 { (ac_try="$ac_compiler -V >&5"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_compiler -V >&5") 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }
11680
11681 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11682 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11683 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692
11693 int
11694 main ()
11695 {
11696 #ifndef __GNUC__
11697 choke me
11698 #endif
11699
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (ac_try="$ac_compile"
11706 case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_compile") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest.$ac_objext; then
11721 ac_compiler_gnu=yes
11722 else
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_compiler_gnu=no
11727 fi
11728
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11731
11732 fi
11733 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11734 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11735 GCC=`test $ac_compiler_gnu = yes && echo yes`
11736 ac_test_CFLAGS=${CFLAGS+set}
11737 ac_save_CFLAGS=$CFLAGS
11738 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11739 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11740 if test "${ac_cv_prog_cc_g+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743 ac_save_c_werror_flag=$ac_c_werror_flag
11744 ac_c_werror_flag=yes
11745 ac_cv_prog_cc_g=no
11746 CFLAGS="-g"
11747 cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h. */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753
11754 int
11755 main ()
11756 {
11757
11758 ;
11759 return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext
11763 if { (ac_try="$ac_compile"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_compile") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest.$ac_objext; then
11779 ac_cv_prog_cc_g=yes
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 CFLAGS=""
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791
11792 int
11793 main ()
11794 {
11795
11796 ;
11797 return 0;
11798 }
11799 _ACEOF
11800 rm -f conftest.$ac_objext
11801 if { (ac_try="$ac_compile"
11802 case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805 esac
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_compile") 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } && {
11814 test -z "$ac_c_werror_flag" ||
11815 test ! -s conftest.err
11816 } && test -s conftest.$ac_objext; then
11817 :
11818 else
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 ac_c_werror_flag=$ac_save_c_werror_flag
11823 CFLAGS="-g"
11824 cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h. */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830
11831 int
11832 main ()
11833 {
11834
11835 ;
11836 return 0;
11837 }
11838 _ACEOF
11839 rm -f conftest.$ac_objext
11840 if { (ac_try="$ac_compile"
11841 case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.$ac_objext; then
11856 ac_cv_prog_cc_g=yes
11857 else
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861
11862 fi
11863
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 fi
11866
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868 fi
11869
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 ac_c_werror_flag=$ac_save_c_werror_flag
11872 fi
11873 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11874 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11875 if test "$ac_test_CFLAGS" = set; then
11876 CFLAGS=$ac_save_CFLAGS
11877 elif test $ac_cv_prog_cc_g = yes; then
11878 if test "$GCC" = yes; then
11879 CFLAGS="-g -O2"
11880 else
11881 CFLAGS="-g"
11882 fi
11883 else
11884 if test "$GCC" = yes; then
11885 CFLAGS="-O2"
11886 else
11887 CFLAGS=
11888 fi
11889 fi
11890 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11891 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11892 if test "${ac_cv_prog_cc_c89+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895 ac_cv_prog_cc_c89=no
11896 ac_save_CC=$CC
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h. */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <stdarg.h>
11904 #include <stdio.h>
11905 #include <sys/types.h>
11906 #include <sys/stat.h>
11907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11908 struct buf { int x; };
11909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11910 static char *e (p, i)
11911 char **p;
11912 int i;
11913 {
11914 return p[i];
11915 }
11916 static char *f (char * (*g) (char **, int), char **p, ...)
11917 {
11918 char *s;
11919 va_list v;
11920 va_start (v,p);
11921 s = g (p, va_arg (v,int));
11922 va_end (v);
11923 return s;
11924 }
11925
11926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11927 function prototypes and stuff, but not '\xHH' hex character constants.
11928 These don't provoke an error unfortunately, instead are silently treated
11929 as 'x'. The following induces an error, until -std is added to get
11930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11931 array size at least. It's necessary to write '\x00'==0 to get something
11932 that's true only with -std. */
11933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11934
11935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11936 inside strings and character constants. */
11937 #define FOO(x) 'x'
11938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11939
11940 int test (int i, double x);
11941 struct s1 {int (*f) (int a);};
11942 struct s2 {int (*f) (double a);};
11943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11944 int argc;
11945 char **argv;
11946 int
11947 main ()
11948 {
11949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11956 do
11957 CC="$ac_save_CC $ac_arg"
11958 rm -f conftest.$ac_objext
11959 if { (ac_try="$ac_compile"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_compile") 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest.$ac_objext; then
11975 ac_cv_prog_cc_c89=$ac_arg
11976 else
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980
11981 fi
11982
11983 rm -f core conftest.err conftest.$ac_objext
11984 test "x$ac_cv_prog_cc_c89" != "xno" && break
11985 done
11986 rm -f conftest.$ac_ext
11987 CC=$ac_save_CC
11988
11989 fi
11990 # AC_CACHE_VAL
11991 case "x$ac_cv_prog_cc_c89" in
11992 x)
11993 { echo "$as_me:$LINENO: result: none needed" >&5
11994 echo "${ECHO_T}none needed" >&6; } ;;
11995 xno)
11996 { echo "$as_me:$LINENO: result: unsupported" >&5
11997 echo "${ECHO_T}unsupported" >&6; } ;;
11998 *)
11999 CC="$CC $ac_cv_prog_cc_c89"
12000 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12001 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12002 esac
12003
12004
12005 ac_ext=c
12006 ac_cpp='$CPP $CPPFLAGS'
12007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011 # Find a good install program. We prefer a C program (faster),
12012 # so one script is as good as another. But avoid the broken or
12013 # incompatible versions:
12014 # SysV /etc/install, /usr/sbin/install
12015 # SunOS /usr/etc/install
12016 # IRIX /sbin/install
12017 # AIX /bin/install
12018 # AmigaOS /C/install, which installs bootblocks on floppy discs
12019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12022 # OS/2's system install, which has a completely different semantic
12023 # ./install, which can be erroneously created by make from ./install.sh.
12024 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12025 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12026 if test -z "$INSTALL"; then
12027 if test "${ac_cv_path_install+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12032 do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 # Account for people who put trailing slashes in PATH elements.
12036 case $as_dir/ in
12037 ./ | .// | /cC/* | \
12038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12039 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12040 /usr/ucb/* ) ;;
12041 *)
12042 # OSF1 and SCO ODT 3.0 have their own names for install.
12043 # Don't use installbsd from OSF since it installs stuff as root
12044 # by default.
12045 for ac_prog in ginstall scoinst install; do
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12048 if test $ac_prog = install &&
12049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12050 # AIX install. It has an incompatible calling convention.
12051 :
12052 elif test $ac_prog = install &&
12053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12054 # program-specific install script used by HP pwplus--don't use.
12055 :
12056 else
12057 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12058 break 3
12059 fi
12060 fi
12061 done
12062 done
12063 ;;
12064 esac
12065 done
12066 IFS=$as_save_IFS
12067
12068
12069 fi
12070 if test "${ac_cv_path_install+set}" = set; then
12071 INSTALL=$ac_cv_path_install
12072 else
12073 # As a last resort, use the slow shell script. Don't cache a
12074 # value for INSTALL within a source directory, because that will
12075 # break other packages using the cache if that directory is
12076 # removed, or if the value is a relative name.
12077 INSTALL=$ac_install_sh
12078 fi
12079 fi
12080 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12081 echo "${ECHO_T}$INSTALL" >&6; }
12082
12083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12084 # It thinks the first close brace ends the variable substitution.
12085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12086
12087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12088
12089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12090
12091 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12092 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
12093 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12094 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097 cat >conftest.make <<\_ACEOF
12098 SHELL = /bin/sh
12099 all:
12100 @echo '@@@%%%=$(MAKE)=@@@%%%'
12101 _ACEOF
12102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12104 *@@@%%%=?*=@@@%%%*)
12105 eval ac_cv_prog_make_${ac_make}_set=yes;;
12106 *)
12107 eval ac_cv_prog_make_${ac_make}_set=no;;
12108 esac
12109 rm -f conftest.make
12110 fi
12111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12112 { echo "$as_me:$LINENO: result: yes" >&5
12113 echo "${ECHO_T}yes" >&6; }
12114 SET_MAKE=
12115 else
12116 { echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6; }
12118 SET_MAKE="MAKE=${MAKE-make}"
12119 fi
12120
12121 if test -z "$host_alias"; then
12122 hostaliaswindres=
12123 else
12124 hostaliaswindres="$host_alias-windres"
12125 fi
12126 for ac_prog in windres $hostaliaswindres $host_os-windres
12127 do
12128 # Extract the first word of "$ac_prog", so it can be a program name with args.
12129 set dummy $ac_prog; ac_word=$2
12130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12132 if test "${ac_cv_prog_WINDRES+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135 if test -n "$WINDRES"; then
12136 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12137 else
12138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $PATH
12140 do
12141 IFS=$as_save_IFS
12142 test -z "$as_dir" && as_dir=.
12143 for ac_exec_ext in '' $ac_executable_extensions; do
12144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12145 ac_cv_prog_WINDRES="$ac_prog"
12146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 break 2
12148 fi
12149 done
12150 done
12151 IFS=$as_save_IFS
12152
12153 fi
12154 fi
12155 WINDRES=$ac_cv_prog_WINDRES
12156 if test -n "$WINDRES"; then
12157 { echo "$as_me:$LINENO: result: $WINDRES" >&5
12158 echo "${ECHO_T}$WINDRES" >&6; }
12159 else
12160 { echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6; }
12162 fi
12163
12164
12165 test -n "$WINDRES" && break
12166 done
12167
12168
12169 case "$host" in
12170 *-*-cygwin* | *-*-mingw32*)
12171 ;;
12172 *)
12173 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12174 # for constant arguments. Useless!
12175 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
12176 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
12177 if test "${ac_cv_working_alloca_h+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <alloca.h>
12187 int
12188 main ()
12189 {
12190 char *p = (char *) alloca (2 * sizeof (int));
12191 if (p) return 0;
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext conftest$ac_exeext
12197 if { (ac_try="$ac_link"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_c_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest$ac_exeext &&
12213 $as_test_x conftest$ac_exeext; then
12214 ac_cv_working_alloca_h=yes
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_cv_working_alloca_h=no
12220 fi
12221
12222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12223 conftest$ac_exeext conftest.$ac_ext
12224 fi
12225 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12226 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
12227 if test $ac_cv_working_alloca_h = yes; then
12228
12229 cat >>confdefs.h <<\_ACEOF
12230 #define HAVE_ALLOCA_H 1
12231 _ACEOF
12232
12233 fi
12234
12235 { echo "$as_me:$LINENO: checking for alloca" >&5
12236 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
12237 if test "${ac_cv_func_alloca_works+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #ifdef __GNUC__
12247 # define alloca __builtin_alloca
12248 #else
12249 # ifdef _MSC_VER
12250 # include <malloc.h>
12251 # define alloca _alloca
12252 # else
12253 # ifdef HAVE_ALLOCA_H
12254 # include <alloca.h>
12255 # else
12256 # ifdef _AIX
12257 #pragma alloca
12258 # else
12259 # ifndef alloca /* predefined by HP cc +Olibcalls */
12260 char *alloca ();
12261 # endif
12262 # endif
12263 # endif
12264 # endif
12265 #endif
12266
12267 int
12268 main ()
12269 {
12270 char *p = (char *) alloca (1);
12271 if (p) return 0;
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 ac_cv_func_alloca_works=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_cv_func_alloca_works=no
12300 fi
12301
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12304 fi
12305 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12306 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
12307
12308 if test $ac_cv_func_alloca_works = yes; then
12309
12310 cat >>confdefs.h <<\_ACEOF
12311 #define HAVE_ALLOCA 1
12312 _ACEOF
12313
12314 else
12315 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12316 # that cause trouble. Some versions do not even contain alloca or
12317 # contain a buggy version. If you still want to use their alloca,
12318 # use ar to extract alloca.o from them instead of compiling alloca.c.
12319
12320 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12321
12322 cat >>confdefs.h <<\_ACEOF
12323 #define C_ALLOCA 1
12324 _ACEOF
12325
12326
12327 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12328 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
12329 if test "${ac_cv_os_cray+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 #if defined CRAY && ! defined CRAY2
12339 webecray
12340 #else
12341 wenotbecray
12342 #endif
12343
12344 _ACEOF
12345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12346 $EGREP "webecray" >/dev/null 2>&1; then
12347 ac_cv_os_cray=yes
12348 else
12349 ac_cv_os_cray=no
12350 fi
12351 rm -f -r conftest*
12352
12353 fi
12354 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12355 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
12356 if test $ac_cv_os_cray = yes; then
12357 for ac_func in _getb67 GETB67 getb67; do
12358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12372 #define $ac_func innocuous_$ac_func
12373
12374 /* System header to define __stub macros and hopefully few prototypes,
12375 which can conflict with char $ac_func (); below.
12376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12377 <limits.h> exists even on freestanding compilers. */
12378
12379 #ifdef __STDC__
12380 # include <limits.h>
12381 #else
12382 # include <assert.h>
12383 #endif
12384
12385 #undef $ac_func
12386
12387 /* Override any GCC internal prototype to avoid an error.
12388 Use char because int might match the return type of a GCC
12389 builtin and then its argument prototype would still apply. */
12390 #ifdef __cplusplus
12391 extern "C"
12392 #endif
12393 char $ac_func ();
12394 /* The GNU C library defines this for functions which it implements
12395 to always fail with ENOSYS. Some functions are actually named
12396 something starting with __ and the normal name is an alias. */
12397 #if defined __stub_$ac_func || defined __stub___$ac_func
12398 choke me
12399 #endif
12400
12401 int
12402 main ()
12403 {
12404 return $ac_func ();
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (ac_try="$ac_link"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest$ac_exeext &&
12426 $as_test_x conftest$ac_exeext; then
12427 eval "$as_ac_var=yes"
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 eval "$as_ac_var=no"
12433 fi
12434
12435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12436 conftest$ac_exeext conftest.$ac_ext
12437 fi
12438 ac_res=`eval echo '${'$as_ac_var'}'`
12439 { echo "$as_me:$LINENO: result: $ac_res" >&5
12440 echo "${ECHO_T}$ac_res" >&6; }
12441 if test `eval echo '${'$as_ac_var'}'` = yes; then
12442
12443 cat >>confdefs.h <<_ACEOF
12444 #define CRAY_STACKSEG_END $ac_func
12445 _ACEOF
12446
12447 break
12448 fi
12449
12450 done
12451 fi
12452
12453 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12454 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
12455 if test "${ac_cv_c_stack_direction+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 if test "$cross_compiling" = yes; then
12459 ac_cv_c_stack_direction=0
12460 else
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h. */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 $ac_includes_default
12468 int
12469 find_stack_direction ()
12470 {
12471 static char *addr = 0;
12472 auto char dummy;
12473 if (addr == 0)
12474 {
12475 addr = &dummy;
12476 return find_stack_direction ();
12477 }
12478 else
12479 return (&dummy > addr) ? 1 : -1;
12480 }
12481
12482 int
12483 main ()
12484 {
12485 return find_stack_direction () < 0;
12486 }
12487 _ACEOF
12488 rm -f conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_link") 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12499 { (case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_try") 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ac_cv_c_stack_direction=1
12509 else
12510 echo "$as_me: program exited with status $ac_status" >&5
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 ( exit $ac_status )
12515 ac_cv_c_stack_direction=-1
12516 fi
12517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12518 fi
12519
12520
12521 fi
12522 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12523 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
12524
12525 cat >>confdefs.h <<_ACEOF
12526 #define STACK_DIRECTION $ac_cv_c_stack_direction
12527 _ACEOF
12528
12529
12530 fi
12531
12532 ;;
12533 esac
12534
12535
12536
12537 case "$host" in
12538 *-*-beos*)
12539 ac_default_prefix=/boot/develop/tools/gnupro
12540 ;;
12541 *-*-cygwin* | *-*-mingw32*)
12542 if test "$build" != "$host"; then # cross-compiling
12543 # Default cross-compile location
12544 ac_default_prefix=/usr/local/cross-tools/i386-mingw32
12545 else
12546 # Look for the location of the tools and install there
12547 if test "$BUILD_PREFIX" != ""; then
12548 ac_default_prefix=$BUILD_PREFIX
12549 fi
12550 fi
12551 if test x$WINDRES != x; then
12552 use_version_rc=true
12553 fi
12554 ;;
12555 esac
12556 if test x$use_version_rc = xtrue; then
12557 USE_VERSION_RC_TRUE=
12558 USE_VERSION_RC_FALSE='#'
12559 else
12560 USE_VERSION_RC_TRUE='#'
12561 USE_VERSION_RC_FALSE=
12562 fi
12563
12564
12565
12566 # Check whether --with-freetype-prefix was given.
12567 if test "${with_freetype_prefix+set}" = set; then
12568 withval=$with_freetype_prefix; freetype_prefix="$withval"
12569 else
12570 freetype_prefix=""
12571 fi
12572
12573
12574 # Check whether --with-freetype-exec-prefix was given.
12575 if test "${with_freetype_exec_prefix+set}" = set; then
12576 withval=$with_freetype_exec_prefix; freetype_exec_prefix="$withval"
12577 else
12578 freetype_exec_prefix=""
12579 fi
12580
12581
12582 if test x$freetype_exec_prefix != x ; then
12583 freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
12584 if test x${FREETYPE_CONFIG+set} != xset ; then
12585 FREETYPE_CONFIG=$freetype_exec_prefix/bin/freetype-config
12586 fi
12587 fi
12588 if test x$freetype_prefix != x ; then
12589 freetype_args="$freetype_args --prefix=$freetype_prefix"
12590 if test x${FREETYPE_CONFIG+set} != xset ; then
12591 FREETYPE_CONFIG=$freetype_prefix/bin/freetype-config
12592 fi
12593 fi
12594 # Extract the first word of "freetype-config", so it can be a program name with args.
12595 set dummy freetype-config; ac_word=$2
12596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12598 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 else
12601 case $FREETYPE_CONFIG in
12602 [\\/]* | ?:[\\/]*)
12603 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
12604 ;;
12605 *)
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12616 fi
12617 done
12618 done
12619 IFS=$as_save_IFS
12620
12621 test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
12622 ;;
12623 esac
12624 fi
12625 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
12626 if test -n "$FREETYPE_CONFIG"; then
12627 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
12628 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
12629 else
12630 { echo "$as_me:$LINENO: result: no" >&5
12631 echo "${ECHO_T}no" >&6; }
12632 fi
12633
12634
12635 no_freetype=""
12636 if test "$FREETYPE_CONFIG" = "no" ; then
12637 { { echo "$as_me:$LINENO: error:
12638 *** Unable to find FreeType2 library (http://www.freetype.org/)
12639 " >&5
12640 echo "$as_me: error:
12641 *** Unable to find FreeType2 library (http://www.freetype.org/)
12642 " >&2;}
12643 { (exit 1); exit 1; }; }
12644 else
12645 CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`"
12646 LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`"
12647 fi
12648
12649 SDL_VERSION=1.2.4
12650
12651
12652
12653 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12654 if test -n "$ac_tool_prefix"; then
12655 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12656 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12659 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 case $PKG_CONFIG in
12663 [\\/]* | ?:[\\/]*)
12664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12665 ;;
12666 *)
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in $PATH
12669 do
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12676 break 2
12677 fi
12678 done
12679 done
12680 IFS=$as_save_IFS
12681
12682 ;;
12683 esac
12684 fi
12685 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12686 if test -n "$PKG_CONFIG"; then
12687 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12688 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12689 else
12690 { echo "$as_me:$LINENO: result: no" >&5
12691 echo "${ECHO_T}no" >&6; }
12692 fi
12693
12694
12695 fi
12696 if test -z "$ac_cv_path_PKG_CONFIG"; then
12697 ac_pt_PKG_CONFIG=$PKG_CONFIG
12698 # Extract the first word of "pkg-config", so it can be a program name with args.
12699 set dummy pkg-config; ac_word=$2
12700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12702 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705 case $ac_pt_PKG_CONFIG in
12706 [\\/]* | ?:[\\/]*)
12707 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12708 ;;
12709 *)
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12712 do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12720 fi
12721 done
12722 done
12723 IFS=$as_save_IFS
12724
12725 ;;
12726 esac
12727 fi
12728 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12729 if test -n "$ac_pt_PKG_CONFIG"; then
12730 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12731 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
12732 else
12733 { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12735 fi
12736
12737 if test "x$ac_pt_PKG_CONFIG" = x; then
12738 PKG_CONFIG=""
12739 else
12740 case $cross_compiling:$ac_tool_warned in
12741 yes:)
12742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12743 whose name does not start with the host triplet. If you think this
12744 configuration is useful to you, please write to [email protected]." >&5
12745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12746 whose name does not start with the host triplet. If you think this
12747 configuration is useful to you, please write to [email protected]." >&2;}
12748 ac_tool_warned=yes ;;
12749 esac
12750 PKG_CONFIG=$ac_pt_PKG_CONFIG
12751 fi
12752 else
12753 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12754 fi
12755
12756 fi
12757 if test -n "$PKG_CONFIG"; then
12758 _pkg_min_version=0.9.0
12759 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12760 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
12761 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12762 { echo "$as_me:$LINENO: result: yes" >&5
12763 echo "${ECHO_T}yes" >&6; }
12764 else
12765 { echo "$as_me:$LINENO: result: no" >&5
12766 echo "${ECHO_T}no" >&6; }
12767 PKG_CONFIG=""
12768 fi
12769
12770 fi
12771
12772 # Check whether --with-sdl-prefix was given.
12773 if test "${with_sdl_prefix+set}" = set; then
12774 withval=$with_sdl_prefix; sdl_prefix="$withval"
12775 else
12776 sdl_prefix=""
12777 fi
12778
12779
12780 # Check whether --with-sdl-exec-prefix was given.
12781 if test "${with_sdl_exec_prefix+set}" = set; then
12782 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12783 else
12784 sdl_exec_prefix=""
12785 fi
12786
12787 # Check whether --enable-sdltest was given.
12788 if test "${enable_sdltest+set}" = set; then
12789 enableval=$enable_sdltest;
12790 else
12791 enable_sdltest=yes
12792 fi
12793
12794
12795 min_sdl_version=$SDL_VERSION
12796
12797 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
12798
12799 pkg_failed=no
12800 { echo "$as_me:$LINENO: checking for SDL" >&5
12801 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12802
12803 if test -n "$PKG_CONFIG"; then
12804 if test -n "$SDL_CFLAGS"; then
12805 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12806 else
12807 if test -n "$PKG_CONFIG" && \
12808 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12809 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; then
12813 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= $min_sdl_version" 2>/dev/null`
12814 else
12815 pkg_failed=yes
12816 fi
12817 fi
12818 else
12819 pkg_failed=untried
12820 fi
12821 if test -n "$PKG_CONFIG"; then
12822 if test -n "$SDL_LIBS"; then
12823 pkg_cv_SDL_LIBS="$SDL_LIBS"
12824 else
12825 if test -n "$PKG_CONFIG" && \
12826 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12827 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; then
12831 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= $min_sdl_version" 2>/dev/null`
12832 else
12833 pkg_failed=yes
12834 fi
12835 fi
12836 else
12837 pkg_failed=untried
12838 fi
12839
12840
12841
12842 if test $pkg_failed = yes; then
12843
12844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12845 _pkg_short_errors_supported=yes
12846 else
12847 _pkg_short_errors_supported=no
12848 fi
12849 if test $_pkg_short_errors_supported = yes; then
12850 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12851 else
12852 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12853 fi
12854 # Put the nasty error message in config.log where it belongs
12855 echo "$SDL_PKG_ERRORS" >&5
12856
12857 { echo "$as_me:$LINENO: result: no" >&5
12858 echo "${ECHO_T}no" >&6; }
12859 { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12861 sdl_pc=no
12862
12863 elif test $pkg_failed = untried; then
12864 { echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6; }
12866 sdl_pc=no
12867
12868 else
12869 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12870 SDL_LIBS=$pkg_cv_SDL_LIBS
12871 { echo "$as_me:$LINENO: result: yes" >&5
12872 echo "${ECHO_T}yes" >&6; }
12873 sdl_pc=yes
12874 fi
12875 else
12876 sdl_pc=no
12877 if test x$sdl_exec_prefix != x ; then
12878 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12879 if test x${SDL_CONFIG+set} != xset ; then
12880 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12881 fi
12882 fi
12883 if test x$sdl_prefix != x ; then
12884 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12885 if test x${SDL_CONFIG+set} != xset ; then
12886 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12887 fi
12888 fi
12889 fi
12890
12891 if test "x$sdl_pc" = xyes ; then
12892 no_sdl=""
12893 SDL_CONFIG="pkg-config sdl"
12894 else
12895 as_save_PATH="$PATH"
12896 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
12897 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12898 fi
12899 # Extract the first word of "sdl-config", so it can be a program name with args.
12900 set dummy sdl-config; ac_word=$2
12901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12903 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 case $SDL_CONFIG in
12907 [\\/]* | ?:[\\/]*)
12908 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12909 ;;
12910 *)
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12913 do
12914 IFS=$as_save_IFS
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 break 2
12921 fi
12922 done
12923 done
12924 IFS=$as_save_IFS
12925
12926 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12927 ;;
12928 esac
12929 fi
12930 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12931 if test -n "$SDL_CONFIG"; then
12932 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12933 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12934 else
12935 { echo "$as_me:$LINENO: result: no" >&5
12936 echo "${ECHO_T}no" >&6; }
12937 fi
12938
12939
12940 PATH="$as_save_PATH"
12941 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12942 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12943 no_sdl=""
12944
12945 if test "$SDL_CONFIG" = "no" ; then
12946 no_sdl=yes
12947 else
12948 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12949 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12950
12951 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12952 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12953 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12954 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12955 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12956 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12957 if test "x$enable_sdltest" = "xyes" ; then
12958 ac_save_CFLAGS="$CFLAGS"
12959 ac_save_CXXFLAGS="$CXXFLAGS"
12960 ac_save_LIBS="$LIBS"
12961 CFLAGS="$CFLAGS $SDL_CFLAGS"
12962 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12963 LIBS="$LIBS $SDL_LIBS"
12964 rm -f conf.sdltest
12965 if test "$cross_compiling" = yes; then
12966 echo $ac_n "cross compiling; assumed OK... $ac_c"
12967 else
12968 cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h. */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974
12975 #include <stdio.h>
12976 #include <stdlib.h>
12977 #include <string.h>
12978 #include "SDL.h"
12979
12980 char*
12981 my_strdup (char *str)
12982 {
12983 char *new_str;
12984
12985 if (str)
12986 {
12987 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12988 strcpy (new_str, str);
12989 }
12990 else
12991 new_str = NULL;
12992
12993 return new_str;
12994 }
12995
12996 int main (int argc, char *argv[])
12997 {
12998 int major, minor, micro;
12999 char *tmp_version;
13000
13001 /* This hangs on some systems (?)
13002 system ("touch conf.sdltest");
13003 */
13004 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13005
13006 /* HP/UX 9 (%@#!) writes to sscanf strings */
13007 tmp_version = my_strdup("$min_sdl_version");
13008 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13009 printf("%s, bad version string\n", "$min_sdl_version");
13010 exit(1);
13011 }
13012
13013 if (($sdl_major_version > major) ||
13014 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13015 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13016 {
13017 return 0;
13018 }
13019 else
13020 {
13021 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13022 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13023 printf("*** best to upgrade to the required version.\n");
13024 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13025 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13026 printf("*** config.cache before re-running configure\n");
13027 return 1;
13028 }
13029 }
13030
13031
13032 _ACEOF
13033 rm -f conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 :
13054 else
13055 echo "$as_me: program exited with status $ac_status" >&5
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13058
13059 ( exit $ac_status )
13060 no_sdl=yes
13061 fi
13062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13063 fi
13064
13065
13066 CFLAGS="$ac_save_CFLAGS"
13067 CXXFLAGS="$ac_save_CXXFLAGS"
13068 LIBS="$ac_save_LIBS"
13069 fi
13070 fi
13071 if test "x$no_sdl" = x ; then
13072 { echo "$as_me:$LINENO: result: yes" >&5
13073 echo "${ECHO_T}yes" >&6; }
13074 else
13075 { echo "$as_me:$LINENO: result: no" >&5
13076 echo "${ECHO_T}no" >&6; }
13077 fi
13078 fi
13079 if test "x$no_sdl" = x ; then
13080 :
13081 else
13082 if test "$SDL_CONFIG" = "no" ; then
13083 echo "*** The sdl-config script installed by SDL could not be found"
13084 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13085 echo "*** your path, or set the SDL_CONFIG environment variable to the"
13086 echo "*** full path to sdl-config."
13087 else
13088 if test -f conf.sdltest ; then
13089 :
13090 else
13091 echo "*** Could not run SDL test program, checking why..."
13092 CFLAGS="$CFLAGS $SDL_CFLAGS"
13093 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13094 LIBS="$LIBS $SDL_LIBS"
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101
13102 #include <stdio.h>
13103 #include "SDL.h"
13104
13105 int main(int argc, char *argv[])
13106 { return 0; }
13107 #undef main
13108 #define main K_and_R_C_main
13109
13110 int
13111 main ()
13112 {
13113 return 0;
13114 ;
13115 return 0;
13116 }
13117 _ACEOF
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (ac_try="$ac_link"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_link") 2>conftest.er1
13126 ac_status=$?
13127 grep -v '^ *+' conftest.er1 >conftest.err
13128 rm -f conftest.er1
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest$ac_exeext &&
13135 $as_test_x conftest$ac_exeext; then
13136 echo "*** The test program compiled, but did not run. This usually means"
13137 echo "*** that the run-time linker is not finding SDL or finding the wrong"
13138 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13139 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13140 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13141 echo "*** is required on your system"
13142 echo "***"
13143 echo "*** If you have an old version installed, it is best to remove it, although"
13144 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13145 else
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149 echo "*** The test program failed to compile or link. See the file config.log for the"
13150 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13151 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13152 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13153 fi
13154
13155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13156 conftest$ac_exeext conftest.$ac_ext
13157 CFLAGS="$ac_save_CFLAGS"
13158 CXXFLAGS="$ac_save_CXXFLAGS"
13159 LIBS="$ac_save_LIBS"
13160 fi
13161 fi
13162 SDL_CFLAGS=""
13163 SDL_LIBS=""
13164 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
13165 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
13166 { (exit 1); exit 1; }; }
13167
13168 fi
13169
13170
13171 rm -f conf.sdltest
13172
13173 CFLAGS="$CFLAGS $SDL_CFLAGS"
13174 LIBS="$LIBS $SDL_LIBS"
13175
13176 case "$host" in
13177 *-*-cygwin* | *-*-mingw32*)
13178 MATHLIB=""
13179 SYS_GL_LIBS="-lopengl32"
13180 ;;
13181 *-*-beos*)
13182 MATHLIB=""
13183 SYS_GL_LIBS="-lGL"
13184 ;;
13185 *-*-darwin*)
13186 MATHLIB=""
13187 SYS_GL_LIBS="-Wl,-framework,OpenGL"
13188 ;;
13189 *-*-aix*)
13190 if test x$ac_cv_c_compiler_gnu = xyes; then
13191 CFLAGS="-mthreads"
13192 fi
13193 SYS_GL_LIBS=""
13194 ;;
13195 *)
13196 MATHLIB="-lm"
13197 { echo "$as_me:$LINENO: checking for X" >&5
13198 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
13199
13200
13201 # Check whether --with-x was given.
13202 if test "${with_x+set}" = set; then
13203 withval=$with_x;
13204 fi
13205
13206 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13207 if test "x$with_x" = xno; then
13208 # The user explicitly disabled X.
13209 have_x=disabled
13210 else
13211 case $x_includes,$x_libraries in #(
13212 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
13213 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
13214 { (exit 1); exit 1; }; };; #(
13215 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218 # One or both of the vars are not set, and there is no cached value.
13219 ac_x_includes=no ac_x_libraries=no
13220 rm -f -r conftest.dir
13221 if mkdir conftest.dir; then
13222 cd conftest.dir
13223 cat >Imakefile <<'_ACEOF'
13224 incroot:
13225 @echo incroot='${INCROOT}'
13226 usrlibdir:
13227 @echo usrlibdir='${USRLIBDIR}'
13228 libdir:
13229 @echo libdir='${LIBDIR}'
13230 _ACEOF
13231 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13233 for ac_var in incroot usrlibdir libdir; do
13234 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13235 done
13236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13237 for ac_extension in a so sl dylib la dll; do
13238 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13239 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13240 ac_im_usrlibdir=$ac_im_libdir; break
13241 fi
13242 done
13243 # Screen out bogus values from the imake configuration. They are
13244 # bogus both because they are the default anyway, and because
13245 # using them would break gcc on systems where it needs fixed includes.
13246 case $ac_im_incroot in
13247 /usr/include) ac_x_includes= ;;
13248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13249 esac
13250 case $ac_im_usrlibdir in
13251 /usr/lib | /lib) ;;
13252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13253 esac
13254 fi
13255 cd ..
13256 rm -f -r conftest.dir
13257 fi
13258
13259 # Standard set of common directories for X headers.
13260 # Check X11 before X11Rn because it is often a symlink to the current release.
13261 ac_x_header_dirs='
13262 /usr/X11/include
13263 /usr/X11R6/include
13264 /usr/X11R5/include
13265 /usr/X11R4/include
13266
13267 /usr/include/X11
13268 /usr/include/X11R6
13269 /usr/include/X11R5
13270 /usr/include/X11R4
13271
13272 /usr/local/X11/include
13273 /usr/local/X11R6/include
13274 /usr/local/X11R5/include
13275 /usr/local/X11R4/include
13276
13277 /usr/local/include/X11
13278 /usr/local/include/X11R6
13279 /usr/local/include/X11R5
13280 /usr/local/include/X11R4
13281
13282 /usr/X386/include
13283 /usr/x386/include
13284 /usr/XFree86/include/X11
13285
13286 /usr/include
13287 /usr/local/include
13288 /usr/unsupported/include
13289 /usr/athena/include
13290 /usr/local/x11r5/include
13291 /usr/lpp/Xamples/include
13292
13293 /usr/openwin/include
13294 /usr/openwin/share/include'
13295
13296 if test "$ac_x_includes" = no; then
13297 # Guess where to find include files, by looking for Xlib.h.
13298 # First, try using that file with no special directory specified.
13299 cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h. */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305 #include <X11/Xlib.h>
13306 _ACEOF
13307 if { (ac_try="$ac_cpp conftest.$ac_ext"
13308 case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } >/dev/null && {
13320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13321 test ! -s conftest.err
13322 }; then
13323 # We can compile using X headers with no special include directory.
13324 ac_x_includes=
13325 else
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13328
13329 for ac_dir in $ac_x_header_dirs; do
13330 if test -r "$ac_dir/X11/Xlib.h"; then
13331 ac_x_includes=$ac_dir
13332 break
13333 fi
13334 done
13335 fi
13336
13337 rm -f conftest.err conftest.$ac_ext
13338 fi # $ac_x_includes = no
13339
13340 if test "$ac_x_libraries" = no; then
13341 # Check for the libraries.
13342 # See if we find them without any special options.
13343 # Don't add to $LIBS permanently.
13344 ac_save_LIBS=$LIBS
13345 LIBS="-lX11 $LIBS"
13346 cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h. */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352 #include <X11/Xlib.h>
13353 int
13354 main ()
13355 {
13356 XrmInitialize ()
13357 ;
13358 return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (ac_try="$ac_link"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_link") 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest$ac_exeext &&
13378 $as_test_x conftest$ac_exeext; then
13379 LIBS=$ac_save_LIBS
13380 # We can link X programs with no special library path.
13381 ac_x_libraries=
13382 else
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386 LIBS=$ac_save_LIBS
13387 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13388 do
13389 # Don't even attempt the hair of trying to link an X program!
13390 for ac_extension in a so sl dylib la dll; do
13391 if test -r "$ac_dir/libX11.$ac_extension"; then
13392 ac_x_libraries=$ac_dir
13393 break 2
13394 fi
13395 done
13396 done
13397 fi
13398
13399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13400 conftest$ac_exeext conftest.$ac_ext
13401 fi # $ac_x_libraries = no
13402
13403 case $ac_x_includes,$ac_x_libraries in #(
13404 no,* | *,no | *\'*)
13405 # Didn't find X, or a directory has "'" in its name.
13406 ac_cv_have_x="have_x=no";; #(
13407 *)
13408 # Record where we found X for the cache.
13409 ac_cv_have_x="have_x=yes\
13410 ac_x_includes='$ac_x_includes'\
13411 ac_x_libraries='$ac_x_libraries'"
13412 esac
13413 fi
13414 ;; #(
13415 *) have_x=yes;;
13416 esac
13417 eval "$ac_cv_have_x"
13418 fi # $with_x != no
13419
13420 if test "$have_x" != yes; then
13421 { echo "$as_me:$LINENO: result: $have_x" >&5
13422 echo "${ECHO_T}$have_x" >&6; }
13423 no_x=yes
13424 else
13425 # If each of the values was on the command line, it overrides each guess.
13426 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13427 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13428 # Update the cache value to reflect the command line values.
13429 ac_cv_have_x="have_x=yes\
13430 ac_x_includes='$x_includes'\
13431 ac_x_libraries='$x_libraries'"
13432 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
13433 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
13434 fi
13435
13436 if test "$no_x" = yes; then
13437 # Not all programs may use this symbol, but it does not hurt to define it.
13438
13439 cat >>confdefs.h <<\_ACEOF
13440 #define X_DISPLAY_MISSING 1
13441 _ACEOF
13442
13443 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13444 else
13445 if test -n "$x_includes"; then
13446 X_CFLAGS="$X_CFLAGS -I$x_includes"
13447 fi
13448
13449 # It would also be nice to do this for all -L options, not just this one.
13450 if test -n "$x_libraries"; then
13451 X_LIBS="$X_LIBS -L$x_libraries"
13452 # For Solaris; some versions of Sun CC require a space after -R and
13453 # others require no space. Words are not sufficient . . . .
13454 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
13455 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
13456 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13457 ac_xsave_c_werror_flag=$ac_c_werror_flag
13458 ac_c_werror_flag=yes
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h. */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465
13466 int
13467 main ()
13468 {
13469
13470 ;
13471 return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest$ac_exeext &&
13491 $as_test_x conftest$ac_exeext; then
13492 { echo "$as_me:$LINENO: result: no" >&5
13493 echo "${ECHO_T}no" >&6; }
13494 X_LIBS="$X_LIBS -R$x_libraries"
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499 LIBS="$ac_xsave_LIBS -R $x_libraries"
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h. */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506
13507 int
13508 main ()
13509 {
13510
13511 ;
13512 return 0;
13513 }
13514 _ACEOF
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_link") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest$ac_exeext &&
13532 $as_test_x conftest$ac_exeext; then
13533 { echo "$as_me:$LINENO: result: yes" >&5
13534 echo "${ECHO_T}yes" >&6; }
13535 X_LIBS="$X_LIBS -R $x_libraries"
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 { echo "$as_me:$LINENO: result: neither works" >&5
13541 echo "${ECHO_T}neither works" >&6; }
13542 fi
13543
13544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13545 conftest$ac_exeext conftest.$ac_ext
13546 fi
13547
13548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13549 conftest$ac_exeext conftest.$ac_ext
13550 ac_c_werror_flag=$ac_xsave_c_werror_flag
13551 LIBS=$ac_xsave_LIBS
13552 fi
13553
13554 # Check for system-dependent libraries X programs must link with.
13555 # Do this before checking for the system-independent R6 libraries
13556 # (-lICE), since we may need -lsocket or whatever for X linking.
13557
13558 if test "$ISC" = yes; then
13559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13560 else
13561 # Martyn Johnson says this is needed for Ultrix, if the X
13562 # libraries were built with DECnet support. And Karl Berry says
13563 # the Alpha needs dnet_stub (dnet does not exist).
13564 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13565 cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h. */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571
13572 /* Override any GCC internal prototype to avoid an error.
13573 Use char because int might match the return type of a GCC
13574 builtin and then its argument prototype would still apply. */
13575 #ifdef __cplusplus
13576 extern "C"
13577 #endif
13578 char XOpenDisplay ();
13579 int
13580 main ()
13581 {
13582 return XOpenDisplay ();
13583 ;
13584 return 0;
13585 }
13586 _ACEOF
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (ac_try="$ac_link"
13589 case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592 esac
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && {
13601 test -z "$ac_c_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest$ac_exeext &&
13604 $as_test_x conftest$ac_exeext; then
13605 :
13606 else
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
13611 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
13612 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615 ac_check_lib_save_LIBS=$LIBS
13616 LIBS="-ldnet $LIBS"
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h. */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char dnet_ntoa ();
13631 int
13632 main ()
13633 {
13634 return dnet_ntoa ();
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 rm -f conftest.$ac_objext conftest$ac_exeext
13640 if { (ac_try="$ac_link"
13641 case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13644 esac
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_link") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext &&
13656 $as_test_x conftest$ac_exeext; then
13657 ac_cv_lib_dnet_dnet_ntoa=yes
13658 else
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 ac_cv_lib_dnet_dnet_ntoa=no
13663 fi
13664
13665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13666 conftest$ac_exeext conftest.$ac_ext
13667 LIBS=$ac_check_lib_save_LIBS
13668 fi
13669 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13670 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13671 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
13672 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13673 fi
13674
13675 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13676 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
13677 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
13678 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 else
13681 ac_check_lib_save_LIBS=$LIBS
13682 LIBS="-ldnet_stub $LIBS"
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h. */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char dnet_ntoa ();
13697 int
13698 main ()
13699 {
13700 return dnet_ntoa ();
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (ac_try="$ac_link"
13707 case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710 esac
13711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13712 (eval "$ac_link") 2>conftest.er1
13713 ac_status=$?
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } && {
13719 test -z "$ac_c_werror_flag" ||
13720 test ! -s conftest.err
13721 } && test -s conftest$ac_exeext &&
13722 $as_test_x conftest$ac_exeext; then
13723 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 ac_cv_lib_dnet_stub_dnet_ntoa=no
13729 fi
13730
13731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13732 conftest$ac_exeext conftest.$ac_ext
13733 LIBS=$ac_check_lib_save_LIBS
13734 fi
13735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13736 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13737 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
13738 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13739 fi
13740
13741 fi
13742 fi
13743
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS="$ac_xsave_LIBS"
13747
13748 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
13749 # to get the SysV transport functions.
13750 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13751 # needs -lnsl.
13752 # The nsl library prevents programs from opening the X display
13753 # on Irix 5.2, according to T.E. Dickey.
13754 # The functions gethostbyname, getservbyname, and inet_addr are
13755 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13756 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
13757 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
13758 if test "${ac_cv_func_gethostbyname+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h. */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13769 #define gethostbyname innocuous_gethostbyname
13770
13771 /* System header to define __stub macros and hopefully few prototypes,
13772 which can conflict with char gethostbyname (); below.
13773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13774 <limits.h> exists even on freestanding compilers. */
13775
13776 #ifdef __STDC__
13777 # include <limits.h>
13778 #else
13779 # include <assert.h>
13780 #endif
13781
13782 #undef gethostbyname
13783
13784 /* Override any GCC internal prototype to avoid an error.
13785 Use char because int might match the return type of a GCC
13786 builtin and then its argument prototype would still apply. */
13787 #ifdef __cplusplus
13788 extern "C"
13789 #endif
13790 char gethostbyname ();
13791 /* The GNU C library defines this for functions which it implements
13792 to always fail with ENOSYS. Some functions are actually named
13793 something starting with __ and the normal name is an alias. */
13794 #if defined __stub_gethostbyname || defined __stub___gethostbyname
13795 choke me
13796 #endif
13797
13798 int
13799 main ()
13800 {
13801 return gethostbyname ();
13802 ;
13803 return 0;
13804 }
13805 _ACEOF
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (ac_try="$ac_link"
13808 case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811 esac
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_link") 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest$ac_exeext &&
13823 $as_test_x conftest$ac_exeext; then
13824 ac_cv_func_gethostbyname=yes
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829 ac_cv_func_gethostbyname=no
13830 fi
13831
13832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13833 conftest$ac_exeext conftest.$ac_ext
13834 fi
13835 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13836 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
13837
13838 if test $ac_cv_func_gethostbyname = no; then
13839 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
13840 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
13841 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-lnsl $LIBS"
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 char gethostbyname ();
13860 int
13861 main ()
13862 {
13863 return gethostbyname ();
13864 ;
13865 return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest$ac_exeext &&
13885 $as_test_x conftest$ac_exeext; then
13886 ac_cv_lib_nsl_gethostbyname=yes
13887 else
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 ac_cv_lib_nsl_gethostbyname=no
13892 fi
13893
13894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13897 fi
13898 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
13899 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
13900 if test $ac_cv_lib_nsl_gethostbyname = yes; then
13901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13902 fi
13903
13904 if test $ac_cv_lib_nsl_gethostbyname = no; then
13905 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
13906 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
13907 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910 ac_check_lib_save_LIBS=$LIBS
13911 LIBS="-lbsd $LIBS"
13912 cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h. */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13922 #ifdef __cplusplus
13923 extern "C"
13924 #endif
13925 char gethostbyname ();
13926 int
13927 main ()
13928 {
13929 return gethostbyname ();
13930 ;
13931 return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext conftest$ac_exeext
13935 if { (ac_try="$ac_link"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_link") 2>conftest.er1
13942 ac_status=$?
13943 grep -v '^ *+' conftest.er1 >conftest.err
13944 rm -f conftest.er1
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && {
13948 test -z "$ac_c_werror_flag" ||
13949 test ! -s conftest.err
13950 } && test -s conftest$ac_exeext &&
13951 $as_test_x conftest$ac_exeext; then
13952 ac_cv_lib_bsd_gethostbyname=yes
13953 else
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957 ac_cv_lib_bsd_gethostbyname=no
13958 fi
13959
13960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13961 conftest$ac_exeext conftest.$ac_ext
13962 LIBS=$ac_check_lib_save_LIBS
13963 fi
13964 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
13965 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
13966 if test $ac_cv_lib_bsd_gethostbyname = yes; then
13967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13968 fi
13969
13970 fi
13971 fi
13972
13973 # [email protected] says without -lsocket,
13974 # socket/setsockopt and other routines are undefined under SCO ODT
13975 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13976 # on later versions), says Simon Leinen: it contains gethostby*
13977 # variants that don't use the name server (or something). -lsocket
13978 # must be given before -lnsl if both are needed. We assume that
13979 # if connect needs -lnsl, so does gethostbyname.
13980 { echo "$as_me:$LINENO: checking for connect" >&5
13981 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
13982 if test "${ac_cv_func_connect+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h. */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13993 #define connect innocuous_connect
13994
13995 /* System header to define __stub macros and hopefully few prototypes,
13996 which can conflict with char connect (); below.
13997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13998 <limits.h> exists even on freestanding compilers. */
13999
14000 #ifdef __STDC__
14001 # include <limits.h>
14002 #else
14003 # include <assert.h>
14004 #endif
14005
14006 #undef connect
14007
14008 /* Override any GCC internal prototype to avoid an error.
14009 Use char because int might match the return type of a GCC
14010 builtin and then its argument prototype would still apply. */
14011 #ifdef __cplusplus
14012 extern "C"
14013 #endif
14014 char connect ();
14015 /* The GNU C library defines this for functions which it implements
14016 to always fail with ENOSYS. Some functions are actually named
14017 something starting with __ and the normal name is an alias. */
14018 #if defined __stub_connect || defined __stub___connect
14019 choke me
14020 #endif
14021
14022 int
14023 main ()
14024 {
14025 return connect ();
14026 ;
14027 return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (ac_try="$ac_link"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14035 esac
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_link") 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && {
14044 test -z "$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 } && test -s conftest$ac_exeext &&
14047 $as_test_x conftest$ac_exeext; then
14048 ac_cv_func_connect=yes
14049 else
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053 ac_cv_func_connect=no
14054 fi
14055
14056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058 fi
14059 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
14060 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
14061
14062 if test $ac_cv_func_connect = no; then
14063 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14064 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
14065 if test "${ac_cv_lib_socket_connect+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 ac_check_lib_save_LIBS=$LIBS
14069 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14070 cat >conftest.$ac_ext <<_ACEOF
14071 /* confdefs.h. */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076
14077 /* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14080 #ifdef __cplusplus
14081 extern "C"
14082 #endif
14083 char connect ();
14084 int
14085 main ()
14086 {
14087 return connect ();
14088 ;
14089 return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_link") 2>conftest.er1
14100 ac_status=$?
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest$ac_exeext &&
14109 $as_test_x conftest$ac_exeext; then
14110 ac_cv_lib_socket_connect=yes
14111 else
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14114
14115 ac_cv_lib_socket_connect=no
14116 fi
14117
14118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14119 conftest$ac_exeext conftest.$ac_ext
14120 LIBS=$ac_check_lib_save_LIBS
14121 fi
14122 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14123 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
14124 if test $ac_cv_lib_socket_connect = yes; then
14125 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14126 fi
14127
14128 fi
14129
14130 # Guillermo Gomez says -lposix is necessary on A/UX.
14131 { echo "$as_me:$LINENO: checking for remove" >&5
14132 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
14133 if test "${ac_cv_func_remove+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
14143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14144 #define remove innocuous_remove
14145
14146 /* System header to define __stub macros and hopefully few prototypes,
14147 which can conflict with char remove (); below.
14148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14149 <limits.h> exists even on freestanding compilers. */
14150
14151 #ifdef __STDC__
14152 # include <limits.h>
14153 #else
14154 # include <assert.h>
14155 #endif
14156
14157 #undef remove
14158
14159 /* Override any GCC internal prototype to avoid an error.
14160 Use char because int might match the return type of a GCC
14161 builtin and then its argument prototype would still apply. */
14162 #ifdef __cplusplus
14163 extern "C"
14164 #endif
14165 char remove ();
14166 /* The GNU C library defines this for functions which it implements
14167 to always fail with ENOSYS. Some functions are actually named
14168 something starting with __ and the normal name is an alias. */
14169 #if defined __stub_remove || defined __stub___remove
14170 choke me
14171 #endif
14172
14173 int
14174 main ()
14175 {
14176 return remove ();
14177 ;
14178 return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (ac_try="$ac_link"
14183 case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14186 esac
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_link") 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && {
14195 test -z "$ac_c_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest$ac_exeext &&
14198 $as_test_x conftest$ac_exeext; then
14199 ac_cv_func_remove=yes
14200 else
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_cv_func_remove=no
14205 fi
14206
14207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14208 conftest$ac_exeext conftest.$ac_ext
14209 fi
14210 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
14211 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
14212
14213 if test $ac_cv_func_remove = no; then
14214 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
14215 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
14216 if test "${ac_cv_lib_posix_remove+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 else
14219 ac_check_lib_save_LIBS=$LIBS
14220 LIBS="-lposix $LIBS"
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h. */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227
14228 /* Override any GCC internal prototype to avoid an error.
14229 Use char because int might match the return type of a GCC
14230 builtin and then its argument prototype would still apply. */
14231 #ifdef __cplusplus
14232 extern "C"
14233 #endif
14234 char remove ();
14235 int
14236 main ()
14237 {
14238 return remove ();
14239 ;
14240 return 0;
14241 }
14242 _ACEOF
14243 rm -f conftest.$ac_objext conftest$ac_exeext
14244 if { (ac_try="$ac_link"
14245 case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_link") 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest$ac_exeext &&
14260 $as_test_x conftest$ac_exeext; then
14261 ac_cv_lib_posix_remove=yes
14262 else
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_cv_lib_posix_remove=no
14267 fi
14268
14269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14270 conftest$ac_exeext conftest.$ac_ext
14271 LIBS=$ac_check_lib_save_LIBS
14272 fi
14273 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
14274 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
14275 if test $ac_cv_lib_posix_remove = yes; then
14276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14277 fi
14278
14279 fi
14280
14281 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14282 { echo "$as_me:$LINENO: checking for shmat" >&5
14283 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
14284 if test "${ac_cv_func_shmat+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
14294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14295 #define shmat innocuous_shmat
14296
14297 /* System header to define __stub macros and hopefully few prototypes,
14298 which can conflict with char shmat (); below.
14299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14300 <limits.h> exists even on freestanding compilers. */
14301
14302 #ifdef __STDC__
14303 # include <limits.h>
14304 #else
14305 # include <assert.h>
14306 #endif
14307
14308 #undef shmat
14309
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313 #ifdef __cplusplus
14314 extern "C"
14315 #endif
14316 char shmat ();
14317 /* The GNU C library defines this for functions which it implements
14318 to always fail with ENOSYS. Some functions are actually named
14319 something starting with __ and the normal name is an alias. */
14320 #if defined __stub_shmat || defined __stub___shmat
14321 choke me
14322 #endif
14323
14324 int
14325 main ()
14326 {
14327 return shmat ();
14328 ;
14329 return 0;
14330 }
14331 _ACEOF
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (ac_try="$ac_link"
14334 case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_link") 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest$ac_exeext &&
14349 $as_test_x conftest$ac_exeext; then
14350 ac_cv_func_shmat=yes
14351 else
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 ac_cv_func_shmat=no
14356 fi
14357
14358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14359 conftest$ac_exeext conftest.$ac_ext
14360 fi
14361 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
14362 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
14363
14364 if test $ac_cv_func_shmat = no; then
14365 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
14366 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
14367 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370 ac_check_lib_save_LIBS=$LIBS
14371 LIBS="-lipc $LIBS"
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378
14379 /* Override any GCC internal prototype to avoid an error.
14380 Use char because int might match the return type of a GCC
14381 builtin and then its argument prototype would still apply. */
14382 #ifdef __cplusplus
14383 extern "C"
14384 #endif
14385 char shmat ();
14386 int
14387 main ()
14388 {
14389 return shmat ();
14390 ;
14391 return 0;
14392 }
14393 _ACEOF
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (ac_try="$ac_link"
14396 case "(($ac_try" in
14397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398 *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401 (eval "$ac_link") 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } && {
14408 test -z "$ac_c_werror_flag" ||
14409 test ! -s conftest.err
14410 } && test -s conftest$ac_exeext &&
14411 $as_test_x conftest$ac_exeext; then
14412 ac_cv_lib_ipc_shmat=yes
14413 else
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417 ac_cv_lib_ipc_shmat=no
14418 fi
14419
14420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14421 conftest$ac_exeext conftest.$ac_ext
14422 LIBS=$ac_check_lib_save_LIBS
14423 fi
14424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
14425 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
14426 if test $ac_cv_lib_ipc_shmat = yes; then
14427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14428 fi
14429
14430 fi
14431 fi
14432
14433 # Check for libraries that X11R6 Xt/Xaw programs need.
14434 ac_save_LDFLAGS=$LDFLAGS
14435 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14436 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14437 # check for ICE first), but we must link in the order -lSM -lICE or
14438 # we get undefined symbols. So assume we have SM if we have ICE.
14439 # These have to be linked with before -lX11, unlike the other
14440 # libraries we check for below, so use a different variable.
14441 # John Interrante, Karl Berry
14442 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
14443 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
14444 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char IceConnectionNumber ();
14463 int
14464 main ()
14465 {
14466 return IceConnectionNumber ();
14467 ;
14468 return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (ac_try="$ac_link"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_link") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest$ac_exeext &&
14488 $as_test_x conftest$ac_exeext; then
14489 ac_cv_lib_ICE_IceConnectionNumber=yes
14490 else
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14493
14494 ac_cv_lib_ICE_IceConnectionNumber=no
14495 fi
14496
14497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14500 fi
14501 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14502 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14503 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
14504 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14505 fi
14506
14507 LDFLAGS=$ac_save_LDFLAGS
14508
14509 fi
14510
14511 if test x$have_x = xyes; then
14512 CFLAGS="$CFLAGS $X_CFLAGS"
14513 SYS_GL_LIBS="$X_LIBS -lGL"
14514 else
14515 SYS_GL_LIBS="-lGL"
14516 fi
14517 ;;
14518 esac
14519 { echo "$as_me:$LINENO: checking for OpenGL support" >&5
14520 echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
14521 have_opengl=no
14522 cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h. */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528
14529 #include "SDL_opengl.h"
14530
14531 int
14532 main ()
14533 {
14534
14535 GLuint texture;
14536
14537 ;
14538 return 0;
14539 }
14540 _ACEOF
14541 rm -f conftest.$ac_objext
14542 if { (ac_try="$ac_compile"
14543 case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_compile") 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && {
14555 test -z "$ac_c_werror_flag" ||
14556 test ! -s conftest.err
14557 } && test -s conftest.$ac_objext; then
14558
14559 have_opengl=yes
14560
14561 else
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565
14566 fi
14567
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $have_opengl" >&5
14570 echo "${ECHO_T}$have_opengl" >&6; }
14571 if test x$have_opengl = xyes; then
14572 CFLAGS="$CFLAGS -DHAVE_OPENGL"
14573 GL_LIBS="$SYS_GL_LIBS"
14574 else
14575 GL_LIBS=""
14576 fi
14577
14578
14579
14580
14581 # Finally create all the generated files
14582 ac_config_files="$ac_config_files Makefile SDL_ttf.spec SDL_ttf.pc"
14583
14584 cat >confcache <<\_ACEOF
14585 # This file is a shell script that caches the results of configure
14586 # tests run on this system so they can be shared between configure
14587 # scripts and configure runs, see configure's option --config-cache.
14588 # It is not useful on other systems. If it contains results you don't
14589 # want to keep, you may remove or edit it.
14590 #
14591 # config.status only pays attention to the cache file if you give it
14592 # the --recheck option to rerun configure.
14593 #
14594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14596 # following values.
14597
14598 _ACEOF
14599
14600 # The following way of writing the cache mishandles newlines in values,
14601 # but we know of no workaround that is simple, portable, and efficient.
14602 # So, we kill variables containing newlines.
14603 # Ultrix sh set writes to stderr and can't be redirected directly,
14604 # and sets the high bit in the cache file unless we assign to the vars.
14605 (
14606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14607 eval ac_val=\$$ac_var
14608 case $ac_val in #(
14609 *${as_nl}*)
14610 case $ac_var in #(
14611 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14612 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14613 esac
14614 case $ac_var in #(
14615 _ | IFS | as_nl) ;; #(
14616 *) $as_unset $ac_var ;;
14617 esac ;;
14618 esac
14619 done
14620
14621 (set) 2>&1 |
14622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14623 *${as_nl}ac_space=\ *)
14624 # `set' does not quote correctly, so add quotes (double-quote
14625 # substitution turns \\\\ into \\, and sed turns \\ into \).
14626 sed -n \
14627 "s/'/'\\\\''/g;
14628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14629 ;; #(
14630 *)
14631 # `set' quotes correctly as required by POSIX, so do not add quotes.
14632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14633 ;;
14634 esac |
14635 sort
14636 ) |
14637 sed '
14638 /^ac_cv_env_/b end
14639 t clear
14640 :clear
14641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14642 t end
14643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14644 :end' >>confcache
14645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14646 if test -w "$cache_file"; then
14647 test "x$cache_file" != "x/dev/null" &&
14648 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14649 echo "$as_me: updating cache $cache_file" >&6;}
14650 cat confcache >$cache_file
14651 else
14652 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14653 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14654 fi
14655 fi
14656 rm -f confcache
14657
14658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14659 # Let make expand exec_prefix.
14660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14661
14662 # Transform confdefs.h into DEFS.
14663 # Protect against shell expansion while executing Makefile rules.
14664 # Protect against Makefile macro expansion.
14665 #
14666 # If the first sed substitution is executed (which looks for macros that
14667 # take arguments), then branch to the quote section. Otherwise,
14668 # look for a macro that doesn't take arguments.
14669 ac_script='
14670 t clear
14671 :clear
14672 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14673 t quote
14674 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14675 t quote
14676 b any
14677 :quote
14678 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14679 s/\[/\\&/g
14680 s/\]/\\&/g
14681 s/\$/$$/g
14682 H
14683 :any
14684 ${
14685 g
14686 s/^\n//
14687 s/\n/ /g
14688 p
14689 }
14690 '
14691 DEFS=`sed -n "$ac_script" confdefs.h`
14692
14693
14694 ac_libobjs=
14695 ac_ltlibobjs=
14696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14697 # 1. Remove the extension, and $U if already installed.
14698 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14699 ac_i=`echo "$ac_i" | sed "$ac_script"`
14700 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14701 # will be set to the directory where LIBOBJS objects are built.
14702 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14703 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14704 done
14705 LIBOBJS=$ac_libobjs
14706
14707 LTLIBOBJS=$ac_ltlibobjs
14708
14709
14710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14711 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14712 Usually this means the macro was only invoked conditionally." >&5
14713 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14714 Usually this means the macro was only invoked conditionally." >&2;}
14715 { (exit 1); exit 1; }; }
14716 fi
14717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14718 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14719 Usually this means the macro was only invoked conditionally." >&5
14720 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14721 Usually this means the macro was only invoked conditionally." >&2;}
14722 { (exit 1); exit 1; }; }
14723 fi
14724 if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
14725 { { echo "$as_me:$LINENO: error: conditional \"USE_VERSION_RC\" was never defined.
14726 Usually this means the macro was only invoked conditionally." >&5
14727 echo "$as_me: error: conditional \"USE_VERSION_RC\" was never defined.
14728 Usually this means the macro was only invoked conditionally." >&2;}
14729 { (exit 1); exit 1; }; }
14730 fi
14731
14732 : ${CONFIG_STATUS=./config.status}
14733 ac_clean_files_save=$ac_clean_files
14734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14735 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14737 cat >$CONFIG_STATUS <<_ACEOF
14738 #! $SHELL
14739 # Generated by $as_me.
14740 # Run this file to recreate the current configuration.
14741 # Compiler output produced by configure, useful for debugging
14742 # configure, is in config.log if it exists.
14743
14744 debug=false
14745 ac_cs_recheck=false
14746 ac_cs_silent=false
14747 SHELL=\${CONFIG_SHELL-$SHELL}
14748 _ACEOF
14749
14750 cat >>$CONFIG_STATUS <<\_ACEOF
14751 ## --------------------- ##
14752 ## M4sh Initialization. ##
14753 ## --------------------- ##
14754
14755 # Be more Bourne compatible
14756 DUALCASE=1; export DUALCASE # for MKS sh
14757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14758 emulate sh
14759 NULLCMD=:
14760 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14761 # is contrary to our usage. Disable this feature.
14762 alias -g '${1+"$@"}'='"$@"'
14763 setopt NO_GLOB_SUBST
14764 else
14765 case `(set -o) 2>/dev/null` in
14766 *posix*) set -o posix ;;
14767 esac
14768
14769 fi
14770
14771
14772
14773
14774 # PATH needs CR
14775 # Avoid depending upon Character Ranges.
14776 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14777 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14778 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14779 as_cr_digits='0123456789'
14780 as_cr_alnum=$as_cr_Letters$as_cr_digits
14781
14782 # The user is always right.
14783 if test "${PATH_SEPARATOR+set}" != set; then
14784 echo "#! /bin/sh" >conf$$.sh
14785 echo "exit 0" >>conf$$.sh
14786 chmod +x conf$$.sh
14787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14788 PATH_SEPARATOR=';'
14789 else
14790 PATH_SEPARATOR=:
14791 fi
14792 rm -f conf$$.sh
14793 fi
14794
14795 # Support unset when possible.
14796 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14797 as_unset=unset
14798 else
14799 as_unset=false
14800 fi
14801
14802
14803 # IFS
14804 # We need space, tab and new line, in precisely that order. Quoting is
14805 # there to prevent editors from complaining about space-tab.
14806 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14807 # splitting by setting IFS to empty value.)
14808 as_nl='
14809 '
14810 IFS=" "" $as_nl"
14811
14812 # Find who we are. Look in the path if we contain no directory separator.
14813 case $0 in
14814 *[\\/]* ) as_myself=$0 ;;
14815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14817 do
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14821 done
14822 IFS=$as_save_IFS
14823
14824 ;;
14825 esac
14826 # We did not find ourselves, most probably we were run as `sh COMMAND'
14827 # in which case we are not to be found in the path.
14828 if test "x$as_myself" = x; then
14829 as_myself=$0
14830 fi
14831 if test ! -f "$as_myself"; then
14832 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14833 { (exit 1); exit 1; }
14834 fi
14835
14836 # Work around bugs in pre-3.0 UWIN ksh.
14837 for as_var in ENV MAIL MAILPATH
14838 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14839 done
14840 PS1='$ '
14841 PS2='> '
14842 PS4='+ '
14843
14844 # NLS nuisances.
14845 for as_var in \
14846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14848 LC_TELEPHONE LC_TIME
14849 do
14850 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14851 eval $as_var=C; export $as_var
14852 else
14853 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14854 fi
14855 done
14856
14857 # Required to use basename.
14858 if expr a : '\(a\)' >/dev/null 2>&1 &&
14859 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14860 as_expr=expr
14861 else
14862 as_expr=false
14863 fi
14864
14865 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14866 as_basename=basename
14867 else
14868 as_basename=false
14869 fi
14870
14871
14872 # Name of the executable.
14873 as_me=`$as_basename -- "$0" ||
14874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14875 X"$0" : 'X\(//\)$' \| \
14876 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14877 echo X/"$0" |
14878 sed '/^.*\/\([^/][^/]*\)\/*$/{
14879 s//\1/
14880 q
14881 }
14882 /^X\/\(\/\/\)$/{
14883 s//\1/
14884 q
14885 }
14886 /^X\/\(\/\).*/{
14887 s//\1/
14888 q
14889 }
14890 s/.*/./; q'`
14891
14892 # CDPATH.
14893 $as_unset CDPATH
14894
14895
14896
14897 as_lineno_1=$LINENO
14898 as_lineno_2=$LINENO
14899 test "x$as_lineno_1" != "x$as_lineno_2" &&
14900 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14901
14902 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14903 # uniformly replaced by the line number. The first 'sed' inserts a
14904 # line-number line after each line using $LINENO; the second 'sed'
14905 # does the real work. The second script uses 'N' to pair each
14906 # line-number line with the line containing $LINENO, and appends
14907 # trailing '-' during substitution so that $LINENO is not a special
14908 # case at line end.
14909 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14910 # scripts with optimization help from Paolo Bonzini. Blame Lee
14911 # E. McMahon (1931-1989) for sed's syntax. :-)
14912 sed -n '
14913 p
14914 /[$]LINENO/=
14915 ' <$as_myself |
14916 sed '
14917 s/[$]LINENO.*/&-/
14918 t lineno
14919 b
14920 :lineno
14921 N
14922 :loop
14923 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14924 t loop
14925 s/-\n.*//
14926 ' >$as_me.lineno &&
14927 chmod +x "$as_me.lineno" ||
14928 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14929 { (exit 1); exit 1; }; }
14930
14931 # Don't try to exec as it changes $[0], causing all sort of problems
14932 # (the dirname of $[0] is not the place where we might find the
14933 # original and so on. Autoconf is especially sensitive to this).
14934 . "./$as_me.lineno"
14935 # Exit status is that of the last command.
14936 exit
14937 }
14938
14939
14940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14941 as_dirname=dirname
14942 else
14943 as_dirname=false
14944 fi
14945
14946 ECHO_C= ECHO_N= ECHO_T=
14947 case `echo -n x` in
14948 -n*)
14949 case `echo 'x\c'` in
14950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14951 *) ECHO_C='\c';;
14952 esac;;
14953 *)
14954 ECHO_N='-n';;
14955 esac
14956
14957 if expr a : '\(a\)' >/dev/null 2>&1 &&
14958 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14959 as_expr=expr
14960 else
14961 as_expr=false
14962 fi
14963
14964 rm -f conf$$ conf$$.exe conf$$.file
14965 if test -d conf$$.dir; then
14966 rm -f conf$$.dir/conf$$.file
14967 else
14968 rm -f conf$$.dir
14969 mkdir conf$$.dir
14970 fi
14971 echo >conf$$.file
14972 if ln -s conf$$.file conf$$ 2>/dev/null; then
14973 as_ln_s='ln -s'
14974 # ... but there are two gotchas:
14975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14977 # In both cases, we have to default to `cp -p'.
14978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14979 as_ln_s='cp -p'
14980 elif ln conf$$.file conf$$ 2>/dev/null; then
14981 as_ln_s=ln
14982 else
14983 as_ln_s='cp -p'
14984 fi
14985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14986 rmdir conf$$.dir 2>/dev/null
14987
14988 if mkdir -p . 2>/dev/null; then
14989 as_mkdir_p=:
14990 else
14991 test -d ./-p && rmdir ./-p
14992 as_mkdir_p=false
14993 fi
14994
14995 if test -x / >/dev/null 2>&1; then
14996 as_test_x='test -x'
14997 else
14998 if ls -dL / >/dev/null 2>&1; then
14999 as_ls_L_option=L
15000 else
15001 as_ls_L_option=
15002 fi
15003 as_test_x='
15004 eval sh -c '\''
15005 if test -d "$1"; then
15006 test -d "$1/.";
15007 else
15008 case $1 in
15009 -*)set "./$1";;
15010 esac;
15011 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15012 ???[sx]*):;;*)false;;esac;fi
15013 '\'' sh
15014 '
15015 fi
15016 as_executable_p=$as_test_x
15017
15018 # Sed expression to map a string onto a valid CPP name.
15019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15020
15021 # Sed expression to map a string onto a valid variable name.
15022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15023
15024
15025 exec 6>&1
15026
15027 # Save the log message, to keep $[0] and so on meaningful, and to
15028 # report actual input values of CONFIG_FILES etc. instead of their
15029 # values after options handling.
15030 ac_log="
15031 This file was extended by $as_me, which was
15032 generated by GNU Autoconf 2.61. Invocation command line was
15033
15034 CONFIG_FILES = $CONFIG_FILES
15035 CONFIG_HEADERS = $CONFIG_HEADERS
15036 CONFIG_LINKS = $CONFIG_LINKS
15037 CONFIG_COMMANDS = $CONFIG_COMMANDS
15038 $ $0 $@
15039
15040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15041 "
15042
15043 _ACEOF
15044
15045 cat >>$CONFIG_STATUS <<_ACEOF
15046 # Files that config.status was made for.
15047 config_files="$ac_config_files"
15048 config_commands="$ac_config_commands"
15049
15050 _ACEOF
15051
15052 cat >>$CONFIG_STATUS <<\_ACEOF
15053 ac_cs_usage="\
15054 \`$as_me' instantiates files from templates according to the
15055 current configuration.
15056
15057 Usage: $0 [OPTIONS] [FILE]...
15058
15059 -h, --help print this help, then exit
15060 -V, --version print version number and configuration settings, then exit
15061 -q, --quiet do not print progress messages
15062 -d, --debug don't remove temporary files
15063 --recheck update $as_me by reconfiguring in the same conditions
15064 --file=FILE[:TEMPLATE]
15065 instantiate the configuration file FILE
15066
15067 Configuration files:
15068 $config_files
15069
15070 Configuration commands:
15071 $config_commands
15072
15073 Report bugs to <[email protected]>."
15074
15075 _ACEOF
15076 cat >>$CONFIG_STATUS <<_ACEOF
15077 ac_cs_version="\\
15078 config.status
15079 configured by $0, generated by GNU Autoconf 2.61,
15080 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15081
15082 Copyright (C) 2006 Free Software Foundation, Inc.
15083 This config.status script is free software; the Free Software Foundation
15084 gives unlimited permission to copy, distribute and modify it."
15085
15086 ac_pwd='$ac_pwd'
15087 srcdir='$srcdir'
15088 INSTALL='$INSTALL'
15089 MKDIR_P='$MKDIR_P'
15090 _ACEOF
15091
15092 cat >>$CONFIG_STATUS <<\_ACEOF
15093 # If no file are specified by the user, then we need to provide default
15094 # value. By we need to know if files were specified by the user.
15095 ac_need_defaults=:
15096 while test $# != 0
15097 do
15098 case $1 in
15099 --*=*)
15100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15102 ac_shift=:
15103 ;;
15104 *)
15105 ac_option=$1
15106 ac_optarg=$2
15107 ac_shift=shift
15108 ;;
15109 esac
15110
15111 case $ac_option in
15112 # Handling of the options.
15113 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15114 ac_cs_recheck=: ;;
15115 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15116 echo "$ac_cs_version"; exit ;;
15117 --debug | --debu | --deb | --de | --d | -d )
15118 debug=: ;;
15119 --file | --fil | --fi | --f )
15120 $ac_shift
15121 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15122 ac_need_defaults=false;;
15123 --he | --h | --help | --hel | -h )
15124 echo "$ac_cs_usage"; exit ;;
15125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15127 ac_cs_silent=: ;;
15128
15129 # This is an error.
15130 -*) { echo "$as_me: error: unrecognized option: $1
15131 Try \`$0 --help' for more information." >&2
15132 { (exit 1); exit 1; }; } ;;
15133
15134 *) ac_config_targets="$ac_config_targets $1"
15135 ac_need_defaults=false ;;
15136
15137 esac
15138 shift
15139 done
15140
15141 ac_configure_extra_args=
15142
15143 if $ac_cs_silent; then
15144 exec 6>/dev/null
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15146 fi
15147
15148 _ACEOF
15149 cat >>$CONFIG_STATUS <<_ACEOF
15150 if \$ac_cs_recheck; then
15151 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15152 CONFIG_SHELL=$SHELL
15153 export CONFIG_SHELL
15154 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15155 fi
15156
15157 _ACEOF
15158 cat >>$CONFIG_STATUS <<\_ACEOF
15159 exec 5>>config.log
15160 {
15161 echo
15162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15163 ## Running $as_me. ##
15164 _ASBOX
15165 echo "$ac_log"
15166 } >&5
15167
15168 _ACEOF
15169 cat >>$CONFIG_STATUS <<_ACEOF
15170 #
15171 # INIT-COMMANDS
15172 #
15173
15174
15175 # The HP-UX ksh and POSIX shell print the target directory to stdout
15176 # if CDPATH is set.
15177 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15178
15179 sed_quote_subst='$sed_quote_subst'
15180 double_quote_subst='$double_quote_subst'
15181 delay_variable_subst='$delay_variable_subst'
15182 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15183 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15184 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15185 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15186 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15187 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15188 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15189 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15190 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15191 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15192 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15193 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15194 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15195 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15196 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15197 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15198 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15199 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15200 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15201 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15202 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15203 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15204 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15205 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15206 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15207 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15208 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15209 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15210 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15211 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15212 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15213 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15214 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15215 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15216 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15217 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15218 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15219 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15220 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15221 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15222 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15223 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15224 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15225 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15226 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15227 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15228 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"`'
15229 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"`'
15230 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15231 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15232 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15233 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15234 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15235 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15236 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15237 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15238 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15239 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15240 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15241 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15242 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15243 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15244 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15245 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15246 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15247 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15248 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15249 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15250 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15251 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15252 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15253 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15254 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15255 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15256 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15257 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15258 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15259 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15260 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15261 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15262 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15263 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15264 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15265 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15266 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15267 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15268 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15269 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15270 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15271 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15272 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15273 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15274 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15275 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15276 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15277 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15278 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15279 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15280 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15281 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15282 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15283 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15284 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15285 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15286 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15287 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15288 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15289 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15290 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15291 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15292 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15293 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15294 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15295 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15296 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15297 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15298 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15299 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15300 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15301 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15302
15303 LTCC='$LTCC'
15304 LTCFLAGS='$LTCFLAGS'
15305 compiler='$compiler_DEFAULT'
15306
15307 # Quote evaled strings.
15308 for var in SED \
15309 GREP \
15310 EGREP \
15311 FGREP \
15312 LD \
15313 NM \
15314 LN_S \
15315 lt_SP2NL \
15316 lt_NL2SP \
15317 reload_flag \
15318 deplibs_check_method \
15319 file_magic_cmd \
15320 AR \
15321 AR_FLAGS \
15322 STRIP \
15323 RANLIB \
15324 CC \
15325 CFLAGS \
15326 compiler \
15327 lt_cv_sys_global_symbol_pipe \
15328 lt_cv_sys_global_symbol_to_cdecl \
15329 lt_cv_sys_global_symbol_to_c_name_address \
15330 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15331 SHELL \
15332 ECHO \
15333 lt_prog_compiler_no_builtin_flag \
15334 lt_prog_compiler_wl \
15335 lt_prog_compiler_pic \
15336 lt_prog_compiler_static \
15337 lt_cv_prog_compiler_c_o \
15338 need_locks \
15339 DSYMUTIL \
15340 NMEDIT \
15341 LIPO \
15342 OTOOL \
15343 OTOOL64 \
15344 shrext_cmds \
15345 export_dynamic_flag_spec \
15346 whole_archive_flag_spec \
15347 compiler_needs_object \
15348 with_gnu_ld \
15349 allow_undefined_flag \
15350 no_undefined_flag \
15351 hardcode_libdir_flag_spec \
15352 hardcode_libdir_flag_spec_ld \
15353 hardcode_libdir_separator \
15354 fix_srcfile_path \
15355 exclude_expsyms \
15356 include_expsyms \
15357 file_list_spec \
15358 variables_saved_for_relink \
15359 libname_spec \
15360 library_names_spec \
15361 soname_spec \
15362 finish_eval \
15363 old_striplib \
15364 striplib; do
15365 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15366 *[\\\\\\\`\\"\\\$]*)
15367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15368 ;;
15369 *)
15370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15371 ;;
15372 esac
15373 done
15374
15375 # Double-quote double-evaled strings.
15376 for var in reload_cmds \
15377 old_postinstall_cmds \
15378 old_postuninstall_cmds \
15379 old_archive_cmds \
15380 extract_expsyms_cmds \
15381 old_archive_from_new_cmds \
15382 old_archive_from_expsyms_cmds \
15383 archive_cmds \
15384 archive_expsym_cmds \
15385 module_cmds \
15386 module_expsym_cmds \
15387 export_symbols_cmds \
15388 prelink_cmds \
15389 postinstall_cmds \
15390 postuninstall_cmds \
15391 finish_cmds \
15392 sys_lib_search_path_spec \
15393 sys_lib_dlsearch_path_spec; do
15394 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15395 *[\\\\\\\`\\"\\\$]*)
15396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15397 ;;
15398 *)
15399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15400 ;;
15401 esac
15402 done
15403
15404 # Fix-up fallback echo if it was mangled by the above quoting rules.
15405 case \$lt_ECHO in
15406 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15407 ;;
15408 esac
15409
15410 ac_aux_dir='$ac_aux_dir'
15411 xsi_shell='$xsi_shell'
15412 lt_shell_append='$lt_shell_append'
15413
15414 # See if we are running on zsh, and set the options which allow our
15415 # commands through without removal of \ escapes INIT.
15416 if test -n "\${ZSH_VERSION+set}" ; then
15417 setopt NO_GLOB_SUBST
15418 fi
15419
15420
15421 PACKAGE='$PACKAGE'
15422 VERSION='$VERSION'
15423 TIMESTAMP='$TIMESTAMP'
15424 RM='$RM'
15425 ofile='$ofile'
15426
15427
15428
15429 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15430
15431 _ACEOF
15432
15433 cat >>$CONFIG_STATUS <<\_ACEOF
15434
15435 # Handling of arguments.
15436 for ac_config_target in $ac_config_targets
15437 do
15438 case $ac_config_target in
15439 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15440 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15442 "SDL_ttf.spec") CONFIG_FILES="$CONFIG_FILES SDL_ttf.spec" ;;
15443 "SDL_ttf.pc") CONFIG_FILES="$CONFIG_FILES SDL_ttf.pc" ;;
15444
15445 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15446 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15447 { (exit 1); exit 1; }; };;
15448 esac
15449 done
15450
15451
15452 # If the user did not use the arguments to specify the items to instantiate,
15453 # then the envvar interface is used. Set only those that are not.
15454 # We use the long form for the default assignment because of an extremely
15455 # bizarre bug on SunOS 4.1.3.
15456 if $ac_need_defaults; then
15457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15459 fi
15460
15461 # Have a temporary directory for convenience. Make it in the build tree
15462 # simply because there is no reason against having it here, and in addition,
15463 # creating and moving files from /tmp can sometimes cause problems.
15464 # Hook for its removal unless debugging.
15465 # Note that there is a small window in which the directory will not be cleaned:
15466 # after its creation but before its name has been assigned to `$tmp'.
15467 $debug ||
15468 {
15469 tmp=
15470 trap 'exit_status=$?
15471 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15472 ' 0
15473 trap '{ (exit 1); exit 1; }' 1 2 13 15
15474 }
15475 # Create a (secure) tmp directory for tmp files.
15476
15477 {
15478 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15479 test -n "$tmp" && test -d "$tmp"
15480 } ||
15481 {
15482 tmp=./conf$$-$RANDOM
15483 (umask 077 && mkdir "$tmp")
15484 } ||
15485 {
15486 echo "$me: cannot create a temporary directory in ." >&2
15487 { (exit 1); exit 1; }
15488 }
15489
15490 #
15491 # Set up the sed scripts for CONFIG_FILES section.
15492 #
15493
15494 # No need to generate the scripts if there are no CONFIG_FILES.
15495 # This happens for instance when ./config.status config.h
15496 if test -n "$CONFIG_FILES"; then
15497
15498 _ACEOF
15499
15500
15501
15502 ac_delim='%!_!# '
15503 for ac_last_try in false false false false false :; do
15504 cat >conf$$subs.sed <<_ACEOF
15505 SHELL!$SHELL$ac_delim
15506 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15507 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15508 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15509 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15510 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15511 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15512 exec_prefix!$exec_prefix$ac_delim
15513 prefix!$prefix$ac_delim
15514 program_transform_name!$program_transform_name$ac_delim
15515 bindir!$bindir$ac_delim
15516 sbindir!$sbindir$ac_delim
15517 libexecdir!$libexecdir$ac_delim
15518 datarootdir!$datarootdir$ac_delim
15519 datadir!$datadir$ac_delim
15520 sysconfdir!$sysconfdir$ac_delim
15521 sharedstatedir!$sharedstatedir$ac_delim
15522 localstatedir!$localstatedir$ac_delim
15523 includedir!$includedir$ac_delim
15524 oldincludedir!$oldincludedir$ac_delim
15525 docdir!$docdir$ac_delim
15526 infodir!$infodir$ac_delim
15527 htmldir!$htmldir$ac_delim
15528 dvidir!$dvidir$ac_delim
15529 pdfdir!$pdfdir$ac_delim
15530 psdir!$psdir$ac_delim
15531 libdir!$libdir$ac_delim
15532 localedir!$localedir$ac_delim
15533 mandir!$mandir$ac_delim
15534 DEFS!$DEFS$ac_delim
15535 ECHO_C!$ECHO_C$ac_delim
15536 ECHO_N!$ECHO_N$ac_delim
15537 ECHO_T!$ECHO_T$ac_delim
15538 LIBS!$LIBS$ac_delim
15539 build_alias!$build_alias$ac_delim
15540 host_alias!$host_alias$ac_delim
15541 target_alias!$target_alias$ac_delim
15542 MAJOR_VERSION!$MAJOR_VERSION$ac_delim
15543 MINOR_VERSION!$MINOR_VERSION$ac_delim
15544 MICRO_VERSION!$MICRO_VERSION$ac_delim
15545 INTERFACE_AGE!$INTERFACE_AGE$ac_delim
15546 BINARY_AGE!$BINARY_AGE$ac_delim
15547 VERSION!$VERSION$ac_delim
15548 AS!$AS$ac_delim
15549 DLLTOOL!$DLLTOOL$ac_delim
15550 OBJDUMP!$OBJDUMP$ac_delim
15551 LIBTOOL!$LIBTOOL$ac_delim
15552 build!$build$ac_delim
15553 build_cpu!$build_cpu$ac_delim
15554 build_vendor!$build_vendor$ac_delim
15555 build_os!$build_os$ac_delim
15556 host!$host$ac_delim
15557 host_cpu!$host_cpu$ac_delim
15558 host_vendor!$host_vendor$ac_delim
15559 host_os!$host_os$ac_delim
15560 CC!$CC$ac_delim
15561 CFLAGS!$CFLAGS$ac_delim
15562 LDFLAGS!$LDFLAGS$ac_delim
15563 CPPFLAGS!$CPPFLAGS$ac_delim
15564 ac_ct_CC!$ac_ct_CC$ac_delim
15565 EXEEXT!$EXEEXT$ac_delim
15566 OBJEXT!$OBJEXT$ac_delim
15567 SED!$SED$ac_delim
15568 GREP!$GREP$ac_delim
15569 EGREP!$EGREP$ac_delim
15570 FGREP!$FGREP$ac_delim
15571 LD!$LD$ac_delim
15572 DUMPBIN!$DUMPBIN$ac_delim
15573 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
15574 NM!$NM$ac_delim
15575 LN_S!$LN_S$ac_delim
15576 AR!$AR$ac_delim
15577 STRIP!$STRIP$ac_delim
15578 RANLIB!$RANLIB$ac_delim
15579 lt_ECHO!$lt_ECHO$ac_delim
15580 DSYMUTIL!$DSYMUTIL$ac_delim
15581 NMEDIT!$NMEDIT$ac_delim
15582 LIPO!$LIPO$ac_delim
15583 OTOOL!$OTOOL$ac_delim
15584 OTOOL64!$OTOOL64$ac_delim
15585 CPP!$CPP$ac_delim
15586 LT_RELEASE!$LT_RELEASE$ac_delim
15587 LT_CURRENT!$LT_CURRENT$ac_delim
15588 LT_REVISION!$LT_REVISION$ac_delim
15589 LT_AGE!$LT_AGE$ac_delim
15590 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15591 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15592 INSTALL_DATA!$INSTALL_DATA$ac_delim
15593 am__isrc!$am__isrc$ac_delim
15594 CYGPATH_W!$CYGPATH_W$ac_delim
15595 PACKAGE!$PACKAGE$ac_delim
15596 ACLOCAL!$ACLOCAL$ac_delim
15597 AUTOCONF!$AUTOCONF$ac_delim
15598 AUTOMAKE!$AUTOMAKE$ac_delim
15599 AUTOHEADER!$AUTOHEADER$ac_delim
15600 MAKEINFO!$MAKEINFO$ac_delim
15601 install_sh!$install_sh$ac_delim
15602 _ACEOF
15603
15604 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15605 break
15606 elif $ac_last_try; then
15607 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15608 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15609 { (exit 1); exit 1; }; }
15610 else
15611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15612 fi
15613 done
15614
15615 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15616 if test -n "$ac_eof"; then
15617 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15618 ac_eof=`expr $ac_eof + 1`
15619 fi
15620
15621 cat >>$CONFIG_STATUS <<_ACEOF
15622 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15624 _ACEOF
15625 sed '
15626 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15627 s/^/s,@/; s/!/@,|#_!!_#|/
15628 :n
15629 t n
15630 s/'"$ac_delim"'$/,g/; t
15631 s/$/\\/; p
15632 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15633 ' >>$CONFIG_STATUS <conf$$subs.sed
15634 rm -f conf$$subs.sed
15635 cat >>$CONFIG_STATUS <<_ACEOF
15636 CEOF$ac_eof
15637 _ACEOF
15638
15639
15640 ac_delim='%!_!# '
15641 for ac_last_try in false false false false false :; do
15642 cat >conf$$subs.sed <<_ACEOF
15643 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15644 mkdir_p!$mkdir_p$ac_delim
15645 AWK!$AWK$ac_delim
15646 SET_MAKE!$SET_MAKE$ac_delim
15647 am__leading_dot!$am__leading_dot$ac_delim
15648 AMTAR!$AMTAR$ac_delim
15649 am__tar!$am__tar$ac_delim
15650 am__untar!$am__untar$ac_delim
15651 DEPDIR!$DEPDIR$ac_delim
15652 am__include!$am__include$ac_delim
15653 am__quote!$am__quote$ac_delim
15654 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15655 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15656 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15657 CCDEPMODE!$CCDEPMODE$ac_delim
15658 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15659 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15660 WINDRES!$WINDRES$ac_delim
15661 ALLOCA!$ALLOCA$ac_delim
15662 USE_VERSION_RC_TRUE!$USE_VERSION_RC_TRUE$ac_delim
15663 USE_VERSION_RC_FALSE!$USE_VERSION_RC_FALSE$ac_delim
15664 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
15665 SDL_VERSION!$SDL_VERSION$ac_delim
15666 PKG_CONFIG!$PKG_CONFIG$ac_delim
15667 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
15668 SDL_LIBS!$SDL_LIBS$ac_delim
15669 SDL_CONFIG!$SDL_CONFIG$ac_delim
15670 XMKMF!$XMKMF$ac_delim
15671 X_CFLAGS!$X_CFLAGS$ac_delim
15672 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
15673 X_LIBS!$X_LIBS$ac_delim
15674 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
15675 GL_LIBS!$GL_LIBS$ac_delim
15676 MATHLIB!$MATHLIB$ac_delim
15677 LIBOBJS!$LIBOBJS$ac_delim
15678 LTLIBOBJS!$LTLIBOBJS$ac_delim
15679 _ACEOF
15680
15681 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
15682 break
15683 elif $ac_last_try; then
15684 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15685 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15686 { (exit 1); exit 1; }; }
15687 else
15688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15689 fi
15690 done
15691
15692 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15693 if test -n "$ac_eof"; then
15694 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15695 ac_eof=`expr $ac_eof + 1`
15696 fi
15697
15698 cat >>$CONFIG_STATUS <<_ACEOF
15699 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15701 _ACEOF
15702 sed '
15703 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15704 s/^/s,@/; s/!/@,|#_!!_#|/
15705 :n
15706 t n
15707 s/'"$ac_delim"'$/,g/; t
15708 s/$/\\/; p
15709 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15710 ' >>$CONFIG_STATUS <conf$$subs.sed
15711 rm -f conf$$subs.sed
15712 cat >>$CONFIG_STATUS <<_ACEOF
15713 :end
15714 s/|#_!!_#|//g
15715 CEOF$ac_eof
15716 _ACEOF
15717
15718
15719 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15721 # trailing colons and then remove the whole line if VPATH becomes empty
15722 # (actually we leave an empty line to preserve line numbers).
15723 if test "x$srcdir" = x.; then
15724 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15725 s/:*\$(srcdir):*/:/
15726 s/:*\${srcdir}:*/:/
15727 s/:*@srcdir@:*/:/
15728 s/^\([^=]*=[ ]*\):*/\1/
15729 s/:*$//
15730 s/^[^=]*=[ ]*$//
15731 }'
15732 fi
15733
15734 cat >>$CONFIG_STATUS <<\_ACEOF
15735 fi # test -n "$CONFIG_FILES"
15736
15737
15738 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
15739 do
15740 case $ac_tag in
15741 :[FHLC]) ac_mode=$ac_tag; continue;;
15742 esac
15743 case $ac_mode$ac_tag in
15744 :[FHL]*:*);;
15745 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15746 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15747 { (exit 1); exit 1; }; };;
15748 :[FH]-) ac_tag=-:-;;
15749 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15750 esac
15751 ac_save_IFS=$IFS
15752 IFS=:
15753 set x $ac_tag
15754 IFS=$ac_save_IFS
15755 shift
15756 ac_file=$1
15757 shift
15758
15759 case $ac_mode in
15760 :L) ac_source=$1;;
15761 :[FH])
15762 ac_file_inputs=
15763 for ac_f
15764 do
15765 case $ac_f in
15766 -) ac_f="$tmp/stdin";;
15767 *) # Look for the file first in the build tree, then in the source tree
15768 # (if the path is not absolute). The absolute path cannot be DOS-style,
15769 # because $ac_f cannot contain `:'.
15770 test -f "$ac_f" ||
15771 case $ac_f in
15772 [\\/$]*) false;;
15773 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15774 esac ||
15775 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15776 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15777 { (exit 1); exit 1; }; };;
15778 esac
15779 ac_file_inputs="$ac_file_inputs $ac_f"
15780 done
15781
15782 # Let's still pretend it is `configure' which instantiates (i.e., don't
15783 # use $as_me), people would be surprised to read:
15784 # /* config.h. Generated by config.status. */
15785 configure_input="Generated from "`IFS=:
15786 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15787 if test x"$ac_file" != x-; then
15788 configure_input="$ac_file. $configure_input"
15789 { echo "$as_me:$LINENO: creating $ac_file" >&5
15790 echo "$as_me: creating $ac_file" >&6;}
15791 fi
15792
15793 case $ac_tag in
15794 *:-:* | *:-) cat >"$tmp/stdin";;
15795 esac
15796 ;;
15797 esac
15798
15799 ac_dir=`$as_dirname -- "$ac_file" ||
15800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15801 X"$ac_file" : 'X\(//\)[^/]' \| \
15802 X"$ac_file" : 'X\(//\)$' \| \
15803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15804 echo X"$ac_file" |
15805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15806 s//\1/
15807 q
15808 }
15809 /^X\(\/\/\)[^/].*/{
15810 s//\1/
15811 q
15812 }
15813 /^X\(\/\/\)$/{
15814 s//\1/
15815 q
15816 }
15817 /^X\(\/\).*/{
15818 s//\1/
15819 q
15820 }
15821 s/.*/./; q'`
15822 { as_dir="$ac_dir"
15823 case $as_dir in #(
15824 -*) as_dir=./$as_dir;;
15825 esac
15826 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15827 as_dirs=
15828 while :; do
15829 case $as_dir in #(
15830 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15831 *) as_qdir=$as_dir;;
15832 esac
15833 as_dirs="'$as_qdir' $as_dirs"
15834 as_dir=`$as_dirname -- "$as_dir" ||
15835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15836 X"$as_dir" : 'X\(//\)[^/]' \| \
15837 X"$as_dir" : 'X\(//\)$' \| \
15838 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15839 echo X"$as_dir" |
15840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15841 s//\1/
15842 q
15843 }
15844 /^X\(\/\/\)[^/].*/{
15845 s//\1/
15846 q
15847 }
15848 /^X\(\/\/\)$/{
15849 s//\1/
15850 q
15851 }
15852 /^X\(\/\).*/{
15853 s//\1/
15854 q
15855 }
15856 s/.*/./; q'`
15857 test -d "$as_dir" && break
15858 done
15859 test -z "$as_dirs" || eval "mkdir $as_dirs"
15860 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15861 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15862 { (exit 1); exit 1; }; }; }
15863 ac_builddir=.
15864
15865 case "$ac_dir" in
15866 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15867 *)
15868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15869 # A ".." for each directory in $ac_dir_suffix.
15870 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15871 case $ac_top_builddir_sub in
15872 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15873 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15874 esac ;;
15875 esac
15876 ac_abs_top_builddir=$ac_pwd
15877 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15878 # for backward compatibility:
15879 ac_top_builddir=$ac_top_build_prefix
15880
15881 case $srcdir in
15882 .) # We are building in place.
15883 ac_srcdir=.
15884 ac_top_srcdir=$ac_top_builddir_sub
15885 ac_abs_top_srcdir=$ac_pwd ;;
15886 [\\/]* | ?:[\\/]* ) # Absolute name.
15887 ac_srcdir=$srcdir$ac_dir_suffix;
15888 ac_top_srcdir=$srcdir
15889 ac_abs_top_srcdir=$srcdir ;;
15890 *) # Relative name.
15891 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15892 ac_top_srcdir=$ac_top_build_prefix$srcdir
15893 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15894 esac
15895 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15896
15897
15898 case $ac_mode in
15899 :F)
15900 #
15901 # CONFIG_FILE
15902 #
15903
15904 case $INSTALL in
15905 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15906 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15907 esac
15908 ac_MKDIR_P=$MKDIR_P
15909 case $MKDIR_P in
15910 [\\/$]* | ?:[\\/]* ) ;;
15911 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15912 esac
15913 _ACEOF
15914
15915 cat >>$CONFIG_STATUS <<\_ACEOF
15916 # If the template does not know about datarootdir, expand it.
15917 # FIXME: This hack should be removed a few years after 2.60.
15918 ac_datarootdir_hack=; ac_datarootdir_seen=
15919
15920 case `sed -n '/datarootdir/ {
15921 p
15922 q
15923 }
15924 /@datadir@/p
15925 /@docdir@/p
15926 /@infodir@/p
15927 /@localedir@/p
15928 /@mandir@/p
15929 ' $ac_file_inputs` in
15930 *datarootdir*) ac_datarootdir_seen=yes;;
15931 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15932 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15933 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15934 _ACEOF
15935 cat >>$CONFIG_STATUS <<_ACEOF
15936 ac_datarootdir_hack='
15937 s&@datadir@&$datadir&g
15938 s&@docdir@&$docdir&g
15939 s&@infodir@&$infodir&g
15940 s&@localedir@&$localedir&g
15941 s&@mandir@&$mandir&g
15942 s&\\\${datarootdir}&$datarootdir&g' ;;
15943 esac
15944 _ACEOF
15945
15946 # Neutralize VPATH when `$srcdir' = `.'.
15947 # Shell code in configure.ac might set extrasub.
15948 # FIXME: do we really want to maintain this feature?
15949 cat >>$CONFIG_STATUS <<_ACEOF
15950 sed "$ac_vpsub
15951 $extrasub
15952 _ACEOF
15953 cat >>$CONFIG_STATUS <<\_ACEOF
15954 :t
15955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15956 s&@configure_input@&$configure_input&;t t
15957 s&@top_builddir@&$ac_top_builddir_sub&;t t
15958 s&@srcdir@&$ac_srcdir&;t t
15959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15960 s&@top_srcdir@&$ac_top_srcdir&;t t
15961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15962 s&@builddir@&$ac_builddir&;t t
15963 s&@abs_builddir@&$ac_abs_builddir&;t t
15964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15965 s&@INSTALL@&$ac_INSTALL&;t t
15966 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15967 $ac_datarootdir_hack
15968 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15969
15970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15971 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15973 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15974 which seems to be undefined. Please make sure it is defined." >&5
15975 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15976 which seems to be undefined. Please make sure it is defined." >&2;}
15977
15978 rm -f "$tmp/stdin"
15979 case $ac_file in
15980 -) cat "$tmp/out"; rm -f "$tmp/out";;
15981 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15982 esac
15983 ;;
15984
15985
15986 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15987 echo "$as_me: executing $ac_file commands" >&6;}
15988 ;;
15989 esac
15990
15991
15992 case $ac_file$ac_mode in
15993 "libtool":C)
15994
15995 # See if we are running on zsh, and set the options which allow our
15996 # commands through without removal of \ escapes.
15997 if test -n "${ZSH_VERSION+set}" ; then
15998 setopt NO_GLOB_SUBST
15999 fi
16000
16001 cfgfile="${ofile}T"
16002 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16003 $RM "$cfgfile"
16004
16005 cat <<_LT_EOF >> "$cfgfile"
16006 #! $SHELL
16007
16008 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16009 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16011 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16012 #
16013 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16014 # 2006, 2007, 2008 Free Software Foundation, Inc.
16015 # Written by Gordon Matzigkeit, 1996
16016 #
16017 # This file is part of GNU Libtool.
16018 #
16019 # GNU Libtool is free software; you can redistribute it and/or
16020 # modify it under the terms of the GNU General Public License as
16021 # published by the Free Software Foundation; either version 2 of
16022 # the License, or (at your option) any later version.
16023 #
16024 # As a special exception to the GNU General Public License,
16025 # if you distribute this file as part of a program or library that
16026 # is built using GNU Libtool, you may include this file under the
16027 # same distribution terms that you use for the rest of that program.
16028 #
16029 # GNU Libtool is distributed in the hope that it will be useful,
16030 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16031 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16032 # GNU General Public License for more details.
16033 #
16034 # You should have received a copy of the GNU General Public License
16035 # along with GNU Libtool; see the file COPYING. If not, a copy
16036 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16037 # obtained by writing to the Free Software Foundation, Inc.,
16038 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16039
16040
16041 # The names of the tagged configurations supported by this script.
16042 available_tags=""
16043
16044 # ### BEGIN LIBTOOL CONFIG
16045
16046 # Which release of libtool.m4 was used?
16047 macro_version=$macro_version
16048 macro_revision=$macro_revision
16049
16050 # Assembler program.
16051 AS=$AS
16052
16053 # DLL creation program.
16054 DLLTOOL=$DLLTOOL
16055
16056 # Object dumper program.
16057 OBJDUMP=$OBJDUMP
16058
16059 # Whether or not to build shared libraries.
16060 build_libtool_libs=$enable_shared
16061
16062 # Whether or not to build static libraries.
16063 build_old_libs=$enable_static
16064
16065 # What type of objects to build.
16066 pic_mode=$pic_mode
16067
16068 # Whether or not to optimize for fast installation.
16069 fast_install=$enable_fast_install
16070
16071 # The host system.
16072 host_alias=$host_alias
16073 host=$host
16074 host_os=$host_os
16075
16076 # The build system.
16077 build_alias=$build_alias
16078 build=$build
16079 build_os=$build_os
16080
16081 # A sed program that does not truncate output.
16082 SED=$lt_SED
16083
16084 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16085 Xsed="\$SED -e 1s/^X//"
16086
16087 # A grep program that handles long lines.
16088 GREP=$lt_GREP
16089
16090 # An ERE matcher.
16091 EGREP=$lt_EGREP
16092
16093 # A literal string matcher.
16094 FGREP=$lt_FGREP
16095
16096 # A BSD- or MS-compatible name lister.
16097 NM=$lt_NM
16098
16099 # Whether we need soft or hard links.
16100 LN_S=$lt_LN_S
16101
16102 # What is the maximum length of a command?
16103 max_cmd_len=$max_cmd_len
16104
16105 # Object file suffix (normally "o").
16106 objext=$ac_objext
16107
16108 # Executable file suffix (normally "").
16109 exeext=$exeext
16110
16111 # whether the shell understands "unset".
16112 lt_unset=$lt_unset
16113
16114 # turn spaces into newlines.
16115 SP2NL=$lt_lt_SP2NL
16116
16117 # turn newlines into spaces.
16118 NL2SP=$lt_lt_NL2SP
16119
16120 # How to create reloadable object files.
16121 reload_flag=$lt_reload_flag
16122 reload_cmds=$lt_reload_cmds
16123
16124 # Method to check whether dependent libraries are shared objects.
16125 deplibs_check_method=$lt_deplibs_check_method
16126
16127 # Command to use when deplibs_check_method == "file_magic".
16128 file_magic_cmd=$lt_file_magic_cmd
16129
16130 # The archiver.
16131 AR=$lt_AR
16132 AR_FLAGS=$lt_AR_FLAGS
16133
16134 # A symbol stripping program.
16135 STRIP=$lt_STRIP
16136
16137 # Commands used to install an old-style archive.
16138 RANLIB=$lt_RANLIB
16139 old_postinstall_cmds=$lt_old_postinstall_cmds
16140 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16141
16142 # A C compiler.
16143 LTCC=$lt_CC
16144
16145 # LTCC compiler flags.
16146 LTCFLAGS=$lt_CFLAGS
16147
16148 # Take the output of nm and produce a listing of raw symbols and C names.
16149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16150
16151 # Transform the output of nm in a proper C declaration.
16152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16153
16154 # Transform the output of nm in a C name address pair.
16155 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16156
16157 # Transform the output of nm in a C name address pair when lib prefix is needed.
16158 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16159
16160 # The name of the directory that contains temporary libtool files.
16161 objdir=$objdir
16162
16163 # Shell to use when invoking shell scripts.
16164 SHELL=$lt_SHELL
16165
16166 # An echo program that does not interpret backslashes.
16167 ECHO=$lt_ECHO
16168
16169 # Used to examine libraries when file_magic_cmd begins with "file".
16170 MAGIC_CMD=$MAGIC_CMD
16171
16172 # Must we lock files when doing compilation?
16173 need_locks=$lt_need_locks
16174
16175 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16176 DSYMUTIL=$lt_DSYMUTIL
16177
16178 # Tool to change global to local symbols on Mac OS X.
16179 NMEDIT=$lt_NMEDIT
16180
16181 # Tool to manipulate fat objects and archives on Mac OS X.
16182 LIPO=$lt_LIPO
16183
16184 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16185 OTOOL=$lt_OTOOL
16186
16187 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16188 OTOOL64=$lt_OTOOL64
16189
16190 # Old archive suffix (normally "a").
16191 libext=$libext
16192
16193 # Shared library suffix (normally ".so").
16194 shrext_cmds=$lt_shrext_cmds
16195
16196 # The commands to extract the exported symbol list from a shared archive.
16197 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16198
16199 # Variables whose values should be saved in libtool wrapper scripts and
16200 # restored at link time.
16201 variables_saved_for_relink=$lt_variables_saved_for_relink
16202
16203 # Do we need the "lib" prefix for modules?
16204 need_lib_prefix=$need_lib_prefix
16205
16206 # Do we need a version for libraries?
16207 need_version=$need_version
16208
16209 # Library versioning type.
16210 version_type=$version_type
16211
16212 # Shared library runtime path variable.
16213 runpath_var=$runpath_var
16214
16215 # Shared library path variable.
16216 shlibpath_var=$shlibpath_var
16217
16218 # Is shlibpath searched before the hard-coded library search path?
16219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16220
16221 # Format of library name prefix.
16222 libname_spec=$lt_libname_spec
16223
16224 # List of archive names. First name is the real one, the rest are links.
16225 # The last name is the one that the linker finds with -lNAME
16226 library_names_spec=$lt_library_names_spec
16227
16228 # The coded name of the library, if different from the real name.
16229 soname_spec=$lt_soname_spec
16230
16231 # Command to use after installation of a shared archive.
16232 postinstall_cmds=$lt_postinstall_cmds
16233
16234 # Command to use after uninstallation of a shared archive.
16235 postuninstall_cmds=$lt_postuninstall_cmds
16236
16237 # Commands used to finish a libtool library installation in a directory.
16238 finish_cmds=$lt_finish_cmds
16239
16240 # As "finish_cmds", except a single script fragment to be evaled but
16241 # not shown.
16242 finish_eval=$lt_finish_eval
16243
16244 # Whether we should hardcode library paths into libraries.
16245 hardcode_into_libs=$hardcode_into_libs
16246
16247 # Compile-time system search path for libraries.
16248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16249
16250 # Run-time system search path for libraries.
16251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16252
16253 # Whether dlopen is supported.
16254 dlopen_support=$enable_dlopen
16255
16256 # Whether dlopen of programs is supported.
16257 dlopen_self=$enable_dlopen_self
16258
16259 # Whether dlopen of statically linked programs is supported.
16260 dlopen_self_static=$enable_dlopen_self_static
16261
16262 # Commands to strip libraries.
16263 old_striplib=$lt_old_striplib
16264 striplib=$lt_striplib
16265
16266
16267 # The linker used to build libraries.
16268 LD=$lt_LD
16269
16270 # Commands used to build an old-style archive.
16271 old_archive_cmds=$lt_old_archive_cmds
16272
16273 # A language specific compiler.
16274 CC=$lt_compiler
16275
16276 # Is the compiler the GNU compiler?
16277 with_gcc=$GCC
16278
16279 # Compiler flag to turn off builtin functions.
16280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16281
16282 # How to pass a linker flag through the compiler.
16283 wl=$lt_lt_prog_compiler_wl
16284
16285 # Additional compiler flags for building library objects.
16286 pic_flag=$lt_lt_prog_compiler_pic
16287
16288 # Compiler flag to prevent dynamic linking.
16289 link_static_flag=$lt_lt_prog_compiler_static
16290
16291 # Does compiler simultaneously support -c and -o options?
16292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16293
16294 # Whether or not to add -lc for building shared libraries.
16295 build_libtool_need_lc=$archive_cmds_need_lc
16296
16297 # Whether or not to disallow shared libs when runtime libs are static.
16298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16299
16300 # Compiler flag to allow reflexive dlopens.
16301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16302
16303 # Compiler flag to generate shared objects directly from archives.
16304 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16305
16306 # Whether the compiler copes with passing no objects directly.
16307 compiler_needs_object=$lt_compiler_needs_object
16308
16309 # Create an old-style archive from a shared archive.
16310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16311
16312 # Create a temporary old-style archive to link instead of a shared archive.
16313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16314
16315 # Commands used to build a shared archive.
16316 archive_cmds=$lt_archive_cmds
16317 archive_expsym_cmds=$lt_archive_expsym_cmds
16318
16319 # Commands used to build a loadable module if different from building
16320 # a shared archive.
16321 module_cmds=$lt_module_cmds
16322 module_expsym_cmds=$lt_module_expsym_cmds
16323
16324 # Whether we are building with GNU ld or not.
16325 with_gnu_ld=$lt_with_gnu_ld
16326
16327 # Flag that allows shared libraries with undefined symbols to be built.
16328 allow_undefined_flag=$lt_allow_undefined_flag
16329
16330 # Flag that enforces no undefined symbols.
16331 no_undefined_flag=$lt_no_undefined_flag
16332
16333 # Flag to hardcode \$libdir into a binary during linking.
16334 # This must work even if \$libdir does not exist
16335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16336
16337 # If ld is used when linking, flag to hardcode \$libdir into a binary
16338 # during linking. This must work even if \$libdir does not exist.
16339 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16340
16341 # Whether we need a single "-rpath" flag with a separated argument.
16342 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16343
16344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16345 # DIR into the resulting binary.
16346 hardcode_direct=$hardcode_direct
16347
16348 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16349 # DIR into the resulting binary and the resulting library dependency is
16350 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16351 # library is relocated.
16352 hardcode_direct_absolute=$hardcode_direct_absolute
16353
16354 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16355 # into the resulting binary.
16356 hardcode_minus_L=$hardcode_minus_L
16357
16358 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16359 # into the resulting binary.
16360 hardcode_shlibpath_var=$hardcode_shlibpath_var
16361
16362 # Set to "yes" if building a shared library automatically hardcodes DIR
16363 # into the library and all subsequent libraries and executables linked
16364 # against it.
16365 hardcode_automatic=$hardcode_automatic
16366
16367 # Set to yes if linker adds runtime paths of dependent libraries
16368 # to runtime path list.
16369 inherit_rpath=$inherit_rpath
16370
16371 # Whether libtool must link a program against all its dependency libraries.
16372 link_all_deplibs=$link_all_deplibs
16373
16374 # Fix the shell variable \$srcfile for the compiler.
16375 fix_srcfile_path=$lt_fix_srcfile_path
16376
16377 # Set to "yes" if exported symbols are required.
16378 always_export_symbols=$always_export_symbols
16379
16380 # The commands to list exported symbols.
16381 export_symbols_cmds=$lt_export_symbols_cmds
16382
16383 # Symbols that should not be listed in the preloaded symbols.
16384 exclude_expsyms=$lt_exclude_expsyms
16385
16386 # Symbols that must always be exported.
16387 include_expsyms=$lt_include_expsyms
16388
16389 # Commands necessary for linking programs (against libraries) with templates.
16390 prelink_cmds=$lt_prelink_cmds
16391
16392 # Specify filename containing input files.
16393 file_list_spec=$lt_file_list_spec
16394
16395 # How to hardcode a shared library path into an executable.
16396 hardcode_action=$hardcode_action
16397
16398 # ### END LIBTOOL CONFIG
16399
16400 _LT_EOF
16401
16402 case $host_os in
16403 aix3*)
16404 cat <<\_LT_EOF >> "$cfgfile"
16405 # AIX sometimes has problems with the GCC collect2 program. For some
16406 # reason, if we set the COLLECT_NAMES environment variable, the problems
16407 # vanish in a puff of smoke.
16408 if test "X${COLLECT_NAMES+set}" != Xset; then
16409 COLLECT_NAMES=
16410 export COLLECT_NAMES
16411 fi
16412 _LT_EOF
16413 ;;
16414 esac
16415
16416
16417 ltmain="$ac_aux_dir/ltmain.sh"
16418
16419
16420 # We use sed instead of cat because bash on DJGPP gets confused if
16421 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16422 # text mode, it properly converts lines to CR/LF. This bash problem
16423 # is reportedly fixed, but why not run on old versions too?
16424 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16425 || (rm -f "$cfgfile"; exit 1)
16426
16427 case $xsi_shell in
16428 yes)
16429 cat << \_LT_EOF >> "$cfgfile"
16430
16431 # func_dirname file append nondir_replacement
16432 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16433 # otherwise set result to NONDIR_REPLACEMENT.
16434 func_dirname ()
16435 {
16436 case ${1} in
16437 */*) func_dirname_result="${1%/*}${2}" ;;
16438 * ) func_dirname_result="${3}" ;;
16439 esac
16440 }
16441
16442 # func_basename file
16443 func_basename ()
16444 {
16445 func_basename_result="${1##*/}"
16446 }
16447
16448 # func_dirname_and_basename file append nondir_replacement
16449 # perform func_basename and func_dirname in a single function
16450 # call:
16451 # dirname: Compute the dirname of FILE. If nonempty,
16452 # add APPEND to the result, otherwise set result
16453 # to NONDIR_REPLACEMENT.
16454 # value returned in "$func_dirname_result"
16455 # basename: Compute filename of FILE.
16456 # value retuned in "$func_basename_result"
16457 # Implementation must be kept synchronized with func_dirname
16458 # and func_basename. For efficiency, we do not delegate to
16459 # those functions but instead duplicate the functionality here.
16460 func_dirname_and_basename ()
16461 {
16462 case ${1} in
16463 */*) func_dirname_result="${1%/*}${2}" ;;
16464 * ) func_dirname_result="${3}" ;;
16465 esac
16466 func_basename_result="${1##*/}"
16467 }
16468
16469 # func_stripname prefix suffix name
16470 # strip PREFIX and SUFFIX off of NAME.
16471 # PREFIX and SUFFIX must not contain globbing or regex special
16472 # characters, hashes, percent signs, but SUFFIX may contain a leading
16473 # dot (in which case that matches only a dot).
16474 func_stripname ()
16475 {
16476 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16477 # positional parameters, so assign one to ordinary parameter first.
16478 func_stripname_result=${3}
16479 func_stripname_result=${func_stripname_result#"${1}"}
16480 func_stripname_result=${func_stripname_result%"${2}"}
16481 }
16482
16483 # func_opt_split
16484 func_opt_split ()
16485 {
16486 func_opt_split_opt=${1%%=*}
16487 func_opt_split_arg=${1#*=}
16488 }
16489
16490 # func_lo2o object
16491 func_lo2o ()
16492 {
16493 case ${1} in
16494 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16495 *) func_lo2o_result=${1} ;;
16496 esac
16497 }
16498
16499 # func_xform libobj-or-source
16500 func_xform ()
16501 {
16502 func_xform_result=${1%.*}.lo
16503 }
16504
16505 # func_arith arithmetic-term...
16506 func_arith ()
16507 {
16508 func_arith_result=$(( $* ))
16509 }
16510
16511 # func_len string
16512 # STRING may not start with a hyphen.
16513 func_len ()
16514 {
16515 func_len_result=${#1}
16516 }
16517
16518 _LT_EOF
16519 ;;
16520 *) # Bourne compatible functions.
16521 cat << \_LT_EOF >> "$cfgfile"
16522
16523 # func_dirname file append nondir_replacement
16524 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16525 # otherwise set result to NONDIR_REPLACEMENT.
16526 func_dirname ()
16527 {
16528 # Extract subdirectory from the argument.
16529 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16530 if test "X$func_dirname_result" = "X${1}"; then
16531 func_dirname_result="${3}"
16532 else
16533 func_dirname_result="$func_dirname_result${2}"
16534 fi
16535 }
16536
16537 # func_basename file
16538 func_basename ()
16539 {
16540 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16541 }
16542
16543
16544 # func_stripname prefix suffix name
16545 # strip PREFIX and SUFFIX off of NAME.
16546 # PREFIX and SUFFIX must not contain globbing or regex special
16547 # characters, hashes, percent signs, but SUFFIX may contain a leading
16548 # dot (in which case that matches only a dot).
16549 # func_strip_suffix prefix name
16550 func_stripname ()
16551 {
16552 case ${2} in
16553 .*) func_stripname_result=`$ECHO "X${3}" \
16554 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16555 *) func_stripname_result=`$ECHO "X${3}" \
16556 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16557 esac
16558 }
16559
16560 # sed scripts:
16561 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16562 my_sed_long_arg='1s/^-[^=]*=//'
16563
16564 # func_opt_split
16565 func_opt_split ()
16566 {
16567 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16568 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16569 }
16570
16571 # func_lo2o object
16572 func_lo2o ()
16573 {
16574 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16575 }
16576
16577 # func_xform libobj-or-source
16578 func_xform ()
16579 {
16580 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16581 }
16582
16583 # func_arith arithmetic-term...
16584 func_arith ()
16585 {
16586 func_arith_result=`expr "$@"`
16587 }
16588
16589 # func_len string
16590 # STRING may not start with a hyphen.
16591 func_len ()
16592 {
16593 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16594 }
16595
16596 _LT_EOF
16597 esac
16598
16599 case $lt_shell_append in
16600 yes)
16601 cat << \_LT_EOF >> "$cfgfile"
16602
16603 # func_append var value
16604 # Append VALUE to the end of shell variable VAR.
16605 func_append ()
16606 {
16607 eval "$1+=\$2"
16608 }
16609 _LT_EOF
16610 ;;
16611 *)
16612 cat << \_LT_EOF >> "$cfgfile"
16613
16614 # func_append var value
16615 # Append VALUE to the end of shell variable VAR.
16616 func_append ()
16617 {
16618 eval "$1=\$$1\$2"
16619 }
16620
16621 _LT_EOF
16622 ;;
16623 esac
16624
16625
16626 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16627 || (rm -f "$cfgfile"; exit 1)
16628
16629 mv -f "$cfgfile" "$ofile" ||
16630 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16631 chmod +x "$ofile"
16632
16633 ;;
16634 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16635 # Strip MF so we end up with the name of the file.
16636 mf=`echo "$mf" | sed -e 's/:.*$//'`
16637 # Check whether this is an Automake generated Makefile or not.
16638 # We used to match only the files named `Makefile.in', but
16639 # some people rename them; so instead we look at the file content.
16640 # Grep'ing the first line is not enough: some people post-process
16641 # each Makefile.in and add a new line on top of each file to say so.
16642 # Grep'ing the whole file is not good either: AIX grep has a line
16643 # limit of 2048, but all sed's we know have understand at least 4000.
16644 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
16645 dirpart=`$as_dirname -- "$mf" ||
16646 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16647 X"$mf" : 'X\(//\)[^/]' \| \
16648 X"$mf" : 'X\(//\)$' \| \
16649 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16650 echo X"$mf" |
16651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16652 s//\1/
16653 q
16654 }
16655 /^X\(\/\/\)[^/].*/{
16656 s//\1/
16657 q
16658 }
16659 /^X\(\/\/\)$/{
16660 s//\1/
16661 q
16662 }
16663 /^X\(\/\).*/{
16664 s//\1/
16665 q
16666 }
16667 s/.*/./; q'`
16668 else
16669 continue
16670 fi
16671 # Extract the definition of DEPDIR, am__include, and am__quote
16672 # from the Makefile without running `make'.
16673 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16674 test -z "$DEPDIR" && continue
16675 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16676 test -z "am__include" && continue
16677 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16678 # When using ansi2knr, U may be empty or an underscore; expand it
16679 U=`sed -n 's/^U = //p' < "$mf"`
16680 # Find all dependency output files, they are included files with
16681 # $(DEPDIR) in their names. We invoke sed twice because it is the
16682 # simplest approach to changing $(DEPDIR) to its actual value in the
16683 # expansion.
16684 for file in `sed -n "
16685 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16686 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16687 # Make sure the directory exists.
16688 test -f "$dirpart/$file" && continue
16689 fdir=`$as_dirname -- "$file" ||
16690 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16691 X"$file" : 'X\(//\)[^/]' \| \
16692 X"$file" : 'X\(//\)$' \| \
16693 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16694 echo X"$file" |
16695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16696 s//\1/
16697 q
16698 }
16699 /^X\(\/\/\)[^/].*/{
16700 s//\1/
16701 q
16702 }
16703 /^X\(\/\/\)$/{
16704 s//\1/
16705 q
16706 }
16707 /^X\(\/\).*/{
16708 s//\1/
16709 q
16710 }
16711 s/.*/./; q'`
16712 { as_dir=$dirpart/$fdir
16713 case $as_dir in #(
16714 -*) as_dir=./$as_dir;;
16715 esac
16716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16717 as_dirs=
16718 while :; do
16719 case $as_dir in #(
16720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16721 *) as_qdir=$as_dir;;
16722 esac
16723 as_dirs="'$as_qdir' $as_dirs"
16724 as_dir=`$as_dirname -- "$as_dir" ||
16725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16726 X"$as_dir" : 'X\(//\)[^/]' \| \
16727 X"$as_dir" : 'X\(//\)$' \| \
16728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16729 echo X"$as_dir" |
16730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16731 s//\1/
16732 q
16733 }
16734 /^X\(\/\/\)[^/].*/{
16735 s//\1/
16736 q
16737 }
16738 /^X\(\/\/\)$/{
16739 s//\1/
16740 q
16741 }
16742 /^X\(\/\).*/{
16743 s//\1/
16744 q
16745 }
16746 s/.*/./; q'`
16747 test -d "$as_dir" && break
16748 done
16749 test -z "$as_dirs" || eval "mkdir $as_dirs"
16750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16752 { (exit 1); exit 1; }; }; }
16753 # echo "creating $dirpart/$file"
16754 echo '# dummy' > "$dirpart/$file"
16755 done
16756 done
16757 ;;
16758
16759 esac
16760 done # for ac_tag
16761
16762
16763 { (exit 0); exit 0; }
16764 _ACEOF
16765 chmod +x $CONFIG_STATUS
16766 ac_clean_files=$ac_clean_files_save
16767
16768
16769 # configure is writing to config.log, and then calls config.status.
16770 # config.status does its own redirection, appending to config.log.
16771 # Unfortunately, on DOS this fails, as config.log is still kept open
16772 # by configure, so config.status won't be able to write to it; its
16773 # output is simply discarded. So we exec the FD to /dev/null,
16774 # effectively closing config.log, so it can be properly (re)opened and
16775 # appended to by config.status. When coming back to configure, we
16776 # need to make the FD available again.
16777 if test "$no_create" != yes; then
16778 ac_cs_success=:
16779 ac_config_status_args=
16780 test "$silent" = yes &&
16781 ac_config_status_args="$ac_config_status_args --quiet"
16782 exec 5>/dev/null
16783 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16784 exec 5>>config.log
16785 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16786 # would make configure fail if this is the last instruction.
16787 $ac_cs_success || { (exit 1); exit 1; }
16788 fi
16789