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 CXX
880 CXXFLAGS
881 ac_ct_CXX
882 CXXDEPMODE
883 am__fastdepCXX_TRUE
884 am__fastdepCXX_FALSE
885 CXXCPP
886 WINDRES
887 USE_VERSION_RC_TRUE
888 USE_VERSION_RC_FALSE
889 INETLIB
890 SDL_VERSION
891 PKG_CONFIG
892 SDL_CFLAGS
893 SDL_LIBS
894 SDL_CONFIG
895 HAVE_GUI_LIB_TRUE
896 HAVE_GUI_LIB_FALSE
897 LIBOBJS
898 LTLIBOBJS'
899 ac_subst_files=''
900 ac_precious_vars='build_alias
901 host_alias
902 target_alias
903 CC
904 CFLAGS
905 LDFLAGS
906 LIBS
907 CPPFLAGS
908 CPP
909 CXX
910 CXXFLAGS
911 CCC
912 CXXCPP
913 PKG_CONFIG
914 SDL_CFLAGS
915 SDL_LIBS'
916
917
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
974
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 # Accept the important Cygnus configure options, so we can diagnose typos.
981
982 case $ac_dashdash$ac_option in
983 --)
984 ac_dashdash=yes ;;
985
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
990
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
995
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1002
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1005
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1010
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1017
1018 -disable-* | --disable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044 eval enable_$ac_feature=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241 eval with_$ac_package=\$ac_optarg ;;
1242
1243 -without-* | --without-*)
1244 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid package name: $ac_package" >&2
1248 { (exit 1); exit 1; }; }
1249 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250 eval with_$ac_package=no ;;
1251
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1255
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1262
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1269
1270 -*) { echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272 { (exit 1); exit 1; }; }
1273 ;;
1274
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280 { (exit 1); exit 1; }; }
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1283
1284 *)
1285 # FIXME: should be removed in autoconf 3.0.
1286 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 ;;
1291
1292 esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 { echo "$as_me: error: missing argument to $ac_option" >&2
1298 { (exit 1); exit 1; }; }
1299 fi
1300
1301 # Be sure to have absolute directory names.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306 do
1307 eval ac_val=\$$ac_var
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$0" ||
1355 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$0" : 'X\(//\)[^/]' \| \
1357 X"$0" : 'X\(//\)$' \| \
1358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 echo X"$0" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures this package to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1472
1473 cat <<\_ACEOF
1474
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
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 --enable-gui Try to build the GUI test programs default=yes
1502
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-pic try to use only PIC/non-PIC objects [default=use
1507 both]
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1510 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CPP C preprocessor
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1523 CXXCPP C++ preprocessor
1524 PKG_CONFIG path to pkg-config utility
1525 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1526 SDL_LIBS linker flags for SDL, overriding pkg-config
1527
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" || continue
1539 ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1586 fi
1587
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 configure
1592 generated by GNU Autoconf 2.61
1593
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1604
1605 It was created by $as_me, which was
1606 generated by GNU Autoconf 2.61. Invocation command line was
1607
1608 $ $0 $@
1609
1610 _ACEOF
1611 exec 5>>config.log
1612 {
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1617
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634
1635 _ASUNAME
1636
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1645
1646 } >&5
1647
1648 cat >&5 <<_ACEOF
1649
1650
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1654
1655 _ACEOF
1656
1657
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1668 do
1669 for ac_arg
1670 do
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
1676 *\'*)
1677 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681 2)
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1685 else
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1694 ;;
1695 -* ) ac_must_keep_next=true ;;
1696 esac
1697 fi
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1699 ;;
1700 esac
1701 done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1713 {
1714 echo
1715
1716 cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
1723 (
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
1729 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
1734 *) $as_unset $ac_var ;;
1735 esac ;;
1736 esac
1737 done
1738 (set) 2>&1 |
1739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740 *${as_nl}ac_space=\ *)
1741 sed -n \
1742 "s/'\''/'\''\\\\'\'''\''/g;
1743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744 ;; #(
1745 *)
1746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 ;;
1748 esac |
1749 sort
1750 )
1751 echo
1752
1753 cat <<\_ASBOX
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1757 _ASBOX
1758 echo
1759 for ac_var in $ac_subst_vars
1760 do
1761 eval ac_val=\$$ac_var
1762 case $ac_val in
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 esac
1765 echo "$ac_var='\''$ac_val'\''"
1766 done | sort
1767 echo
1768
1769 if test -n "$ac_subst_files"; then
1770 cat <<\_ASBOX
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1774 _ASBOX
1775 echo
1776 for ac_var in $ac_subst_files
1777 do
1778 eval ac_val=\$$ac_var
1779 case $ac_val in
1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 esac
1782 echo "$ac_var='\''$ac_val'\''"
1783 done | sort
1784 echo
1785 fi
1786
1787 if test -s confdefs.h; then
1788 cat <<\_ASBOX
1789 ## ----------- ##
1790 ## confdefs.h. ##
1791 ## ----------- ##
1792 _ASBOX
1793 echo
1794 cat confdefs.h
1795 echo
1796 fi
1797 test "$ac_signal" != 0 &&
1798 echo "$as_me: caught signal $ac_signal"
1799 echo "$as_me: exit $exit_status"
1800 } >&5
1801 rm -f core *.core core.conftest.* &&
1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803 exit $exit_status
1804 ' 0
1805 for ac_signal in 1 2 13 15; do
1806 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 done
1808 ac_signal=0
1809
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1812
1813 # Predefined preprocessor variables.
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 _ACEOF
1838
1839
1840 # Let the site file select an alternate cache file if it wants to.
1841 # Prefer explicitly selected file to automatically selected ones.
1842 if test -n "$CONFIG_SITE"; then
1843 set x "$CONFIG_SITE"
1844 elif test "x$prefix" != xNONE; then
1845 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846 else
1847 set x "$ac_default_prefix/share/config.site" \
1848 "$ac_default_prefix/etc/config.site"
1849 fi
1850 shift
1851 for ac_site_file
1852 do
1853 if test -r "$ac_site_file"; then
1854 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 echo "$as_me: loading site script $ac_site_file" >&6;}
1856 sed 's/^/| /' "$ac_site_file" >&5
1857 . "$ac_site_file"
1858 fi
1859 done
1860
1861 if test -r "$cache_file"; then
1862 # Some versions of bash will fail to source /dev/null (special
1863 # files actually), so we avoid doing that.
1864 if test -f "$cache_file"; then
1865 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 echo "$as_me: loading cache $cache_file" >&6;}
1867 case $cache_file in
1868 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869 *) . "./$cache_file";;
1870 esac
1871 fi
1872 else
1873 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 echo "$as_me: creating cache $cache_file" >&6;}
1875 >$cache_file
1876 fi
1877
1878 # Check that the precious variables saved in the cache have kept the same
1879 # value.
1880 ac_cache_corrupted=false
1881 for ac_var in $ac_precious_vars; do
1882 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883 eval ac_new_set=\$ac_env_${ac_var}_set
1884 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885 eval ac_new_val=\$ac_env_${ac_var}_value
1886 case $ac_old_set,$ac_new_set in
1887 set,)
1888 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890 ac_cache_corrupted=: ;;
1891 ,set)
1892 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1895 ,);;
1896 *)
1897 if test "x$ac_old_val" != "x$ac_new_val"; then
1898 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1901 echo "$as_me: former value: $ac_old_val" >&2;}
1902 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1903 echo "$as_me: current value: $ac_new_val" >&2;}
1904 ac_cache_corrupted=:
1905 fi;;
1906 esac
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1909 case $ac_new_val in
1910 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1912 esac
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 esac
1917 fi
1918 done
1919 if $ac_cache_corrupted; then
1920 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924 { (exit 1); exit 1; }; }
1925 fi
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948
1949
1950
1951
1952 # Making releases:
1953 # MICRO_VERSION += 1;
1954 # INTERFACE_AGE += 1;
1955 # BINARY_AGE += 1;
1956 # if any functions have been added, set INTERFACE_AGE to 0.
1957 # if backwards compatibility has been broken,
1958 # set BINARY_AGE and INTERFACE_AGE to 0.
1959
1960 MAJOR_VERSION=1
1961 MINOR_VERSION=2
1962 MICRO_VERSION=8
1963 INTERFACE_AGE=0
1964 BINARY_AGE=8
1965 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
1966
1967
1968
1969
1970
1971
1972
1973
1974 # libtool versioning
1975 case `pwd` in
1976 *\ * | *\ *)
1977 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1978 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1979 esac
1980
1981
1982
1983 macro_version='2.2.6'
1984 macro_revision='1.3012'
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998 ltmain="$ac_aux_dir/ltmain.sh"
1999
2000 ac_aux_dir=
2001 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2002 if test -f "$ac_dir/install-sh"; then
2003 ac_aux_dir=$ac_dir
2004 ac_install_sh="$ac_aux_dir/install-sh -c"
2005 break
2006 elif test -f "$ac_dir/install.sh"; then
2007 ac_aux_dir=$ac_dir
2008 ac_install_sh="$ac_aux_dir/install.sh -c"
2009 break
2010 elif test -f "$ac_dir/shtool"; then
2011 ac_aux_dir=$ac_dir
2012 ac_install_sh="$ac_aux_dir/shtool install -c"
2013 break
2014 fi
2015 done
2016 if test -z "$ac_aux_dir"; then
2017 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2018 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021
2022 # These three variables are undocumented and unsupported,
2023 # and are intended to be withdrawn in a future Autoconf release.
2024 # They can cause serious problems if a builder's source tree is in a directory
2025 # whose full name contains unusual characters.
2026 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2027 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2028 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2029
2030
2031 # Make sure we can run config.sub.
2032 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2033 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2034 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2035 { (exit 1); exit 1; }; }
2036
2037 { echo "$as_me:$LINENO: checking build system type" >&5
2038 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2039 if test "${ac_cv_build+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042 ac_build_alias=$build_alias
2043 test "x$ac_build_alias" = x &&
2044 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2045 test "x$ac_build_alias" = x &&
2046 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2047 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2048 { (exit 1); exit 1; }; }
2049 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2050 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2051 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2052 { (exit 1); exit 1; }; }
2053
2054 fi
2055 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2056 echo "${ECHO_T}$ac_cv_build" >&6; }
2057 case $ac_cv_build in
2058 *-*-*) ;;
2059 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2060 echo "$as_me: error: invalid value of canonical build" >&2;}
2061 { (exit 1); exit 1; }; };;
2062 esac
2063 build=$ac_cv_build
2064 ac_save_IFS=$IFS; IFS='-'
2065 set x $ac_cv_build
2066 shift
2067 build_cpu=$1
2068 build_vendor=$2
2069 shift; shift
2070 # Remember, the first character of IFS is used to create $*,
2071 # except with old shells:
2072 build_os=$*
2073 IFS=$ac_save_IFS
2074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2075
2076
2077 { echo "$as_me:$LINENO: checking host system type" >&5
2078 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2079 if test "${ac_cv_host+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test "x$host_alias" = x; then
2083 ac_cv_host=$ac_cv_build
2084 else
2085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2086 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2087 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2088 { (exit 1); exit 1; }; }
2089 fi
2090
2091 fi
2092 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2093 echo "${ECHO_T}$ac_cv_host" >&6; }
2094 case $ac_cv_host in
2095 *-*-*) ;;
2096 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2097 echo "$as_me: error: invalid value of canonical host" >&2;}
2098 { (exit 1); exit 1; }; };;
2099 esac
2100 host=$ac_cv_host
2101 ac_save_IFS=$IFS; IFS='-'
2102 set x $ac_cv_host
2103 shift
2104 host_cpu=$1
2105 host_vendor=$2
2106 shift; shift
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2109 host_os=$*
2110 IFS=$ac_save_IFS
2111 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2112
2113
2114 ac_ext=c
2115 ac_cpp='$CPP $CPPFLAGS'
2116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_prog_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 if test -n "$CC"; then
2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2140 fi
2141 done
2142 done
2143 IFS=$as_save_IFS
2144
2145 fi
2146 fi
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2151 else
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2154 fi
2155
2156
2157 fi
2158 if test -z "$ac_cv_prog_CC"; then
2159 ac_ct_CC=$CC
2160 # Extract the first word of "gcc", so it can be a program name with args.
2161 set dummy gcc; ac_word=$2
2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test -n "$ac_ct_CC"; then
2168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_ac_ct_CC="gcc"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2180 fi
2181 done
2182 done
2183 IFS=$as_save_IFS
2184
2185 fi
2186 fi
2187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188 if test -n "$ac_ct_CC"; then
2189 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190 echo "${ECHO_T}$ac_ct_CC" >&6; }
2191 else
2192 { echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6; }
2194 fi
2195
2196 if test "x$ac_ct_CC" = x; then
2197 CC=""
2198 else
2199 case $cross_compiling:$ac_tool_warned in
2200 yes:)
2201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to [email protected]." >&5
2204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2205 whose name does not start with the host triplet. If you think this
2206 configuration is useful to you, please write to [email protected]." >&2;}
2207 ac_tool_warned=yes ;;
2208 esac
2209 CC=$ac_ct_CC
2210 fi
2211 else
2212 CC="$ac_cv_prog_CC"
2213 fi
2214
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218 set dummy ${ac_tool_prefix}cc; ac_word=$2
2219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 ac_cv_prog_CC="${ac_tool_prefix}cc"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238 done
2239 done
2240 IFS=$as_save_IFS
2241
2242 fi
2243 fi
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 { echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6; }
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2251 fi
2252
2253
2254 fi
2255 fi
2256 if test -z "$CC"; then
2257 # Extract the first word of "cc", so it can be a program name with args.
2258 set dummy cc; ac_word=$2
2259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261 if test "${ac_cv_prog_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$CC"; then
2265 ac_cv_prog_CC="$CC" # Let the user override the test.
2266 else
2267 ac_prog_rejected=no
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2276 ac_prog_rejected=yes
2277 continue
2278 fi
2279 ac_cv_prog_CC="cc"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283 done
2284 done
2285 IFS=$as_save_IFS
2286
2287 if test $ac_prog_rejected = yes; then
2288 # We found a bogon in the path, so make sure we never use it.
2289 set dummy $ac_cv_prog_CC
2290 shift
2291 if test $# != 0; then
2292 # We chose a different compiler from the bogus one.
2293 # However, it has the same basename, so the bogon will be chosen
2294 # first if we set CC to just the basename; use the full file name.
2295 shift
2296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2297 fi
2298 fi
2299 fi
2300 fi
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303 { echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6; }
2305 else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2308 fi
2309
2310
2311 fi
2312 if test -z "$CC"; then
2313 if test -n "$ac_tool_prefix"; then
2314 for ac_prog in cl.exe
2315 do
2316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2336 fi
2337 done
2338 done
2339 IFS=$as_save_IFS
2340
2341 fi
2342 fi
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2347 else
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2350 fi
2351
2352
2353 test -n "$CC" && break
2354 done
2355 fi
2356 if test -z "$CC"; then
2357 ac_ct_CC=$CC
2358 for ac_prog in cl.exe
2359 do
2360 # Extract the first word of "$ac_prog", so it can be a program name with args.
2361 set dummy $ac_prog; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="$ac_prog"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2380 fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2391 else
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 fi
2395
2396
2397 test -n "$ac_ct_CC" && break
2398 done
2399
2400 if test "x$ac_ct_CC" = x; then
2401 CC=""
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to [email protected]." >&5
2408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409 whose name does not start with the host triplet. If you think this
2410 configuration is useful to you, please write to [email protected]." >&2;}
2411 ac_tool_warned=yes ;;
2412 esac
2413 CC=$ac_ct_CC
2414 fi
2415 fi
2416
2417 fi
2418
2419
2420 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: no acceptable C compiler found in \$PATH
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2425
2426 # Provide some information about the compiler.
2427 echo "$as_me:$LINENO: checking for C compiler version" >&5
2428 ac_compiler=`set X $ac_compile; echo $2`
2429 { (ac_try="$ac_compiler --version >&5"
2430 case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433 esac
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_compiler --version >&5") 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 { (ac_try="$ac_compiler -v >&5"
2440 case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compiler -v >&5") 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2449 { (ac_try="$ac_compiler -V >&5"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compiler -V >&5") 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }
2459
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h. */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2466
2467 int
2468 main ()
2469 {
2470
2471 ;
2472 return 0;
2473 }
2474 _ACEOF
2475 ac_clean_files_save=$ac_clean_files
2476 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2477 # Try to create an executable without -o first, disregard a.out.
2478 # It will help us diagnose broken compilers, and finding out an intuition
2479 # of exeext.
2480 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2481 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2482 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2483 #
2484 # List of possible output files, starting from the most likely.
2485 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2486 # only as a last resort. b.out is created by i960 compilers.
2487 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2488 #
2489 # The IRIX 6 linker writes into existing files which may not be
2490 # executable, retaining their permissions. Remove them first so a
2491 # subsequent execution test works.
2492 ac_rmfiles=
2493 for ac_file in $ac_files
2494 do
2495 case $ac_file in
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2497 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2498 esac
2499 done
2500 rm -f $ac_rmfiles
2501
2502 if { (ac_try="$ac_link_default"
2503 case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_link_default") 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2515 # so that the user can short-circuit this test for compilers unknown to
2516 # Autoconf.
2517 for ac_file in $ac_files ''
2518 do
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2522 ;;
2523 [ab].out )
2524 # We found the default executable, but exeext='' is most
2525 # certainly right.
2526 break;;
2527 *.* )
2528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2529 then :; else
2530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2531 fi
2532 # We set ac_cv_exeext here because the later test for it is not
2533 # safe: cross compilers may not add the suffix if given an `-o'
2534 # argument, so we may need to know it at that point already.
2535 # Even if this section looks crufty: it has the advantage of
2536 # actually working.
2537 break;;
2538 * )
2539 break;;
2540 esac
2541 done
2542 test "$ac_cv_exeext" = no && ac_cv_exeext=
2543
2544 else
2545 ac_file=''
2546 fi
2547
2548 { echo "$as_me:$LINENO: result: $ac_file" >&5
2549 echo "${ECHO_T}$ac_file" >&6; }
2550 if test -z "$ac_file"; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C compiler cannot create executables
2557 See \`config.log' for more details." >&2;}
2558 { (exit 77); exit 77; }; }
2559 fi
2560
2561 ac_exeext=$ac_cv_exeext
2562
2563 # Check that the compiler produces executables we can run. If not, either
2564 # the compiler is broken, or we cross compile.
2565 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2566 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2567 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2568 # If not cross compiling, check that we can run a simple program.
2569 if test "$cross_compiling" != yes; then
2570 if { ac_try='./$ac_file'
2571 { (case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_try") 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2580 cross_compiling=no
2581 else
2582 if test "$cross_compiling" = maybe; then
2583 cross_compiling=yes
2584 else
2585 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2586 If you meant to cross compile, use \`--host'.
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&2;}
2591 { (exit 1); exit 1; }; }
2592 fi
2593 fi
2594 fi
2595 { echo "$as_me:$LINENO: result: yes" >&5
2596 echo "${ECHO_T}yes" >&6; }
2597
2598 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2599 ac_clean_files=$ac_clean_files_save
2600 # Check that the compiler produces executables we can run. If not, either
2601 # the compiler is broken, or we cross compile.
2602 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2603 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2604 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2605 echo "${ECHO_T}$cross_compiling" >&6; }
2606
2607 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2608 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2609 if { (ac_try="$ac_link"
2610 case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_link") 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; then
2619 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2621 # work properly (i.e., refer to `conftest.exe'), while it won't with
2622 # `rm'.
2623 for ac_file in conftest.exe conftest conftest.*; do
2624 test -f "$ac_file" || continue
2625 case $ac_file in
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628 break;;
2629 * ) break;;
2630 esac
2631 done
2632 else
2633 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2636 See \`config.log' for more details." >&2;}
2637 { (exit 1); exit 1; }; }
2638 fi
2639
2640 rm -f conftest$ac_cv_exeext
2641 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2642 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2643
2644 rm -f conftest.$ac_ext
2645 EXEEXT=$ac_cv_exeext
2646 ac_exeext=$EXEEXT
2647 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2648 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2649 if test "${ac_cv_objext+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h. */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2658
2659 int
2660 main ()
2661 {
2662
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.o conftest.obj
2668 if { (ac_try="$ac_compile"
2669 case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compile") 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 for ac_file in conftest.o conftest.obj conftest.*; do
2679 test -f "$ac_file" || continue;
2680 case $ac_file in
2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683 break;;
2684 esac
2685 done
2686 else
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693 See \`config.log' for more details." >&2;}
2694 { (exit 1); exit 1; }; }
2695 fi
2696
2697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698 fi
2699 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700 echo "${ECHO_T}$ac_cv_objext" >&6; }
2701 OBJEXT=$ac_cv_objext
2702 ac_objext=$OBJEXT
2703 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2705 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2714
2715 int
2716 main ()
2717 {
2718 #ifndef __GNUC__
2719 choke me
2720 #endif
2721
2722 ;
2723 return 0;
2724 }
2725 _ACEOF
2726 rm -f conftest.$ac_objext
2727 if { (ac_try="$ac_compile"
2728 case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compile") 2>conftest.er1
2734 ac_status=$?
2735 grep -v '^ *+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } && {
2740 test -z "$ac_c_werror_flag" ||
2741 test ! -s conftest.err
2742 } && test -s conftest.$ac_objext; then
2743 ac_compiler_gnu=yes
2744 else
2745 echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2747
2748 ac_compiler_gnu=no
2749 fi
2750
2751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753
2754 fi
2755 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2756 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2757 GCC=`test $ac_compiler_gnu = yes && echo yes`
2758 ac_test_CFLAGS=${CFLAGS+set}
2759 ac_save_CFLAGS=$CFLAGS
2760 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2761 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_cc_g+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 ac_save_c_werror_flag=$ac_c_werror_flag
2766 ac_c_werror_flag=yes
2767 ac_cv_prog_cc_g=no
2768 CFLAGS="-g"
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2775
2776 int
2777 main ()
2778 {
2779
2780 ;
2781 return 0;
2782 }
2783 _ACEOF
2784 rm -f conftest.$ac_objext
2785 if { (ac_try="$ac_compile"
2786 case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_compile") 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } && {
2798 test -z "$ac_c_werror_flag" ||
2799 test ! -s conftest.err
2800 } && test -s conftest.$ac_objext; then
2801 ac_cv_prog_cc_g=yes
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 CFLAGS=""
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2813
2814 int
2815 main ()
2816 {
2817
2818 ;
2819 return 0;
2820 }
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (ac_try="$ac_compile"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compile") 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } && {
2836 test -z "$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 } && test -s conftest.$ac_objext; then
2839 :
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 ac_c_werror_flag=$ac_save_c_werror_flag
2845 CFLAGS="-g"
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2852
2853 int
2854 main ()
2855 {
2856
2857 ;
2858 return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (ac_try="$ac_compile"
2863 case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866 esac
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_compile") 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } && {
2875 test -z "$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2877 } && test -s conftest.$ac_objext; then
2878 ac_cv_prog_cc_g=yes
2879 else
2880 echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883
2884 fi
2885
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 fi
2888
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 fi
2891
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 ac_c_werror_flag=$ac_save_c_werror_flag
2894 fi
2895 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2896 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2897 if test "$ac_test_CFLAGS" = set; then
2898 CFLAGS=$ac_save_CFLAGS
2899 elif test $ac_cv_prog_cc_g = yes; then
2900 if test "$GCC" = yes; then
2901 CFLAGS="-g -O2"
2902 else
2903 CFLAGS="-g"
2904 fi
2905 else
2906 if test "$GCC" = yes; then
2907 CFLAGS="-O2"
2908 else
2909 CFLAGS=
2910 fi
2911 fi
2912 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2913 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2914 if test "${ac_cv_prog_cc_c89+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 ac_cv_prog_cc_c89=no
2918 ac_save_CC=$CC
2919 cat >conftest.$ac_ext <<_ACEOF
2920 /* confdefs.h. */
2921 _ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <stdarg.h>
2926 #include <stdio.h>
2927 #include <sys/types.h>
2928 #include <sys/stat.h>
2929 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2930 struct buf { int x; };
2931 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2932 static char *e (p, i)
2933 char **p;
2934 int i;
2935 {
2936 return p[i];
2937 }
2938 static char *f (char * (*g) (char **, int), char **p, ...)
2939 {
2940 char *s;
2941 va_list v;
2942 va_start (v,p);
2943 s = g (p, va_arg (v,int));
2944 va_end (v);
2945 return s;
2946 }
2947
2948 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2949 function prototypes and stuff, but not '\xHH' hex character constants.
2950 These don't provoke an error unfortunately, instead are silently treated
2951 as 'x'. The following induces an error, until -std is added to get
2952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2953 array size at least. It's necessary to write '\x00'==0 to get something
2954 that's true only with -std. */
2955 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2956
2957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2958 inside strings and character constants. */
2959 #define FOO(x) 'x'
2960 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2961
2962 int test (int i, double x);
2963 struct s1 {int (*f) (int a);};
2964 struct s2 {int (*f) (double a);};
2965 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2966 int argc;
2967 char **argv;
2968 int
2969 main ()
2970 {
2971 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2972 ;
2973 return 0;
2974 }
2975 _ACEOF
2976 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2978 do
2979 CC="$ac_save_CC $ac_arg"
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2997 ac_cv_prog_cc_c89=$ac_arg
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002
3003 fi
3004
3005 rm -f core conftest.err conftest.$ac_objext
3006 test "x$ac_cv_prog_cc_c89" != "xno" && break
3007 done
3008 rm -f conftest.$ac_ext
3009 CC=$ac_save_CC
3010
3011 fi
3012 # AC_CACHE_VAL
3013 case "x$ac_cv_prog_cc_c89" in
3014 x)
3015 { echo "$as_me:$LINENO: result: none needed" >&5
3016 echo "${ECHO_T}none needed" >&6; } ;;
3017 xno)
3018 { echo "$as_me:$LINENO: result: unsupported" >&5
3019 echo "${ECHO_T}unsupported" >&6; } ;;
3020 *)
3021 CC="$CC $ac_cv_prog_cc_c89"
3022 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3023 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3024 esac
3025
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3034 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3035 if test "${ac_cv_path_SED+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3039 for ac_i in 1 2 3 4 5 6 7; do
3040 ac_script="$ac_script$as_nl$ac_script"
3041 done
3042 echo "$ac_script" | sed 99q >conftest.sed
3043 $as_unset ac_script || ac_script=
3044 # Extract the first word of "sed gsed" to use in msg output
3045 if test -z "$SED"; then
3046 set dummy sed gsed; ac_prog_name=$2
3047 if test "${ac_cv_path_SED+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 ac_path_SED_found=false
3051 # Loop through the user's path and test for each of PROGNAME-LIST
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_prog in sed gsed; do
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3060 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3061 # Check for GNU ac_path_SED and select it if it is found.
3062 # Check for GNU $ac_path_SED
3063 case `"$ac_path_SED" --version 2>&1` in
3064 *GNU*)
3065 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3066 *)
3067 ac_count=0
3068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3069 while :
3070 do
3071 cat "conftest.in" "conftest.in" >"conftest.tmp"
3072 mv "conftest.tmp" "conftest.in"
3073 cp "conftest.in" "conftest.nl"
3074 echo '' >> "conftest.nl"
3075 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3077 ac_count=`expr $ac_count + 1`
3078 if test $ac_count -gt ${ac_path_SED_max-0}; then
3079 # Best one so far, save it but keep looking for a better one
3080 ac_cv_path_SED="$ac_path_SED"
3081 ac_path_SED_max=$ac_count
3082 fi
3083 # 10*(2^10) chars as input seems more than enough
3084 test $ac_count -gt 10 && break
3085 done
3086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3087 esac
3088
3089
3090 $ac_path_SED_found && break 3
3091 done
3092 done
3093
3094 done
3095 IFS=$as_save_IFS
3096
3097
3098 fi
3099
3100 SED="$ac_cv_path_SED"
3101 if test -z "$SED"; then
3102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3103 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3104 { (exit 1); exit 1; }; }
3105 fi
3106
3107 else
3108 ac_cv_path_SED=$SED
3109 fi
3110
3111 fi
3112 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3113 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3114 SED="$ac_cv_path_SED"
3115 rm -f conftest.sed
3116
3117 test -z "$SED" && SED=sed
3118 Xsed="$SED -e 1s/^X//"
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3131 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3132 if test "${ac_cv_path_GREP+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 # Extract the first word of "grep ggrep" to use in msg output
3136 if test -z "$GREP"; then
3137 set dummy grep ggrep; ac_prog_name=$2
3138 if test "${ac_cv_path_GREP+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141 ac_path_GREP_found=false
3142 # Loop through the user's path and test for each of PROGNAME-LIST
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_prog in grep ggrep; do
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3151 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3152 # Check for GNU ac_path_GREP and select it if it is found.
3153 # Check for GNU $ac_path_GREP
3154 case `"$ac_path_GREP" --version 2>&1` in
3155 *GNU*)
3156 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3157 *)
3158 ac_count=0
3159 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3160 while :
3161 do
3162 cat "conftest.in" "conftest.in" >"conftest.tmp"
3163 mv "conftest.tmp" "conftest.in"
3164 cp "conftest.in" "conftest.nl"
3165 echo 'GREP' >> "conftest.nl"
3166 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3168 ac_count=`expr $ac_count + 1`
3169 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3170 # Best one so far, save it but keep looking for a better one
3171 ac_cv_path_GREP="$ac_path_GREP"
3172 ac_path_GREP_max=$ac_count
3173 fi
3174 # 10*(2^10) chars as input seems more than enough
3175 test $ac_count -gt 10 && break
3176 done
3177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3178 esac
3179
3180
3181 $ac_path_GREP_found && break 3
3182 done
3183 done
3184
3185 done
3186 IFS=$as_save_IFS
3187
3188
3189 fi
3190
3191 GREP="$ac_cv_path_GREP"
3192 if test -z "$GREP"; then
3193 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3194 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3195 { (exit 1); exit 1; }; }
3196 fi
3197
3198 else
3199 ac_cv_path_GREP=$GREP
3200 fi
3201
3202
3203 fi
3204 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3205 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3206 GREP="$ac_cv_path_GREP"
3207
3208
3209 { echo "$as_me:$LINENO: checking for egrep" >&5
3210 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3211 if test "${ac_cv_path_EGREP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3215 then ac_cv_path_EGREP="$GREP -E"
3216 else
3217 # Extract the first word of "egrep" to use in msg output
3218 if test -z "$EGREP"; then
3219 set dummy egrep; ac_prog_name=$2
3220 if test "${ac_cv_path_EGREP+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 ac_path_EGREP_found=false
3224 # Loop through the user's path and test for each of PROGNAME-LIST
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_prog in egrep; do
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3233 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3234 # Check for GNU ac_path_EGREP and select it if it is found.
3235 # Check for GNU $ac_path_EGREP
3236 case `"$ac_path_EGREP" --version 2>&1` in
3237 *GNU*)
3238 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3239 *)
3240 ac_count=0
3241 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3242 while :
3243 do
3244 cat "conftest.in" "conftest.in" >"conftest.tmp"
3245 mv "conftest.tmp" "conftest.in"
3246 cp "conftest.in" "conftest.nl"
3247 echo 'EGREP' >> "conftest.nl"
3248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3250 ac_count=`expr $ac_count + 1`
3251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3252 # Best one so far, save it but keep looking for a better one
3253 ac_cv_path_EGREP="$ac_path_EGREP"
3254 ac_path_EGREP_max=$ac_count
3255 fi
3256 # 10*(2^10) chars as input seems more than enough
3257 test $ac_count -gt 10 && break
3258 done
3259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3260 esac
3261
3262
3263 $ac_path_EGREP_found && break 3
3264 done
3265 done
3266
3267 done
3268 IFS=$as_save_IFS
3269
3270
3271 fi
3272
3273 EGREP="$ac_cv_path_EGREP"
3274 if test -z "$EGREP"; then
3275 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3276 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3277 { (exit 1); exit 1; }; }
3278 fi
3279
3280 else
3281 ac_cv_path_EGREP=$EGREP
3282 fi
3283
3284
3285 fi
3286 fi
3287 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3288 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3289 EGREP="$ac_cv_path_EGREP"
3290
3291
3292 { echo "$as_me:$LINENO: checking for fgrep" >&5
3293 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3294 if test "${ac_cv_path_FGREP+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3298 then ac_cv_path_FGREP="$GREP -F"
3299 else
3300 # Extract the first word of "fgrep" to use in msg output
3301 if test -z "$FGREP"; then
3302 set dummy fgrep; ac_prog_name=$2
3303 if test "${ac_cv_path_FGREP+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 ac_path_FGREP_found=false
3307 # Loop through the user's path and test for each of PROGNAME-LIST
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_prog in fgrep; do
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3316 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3317 # Check for GNU ac_path_FGREP and select it if it is found.
3318 # Check for GNU $ac_path_FGREP
3319 case `"$ac_path_FGREP" --version 2>&1` in
3320 *GNU*)
3321 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3322 *)
3323 ac_count=0
3324 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3325 while :
3326 do
3327 cat "conftest.in" "conftest.in" >"conftest.tmp"
3328 mv "conftest.tmp" "conftest.in"
3329 cp "conftest.in" "conftest.nl"
3330 echo 'FGREP' >> "conftest.nl"
3331 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3333 ac_count=`expr $ac_count + 1`
3334 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3335 # Best one so far, save it but keep looking for a better one
3336 ac_cv_path_FGREP="$ac_path_FGREP"
3337 ac_path_FGREP_max=$ac_count
3338 fi
3339 # 10*(2^10) chars as input seems more than enough
3340 test $ac_count -gt 10 && break
3341 done
3342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3343 esac
3344
3345
3346 $ac_path_FGREP_found && break 3
3347 done
3348 done
3349
3350 done
3351 IFS=$as_save_IFS
3352
3353
3354 fi
3355
3356 FGREP="$ac_cv_path_FGREP"
3357 if test -z "$FGREP"; then
3358 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3359 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3360 { (exit 1); exit 1; }; }
3361 fi
3362
3363 else
3364 ac_cv_path_FGREP=$FGREP
3365 fi
3366
3367
3368 fi
3369 fi
3370 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3371 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3372 FGREP="$ac_cv_path_FGREP"
3373
3374
3375 test -z "$GREP" && GREP=grep
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395 # Check whether --with-gnu-ld was given.
3396 if test "${with_gnu_ld+set}" = set; then
3397 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3398 else
3399 with_gnu_ld=no
3400 fi
3401
3402 ac_prog=ld
3403 if test "$GCC" = yes; then
3404 # Check if gcc -print-prog-name=ld gives a path.
3405 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3406 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3407 case $host in
3408 *-*-mingw*)
3409 # gcc leaves a trailing carriage return which upsets mingw
3410 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3411 *)
3412 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3413 esac
3414 case $ac_prog in
3415 # Accept absolute paths.
3416 [\\/]* | ?:[\\/]*)
3417 re_direlt='/[^/][^/]*/\.\./'
3418 # Canonicalize the pathname of ld
3419 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3420 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3421 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3422 done
3423 test -z "$LD" && LD="$ac_prog"
3424 ;;
3425 "")
3426 # If it fails, then pretend we aren't using GCC.
3427 ac_prog=ld
3428 ;;
3429 *)
3430 # If it is relative, then search for the first ld in PATH.
3431 with_gnu_ld=unknown
3432 ;;
3433 esac
3434 elif test "$with_gnu_ld" = yes; then
3435 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3436 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3437 else
3438 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3439 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3440 fi
3441 if test "${lt_cv_path_LD+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -z "$LD"; then
3445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3446 for ac_dir in $PATH; do
3447 IFS="$lt_save_ifs"
3448 test -z "$ac_dir" && ac_dir=.
3449 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3450 lt_cv_path_LD="$ac_dir/$ac_prog"
3451 # Check to see if the program is GNU ld. I'd rather use --version,
3452 # but apparently some variants of GNU ld only accept -v.
3453 # Break only if it was the GNU/non-GNU ld that we prefer.
3454 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3455 *GNU* | *'with BFD'*)
3456 test "$with_gnu_ld" != no && break
3457 ;;
3458 *)
3459 test "$with_gnu_ld" != yes && break
3460 ;;
3461 esac
3462 fi
3463 done
3464 IFS="$lt_save_ifs"
3465 else
3466 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3467 fi
3468 fi
3469
3470 LD="$lt_cv_path_LD"
3471 if test -n "$LD"; then
3472 { echo "$as_me:$LINENO: result: $LD" >&5
3473 echo "${ECHO_T}$LD" >&6; }
3474 else
3475 { echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6; }
3477 fi
3478 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3479 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3480 { (exit 1); exit 1; }; }
3481 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3482 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3483 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3487 case `$LD -v 2>&1 </dev/null` in
3488 *GNU* | *'with BFD'*)
3489 lt_cv_prog_gnu_ld=yes
3490 ;;
3491 *)
3492 lt_cv_prog_gnu_ld=no
3493 ;;
3494 esac
3495 fi
3496 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3497 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3498 with_gnu_ld=$lt_cv_prog_gnu_ld
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3509 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3510 if test "${lt_cv_path_NM+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 if test -n "$NM"; then
3514 # Let the user override the test.
3515 lt_cv_path_NM="$NM"
3516 else
3517 lt_nm_to_check="${ac_tool_prefix}nm"
3518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3519 lt_nm_to_check="$lt_nm_to_check nm"
3520 fi
3521 for lt_tmp_nm in $lt_nm_to_check; do
3522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3524 IFS="$lt_save_ifs"
3525 test -z "$ac_dir" && ac_dir=.
3526 tmp_nm="$ac_dir/$lt_tmp_nm"
3527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3528 # Check to see if the nm accepts a BSD-compat flag.
3529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3530 # nm: unknown option "B" ignored
3531 # Tru64's nm complains that /dev/null is an invalid object file
3532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3533 */dev/null* | *'Invalid file or object type'*)
3534 lt_cv_path_NM="$tmp_nm -B"
3535 break
3536 ;;
3537 *)
3538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3539 */dev/null*)
3540 lt_cv_path_NM="$tmp_nm -p"
3541 break
3542 ;;
3543 *)
3544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3545 continue # so that we can try to find one that supports BSD flags
3546 ;;
3547 esac
3548 ;;
3549 esac
3550 fi
3551 done
3552 IFS="$lt_save_ifs"
3553 done
3554 : ${lt_cv_path_NM=no}
3555 fi
3556 fi
3557 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3558 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3559 if test "$lt_cv_path_NM" != "no"; then
3560 NM="$lt_cv_path_NM"
3561 else
3562 # Didn't find any BSD compatible name lister, look for dumpbin.
3563 if test -n "$ac_tool_prefix"; then
3564 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3565 do
3566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3570 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 if test -n "$DUMPBIN"; then
3574 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 DUMPBIN=$ac_cv_prog_DUMPBIN
3594 if test -n "$DUMPBIN"; then
3595 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3596 echo "${ECHO_T}$DUMPBIN" >&6; }
3597 else
3598 { echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6; }
3600 fi
3601
3602
3603 test -n "$DUMPBIN" && break
3604 done
3605 fi
3606 if test -z "$DUMPBIN"; then
3607 ac_ct_DUMPBIN=$DUMPBIN
3608 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3609 do
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3614 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 if test -n "$ac_ct_DUMPBIN"; then
3618 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631 done
3632 done
3633 IFS=$as_save_IFS
3634
3635 fi
3636 fi
3637 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3638 if test -n "$ac_ct_DUMPBIN"; then
3639 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3640 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
3641 else
3642 { echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6; }
3644 fi
3645
3646
3647 test -n "$ac_ct_DUMPBIN" && break
3648 done
3649
3650 if test "x$ac_ct_DUMPBIN" = x; then
3651 DUMPBIN=":"
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3656 whose name does not start with the host triplet. If you think this
3657 configuration is useful to you, please write to [email protected]." >&5
3658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3659 whose name does not start with the host triplet. If you think this
3660 configuration is useful to you, please write to [email protected]." >&2;}
3661 ac_tool_warned=yes ;;
3662 esac
3663 DUMPBIN=$ac_ct_DUMPBIN
3664 fi
3665 fi
3666
3667
3668 if test "$DUMPBIN" != ":"; then
3669 NM="$DUMPBIN"
3670 fi
3671 fi
3672 test -z "$NM" && NM=nm
3673
3674
3675
3676
3677
3678
3679 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3680 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
3681 if test "${lt_cv_nm_interface+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 lt_cv_nm_interface="BSD nm"
3685 echo "int some_variable = 0;" > conftest.$ac_ext
3686 (eval echo "\"\$as_me:3686: $ac_compile\"" >&5)
3687 (eval "$ac_compile" 2>conftest.err)
3688 cat conftest.err >&5
3689 (eval echo "\"\$as_me:3689: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3690 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3691 cat conftest.err >&5
3692 (eval echo "\"\$as_me:3692: output\"" >&5)
3693 cat conftest.out >&5
3694 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3695 lt_cv_nm_interface="MS dumpbin"
3696 fi
3697 rm -f conftest*
3698 fi
3699 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3700 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
3701
3702 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3703 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3704 LN_S=$as_ln_s
3705 if test "$LN_S" = "ln -s"; then
3706 { echo "$as_me:$LINENO: result: yes" >&5
3707 echo "${ECHO_T}yes" >&6; }
3708 else
3709 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3710 echo "${ECHO_T}no, using $LN_S" >&6; }
3711 fi
3712
3713 # find the maximum length of command line arguments
3714 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3715 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
3716 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719 i=0
3720 teststring="ABCD"
3721
3722 case $build_os in
3723 msdosdjgpp*)
3724 # On DJGPP, this test can blow up pretty badly due to problems in libc
3725 # (any single argument exceeding 2000 bytes causes a buffer overrun
3726 # during glob expansion). Even if it were fixed, the result of this
3727 # check would be larger than it should be.
3728 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3729 ;;
3730
3731 gnu*)
3732 # Under GNU Hurd, this test is not required because there is
3733 # no limit to the length of command line arguments.
3734 # Libtool will interpret -1 as no limit whatsoever
3735 lt_cv_sys_max_cmd_len=-1;
3736 ;;
3737
3738 cygwin* | mingw* | cegcc*)
3739 # On Win9x/ME, this test blows up -- it succeeds, but takes
3740 # about 5 minutes as the teststring grows exponentially.
3741 # Worse, since 9x/ME are not pre-emptively multitasking,
3742 # you end up with a "frozen" computer, even though with patience
3743 # the test eventually succeeds (with a max line length of 256k).
3744 # Instead, let's just punt: use the minimum linelength reported by
3745 # all of the supported platforms: 8192 (on NT/2K/XP).
3746 lt_cv_sys_max_cmd_len=8192;
3747 ;;
3748
3749 beos*)
3750 # On BeOS, this test takes a really really long time.
3751 # So we just punt and use a minimum line length of 8192.
3752 lt_cv_sys_max_cmd_len=8192;
3753 ;;
3754
3755 amigaos*)
3756 # On AmigaOS with pdksh, this test takes hours, literally.
3757 # So we just punt and use a minimum line length of 8192.
3758 lt_cv_sys_max_cmd_len=8192;
3759 ;;
3760
3761 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3762 # This has been around since 386BSD, at least. Likely further.
3763 if test -x /sbin/sysctl; then
3764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3765 elif test -x /usr/sbin/sysctl; then
3766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3767 else
3768 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3769 fi
3770 # And add a safety zone
3771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3773 ;;
3774
3775 interix*)
3776 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3777 lt_cv_sys_max_cmd_len=196608
3778 ;;
3779
3780 osf*)
3781 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3782 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3783 # nice to cause kernel panics so lets avoid the loop below.
3784 # First set a reasonable default.
3785 lt_cv_sys_max_cmd_len=16384
3786 #
3787 if test -x /sbin/sysconfig; then
3788 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3789 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3790 esac
3791 fi
3792 ;;
3793 sco3.2v5*)
3794 lt_cv_sys_max_cmd_len=102400
3795 ;;
3796 sysv5* | sco5v6* | sysv4.2uw2*)
3797 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3798 if test -n "$kargmax"; then
3799 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3800 else
3801 lt_cv_sys_max_cmd_len=32768
3802 fi
3803 ;;
3804 *)
3805 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3806 if test -n "$lt_cv_sys_max_cmd_len"; then
3807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3809 else
3810 # Make teststring a little bigger before we do anything with it.
3811 # a 1K string should be a reasonable start.
3812 for i in 1 2 3 4 5 6 7 8 ; do
3813 teststring=$teststring$teststring
3814 done
3815 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3816 # If test is not a shell built-in, we'll probably end up computing a
3817 # maximum length that is only half of the actual maximum length, but
3818 # we can't tell.
3819 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3820 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3821 test $i != 17 # 1/2 MB should be enough
3822 do
3823 i=`expr $i + 1`
3824 teststring=$teststring$teststring
3825 done
3826 # Only check the string length outside the loop.
3827 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3828 teststring=
3829 # Add a significant safety factor because C++ compilers can tack on
3830 # massive amounts of additional arguments before passing them to the
3831 # linker. It appears as though 1/2 is a usable value.
3832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3833 fi
3834 ;;
3835 esac
3836
3837 fi
3838
3839 if test -n $lt_cv_sys_max_cmd_len ; then
3840 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3841 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
3842 else
3843 { echo "$as_me:$LINENO: result: none" >&5
3844 echo "${ECHO_T}none" >&6; }
3845 fi
3846 max_cmd_len=$lt_cv_sys_max_cmd_len
3847
3848
3849
3850
3851
3852
3853 : ${CP="cp -f"}
3854 : ${MV="mv -f"}
3855 : ${RM="rm -f"}
3856
3857 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3858 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
3859 # Try some XSI features
3860 xsi_shell=no
3861 ( _lt_dummy="a/b/c"
3862 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3863 = c,a/b,, \
3864 && eval 'test $(( 1 + 1 )) -eq 2 \
3865 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3866 && xsi_shell=yes
3867 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
3868 echo "${ECHO_T}$xsi_shell" >&6; }
3869
3870
3871 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3872 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
3873 lt_shell_append=no
3874 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3875 >/dev/null 2>&1 \
3876 && lt_shell_append=yes
3877 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3878 echo "${ECHO_T}$lt_shell_append" >&6; }
3879
3880
3881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3882 lt_unset=unset
3883 else
3884 lt_unset=false
3885 fi
3886
3887
3888
3889
3890
3891 # test EBCDIC or ASCII
3892 case `echo X|tr X '\101'` in
3893 A) # ASCII based system
3894 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3895 lt_SP2NL='tr \040 \012'
3896 lt_NL2SP='tr \015\012 \040\040'
3897 ;;
3898 *) # EBCDIC based system
3899 lt_SP2NL='tr \100 \n'
3900 lt_NL2SP='tr \r\n \100\100'
3901 ;;
3902 esac
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3913 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3914 if test "${lt_cv_ld_reload_flag+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 lt_cv_ld_reload_flag='-r'
3918 fi
3919 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3920 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3921 reload_flag=$lt_cv_ld_reload_flag
3922 case $reload_flag in
3923 "" | " "*) ;;
3924 *) reload_flag=" $reload_flag" ;;
3925 esac
3926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3927 case $host_os in
3928 darwin*)
3929 if test "$GCC" = yes; then
3930 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3931 else
3932 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3933 fi
3934 ;;
3935 esac
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3947 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3950 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 if test -n "$OBJDUMP"; then
3954 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 OBJDUMP=$ac_cv_prog_OBJDUMP
3974 if test -n "$OBJDUMP"; then
3975 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3976 echo "${ECHO_T}$OBJDUMP" >&6; }
3977 else
3978 { echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6; }
3980 fi
3981
3982
3983 fi
3984 if test -z "$ac_cv_prog_OBJDUMP"; then
3985 ac_ct_OBJDUMP=$OBJDUMP
3986 # Extract the first word of "objdump", so it can be a program name with args.
3987 set dummy objdump; ac_word=$2
3988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3990 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 if test -n "$ac_ct_OBJDUMP"; then
3994 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4014 if test -n "$ac_ct_OBJDUMP"; then
4015 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4016 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4017 else
4018 { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4020 fi
4021
4022 if test "x$ac_ct_OBJDUMP" = x; then
4023 OBJDUMP="false"
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026 yes:)
4027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4028 whose name does not start with the host triplet. If you think this
4029 configuration is useful to you, please write to [email protected]." >&5
4030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4031 whose name does not start with the host triplet. If you think this
4032 configuration is useful to you, please write to [email protected]." >&2;}
4033 ac_tool_warned=yes ;;
4034 esac
4035 OBJDUMP=$ac_ct_OBJDUMP
4036 fi
4037 else
4038 OBJDUMP="$ac_cv_prog_OBJDUMP"
4039 fi
4040
4041 test -z "$OBJDUMP" && OBJDUMP=objdump
4042
4043
4044
4045
4046
4047
4048 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4049 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4050 if test "${lt_cv_deplibs_check_method+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053 lt_cv_file_magic_cmd='$MAGIC_CMD'
4054 lt_cv_file_magic_test_file=
4055 lt_cv_deplibs_check_method='unknown'
4056 # Need to set the preceding variable on all platforms that support
4057 # interlibrary dependencies.
4058 # 'none' -- dependencies not supported.
4059 # `unknown' -- same as none, but documents that we really don't know.
4060 # 'pass_all' -- all dependencies passed with no checks.
4061 # 'test_compile' -- check by making test program.
4062 # 'file_magic [[regex]]' -- check by looking for files in library path
4063 # which responds to the $file_magic_cmd with a given extended regex.
4064 # If you have `file' or equivalent on your system and you're not sure
4065 # whether `pass_all' will *always* work, you probably want this one.
4066
4067 case $host_os in
4068 aix[4-9]*)
4069 lt_cv_deplibs_check_method=pass_all
4070 ;;
4071
4072 beos*)
4073 lt_cv_deplibs_check_method=pass_all
4074 ;;
4075
4076 bsdi[45]*)
4077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4078 lt_cv_file_magic_cmd='/usr/bin/file -L'
4079 lt_cv_file_magic_test_file=/shlib/libc.so
4080 ;;
4081
4082 cygwin*)
4083 # func_win32_libid is a shell function defined in ltmain.sh
4084 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4085 lt_cv_deplibs_check_method=pass_all
4086 lt_cv_file_magic_cmd='func_win32_libid'
4087 ;;
4088
4089 mingw* | pw32*)
4090 # Base MSYS/MinGW do not provide the 'file' command needed by
4091 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4092 # unless we find 'file', for example because we are cross-compiling.
4093 if ( file / ) >/dev/null 2>&1; then
4094 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4095 lt_cv_file_magic_cmd='func_win32_libid'
4096 else
4097 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4098 lt_cv_file_magic_cmd='$OBJDUMP -f'
4099 fi
4100 lt_cv_deplibs_check_method=pass_all
4101 ;;
4102
4103 cegcc)
4104 # use the weaker test based on 'objdump'. See mingw*.
4105 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4106 lt_cv_file_magic_cmd='$OBJDUMP -f'
4107 ;;
4108
4109 darwin* | rhapsody*)
4110 lt_cv_deplibs_check_method=pass_all
4111 ;;
4112
4113 freebsd* | dragonfly*)
4114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4115 case $host_cpu in
4116 i*86 )
4117 # Not sure whether the presence of OpenBSD here was a mistake.
4118 # Let's accept both of them until this is cleared up.
4119 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4120 lt_cv_file_magic_cmd=/usr/bin/file
4121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4122 ;;
4123 esac
4124 else
4125 lt_cv_deplibs_check_method=pass_all
4126 fi
4127 ;;
4128
4129 gnu*)
4130 lt_cv_deplibs_check_method=pass_all
4131 ;;
4132
4133 hpux10.20* | hpux11*)
4134 lt_cv_file_magic_cmd=/usr/bin/file
4135 case $host_cpu in
4136 ia64*)
4137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4138 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4139 ;;
4140 hppa*64*)
4141 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]'
4142 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4143 ;;
4144 *)
4145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4146 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4147 ;;
4148 esac
4149 ;;
4150
4151 interix[3-9]*)
4152 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4154 ;;
4155
4156 irix5* | irix6* | nonstopux*)
4157 case $LD in
4158 *-32|*"-32 ") libmagic=32-bit;;
4159 *-n32|*"-n32 ") libmagic=N32;;
4160 *-64|*"-64 ") libmagic=64-bit;;
4161 *) libmagic=never-match;;
4162 esac
4163 lt_cv_deplibs_check_method=pass_all
4164 ;;
4165
4166 # This must be Linux ELF.
4167 linux* | k*bsd*-gnu)
4168 lt_cv_deplibs_check_method=pass_all
4169 ;;
4170
4171 netbsd*)
4172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4174 else
4175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4176 fi
4177 ;;
4178
4179 newos6*)
4180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4181 lt_cv_file_magic_cmd=/usr/bin/file
4182 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4183 ;;
4184
4185 *nto* | *qnx*)
4186 lt_cv_deplibs_check_method=pass_all
4187 ;;
4188
4189 openbsd*)
4190 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4192 else
4193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4194 fi
4195 ;;
4196
4197 osf3* | osf4* | osf5*)
4198 lt_cv_deplibs_check_method=pass_all
4199 ;;
4200
4201 rdos*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205 solaris*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
4209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4210 lt_cv_deplibs_check_method=pass_all
4211 ;;
4212
4213 sysv4 | sysv4.3*)
4214 case $host_vendor in
4215 motorola)
4216 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]'
4217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4218 ;;
4219 ncr)
4220 lt_cv_deplibs_check_method=pass_all
4221 ;;
4222 sequent)
4223 lt_cv_file_magic_cmd='/bin/file'
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4225 ;;
4226 sni)
4227 lt_cv_file_magic_cmd='/bin/file'
4228 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4229 lt_cv_file_magic_test_file=/lib/libc.so
4230 ;;
4231 siemens)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
4234 pc)
4235 lt_cv_deplibs_check_method=pass_all
4236 ;;
4237 esac
4238 ;;
4239
4240 tpf*)
4241 lt_cv_deplibs_check_method=pass_all
4242 ;;
4243 esac
4244
4245 fi
4246 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4247 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4248 file_magic_cmd=$lt_cv_file_magic_cmd
4249 deplibs_check_method=$lt_cv_deplibs_check_method
4250 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}ar; ac_word=$2
4266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4268 if test "${ac_cv_prog_AR+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 if test -n "$AR"; then
4272 ac_cv_prog_AR="$AR" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_AR="${ac_tool_prefix}ar"
4282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285 done
4286 done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 AR=$ac_cv_prog_AR
4292 if test -n "$AR"; then
4293 { echo "$as_me:$LINENO: result: $AR" >&5
4294 echo "${ECHO_T}$AR" >&6; }
4295 else
4296 { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4298 fi
4299
4300
4301 fi
4302 if test -z "$ac_cv_prog_AR"; then
4303 ac_ct_AR=$AR
4304 # Extract the first word of "ar", so it can be a program name with args.
4305 set dummy ar; ac_word=$2
4306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311 if test -n "$ac_ct_AR"; then
4312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_AR="ar"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 fi
4330 fi
4331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4332 if test -n "$ac_ct_AR"; then
4333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4334 echo "${ECHO_T}$ac_ct_AR" >&6; }
4335 else
4336 { echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6; }
4338 fi
4339
4340 if test "x$ac_ct_AR" = x; then
4341 AR="false"
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344 yes:)
4345 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4346 whose name does not start with the host triplet. If you think this
4347 configuration is useful to you, please write to [email protected]." >&5
4348 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4349 whose name does not start with the host triplet. If you think this
4350 configuration is useful to you, please write to [email protected]." >&2;}
4351 ac_tool_warned=yes ;;
4352 esac
4353 AR=$ac_ct_AR
4354 fi
4355 else
4356 AR="$ac_cv_prog_AR"
4357 fi
4358
4359 test -z "$AR" && AR=ar
4360 test -z "$AR_FLAGS" && AR_FLAGS=cru
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372 if test -n "$ac_tool_prefix"; then
4373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4374 set dummy ${ac_tool_prefix}strip; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_STRIP+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 if test -n "$STRIP"; then
4381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 STRIP=$ac_cv_prog_STRIP
4401 if test -n "$STRIP"; then
4402 { echo "$as_me:$LINENO: result: $STRIP" >&5
4403 echo "${ECHO_T}$STRIP" >&6; }
4404 else
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4408
4409
4410 fi
4411 if test -z "$ac_cv_prog_STRIP"; then
4412 ac_ct_STRIP=$STRIP
4413 # Extract the first word of "strip", so it can be a program name with args.
4414 set dummy strip; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$ac_ct_STRIP"; then
4421 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_ac_ct_STRIP="strip"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4441 if test -n "$ac_ct_STRIP"; then
4442 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4443 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4444 else
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449 if test "x$ac_ct_STRIP" = x; then
4450 STRIP=":"
4451 else
4452 case $cross_compiling:$ac_tool_warned in
4453 yes:)
4454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4455 whose name does not start with the host triplet. If you think this
4456 configuration is useful to you, please write to [email protected]." >&5
4457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4458 whose name does not start with the host triplet. If you think this
4459 configuration is useful to you, please write to [email protected]." >&2;}
4460 ac_tool_warned=yes ;;
4461 esac
4462 STRIP=$ac_ct_STRIP
4463 fi
4464 else
4465 STRIP="$ac_cv_prog_STRIP"
4466 fi
4467
4468 test -z "$STRIP" && STRIP=:
4469
4470
4471
4472
4473
4474
4475 if test -n "$ac_tool_prefix"; then
4476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_RANLIB+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -n "$RANLIB"; then
4484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 RANLIB=$ac_cv_prog_RANLIB
4504 if test -n "$RANLIB"; then
4505 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4506 echo "${ECHO_T}$RANLIB" >&6; }
4507 else
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4510 fi
4511
4512
4513 fi
4514 if test -z "$ac_cv_prog_RANLIB"; then
4515 ac_ct_RANLIB=$RANLIB
4516 # Extract the first word of "ranlib", so it can be a program name with args.
4517 set dummy ranlib; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$ac_ct_RANLIB"; then
4524 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_ac_ct_RANLIB="ranlib"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539 IFS=$as_save_IFS
4540
4541 fi
4542 fi
4543 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4544 if test -n "$ac_ct_RANLIB"; then
4545 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4546 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4547 else
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4550 fi
4551
4552 if test "x$ac_ct_RANLIB" = x; then
4553 RANLIB=":"
4554 else
4555 case $cross_compiling:$ac_tool_warned in
4556 yes:)
4557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4558 whose name does not start with the host triplet. If you think this
4559 configuration is useful to you, please write to [email protected]." >&5
4560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4561 whose name does not start with the host triplet. If you think this
4562 configuration is useful to you, please write to [email protected]." >&2;}
4563 ac_tool_warned=yes ;;
4564 esac
4565 RANLIB=$ac_ct_RANLIB
4566 fi
4567 else
4568 RANLIB="$ac_cv_prog_RANLIB"
4569 fi
4570
4571 test -z "$RANLIB" && RANLIB=:
4572
4573
4574
4575
4576
4577
4578 # Determine commands to create old-style static archives.
4579 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4580 old_postinstall_cmds='chmod 644 $oldlib'
4581 old_postuninstall_cmds=
4582
4583 if test -n "$RANLIB"; then
4584 case $host_os in
4585 openbsd*)
4586 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4587 ;;
4588 *)
4589 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4590 ;;
4591 esac
4592 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4593 fi
4594
4595
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 # If no C compiler was specified, use CC.
4629 LTCC=${LTCC-"$CC"}
4630
4631 # If no C compiler flags were specified, use CFLAGS.
4632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4633
4634 # Allow CC to be a program name with arguments.
4635 compiler=$CC
4636
4637
4638 # Check for command to grab the raw symbol name followed by C symbol from nm.
4639 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4640 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
4641 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644
4645 # These are sane defaults that work on at least a few old systems.
4646 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4647
4648 # Character class describing NM global symbol codes.
4649 symcode='[BCDEGRST]'
4650
4651 # Regexp to match symbols that can be accessed directly from C.
4652 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4653
4654 # Define system-specific variables.
4655 case $host_os in
4656 aix*)
4657 symcode='[BCDT]'
4658 ;;
4659 cygwin* | mingw* | pw32* | cegcc*)
4660 symcode='[ABCDGISTW]'
4661 ;;
4662 hpux*)
4663 if test "$host_cpu" = ia64; then
4664 symcode='[ABCDEGRST]'
4665 fi
4666 ;;
4667 irix* | nonstopux*)
4668 symcode='[BCDEGRST]'
4669 ;;
4670 osf*)
4671 symcode='[BCDEGQRST]'
4672 ;;
4673 solaris*)
4674 symcode='[BDRT]'
4675 ;;
4676 sco3.2v5*)
4677 symcode='[DT]'
4678 ;;
4679 sysv4.2uw2*)
4680 symcode='[DT]'
4681 ;;
4682 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4683 symcode='[ABDT]'
4684 ;;
4685 sysv4)
4686 symcode='[DFNSTU]'
4687 ;;
4688 esac
4689
4690 # If we're using GNU nm, then use its standard symbol codes.
4691 case `$NM -V 2>&1` in
4692 *GNU* | *'with BFD'*)
4693 symcode='[ABCDGIRSTW]' ;;
4694 esac
4695
4696 # Transform an extracted symbol line into a proper C declaration.
4697 # Some systems (esp. on ia64) link data and code symbols differently,
4698 # so use this general approach.
4699 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4700
4701 # Transform an extracted symbol line into symbol name and symbol address
4702 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4703 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'"
4704
4705 # Handle CRLF in mingw tool chain
4706 opt_cr=
4707 case $build_os in
4708 mingw*)
4709 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4710 ;;
4711 esac
4712
4713 # Try without a prefix underscore, then with it.
4714 for ac_symprfx in "" "_"; do
4715
4716 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4717 symxfrm="\\1 $ac_symprfx\\2 \\2"
4718
4719 # Write the raw and C identifiers.
4720 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4721 # Fake it for dumpbin and say T for any non-static function
4722 # and D for any global variable.
4723 # Also find C++ and __fastcall symbols from MSVC++,
4724 # which start with @ or ?.
4725 lt_cv_sys_global_symbol_pipe="$AWK '"\
4726 " {last_section=section; section=\$ 3};"\
4727 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4728 " \$ 0!~/External *\|/{next};"\
4729 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4730 " {if(hide[section]) next};"\
4731 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4732 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4733 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4734 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4735 " ' prfx=^$ac_symprfx"
4736 else
4737 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4738 fi
4739
4740 # Check to see that the pipe works correctly.
4741 pipe_works=no
4742
4743 rm -f conftest*
4744 cat > conftest.$ac_ext <<_LT_EOF
4745 #ifdef __cplusplus
4746 extern "C" {
4747 #endif
4748 char nm_test_var;
4749 void nm_test_func(void);
4750 void nm_test_func(void){}
4751 #ifdef __cplusplus
4752 }
4753 #endif
4754 int main(){nm_test_var='a';nm_test_func();return(0);}
4755 _LT_EOF
4756
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; then
4762 # Now try to grab the symbols.
4763 nlist=conftest.nm
4764 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4765 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } && test -s "$nlist"; then
4769 # Try sorting and uniquifying the output.
4770 if sort "$nlist" | uniq > "$nlist"T; then
4771 mv -f "$nlist"T "$nlist"
4772 else
4773 rm -f "$nlist"T
4774 fi
4775
4776 # Make sure that we snagged all the symbols we need.
4777 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4778 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4779 cat <<_LT_EOF > conftest.$ac_ext
4780 #ifdef __cplusplus
4781 extern "C" {
4782 #endif
4783
4784 _LT_EOF
4785 # Now generate the symbol file.
4786 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4787
4788 cat <<_LT_EOF >> conftest.$ac_ext
4789
4790 /* The mapping between symbol names and symbols. */
4791 const struct {
4792 const char *name;
4793 void *address;
4794 }
4795 lt__PROGRAM__LTX_preloaded_symbols[] =
4796 {
4797 { "@PROGRAM@", (void *) 0 },
4798 _LT_EOF
4799 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4800 cat <<\_LT_EOF >> conftest.$ac_ext
4801 {0, (void *) 0}
4802 };
4803
4804 /* This works around a problem in FreeBSD linker */
4805 #ifdef FREEBSD_WORKAROUND
4806 static const void *lt_preloaded_setup() {
4807 return lt__PROGRAM__LTX_preloaded_symbols;
4808 }
4809 #endif
4810
4811 #ifdef __cplusplus
4812 }
4813 #endif
4814 _LT_EOF
4815 # Now try linking the two files.
4816 mv conftest.$ac_objext conftstm.$ac_objext
4817 lt_save_LIBS="$LIBS"
4818 lt_save_CFLAGS="$CFLAGS"
4819 LIBS="conftstm.$ac_objext"
4820 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4822 (eval $ac_link) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4826 pipe_works=yes
4827 fi
4828 LIBS="$lt_save_LIBS"
4829 CFLAGS="$lt_save_CFLAGS"
4830 else
4831 echo "cannot find nm_test_func in $nlist" >&5
4832 fi
4833 else
4834 echo "cannot find nm_test_var in $nlist" >&5
4835 fi
4836 else
4837 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4838 fi
4839 else
4840 echo "$progname: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 fi
4843 rm -rf conftest* conftst*
4844
4845 # Do not use the global_symbol_pipe unless it works.
4846 if test "$pipe_works" = yes; then
4847 break
4848 else
4849 lt_cv_sys_global_symbol_pipe=
4850 fi
4851 done
4852
4853 fi
4854
4855 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4856 lt_cv_sys_global_symbol_to_cdecl=
4857 fi
4858 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4859 { echo "$as_me:$LINENO: result: failed" >&5
4860 echo "${ECHO_T}failed" >&6; }
4861 else
4862 { echo "$as_me:$LINENO: result: ok" >&5
4863 echo "${ECHO_T}ok" >&6; }
4864 fi
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888 # Check whether --enable-libtool-lock was given.
4889 if test "${enable_libtool_lock+set}" = set; then
4890 enableval=$enable_libtool_lock;
4891 fi
4892
4893 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4894
4895 # Some flags need to be propagated to the compiler or linker for good
4896 # libtool support.
4897 case $host in
4898 ia64-*-hpux*)
4899 # Find out which ABI we are using.
4900 echo 'int i;' > conftest.$ac_ext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; then
4906 case `/usr/bin/file conftest.$ac_objext` in
4907 *ELF-32*)
4908 HPUX_IA64_MODE="32"
4909 ;;
4910 *ELF-64*)
4911 HPUX_IA64_MODE="64"
4912 ;;
4913 esac
4914 fi
4915 rm -rf conftest*
4916 ;;
4917 *-*-irix6*)
4918 # Find out which ABI we are using.
4919 echo '#line 4919 "configure"' > conftest.$ac_ext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921 (eval $ac_compile) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; then
4925 if test "$lt_cv_prog_gnu_ld" = yes; then
4926 case `/usr/bin/file conftest.$ac_objext` in
4927 *32-bit*)
4928 LD="${LD-ld} -melf32bsmip"
4929 ;;
4930 *N32*)
4931 LD="${LD-ld} -melf32bmipn32"
4932 ;;
4933 *64-bit*)
4934 LD="${LD-ld} -melf64bmip"
4935 ;;
4936 esac
4937 else
4938 case `/usr/bin/file conftest.$ac_objext` in
4939 *32-bit*)
4940 LD="${LD-ld} -32"
4941 ;;
4942 *N32*)
4943 LD="${LD-ld} -n32"
4944 ;;
4945 *64-bit*)
4946 LD="${LD-ld} -64"
4947 ;;
4948 esac
4949 fi
4950 fi
4951 rm -rf conftest*
4952 ;;
4953
4954 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4955 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4956 # Find out which ABI we are using.
4957 echo 'int i;' > conftest.$ac_ext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; then
4963 case `/usr/bin/file conftest.o` in
4964 *32-bit*)
4965 case $host in
4966 x86_64-*kfreebsd*-gnu)
4967 LD="${LD-ld} -m elf_i386_fbsd"
4968 ;;
4969 x86_64-*linux*)
4970 LD="${LD-ld} -m elf_i386"
4971 ;;
4972 ppc64-*linux*|powerpc64-*linux*)
4973 LD="${LD-ld} -m elf32ppclinux"
4974 ;;
4975 s390x-*linux*)
4976 LD="${LD-ld} -m elf_s390"
4977 ;;
4978 sparc64-*linux*)
4979 LD="${LD-ld} -m elf32_sparc"
4980 ;;
4981 esac
4982 ;;
4983 *64-bit*)
4984 case $host in
4985 x86_64-*kfreebsd*-gnu)
4986 LD="${LD-ld} -m elf_x86_64_fbsd"
4987 ;;
4988 x86_64-*linux*)
4989 LD="${LD-ld} -m elf_x86_64"
4990 ;;
4991 ppc*-*linux*|powerpc*-*linux*)
4992 LD="${LD-ld} -m elf64ppc"
4993 ;;
4994 s390*-*linux*|s390*-*tpf*)
4995 LD="${LD-ld} -m elf64_s390"
4996 ;;
4997 sparc*-*linux*)
4998 LD="${LD-ld} -m elf64_sparc"
4999 ;;
5000 esac
5001 ;;
5002 esac
5003 fi
5004 rm -rf conftest*
5005 ;;
5006
5007 *-*-sco3.2v5*)
5008 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5009 SAVE_CFLAGS="$CFLAGS"
5010 CFLAGS="$CFLAGS -belf"
5011 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5012 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5013 if test "${lt_cv_cc_needs_belf+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028
5029 int
5030 main ()
5031 {
5032
5033 ;
5034 return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (ac_try="$ac_link"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_link") 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest$ac_exeext &&
5054 $as_test_x conftest$ac_exeext; then
5055 lt_cv_cc_needs_belf=yes
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 lt_cv_cc_needs_belf=no
5061 fi
5062
5063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5064 conftest$ac_exeext conftest.$ac_ext
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070
5071 fi
5072 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5073 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5074 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5075 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5076 CFLAGS="$SAVE_CFLAGS"
5077 fi
5078 ;;
5079 sparc*-*solaris*)
5080 # Find out which ABI we are using.
5081 echo 'int i;' > conftest.$ac_ext
5082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083 (eval $ac_compile) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; then
5087 case `/usr/bin/file conftest.o` in
5088 *64-bit*)
5089 case $lt_cv_prog_gnu_ld in
5090 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5091 *)
5092 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5093 LD="${LD-ld} -64"
5094 fi
5095 ;;
5096 esac
5097 ;;
5098 esac
5099 fi
5100 rm -rf conftest*
5101 ;;
5102 esac
5103
5104 need_locks="$enable_libtool_lock"
5105
5106
5107 case $host_os in
5108 rhapsody* | darwin*)
5109 if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5111 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5114 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117 if test -n "$DSYMUTIL"; then
5118 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5138 if test -n "$DSYMUTIL"; then
5139 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5140 echo "${ECHO_T}$DSYMUTIL" >&6; }
5141 else
5142 { echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6; }
5144 fi
5145
5146
5147 fi
5148 if test -z "$ac_cv_prog_DSYMUTIL"; then
5149 ac_ct_DSYMUTIL=$DSYMUTIL
5150 # Extract the first word of "dsymutil", so it can be a program name with args.
5151 set dummy dsymutil; ac_word=$2
5152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5154 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 if test -n "$ac_ct_DSYMUTIL"; then
5158 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5178 if test -n "$ac_ct_DSYMUTIL"; then
5179 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5180 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5181 else
5182 { echo "$as_me:$LINENO: result: no" >&5
5183 echo "${ECHO_T}no" >&6; }
5184 fi
5185
5186 if test "x$ac_ct_DSYMUTIL" = x; then
5187 DSYMUTIL=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5192 whose name does not start with the host triplet. If you think this
5193 configuration is useful to you, please write to [email protected]." >&5
5194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5195 whose name does not start with the host triplet. If you think this
5196 configuration is useful to you, please write to [email protected]." >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199 DSYMUTIL=$ac_ct_DSYMUTIL
5200 fi
5201 else
5202 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5203 fi
5204
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 if test -n "$NMEDIT"; then
5214 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 NMEDIT=$ac_cv_prog_NMEDIT
5234 if test -n "$NMEDIT"; then
5235 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5236 echo "${ECHO_T}$NMEDIT" >&6; }
5237 else
5238 { echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6; }
5240 fi
5241
5242
5243 fi
5244 if test -z "$ac_cv_prog_NMEDIT"; then
5245 ac_ct_NMEDIT=$NMEDIT
5246 # Extract the first word of "nmedit", so it can be a program name with args.
5247 set dummy nmedit; ac_word=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 if test -n "$ac_ct_NMEDIT"; then
5254 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5274 if test -n "$ac_ct_NMEDIT"; then
5275 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5276 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5277 else
5278 { echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6; }
5280 fi
5281
5282 if test "x$ac_ct_NMEDIT" = x; then
5283 NMEDIT=":"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5288 whose name does not start with the host triplet. If you think this
5289 configuration is useful to you, please write to [email protected]." >&5
5290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5291 whose name does not start with the host triplet. If you think this
5292 configuration is useful to you, please write to [email protected]." >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295 NMEDIT=$ac_ct_NMEDIT
5296 fi
5297 else
5298 NMEDIT="$ac_cv_prog_NMEDIT"
5299 fi
5300
5301 if test -n "$ac_tool_prefix"; then
5302 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5303 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5306 if test "${ac_cv_prog_LIPO+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 if test -n "$LIPO"; then
5310 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323 done
5324 done
5325 IFS=$as_save_IFS
5326
5327 fi
5328 fi
5329 LIPO=$ac_cv_prog_LIPO
5330 if test -n "$LIPO"; then
5331 { echo "$as_me:$LINENO: result: $LIPO" >&5
5332 echo "${ECHO_T}$LIPO" >&6; }
5333 else
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5336 fi
5337
5338
5339 fi
5340 if test -z "$ac_cv_prog_LIPO"; then
5341 ac_ct_LIPO=$LIPO
5342 # Extract the first word of "lipo", so it can be a program name with args.
5343 set dummy lipo; ac_word=$2
5344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5346 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 if test -n "$ac_ct_LIPO"; then
5350 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_ac_ct_LIPO="lipo"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5370 if test -n "$ac_ct_LIPO"; then
5371 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5372 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5373 else
5374 { echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6; }
5376 fi
5377
5378 if test "x$ac_ct_LIPO" = x; then
5379 LIPO=":"
5380 else
5381 case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5384 whose name does not start with the host triplet. If you think this
5385 configuration is useful to you, please write to [email protected]." >&5
5386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5387 whose name does not start with the host triplet. If you think this
5388 configuration is useful to you, please write to [email protected]." >&2;}
5389 ac_tool_warned=yes ;;
5390 esac
5391 LIPO=$ac_ct_LIPO
5392 fi
5393 else
5394 LIPO="$ac_cv_prog_LIPO"
5395 fi
5396
5397 if test -n "$ac_tool_prefix"; then
5398 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5399 set dummy ${ac_tool_prefix}otool; ac_word=$2
5400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_OTOOL+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 if test -n "$OTOOL"; then
5406 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419 done
5420 done
5421 IFS=$as_save_IFS
5422
5423 fi
5424 fi
5425 OTOOL=$ac_cv_prog_OTOOL
5426 if test -n "$OTOOL"; then
5427 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5428 echo "${ECHO_T}$OTOOL" >&6; }
5429 else
5430 { echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6; }
5432 fi
5433
5434
5435 fi
5436 if test -z "$ac_cv_prog_OTOOL"; then
5437 ac_ct_OTOOL=$OTOOL
5438 # Extract the first word of "otool", so it can be a program name with args.
5439 set dummy otool; ac_word=$2
5440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5442 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 if test -n "$ac_ct_OTOOL"; then
5446 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_ac_ct_OTOOL="otool"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459 done
5460 done
5461 IFS=$as_save_IFS
5462
5463 fi
5464 fi
5465 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5466 if test -n "$ac_ct_OTOOL"; then
5467 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5468 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5469 else
5470 { echo "$as_me:$LINENO: result: no" >&5
5471 echo "${ECHO_T}no" >&6; }
5472 fi
5473
5474 if test "x$ac_ct_OTOOL" = x; then
5475 OTOOL=":"
5476 else
5477 case $cross_compiling:$ac_tool_warned in
5478 yes:)
5479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5480 whose name does not start with the host triplet. If you think this
5481 configuration is useful to you, please write to [email protected]." >&5
5482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5483 whose name does not start with the host triplet. If you think this
5484 configuration is useful to you, please write to [email protected]." >&2;}
5485 ac_tool_warned=yes ;;
5486 esac
5487 OTOOL=$ac_ct_OTOOL
5488 fi
5489 else
5490 OTOOL="$ac_cv_prog_OTOOL"
5491 fi
5492
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5498 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 if test -n "$OTOOL64"; then
5502 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515 done
5516 done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 OTOOL64=$ac_cv_prog_OTOOL64
5522 if test -n "$OTOOL64"; then
5523 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5524 echo "${ECHO_T}$OTOOL64" >&6; }
5525 else
5526 { echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6; }
5528 fi
5529
5530
5531 fi
5532 if test -z "$ac_cv_prog_OTOOL64"; then
5533 ac_ct_OTOOL64=$OTOOL64
5534 # Extract the first word of "otool64", so it can be a program name with args.
5535 set dummy otool64; ac_word=$2
5536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5538 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 if test -n "$ac_ct_OTOOL64"; then
5542 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_OTOOL64="otool64"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5562 if test -n "$ac_ct_OTOOL64"; then
5563 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5564 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
5565 else
5566 { echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6; }
5568 fi
5569
5570 if test "x$ac_ct_OTOOL64" = x; then
5571 OTOOL64=":"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5576 whose name does not start with the host triplet. If you think this
5577 configuration is useful to you, please write to [email protected]." >&5
5578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet. If you think this
5580 configuration is useful to you, please write to [email protected]." >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583 OTOOL64=$ac_ct_OTOOL64
5584 fi
5585 else
5586 OTOOL64="$ac_cv_prog_OTOOL64"
5587 fi
5588
5589
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 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5616 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
5617 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620 lt_cv_apple_cc_single_mod=no
5621 if test -z "${LT_MULTI_MODULE}"; then
5622 # By default we will add the -single_module flag. You can override
5623 # by either setting the environment variable LT_MULTI_MODULE
5624 # non-empty at configure time, or by adding -multi_module to the
5625 # link flags.
5626 rm -rf libconftest.dylib*
5627 echo "int foo(void){return 1;}" > conftest.c
5628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5629 -dynamiclib -Wl,-single_module conftest.c" >&5
5630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5632 _lt_result=$?
5633 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5634 lt_cv_apple_cc_single_mod=yes
5635 else
5636 cat conftest.err >&5
5637 fi
5638 rm -rf libconftest.dylib*
5639 rm -f conftest.*
5640 fi
5641 fi
5642 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5643 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
5644 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5645 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
5646 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 lt_cv_ld_exported_symbols_list=no
5650 save_LDFLAGS=$LDFLAGS
5651 echo "_main" > conftest.sym
5652 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659
5660 int
5661 main ()
5662 {
5663
5664 ;
5665 return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (ac_try="$ac_link"
5670 case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_link") 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } && {
5682 test -z "$ac_c_werror_flag" ||
5683 test ! -s conftest.err
5684 } && test -s conftest$ac_exeext &&
5685 $as_test_x conftest$ac_exeext; then
5686 lt_cv_ld_exported_symbols_list=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 lt_cv_ld_exported_symbols_list=no
5692 fi
5693
5694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5695 conftest$ac_exeext conftest.$ac_ext
5696 LDFLAGS="$save_LDFLAGS"
5697
5698 fi
5699 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5700 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
5701 case $host_os in
5702 rhapsody* | darwin1.[012])
5703 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5704 darwin1.*)
5705 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5706 darwin*) # darwin 5.x on
5707 # if running on 10.5 or later, the deployment target defaults
5708 # to the OS version, if on x86, and 10.4, the deployment
5709 # target defaults to 10.4. Don't you love it?
5710 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5711 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5712 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5713 10.[012]*)
5714 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5715 10.*)
5716 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5717 esac
5718 ;;
5719 esac
5720 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5721 _lt_dar_single_mod='$single_module'
5722 fi
5723 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5724 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5725 else
5726 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5727 fi
5728 if test "$DSYMUTIL" != ":"; then
5729 _lt_dsymutil='~$DSYMUTIL $lib || :'
5730 else
5731 _lt_dsymutil=
5732 fi
5733 ;;
5734 esac
5735
5736 ac_ext=c
5737 ac_cpp='$CPP $CPPFLAGS'
5738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5741 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5742 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5743 # On Suns, sometimes $CPP names a directory.
5744 if test -n "$CPP" && test -d "$CPP"; then
5745 CPP=
5746 fi
5747 if test -z "$CPP"; then
5748 if test "${ac_cv_prog_CPP+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 # Double quotes because CPP needs to be expanded
5752 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5753 do
5754 ac_preproc_ok=false
5755 for ac_c_preproc_warn_flag in '' yes
5756 do
5757 # Use a header file that comes with gcc, so configuring glibc
5758 # with a fresh cross-compiler works.
5759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 # <limits.h> exists even on freestanding compilers.
5761 # On the NeXT, cc -E runs the code through the compiler's parser,
5762 # not just through cpp. "Syntax error" is here to catch this case.
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #ifdef __STDC__
5770 # include <limits.h>
5771 #else
5772 # include <assert.h>
5773 #endif
5774 Syntax error
5775 _ACEOF
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } >/dev/null && {
5789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 }; then
5792 :
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 # Broken: fails on valid input.
5798 continue
5799 fi
5800
5801 rm -f conftest.err conftest.$ac_ext
5802
5803 # OK, works on sane cases. Now check whether nonexistent headers
5804 # can be detected and how.
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <ac_nonexistent.h>
5812 _ACEOF
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 }; then
5829 # Broken: success on invalid input.
5830 continue
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839
5840 rm -f conftest.err conftest.$ac_ext
5841
5842 done
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5846 break
5847 fi
5848
5849 done
5850 ac_cv_prog_CPP=$CPP
5851
5852 fi
5853 CPP=$ac_cv_prog_CPP
5854 else
5855 ac_cv_prog_CPP=$CPP
5856 fi
5857 { echo "$as_me:$LINENO: result: $CPP" >&5
5858 echo "${ECHO_T}$CPP" >&6; }
5859 ac_preproc_ok=false
5860 for ac_c_preproc_warn_flag in '' yes
5861 do
5862 # Use a header file that comes with gcc, so configuring glibc
5863 # with a fresh cross-compiler works.
5864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5865 # <limits.h> exists even on freestanding compilers.
5866 # On the NeXT, cc -E runs the code through the compiler's parser,
5867 # not just through cpp. "Syntax error" is here to catch this case.
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #ifdef __STDC__
5875 # include <limits.h>
5876 #else
5877 # include <assert.h>
5878 #endif
5879 Syntax error
5880 _ACEOF
5881 if { (ac_try="$ac_cpp conftest.$ac_ext"
5882 case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } >/dev/null && {
5894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 }; then
5897 :
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 # Broken: fails on valid input.
5903 continue
5904 fi
5905
5906 rm -f conftest.err conftest.$ac_ext
5907
5908 # OK, works on sane cases. Now check whether nonexistent headers
5909 # can be detected and how.
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <ac_nonexistent.h>
5917 _ACEOF
5918 if { (ac_try="$ac_cpp conftest.$ac_ext"
5919 case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } >/dev/null && {
5931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 }; then
5934 # Broken: success on invalid input.
5935 continue
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 # Passes both tests.
5941 ac_preproc_ok=:
5942 break
5943 fi
5944
5945 rm -f conftest.err conftest.$ac_ext
5946
5947 done
5948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5949 rm -f conftest.err conftest.$ac_ext
5950 if $ac_preproc_ok; then
5951 :
5952 else
5953 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5954 See \`config.log' for more details." >&5
5955 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5956 See \`config.log' for more details." >&2;}
5957 { (exit 1); exit 1; }; }
5958 fi
5959
5960 ac_ext=c
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965
5966
5967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5969 if test "${ac_cv_header_stdc+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <stdlib.h>
5979 #include <stdarg.h>
5980 #include <string.h>
5981 #include <float.h>
5982
5983 int
5984 main ()
5985 {
5986
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_objext; then
6008 ac_cv_header_stdc=yes
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 ac_cv_header_stdc=no
6014 fi
6015
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017
6018 if test $ac_cv_header_stdc = yes; then
6019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 #include <string.h>
6027
6028 _ACEOF
6029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6030 $EGREP "memchr" >/dev/null 2>&1; then
6031 :
6032 else
6033 ac_cv_header_stdc=no
6034 fi
6035 rm -f -r conftest*
6036
6037 fi
6038
6039 if test $ac_cv_header_stdc = yes; then
6040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <stdlib.h>
6048
6049 _ACEOF
6050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6051 $EGREP "free" >/dev/null 2>&1; then
6052 :
6053 else
6054 ac_cv_header_stdc=no
6055 fi
6056 rm -f -r conftest*
6057
6058 fi
6059
6060 if test $ac_cv_header_stdc = yes; then
6061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6062 if test "$cross_compiling" = yes; then
6063 :
6064 else
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #include <ctype.h>
6072 #include <stdlib.h>
6073 #if ((' ' & 0x0FF) == 0x020)
6074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076 #else
6077 # define ISLOWER(c) \
6078 (('a' <= (c) && (c) <= 'i') \
6079 || ('j' <= (c) && (c) <= 'r') \
6080 || ('s' <= (c) && (c) <= 'z'))
6081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6082 #endif
6083
6084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6085 int
6086 main ()
6087 {
6088 int i;
6089 for (i = 0; i < 256; i++)
6090 if (XOR (islower (i), ISLOWER (i))
6091 || toupper (i) != TOUPPER (i))
6092 return 2;
6093 return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest$ac_exeext
6097 if { (ac_try="$ac_link"
6098 case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_link") 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6107 { (case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_try") 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 :
6117 else
6118 echo "$as_me: program exited with status $ac_status" >&5
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 ( exit $ac_status )
6123 ac_cv_header_stdc=no
6124 fi
6125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6126 fi
6127
6128
6129 fi
6130 fi
6131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6133 if test $ac_cv_header_stdc = yes; then
6134
6135 cat >>confdefs.h <<\_ACEOF
6136 #define STDC_HEADERS 1
6137 _ACEOF
6138
6139 fi
6140
6141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6152 inttypes.h stdint.h unistd.h
6153 do
6154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 else
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 $ac_includes_default
6167
6168 #include <$ac_header>
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 eval "$as_ac_Header=yes"
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 eval "$as_ac_Header=no"
6193 fi
6194
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 fi
6197 ac_res=`eval echo '${'$as_ac_Header'}'`
6198 { echo "$as_me:$LINENO: result: $ac_res" >&5
6199 echo "${ECHO_T}$ac_res" >&6; }
6200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6201 cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6203 _ACEOF
6204
6205 fi
6206
6207 done
6208
6209
6210
6211 for ac_header in dlfcn.h
6212 do
6213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6226
6227 #include <$ac_header>
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (ac_try="$ac_compile"
6231 case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6246 eval "$as_ac_Header=yes"
6247 else
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 eval "$as_ac_Header=no"
6252 fi
6253
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 fi
6256 ac_res=`eval echo '${'$as_ac_Header'}'`
6257 { echo "$as_me:$LINENO: result: $ac_res" >&5
6258 echo "${ECHO_T}$ac_res" >&6; }
6259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6260 cat >>confdefs.h <<_ACEOF
6261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262 _ACEOF
6263
6264 fi
6265
6266 done
6267
6268
6269
6270 # Set options
6271 enable_win32_dll=yes
6272
6273 case $host in
6274 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6275 if test -n "$ac_tool_prefix"; then
6276 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}as; ac_word=$2
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280 if test "${ac_cv_prog_AS+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283 if test -n "$AS"; then
6284 ac_cv_prog_AS="$AS" # Let the user override the test.
6285 else
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 for as_dir in $PATH
6288 do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_AS="${ac_tool_prefix}as"
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297 done
6298 done
6299 IFS=$as_save_IFS
6300
6301 fi
6302 fi
6303 AS=$ac_cv_prog_AS
6304 if test -n "$AS"; then
6305 { echo "$as_me:$LINENO: result: $AS" >&5
6306 echo "${ECHO_T}$AS" >&6; }
6307 else
6308 { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6310 fi
6311
6312
6313 fi
6314 if test -z "$ac_cv_prog_AS"; then
6315 ac_ct_AS=$AS
6316 # Extract the first word of "as", so it can be a program name with args.
6317 set dummy as; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 if test -n "$ac_ct_AS"; then
6324 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_ac_ct_AS="as"
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6344 if test -n "$ac_ct_AS"; then
6345 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6346 echo "${ECHO_T}$ac_ct_AS" >&6; }
6347 else
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352 if test "x$ac_ct_AS" = x; then
6353 AS="false"
6354 else
6355 case $cross_compiling:$ac_tool_warned in
6356 yes:)
6357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6358 whose name does not start with the host triplet. If you think this
6359 configuration is useful to you, please write to [email protected]." >&5
6360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6361 whose name does not start with the host triplet. If you think this
6362 configuration is useful to you, please write to [email protected]." >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365 AS=$ac_ct_AS
6366 fi
6367 else
6368 AS="$ac_cv_prog_AS"
6369 fi
6370
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 if test -n "$DLLTOOL"; then
6380 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 DLLTOOL=$ac_cv_prog_DLLTOOL
6400 if test -n "$DLLTOOL"; then
6401 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6402 echo "${ECHO_T}$DLLTOOL" >&6; }
6403 else
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6406 fi
6407
6408
6409 fi
6410 if test -z "$ac_cv_prog_DLLTOOL"; then
6411 ac_ct_DLLTOOL=$DLLTOOL
6412 # Extract the first word of "dlltool", so it can be a program name with args.
6413 set dummy dlltool; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 if test -n "$ac_ct_DLLTOOL"; then
6420 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6440 if test -n "$ac_ct_DLLTOOL"; then
6441 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6442 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6443 else
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6446 fi
6447
6448 if test "x$ac_ct_DLLTOOL" = x; then
6449 DLLTOOL="false"
6450 else
6451 case $cross_compiling:$ac_tool_warned in
6452 yes:)
6453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6454 whose name does not start with the host triplet. If you think this
6455 configuration is useful to you, please write to [email protected]." >&5
6456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to [email protected]." >&2;}
6459 ac_tool_warned=yes ;;
6460 esac
6461 DLLTOOL=$ac_ct_DLLTOOL
6462 fi
6463 else
6464 DLLTOOL="$ac_cv_prog_DLLTOOL"
6465 fi
6466
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 if test -n "$OBJDUMP"; then
6476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489 done
6490 done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 OBJDUMP=$ac_cv_prog_OBJDUMP
6496 if test -n "$OBJDUMP"; then
6497 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6498 echo "${ECHO_T}$OBJDUMP" >&6; }
6499 else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6502 fi
6503
6504
6505 fi
6506 if test -z "$ac_cv_prog_OBJDUMP"; then
6507 ac_ct_OBJDUMP=$OBJDUMP
6508 # Extract the first word of "objdump", so it can be a program name with args.
6509 set dummy objdump; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 if test -n "$ac_ct_OBJDUMP"; then
6516 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6536 if test -n "$ac_ct_OBJDUMP"; then
6537 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6538 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6539 else
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6542 fi
6543
6544 if test "x$ac_ct_OBJDUMP" = x; then
6545 OBJDUMP="false"
6546 else
6547 case $cross_compiling:$ac_tool_warned in
6548 yes:)
6549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6550 whose name does not start with the host triplet. If you think this
6551 configuration is useful to you, please write to [email protected]." >&5
6552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6553 whose name does not start with the host triplet. If you think this
6554 configuration is useful to you, please write to [email protected]." >&2;}
6555 ac_tool_warned=yes ;;
6556 esac
6557 OBJDUMP=$ac_ct_OBJDUMP
6558 fi
6559 else
6560 OBJDUMP="$ac_cv_prog_OBJDUMP"
6561 fi
6562
6563 ;;
6564 esac
6565
6566 test -z "$AS" && AS=as
6567
6568
6569
6570
6571
6572 test -z "$DLLTOOL" && DLLTOOL=dlltool
6573
6574
6575
6576
6577
6578 test -z "$OBJDUMP" && OBJDUMP=objdump
6579
6580
6581
6582
6583
6584
6585
6586 enable_dlopen=no
6587
6588
6589
6590 # Check whether --enable-shared was given.
6591 if test "${enable_shared+set}" = set; then
6592 enableval=$enable_shared; p=${PACKAGE-default}
6593 case $enableval in
6594 yes) enable_shared=yes ;;
6595 no) enable_shared=no ;;
6596 *)
6597 enable_shared=no
6598 # Look at the argument we got. We use all the common list separators.
6599 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6600 for pkg in $enableval; do
6601 IFS="$lt_save_ifs"
6602 if test "X$pkg" = "X$p"; then
6603 enable_shared=yes
6604 fi
6605 done
6606 IFS="$lt_save_ifs"
6607 ;;
6608 esac
6609 else
6610 enable_shared=yes
6611 fi
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621 # Check whether --enable-static was given.
6622 if test "${enable_static+set}" = set; then
6623 enableval=$enable_static; p=${PACKAGE-default}
6624 case $enableval in
6625 yes) enable_static=yes ;;
6626 no) enable_static=no ;;
6627 *)
6628 enable_static=no
6629 # Look at the argument we got. We use all the common list separators.
6630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6631 for pkg in $enableval; do
6632 IFS="$lt_save_ifs"
6633 if test "X$pkg" = "X$p"; then
6634 enable_static=yes
6635 fi
6636 done
6637 IFS="$lt_save_ifs"
6638 ;;
6639 esac
6640 else
6641 enable_static=yes
6642 fi
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653 # Check whether --with-pic was given.
6654 if test "${with_pic+set}" = set; then
6655 withval=$with_pic; pic_mode="$withval"
6656 else
6657 pic_mode=default
6658 fi
6659
6660
6661 test -z "$pic_mode" && pic_mode=default
6662
6663
6664
6665
6666
6667
6668
6669 # Check whether --enable-fast-install was given.
6670 if test "${enable_fast_install+set}" = set; then
6671 enableval=$enable_fast_install; p=${PACKAGE-default}
6672 case $enableval in
6673 yes) enable_fast_install=yes ;;
6674 no) enable_fast_install=no ;;
6675 *)
6676 enable_fast_install=no
6677 # Look at the argument we got. We use all the common list separators.
6678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6679 for pkg in $enableval; do
6680 IFS="$lt_save_ifs"
6681 if test "X$pkg" = "X$p"; then
6682 enable_fast_install=yes
6683 fi
6684 done
6685 IFS="$lt_save_ifs"
6686 ;;
6687 esac
6688 else
6689 enable_fast_install=yes
6690 fi
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 # This can be used to rebuild libtool when needed
6703 LIBTOOL_DEPS="$ltmain"
6704
6705 # Always use our own libtool.
6706 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 test -z "$LN_S" && LN_S="ln -s"
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747 if test -n "${ZSH_VERSION+set}" ; then
6748 setopt NO_GLOB_SUBST
6749 fi
6750
6751 { echo "$as_me:$LINENO: checking for objdir" >&5
6752 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6753 if test "${lt_cv_objdir+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 rm -f .libs 2>/dev/null
6757 mkdir .libs 2>/dev/null
6758 if test -d .libs; then
6759 lt_cv_objdir=.libs
6760 else
6761 # MS-DOS does not allow filenames that begin with a dot.
6762 lt_cv_objdir=_libs
6763 fi
6764 rmdir .libs 2>/dev/null
6765 fi
6766 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6767 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6768 objdir=$lt_cv_objdir
6769
6770
6771
6772
6773
6774 cat >>confdefs.h <<_ACEOF
6775 #define LT_OBJDIR "$lt_cv_objdir/"
6776 _ACEOF
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794 case $host_os in
6795 aix3*)
6796 # AIX sometimes has problems with the GCC collect2 program. For some
6797 # reason, if we set the COLLECT_NAMES environment variable, the problems
6798 # vanish in a puff of smoke.
6799 if test "X${COLLECT_NAMES+set}" != Xset; then
6800 COLLECT_NAMES=
6801 export COLLECT_NAMES
6802 fi
6803 ;;
6804 esac
6805
6806 # Sed substitution that helps us do robust quoting. It backslashifies
6807 # metacharacters that are still active within double-quoted strings.
6808 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6809
6810 # Same as above, but do not quote variable references.
6811 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6812
6813 # Sed substitution to delay expansion of an escaped shell variable in a
6814 # double_quote_subst'ed string.
6815 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6816
6817 # Sed substitution to delay expansion of an escaped single quote.
6818 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6819
6820 # Sed substitution to avoid accidental globbing in evaled expressions
6821 no_glob_subst='s/\*/\\\*/g'
6822
6823 # Global variables:
6824 ofile=libtool
6825 can_build_shared=yes
6826
6827 # All known linkers require a `.a' archive for static linking (except MSVC,
6828 # which needs '.lib').
6829 libext=a
6830
6831 with_gnu_ld="$lt_cv_prog_gnu_ld"
6832
6833 old_CC="$CC"
6834 old_CFLAGS="$CFLAGS"
6835
6836 # Set sane defaults for various variables
6837 test -z "$CC" && CC=cc
6838 test -z "$LTCC" && LTCC=$CC
6839 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6840 test -z "$LD" && LD=ld
6841 test -z "$ac_objext" && ac_objext=o
6842
6843 for cc_temp in $compiler""; do
6844 case $cc_temp in
6845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6847 \-*) ;;
6848 *) break;;
6849 esac
6850 done
6851 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6852
6853
6854 # Only perform the check for file, if the check method requires it
6855 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6856 case $deplibs_check_method in
6857 file_magic*)
6858 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6859 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6860 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6861 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864 case $MAGIC_CMD in
6865 [\\/*] | ?:[\\/]*)
6866 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6867 ;;
6868 *)
6869 lt_save_MAGIC_CMD="$MAGIC_CMD"
6870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6871 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6872 for ac_dir in $ac_dummy; do
6873 IFS="$lt_save_ifs"
6874 test -z "$ac_dir" && ac_dir=.
6875 if test -f $ac_dir/${ac_tool_prefix}file; then
6876 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6877 if test -n "$file_magic_test_file"; then
6878 case $deplibs_check_method in
6879 "file_magic "*)
6880 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6882 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6883 $EGREP "$file_magic_regex" > /dev/null; then
6884 :
6885 else
6886 cat <<_LT_EOF 1>&2
6887
6888 *** Warning: the command libtool uses to detect shared libraries,
6889 *** $file_magic_cmd, produces output that libtool cannot recognize.
6890 *** The result is that libtool may fail to recognize shared libraries
6891 *** as such. This will affect the creation of libtool libraries that
6892 *** depend on shared libraries, but programs linked with such libtool
6893 *** libraries will work regardless of this problem. Nevertheless, you
6894 *** may want to report the problem to your system manager and/or to
6895 *** [email protected]
6896
6897 _LT_EOF
6898 fi ;;
6899 esac
6900 fi
6901 break
6902 fi
6903 done
6904 IFS="$lt_save_ifs"
6905 MAGIC_CMD="$lt_save_MAGIC_CMD"
6906 ;;
6907 esac
6908 fi
6909
6910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6911 if test -n "$MAGIC_CMD"; then
6912 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6913 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6914 else
6915 { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6917 fi
6918
6919
6920
6921
6922
6923 if test -z "$lt_cv_path_MAGIC_CMD"; then
6924 if test -n "$ac_tool_prefix"; then
6925 { echo "$as_me:$LINENO: checking for file" >&5
6926 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6927 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 case $MAGIC_CMD in
6931 [\\/*] | ?:[\\/]*)
6932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 lt_save_MAGIC_CMD="$MAGIC_CMD"
6936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6938 for ac_dir in $ac_dummy; do
6939 IFS="$lt_save_ifs"
6940 test -z "$ac_dir" && ac_dir=.
6941 if test -f $ac_dir/file; then
6942 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6943 if test -n "$file_magic_test_file"; then
6944 case $deplibs_check_method in
6945 "file_magic "*)
6946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6949 $EGREP "$file_magic_regex" > /dev/null; then
6950 :
6951 else
6952 cat <<_LT_EOF 1>&2
6953
6954 *** Warning: the command libtool uses to detect shared libraries,
6955 *** $file_magic_cmd, produces output that libtool cannot recognize.
6956 *** The result is that libtool may fail to recognize shared libraries
6957 *** as such. This will affect the creation of libtool libraries that
6958 *** depend on shared libraries, but programs linked with such libtool
6959 *** libraries will work regardless of this problem. Nevertheless, you
6960 *** may want to report the problem to your system manager and/or to
6961 *** [email protected]
6962
6963 _LT_EOF
6964 fi ;;
6965 esac
6966 fi
6967 break
6968 fi
6969 done
6970 IFS="$lt_save_ifs"
6971 MAGIC_CMD="$lt_save_MAGIC_CMD"
6972 ;;
6973 esac
6974 fi
6975
6976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6977 if test -n "$MAGIC_CMD"; then
6978 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6979 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6980 else
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 else
6987 MAGIC_CMD=:
6988 fi
6989 fi
6990
6991 fi
6992 ;;
6993 esac
6994
6995 # Use C for the default configuration in the libtool script
6996
6997 lt_save_CC="$CC"
6998 ac_ext=c
6999 ac_cpp='$CPP $CPPFLAGS'
7000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004
7005 # Source file extension for C test sources.
7006 ac_ext=c
7007
7008 # Object file extension for compiled C test sources.
7009 objext=o
7010 objext=$objext
7011
7012 # Code to be used in simple compile tests
7013 lt_simple_compile_test_code="int some_variable = 0;"
7014
7015 # Code to be used in simple link tests
7016 lt_simple_link_test_code='int main(){return(0);}'
7017
7018
7019
7020
7021
7022
7023
7024 # If no C compiler was specified, use CC.
7025 LTCC=${LTCC-"$CC"}
7026
7027 # If no C compiler flags were specified, use CFLAGS.
7028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7029
7030 # Allow CC to be a program name with arguments.
7031 compiler=$CC
7032
7033 # Save the default compiler, since it gets overwritten when the other
7034 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7035 compiler_DEFAULT=$CC
7036
7037 # save warnings/boilerplate of simple test code
7038 ac_outfile=conftest.$ac_objext
7039 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7040 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7041 _lt_compiler_boilerplate=`cat conftest.err`
7042 $RM conftest*
7043
7044 ac_outfile=conftest.$ac_objext
7045 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7046 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7047 _lt_linker_boilerplate=`cat conftest.err`
7048 $RM -r conftest*
7049
7050
7051 ## CAVEAT EMPTOR:
7052 ## There is no encapsulation within the following macros, do not change
7053 ## the running order or otherwise move them around unless you know exactly
7054 ## what you are doing...
7055 if test -n "$compiler"; then
7056
7057 lt_prog_compiler_no_builtin_flag=
7058
7059 if test "$GCC" = yes; then
7060 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7061
7062 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7063 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7064 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 lt_cv_prog_compiler_rtti_exceptions=no
7068 ac_outfile=conftest.$ac_objext
7069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7070 lt_compiler_flag="-fno-rtti -fno-exceptions"
7071 # Insert the option either (1) after the last *FLAGS variable, or
7072 # (2) before a word containing "conftest.", or (3) at the end.
7073 # Note that $ac_compile itself does not contain backslashes and begins
7074 # with a dollar sign (not a hyphen), so the echo should work correctly.
7075 # The option is referenced via a variable to avoid confusing sed.
7076 lt_compile=`echo "$ac_compile" | $SED \
7077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7079 -e 's:$: $lt_compiler_flag:'`
7080 (eval echo "\"\$as_me:7080: $lt_compile\"" >&5)
7081 (eval "$lt_compile" 2>conftest.err)
7082 ac_status=$?
7083 cat conftest.err >&5
7084 echo "$as_me:7084: \$? = $ac_status" >&5
7085 if (exit $ac_status) && test -s "$ac_outfile"; then
7086 # The compiler can only warn and ignore the option if not recognized
7087 # So say no if there are warnings other than the usual output.
7088 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7091 lt_cv_prog_compiler_rtti_exceptions=yes
7092 fi
7093 fi
7094 $RM conftest*
7095
7096 fi
7097 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7098 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7099
7100 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7101 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7102 else
7103 :
7104 fi
7105
7106 fi
7107
7108
7109
7110
7111
7112
7113 lt_prog_compiler_wl=
7114 lt_prog_compiler_pic=
7115 lt_prog_compiler_static=
7116
7117 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7118 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7119
7120 if test "$GCC" = yes; then
7121 lt_prog_compiler_wl='-Wl,'
7122 lt_prog_compiler_static='-static'
7123
7124 case $host_os in
7125 aix*)
7126 # All AIX code is PIC.
7127 if test "$host_cpu" = ia64; then
7128 # AIX 5 now supports IA64 processor
7129 lt_prog_compiler_static='-Bstatic'
7130 fi
7131 ;;
7132
7133 amigaos*)
7134 case $host_cpu in
7135 powerpc)
7136 # see comment about AmigaOS4 .so support
7137 lt_prog_compiler_pic='-fPIC'
7138 ;;
7139 m68k)
7140 # FIXME: we need at least 68020 code to build shared libraries, but
7141 # adding the `-m68020' flag to GCC prevents building anything better,
7142 # like `-m68040'.
7143 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7144 ;;
7145 esac
7146 ;;
7147
7148 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7149 # PIC is the default for these OSes.
7150 ;;
7151
7152 mingw* | cygwin* | pw32* | os2* | cegcc*)
7153 # This hack is so that the source file can tell whether it is being
7154 # built for inclusion in a dll (and should export symbols for example).
7155 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7156 # (--disable-auto-import) libraries
7157 lt_prog_compiler_pic='-DDLL_EXPORT'
7158 ;;
7159
7160 darwin* | rhapsody*)
7161 # PIC is the default on this platform
7162 # Common symbols not allowed in MH_DYLIB files
7163 lt_prog_compiler_pic='-fno-common'
7164 ;;
7165
7166 hpux*)
7167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7169 # sets the default TLS model and affects inlining.
7170 case $host_cpu in
7171 hppa*64*)
7172 # +Z the default
7173 ;;
7174 *)
7175 lt_prog_compiler_pic='-fPIC'
7176 ;;
7177 esac
7178 ;;
7179
7180 interix[3-9]*)
7181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7182 # Instead, we relocate shared libraries at runtime.
7183 ;;
7184
7185 msdosdjgpp*)
7186 # Just because we use GCC doesn't mean we suddenly get shared libraries
7187 # on systems that don't support them.
7188 lt_prog_compiler_can_build_shared=no
7189 enable_shared=no
7190 ;;
7191
7192 *nto* | *qnx*)
7193 # QNX uses GNU C++, but need to define -shared option too, otherwise
7194 # it will coredump.
7195 lt_prog_compiler_pic='-fPIC -shared'
7196 ;;
7197
7198 sysv4*MP*)
7199 if test -d /usr/nec; then
7200 lt_prog_compiler_pic=-Kconform_pic
7201 fi
7202 ;;
7203
7204 *)
7205 lt_prog_compiler_pic='-fPIC'
7206 ;;
7207 esac
7208 else
7209 # PORTME Check for flag to pass linker flags through the system compiler.
7210 case $host_os in
7211 aix*)
7212 lt_prog_compiler_wl='-Wl,'
7213 if test "$host_cpu" = ia64; then
7214 # AIX 5 now supports IA64 processor
7215 lt_prog_compiler_static='-Bstatic'
7216 else
7217 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7218 fi
7219 ;;
7220
7221 mingw* | cygwin* | pw32* | os2* | cegcc*)
7222 # This hack is so that the source file can tell whether it is being
7223 # built for inclusion in a dll (and should export symbols for example).
7224 lt_prog_compiler_pic='-DDLL_EXPORT'
7225 ;;
7226
7227 hpux9* | hpux10* | hpux11*)
7228 lt_prog_compiler_wl='-Wl,'
7229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7230 # not for PA HP-UX.
7231 case $host_cpu in
7232 hppa*64*|ia64*)
7233 # +Z the default
7234 ;;
7235 *)
7236 lt_prog_compiler_pic='+Z'
7237 ;;
7238 esac
7239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7240 lt_prog_compiler_static='${wl}-a ${wl}archive'
7241 ;;
7242
7243 irix5* | irix6* | nonstopux*)
7244 lt_prog_compiler_wl='-Wl,'
7245 # PIC (with -KPIC) is the default.
7246 lt_prog_compiler_static='-non_shared'
7247 ;;
7248
7249 linux* | k*bsd*-gnu)
7250 case $cc_basename in
7251 # old Intel for x86_64 which still supported -KPIC.
7252 ecc*)
7253 lt_prog_compiler_wl='-Wl,'
7254 lt_prog_compiler_pic='-KPIC'
7255 lt_prog_compiler_static='-static'
7256 ;;
7257 # icc used to be incompatible with GCC.
7258 # ICC 10 doesn't accept -KPIC any more.
7259 icc* | ifort*)
7260 lt_prog_compiler_wl='-Wl,'
7261 lt_prog_compiler_pic='-fPIC'
7262 lt_prog_compiler_static='-static'
7263 ;;
7264 # Lahey Fortran 8.1.
7265 lf95*)
7266 lt_prog_compiler_wl='-Wl,'
7267 lt_prog_compiler_pic='--shared'
7268 lt_prog_compiler_static='--static'
7269 ;;
7270 pgcc* | pgf77* | pgf90* | pgf95*)
7271 # Portland Group compilers (*not* the Pentium gcc compiler,
7272 # which looks to be a dead project)
7273 lt_prog_compiler_wl='-Wl,'
7274 lt_prog_compiler_pic='-fpic'
7275 lt_prog_compiler_static='-Bstatic'
7276 ;;
7277 ccc*)
7278 lt_prog_compiler_wl='-Wl,'
7279 # All Alpha code is PIC.
7280 lt_prog_compiler_static='-non_shared'
7281 ;;
7282 xl*)
7283 # IBM XL C 8.0/Fortran 10.1 on PPC
7284 lt_prog_compiler_wl='-Wl,'
7285 lt_prog_compiler_pic='-qpic'
7286 lt_prog_compiler_static='-qstaticlink'
7287 ;;
7288 *)
7289 case `$CC -V 2>&1 | sed 5q` in
7290 *Sun\ C*)
7291 # Sun C 5.9
7292 lt_prog_compiler_pic='-KPIC'
7293 lt_prog_compiler_static='-Bstatic'
7294 lt_prog_compiler_wl='-Wl,'
7295 ;;
7296 *Sun\ F*)
7297 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7298 lt_prog_compiler_pic='-KPIC'
7299 lt_prog_compiler_static='-Bstatic'
7300 lt_prog_compiler_wl=''
7301 ;;
7302 esac
7303 ;;
7304 esac
7305 ;;
7306
7307 newsos6)
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7310 ;;
7311
7312 *nto* | *qnx*)
7313 # QNX uses GNU C++, but need to define -shared option too, otherwise
7314 # it will coredump.
7315 lt_prog_compiler_pic='-fPIC -shared'
7316 ;;
7317
7318 osf3* | osf4* | osf5*)
7319 lt_prog_compiler_wl='-Wl,'
7320 # All OSF/1 code is PIC.
7321 lt_prog_compiler_static='-non_shared'
7322 ;;
7323
7324 rdos*)
7325 lt_prog_compiler_static='-non_shared'
7326 ;;
7327
7328 solaris*)
7329 lt_prog_compiler_pic='-KPIC'
7330 lt_prog_compiler_static='-Bstatic'
7331 case $cc_basename in
7332 f77* | f90* | f95*)
7333 lt_prog_compiler_wl='-Qoption ld ';;
7334 *)
7335 lt_prog_compiler_wl='-Wl,';;
7336 esac
7337 ;;
7338
7339 sunos4*)
7340 lt_prog_compiler_wl='-Qoption ld '
7341 lt_prog_compiler_pic='-PIC'
7342 lt_prog_compiler_static='-Bstatic'
7343 ;;
7344
7345 sysv4 | sysv4.2uw2* | sysv4.3*)
7346 lt_prog_compiler_wl='-Wl,'
7347 lt_prog_compiler_pic='-KPIC'
7348 lt_prog_compiler_static='-Bstatic'
7349 ;;
7350
7351 sysv4*MP*)
7352 if test -d /usr/nec ;then
7353 lt_prog_compiler_pic='-Kconform_pic'
7354 lt_prog_compiler_static='-Bstatic'
7355 fi
7356 ;;
7357
7358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7359 lt_prog_compiler_wl='-Wl,'
7360 lt_prog_compiler_pic='-KPIC'
7361 lt_prog_compiler_static='-Bstatic'
7362 ;;
7363
7364 unicos*)
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_can_build_shared=no
7367 ;;
7368
7369 uts4*)
7370 lt_prog_compiler_pic='-pic'
7371 lt_prog_compiler_static='-Bstatic'
7372 ;;
7373
7374 *)
7375 lt_prog_compiler_can_build_shared=no
7376 ;;
7377 esac
7378 fi
7379
7380 case $host_os in
7381 # For platforms which do not support PIC, -DPIC is meaningless:
7382 *djgpp*)
7383 lt_prog_compiler_pic=
7384 ;;
7385 *)
7386 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7387 ;;
7388 esac
7389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7390 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7391
7392
7393
7394
7395
7396
7397 #
7398 # Check to make sure the PIC flag actually works.
7399 #
7400 if test -n "$lt_prog_compiler_pic"; then
7401 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7402 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7403 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 lt_cv_prog_compiler_pic_works=no
7407 ac_outfile=conftest.$ac_objext
7408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7409 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7410 # Insert the option either (1) after the last *FLAGS variable, or
7411 # (2) before a word containing "conftest.", or (3) at the end.
7412 # Note that $ac_compile itself does not contain backslashes and begins
7413 # with a dollar sign (not a hyphen), so the echo should work correctly.
7414 # The option is referenced via a variable to avoid confusing sed.
7415 lt_compile=`echo "$ac_compile" | $SED \
7416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7418 -e 's:$: $lt_compiler_flag:'`
7419 (eval echo "\"\$as_me:7419: $lt_compile\"" >&5)
7420 (eval "$lt_compile" 2>conftest.err)
7421 ac_status=$?
7422 cat conftest.err >&5
7423 echo "$as_me:7423: \$? = $ac_status" >&5
7424 if (exit $ac_status) && test -s "$ac_outfile"; then
7425 # The compiler can only warn and ignore the option if not recognized
7426 # So say no if there are warnings other than the usual output.
7427 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7430 lt_cv_prog_compiler_pic_works=yes
7431 fi
7432 fi
7433 $RM conftest*
7434
7435 fi
7436 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7437 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7438
7439 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7440 case $lt_prog_compiler_pic in
7441 "" | " "*) ;;
7442 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7443 esac
7444 else
7445 lt_prog_compiler_pic=
7446 lt_prog_compiler_can_build_shared=no
7447 fi
7448
7449 fi
7450
7451
7452
7453
7454
7455
7456 #
7457 # Check to make sure the static flag actually works.
7458 #
7459 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7460 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7461 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7462 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 lt_cv_prog_compiler_static_works=no
7466 save_LDFLAGS="$LDFLAGS"
7467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7470 # The linker can only warn and ignore the option if not recognized
7471 # So say no if there are warnings
7472 if test -s conftest.err; then
7473 # Append any errors to the config.log.
7474 cat conftest.err 1>&5
7475 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7477 if diff conftest.exp conftest.er2 >/dev/null; then
7478 lt_cv_prog_compiler_static_works=yes
7479 fi
7480 else
7481 lt_cv_prog_compiler_static_works=yes
7482 fi
7483 fi
7484 $RM -r conftest*
7485 LDFLAGS="$save_LDFLAGS"
7486
7487 fi
7488 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7489 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7490
7491 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7492 :
7493 else
7494 lt_prog_compiler_static=
7495 fi
7496
7497
7498
7499
7500
7501
7502
7503 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7504 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7505 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 lt_cv_prog_compiler_c_o=no
7509 $RM -r conftest 2>/dev/null
7510 mkdir conftest
7511 cd conftest
7512 mkdir out
7513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7514
7515 lt_compiler_flag="-o out/conftest2.$ac_objext"
7516 # Insert the option either (1) after the last *FLAGS variable, or
7517 # (2) before a word containing "conftest.", or (3) at the end.
7518 # Note that $ac_compile itself does not contain backslashes and begins
7519 # with a dollar sign (not a hyphen), so the echo should work correctly.
7520 lt_compile=`echo "$ac_compile" | $SED \
7521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7523 -e 's:$: $lt_compiler_flag:'`
7524 (eval echo "\"\$as_me:7524: $lt_compile\"" >&5)
7525 (eval "$lt_compile" 2>out/conftest.err)
7526 ac_status=$?
7527 cat out/conftest.err >&5
7528 echo "$as_me:7528: \$? = $ac_status" >&5
7529 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7530 then
7531 # The compiler can only warn and ignore the option if not recognized
7532 # So say no if there are warnings
7533 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7534 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7535 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7536 lt_cv_prog_compiler_c_o=yes
7537 fi
7538 fi
7539 chmod u+w . 2>&5
7540 $RM conftest*
7541 # SGI C++ compiler will create directory out/ii_files/ for
7542 # template instantiation
7543 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7544 $RM out/* && rmdir out
7545 cd ..
7546 $RM -r conftest
7547 $RM conftest*
7548
7549 fi
7550 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7551 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7552
7553
7554
7555
7556
7557
7558 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7559 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7560 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 lt_cv_prog_compiler_c_o=no
7564 $RM -r conftest 2>/dev/null
7565 mkdir conftest
7566 cd conftest
7567 mkdir out
7568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7569
7570 lt_compiler_flag="-o out/conftest2.$ac_objext"
7571 # Insert the option either (1) after the last *FLAGS variable, or
7572 # (2) before a word containing "conftest.", or (3) at the end.
7573 # Note that $ac_compile itself does not contain backslashes and begins
7574 # with a dollar sign (not a hyphen), so the echo should work correctly.
7575 lt_compile=`echo "$ac_compile" | $SED \
7576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578 -e 's:$: $lt_compiler_flag:'`
7579 (eval echo "\"\$as_me:7579: $lt_compile\"" >&5)
7580 (eval "$lt_compile" 2>out/conftest.err)
7581 ac_status=$?
7582 cat out/conftest.err >&5
7583 echo "$as_me:7583: \$? = $ac_status" >&5
7584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7585 then
7586 # The compiler can only warn and ignore the option if not recognized
7587 # So say no if there are warnings
7588 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7591 lt_cv_prog_compiler_c_o=yes
7592 fi
7593 fi
7594 chmod u+w . 2>&5
7595 $RM conftest*
7596 # SGI C++ compiler will create directory out/ii_files/ for
7597 # template instantiation
7598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7599 $RM out/* && rmdir out
7600 cd ..
7601 $RM -r conftest
7602 $RM conftest*
7603
7604 fi
7605 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7606 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7607
7608
7609
7610
7611 hard_links="nottested"
7612 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7613 # do not overwrite the value of need_locks provided by the user
7614 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7615 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7616 hard_links=yes
7617 $RM conftest*
7618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7619 touch conftest.a
7620 ln conftest.a conftest.b 2>&5 || hard_links=no
7621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7622 { echo "$as_me:$LINENO: result: $hard_links" >&5
7623 echo "${ECHO_T}$hard_links" >&6; }
7624 if test "$hard_links" = no; then
7625 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7626 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7627 need_locks=warn
7628 fi
7629 else
7630 need_locks=no
7631 fi
7632
7633
7634
7635
7636
7637
7638 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7640
7641 runpath_var=
7642 allow_undefined_flag=
7643 always_export_symbols=no
7644 archive_cmds=
7645 archive_expsym_cmds=
7646 compiler_needs_object=no
7647 enable_shared_with_static_runtimes=no
7648 export_dynamic_flag_spec=
7649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7650 hardcode_automatic=no
7651 hardcode_direct=no
7652 hardcode_direct_absolute=no
7653 hardcode_libdir_flag_spec=
7654 hardcode_libdir_flag_spec_ld=
7655 hardcode_libdir_separator=
7656 hardcode_minus_L=no
7657 hardcode_shlibpath_var=unsupported
7658 inherit_rpath=no
7659 link_all_deplibs=unknown
7660 module_cmds=
7661 module_expsym_cmds=
7662 old_archive_from_new_cmds=
7663 old_archive_from_expsyms_cmds=
7664 thread_safe_flag_spec=
7665 whole_archive_flag_spec=
7666 # include_expsyms should be a list of space-separated symbols to be *always*
7667 # included in the symbol list
7668 include_expsyms=
7669 # exclude_expsyms can be an extended regexp of symbols to exclude
7670 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7671 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7672 # as well as any symbol that contains `d'.
7673 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7674 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7675 # platforms (ab)use it in PIC code, but their linkers get confused if
7676 # the symbol is explicitly referenced. Since portable code cannot
7677 # rely on this symbol name, it's probably fine to never include it in
7678 # preloaded symbol tables.
7679 # Exclude shared library initialization/finalization symbols.
7680 extract_expsyms_cmds=
7681
7682 case $host_os in
7683 cygwin* | mingw* | pw32* | cegcc*)
7684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7685 # When not using gcc, we currently assume that we are using
7686 # Microsoft Visual C++.
7687 if test "$GCC" != yes; then
7688 with_gnu_ld=no
7689 fi
7690 ;;
7691 interix*)
7692 # we just hope/assume this is gcc and not c89 (= MSVC++)
7693 with_gnu_ld=yes
7694 ;;
7695 openbsd*)
7696 with_gnu_ld=no
7697 ;;
7698 esac
7699
7700 ld_shlibs=yes
7701 if test "$with_gnu_ld" = yes; then
7702 # If archive_cmds runs LD, not CC, wlarc should be empty
7703 wlarc='${wl}'
7704
7705 # Set some defaults for GNU ld with shared library support. These
7706 # are reset later if shared libraries are not supported. Putting them
7707 # here allows them to be overridden if necessary.
7708 runpath_var=LD_RUN_PATH
7709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7710 export_dynamic_flag_spec='${wl}--export-dynamic'
7711 # ancient GNU ld didn't support --whole-archive et. al.
7712 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7713 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7714 else
7715 whole_archive_flag_spec=
7716 fi
7717 supports_anon_versioning=no
7718 case `$LD -v 2>&1` in
7719 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7720 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7721 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7722 *\ 2.11.*) ;; # other 2.11 versions
7723 *) supports_anon_versioning=yes ;;
7724 esac
7725
7726 # See if GNU ld supports shared libraries.
7727 case $host_os in
7728 aix[3-9]*)
7729 # On AIX/PPC, the GNU linker is very broken
7730 if test "$host_cpu" != ia64; then
7731 ld_shlibs=no
7732 cat <<_LT_EOF 1>&2
7733
7734 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7735 *** to be unable to reliably create shared libraries on AIX.
7736 *** Therefore, libtool is disabling shared libraries support. If you
7737 *** really care for shared libraries, you may want to modify your PATH
7738 *** so that a non-GNU linker is found, and then restart.
7739
7740 _LT_EOF
7741 fi
7742 ;;
7743
7744 amigaos*)
7745 case $host_cpu in
7746 powerpc)
7747 # see comment about AmigaOS4 .so support
7748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749 archive_expsym_cmds=''
7750 ;;
7751 m68k)
7752 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)'
7753 hardcode_libdir_flag_spec='-L$libdir'
7754 hardcode_minus_L=yes
7755 ;;
7756 esac
7757 ;;
7758
7759 beos*)
7760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7761 allow_undefined_flag=unsupported
7762 # Joseph Beckenbach <[email protected]> says some releases of gcc
7763 # support --undefined. This deserves some investigation. FIXME
7764 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7765 else
7766 ld_shlibs=no
7767 fi
7768 ;;
7769
7770 cygwin* | mingw* | pw32* | cegcc*)
7771 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7772 # as there is no search path for DLLs.
7773 hardcode_libdir_flag_spec='-L$libdir'
7774 allow_undefined_flag=unsupported
7775 always_export_symbols=no
7776 enable_shared_with_static_runtimes=yes
7777 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7778
7779 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7781 # If the export-symbols file already is a .def file (1st line
7782 # is EXPORTS), use it as is; otherwise, prepend...
7783 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7784 cp $export_symbols $output_objdir/$soname.def;
7785 else
7786 echo EXPORTS > $output_objdir/$soname.def;
7787 cat $export_symbols >> $output_objdir/$soname.def;
7788 fi~
7789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7790 else
7791 ld_shlibs=no
7792 fi
7793 ;;
7794
7795 interix[3-9]*)
7796 hardcode_direct=no
7797 hardcode_shlibpath_var=no
7798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7799 export_dynamic_flag_spec='${wl}-E'
7800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7801 # Instead, shared libraries are loaded at an image base (0x10000000 by
7802 # default) and relocated if they conflict, which is a slow very memory
7803 # consuming and fragmenting process. To avoid this, we pick a random,
7804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7805 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7806 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7807 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'
7808 ;;
7809
7810 gnu* | linux* | tpf* | k*bsd*-gnu)
7811 tmp_diet=no
7812 if test "$host_os" = linux-dietlibc; then
7813 case $cc_basename in
7814 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7815 esac
7816 fi
7817 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7818 && test "$tmp_diet" = no
7819 then
7820 tmp_addflag=
7821 tmp_sharedflag='-shared'
7822 case $cc_basename,$host_cpu in
7823 pgcc*) # Portland Group C compiler
7824 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'
7825 tmp_addflag=' $pic_flag'
7826 ;;
7827 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7828 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'
7829 tmp_addflag=' $pic_flag -Mnomain' ;;
7830 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7831 tmp_addflag=' -i_dynamic' ;;
7832 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7833 tmp_addflag=' -i_dynamic -nofor_main' ;;
7834 ifc* | ifort*) # Intel Fortran compiler
7835 tmp_addflag=' -nofor_main' ;;
7836 lf95*) # Lahey Fortran 8.1
7837 whole_archive_flag_spec=
7838 tmp_sharedflag='--shared' ;;
7839 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7840 tmp_sharedflag='-qmkshrobj'
7841 tmp_addflag= ;;
7842 esac
7843 case `$CC -V 2>&1 | sed 5q` in
7844 *Sun\ C*) # Sun C 5.9
7845 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'
7846 compiler_needs_object=yes
7847 tmp_sharedflag='-G' ;;
7848 *Sun\ F*) # Sun Fortran 8.3
7849 tmp_sharedflag='-G' ;;
7850 esac
7851 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7852
7853 if test "x$supports_anon_versioning" = xyes; then
7854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7856 echo "local: *; };" >> $output_objdir/$libname.ver~
7857 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7858 fi
7859
7860 case $cc_basename in
7861 xlf*)
7862 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7863 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7864 hardcode_libdir_flag_spec=
7865 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7866 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7867 if test "x$supports_anon_versioning" = xyes; then
7868 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7870 echo "local: *; };" >> $output_objdir/$libname.ver~
7871 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7872 fi
7873 ;;
7874 esac
7875 else
7876 ld_shlibs=no
7877 fi
7878 ;;
7879
7880 netbsd*)
7881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7882 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7883 wlarc=
7884 else
7885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7887 fi
7888 ;;
7889
7890 solaris*)
7891 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7892 ld_shlibs=no
7893 cat <<_LT_EOF 1>&2
7894
7895 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7896 *** create shared libraries on Solaris systems. Therefore, libtool
7897 *** is disabling shared libraries support. We urge you to upgrade GNU
7898 *** binutils to release 2.9.1 or newer. Another option is to modify
7899 *** your PATH or compiler configuration so that the native linker is
7900 *** used, and then restart.
7901
7902 _LT_EOF
7903 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7906 else
7907 ld_shlibs=no
7908 fi
7909 ;;
7910
7911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7912 case `$LD -v 2>&1` in
7913 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7914 ld_shlibs=no
7915 cat <<_LT_EOF 1>&2
7916
7917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7918 *** reliably create shared libraries on SCO systems. Therefore, libtool
7919 *** is disabling shared libraries support. We urge you to upgrade GNU
7920 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7921 *** your PATH or compiler configuration so that the native linker is
7922 *** used, and then restart.
7923
7924 _LT_EOF
7925 ;;
7926 *)
7927 # For security reasons, it is highly recommended that you always
7928 # use absolute paths for naming shared libraries, and exclude the
7929 # DT_RUNPATH tag from executables and libraries. But doing so
7930 # requires that you compile everything twice, which is a pain.
7931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7935 else
7936 ld_shlibs=no
7937 fi
7938 ;;
7939 esac
7940 ;;
7941
7942 sunos4*)
7943 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7944 wlarc=
7945 hardcode_direct=yes
7946 hardcode_shlibpath_var=no
7947 ;;
7948
7949 *)
7950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7953 else
7954 ld_shlibs=no
7955 fi
7956 ;;
7957 esac
7958
7959 if test "$ld_shlibs" = no; then
7960 runpath_var=
7961 hardcode_libdir_flag_spec=
7962 export_dynamic_flag_spec=
7963 whole_archive_flag_spec=
7964 fi
7965 else
7966 # PORTME fill in a description of your system's linker (not GNU ld)
7967 case $host_os in
7968 aix3*)
7969 allow_undefined_flag=unsupported
7970 always_export_symbols=yes
7971 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'
7972 # Note: this linker hardcodes the directories in LIBPATH if there
7973 # are no directories specified by -L.
7974 hardcode_minus_L=yes
7975 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7976 # Neither direct hardcoding nor static linking is supported with a
7977 # broken collect2.
7978 hardcode_direct=unsupported
7979 fi
7980 ;;
7981
7982 aix[4-9]*)
7983 if test "$host_cpu" = ia64; then
7984 # On IA64, the linker does run time linking by default, so we don't
7985 # have to do anything special.
7986 aix_use_runtimelinking=no
7987 exp_sym_flag='-Bexport'
7988 no_entry_flag=""
7989 else
7990 # If we're using GNU nm, then we don't want the "-C" option.
7991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7992 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7993 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'
7994 else
7995 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'
7996 fi
7997 aix_use_runtimelinking=no
7998
7999 # Test if we are trying to use run time linking or normal
8000 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8001 # need to do runtime linking.
8002 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8003 for ld_flag in $LDFLAGS; do
8004 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8005 aix_use_runtimelinking=yes
8006 break
8007 fi
8008 done
8009 ;;
8010 esac
8011
8012 exp_sym_flag='-bexport'
8013 no_entry_flag='-bnoentry'
8014 fi
8015
8016 # When large executables or shared objects are built, AIX ld can
8017 # have problems creating the table of contents. If linking a library
8018 # or program results in "error TOC overflow" add -mminimal-toc to
8019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8021
8022 archive_cmds=''
8023 hardcode_direct=yes
8024 hardcode_direct_absolute=yes
8025 hardcode_libdir_separator=':'
8026 link_all_deplibs=yes
8027 file_list_spec='${wl}-f,'
8028
8029 if test "$GCC" = yes; then
8030 case $host_os in aix4.[012]|aix4.[012].*)
8031 # We only want to do this on AIX 4.2 and lower, the check
8032 # below for broken collect2 doesn't work under 4.3+
8033 collect2name=`${CC} -print-prog-name=collect2`
8034 if test -f "$collect2name" &&
8035 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8036 then
8037 # We have reworked collect2
8038 :
8039 else
8040 # We have old collect2
8041 hardcode_direct=unsupported
8042 # It fails to find uninstalled libraries when the uninstalled
8043 # path is not listed in the libpath. Setting hardcode_minus_L
8044 # to unsupported forces relinking
8045 hardcode_minus_L=yes
8046 hardcode_libdir_flag_spec='-L$libdir'
8047 hardcode_libdir_separator=
8048 fi
8049 ;;
8050 esac
8051 shared_flag='-shared'
8052 if test "$aix_use_runtimelinking" = yes; then
8053 shared_flag="$shared_flag "'${wl}-G'
8054 fi
8055 else
8056 # not using gcc
8057 if test "$host_cpu" = ia64; then
8058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8059 # chokes on -Wl,-G. The following line is correct:
8060 shared_flag='-G'
8061 else
8062 if test "$aix_use_runtimelinking" = yes; then
8063 shared_flag='${wl}-G'
8064 else
8065 shared_flag='${wl}-bM:SRE'
8066 fi
8067 fi
8068 fi
8069
8070 export_dynamic_flag_spec='${wl}-bexpall'
8071 # It seems that -bexpall does not export symbols beginning with
8072 # underscore (_), so it is better to generate a list of symbols to export.
8073 always_export_symbols=yes
8074 if test "$aix_use_runtimelinking" = yes; then
8075 # Warning - without using the other runtime loading flags (-brtl),
8076 # -berok will link without error, but may produce a broken library.
8077 allow_undefined_flag='-berok'
8078 # Determine the default libpath from the value encoded in an
8079 # empty executable.
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086
8087 int
8088 main ()
8089 {
8090
8091 ;
8092 return 0;
8093 }
8094 _ACEOF
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (ac_try="$ac_link"
8097 case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100 esac
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_link") 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest$ac_exeext &&
8112 $as_test_x conftest$ac_exeext; then
8113
8114 lt_aix_libpath_sed='
8115 /Import File Strings/,/^$/ {
8116 /^0/ {
8117 s/^0 *\(.*\)$/\1/
8118 p
8119 }
8120 }'
8121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8122 # Check for a 64-bit object if we didn't find anything.
8123 if test -z "$aix_libpath"; then
8124 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8125 fi
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130
8131 fi
8132
8133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134 conftest$ac_exeext conftest.$ac_ext
8135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8136
8137 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8138 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"
8139 else
8140 if test "$host_cpu" = ia64; then
8141 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8142 allow_undefined_flag="-z nodefs"
8143 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"
8144 else
8145 # Determine the default libpath from the value encoded in an
8146 # empty executable.
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153
8154 int
8155 main ()
8156 {
8157
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_link") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest$ac_exeext &&
8179 $as_test_x conftest$ac_exeext; then
8180
8181 lt_aix_libpath_sed='
8182 /Import File Strings/,/^$/ {
8183 /^0/ {
8184 s/^0 *\(.*\)$/\1/
8185 p
8186 }
8187 }'
8188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189 # Check for a 64-bit object if we didn't find anything.
8190 if test -z "$aix_libpath"; then
8191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8192 fi
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197
8198 fi
8199
8200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8201 conftest$ac_exeext conftest.$ac_ext
8202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8203
8204 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8205 # Warning - without using the other run time loading flags,
8206 # -berok will link without error, but may produce a broken library.
8207 no_undefined_flag=' ${wl}-bernotok'
8208 allow_undefined_flag=' ${wl}-berok'
8209 # Exported symbols can be pulled into shared objects from archives
8210 whole_archive_flag_spec='$convenience'
8211 archive_cmds_need_lc=yes
8212 # This is similar to how AIX traditionally builds its shared libraries.
8213 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'
8214 fi
8215 fi
8216 ;;
8217
8218 amigaos*)
8219 case $host_cpu in
8220 powerpc)
8221 # see comment about AmigaOS4 .so support
8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 archive_expsym_cmds=''
8224 ;;
8225 m68k)
8226 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)'
8227 hardcode_libdir_flag_spec='-L$libdir'
8228 hardcode_minus_L=yes
8229 ;;
8230 esac
8231 ;;
8232
8233 bsdi[45]*)
8234 export_dynamic_flag_spec=-rdynamic
8235 ;;
8236
8237 cygwin* | mingw* | pw32* | cegcc*)
8238 # When not using gcc, we currently assume that we are using
8239 # Microsoft Visual C++.
8240 # hardcode_libdir_flag_spec is actually meaningless, as there is
8241 # no search path for DLLs.
8242 hardcode_libdir_flag_spec=' '
8243 allow_undefined_flag=unsupported
8244 # Tell ltmain to make .lib files, not .a files.
8245 libext=lib
8246 # Tell ltmain to make .dll files, not .so files.
8247 shrext_cmds=".dll"
8248 # FIXME: Setting linknames here is a bad hack.
8249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8250 # The linker will automatically build a .lib file if we build a DLL.
8251 old_archive_from_new_cmds='true'
8252 # FIXME: Should let the user specify the lib program.
8253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8254 fix_srcfile_path='`cygpath -w "$srcfile"`'
8255 enable_shared_with_static_runtimes=yes
8256 ;;
8257
8258 darwin* | rhapsody*)
8259
8260
8261 archive_cmds_need_lc=no
8262 hardcode_direct=no
8263 hardcode_automatic=yes
8264 hardcode_shlibpath_var=unsupported
8265 whole_archive_flag_spec=''
8266 link_all_deplibs=yes
8267 allow_undefined_flag="$_lt_dar_allow_undefined"
8268 case $cc_basename in
8269 ifort*) _lt_dar_can_shared=yes ;;
8270 *) _lt_dar_can_shared=$GCC ;;
8271 esac
8272 if test "$_lt_dar_can_shared" = "yes"; then
8273 output_verbose_link_cmd=echo
8274 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8275 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8276 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}"
8277 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}"
8278
8279 else
8280 ld_shlibs=no
8281 fi
8282
8283 ;;
8284
8285 dgux*)
8286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8287 hardcode_libdir_flag_spec='-L$libdir'
8288 hardcode_shlibpath_var=no
8289 ;;
8290
8291 freebsd1*)
8292 ld_shlibs=no
8293 ;;
8294
8295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8296 # support. Future versions do this automatically, but an explicit c++rt0.o
8297 # does not break anything, and helps significantly (at the cost of a little
8298 # extra space).
8299 freebsd2.2*)
8300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8301 hardcode_libdir_flag_spec='-R$libdir'
8302 hardcode_direct=yes
8303 hardcode_shlibpath_var=no
8304 ;;
8305
8306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8307 freebsd2*)
8308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8309 hardcode_direct=yes
8310 hardcode_minus_L=yes
8311 hardcode_shlibpath_var=no
8312 ;;
8313
8314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8315 freebsd* | dragonfly*)
8316 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8317 hardcode_libdir_flag_spec='-R$libdir'
8318 hardcode_direct=yes
8319 hardcode_shlibpath_var=no
8320 ;;
8321
8322 hpux9*)
8323 if test "$GCC" = yes; then
8324 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'
8325 else
8326 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'
8327 fi
8328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8329 hardcode_libdir_separator=:
8330 hardcode_direct=yes
8331
8332 # hardcode_minus_L: Not really in the search PATH,
8333 # but as the default location of the library.
8334 hardcode_minus_L=yes
8335 export_dynamic_flag_spec='${wl}-E'
8336 ;;
8337
8338 hpux10*)
8339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8341 else
8342 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8343 fi
8344 if test "$with_gnu_ld" = no; then
8345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8346 hardcode_libdir_flag_spec_ld='+b $libdir'
8347 hardcode_libdir_separator=:
8348 hardcode_direct=yes
8349 hardcode_direct_absolute=yes
8350 export_dynamic_flag_spec='${wl}-E'
8351 # hardcode_minus_L: Not really in the search PATH,
8352 # but as the default location of the library.
8353 hardcode_minus_L=yes
8354 fi
8355 ;;
8356
8357 hpux11*)
8358 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8359 case $host_cpu in
8360 hppa*64*)
8361 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8362 ;;
8363 ia64*)
8364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8365 ;;
8366 *)
8367 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8368 ;;
8369 esac
8370 else
8371 case $host_cpu in
8372 hppa*64*)
8373 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8374 ;;
8375 ia64*)
8376 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8377 ;;
8378 *)
8379 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8380 ;;
8381 esac
8382 fi
8383 if test "$with_gnu_ld" = no; then
8384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8385 hardcode_libdir_separator=:
8386
8387 case $host_cpu in
8388 hppa*64*|ia64*)
8389 hardcode_direct=no
8390 hardcode_shlibpath_var=no
8391 ;;
8392 *)
8393 hardcode_direct=yes
8394 hardcode_direct_absolute=yes
8395 export_dynamic_flag_spec='${wl}-E'
8396
8397 # hardcode_minus_L: Not really in the search PATH,
8398 # but as the default location of the library.
8399 hardcode_minus_L=yes
8400 ;;
8401 esac
8402 fi
8403 ;;
8404
8405 irix5* | irix6* | nonstopux*)
8406 if test "$GCC" = yes; then
8407 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'
8408 # Try to use the -exported_symbol ld option, if it does not
8409 # work, assume that -exports_file does not work either and
8410 # implicitly export all symbols.
8411 save_LDFLAGS="$LDFLAGS"
8412 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8413 cat >conftest.$ac_ext <<_ACEOF
8414 int foo(void) {}
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (ac_try="$ac_link"
8418 case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_link") 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest$ac_exeext &&
8433 $as_test_x conftest$ac_exeext; then
8434 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'
8435
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440
8441 fi
8442
8443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8444 conftest$ac_exeext conftest.$ac_ext
8445 LDFLAGS="$save_LDFLAGS"
8446 else
8447 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'
8448 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'
8449 fi
8450 archive_cmds_need_lc='no'
8451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8452 hardcode_libdir_separator=:
8453 inherit_rpath=yes
8454 link_all_deplibs=yes
8455 ;;
8456
8457 netbsd*)
8458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8460 else
8461 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8462 fi
8463 hardcode_libdir_flag_spec='-R$libdir'
8464 hardcode_direct=yes
8465 hardcode_shlibpath_var=no
8466 ;;
8467
8468 newsos6)
8469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_direct=yes
8471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8472 hardcode_libdir_separator=:
8473 hardcode_shlibpath_var=no
8474 ;;
8475
8476 *nto* | *qnx*)
8477 ;;
8478
8479 openbsd*)
8480 if test -f /usr/libexec/ld.so; then
8481 hardcode_direct=yes
8482 hardcode_shlibpath_var=no
8483 hardcode_direct_absolute=yes
8484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8486 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8488 export_dynamic_flag_spec='${wl}-E'
8489 else
8490 case $host_os in
8491 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8493 hardcode_libdir_flag_spec='-R$libdir'
8494 ;;
8495 *)
8496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8498 ;;
8499 esac
8500 fi
8501 else
8502 ld_shlibs=no
8503 fi
8504 ;;
8505
8506 os2*)
8507 hardcode_libdir_flag_spec='-L$libdir'
8508 hardcode_minus_L=yes
8509 allow_undefined_flag=unsupported
8510 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'
8511 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8512 ;;
8513
8514 osf3*)
8515 if test "$GCC" = yes; then
8516 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8517 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'
8518 else
8519 allow_undefined_flag=' -expect_unresolved \*'
8520 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'
8521 fi
8522 archive_cmds_need_lc='no'
8523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8524 hardcode_libdir_separator=:
8525 ;;
8526
8527 osf4* | osf5*) # as osf3* with the addition of -msym flag
8528 if test "$GCC" = yes; then
8529 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8530 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'
8531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532 else
8533 allow_undefined_flag=' -expect_unresolved \*'
8534 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'
8535 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~
8536 $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'
8537
8538 # Both c and cxx compiler support -rpath directly
8539 hardcode_libdir_flag_spec='-rpath $libdir'
8540 fi
8541 archive_cmds_need_lc='no'
8542 hardcode_libdir_separator=:
8543 ;;
8544
8545 solaris*)
8546 no_undefined_flag=' -z defs'
8547 if test "$GCC" = yes; then
8548 wlarc='${wl}'
8549 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8551 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8552 else
8553 case `$CC -V 2>&1` in
8554 *"Compilers 5.0"*)
8555 wlarc=''
8556 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8558 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8559 ;;
8560 *)
8561 wlarc='${wl}'
8562 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8564 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8565 ;;
8566 esac
8567 fi
8568 hardcode_libdir_flag_spec='-R$libdir'
8569 hardcode_shlibpath_var=no
8570 case $host_os in
8571 solaris2.[0-5] | solaris2.[0-5].*) ;;
8572 *)
8573 # The compiler driver will combine and reorder linker options,
8574 # but understands `-z linker_flag'. GCC discards it without `$wl',
8575 # but is careful enough not to reorder.
8576 # Supported since Solaris 2.6 (maybe 2.5.1?)
8577 if test "$GCC" = yes; then
8578 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8579 else
8580 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8581 fi
8582 ;;
8583 esac
8584 link_all_deplibs=yes
8585 ;;
8586
8587 sunos4*)
8588 if test "x$host_vendor" = xsequent; then
8589 # Use $CC to link under sequent, because it throws in some extra .o
8590 # files that make .init and .fini sections work.
8591 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8592 else
8593 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8594 fi
8595 hardcode_libdir_flag_spec='-L$libdir'
8596 hardcode_direct=yes
8597 hardcode_minus_L=yes
8598 hardcode_shlibpath_var=no
8599 ;;
8600
8601 sysv4)
8602 case $host_vendor in
8603 sni)
8604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8605 hardcode_direct=yes # is this really true???
8606 ;;
8607 siemens)
8608 ## LD is ld it makes a PLAMLIB
8609 ## CC just makes a GrossModule.
8610 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8611 reload_cmds='$CC -r -o $output$reload_objs'
8612 hardcode_direct=no
8613 ;;
8614 motorola)
8615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8617 ;;
8618 esac
8619 runpath_var='LD_RUN_PATH'
8620 hardcode_shlibpath_var=no
8621 ;;
8622
8623 sysv4.3*)
8624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8625 hardcode_shlibpath_var=no
8626 export_dynamic_flag_spec='-Bexport'
8627 ;;
8628
8629 sysv4*MP*)
8630 if test -d /usr/nec; then
8631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632 hardcode_shlibpath_var=no
8633 runpath_var=LD_RUN_PATH
8634 hardcode_runpath_var=yes
8635 ld_shlibs=yes
8636 fi
8637 ;;
8638
8639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8640 no_undefined_flag='${wl}-z,text'
8641 archive_cmds_need_lc=no
8642 hardcode_shlibpath_var=no
8643 runpath_var='LD_RUN_PATH'
8644
8645 if test "$GCC" = yes; then
8646 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8647 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8648 else
8649 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8650 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8651 fi
8652 ;;
8653
8654 sysv5* | sco3.2v5* | sco5v6*)
8655 # Note: We can NOT use -z defs as we might desire, because we do not
8656 # link with -lc, and that would cause any symbols used from libc to
8657 # always be unresolved, which means just about no library would
8658 # ever link correctly. If we're not using GNU ld we use -z text
8659 # though, which does catch some bad symbols but isn't as heavy-handed
8660 # as -z defs.
8661 no_undefined_flag='${wl}-z,text'
8662 allow_undefined_flag='${wl}-z,nodefs'
8663 archive_cmds_need_lc=no
8664 hardcode_shlibpath_var=no
8665 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8666 hardcode_libdir_separator=':'
8667 link_all_deplibs=yes
8668 export_dynamic_flag_spec='${wl}-Bexport'
8669 runpath_var='LD_RUN_PATH'
8670
8671 if test "$GCC" = yes; then
8672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8674 else
8675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 fi
8678 ;;
8679
8680 uts4*)
8681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 hardcode_shlibpath_var=no
8684 ;;
8685
8686 *)
8687 ld_shlibs=no
8688 ;;
8689 esac
8690
8691 if test x$host_vendor = xsni; then
8692 case $host in
8693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8694 export_dynamic_flag_spec='${wl}-Blargedynsym'
8695 ;;
8696 esac
8697 fi
8698 fi
8699
8700 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8701 echo "${ECHO_T}$ld_shlibs" >&6; }
8702 test "$ld_shlibs" = no && can_build_shared=no
8703
8704 with_gnu_ld=$with_gnu_ld
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 #
8721 # Do we need to explicitly link libc?
8722 #
8723 case "x$archive_cmds_need_lc" in
8724 x|xyes)
8725 # Assume -lc should be added
8726 archive_cmds_need_lc=yes
8727
8728 if test "$enable_shared" = yes && test "$GCC" = yes; then
8729 case $archive_cmds in
8730 *'~'*)
8731 # FIXME: we may have to deal with multi-command sequences.
8732 ;;
8733 '$CC '*)
8734 # Test whether the compiler implicitly links with -lc since on some
8735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8736 # to ld, don't add -lc before -lgcc.
8737 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8739 $RM conftest*
8740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } 2>conftest.err; then
8747 soname=conftest
8748 lib=conftest
8749 libobjs=conftest.$ac_objext
8750 deplibs=
8751 wl=$lt_prog_compiler_wl
8752 pic_flag=$lt_prog_compiler_pic
8753 compiler_flags=-v
8754 linker_flags=-v
8755 verstring=
8756 output_objdir=.
8757 libname=conftest
8758 lt_save_allow_undefined_flag=$allow_undefined_flag
8759 allow_undefined_flag=
8760 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }
8765 then
8766 archive_cmds_need_lc=no
8767 else
8768 archive_cmds_need_lc=yes
8769 fi
8770 allow_undefined_flag=$lt_save_allow_undefined_flag
8771 else
8772 cat conftest.err 1>&5
8773 fi
8774 $RM conftest*
8775 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8776 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8777 ;;
8778 esac
8779 fi
8780 ;;
8781 esac
8782
8783
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 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8941
8942 if test "$GCC" = yes; then
8943 case $host_os in
8944 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8945 *) lt_awk_arg="/^libraries:/" ;;
8946 esac
8947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8949 # if the path contains ";" then we assume it to be the separator
8950 # otherwise default to the standard path separator (i.e. ":") - it is
8951 # assumed that no part of a normal pathname contains ";" but that should
8952 # okay in the real world where ";" in dirpaths is itself problematic.
8953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8954 else
8955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8956 fi
8957 # Ok, now we have the path, separated by spaces, we can step through it
8958 # and add multilib dir if necessary.
8959 lt_tmp_lt_search_path_spec=
8960 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8961 for lt_sys_path in $lt_search_path_spec; do
8962 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8964 else
8965 test -d "$lt_sys_path" && \
8966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8967 fi
8968 done
8969 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8970 BEGIN {RS=" "; FS="/|\n";} {
8971 lt_foo="";
8972 lt_count=0;
8973 for (lt_i = NF; lt_i > 0; lt_i--) {
8974 if ($lt_i != "" && $lt_i != ".") {
8975 if ($lt_i == "..") {
8976 lt_count++;
8977 } else {
8978 if (lt_count == 0) {
8979 lt_foo="/" $lt_i lt_foo;
8980 } else {
8981 lt_count--;
8982 }
8983 }
8984 }
8985 }
8986 if (lt_foo != "") { lt_freq[lt_foo]++; }
8987 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8988 }'`
8989 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8990 else
8991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8992 fi
8993 library_names_spec=
8994 libname_spec='lib$name'
8995 soname_spec=
8996 shrext_cmds=".so"
8997 postinstall_cmds=
8998 postuninstall_cmds=
8999 finish_cmds=
9000 finish_eval=
9001 shlibpath_var=
9002 shlibpath_overrides_runpath=unknown
9003 version_type=none
9004 dynamic_linker="$host_os ld.so"
9005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9006 need_lib_prefix=unknown
9007 hardcode_into_libs=no
9008
9009 # when you set need_version to no, make sure it does not cause -set_version
9010 # flags to be left without arguments
9011 need_version=unknown
9012
9013 case $host_os in
9014 aix3*)
9015 version_type=linux
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9017 shlibpath_var=LIBPATH
9018
9019 # AIX 3 has no versioning support, so we append a major version to the name.
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 ;;
9022
9023 aix[4-9]*)
9024 version_type=linux
9025 need_lib_prefix=no
9026 need_version=no
9027 hardcode_into_libs=yes
9028 if test "$host_cpu" = ia64; then
9029 # AIX 5 supports IA64
9030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 else
9033 # With GCC up to 2.95.x, collect2 would create an import file
9034 # for dependence libraries. The import file would start with
9035 # the line `#! .'. This would cause the generated library to
9036 # depend on `.', always an invalid library. This was fixed in
9037 # development snapshots of GCC prior to 3.0.
9038 case $host_os in
9039 aix4 | aix4.[01] | aix4.[01].*)
9040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9041 echo ' yes '
9042 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9043 :
9044 else
9045 can_build_shared=no
9046 fi
9047 ;;
9048 esac
9049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9050 # soname into executable. Probably we can add versioning support to
9051 # collect2, so additional links can be useful in future.
9052 if test "$aix_use_runtimelinking" = yes; then
9053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9054 # instead of lib<name>.a to let people know that these are not
9055 # typical AIX shared libraries.
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 else
9058 # We preserve .a as extension for shared libraries through AIX4.2
9059 # and later when we are not doing run time linking.
9060 library_names_spec='${libname}${release}.a $libname.a'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 fi
9063 shlibpath_var=LIBPATH
9064 fi
9065 ;;
9066
9067 amigaos*)
9068 case $host_cpu in
9069 powerpc)
9070 # Since July 2007 AmigaOS4 officially supports .so libraries.
9071 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 ;;
9074 m68k)
9075 library_names_spec='$libname.ixlibrary $libname.a'
9076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9077 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'
9078 ;;
9079 esac
9080 ;;
9081
9082 beos*)
9083 library_names_spec='${libname}${shared_ext}'
9084 dynamic_linker="$host_os ld.so"
9085 shlibpath_var=LIBRARY_PATH
9086 ;;
9087
9088 bsdi[45]*)
9089 version_type=linux
9090 need_version=no
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9097 # the default ld.so.conf also contains /usr/contrib/lib and
9098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9099 # libtool to hard-code these into programs
9100 ;;
9101
9102 cygwin* | mingw* | pw32* | cegcc*)
9103 version_type=windows
9104 shrext_cmds=".dll"
9105 need_version=no
9106 need_lib_prefix=no
9107
9108 case $GCC,$host_os in
9109 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9110 library_names_spec='$libname.dll.a'
9111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9112 postinstall_cmds='base_file=`basename \${file}`~
9113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9114 dldir=$destdir/`dirname \$dlpath`~
9115 test -d \$dldir || mkdir -p \$dldir~
9116 $install_prog $dir/$dlname \$dldir/$dlname~
9117 chmod a+x \$dldir/$dlname~
9118 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9119 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9120 fi'
9121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9122 dlpath=$dir/\$dldll~
9123 $RM \$dlpath'
9124 shlibpath_overrides_runpath=yes
9125
9126 case $host_os in
9127 cygwin*)
9128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9129 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9130 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9131 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9132 ;;
9133 mingw* | cegcc*)
9134 # MinGW DLLs use traditional 'lib' prefix
9135 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9136 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9137 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9138 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9139 # It is most probably a Windows format PATH printed by
9140 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9141 # path with ; separators, and with drive letters. We can handle the
9142 # drive letters (cygwin fileutils understands them), so leave them,
9143 # especially as we might pass files found there to a mingw objdump,
9144 # which wouldn't understand a cygwinified path. Ahh.
9145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9146 else
9147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9148 fi
9149 ;;
9150 pw32*)
9151 # pw32 DLLs use 'pw' prefix rather than 'lib'
9152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153 ;;
9154 esac
9155 ;;
9156
9157 *)
9158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9159 ;;
9160 esac
9161 dynamic_linker='Win32 ld.exe'
9162 # FIXME: first we should search . and the directory the executable is in
9163 shlibpath_var=PATH
9164 ;;
9165
9166 darwin* | rhapsody*)
9167 dynamic_linker="$host_os dyld"
9168 version_type=darwin
9169 need_lib_prefix=no
9170 need_version=no
9171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9172 soname_spec='${libname}${release}${major}$shared_ext'
9173 shlibpath_overrides_runpath=yes
9174 shlibpath_var=DYLD_LIBRARY_PATH
9175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9176
9177 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9179 ;;
9180
9181 dgux*)
9182 version_type=linux
9183 need_lib_prefix=no
9184 need_version=no
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9186 soname_spec='${libname}${release}${shared_ext}$major'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 ;;
9189
9190 freebsd1*)
9191 dynamic_linker=no
9192 ;;
9193
9194 freebsd* | dragonfly*)
9195 # DragonFly does not have aout. When/if they implement a new
9196 # versioning mechanism, adjust this.
9197 if test -x /usr/bin/objformat; then
9198 objformat=`/usr/bin/objformat`
9199 else
9200 case $host_os in
9201 freebsd[123]*) objformat=aout ;;
9202 *) objformat=elf ;;
9203 esac
9204 fi
9205 version_type=freebsd-$objformat
9206 case $version_type in
9207 freebsd-elf*)
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9209 need_version=no
9210 need_lib_prefix=no
9211 ;;
9212 freebsd-*)
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9214 need_version=yes
9215 ;;
9216 esac
9217 shlibpath_var=LD_LIBRARY_PATH
9218 case $host_os in
9219 freebsd2*)
9220 shlibpath_overrides_runpath=yes
9221 ;;
9222 freebsd3.[01]* | freebsdelf3.[01]*)
9223 shlibpath_overrides_runpath=yes
9224 hardcode_into_libs=yes
9225 ;;
9226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9228 shlibpath_overrides_runpath=no
9229 hardcode_into_libs=yes
9230 ;;
9231 *) # from 4.6 on, and DragonFly
9232 shlibpath_overrides_runpath=yes
9233 hardcode_into_libs=yes
9234 ;;
9235 esac
9236 ;;
9237
9238 gnu*)
9239 version_type=linux
9240 need_lib_prefix=no
9241 need_version=no
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 hardcode_into_libs=yes
9246 ;;
9247
9248 hpux9* | hpux10* | hpux11*)
9249 # Give a soname corresponding to the major version so that dld.sl refuses to
9250 # link against other versions.
9251 version_type=sunos
9252 need_lib_prefix=no
9253 need_version=no
9254 case $host_cpu in
9255 ia64*)
9256 shrext_cmds='.so'
9257 hardcode_into_libs=yes
9258 dynamic_linker="$host_os dld.so"
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 if test "X$HPUX_IA64_MODE" = X32; then
9264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9265 else
9266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9267 fi
9268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9269 ;;
9270 hppa*64*)
9271 shrext_cmds='.sl'
9272 hardcode_into_libs=yes
9273 dynamic_linker="$host_os dld.sl"
9274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9280 ;;
9281 *)
9282 shrext_cmds='.sl'
9283 dynamic_linker="$host_os dld.sl"
9284 shlibpath_var=SHLIB_PATH
9285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 ;;
9289 esac
9290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9291 postinstall_cmds='chmod 555 $lib'
9292 ;;
9293
9294 interix[3-9]*)
9295 version_type=linux
9296 need_lib_prefix=no
9297 need_version=no
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=no
9303 hardcode_into_libs=yes
9304 ;;
9305
9306 irix5* | irix6* | nonstopux*)
9307 case $host_os in
9308 nonstopux*) version_type=nonstopux ;;
9309 *)
9310 if test "$lt_cv_prog_gnu_ld" = yes; then
9311 version_type=linux
9312 else
9313 version_type=irix
9314 fi ;;
9315 esac
9316 need_lib_prefix=no
9317 need_version=no
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9320 case $host_os in
9321 irix5* | nonstopux*)
9322 libsuff= shlibsuff=
9323 ;;
9324 *)
9325 case $LD in # libtool.m4 will add one of these switches to LD
9326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9327 libsuff= shlibsuff= libmagic=32-bit;;
9328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9329 libsuff=32 shlibsuff=N32 libmagic=N32;;
9330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9332 *) libsuff= shlibsuff= libmagic=never-match;;
9333 esac
9334 ;;
9335 esac
9336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9337 shlibpath_overrides_runpath=no
9338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9340 hardcode_into_libs=yes
9341 ;;
9342
9343 # No shared lib support for Linux oldld, aout, or coff.
9344 linux*oldld* | linux*aout* | linux*coff*)
9345 dynamic_linker=no
9346 ;;
9347
9348 # This must be Linux ELF.
9349 linux* | k*bsd*-gnu)
9350 version_type=linux
9351 need_lib_prefix=no
9352 need_version=no
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 shlibpath_overrides_runpath=no
9358 # Some binutils ld are patched to set DT_RUNPATH
9359 save_LDFLAGS=$LDFLAGS
9360 save_libdir=$libdir
9361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369
9370 int
9371 main ()
9372 {
9373
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (ac_try="$ac_link"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_link") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext &&
9395 $as_test_x conftest$ac_exeext; then
9396 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9397 shlibpath_overrides_runpath=yes
9398 fi
9399
9400 else
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9403
9404
9405 fi
9406
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408 conftest$ac_exeext conftest.$ac_ext
9409 LDFLAGS=$save_LDFLAGS
9410 libdir=$save_libdir
9411
9412 # This implies no fast_install, which is unacceptable.
9413 # Some rework will be needed to allow for fast_install
9414 # before this can be enabled.
9415 hardcode_into_libs=yes
9416
9417 # Append ld.so.conf contents to the search path
9418 if test -f /etc/ld.so.conf; then
9419 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' ' '`
9420 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9421 fi
9422
9423 # We used to test for /lib/ld.so.1 and disable shared libraries on
9424 # powerpc, because MkLinux only supported shared libraries with the
9425 # GNU dynamic linker. Since this was broken with cross compilers,
9426 # most powerpc-linux boxes support dynamic linking these days and
9427 # people can always --disable-shared, the test was removed, and we
9428 # assume the GNU/Linux dynamic linker is in use.
9429 dynamic_linker='GNU/Linux ld.so'
9430 ;;
9431
9432 netbsd*)
9433 version_type=sunos
9434 need_lib_prefix=no
9435 need_version=no
9436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9439 dynamic_linker='NetBSD (a.out) ld.so'
9440 else
9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9442 soname_spec='${libname}${release}${shared_ext}$major'
9443 dynamic_linker='NetBSD ld.elf_so'
9444 fi
9445 shlibpath_var=LD_LIBRARY_PATH
9446 shlibpath_overrides_runpath=yes
9447 hardcode_into_libs=yes
9448 ;;
9449
9450 newsos6)
9451 version_type=linux
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=yes
9455 ;;
9456
9457 *nto* | *qnx*)
9458 version_type=qnx
9459 need_lib_prefix=no
9460 need_version=no
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 dynamic_linker='ldqnx.so'
9467 ;;
9468
9469 openbsd*)
9470 version_type=sunos
9471 sys_lib_dlsearch_path_spec="/usr/lib"
9472 need_lib_prefix=no
9473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9474 case $host_os in
9475 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9476 *) need_version=no ;;
9477 esac
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9482 case $host_os in
9483 openbsd2.[89] | openbsd2.[89].*)
9484 shlibpath_overrides_runpath=no
9485 ;;
9486 *)
9487 shlibpath_overrides_runpath=yes
9488 ;;
9489 esac
9490 else
9491 shlibpath_overrides_runpath=yes
9492 fi
9493 ;;
9494
9495 os2*)
9496 libname_spec='$name'
9497 shrext_cmds=".dll"
9498 need_lib_prefix=no
9499 library_names_spec='$libname${shared_ext} $libname.a'
9500 dynamic_linker='OS/2 ld.exe'
9501 shlibpath_var=LIBPATH
9502 ;;
9503
9504 osf3* | osf4* | osf5*)
9505 version_type=osf
9506 need_lib_prefix=no
9507 need_version=no
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9513 ;;
9514
9515 rdos*)
9516 dynamic_linker=no
9517 ;;
9518
9519 solaris*)
9520 version_type=linux
9521 need_lib_prefix=no
9522 need_version=no
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524 soname_spec='${libname}${release}${shared_ext}$major'
9525 shlibpath_var=LD_LIBRARY_PATH
9526 shlibpath_overrides_runpath=yes
9527 hardcode_into_libs=yes
9528 # ldd complains unless libraries are executable
9529 postinstall_cmds='chmod +x $lib'
9530 ;;
9531
9532 sunos4*)
9533 version_type=sunos
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 shlibpath_overrides_runpath=yes
9538 if test "$with_gnu_ld" = yes; then
9539 need_lib_prefix=no
9540 fi
9541 need_version=yes
9542 ;;
9543
9544 sysv4 | sysv4.3*)
9545 version_type=linux
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547 soname_spec='${libname}${release}${shared_ext}$major'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 case $host_vendor in
9550 sni)
9551 shlibpath_overrides_runpath=no
9552 need_lib_prefix=no
9553 runpath_var=LD_RUN_PATH
9554 ;;
9555 siemens)
9556 need_lib_prefix=no
9557 ;;
9558 motorola)
9559 need_lib_prefix=no
9560 need_version=no
9561 shlibpath_overrides_runpath=no
9562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9563 ;;
9564 esac
9565 ;;
9566
9567 sysv4*MP*)
9568 if test -d /usr/nec ;then
9569 version_type=linux
9570 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9571 soname_spec='$libname${shared_ext}.$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 fi
9574 ;;
9575
9576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9577 version_type=freebsd-elf
9578 need_lib_prefix=no
9579 need_version=no
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 shlibpath_overrides_runpath=yes
9584 hardcode_into_libs=yes
9585 if test "$with_gnu_ld" = yes; then
9586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9587 else
9588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9589 case $host_os in
9590 sco3.2v5*)
9591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9592 ;;
9593 esac
9594 fi
9595 sys_lib_dlsearch_path_spec='/usr/lib'
9596 ;;
9597
9598 tpf*)
9599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9600 version_type=linux
9601 need_lib_prefix=no
9602 need_version=no
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=no
9606 hardcode_into_libs=yes
9607 ;;
9608
9609 uts4*)
9610 version_type=linux
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 ;;
9615
9616 *)
9617 dynamic_linker=no
9618 ;;
9619 esac
9620 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9621 echo "${ECHO_T}$dynamic_linker" >&6; }
9622 test "$dynamic_linker" = no && can_build_shared=no
9623
9624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9625 if test "$GCC" = yes; then
9626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9627 fi
9628
9629 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9630 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9631 fi
9632 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9633 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9634 fi
9635
9636
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 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9723 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9724 hardcode_action=
9725 if test -n "$hardcode_libdir_flag_spec" ||
9726 test -n "$runpath_var" ||
9727 test "X$hardcode_automatic" = "Xyes" ; then
9728
9729 # We can hardcode non-existent directories.
9730 if test "$hardcode_direct" != no &&
9731 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9732 # have to relink, otherwise we might link with an installed library
9733 # when we should be linking with a yet-to-be-installed one
9734 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9735 test "$hardcode_minus_L" != no; then
9736 # Linking always hardcodes the temporary library directory.
9737 hardcode_action=relink
9738 else
9739 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9740 hardcode_action=immediate
9741 fi
9742 else
9743 # We cannot hardcode anything, or else we can only hardcode existing
9744 # directories.
9745 hardcode_action=unsupported
9746 fi
9747 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9748 echo "${ECHO_T}$hardcode_action" >&6; }
9749
9750 if test "$hardcode_action" = relink ||
9751 test "$inherit_rpath" = yes; then
9752 # Fast installation is not supported
9753 enable_fast_install=no
9754 elif test "$shlibpath_overrides_runpath" = yes ||
9755 test "$enable_shared" = no; then
9756 # Fast installation is not necessary
9757 enable_fast_install=needless
9758 fi
9759
9760
9761
9762
9763
9764
9765 if test "x$enable_dlopen" != xyes; then
9766 enable_dlopen=unknown
9767 enable_dlopen_self=unknown
9768 enable_dlopen_self_static=unknown
9769 else
9770 lt_cv_dlopen=no
9771 lt_cv_dlopen_libs=
9772
9773 case $host_os in
9774 beos*)
9775 lt_cv_dlopen="load_add_on"
9776 lt_cv_dlopen_libs=
9777 lt_cv_dlopen_self=yes
9778 ;;
9779
9780 mingw* | pw32* | cegcc*)
9781 lt_cv_dlopen="LoadLibrary"
9782 lt_cv_dlopen_libs=
9783 ;;
9784
9785 cygwin*)
9786 lt_cv_dlopen="dlopen"
9787 lt_cv_dlopen_libs=
9788 ;;
9789
9790 darwin*)
9791 # if libdl is installed we need to link against it
9792 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9793 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9794 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797 ac_check_lib_save_LIBS=$LIBS
9798 LIBS="-ldl $LIBS"
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805
9806 /* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 char dlopen ();
9813 int
9814 main ()
9815 {
9816 return dlopen ();
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9823 case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && {
9835 test -z "$ac_c_werror_flag" ||
9836 test ! -s conftest.err
9837 } && test -s conftest$ac_exeext &&
9838 $as_test_x conftest$ac_exeext; then
9839 ac_cv_lib_dl_dlopen=yes
9840 else
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 ac_cv_lib_dl_dlopen=no
9845 fi
9846
9847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9850 fi
9851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9852 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9853 if test $ac_cv_lib_dl_dlopen = yes; then
9854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9855 else
9856
9857 lt_cv_dlopen="dyld"
9858 lt_cv_dlopen_libs=
9859 lt_cv_dlopen_self=yes
9860
9861 fi
9862
9863 ;;
9864
9865 *)
9866 { echo "$as_me:$LINENO: checking for shl_load" >&5
9867 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9868 if test "${ac_cv_func_shl_load+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h. */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9879 #define shl_load innocuous_shl_load
9880
9881 /* System header to define __stub macros and hopefully few prototypes,
9882 which can conflict with char shl_load (); below.
9883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9884 <limits.h> exists even on freestanding compilers. */
9885
9886 #ifdef __STDC__
9887 # include <limits.h>
9888 #else
9889 # include <assert.h>
9890 #endif
9891
9892 #undef shl_load
9893
9894 /* Override any GCC internal prototype to avoid an error.
9895 Use char because int might match the return type of a GCC
9896 builtin and then its argument prototype would still apply. */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 char shl_load ();
9901 /* The GNU C library defines this for functions which it implements
9902 to always fail with ENOSYS. Some functions are actually named
9903 something starting with __ and the normal name is an alias. */
9904 #if defined __stub_shl_load || defined __stub___shl_load
9905 choke me
9906 #endif
9907
9908 int
9909 main ()
9910 {
9911 return shl_load ();
9912 ;
9913 return 0;
9914 }
9915 _ACEOF
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (ac_try="$ac_link"
9918 case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext &&
9933 $as_test_x conftest$ac_exeext; then
9934 ac_cv_func_shl_load=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_func_shl_load=no
9940 fi
9941
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9944 fi
9945 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9946 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9947 if test $ac_cv_func_shl_load = yes; then
9948 lt_cv_dlopen="shl_load"
9949 else
9950 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 ac_check_lib_save_LIBS=$LIBS
9956 LIBS="-ldld $LIBS"
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char shl_load ();
9971 int
9972 main ()
9973 {
9974 return shl_load ();
9975 ;
9976 return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9981 case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 } && test -s conftest$ac_exeext &&
9996 $as_test_x conftest$ac_exeext; then
9997 ac_cv_lib_dld_shl_load=yes
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 ac_cv_lib_dld_shl_load=no
10003 fi
10004
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10008 fi
10009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10010 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10011 if test $ac_cv_lib_dld_shl_load = yes; then
10012 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10013 else
10014 { echo "$as_me:$LINENO: checking for dlopen" >&5
10015 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10016 if test "${ac_cv_func_dlopen+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10027 #define dlopen innocuous_dlopen
10028
10029 /* System header to define __stub macros and hopefully few prototypes,
10030 which can conflict with char dlopen (); below.
10031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10032 <limits.h> exists even on freestanding compilers. */
10033
10034 #ifdef __STDC__
10035 # include <limits.h>
10036 #else
10037 # include <assert.h>
10038 #endif
10039
10040 #undef dlopen
10041
10042 /* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 char dlopen ();
10049 /* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052 #if defined __stub_dlopen || defined __stub___dlopen
10053 choke me
10054 #endif
10055
10056 int
10057 main ()
10058 {
10059 return dlopen ();
10060 ;
10061 return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_link") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext &&
10081 $as_test_x conftest$ac_exeext; then
10082 ac_cv_func_dlopen=yes
10083 else
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 ac_cv_func_dlopen=no
10088 fi
10089
10090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091 conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10094 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10095 if test $ac_cv_func_dlopen = yes; then
10096 lt_cv_dlopen="dlopen"
10097 else
10098 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10099 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10100 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-ldl $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h. */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10111
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char dlopen ();
10119 int
10120 main ()
10121 {
10122 return dlopen ();
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_link") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest$ac_exeext &&
10144 $as_test_x conftest$ac_exeext; then
10145 ac_cv_lib_dl_dlopen=yes
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150 ac_cv_lib_dl_dlopen=no
10151 fi
10152
10153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS=$ac_check_lib_save_LIBS
10156 fi
10157 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10158 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10159 if test $ac_cv_lib_dl_dlopen = yes; then
10160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10161 else
10162 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10163 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10164 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167 ac_check_lib_save_LIBS=$LIBS
10168 LIBS="-lsvld $LIBS"
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h. */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char dlopen ();
10183 int
10184 main ()
10185 {
10186 return dlopen ();
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest$ac_exeext &&
10208 $as_test_x conftest$ac_exeext; then
10209 ac_cv_lib_svld_dlopen=yes
10210 else
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214 ac_cv_lib_svld_dlopen=no
10215 fi
10216
10217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10218 conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
10220 fi
10221 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10222 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10223 if test $ac_cv_lib_svld_dlopen = yes; then
10224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10225 else
10226 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10227 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10228 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-ldld $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char dld_link ();
10247 int
10248 main ()
10249 {
10250 return dld_link ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest$ac_exeext &&
10272 $as_test_x conftest$ac_exeext; then
10273 ac_cv_lib_dld_dld_link=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_cv_lib_dld_dld_link=no
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10283 LIBS=$ac_check_lib_save_LIBS
10284 fi
10285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10286 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10287 if test $ac_cv_lib_dld_dld_link = yes; then
10288 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10289 fi
10290
10291
10292 fi
10293
10294
10295 fi
10296
10297
10298 fi
10299
10300
10301 fi
10302
10303
10304 fi
10305
10306 ;;
10307 esac
10308
10309 if test "x$lt_cv_dlopen" != xno; then
10310 enable_dlopen=yes
10311 else
10312 enable_dlopen=no
10313 fi
10314
10315 case $lt_cv_dlopen in
10316 dlopen)
10317 save_CPPFLAGS="$CPPFLAGS"
10318 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10319
10320 save_LDFLAGS="$LDFLAGS"
10321 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10322
10323 save_LIBS="$LIBS"
10324 LIBS="$lt_cv_dlopen_libs $LIBS"
10325
10326 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10327 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10328 if test "${lt_cv_dlopen_self+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 if test "$cross_compiling" = yes; then :
10332 lt_cv_dlopen_self=cross
10333 else
10334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10335 lt_status=$lt_dlunknown
10336 cat > conftest.$ac_ext <<_LT_EOF
10337 #line 10337 "configure"
10338 #include "confdefs.h"
10339
10340 #if HAVE_DLFCN_H
10341 #include <dlfcn.h>
10342 #endif
10343
10344 #include <stdio.h>
10345
10346 #ifdef RTLD_GLOBAL
10347 # define LT_DLGLOBAL RTLD_GLOBAL
10348 #else
10349 # ifdef DL_GLOBAL
10350 # define LT_DLGLOBAL DL_GLOBAL
10351 # else
10352 # define LT_DLGLOBAL 0
10353 # endif
10354 #endif
10355
10356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10357 find out it does not work in some platform. */
10358 #ifndef LT_DLLAZY_OR_NOW
10359 # ifdef RTLD_LAZY
10360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10361 # else
10362 # ifdef DL_LAZY
10363 # define LT_DLLAZY_OR_NOW DL_LAZY
10364 # else
10365 # ifdef RTLD_NOW
10366 # define LT_DLLAZY_OR_NOW RTLD_NOW
10367 # else
10368 # ifdef DL_NOW
10369 # define LT_DLLAZY_OR_NOW DL_NOW
10370 # else
10371 # define LT_DLLAZY_OR_NOW 0
10372 # endif
10373 # endif
10374 # endif
10375 # endif
10376 #endif
10377
10378 void fnord() { int i=42;}
10379 int main ()
10380 {
10381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10382 int status = $lt_dlunknown;
10383
10384 if (self)
10385 {
10386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10387 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10388 /* dlclose (self); */
10389 }
10390 else
10391 puts (dlerror ());
10392
10393 return status;
10394 }
10395 _LT_EOF
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10401 (./conftest; exit; ) >&5 2>/dev/null
10402 lt_status=$?
10403 case x$lt_status in
10404 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10405 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10406 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10407 esac
10408 else :
10409 # compilation failed
10410 lt_cv_dlopen_self=no
10411 fi
10412 fi
10413 rm -fr conftest*
10414
10415
10416 fi
10417 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10418 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10419
10420 if test "x$lt_cv_dlopen_self" = xyes; then
10421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10422 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10423 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10424 if test "${lt_cv_dlopen_self_static+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427 if test "$cross_compiling" = yes; then :
10428 lt_cv_dlopen_self_static=cross
10429 else
10430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10431 lt_status=$lt_dlunknown
10432 cat > conftest.$ac_ext <<_LT_EOF
10433 #line 10433 "configure"
10434 #include "confdefs.h"
10435
10436 #if HAVE_DLFCN_H
10437 #include <dlfcn.h>
10438 #endif
10439
10440 #include <stdio.h>
10441
10442 #ifdef RTLD_GLOBAL
10443 # define LT_DLGLOBAL RTLD_GLOBAL
10444 #else
10445 # ifdef DL_GLOBAL
10446 # define LT_DLGLOBAL DL_GLOBAL
10447 # else
10448 # define LT_DLGLOBAL 0
10449 # endif
10450 #endif
10451
10452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10453 find out it does not work in some platform. */
10454 #ifndef LT_DLLAZY_OR_NOW
10455 # ifdef RTLD_LAZY
10456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10457 # else
10458 # ifdef DL_LAZY
10459 # define LT_DLLAZY_OR_NOW DL_LAZY
10460 # else
10461 # ifdef RTLD_NOW
10462 # define LT_DLLAZY_OR_NOW RTLD_NOW
10463 # else
10464 # ifdef DL_NOW
10465 # define LT_DLLAZY_OR_NOW DL_NOW
10466 # else
10467 # define LT_DLLAZY_OR_NOW 0
10468 # endif
10469 # endif
10470 # endif
10471 # endif
10472 #endif
10473
10474 void fnord() { int i=42;}
10475 int main ()
10476 {
10477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10478 int status = $lt_dlunknown;
10479
10480 if (self)
10481 {
10482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10484 /* dlclose (self); */
10485 }
10486 else
10487 puts (dlerror ());
10488
10489 return status;
10490 }
10491 _LT_EOF
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10497 (./conftest; exit; ) >&5 2>/dev/null
10498 lt_status=$?
10499 case x$lt_status in
10500 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10501 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10502 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10503 esac
10504 else :
10505 # compilation failed
10506 lt_cv_dlopen_self_static=no
10507 fi
10508 fi
10509 rm -fr conftest*
10510
10511
10512 fi
10513 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10514 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10515 fi
10516
10517 CPPFLAGS="$save_CPPFLAGS"
10518 LDFLAGS="$save_LDFLAGS"
10519 LIBS="$save_LIBS"
10520 ;;
10521 esac
10522
10523 case $lt_cv_dlopen_self in
10524 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10525 *) enable_dlopen_self=unknown ;;
10526 esac
10527
10528 case $lt_cv_dlopen_self_static in
10529 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10530 *) enable_dlopen_self_static=unknown ;;
10531 esac
10532 fi
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550 striplib=
10551 old_striplib=
10552 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10553 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10554 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10555 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10556 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10557 { echo "$as_me:$LINENO: result: yes" >&5
10558 echo "${ECHO_T}yes" >&6; }
10559 else
10560 # FIXME - insert some real tests, host_os isn't really good enough
10561 case $host_os in
10562 darwin*)
10563 if test -n "$STRIP" ; then
10564 striplib="$STRIP -x"
10565 old_striplib="$STRIP -S"
10566 { echo "$as_me:$LINENO: result: yes" >&5
10567 echo "${ECHO_T}yes" >&6; }
10568 else
10569 { echo "$as_me:$LINENO: result: no" >&5
10570 echo "${ECHO_T}no" >&6; }
10571 fi
10572 ;;
10573 *)
10574 { echo "$as_me:$LINENO: result: no" >&5
10575 echo "${ECHO_T}no" >&6; }
10576 ;;
10577 esac
10578 fi
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591 # Report which library types will actually be built
10592 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10593 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10594 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10595 echo "${ECHO_T}$can_build_shared" >&6; }
10596
10597 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10598 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10599 test "$can_build_shared" = "no" && enable_shared=no
10600
10601 # On AIX, shared libraries and static libraries use the same namespace, and
10602 # are all built from PIC.
10603 case $host_os in
10604 aix3*)
10605 test "$enable_shared" = yes && enable_static=no
10606 if test -n "$RANLIB"; then
10607 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10608 postinstall_cmds='$RANLIB $lib'
10609 fi
10610 ;;
10611
10612 aix[4-9]*)
10613 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10614 test "$enable_shared" = yes && enable_static=no
10615 fi
10616 ;;
10617 esac
10618 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10619 echo "${ECHO_T}$enable_shared" >&6; }
10620
10621 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10622 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10623 # Make sure either enable_shared or enable_static is yes.
10624 test "$enable_shared" = yes || enable_static=yes
10625 { echo "$as_me:$LINENO: result: $enable_static" >&5
10626 echo "${ECHO_T}$enable_static" >&6; }
10627
10628
10629
10630
10631 fi
10632 ac_ext=c
10633 ac_cpp='$CPP $CPPFLAGS'
10634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10637
10638 CC="$lt_save_CC"
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652 ac_config_commands="$ac_config_commands libtool"
10653
10654
10655
10656
10657 # Only expand once:
10658
10659
10660
10661 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
10662 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
10663 LT_REVISION=$INTERFACE_AGE
10664 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
10665
10666
10667
10668
10669
10670
10671 { echo "$as_me:$LINENO: checking host system type" >&5
10672 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10673 if test "${ac_cv_host+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 if test "x$host_alias" = x; then
10677 ac_cv_host=$ac_cv_build
10678 else
10679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10680 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10681 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10682 { (exit 1); exit 1; }; }
10683 fi
10684
10685 fi
10686 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10687 echo "${ECHO_T}$ac_cv_host" >&6; }
10688 case $ac_cv_host in
10689 *-*-*) ;;
10690 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10691 echo "$as_me: error: invalid value of canonical host" >&2;}
10692 { (exit 1); exit 1; }; };;
10693 esac
10694 host=$ac_cv_host
10695 ac_save_IFS=$IFS; IFS='-'
10696 set x $ac_cv_host
10697 shift
10698 host_cpu=$1
10699 host_vendor=$2
10700 shift; shift
10701 # Remember, the first character of IFS is used to create $*,
10702 # except with old shells:
10703 host_os=$*
10704 IFS=$ac_save_IFS
10705 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10706
10707
10708
10709 am__api_version='1.10'
10710
10711 # Find a good install program. We prefer a C program (faster),
10712 # so one script is as good as another. But avoid the broken or
10713 # incompatible versions:
10714 # SysV /etc/install, /usr/sbin/install
10715 # SunOS /usr/etc/install
10716 # IRIX /sbin/install
10717 # AIX /bin/install
10718 # AmigaOS /C/install, which installs bootblocks on floppy discs
10719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10722 # OS/2's system install, which has a completely different semantic
10723 # ./install, which can be erroneously created by make from ./install.sh.
10724 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10725 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10726 if test -z "$INSTALL"; then
10727 if test "${ac_cv_path_install+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $PATH
10732 do
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 # Account for people who put trailing slashes in PATH elements.
10736 case $as_dir/ in
10737 ./ | .// | /cC/* | \
10738 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10739 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10740 /usr/ucb/* ) ;;
10741 *)
10742 # OSF1 and SCO ODT 3.0 have their own names for install.
10743 # Don't use installbsd from OSF since it installs stuff as root
10744 # by default.
10745 for ac_prog in ginstall scoinst install; do
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10748 if test $ac_prog = install &&
10749 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10750 # AIX install. It has an incompatible calling convention.
10751 :
10752 elif test $ac_prog = install &&
10753 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10754 # program-specific install script used by HP pwplus--don't use.
10755 :
10756 else
10757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10758 break 3
10759 fi
10760 fi
10761 done
10762 done
10763 ;;
10764 esac
10765 done
10766 IFS=$as_save_IFS
10767
10768
10769 fi
10770 if test "${ac_cv_path_install+set}" = set; then
10771 INSTALL=$ac_cv_path_install
10772 else
10773 # As a last resort, use the slow shell script. Don't cache a
10774 # value for INSTALL within a source directory, because that will
10775 # break other packages using the cache if that directory is
10776 # removed, or if the value is a relative name.
10777 INSTALL=$ac_install_sh
10778 fi
10779 fi
10780 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10781 echo "${ECHO_T}$INSTALL" >&6; }
10782
10783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10784 # It thinks the first close brace ends the variable substitution.
10785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10786
10787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10788
10789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10790
10791 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10792 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
10793 # Just in case
10794 sleep 1
10795 echo timestamp > conftest.file
10796 # Do `set' in a subshell so we don't clobber the current shell's
10797 # arguments. Must try -L first in case configure is actually a
10798 # symlink; some systems play weird games with the mod time of symlinks
10799 # (eg FreeBSD returns the mod time of the symlink's containing
10800 # directory).
10801 if (
10802 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
10803 if test "$*" = "X"; then
10804 # -L didn't work.
10805 set X `ls -t $srcdir/configure conftest.file`
10806 fi
10807 rm -f conftest.file
10808 if test "$*" != "X $srcdir/configure conftest.file" \
10809 && test "$*" != "X conftest.file $srcdir/configure"; then
10810
10811 # If neither matched, then we have a broken ls. This can happen
10812 # if, for instance, CONFIG_SHELL is bash and it inherits a
10813 # broken ls alias from the environment. This has actually
10814 # happened. Such a system could not be considered "sane".
10815 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
10816 alias in your environment" >&5
10817 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
10818 alias in your environment" >&2;}
10819 { (exit 1); exit 1; }; }
10820 fi
10821
10822 test "$2" = conftest.file
10823 )
10824 then
10825 # Ok.
10826 :
10827 else
10828 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10829 Check your system clock" >&5
10830 echo "$as_me: error: newly created file is older than distributed files!
10831 Check your system clock" >&2;}
10832 { (exit 1); exit 1; }; }
10833 fi
10834 { echo "$as_me:$LINENO: result: yes" >&5
10835 echo "${ECHO_T}yes" >&6; }
10836 test "$program_prefix" != NONE &&
10837 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10838 # Use a double $ so make ignores it.
10839 test "$program_suffix" != NONE &&
10840 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10841 # Double any \ or $. echo might interpret backslashes.
10842 # By default was `s,x,x', remove it if useless.
10843 cat <<\_ACEOF >conftest.sed
10844 s/[\\$]/&&/g;s/;s,x,x,$//
10845 _ACEOF
10846 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
10847 rm -f conftest.sed
10848
10849 # expand $ac_aux_dir to an absolute path
10850 am_aux_dir=`cd $ac_aux_dir && pwd`
10851
10852 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
10853 # Use eval to expand $SHELL
10854 if eval "$MISSING --run true"; then
10855 am_missing_run="$MISSING --run "
10856 else
10857 am_missing_run=
10858 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10859 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10860 fi
10861
10862 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10863 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
10864 if test -z "$MKDIR_P"; then
10865 if test "${ac_cv_path_mkdir+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10870 do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_prog in mkdir gmkdir; do
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10877 'mkdir (GNU coreutils) '* | \
10878 'mkdir (coreutils) '* | \
10879 'mkdir (fileutils) '4.1*)
10880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10881 break 3;;
10882 esac
10883 done
10884 done
10885 done
10886 IFS=$as_save_IFS
10887
10888 fi
10889
10890 if test "${ac_cv_path_mkdir+set}" = set; then
10891 MKDIR_P="$ac_cv_path_mkdir -p"
10892 else
10893 # As a last resort, use the slow shell script. Don't cache a
10894 # value for MKDIR_P within a source directory, because that will
10895 # break other packages using the cache if that directory is
10896 # removed, or if the value is a relative name.
10897 test -d ./--version && rmdir ./--version
10898 MKDIR_P="$ac_install_sh -d"
10899 fi
10900 fi
10901 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10902 echo "${ECHO_T}$MKDIR_P" >&6; }
10903
10904 mkdir_p="$MKDIR_P"
10905 case $mkdir_p in
10906 [\\/$]* | ?:[\\/]*) ;;
10907 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10908 esac
10909
10910 for ac_prog in gawk mawk nawk awk
10911 do
10912 # Extract the first word of "$ac_prog", so it can be a program name with args.
10913 set dummy $ac_prog; ac_word=$2
10914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10916 if test "${ac_cv_prog_AWK+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919 if test -n "$AWK"; then
10920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10921 else
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10924 do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_prog_AWK="$ac_prog"
10930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10932 fi
10933 done
10934 done
10935 IFS=$as_save_IFS
10936
10937 fi
10938 fi
10939 AWK=$ac_cv_prog_AWK
10940 if test -n "$AWK"; then
10941 { echo "$as_me:$LINENO: result: $AWK" >&5
10942 echo "${ECHO_T}$AWK" >&6; }
10943 else
10944 { echo "$as_me:$LINENO: result: no" >&5
10945 echo "${ECHO_T}no" >&6; }
10946 fi
10947
10948
10949 test -n "$AWK" && break
10950 done
10951
10952 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10954 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10955 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 cat >conftest.make <<\_ACEOF
10959 SHELL = /bin/sh
10960 all:
10961 @echo '@@@%%%=$(MAKE)=@@@%%%'
10962 _ACEOF
10963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10965 *@@@%%%=?*=@@@%%%*)
10966 eval ac_cv_prog_make_${ac_make}_set=yes;;
10967 *)
10968 eval ac_cv_prog_make_${ac_make}_set=no;;
10969 esac
10970 rm -f conftest.make
10971 fi
10972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10973 { echo "$as_me:$LINENO: result: yes" >&5
10974 echo "${ECHO_T}yes" >&6; }
10975 SET_MAKE=
10976 else
10977 { echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6; }
10979 SET_MAKE="MAKE=${MAKE-make}"
10980 fi
10981
10982 rm -rf .tst 2>/dev/null
10983 mkdir .tst 2>/dev/null
10984 if test -d .tst; then
10985 am__leading_dot=.
10986 else
10987 am__leading_dot=_
10988 fi
10989 rmdir .tst 2>/dev/null
10990
10991 DEPDIR="${am__leading_dot}deps"
10992
10993 ac_config_commands="$ac_config_commands depfiles"
10994
10995
10996 am_make=${MAKE-make}
10997 cat > confinc << 'END'
10998 am__doit:
10999 @echo done
11000 .PHONY: am__doit
11001 END
11002 # If we don't find an include directive, just comment out the code.
11003 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11004 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
11005 am__include="#"
11006 am__quote=
11007 _am_result=none
11008 # First try GNU make style include.
11009 echo "include confinc" > confmf
11010 # We grep out `Entering directory' and `Leaving directory'
11011 # messages which can occur if `w' ends up in MAKEFLAGS.
11012 # In particular we don't look at `^make:' because GNU make might
11013 # be invoked under some other name (usually "gmake"), in which
11014 # case it prints its new name instead of `make'.
11015 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
11016 am__include=include
11017 am__quote=
11018 _am_result=GNU
11019 fi
11020 # Now try BSD make style include.
11021 if test "$am__include" = "#"; then
11022 echo '.include "confinc"' > confmf
11023 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
11024 am__include=.include
11025 am__quote="\""
11026 _am_result=BSD
11027 fi
11028 fi
11029
11030
11031 { echo "$as_me:$LINENO: result: $_am_result" >&5
11032 echo "${ECHO_T}$_am_result" >&6; }
11033 rm -f confinc confmf
11034
11035 # Check whether --enable-dependency-tracking was given.
11036 if test "${enable_dependency_tracking+set}" = set; then
11037 enableval=$enable_dependency_tracking;
11038 fi
11039
11040 if test "x$enable_dependency_tracking" != xno; then
11041 am_depcomp="$ac_aux_dir/depcomp"
11042 AMDEPBACKSLASH='\'
11043 fi
11044 if test "x$enable_dependency_tracking" != xno; then
11045 AMDEP_TRUE=
11046 AMDEP_FALSE='#'
11047 else
11048 AMDEP_TRUE='#'
11049 AMDEP_FALSE=
11050 fi
11051
11052
11053 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11054 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11055 # is not polluted with repeated "-I."
11056 am__isrc=' -I$(srcdir)'
11057 # test to see if srcdir already configured
11058 if test -f $srcdir/config.status; then
11059 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11060 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11061 { (exit 1); exit 1; }; }
11062 fi
11063 fi
11064
11065 # test whether we have cygpath
11066 if test -z "$CYGPATH_W"; then
11067 if (cygpath --version) >/dev/null 2>/dev/null; then
11068 CYGPATH_W='cygpath -w'
11069 else
11070 CYGPATH_W=echo
11071 fi
11072 fi
11073
11074
11075 # Define the identity of the package.
11076 PACKAGE=SDL_net
11077 VERSION=$VERSION
11078
11079
11080 cat >>confdefs.h <<_ACEOF
11081 #define PACKAGE "$PACKAGE"
11082 _ACEOF
11083
11084
11085 cat >>confdefs.h <<_ACEOF
11086 #define VERSION "$VERSION"
11087 _ACEOF
11088
11089 # Some tools Automake needs.
11090
11091 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11092
11093
11094 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11095
11096
11097 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11098
11099
11100 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11101
11102
11103 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11104
11105 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
11106
11107 # Installed binaries are usually stripped using `strip' when the user
11108 # run `make install-strip'. However `strip' might not be the right
11109 # tool to use in cross-compilation environments, therefore Automake
11110 # will honor the `STRIP' environment variable to overrule this program.
11111 if test "$cross_compiling" != no; then
11112 if test -n "$ac_tool_prefix"; then
11113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11114 set dummy ${ac_tool_prefix}strip; ac_word=$2
11115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11117 if test "${ac_cv_prog_STRIP+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 if test -n "$STRIP"; then
11121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11122 else
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11125 do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134 done
11135 done
11136 IFS=$as_save_IFS
11137
11138 fi
11139 fi
11140 STRIP=$ac_cv_prog_STRIP
11141 if test -n "$STRIP"; then
11142 { echo "$as_me:$LINENO: result: $STRIP" >&5
11143 echo "${ECHO_T}$STRIP" >&6; }
11144 else
11145 { echo "$as_me:$LINENO: result: no" >&5
11146 echo "${ECHO_T}no" >&6; }
11147 fi
11148
11149
11150 fi
11151 if test -z "$ac_cv_prog_STRIP"; then
11152 ac_ct_STRIP=$STRIP
11153 # Extract the first word of "strip", so it can be a program name with args.
11154 set dummy strip; ac_word=$2
11155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11157 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160 if test -n "$ac_ct_STRIP"; then
11161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_ac_ct_STRIP="strip"
11171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174 done
11175 done
11176 IFS=$as_save_IFS
11177
11178 fi
11179 fi
11180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11181 if test -n "$ac_ct_STRIP"; then
11182 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11183 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11184 else
11185 { echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6; }
11187 fi
11188
11189 if test "x$ac_ct_STRIP" = x; then
11190 STRIP=":"
11191 else
11192 case $cross_compiling:$ac_tool_warned in
11193 yes:)
11194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11195 whose name does not start with the host triplet. If you think this
11196 configuration is useful to you, please write to [email protected]." >&5
11197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11198 whose name does not start with the host triplet. If you think this
11199 configuration is useful to you, please write to [email protected]." >&2;}
11200 ac_tool_warned=yes ;;
11201 esac
11202 STRIP=$ac_ct_STRIP
11203 fi
11204 else
11205 STRIP="$ac_cv_prog_STRIP"
11206 fi
11207
11208 fi
11209 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11210
11211 # We need awk for the "check" target. The system "awk" is bad on
11212 # some platforms.
11213 # Always define AMTAR for backward compatibility.
11214
11215 AMTAR=${AMTAR-"${am_missing_run}tar"}
11216
11217 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11218
11219
11220
11221
11222 depcc="$CC" am_compiler_list=
11223
11224 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11225 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11226 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11230 # We make a subdir and do the tests there. Otherwise we can end up
11231 # making bogus files that we don't know about and never remove. For
11232 # instance it was reported that on HP-UX the gcc test will end up
11233 # making a dummy file named `D' -- because `-MD' means `put the output
11234 # in D'.
11235 mkdir conftest.dir
11236 # Copy depcomp to subdir because otherwise we won't find it if we're
11237 # using a relative directory.
11238 cp "$am_depcomp" conftest.dir
11239 cd conftest.dir
11240 # We will build objects and dependencies in a subdirectory because
11241 # it helps to detect inapplicable dependency modes. For instance
11242 # both Tru64's cc and ICC support -MD to output dependencies as a
11243 # side effect of compilation, but ICC will put the dependencies in
11244 # the current directory while Tru64 will put them in the object
11245 # directory.
11246 mkdir sub
11247
11248 am_cv_CC_dependencies_compiler_type=none
11249 if test "$am_compiler_list" = ""; then
11250 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11251 fi
11252 for depmode in $am_compiler_list; do
11253 # Setup a source with many dependencies, because some compilers
11254 # like to wrap large dependency lists on column 80 (with \), and
11255 # we should not choose a depcomp mode which is confused by this.
11256 #
11257 # We need to recreate these files for each test, as the compiler may
11258 # overwrite some of them when testing with obscure command lines.
11259 # This happens at least with the AIX C compiler.
11260 : > sub/conftest.c
11261 for i in 1 2 3 4 5 6; do
11262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11263 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11264 # Solaris 8's {/usr,}/bin/sh.
11265 touch sub/conftst$i.h
11266 done
11267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11268
11269 case $depmode in
11270 nosideeffect)
11271 # after this tag, mechanisms are not by side-effect, so they'll
11272 # only be used when explicitly requested
11273 if test "x$enable_dependency_tracking" = xyes; then
11274 continue
11275 else
11276 break
11277 fi
11278 ;;
11279 none) break ;;
11280 esac
11281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11282 # mode. It turns out that the SunPro C++ compiler does not properly
11283 # handle `-M -o', and we need to detect this.
11284 if depmode=$depmode \
11285 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11287 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11288 >/dev/null 2>conftest.err &&
11289 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11291 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11293 # icc doesn't choke on unknown options, it will just issue warnings
11294 # or remarks (even with -Werror). So we grep stderr for any message
11295 # that says an option was ignored or not supported.
11296 # When given -MP, icc 7.0 and 7.1 complain thusly:
11297 # icc: Command line warning: ignoring option '-M'; no argument required
11298 # The diagnosis changed in icc 8.0:
11299 # icc: Command line remark: option '-MP' not supported
11300 if (grep 'ignoring option' conftest.err ||
11301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11302 am_cv_CC_dependencies_compiler_type=$depmode
11303 break
11304 fi
11305 fi
11306 done
11307
11308 cd ..
11309 rm -rf conftest.dir
11310 else
11311 am_cv_CC_dependencies_compiler_type=none
11312 fi
11313
11314 fi
11315 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11316 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11317 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11318
11319 if
11320 test "x$enable_dependency_tracking" != xno \
11321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11322 am__fastdepCC_TRUE=
11323 am__fastdepCC_FALSE='#'
11324 else
11325 am__fastdepCC_TRUE='#'
11326 am__fastdepCC_FALSE=
11327 fi
11328
11329
11330
11331
11332
11333 ac_ext=c
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11338 if test -n "$ac_tool_prefix"; then
11339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11343 if test "${ac_cv_prog_CC+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 if test -n "$CC"; then
11347 ac_cv_prog_CC="$CC" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11359 fi
11360 done
11361 done
11362 IFS=$as_save_IFS
11363
11364 fi
11365 fi
11366 CC=$ac_cv_prog_CC
11367 if test -n "$CC"; then
11368 { echo "$as_me:$LINENO: result: $CC" >&5
11369 echo "${ECHO_T}$CC" >&6; }
11370 else
11371 { echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6; }
11373 fi
11374
11375
11376 fi
11377 if test -z "$ac_cv_prog_CC"; then
11378 ac_ct_CC=$CC
11379 # Extract the first word of "gcc", so it can be a program name with args.
11380 set dummy gcc; ac_word=$2
11381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 if test -n "$ac_ct_CC"; then
11387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11388 else
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11391 do
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 ac_cv_prog_ac_ct_CC="gcc"
11397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11399 fi
11400 done
11401 done
11402 IFS=$as_save_IFS
11403
11404 fi
11405 fi
11406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11407 if test -n "$ac_ct_CC"; then
11408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11409 echo "${ECHO_T}$ac_ct_CC" >&6; }
11410 else
11411 { echo "$as_me:$LINENO: result: no" >&5
11412 echo "${ECHO_T}no" >&6; }
11413 fi
11414
11415 if test "x$ac_ct_CC" = x; then
11416 CC=""
11417 else
11418 case $cross_compiling:$ac_tool_warned in
11419 yes:)
11420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11421 whose name does not start with the host triplet. If you think this
11422 configuration is useful to you, please write to [email protected]." >&5
11423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11424 whose name does not start with the host triplet. If you think this
11425 configuration is useful to you, please write to [email protected]." >&2;}
11426 ac_tool_warned=yes ;;
11427 esac
11428 CC=$ac_ct_CC
11429 fi
11430 else
11431 CC="$ac_cv_prog_CC"
11432 fi
11433
11434 if test -z "$CC"; then
11435 if test -n "$ac_tool_prefix"; then
11436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11437 set dummy ${ac_tool_prefix}cc; ac_word=$2
11438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11440 if test "${ac_cv_prog_CC+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443 if test -n "$CC"; then
11444 ac_cv_prog_CC="$CC" # Let the user override the test.
11445 else
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11448 do
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11453 ac_cv_prog_CC="${ac_tool_prefix}cc"
11454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11456 fi
11457 done
11458 done
11459 IFS=$as_save_IFS
11460
11461 fi
11462 fi
11463 CC=$ac_cv_prog_CC
11464 if test -n "$CC"; then
11465 { echo "$as_me:$LINENO: result: $CC" >&5
11466 echo "${ECHO_T}$CC" >&6; }
11467 else
11468 { echo "$as_me:$LINENO: result: no" >&5
11469 echo "${ECHO_T}no" >&6; }
11470 fi
11471
11472
11473 fi
11474 fi
11475 if test -z "$CC"; then
11476 # Extract the first word of "cc", so it can be a program name with args.
11477 set dummy cc; ac_word=$2
11478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11480 if test "${ac_cv_prog_CC+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483 if test -n "$CC"; then
11484 ac_cv_prog_CC="$CC" # Let the user override the test.
11485 else
11486 ac_prog_rejected=no
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11495 ac_prog_rejected=yes
11496 continue
11497 fi
11498 ac_cv_prog_CC="cc"
11499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11501 fi
11502 done
11503 done
11504 IFS=$as_save_IFS
11505
11506 if test $ac_prog_rejected = yes; then
11507 # We found a bogon in the path, so make sure we never use it.
11508 set dummy $ac_cv_prog_CC
11509 shift
11510 if test $# != 0; then
11511 # We chose a different compiler from the bogus one.
11512 # However, it has the same basename, so the bogon will be chosen
11513 # first if we set CC to just the basename; use the full file name.
11514 shift
11515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11516 fi
11517 fi
11518 fi
11519 fi
11520 CC=$ac_cv_prog_CC
11521 if test -n "$CC"; then
11522 { echo "$as_me:$LINENO: result: $CC" >&5
11523 echo "${ECHO_T}$CC" >&6; }
11524 else
11525 { echo "$as_me:$LINENO: result: no" >&5
11526 echo "${ECHO_T}no" >&6; }
11527 fi
11528
11529
11530 fi
11531 if test -z "$CC"; then
11532 if test -n "$ac_tool_prefix"; then
11533 for ac_prog in cl.exe
11534 do
11535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11539 if test "${ac_cv_prog_CC+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542 if test -n "$CC"; then
11543 ac_cv_prog_CC="$CC" # Let the user override the test.
11544 else
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11555 fi
11556 done
11557 done
11558 IFS=$as_save_IFS
11559
11560 fi
11561 fi
11562 CC=$ac_cv_prog_CC
11563 if test -n "$CC"; then
11564 { echo "$as_me:$LINENO: result: $CC" >&5
11565 echo "${ECHO_T}$CC" >&6; }
11566 else
11567 { echo "$as_me:$LINENO: result: no" >&5
11568 echo "${ECHO_T}no" >&6; }
11569 fi
11570
11571
11572 test -n "$CC" && break
11573 done
11574 fi
11575 if test -z "$CC"; then
11576 ac_ct_CC=$CC
11577 for ac_prog in cl.exe
11578 do
11579 # Extract the first word of "$ac_prog", so it can be a program name with args.
11580 set dummy $ac_prog; ac_word=$2
11581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586 if test -n "$ac_ct_CC"; then
11587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11588 else
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11591 do
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11596 ac_cv_prog_ac_ct_CC="$ac_prog"
11597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 break 2
11599 fi
11600 done
11601 done
11602 IFS=$as_save_IFS
11603
11604 fi
11605 fi
11606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11607 if test -n "$ac_ct_CC"; then
11608 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11609 echo "${ECHO_T}$ac_ct_CC" >&6; }
11610 else
11611 { echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6; }
11613 fi
11614
11615
11616 test -n "$ac_ct_CC" && break
11617 done
11618
11619 if test "x$ac_ct_CC" = x; then
11620 CC=""
11621 else
11622 case $cross_compiling:$ac_tool_warned in
11623 yes:)
11624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11625 whose name does not start with the host triplet. If you think this
11626 configuration is useful to you, please write to [email protected]." >&5
11627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11628 whose name does not start with the host triplet. If you think this
11629 configuration is useful to you, please write to [email protected]." >&2;}
11630 ac_tool_warned=yes ;;
11631 esac
11632 CC=$ac_ct_CC
11633 fi
11634 fi
11635
11636 fi
11637
11638
11639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11640 See \`config.log' for more details." >&5
11641 echo "$as_me: error: no acceptable C compiler found in \$PATH
11642 See \`config.log' for more details." >&2;}
11643 { (exit 1); exit 1; }; }
11644
11645 # Provide some information about the compiler.
11646 echo "$as_me:$LINENO: checking for C compiler version" >&5
11647 ac_compiler=`set X $ac_compile; echo $2`
11648 { (ac_try="$ac_compiler --version >&5"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_compiler --version >&5") 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }
11658 { (ac_try="$ac_compiler -v >&5"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_compiler -v >&5") 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }
11668 { (ac_try="$ac_compiler -V >&5"
11669 case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_compiler -V >&5") 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }
11678
11679 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11680 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11681 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690
11691 int
11692 main ()
11693 {
11694 #ifndef __GNUC__
11695 choke me
11696 #endif
11697
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719 ac_compiler_gnu=yes
11720 else
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 ac_compiler_gnu=no
11725 fi
11726
11727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11729
11730 fi
11731 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11732 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11733 GCC=`test $ac_compiler_gnu = yes && echo yes`
11734 ac_test_CFLAGS=${CFLAGS+set}
11735 ac_save_CFLAGS=$CFLAGS
11736 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11737 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11738 if test "${ac_cv_prog_cc_g+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741 ac_save_c_werror_flag=$ac_c_werror_flag
11742 ac_c_werror_flag=yes
11743 ac_cv_prog_cc_g=no
11744 CFLAGS="-g"
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751
11752 int
11753 main ()
11754 {
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext
11761 if { (ac_try="$ac_compile"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_compile") 2>conftest.er1
11768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } && {
11774 test -z "$ac_c_werror_flag" ||
11775 test ! -s conftest.err
11776 } && test -s conftest.$ac_objext; then
11777 ac_cv_prog_cc_g=yes
11778 else
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782 CFLAGS=""
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789
11790 int
11791 main ()
11792 {
11793
11794 ;
11795 return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext
11799 if { (ac_try="$ac_compile"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_compile") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest.$ac_objext; then
11815 :
11816 else
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11819
11820 ac_c_werror_flag=$ac_save_c_werror_flag
11821 CFLAGS="-g"
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828
11829 int
11830 main ()
11831 {
11832
11833 ;
11834 return 0;
11835 }
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (ac_try="$ac_compile"
11839 case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842 esac
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_compile") 2>conftest.er1
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } && {
11851 test -z "$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 } && test -s conftest.$ac_objext; then
11854 ac_cv_prog_cc_g=yes
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859
11860 fi
11861
11862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 fi
11864
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 fi
11867
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 ac_c_werror_flag=$ac_save_c_werror_flag
11870 fi
11871 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11872 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11873 if test "$ac_test_CFLAGS" = set; then
11874 CFLAGS=$ac_save_CFLAGS
11875 elif test $ac_cv_prog_cc_g = yes; then
11876 if test "$GCC" = yes; then
11877 CFLAGS="-g -O2"
11878 else
11879 CFLAGS="-g"
11880 fi
11881 else
11882 if test "$GCC" = yes; then
11883 CFLAGS="-O2"
11884 else
11885 CFLAGS=
11886 fi
11887 fi
11888 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11889 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11890 if test "${ac_cv_prog_cc_c89+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893 ac_cv_prog_cc_c89=no
11894 ac_save_CC=$CC
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 #include <stdarg.h>
11902 #include <stdio.h>
11903 #include <sys/types.h>
11904 #include <sys/stat.h>
11905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11906 struct buf { int x; };
11907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11908 static char *e (p, i)
11909 char **p;
11910 int i;
11911 {
11912 return p[i];
11913 }
11914 static char *f (char * (*g) (char **, int), char **p, ...)
11915 {
11916 char *s;
11917 va_list v;
11918 va_start (v,p);
11919 s = g (p, va_arg (v,int));
11920 va_end (v);
11921 return s;
11922 }
11923
11924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11925 function prototypes and stuff, but not '\xHH' hex character constants.
11926 These don't provoke an error unfortunately, instead are silently treated
11927 as 'x'. The following induces an error, until -std is added to get
11928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11929 array size at least. It's necessary to write '\x00'==0 to get something
11930 that's true only with -std. */
11931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11932
11933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11934 inside strings and character constants. */
11935 #define FOO(x) 'x'
11936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11937
11938 int test (int i, double x);
11939 struct s1 {int (*f) (int a);};
11940 struct s2 {int (*f) (double a);};
11941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11942 int argc;
11943 char **argv;
11944 int
11945 main ()
11946 {
11947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11948 ;
11949 return 0;
11950 }
11951 _ACEOF
11952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11954 do
11955 CC="$ac_save_CC $ac_arg"
11956 rm -f conftest.$ac_objext
11957 if { (ac_try="$ac_compile"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_compile") 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && {
11970 test -z "$ac_c_werror_flag" ||
11971 test ! -s conftest.err
11972 } && test -s conftest.$ac_objext; then
11973 ac_cv_prog_cc_c89=$ac_arg
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978
11979 fi
11980
11981 rm -f core conftest.err conftest.$ac_objext
11982 test "x$ac_cv_prog_cc_c89" != "xno" && break
11983 done
11984 rm -f conftest.$ac_ext
11985 CC=$ac_save_CC
11986
11987 fi
11988 # AC_CACHE_VAL
11989 case "x$ac_cv_prog_cc_c89" in
11990 x)
11991 { echo "$as_me:$LINENO: result: none needed" >&5
11992 echo "${ECHO_T}none needed" >&6; } ;;
11993 xno)
11994 { echo "$as_me:$LINENO: result: unsupported" >&5
11995 echo "${ECHO_T}unsupported" >&6; } ;;
11996 *)
11997 CC="$CC $ac_cv_prog_cc_c89"
11998 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11999 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12000 esac
12001
12002
12003 ac_ext=c
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008
12009 ac_ext=cpp
12010 ac_cpp='$CXXCPP $CPPFLAGS'
12011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12014 if test -z "$CXX"; then
12015 if test -n "$CCC"; then
12016 CXX=$CCC
12017 else
12018 if test -n "$ac_tool_prefix"; then
12019 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12020 do
12021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12025 if test "${ac_cv_prog_CXX+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028 if test -n "$CXX"; then
12029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12030 else
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12041 fi
12042 done
12043 done
12044 IFS=$as_save_IFS
12045
12046 fi
12047 fi
12048 CXX=$ac_cv_prog_CXX
12049 if test -n "$CXX"; then
12050 { echo "$as_me:$LINENO: result: $CXX" >&5
12051 echo "${ECHO_T}$CXX" >&6; }
12052 else
12053 { echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6; }
12055 fi
12056
12057
12058 test -n "$CXX" && break
12059 done
12060 fi
12061 if test -z "$CXX"; then
12062 ac_ct_CXX=$CXX
12063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12064 do
12065 # Extract the first word of "$ac_prog", so it can be a program name with args.
12066 set dummy $ac_prog; ac_word=$2
12067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12069 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072 if test -n "$ac_ct_CXX"; then
12073 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12074 else
12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076 for as_dir in $PATH
12077 do
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
12080 for ac_exec_ext in '' $ac_executable_extensions; do
12081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12082 ac_cv_prog_ac_ct_CXX="$ac_prog"
12083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 break 2
12085 fi
12086 done
12087 done
12088 IFS=$as_save_IFS
12089
12090 fi
12091 fi
12092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12093 if test -n "$ac_ct_CXX"; then
12094 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12095 echo "${ECHO_T}$ac_ct_CXX" >&6; }
12096 else
12097 { echo "$as_me:$LINENO: result: no" >&5
12098 echo "${ECHO_T}no" >&6; }
12099 fi
12100
12101
12102 test -n "$ac_ct_CXX" && break
12103 done
12104
12105 if test "x$ac_ct_CXX" = x; then
12106 CXX="g++"
12107 else
12108 case $cross_compiling:$ac_tool_warned in
12109 yes:)
12110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12111 whose name does not start with the host triplet. If you think this
12112 configuration is useful to you, please write to [email protected]." >&5
12113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12114 whose name does not start with the host triplet. If you think this
12115 configuration is useful to you, please write to [email protected]." >&2;}
12116 ac_tool_warned=yes ;;
12117 esac
12118 CXX=$ac_ct_CXX
12119 fi
12120 fi
12121
12122 fi
12123 fi
12124 # Provide some information about the compiler.
12125 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12126 ac_compiler=`set X $ac_compile; echo $2`
12127 { (ac_try="$ac_compiler --version >&5"
12128 case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_compiler --version >&5") 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }
12137 { (ac_try="$ac_compiler -v >&5"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_compiler -v >&5") 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }
12147 { (ac_try="$ac_compiler -V >&5"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compiler -V >&5") 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }
12157
12158 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12159 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12160 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169
12170 int
12171 main ()
12172 {
12173 #ifndef __GNUC__
12174 choke me
12175 #endif
12176
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186 esac
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_compile") 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_cxx_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest.$ac_objext; then
12198 ac_compiler_gnu=yes
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 ac_compiler_gnu=no
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12208
12209 fi
12210 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12211 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12212 GXX=`test $ac_compiler_gnu = yes && echo yes`
12213 ac_test_CXXFLAGS=${CXXFLAGS+set}
12214 ac_save_CXXFLAGS=$CXXFLAGS
12215 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12216 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12217 if test "${ac_cv_prog_cxx_g+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12221 ac_cxx_werror_flag=yes
12222 ac_cv_prog_cxx_g=no
12223 CXXFLAGS="-g"
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h. */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12230
12231 int
12232 main ()
12233 {
12234
12235 ;
12236 return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext
12240 if { (ac_try="$ac_compile"
12241 case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_compile") 2>conftest.er1
12247 ac_status=$?
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } && {
12253 test -z "$ac_cxx_werror_flag" ||
12254 test ! -s conftest.err
12255 } && test -s conftest.$ac_objext; then
12256 ac_cv_prog_cxx_g=yes
12257 else
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261 CXXFLAGS=""
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h. */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268
12269 int
12270 main ()
12271 {
12272
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (ac_try="$ac_compile"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_compile") 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } && {
12291 test -z "$ac_cxx_werror_flag" ||
12292 test ! -s conftest.err
12293 } && test -s conftest.$ac_objext; then
12294 :
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12300 CXXFLAGS="-g"
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307
12308 int
12309 main ()
12310 {
12311
12312 ;
12313 return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext
12317 if { (ac_try="$ac_compile"
12318 case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_compile") 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && {
12330 test -z "$ac_cxx_werror_flag" ||
12331 test ! -s conftest.err
12332 } && test -s conftest.$ac_objext; then
12333 ac_cv_prog_cxx_g=yes
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12337
12338
12339 fi
12340
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 fi
12343
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 fi
12346
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12349 fi
12350 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12351 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12352 if test "$ac_test_CXXFLAGS" = set; then
12353 CXXFLAGS=$ac_save_CXXFLAGS
12354 elif test $ac_cv_prog_cxx_g = yes; then
12355 if test "$GXX" = yes; then
12356 CXXFLAGS="-g -O2"
12357 else
12358 CXXFLAGS="-g"
12359 fi
12360 else
12361 if test "$GXX" = yes; then
12362 CXXFLAGS="-O2"
12363 else
12364 CXXFLAGS=
12365 fi
12366 fi
12367 ac_ext=c
12368 ac_cpp='$CPP $CPPFLAGS'
12369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372
12373
12374 ac_ext=cpp
12375 ac_cpp='$CXXCPP $CPPFLAGS'
12376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12379 if test -z "$CXX"; then
12380 if test -n "$CCC"; then
12381 CXX=$CCC
12382 else
12383 if test -n "$ac_tool_prefix"; then
12384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12385 do
12386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12390 if test "${ac_cv_prog_CXX+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 if test -n "$CXX"; then
12394 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12403 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407 done
12408 done
12409 IFS=$as_save_IFS
12410
12411 fi
12412 fi
12413 CXX=$ac_cv_prog_CXX
12414 if test -n "$CXX"; then
12415 { echo "$as_me:$LINENO: result: $CXX" >&5
12416 echo "${ECHO_T}$CXX" >&6; }
12417 else
12418 { echo "$as_me:$LINENO: result: no" >&5
12419 echo "${ECHO_T}no" >&6; }
12420 fi
12421
12422
12423 test -n "$CXX" && break
12424 done
12425 fi
12426 if test -z "$CXX"; then
12427 ac_ct_CXX=$CXX
12428 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12429 do
12430 # Extract the first word of "$ac_prog", so it can be a program name with args.
12431 set dummy $ac_prog; ac_word=$2
12432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 else
12437 if test -n "$ac_ct_CXX"; then
12438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12439 else
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12442 do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12447 ac_cv_prog_ac_ct_CXX="$ac_prog"
12448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12450 fi
12451 done
12452 done
12453 IFS=$as_save_IFS
12454
12455 fi
12456 fi
12457 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12458 if test -n "$ac_ct_CXX"; then
12459 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12460 echo "${ECHO_T}$ac_ct_CXX" >&6; }
12461 else
12462 { echo "$as_me:$LINENO: result: no" >&5
12463 echo "${ECHO_T}no" >&6; }
12464 fi
12465
12466
12467 test -n "$ac_ct_CXX" && break
12468 done
12469
12470 if test "x$ac_ct_CXX" = x; then
12471 CXX="g++"
12472 else
12473 case $cross_compiling:$ac_tool_warned in
12474 yes:)
12475 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12476 whose name does not start with the host triplet. If you think this
12477 configuration is useful to you, please write to [email protected]." >&5
12478 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12479 whose name does not start with the host triplet. If you think this
12480 configuration is useful to you, please write to [email protected]." >&2;}
12481 ac_tool_warned=yes ;;
12482 esac
12483 CXX=$ac_ct_CXX
12484 fi
12485 fi
12486
12487 fi
12488 fi
12489 # Provide some information about the compiler.
12490 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12491 ac_compiler=`set X $ac_compile; echo $2`
12492 { (ac_try="$ac_compiler --version >&5"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496 esac
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_compiler --version >&5") 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }
12502 { (ac_try="$ac_compiler -v >&5"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compiler -v >&5") 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }
12512 { (ac_try="$ac_compiler -V >&5"
12513 case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_compiler -V >&5") 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }
12522
12523 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12524 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12525 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h. */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534
12535 int
12536 main ()
12537 {
12538 #ifndef __GNUC__
12539 choke me
12540 #endif
12541
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (ac_try="$ac_compile"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_compile") 2>conftest.er1
12554 ac_status=$?
12555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_cxx_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest.$ac_objext; then
12563 ac_compiler_gnu=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_compiler_gnu=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12573
12574 fi
12575 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12576 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12577 GXX=`test $ac_compiler_gnu = yes && echo yes`
12578 ac_test_CXXFLAGS=${CXXFLAGS+set}
12579 ac_save_CXXFLAGS=$CXXFLAGS
12580 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12581 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12582 if test "${ac_cv_prog_cxx_g+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12586 ac_cxx_werror_flag=yes
12587 ac_cv_prog_cxx_g=no
12588 CXXFLAGS="-g"
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595
12596 int
12597 main ()
12598 {
12599
12600 ;
12601 return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext
12605 if { (ac_try="$ac_compile"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_compile") 2>conftest.er1
12612 ac_status=$?
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && {
12618 test -z "$ac_cxx_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest.$ac_objext; then
12621 ac_cv_prog_cxx_g=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12625
12626 CXXFLAGS=""
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h. */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633
12634 int
12635 main ()
12636 {
12637
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12647 esac
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_compile") 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_cxx_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.$ac_objext; then
12659 :
12660 else
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12665 CXXFLAGS="-g"
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h. */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672
12673 int
12674 main ()
12675 {
12676
12677 ;
12678 return 0;
12679 }
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (ac_try="$ac_compile"
12683 case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_compile") 2>conftest.er1
12689 ac_status=$?
12690 grep -v '^ *+' conftest.er1 >conftest.err
12691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && {
12695 test -z "$ac_cxx_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest.$ac_objext; then
12698 ac_cv_prog_cxx_g=yes
12699 else
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703
12704 fi
12705
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 fi
12708
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 fi
12711
12712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12714 fi
12715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12716 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12717 if test "$ac_test_CXXFLAGS" = set; then
12718 CXXFLAGS=$ac_save_CXXFLAGS
12719 elif test $ac_cv_prog_cxx_g = yes; then
12720 if test "$GXX" = yes; then
12721 CXXFLAGS="-g -O2"
12722 else
12723 CXXFLAGS="-g"
12724 fi
12725 else
12726 if test "$GXX" = yes; then
12727 CXXFLAGS="-O2"
12728 else
12729 CXXFLAGS=
12730 fi
12731 fi
12732 ac_ext=c
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737
12738 depcc="$CXX" am_compiler_list=
12739
12740 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12742 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12746 # We make a subdir and do the tests there. Otherwise we can end up
12747 # making bogus files that we don't know about and never remove. For
12748 # instance it was reported that on HP-UX the gcc test will end up
12749 # making a dummy file named `D' -- because `-MD' means `put the output
12750 # in D'.
12751 mkdir conftest.dir
12752 # Copy depcomp to subdir because otherwise we won't find it if we're
12753 # using a relative directory.
12754 cp "$am_depcomp" conftest.dir
12755 cd conftest.dir
12756 # We will build objects and dependencies in a subdirectory because
12757 # it helps to detect inapplicable dependency modes. For instance
12758 # both Tru64's cc and ICC support -MD to output dependencies as a
12759 # side effect of compilation, but ICC will put the dependencies in
12760 # the current directory while Tru64 will put them in the object
12761 # directory.
12762 mkdir sub
12763
12764 am_cv_CXX_dependencies_compiler_type=none
12765 if test "$am_compiler_list" = ""; then
12766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12767 fi
12768 for depmode in $am_compiler_list; do
12769 # Setup a source with many dependencies, because some compilers
12770 # like to wrap large dependency lists on column 80 (with \), and
12771 # we should not choose a depcomp mode which is confused by this.
12772 #
12773 # We need to recreate these files for each test, as the compiler may
12774 # overwrite some of them when testing with obscure command lines.
12775 # This happens at least with the AIX C compiler.
12776 : > sub/conftest.c
12777 for i in 1 2 3 4 5 6; do
12778 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12779 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12780 # Solaris 8's {/usr,}/bin/sh.
12781 touch sub/conftst$i.h
12782 done
12783 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12784
12785 case $depmode in
12786 nosideeffect)
12787 # after this tag, mechanisms are not by side-effect, so they'll
12788 # only be used when explicitly requested
12789 if test "x$enable_dependency_tracking" = xyes; then
12790 continue
12791 else
12792 break
12793 fi
12794 ;;
12795 none) break ;;
12796 esac
12797 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12798 # mode. It turns out that the SunPro C++ compiler does not properly
12799 # handle `-M -o', and we need to detect this.
12800 if depmode=$depmode \
12801 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12802 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12803 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12804 >/dev/null 2>conftest.err &&
12805 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12806 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12807 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12808 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12809 # icc doesn't choke on unknown options, it will just issue warnings
12810 # or remarks (even with -Werror). So we grep stderr for any message
12811 # that says an option was ignored or not supported.
12812 # When given -MP, icc 7.0 and 7.1 complain thusly:
12813 # icc: Command line warning: ignoring option '-M'; no argument required
12814 # The diagnosis changed in icc 8.0:
12815 # icc: Command line remark: option '-MP' not supported
12816 if (grep 'ignoring option' conftest.err ||
12817 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12818 am_cv_CXX_dependencies_compiler_type=$depmode
12819 break
12820 fi
12821 fi
12822 done
12823
12824 cd ..
12825 rm -rf conftest.dir
12826 else
12827 am_cv_CXX_dependencies_compiler_type=none
12828 fi
12829
12830 fi
12831 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12832 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
12833 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12834
12835 if
12836 test "x$enable_dependency_tracking" != xno \
12837 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12838 am__fastdepCXX_TRUE=
12839 am__fastdepCXX_FALSE='#'
12840 else
12841 am__fastdepCXX_TRUE='#'
12842 am__fastdepCXX_FALSE=
12843 fi
12844
12845
12846 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12847 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12848 (test "X$CXX" != "Xg++"))) ; then
12849 ac_ext=cpp
12850 ac_cpp='$CXXCPP $CPPFLAGS'
12851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12854 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12855 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12856 if test -z "$CXXCPP"; then
12857 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860 # Double quotes because CXXCPP needs to be expanded
12861 for CXXCPP in "$CXX -E" "/lib/cpp"
12862 do
12863 ac_preproc_ok=false
12864 for ac_cxx_preproc_warn_flag in '' yes
12865 do
12866 # Use a header file that comes with gcc, so configuring glibc
12867 # with a fresh cross-compiler works.
12868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12869 # <limits.h> exists even on freestanding compilers.
12870 # On the NeXT, cc -E runs the code through the compiler's parser,
12871 # not just through cpp. "Syntax error" is here to catch this case.
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h. */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 #ifdef __STDC__
12879 # include <limits.h>
12880 #else
12881 # include <assert.h>
12882 #endif
12883 Syntax error
12884 _ACEOF
12885 if { (ac_try="$ac_cpp conftest.$ac_ext"
12886 case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null && {
12898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12899 test ! -s conftest.err
12900 }; then
12901 :
12902 else
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 # Broken: fails on valid input.
12907 continue
12908 fi
12909
12910 rm -f conftest.err conftest.$ac_ext
12911
12912 # OK, works on sane cases. Now check whether nonexistent headers
12913 # can be detected and how.
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include <ac_nonexistent.h>
12921 _ACEOF
12922 if { (ac_try="$ac_cpp conftest.$ac_ext"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } >/dev/null && {
12935 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12936 test ! -s conftest.err
12937 }; then
12938 # Broken: success on invalid input.
12939 continue
12940 else
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 # Passes both tests.
12945 ac_preproc_ok=:
12946 break
12947 fi
12948
12949 rm -f conftest.err conftest.$ac_ext
12950
12951 done
12952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12953 rm -f conftest.err conftest.$ac_ext
12954 if $ac_preproc_ok; then
12955 break
12956 fi
12957
12958 done
12959 ac_cv_prog_CXXCPP=$CXXCPP
12960
12961 fi
12962 CXXCPP=$ac_cv_prog_CXXCPP
12963 else
12964 ac_cv_prog_CXXCPP=$CXXCPP
12965 fi
12966 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12967 echo "${ECHO_T}$CXXCPP" >&6; }
12968 ac_preproc_ok=false
12969 for ac_cxx_preproc_warn_flag in '' yes
12970 do
12971 # Use a header file that comes with gcc, so configuring glibc
12972 # with a fresh cross-compiler works.
12973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12974 # <limits.h> exists even on freestanding compilers.
12975 # On the NeXT, cc -E runs the code through the compiler's parser,
12976 # not just through cpp. "Syntax error" is here to catch this case.
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h. */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 #ifdef __STDC__
12984 # include <limits.h>
12985 #else
12986 # include <assert.h>
12987 #endif
12988 Syntax error
12989 _ACEOF
12990 if { (ac_try="$ac_cpp conftest.$ac_ext"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994 esac
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } >/dev/null && {
13003 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13004 test ! -s conftest.err
13005 }; then
13006 :
13007 else
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 # Broken: fails on valid input.
13012 continue
13013 fi
13014
13015 rm -f conftest.err conftest.$ac_ext
13016
13017 # OK, works on sane cases. Now check whether nonexistent headers
13018 # can be detected and how.
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h. */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025 #include <ac_nonexistent.h>
13026 _ACEOF
13027 if { (ac_try="$ac_cpp conftest.$ac_ext"
13028 case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13031 esac
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } >/dev/null && {
13040 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13041 test ! -s conftest.err
13042 }; then
13043 # Broken: success on invalid input.
13044 continue
13045 else
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049 # Passes both tests.
13050 ac_preproc_ok=:
13051 break
13052 fi
13053
13054 rm -f conftest.err conftest.$ac_ext
13055
13056 done
13057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13058 rm -f conftest.err conftest.$ac_ext
13059 if $ac_preproc_ok; then
13060 :
13061 else
13062 _lt_caught_CXX_error=yes
13063 fi
13064
13065 ac_ext=c
13066 ac_cpp='$CPP $CPPFLAGS'
13067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13070
13071 else
13072 _lt_caught_CXX_error=yes
13073 fi
13074
13075
13076
13077
13078 ac_ext=cpp
13079 ac_cpp='$CXXCPP $CPPFLAGS'
13080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13083
13084 archive_cmds_need_lc_CXX=no
13085 allow_undefined_flag_CXX=
13086 always_export_symbols_CXX=no
13087 archive_expsym_cmds_CXX=
13088 compiler_needs_object_CXX=no
13089 export_dynamic_flag_spec_CXX=
13090 hardcode_direct_CXX=no
13091 hardcode_direct_absolute_CXX=no
13092 hardcode_libdir_flag_spec_CXX=
13093 hardcode_libdir_flag_spec_ld_CXX=
13094 hardcode_libdir_separator_CXX=
13095 hardcode_minus_L_CXX=no
13096 hardcode_shlibpath_var_CXX=unsupported
13097 hardcode_automatic_CXX=no
13098 inherit_rpath_CXX=no
13099 module_cmds_CXX=
13100 module_expsym_cmds_CXX=
13101 link_all_deplibs_CXX=unknown
13102 old_archive_cmds_CXX=$old_archive_cmds
13103 no_undefined_flag_CXX=
13104 whole_archive_flag_spec_CXX=
13105 enable_shared_with_static_runtimes_CXX=no
13106
13107 # Source file extension for C++ test sources.
13108 ac_ext=cpp
13109
13110 # Object file extension for compiled C++ test sources.
13111 objext=o
13112 objext_CXX=$objext
13113
13114 # No sense in running all these tests if we already determined that
13115 # the CXX compiler isn't working. Some variables (like enable_shared)
13116 # are currently assumed to apply to all compilers on this platform,
13117 # and will be corrupted by setting them based on a non-working compiler.
13118 if test "$_lt_caught_CXX_error" != yes; then
13119 # Code to be used in simple compile tests
13120 lt_simple_compile_test_code="int some_variable = 0;"
13121
13122 # Code to be used in simple link tests
13123 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13124
13125 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13126
13127
13128
13129
13130
13131
13132 # If no C compiler was specified, use CC.
13133 LTCC=${LTCC-"$CC"}
13134
13135 # If no C compiler flags were specified, use CFLAGS.
13136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13137
13138 # Allow CC to be a program name with arguments.
13139 compiler=$CC
13140
13141
13142 # save warnings/boilerplate of simple test code
13143 ac_outfile=conftest.$ac_objext
13144 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13145 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13146 _lt_compiler_boilerplate=`cat conftest.err`
13147 $RM conftest*
13148
13149 ac_outfile=conftest.$ac_objext
13150 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13151 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13152 _lt_linker_boilerplate=`cat conftest.err`
13153 $RM -r conftest*
13154
13155
13156 # Allow CC to be a program name with arguments.
13157 lt_save_CC=$CC
13158 lt_save_LD=$LD
13159 lt_save_GCC=$GCC
13160 GCC=$GXX
13161 lt_save_with_gnu_ld=$with_gnu_ld
13162 lt_save_path_LD=$lt_cv_path_LD
13163 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13164 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13165 else
13166 $as_unset lt_cv_prog_gnu_ld
13167 fi
13168 if test -n "${lt_cv_path_LDCXX+set}"; then
13169 lt_cv_path_LD=$lt_cv_path_LDCXX
13170 else
13171 $as_unset lt_cv_path_LD
13172 fi
13173 test -z "${LDCXX+set}" || LD=$LDCXX
13174 CC=${CXX-"c++"}
13175 compiler=$CC
13176 compiler_CXX=$CC
13177 for cc_temp in $compiler""; do
13178 case $cc_temp in
13179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13181 \-*) ;;
13182 *) break;;
13183 esac
13184 done
13185 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13186
13187
13188 if test -n "$compiler"; then
13189 # We don't want -fno-exception when compiling C++ code, so set the
13190 # no_builtin_flag separately
13191 if test "$GXX" = yes; then
13192 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13193 else
13194 lt_prog_compiler_no_builtin_flag_CXX=
13195 fi
13196
13197 if test "$GXX" = yes; then
13198 # Set up default GNU C++ configuration
13199
13200
13201
13202 # Check whether --with-gnu-ld was given.
13203 if test "${with_gnu_ld+set}" = set; then
13204 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13205 else
13206 with_gnu_ld=no
13207 fi
13208
13209 ac_prog=ld
13210 if test "$GCC" = yes; then
13211 # Check if gcc -print-prog-name=ld gives a path.
13212 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13213 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13214 case $host in
13215 *-*-mingw*)
13216 # gcc leaves a trailing carriage return which upsets mingw
13217 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13218 *)
13219 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13220 esac
13221 case $ac_prog in
13222 # Accept absolute paths.
13223 [\\/]* | ?:[\\/]*)
13224 re_direlt='/[^/][^/]*/\.\./'
13225 # Canonicalize the pathname of ld
13226 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13227 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13228 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13229 done
13230 test -z "$LD" && LD="$ac_prog"
13231 ;;
13232 "")
13233 # If it fails, then pretend we aren't using GCC.
13234 ac_prog=ld
13235 ;;
13236 *)
13237 # If it is relative, then search for the first ld in PATH.
13238 with_gnu_ld=unknown
13239 ;;
13240 esac
13241 elif test "$with_gnu_ld" = yes; then
13242 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13243 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13244 else
13245 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13246 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13247 fi
13248 if test "${lt_cv_path_LD+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251 if test -z "$LD"; then
13252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13253 for ac_dir in $PATH; do
13254 IFS="$lt_save_ifs"
13255 test -z "$ac_dir" && ac_dir=.
13256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13257 lt_cv_path_LD="$ac_dir/$ac_prog"
13258 # Check to see if the program is GNU ld. I'd rather use --version,
13259 # but apparently some variants of GNU ld only accept -v.
13260 # Break only if it was the GNU/non-GNU ld that we prefer.
13261 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13262 *GNU* | *'with BFD'*)
13263 test "$with_gnu_ld" != no && break
13264 ;;
13265 *)
13266 test "$with_gnu_ld" != yes && break
13267 ;;
13268 esac
13269 fi
13270 done
13271 IFS="$lt_save_ifs"
13272 else
13273 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13274 fi
13275 fi
13276
13277 LD="$lt_cv_path_LD"
13278 if test -n "$LD"; then
13279 { echo "$as_me:$LINENO: result: $LD" >&5
13280 echo "${ECHO_T}$LD" >&6; }
13281 else
13282 { echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6; }
13284 fi
13285 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13286 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13287 { (exit 1); exit 1; }; }
13288 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13289 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13290 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13294 case `$LD -v 2>&1 </dev/null` in
13295 *GNU* | *'with BFD'*)
13296 lt_cv_prog_gnu_ld=yes
13297 ;;
13298 *)
13299 lt_cv_prog_gnu_ld=no
13300 ;;
13301 esac
13302 fi
13303 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13304 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13305 with_gnu_ld=$lt_cv_prog_gnu_ld
13306
13307
13308
13309
13310
13311
13312
13313 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13314 # archiving commands below assume that GNU ld is being used.
13315 if test "$with_gnu_ld" = yes; then
13316 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13318
13319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13321
13322 # If archive_cmds runs LD, not CC, wlarc should be empty
13323 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13324 # investigate it a little bit more. (MM)
13325 wlarc='${wl}'
13326
13327 # ancient GNU ld didn't support --whole-archive et. al.
13328 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13329 $GREP 'no-whole-archive' > /dev/null; then
13330 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13331 else
13332 whole_archive_flag_spec_CXX=
13333 fi
13334 else
13335 with_gnu_ld=no
13336 wlarc=
13337
13338 # A generic and very simple default shared library creation
13339 # command for GNU C++ for the case where it uses the native
13340 # linker, instead of GNU ld. If possible, this setting should
13341 # overridden to take advantage of the native linker features on
13342 # the platform it is being used on.
13343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13344 fi
13345
13346 # Commands to make compiler produce verbose output that lists
13347 # what "hidden" libraries, object files and flags are used when
13348 # linking a shared library.
13349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13350
13351 else
13352 GXX=no
13353 with_gnu_ld=no
13354 wlarc=
13355 fi
13356
13357 # PORTME: fill in a description of your system's C++ link characteristics
13358 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13360 ld_shlibs_CXX=yes
13361 case $host_os in
13362 aix3*)
13363 # FIXME: insert proper C++ library support
13364 ld_shlibs_CXX=no
13365 ;;
13366 aix[4-9]*)
13367 if test "$host_cpu" = ia64; then
13368 # On IA64, the linker does run time linking by default, so we don't
13369 # have to do anything special.
13370 aix_use_runtimelinking=no
13371 exp_sym_flag='-Bexport'
13372 no_entry_flag=""
13373 else
13374 aix_use_runtimelinking=no
13375
13376 # Test if we are trying to use run time linking or normal
13377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13378 # need to do runtime linking.
13379 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13380 for ld_flag in $LDFLAGS; do
13381 case $ld_flag in
13382 *-brtl*)
13383 aix_use_runtimelinking=yes
13384 break
13385 ;;
13386 esac
13387 done
13388 ;;
13389 esac
13390
13391 exp_sym_flag='-bexport'
13392 no_entry_flag='-bnoentry'
13393 fi
13394
13395 # When large executables or shared objects are built, AIX ld can
13396 # have problems creating the table of contents. If linking a library
13397 # or program results in "error TOC overflow" add -mminimal-toc to
13398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13400
13401 archive_cmds_CXX=''
13402 hardcode_direct_CXX=yes
13403 hardcode_direct_absolute_CXX=yes
13404 hardcode_libdir_separator_CXX=':'
13405 link_all_deplibs_CXX=yes
13406 file_list_spec_CXX='${wl}-f,'
13407
13408 if test "$GXX" = yes; then
13409 case $host_os in aix4.[012]|aix4.[012].*)
13410 # We only want to do this on AIX 4.2 and lower, the check
13411 # below for broken collect2 doesn't work under 4.3+
13412 collect2name=`${CC} -print-prog-name=collect2`
13413 if test -f "$collect2name" &&
13414 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13415 then
13416 # We have reworked collect2
13417 :
13418 else
13419 # We have old collect2
13420 hardcode_direct_CXX=unsupported
13421 # It fails to find uninstalled libraries when the uninstalled
13422 # path is not listed in the libpath. Setting hardcode_minus_L
13423 # to unsupported forces relinking
13424 hardcode_minus_L_CXX=yes
13425 hardcode_libdir_flag_spec_CXX='-L$libdir'
13426 hardcode_libdir_separator_CXX=
13427 fi
13428 esac
13429 shared_flag='-shared'
13430 if test "$aix_use_runtimelinking" = yes; then
13431 shared_flag="$shared_flag "'${wl}-G'
13432 fi
13433 else
13434 # not using gcc
13435 if test "$host_cpu" = ia64; then
13436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13437 # chokes on -Wl,-G. The following line is correct:
13438 shared_flag='-G'
13439 else
13440 if test "$aix_use_runtimelinking" = yes; then
13441 shared_flag='${wl}-G'
13442 else
13443 shared_flag='${wl}-bM:SRE'
13444 fi
13445 fi
13446 fi
13447
13448 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13449 # It seems that -bexpall does not export symbols beginning with
13450 # underscore (_), so it is better to generate a list of symbols to
13451 # export.
13452 always_export_symbols_CXX=yes
13453 if test "$aix_use_runtimelinking" = yes; then
13454 # Warning - without using the other runtime loading flags (-brtl),
13455 # -berok will link without error, but may produce a broken library.
13456 allow_undefined_flag_CXX='-berok'
13457 # Determine the default libpath from the value encoded in an empty
13458 # executable.
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_cxx_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest$ac_exeext &&
13491 $as_test_x conftest$ac_exeext; then
13492
13493 lt_aix_libpath_sed='
13494 /Import File Strings/,/^$/ {
13495 /^0/ {
13496 s/^0 *\(.*\)$/\1/
13497 p
13498 }
13499 }'
13500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13501 # Check for a 64-bit object if we didn't find anything.
13502 if test -z "$aix_libpath"; then
13503 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13504 fi
13505 else
13506 echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13508
13509
13510 fi
13511
13512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13513 conftest$ac_exeext conftest.$ac_ext
13514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13515
13516 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13517
13518 archive_expsym_cmds_CXX='$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"
13519 else
13520 if test "$host_cpu" = ia64; then
13521 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13522 allow_undefined_flag_CXX="-z nodefs"
13523 archive_expsym_cmds_CXX="\$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"
13524 else
13525 # Determine the default libpath from the value encoded in an
13526 # empty executable.
13527 cat >conftest.$ac_ext <<_ACEOF
13528 /* confdefs.h. */
13529 _ACEOF
13530 cat confdefs.h >>conftest.$ac_ext
13531 cat >>conftest.$ac_ext <<_ACEOF
13532 /* end confdefs.h. */
13533
13534 int
13535 main ()
13536 {
13537
13538 ;
13539 return 0;
13540 }
13541 _ACEOF
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_link") 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } && {
13556 test -z "$ac_cxx_werror_flag" ||
13557 test ! -s conftest.err
13558 } && test -s conftest$ac_exeext &&
13559 $as_test_x conftest$ac_exeext; then
13560
13561 lt_aix_libpath_sed='
13562 /Import File Strings/,/^$/ {
13563 /^0/ {
13564 s/^0 *\(.*\)$/\1/
13565 p
13566 }
13567 }'
13568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13569 # Check for a 64-bit object if we didn't find anything.
13570 if test -z "$aix_libpath"; then
13571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13572 fi
13573 else
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577
13578 fi
13579
13580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13581 conftest$ac_exeext conftest.$ac_ext
13582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583
13584 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13585 # Warning - without using the other run time loading flags,
13586 # -berok will link without error, but may produce a broken library.
13587 no_undefined_flag_CXX=' ${wl}-bernotok'
13588 allow_undefined_flag_CXX=' ${wl}-berok'
13589 # Exported symbols can be pulled into shared objects from archives
13590 whole_archive_flag_spec_CXX='$convenience'
13591 archive_cmds_need_lc_CXX=yes
13592 # This is similar to how AIX traditionally builds its shared
13593 # libraries.
13594 archive_expsym_cmds_CXX="\$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'
13595 fi
13596 fi
13597 ;;
13598
13599 beos*)
13600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13601 allow_undefined_flag_CXX=unsupported
13602 # Joseph Beckenbach <[email protected]> says some releases of gcc
13603 # support --undefined. This deserves some investigation. FIXME
13604 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13605 else
13606 ld_shlibs_CXX=no
13607 fi
13608 ;;
13609
13610 chorus*)
13611 case $cc_basename in
13612 *)
13613 # FIXME: insert proper C++ library support
13614 ld_shlibs_CXX=no
13615 ;;
13616 esac
13617 ;;
13618
13619 cygwin* | mingw* | pw32* | cegcc*)
13620 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13621 # as there is no search path for DLLs.
13622 hardcode_libdir_flag_spec_CXX='-L$libdir'
13623 allow_undefined_flag_CXX=unsupported
13624 always_export_symbols_CXX=no
13625 enable_shared_with_static_runtimes_CXX=yes
13626
13627 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13628 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13629 # If the export-symbols file already is a .def file (1st line
13630 # is EXPORTS), use it as is; otherwise, prepend...
13631 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13632 cp $export_symbols $output_objdir/$soname.def;
13633 else
13634 echo EXPORTS > $output_objdir/$soname.def;
13635 cat $export_symbols >> $output_objdir/$soname.def;
13636 fi~
13637 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13638 else
13639 ld_shlibs_CXX=no
13640 fi
13641 ;;
13642 darwin* | rhapsody*)
13643
13644
13645 archive_cmds_need_lc_CXX=no
13646 hardcode_direct_CXX=no
13647 hardcode_automatic_CXX=yes
13648 hardcode_shlibpath_var_CXX=unsupported
13649 whole_archive_flag_spec_CXX=''
13650 link_all_deplibs_CXX=yes
13651 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13652 case $cc_basename in
13653 ifort*) _lt_dar_can_shared=yes ;;
13654 *) _lt_dar_can_shared=$GCC ;;
13655 esac
13656 if test "$_lt_dar_can_shared" = "yes"; then
13657 output_verbose_link_cmd=echo
13658 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13659 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13660 archive_expsym_cmds_CXX="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}"
13661 module_expsym_cmds_CXX="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}"
13662 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13663 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13664 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13665 fi
13666
13667 else
13668 ld_shlibs_CXX=no
13669 fi
13670
13671 ;;
13672
13673 dgux*)
13674 case $cc_basename in
13675 ec++*)
13676 # FIXME: insert proper C++ library support
13677 ld_shlibs_CXX=no
13678 ;;
13679 ghcx*)
13680 # Green Hills C++ Compiler
13681 # FIXME: insert proper C++ library support
13682 ld_shlibs_CXX=no
13683 ;;
13684 *)
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13687 ;;
13688 esac
13689 ;;
13690
13691 freebsd[12]*)
13692 # C++ shared libraries reported to be fairly broken before
13693 # switch to ELF
13694 ld_shlibs_CXX=no
13695 ;;
13696
13697 freebsd-elf*)
13698 archive_cmds_need_lc_CXX=no
13699 ;;
13700
13701 freebsd* | dragonfly*)
13702 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13703 # conventions
13704 ld_shlibs_CXX=yes
13705 ;;
13706
13707 gnu*)
13708 ;;
13709
13710 hpux9*)
13711 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13712 hardcode_libdir_separator_CXX=:
13713 export_dynamic_flag_spec_CXX='${wl}-E'
13714 hardcode_direct_CXX=yes
13715 hardcode_minus_L_CXX=yes # Not in the search PATH,
13716 # but as the default
13717 # location of the library.
13718
13719 case $cc_basename in
13720 CC*)
13721 # FIXME: insert proper C++ library support
13722 ld_shlibs_CXX=no
13723 ;;
13724 aCC*)
13725 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13726 # Commands to make compiler produce verbose output that lists
13727 # what "hidden" libraries, object files and flags are used when
13728 # linking a shared library.
13729 #
13730 # There doesn't appear to be a way to prevent this compiler from
13731 # explicitly linking system object files so we need to strip them
13732 # from the output so that they don't get included in the library
13733 # dependencies.
13734 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13735 ;;
13736 *)
13737 if test "$GXX" = yes; then
13738 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13739 else
13740 # FIXME: insert proper C++ library support
13741 ld_shlibs_CXX=no
13742 fi
13743 ;;
13744 esac
13745 ;;
13746
13747 hpux10*|hpux11*)
13748 if test $with_gnu_ld = no; then
13749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13750 hardcode_libdir_separator_CXX=:
13751
13752 case $host_cpu in
13753 hppa*64*|ia64*)
13754 ;;
13755 *)
13756 export_dynamic_flag_spec_CXX='${wl}-E'
13757 ;;
13758 esac
13759 fi
13760 case $host_cpu in
13761 hppa*64*|ia64*)
13762 hardcode_direct_CXX=no
13763 hardcode_shlibpath_var_CXX=no
13764 ;;
13765 *)
13766 hardcode_direct_CXX=yes
13767 hardcode_direct_absolute_CXX=yes
13768 hardcode_minus_L_CXX=yes # Not in the search PATH,
13769 # but as the default
13770 # location of the library.
13771 ;;
13772 esac
13773
13774 case $cc_basename in
13775 CC*)
13776 # FIXME: insert proper C++ library support
13777 ld_shlibs_CXX=no
13778 ;;
13779 aCC*)
13780 case $host_cpu in
13781 hppa*64*)
13782 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13783 ;;
13784 ia64*)
13785 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13786 ;;
13787 *)
13788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13789 ;;
13790 esac
13791 # Commands to make compiler produce verbose output that lists
13792 # what "hidden" libraries, object files and flags are used when
13793 # linking a shared library.
13794 #
13795 # There doesn't appear to be a way to prevent this compiler from
13796 # explicitly linking system object files so we need to strip them
13797 # from the output so that they don't get included in the library
13798 # dependencies.
13799 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13800 ;;
13801 *)
13802 if test "$GXX" = yes; then
13803 if test $with_gnu_ld = no; then
13804 case $host_cpu in
13805 hppa*64*)
13806 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13807 ;;
13808 ia64*)
13809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13810 ;;
13811 *)
13812 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13813 ;;
13814 esac
13815 fi
13816 else
13817 # FIXME: insert proper C++ library support
13818 ld_shlibs_CXX=no
13819 fi
13820 ;;
13821 esac
13822 ;;
13823
13824 interix[3-9]*)
13825 hardcode_direct_CXX=no
13826 hardcode_shlibpath_var_CXX=no
13827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13828 export_dynamic_flag_spec_CXX='${wl}-E'
13829 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13830 # Instead, shared libraries are loaded at an image base (0x10000000 by
13831 # default) and relocated if they conflict, which is a slow very memory
13832 # consuming and fragmenting process. To avoid this, we pick a random,
13833 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13834 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13835 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13836 archive_expsym_cmds_CXX='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'
13837 ;;
13838 irix5* | irix6*)
13839 case $cc_basename in
13840 CC*)
13841 # SGI C++
13842 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13843
13844 # Archives containing C++ object files must be created using
13845 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13846 # necessary to make sure instantiated templates are included
13847 # in the archive.
13848 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13849 ;;
13850 *)
13851 if test "$GXX" = yes; then
13852 if test "$with_gnu_ld" = no; then
13853 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13854 else
13855 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13856 fi
13857 fi
13858 link_all_deplibs_CXX=yes
13859 ;;
13860 esac
13861 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13862 hardcode_libdir_separator_CXX=:
13863 inherit_rpath_CXX=yes
13864 ;;
13865
13866 linux* | k*bsd*-gnu)
13867 case $cc_basename in
13868 KCC*)
13869 # Kuck and Associates, Inc. (KAI) C++ Compiler
13870
13871 # KCC will only create a shared library if the output file
13872 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13873 # to its proper name (with version) after linking.
13874 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13875 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13876 # Commands to make compiler produce verbose output that lists
13877 # what "hidden" libraries, object files and flags are used when
13878 # linking a shared library.
13879 #
13880 # There doesn't appear to be a way to prevent this compiler from
13881 # explicitly linking system object files so we need to strip them
13882 # from the output so that they don't get included in the library
13883 # dependencies.
13884 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13885
13886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13887 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13888
13889 # Archives containing C++ object files must be created using
13890 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13891 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13892 ;;
13893 icpc* | ecpc* )
13894 # Intel C++
13895 with_gnu_ld=yes
13896 # version 8.0 and above of icpc choke on multiply defined symbols
13897 # if we add $predep_objects and $postdep_objects, however 7.1 and
13898 # earlier do not add the objects themselves.
13899 case `$CC -V 2>&1` in
13900 *"Version 7."*)
13901 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903 ;;
13904 *) # Version 8.0 or newer
13905 tmp_idyn=
13906 case $host_cpu in
13907 ia64*) tmp_idyn=' -i_dynamic';;
13908 esac
13909 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13910 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13911 ;;
13912 esac
13913 archive_cmds_need_lc_CXX=no
13914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13915 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13916 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13917 ;;
13918 pgCC* | pgcpp*)
13919 # Portland Group C++ compiler
13920 case `$CC -V` in
13921 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13922 prelink_cmds_CXX='tpldir=Template.dir~
13923 rm -rf $tpldir~
13924 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13925 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13926 old_archive_cmds_CXX='tpldir=Template.dir~
13927 rm -rf $tpldir~
13928 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13929 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13930 $RANLIB $oldlib'
13931 archive_cmds_CXX='tpldir=Template.dir~
13932 rm -rf $tpldir~
13933 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13934 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13935 archive_expsym_cmds_CXX='tpldir=Template.dir~
13936 rm -rf $tpldir~
13937 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13938 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13939 ;;
13940 *) # Version 6 will use weak symbols
13941 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13942 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13943 ;;
13944 esac
13945
13946 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13948 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13949 ;;
13950 cxx*)
13951 # Compaq C++
13952 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13953 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13954
13955 runpath_var=LD_RUN_PATH
13956 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13957 hardcode_libdir_separator_CXX=:
13958
13959 # Commands to make compiler produce verbose output that lists
13960 # what "hidden" libraries, object files and flags are used when
13961 # linking a shared library.
13962 #
13963 # There doesn't appear to be a way to prevent this compiler from
13964 # explicitly linking system object files so we need to strip them
13965 # from the output so that they don't get included in the library
13966 # dependencies.
13967 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13968 ;;
13969 xl*)
13970 # IBM XL 8.0 on PPC, with GNU ld
13971 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13973 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13974 if test "x$supports_anon_versioning" = xyes; then
13975 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13977 echo "local: *; };" >> $output_objdir/$libname.ver~
13978 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13979 fi
13980 ;;
13981 *)
13982 case `$CC -V 2>&1 | sed 5q` in
13983 *Sun\ C*)
13984 # Sun C++ 5.9
13985 no_undefined_flag_CXX=' -zdefs'
13986 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13987 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13988 hardcode_libdir_flag_spec_CXX='-R$libdir'
13989 whole_archive_flag_spec_CXX='${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'
13990 compiler_needs_object_CXX=yes
13991
13992 # Not sure whether something based on
13993 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13994 # would be better.
13995 output_verbose_link_cmd='echo'
13996
13997 # Archives containing C++ object files must be created using
13998 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13999 # necessary to make sure instantiated templates are included
14000 # in the archive.
14001 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14002 ;;
14003 esac
14004 ;;
14005 esac
14006 ;;
14007
14008 lynxos*)
14009 # FIXME: insert proper C++ library support
14010 ld_shlibs_CXX=no
14011 ;;
14012
14013 m88k*)
14014 # FIXME: insert proper C++ library support
14015 ld_shlibs_CXX=no
14016 ;;
14017
14018 mvs*)
14019 case $cc_basename in
14020 cxx*)
14021 # FIXME: insert proper C++ library support
14022 ld_shlibs_CXX=no
14023 ;;
14024 *)
14025 # FIXME: insert proper C++ library support
14026 ld_shlibs_CXX=no
14027 ;;
14028 esac
14029 ;;
14030
14031 netbsd*)
14032 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14033 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14034 wlarc=
14035 hardcode_libdir_flag_spec_CXX='-R$libdir'
14036 hardcode_direct_CXX=yes
14037 hardcode_shlibpath_var_CXX=no
14038 fi
14039 # Workaround some broken pre-1.5 toolchains
14040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14041 ;;
14042
14043 *nto* | *qnx*)
14044 ld_shlibs_CXX=yes
14045 ;;
14046
14047 openbsd2*)
14048 # C++ shared libraries are fairly broken
14049 ld_shlibs_CXX=no
14050 ;;
14051
14052 openbsd*)
14053 if test -f /usr/libexec/ld.so; then
14054 hardcode_direct_CXX=yes
14055 hardcode_shlibpath_var_CXX=no
14056 hardcode_direct_absolute_CXX=yes
14057 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14058 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14060 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14061 export_dynamic_flag_spec_CXX='${wl}-E'
14062 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14063 fi
14064 output_verbose_link_cmd=echo
14065 else
14066 ld_shlibs_CXX=no
14067 fi
14068 ;;
14069
14070 osf3* | osf4* | osf5*)
14071 case $cc_basename in
14072 KCC*)
14073 # Kuck and Associates, Inc. (KAI) C++ Compiler
14074
14075 # KCC will only create a shared library if the output file
14076 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14077 # to its proper name (with version) after linking.
14078 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14079
14080 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14081 hardcode_libdir_separator_CXX=:
14082
14083 # Archives containing C++ object files must be created using
14084 # the KAI C++ compiler.
14085 case $host in
14086 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14087 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14088 esac
14089 ;;
14090 RCC*)
14091 # Rational C++ 2.4.1
14092 # FIXME: insert proper C++ library support
14093 ld_shlibs_CXX=no
14094 ;;
14095 cxx*)
14096 case $host in
14097 osf3*)
14098 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14099 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14101 ;;
14102 *)
14103 allow_undefined_flag_CXX=' -expect_unresolved \*'
14104 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14105 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14106 echo "-hidden">> $lib.exp~
14107 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14108 $RM $lib.exp'
14109 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14110 ;;
14111 esac
14112
14113 hardcode_libdir_separator_CXX=:
14114
14115 # Commands to make compiler produce verbose output that lists
14116 # what "hidden" libraries, object files and flags are used when
14117 # linking a shared library.
14118 #
14119 # There doesn't appear to be a way to prevent this compiler from
14120 # explicitly linking system object files so we need to strip them
14121 # from the output so that they don't get included in the library
14122 # dependencies.
14123 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14124 ;;
14125 *)
14126 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14127 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14128 case $host in
14129 osf3*)
14130 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14131 ;;
14132 *)
14133 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14134 ;;
14135 esac
14136
14137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14138 hardcode_libdir_separator_CXX=:
14139
14140 # Commands to make compiler produce verbose output that lists
14141 # what "hidden" libraries, object files and flags are used when
14142 # linking a shared library.
14143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14144
14145 else
14146 # FIXME: insert proper C++ library support
14147 ld_shlibs_CXX=no
14148 fi
14149 ;;
14150 esac
14151 ;;
14152
14153 psos*)
14154 # FIXME: insert proper C++ library support
14155 ld_shlibs_CXX=no
14156 ;;
14157
14158 sunos4*)
14159 case $cc_basename in
14160 CC*)
14161 # Sun C++ 4.x
14162 # FIXME: insert proper C++ library support
14163 ld_shlibs_CXX=no
14164 ;;
14165 lcc*)
14166 # Lucid
14167 # FIXME: insert proper C++ library support
14168 ld_shlibs_CXX=no
14169 ;;
14170 *)
14171 # FIXME: insert proper C++ library support
14172 ld_shlibs_CXX=no
14173 ;;
14174 esac
14175 ;;
14176
14177 solaris*)
14178 case $cc_basename in
14179 CC*)
14180 # Sun C++ 4.2, 5.x and Centerline C++
14181 archive_cmds_need_lc_CXX=yes
14182 no_undefined_flag_CXX=' -zdefs'
14183 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14184 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14185 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14186
14187 hardcode_libdir_flag_spec_CXX='-R$libdir'
14188 hardcode_shlibpath_var_CXX=no
14189 case $host_os in
14190 solaris2.[0-5] | solaris2.[0-5].*) ;;
14191 *)
14192 # The compiler driver will combine and reorder linker options,
14193 # but understands `-z linker_flag'.
14194 # Supported since Solaris 2.6 (maybe 2.5.1?)
14195 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14196 ;;
14197 esac
14198 link_all_deplibs_CXX=yes
14199
14200 output_verbose_link_cmd='echo'
14201
14202 # Archives containing C++ object files must be created using
14203 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14204 # necessary to make sure instantiated templates are included
14205 # in the archive.
14206 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14207 ;;
14208 gcx*)
14209 # Green Hills C++ Compiler
14210 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14211
14212 # The C++ compiler must be used to create the archive.
14213 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14214 ;;
14215 *)
14216 # GNU C++ compiler with Solaris linker
14217 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14218 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14219 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14220 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14222 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14223
14224 # Commands to make compiler produce verbose output that lists
14225 # what "hidden" libraries, object files and flags are used when
14226 # linking a shared library.
14227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14228 else
14229 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14230 # platform.
14231 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14232 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14233 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14234
14235 # Commands to make compiler produce verbose output that lists
14236 # what "hidden" libraries, object files and flags are used when
14237 # linking a shared library.
14238 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14239 fi
14240
14241 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14242 case $host_os in
14243 solaris2.[0-5] | solaris2.[0-5].*) ;;
14244 *)
14245 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14246 ;;
14247 esac
14248 fi
14249 ;;
14250 esac
14251 ;;
14252
14253 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14254 no_undefined_flag_CXX='${wl}-z,text'
14255 archive_cmds_need_lc_CXX=no
14256 hardcode_shlibpath_var_CXX=no
14257 runpath_var='LD_RUN_PATH'
14258
14259 case $cc_basename in
14260 CC*)
14261 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14262 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14263 ;;
14264 *)
14265 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14266 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14267 ;;
14268 esac
14269 ;;
14270
14271 sysv5* | sco3.2v5* | sco5v6*)
14272 # Note: We can NOT use -z defs as we might desire, because we do not
14273 # link with -lc, and that would cause any symbols used from libc to
14274 # always be unresolved, which means just about no library would
14275 # ever link correctly. If we're not using GNU ld we use -z text
14276 # though, which does catch some bad symbols but isn't as heavy-handed
14277 # as -z defs.
14278 no_undefined_flag_CXX='${wl}-z,text'
14279 allow_undefined_flag_CXX='${wl}-z,nodefs'
14280 archive_cmds_need_lc_CXX=no
14281 hardcode_shlibpath_var_CXX=no
14282 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14283 hardcode_libdir_separator_CXX=':'
14284 link_all_deplibs_CXX=yes
14285 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14286 runpath_var='LD_RUN_PATH'
14287
14288 case $cc_basename in
14289 CC*)
14290 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14291 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14292 ;;
14293 *)
14294 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14295 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14296 ;;
14297 esac
14298 ;;
14299
14300 tandem*)
14301 case $cc_basename in
14302 NCC*)
14303 # NonStop-UX NCC 3.20
14304 # FIXME: insert proper C++ library support
14305 ld_shlibs_CXX=no
14306 ;;
14307 *)
14308 # FIXME: insert proper C++ library support
14309 ld_shlibs_CXX=no
14310 ;;
14311 esac
14312 ;;
14313
14314 vxworks*)
14315 # FIXME: insert proper C++ library support
14316 ld_shlibs_CXX=no
14317 ;;
14318
14319 *)
14320 # FIXME: insert proper C++ library support
14321 ld_shlibs_CXX=no
14322 ;;
14323 esac
14324
14325 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14326 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14327 test "$ld_shlibs_CXX" = no && can_build_shared=no
14328
14329 GCC_CXX="$GXX"
14330 LD_CXX="$LD"
14331
14332 ## CAVEAT EMPTOR:
14333 ## There is no encapsulation within the following macros, do not change
14334 ## the running order or otherwise move them around unless you know exactly
14335 ## what you are doing...
14336 # Dependencies to place before and after the object being linked:
14337 predep_objects_CXX=
14338 postdep_objects_CXX=
14339 predeps_CXX=
14340 postdeps_CXX=
14341 compiler_lib_search_path_CXX=
14342
14343 cat > conftest.$ac_ext <<_LT_EOF
14344 class Foo
14345 {
14346 public:
14347 Foo (void) { a = 0; }
14348 private:
14349 int a;
14350 };
14351 _LT_EOF
14352
14353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354 (eval $ac_compile) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; then
14358 # Parse the compiler output and extract the necessary
14359 # objects, libraries and library flags.
14360
14361 # Sentinel used to keep track of whether or not we are before
14362 # the conftest object file.
14363 pre_test_object_deps_done=no
14364
14365 for p in `eval "$output_verbose_link_cmd"`; do
14366 case $p in
14367
14368 -L* | -R* | -l*)
14369 # Some compilers place space between "-{L,R}" and the path.
14370 # Remove the space.
14371 if test $p = "-L" ||
14372 test $p = "-R"; then
14373 prev=$p
14374 continue
14375 else
14376 prev=
14377 fi
14378
14379 if test "$pre_test_object_deps_done" = no; then
14380 case $p in
14381 -L* | -R*)
14382 # Internal compiler library paths should come after those
14383 # provided the user. The postdeps already come after the
14384 # user supplied libs so there is no need to process them.
14385 if test -z "$compiler_lib_search_path_CXX"; then
14386 compiler_lib_search_path_CXX="${prev}${p}"
14387 else
14388 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14389 fi
14390 ;;
14391 # The "-l" case would never come before the object being
14392 # linked, so don't bother handling this case.
14393 esac
14394 else
14395 if test -z "$postdeps_CXX"; then
14396 postdeps_CXX="${prev}${p}"
14397 else
14398 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14399 fi
14400 fi
14401 ;;
14402
14403 *.$objext)
14404 # This assumes that the test object file only shows up
14405 # once in the compiler output.
14406 if test "$p" = "conftest.$objext"; then
14407 pre_test_object_deps_done=yes
14408 continue
14409 fi
14410
14411 if test "$pre_test_object_deps_done" = no; then
14412 if test -z "$predep_objects_CXX"; then
14413 predep_objects_CXX="$p"
14414 else
14415 predep_objects_CXX="$predep_objects_CXX $p"
14416 fi
14417 else
14418 if test -z "$postdep_objects_CXX"; then
14419 postdep_objects_CXX="$p"
14420 else
14421 postdep_objects_CXX="$postdep_objects_CXX $p"
14422 fi
14423 fi
14424 ;;
14425
14426 *) ;; # Ignore the rest.
14427
14428 esac
14429 done
14430
14431 # Clean up.
14432 rm -f a.out a.exe
14433 else
14434 echo "libtool.m4: error: problem compiling CXX test program"
14435 fi
14436
14437 $RM -f confest.$objext
14438
14439 # PORTME: override above test on systems where it is broken
14440 case $host_os in
14441 interix[3-9]*)
14442 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14443 # hack all around it, let's just trust "g++" to DTRT.
14444 predep_objects_CXX=
14445 postdep_objects_CXX=
14446 postdeps_CXX=
14447 ;;
14448
14449 linux*)
14450 case `$CC -V 2>&1 | sed 5q` in
14451 *Sun\ C*)
14452 # Sun C++ 5.9
14453
14454 # The more standards-conforming stlport4 library is
14455 # incompatible with the Cstd library. Avoid specifying
14456 # it if it's in CXXFLAGS. Ignore libCrun as
14457 # -library=stlport4 depends on it.
14458 case " $CXX $CXXFLAGS " in
14459 *" -library=stlport4 "*)
14460 solaris_use_stlport4=yes
14461 ;;
14462 esac
14463
14464 if test "$solaris_use_stlport4" != yes; then
14465 postdeps_CXX='-library=Cstd -library=Crun'
14466 fi
14467 ;;
14468 esac
14469 ;;
14470
14471 solaris*)
14472 case $cc_basename in
14473 CC*)
14474 # The more standards-conforming stlport4 library is
14475 # incompatible with the Cstd library. Avoid specifying
14476 # it if it's in CXXFLAGS. Ignore libCrun as
14477 # -library=stlport4 depends on it.
14478 case " $CXX $CXXFLAGS " in
14479 *" -library=stlport4 "*)
14480 solaris_use_stlport4=yes
14481 ;;
14482 esac
14483
14484 # Adding this requires a known-good setup of shared libraries for
14485 # Sun compiler versions before 5.6, else PIC objects from an old
14486 # archive will be linked into the output, leading to subtle bugs.
14487 if test "$solaris_use_stlport4" != yes; then
14488 postdeps_CXX='-library=Cstd -library=Crun'
14489 fi
14490 ;;
14491 esac
14492 ;;
14493 esac
14494
14495
14496 case " $postdeps_CXX " in
14497 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14498 esac
14499 compiler_lib_search_dirs_CXX=
14500 if test -n "${compiler_lib_search_path_CXX}"; then
14501 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14502 fi
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534 lt_prog_compiler_wl_CXX=
14535 lt_prog_compiler_pic_CXX=
14536 lt_prog_compiler_static_CXX=
14537
14538 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14539 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14540
14541 # C++ specific cases for pic, static, wl, etc.
14542 if test "$GXX" = yes; then
14543 lt_prog_compiler_wl_CXX='-Wl,'
14544 lt_prog_compiler_static_CXX='-static'
14545
14546 case $host_os in
14547 aix*)
14548 # All AIX code is PIC.
14549 if test "$host_cpu" = ia64; then
14550 # AIX 5 now supports IA64 processor
14551 lt_prog_compiler_static_CXX='-Bstatic'
14552 fi
14553 ;;
14554
14555 amigaos*)
14556 case $host_cpu in
14557 powerpc)
14558 # see comment about AmigaOS4 .so support
14559 lt_prog_compiler_pic_CXX='-fPIC'
14560 ;;
14561 m68k)
14562 # FIXME: we need at least 68020 code to build shared libraries, but
14563 # adding the `-m68020' flag to GCC prevents building anything better,
14564 # like `-m68040'.
14565 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14566 ;;
14567 esac
14568 ;;
14569
14570 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14571 # PIC is the default for these OSes.
14572 ;;
14573 mingw* | cygwin* | os2* | pw32* | cegcc*)
14574 # This hack is so that the source file can tell whether it is being
14575 # built for inclusion in a dll (and should export symbols for example).
14576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14577 # (--disable-auto-import) libraries
14578 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14579 ;;
14580 darwin* | rhapsody*)
14581 # PIC is the default on this platform
14582 # Common symbols not allowed in MH_DYLIB files
14583 lt_prog_compiler_pic_CXX='-fno-common'
14584 ;;
14585 *djgpp*)
14586 # DJGPP does not support shared libraries at all
14587 lt_prog_compiler_pic_CXX=
14588 ;;
14589 interix[3-9]*)
14590 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14591 # Instead, we relocate shared libraries at runtime.
14592 ;;
14593 sysv4*MP*)
14594 if test -d /usr/nec; then
14595 lt_prog_compiler_pic_CXX=-Kconform_pic
14596 fi
14597 ;;
14598 hpux*)
14599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14601 # sets the default TLS model and affects inlining.
14602 case $host_cpu in
14603 hppa*64*)
14604 ;;
14605 *)
14606 lt_prog_compiler_pic_CXX='-fPIC'
14607 ;;
14608 esac
14609 ;;
14610 *qnx* | *nto*)
14611 # QNX uses GNU C++, but need to define -shared option too, otherwise
14612 # it will coredump.
14613 lt_prog_compiler_pic_CXX='-fPIC -shared'
14614 ;;
14615 *)
14616 lt_prog_compiler_pic_CXX='-fPIC'
14617 ;;
14618 esac
14619 else
14620 case $host_os in
14621 aix[4-9]*)
14622 # All AIX code is PIC.
14623 if test "$host_cpu" = ia64; then
14624 # AIX 5 now supports IA64 processor
14625 lt_prog_compiler_static_CXX='-Bstatic'
14626 else
14627 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14628 fi
14629 ;;
14630 chorus*)
14631 case $cc_basename in
14632 cxch68*)
14633 # Green Hills C++ Compiler
14634 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14635 ;;
14636 esac
14637 ;;
14638 dgux*)
14639 case $cc_basename in
14640 ec++*)
14641 lt_prog_compiler_pic_CXX='-KPIC'
14642 ;;
14643 ghcx*)
14644 # Green Hills C++ Compiler
14645 lt_prog_compiler_pic_CXX='-pic'
14646 ;;
14647 *)
14648 ;;
14649 esac
14650 ;;
14651 freebsd* | dragonfly*)
14652 # FreeBSD uses GNU C++
14653 ;;
14654 hpux9* | hpux10* | hpux11*)
14655 case $cc_basename in
14656 CC*)
14657 lt_prog_compiler_wl_CXX='-Wl,'
14658 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14659 if test "$host_cpu" != ia64; then
14660 lt_prog_compiler_pic_CXX='+Z'
14661 fi
14662 ;;
14663 aCC*)
14664 lt_prog_compiler_wl_CXX='-Wl,'
14665 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14666 case $host_cpu in
14667 hppa*64*|ia64*)
14668 # +Z the default
14669 ;;
14670 *)
14671 lt_prog_compiler_pic_CXX='+Z'
14672 ;;
14673 esac
14674 ;;
14675 *)
14676 ;;
14677 esac
14678 ;;
14679 interix*)
14680 # This is c89, which is MS Visual C++ (no shared libs)
14681 # Anyone wants to do a port?
14682 ;;
14683 irix5* | irix6* | nonstopux*)
14684 case $cc_basename in
14685 CC*)
14686 lt_prog_compiler_wl_CXX='-Wl,'
14687 lt_prog_compiler_static_CXX='-non_shared'
14688 # CC pic flag -KPIC is the default.
14689 ;;
14690 *)
14691 ;;
14692 esac
14693 ;;
14694 linux* | k*bsd*-gnu)
14695 case $cc_basename in
14696 KCC*)
14697 # KAI C++ Compiler
14698 lt_prog_compiler_wl_CXX='--backend -Wl,'
14699 lt_prog_compiler_pic_CXX='-fPIC'
14700 ;;
14701 ecpc* )
14702 # old Intel C++ for x86_64 which still supported -KPIC.
14703 lt_prog_compiler_wl_CXX='-Wl,'
14704 lt_prog_compiler_pic_CXX='-KPIC'
14705 lt_prog_compiler_static_CXX='-static'
14706 ;;
14707 icpc* )
14708 # Intel C++, used to be incompatible with GCC.
14709 # ICC 10 doesn't accept -KPIC any more.
14710 lt_prog_compiler_wl_CXX='-Wl,'
14711 lt_prog_compiler_pic_CXX='-fPIC'
14712 lt_prog_compiler_static_CXX='-static'
14713 ;;
14714 pgCC* | pgcpp*)
14715 # Portland Group C++ compiler
14716 lt_prog_compiler_wl_CXX='-Wl,'
14717 lt_prog_compiler_pic_CXX='-fpic'
14718 lt_prog_compiler_static_CXX='-Bstatic'
14719 ;;
14720 cxx*)
14721 # Compaq C++
14722 # Make sure the PIC flag is empty. It appears that all Alpha
14723 # Linux and Compaq Tru64 Unix objects are PIC.
14724 lt_prog_compiler_pic_CXX=
14725 lt_prog_compiler_static_CXX='-non_shared'
14726 ;;
14727 xlc* | xlC*)
14728 # IBM XL 8.0 on PPC
14729 lt_prog_compiler_wl_CXX='-Wl,'
14730 lt_prog_compiler_pic_CXX='-qpic'
14731 lt_prog_compiler_static_CXX='-qstaticlink'
14732 ;;
14733 *)
14734 case `$CC -V 2>&1 | sed 5q` in
14735 *Sun\ C*)
14736 # Sun C++ 5.9
14737 lt_prog_compiler_pic_CXX='-KPIC'
14738 lt_prog_compiler_static_CXX='-Bstatic'
14739 lt_prog_compiler_wl_CXX='-Qoption ld '
14740 ;;
14741 esac
14742 ;;
14743 esac
14744 ;;
14745 lynxos*)
14746 ;;
14747 m88k*)
14748 ;;
14749 mvs*)
14750 case $cc_basename in
14751 cxx*)
14752 lt_prog_compiler_pic_CXX='-W c,exportall'
14753 ;;
14754 *)
14755 ;;
14756 esac
14757 ;;
14758 netbsd*)
14759 ;;
14760 *qnx* | *nto*)
14761 # QNX uses GNU C++, but need to define -shared option too, otherwise
14762 # it will coredump.
14763 lt_prog_compiler_pic_CXX='-fPIC -shared'
14764 ;;
14765 osf3* | osf4* | osf5*)
14766 case $cc_basename in
14767 KCC*)
14768 lt_prog_compiler_wl_CXX='--backend -Wl,'
14769 ;;
14770 RCC*)
14771 # Rational C++ 2.4.1
14772 lt_prog_compiler_pic_CXX='-pic'
14773 ;;
14774 cxx*)
14775 # Digital/Compaq C++
14776 lt_prog_compiler_wl_CXX='-Wl,'
14777 # Make sure the PIC flag is empty. It appears that all Alpha
14778 # Linux and Compaq Tru64 Unix objects are PIC.
14779 lt_prog_compiler_pic_CXX=
14780 lt_prog_compiler_static_CXX='-non_shared'
14781 ;;
14782 *)
14783 ;;
14784 esac
14785 ;;
14786 psos*)
14787 ;;
14788 solaris*)
14789 case $cc_basename in
14790 CC*)
14791 # Sun C++ 4.2, 5.x and Centerline C++
14792 lt_prog_compiler_pic_CXX='-KPIC'
14793 lt_prog_compiler_static_CXX='-Bstatic'
14794 lt_prog_compiler_wl_CXX='-Qoption ld '
14795 ;;
14796 gcx*)
14797 # Green Hills C++ Compiler
14798 lt_prog_compiler_pic_CXX='-PIC'
14799 ;;
14800 *)
14801 ;;
14802 esac
14803 ;;
14804 sunos4*)
14805 case $cc_basename in
14806 CC*)
14807 # Sun C++ 4.x
14808 lt_prog_compiler_pic_CXX='-pic'
14809 lt_prog_compiler_static_CXX='-Bstatic'
14810 ;;
14811 lcc*)
14812 # Lucid
14813 lt_prog_compiler_pic_CXX='-pic'
14814 ;;
14815 *)
14816 ;;
14817 esac
14818 ;;
14819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14820 case $cc_basename in
14821 CC*)
14822 lt_prog_compiler_wl_CXX='-Wl,'
14823 lt_prog_compiler_pic_CXX='-KPIC'
14824 lt_prog_compiler_static_CXX='-Bstatic'
14825 ;;
14826 esac
14827 ;;
14828 tandem*)
14829 case $cc_basename in
14830 NCC*)
14831 # NonStop-UX NCC 3.20
14832 lt_prog_compiler_pic_CXX='-KPIC'
14833 ;;
14834 *)
14835 ;;
14836 esac
14837 ;;
14838 vxworks*)
14839 ;;
14840 *)
14841 lt_prog_compiler_can_build_shared_CXX=no
14842 ;;
14843 esac
14844 fi
14845
14846 case $host_os in
14847 # For platforms which do not support PIC, -DPIC is meaningless:
14848 *djgpp*)
14849 lt_prog_compiler_pic_CXX=
14850 ;;
14851 *)
14852 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14853 ;;
14854 esac
14855 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14856 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14857
14858
14859
14860 #
14861 # Check to make sure the PIC flag actually works.
14862 #
14863 if test -n "$lt_prog_compiler_pic_CXX"; then
14864 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14865 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14866 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869 lt_cv_prog_compiler_pic_works_CXX=no
14870 ac_outfile=conftest.$ac_objext
14871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14872 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14873 # Insert the option either (1) after the last *FLAGS variable, or
14874 # (2) before a word containing "conftest.", or (3) at the end.
14875 # Note that $ac_compile itself does not contain backslashes and begins
14876 # with a dollar sign (not a hyphen), so the echo should work correctly.
14877 # The option is referenced via a variable to avoid confusing sed.
14878 lt_compile=`echo "$ac_compile" | $SED \
14879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14881 -e 's:$: $lt_compiler_flag:'`
14882 (eval echo "\"\$as_me:14882: $lt_compile\"" >&5)
14883 (eval "$lt_compile" 2>conftest.err)
14884 ac_status=$?
14885 cat conftest.err >&5
14886 echo "$as_me:14886: \$? = $ac_status" >&5
14887 if (exit $ac_status) && test -s "$ac_outfile"; then
14888 # The compiler can only warn and ignore the option if not recognized
14889 # So say no if there are warnings other than the usual output.
14890 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14893 lt_cv_prog_compiler_pic_works_CXX=yes
14894 fi
14895 fi
14896 $RM conftest*
14897
14898 fi
14899 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14900 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14901
14902 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14903 case $lt_prog_compiler_pic_CXX in
14904 "" | " "*) ;;
14905 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14906 esac
14907 else
14908 lt_prog_compiler_pic_CXX=
14909 lt_prog_compiler_can_build_shared_CXX=no
14910 fi
14911
14912 fi
14913
14914
14915
14916 #
14917 # Check to make sure the static flag actually works.
14918 #
14919 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14920 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14921 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14922 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 else
14925 lt_cv_prog_compiler_static_works_CXX=no
14926 save_LDFLAGS="$LDFLAGS"
14927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14930 # The linker can only warn and ignore the option if not recognized
14931 # So say no if there are warnings
14932 if test -s conftest.err; then
14933 # Append any errors to the config.log.
14934 cat conftest.err 1>&5
14935 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14937 if diff conftest.exp conftest.er2 >/dev/null; then
14938 lt_cv_prog_compiler_static_works_CXX=yes
14939 fi
14940 else
14941 lt_cv_prog_compiler_static_works_CXX=yes
14942 fi
14943 fi
14944 $RM -r conftest*
14945 LDFLAGS="$save_LDFLAGS"
14946
14947 fi
14948 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14949 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14950
14951 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14952 :
14953 else
14954 lt_prog_compiler_static_CXX=
14955 fi
14956
14957
14958
14959
14960 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14961 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14962 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965 lt_cv_prog_compiler_c_o_CXX=no
14966 $RM -r conftest 2>/dev/null
14967 mkdir conftest
14968 cd conftest
14969 mkdir out
14970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14971
14972 lt_compiler_flag="-o out/conftest2.$ac_objext"
14973 # Insert the option either (1) after the last *FLAGS variable, or
14974 # (2) before a word containing "conftest.", or (3) at the end.
14975 # Note that $ac_compile itself does not contain backslashes and begins
14976 # with a dollar sign (not a hyphen), so the echo should work correctly.
14977 lt_compile=`echo "$ac_compile" | $SED \
14978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14980 -e 's:$: $lt_compiler_flag:'`
14981 (eval echo "\"\$as_me:14981: $lt_compile\"" >&5)
14982 (eval "$lt_compile" 2>out/conftest.err)
14983 ac_status=$?
14984 cat out/conftest.err >&5
14985 echo "$as_me:14985: \$? = $ac_status" >&5
14986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14987 then
14988 # The compiler can only warn and ignore the option if not recognized
14989 # So say no if there are warnings
14990 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14993 lt_cv_prog_compiler_c_o_CXX=yes
14994 fi
14995 fi
14996 chmod u+w . 2>&5
14997 $RM conftest*
14998 # SGI C++ compiler will create directory out/ii_files/ for
14999 # template instantiation
15000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15001 $RM out/* && rmdir out
15002 cd ..
15003 $RM -r conftest
15004 $RM conftest*
15005
15006 fi
15007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15008 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15009
15010
15011
15012 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15013 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15014 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017 lt_cv_prog_compiler_c_o_CXX=no
15018 $RM -r conftest 2>/dev/null
15019 mkdir conftest
15020 cd conftest
15021 mkdir out
15022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15023
15024 lt_compiler_flag="-o out/conftest2.$ac_objext"
15025 # Insert the option either (1) after the last *FLAGS variable, or
15026 # (2) before a word containing "conftest.", or (3) at the end.
15027 # Note that $ac_compile itself does not contain backslashes and begins
15028 # with a dollar sign (not a hyphen), so the echo should work correctly.
15029 lt_compile=`echo "$ac_compile" | $SED \
15030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15032 -e 's:$: $lt_compiler_flag:'`
15033 (eval echo "\"\$as_me:15033: $lt_compile\"" >&5)
15034 (eval "$lt_compile" 2>out/conftest.err)
15035 ac_status=$?
15036 cat out/conftest.err >&5
15037 echo "$as_me:15037: \$? = $ac_status" >&5
15038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15039 then
15040 # The compiler can only warn and ignore the option if not recognized
15041 # So say no if there are warnings
15042 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15045 lt_cv_prog_compiler_c_o_CXX=yes
15046 fi
15047 fi
15048 chmod u+w . 2>&5
15049 $RM conftest*
15050 # SGI C++ compiler will create directory out/ii_files/ for
15051 # template instantiation
15052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15053 $RM out/* && rmdir out
15054 cd ..
15055 $RM -r conftest
15056 $RM conftest*
15057
15058 fi
15059 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15060 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15061
15062
15063
15064
15065 hard_links="nottested"
15066 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15067 # do not overwrite the value of need_locks provided by the user
15068 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15069 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15070 hard_links=yes
15071 $RM conftest*
15072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15073 touch conftest.a
15074 ln conftest.a conftest.b 2>&5 || hard_links=no
15075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15076 { echo "$as_me:$LINENO: result: $hard_links" >&5
15077 echo "${ECHO_T}$hard_links" >&6; }
15078 if test "$hard_links" = no; then
15079 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15080 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15081 need_locks=warn
15082 fi
15083 else
15084 need_locks=no
15085 fi
15086
15087
15088
15089 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15090 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15091
15092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15093 case $host_os in
15094 aix[4-9]*)
15095 # If we're using GNU nm, then we don't want the "-C" option.
15096 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15097 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15098 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15099 else
15100 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15101 fi
15102 ;;
15103 pw32*)
15104 export_symbols_cmds_CXX="$ltdll_cmds"
15105 ;;
15106 cygwin* | mingw* | cegcc*)
15107 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15108 ;;
15109 *)
15110 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15111 ;;
15112 esac
15113 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15114
15115 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15116 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15117 test "$ld_shlibs_CXX" = no && can_build_shared=no
15118
15119 with_gnu_ld_CXX=$with_gnu_ld
15120
15121
15122
15123
15124
15125
15126 #
15127 # Do we need to explicitly link libc?
15128 #
15129 case "x$archive_cmds_need_lc_CXX" in
15130 x|xyes)
15131 # Assume -lc should be added
15132 archive_cmds_need_lc_CXX=yes
15133
15134 if test "$enable_shared" = yes && test "$GCC" = yes; then
15135 case $archive_cmds_CXX in
15136 *'~'*)
15137 # FIXME: we may have to deal with multi-command sequences.
15138 ;;
15139 '$CC '*)
15140 # Test whether the compiler implicitly links with -lc since on some
15141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15142 # to ld, don't add -lc before -lgcc.
15143 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15144 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15145 $RM conftest*
15146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15147
15148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } 2>conftest.err; then
15153 soname=conftest
15154 lib=conftest
15155 libobjs=conftest.$ac_objext
15156 deplibs=
15157 wl=$lt_prog_compiler_wl_CXX
15158 pic_flag=$lt_prog_compiler_pic_CXX
15159 compiler_flags=-v
15160 linker_flags=-v
15161 verstring=
15162 output_objdir=.
15163 libname=conftest
15164 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15165 allow_undefined_flag_CXX=
15166 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15167 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }
15171 then
15172 archive_cmds_need_lc_CXX=no
15173 else
15174 archive_cmds_need_lc_CXX=yes
15175 fi
15176 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15177 else
15178 cat conftest.err 1>&5
15179 fi
15180 $RM conftest*
15181 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15182 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15183 ;;
15184 esac
15185 fi
15186 ;;
15187 esac
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15253 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15254
15255 library_names_spec=
15256 libname_spec='lib$name'
15257 soname_spec=
15258 shrext_cmds=".so"
15259 postinstall_cmds=
15260 postuninstall_cmds=
15261 finish_cmds=
15262 finish_eval=
15263 shlibpath_var=
15264 shlibpath_overrides_runpath=unknown
15265 version_type=none
15266 dynamic_linker="$host_os ld.so"
15267 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15268 need_lib_prefix=unknown
15269 hardcode_into_libs=no
15270
15271 # when you set need_version to no, make sure it does not cause -set_version
15272 # flags to be left without arguments
15273 need_version=unknown
15274
15275 case $host_os in
15276 aix3*)
15277 version_type=linux
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15279 shlibpath_var=LIBPATH
15280
15281 # AIX 3 has no versioning support, so we append a major version to the name.
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 ;;
15284
15285 aix[4-9]*)
15286 version_type=linux
15287 need_lib_prefix=no
15288 need_version=no
15289 hardcode_into_libs=yes
15290 if test "$host_cpu" = ia64; then
15291 # AIX 5 supports IA64
15292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 else
15295 # With GCC up to 2.95.x, collect2 would create an import file
15296 # for dependence libraries. The import file would start with
15297 # the line `#! .'. This would cause the generated library to
15298 # depend on `.', always an invalid library. This was fixed in
15299 # development snapshots of GCC prior to 3.0.
15300 case $host_os in
15301 aix4 | aix4.[01] | aix4.[01].*)
15302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15303 echo ' yes '
15304 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15305 :
15306 else
15307 can_build_shared=no
15308 fi
15309 ;;
15310 esac
15311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15312 # soname into executable. Probably we can add versioning support to
15313 # collect2, so additional links can be useful in future.
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15316 # instead of lib<name>.a to let people know that these are not
15317 # typical AIX shared libraries.
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319 else
15320 # We preserve .a as extension for shared libraries through AIX4.2
15321 # and later when we are not doing run time linking.
15322 library_names_spec='${libname}${release}.a $libname.a'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 fi
15325 shlibpath_var=LIBPATH
15326 fi
15327 ;;
15328
15329 amigaos*)
15330 case $host_cpu in
15331 powerpc)
15332 # Since July 2007 AmigaOS4 officially supports .so libraries.
15333 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 ;;
15336 m68k)
15337 library_names_spec='$libname.ixlibrary $libname.a'
15338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15339 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'
15340 ;;
15341 esac
15342 ;;
15343
15344 beos*)
15345 library_names_spec='${libname}${shared_ext}'
15346 dynamic_linker="$host_os ld.so"
15347 shlibpath_var=LIBRARY_PATH
15348 ;;
15349
15350 bsdi[45]*)
15351 version_type=linux
15352 need_version=no
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15359 # the default ld.so.conf also contains /usr/contrib/lib and
15360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15361 # libtool to hard-code these into programs
15362 ;;
15363
15364 cygwin* | mingw* | pw32* | cegcc*)
15365 version_type=windows
15366 shrext_cmds=".dll"
15367 need_version=no
15368 need_lib_prefix=no
15369
15370 case $GCC,$host_os in
15371 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15372 library_names_spec='$libname.dll.a'
15373 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15374 postinstall_cmds='base_file=`basename \${file}`~
15375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15376 dldir=$destdir/`dirname \$dlpath`~
15377 test -d \$dldir || mkdir -p \$dldir~
15378 $install_prog $dir/$dlname \$dldir/$dlname~
15379 chmod a+x \$dldir/$dlname~
15380 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15381 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15382 fi'
15383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15384 dlpath=$dir/\$dldll~
15385 $RM \$dlpath'
15386 shlibpath_overrides_runpath=yes
15387
15388 case $host_os in
15389 cygwin*)
15390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15391 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15392 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15393 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15394 ;;
15395 mingw* | cegcc*)
15396 # MinGW DLLs use traditional 'lib' prefix
15397 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15398 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
15399 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15400 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15401 # It is most probably a Windows format PATH printed by
15402 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15403 # path with ; separators, and with drive letters. We can handle the
15404 # drive letters (cygwin fileutils understands them), so leave them,
15405 # especially as we might pass files found there to a mingw objdump,
15406 # which wouldn't understand a cygwinified path. Ahh.
15407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15408 else
15409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15410 fi
15411 ;;
15412 pw32*)
15413 # pw32 DLLs use 'pw' prefix rather than 'lib'
15414 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15415 ;;
15416 esac
15417 ;;
15418
15419 *)
15420 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15421 ;;
15422 esac
15423 dynamic_linker='Win32 ld.exe'
15424 # FIXME: first we should search . and the directory the executable is in
15425 shlibpath_var=PATH
15426 ;;
15427
15428 darwin* | rhapsody*)
15429 dynamic_linker="$host_os dyld"
15430 version_type=darwin
15431 need_lib_prefix=no
15432 need_version=no
15433 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15434 soname_spec='${libname}${release}${major}$shared_ext'
15435 shlibpath_overrides_runpath=yes
15436 shlibpath_var=DYLD_LIBRARY_PATH
15437 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15438
15439 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15440 ;;
15441
15442 dgux*)
15443 version_type=linux
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 ;;
15450
15451 freebsd1*)
15452 dynamic_linker=no
15453 ;;
15454
15455 freebsd* | dragonfly*)
15456 # DragonFly does not have aout. When/if they implement a new
15457 # versioning mechanism, adjust this.
15458 if test -x /usr/bin/objformat; then
15459 objformat=`/usr/bin/objformat`
15460 else
15461 case $host_os in
15462 freebsd[123]*) objformat=aout ;;
15463 *) objformat=elf ;;
15464 esac
15465 fi
15466 version_type=freebsd-$objformat
15467 case $version_type in
15468 freebsd-elf*)
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15470 need_version=no
15471 need_lib_prefix=no
15472 ;;
15473 freebsd-*)
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15475 need_version=yes
15476 ;;
15477 esac
15478 shlibpath_var=LD_LIBRARY_PATH
15479 case $host_os in
15480 freebsd2*)
15481 shlibpath_overrides_runpath=yes
15482 ;;
15483 freebsd3.[01]* | freebsdelf3.[01]*)
15484 shlibpath_overrides_runpath=yes
15485 hardcode_into_libs=yes
15486 ;;
15487 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15488 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15489 shlibpath_overrides_runpath=no
15490 hardcode_into_libs=yes
15491 ;;
15492 *) # from 4.6 on, and DragonFly
15493 shlibpath_overrides_runpath=yes
15494 hardcode_into_libs=yes
15495 ;;
15496 esac
15497 ;;
15498
15499 gnu*)
15500 version_type=linux
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 hardcode_into_libs=yes
15507 ;;
15508
15509 hpux9* | hpux10* | hpux11*)
15510 # Give a soname corresponding to the major version so that dld.sl refuses to
15511 # link against other versions.
15512 version_type=sunos
15513 need_lib_prefix=no
15514 need_version=no
15515 case $host_cpu in
15516 ia64*)
15517 shrext_cmds='.so'
15518 hardcode_into_libs=yes
15519 dynamic_linker="$host_os dld.so"
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 if test "X$HPUX_IA64_MODE" = X32; then
15525 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15526 else
15527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15528 fi
15529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15530 ;;
15531 hppa*64*)
15532 shrext_cmds='.sl'
15533 hardcode_into_libs=yes
15534 dynamic_linker="$host_os dld.sl"
15535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15541 ;;
15542 *)
15543 shrext_cmds='.sl'
15544 dynamic_linker="$host_os dld.sl"
15545 shlibpath_var=SHLIB_PATH
15546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 ;;
15550 esac
15551 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15552 postinstall_cmds='chmod 555 $lib'
15553 ;;
15554
15555 interix[3-9]*)
15556 version_type=linux
15557 need_lib_prefix=no
15558 need_version=no
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=no
15564 hardcode_into_libs=yes
15565 ;;
15566
15567 irix5* | irix6* | nonstopux*)
15568 case $host_os in
15569 nonstopux*) version_type=nonstopux ;;
15570 *)
15571 if test "$lt_cv_prog_gnu_ld" = yes; then
15572 version_type=linux
15573 else
15574 version_type=irix
15575 fi ;;
15576 esac
15577 need_lib_prefix=no
15578 need_version=no
15579 soname_spec='${libname}${release}${shared_ext}$major'
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15581 case $host_os in
15582 irix5* | nonstopux*)
15583 libsuff= shlibsuff=
15584 ;;
15585 *)
15586 case $LD in # libtool.m4 will add one of these switches to LD
15587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15588 libsuff= shlibsuff= libmagic=32-bit;;
15589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15590 libsuff=32 shlibsuff=N32 libmagic=N32;;
15591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15593 *) libsuff= shlibsuff= libmagic=never-match;;
15594 esac
15595 ;;
15596 esac
15597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15598 shlibpath_overrides_runpath=no
15599 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15600 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15601 hardcode_into_libs=yes
15602 ;;
15603
15604 # No shared lib support for Linux oldld, aout, or coff.
15605 linux*oldld* | linux*aout* | linux*coff*)
15606 dynamic_linker=no
15607 ;;
15608
15609 # This must be Linux ELF.
15610 linux* | k*bsd*-gnu)
15611 version_type=linux
15612 need_lib_prefix=no
15613 need_version=no
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=no
15619 # Some binutils ld are patched to set DT_RUNPATH
15620 save_LDFLAGS=$LDFLAGS
15621 save_libdir=$libdir
15622 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15623 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630
15631 int
15632 main ()
15633 {
15634
15635 ;
15636 return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (ac_try="$ac_link"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644 esac
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_link") 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } && {
15653 test -z "$ac_cxx_werror_flag" ||
15654 test ! -s conftest.err
15655 } && test -s conftest$ac_exeext &&
15656 $as_test_x conftest$ac_exeext; then
15657 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15658 shlibpath_overrides_runpath=yes
15659 fi
15660
15661 else
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15664
15665
15666 fi
15667
15668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15669 conftest$ac_exeext conftest.$ac_ext
15670 LDFLAGS=$save_LDFLAGS
15671 libdir=$save_libdir
15672
15673 # This implies no fast_install, which is unacceptable.
15674 # Some rework will be needed to allow for fast_install
15675 # before this can be enabled.
15676 hardcode_into_libs=yes
15677
15678 # Append ld.so.conf contents to the search path
15679 if test -f /etc/ld.so.conf; then
15680 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' ' '`
15681 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15682 fi
15683
15684 # We used to test for /lib/ld.so.1 and disable shared libraries on
15685 # powerpc, because MkLinux only supported shared libraries with the
15686 # GNU dynamic linker. Since this was broken with cross compilers,
15687 # most powerpc-linux boxes support dynamic linking these days and
15688 # people can always --disable-shared, the test was removed, and we
15689 # assume the GNU/Linux dynamic linker is in use.
15690 dynamic_linker='GNU/Linux ld.so'
15691 ;;
15692
15693 netbsd*)
15694 version_type=sunos
15695 need_lib_prefix=no
15696 need_version=no
15697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700 dynamic_linker='NetBSD (a.out) ld.so'
15701 else
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 dynamic_linker='NetBSD ld.elf_so'
15705 fi
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=yes
15708 hardcode_into_libs=yes
15709 ;;
15710
15711 newsos6)
15712 version_type=linux
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=yes
15716 ;;
15717
15718 *nto* | *qnx*)
15719 version_type=qnx
15720 need_lib_prefix=no
15721 need_version=no
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=no
15726 hardcode_into_libs=yes
15727 dynamic_linker='ldqnx.so'
15728 ;;
15729
15730 openbsd*)
15731 version_type=sunos
15732 sys_lib_dlsearch_path_spec="/usr/lib"
15733 need_lib_prefix=no
15734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15735 case $host_os in
15736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15737 *) need_version=no ;;
15738 esac
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15743 case $host_os in
15744 openbsd2.[89] | openbsd2.[89].*)
15745 shlibpath_overrides_runpath=no
15746 ;;
15747 *)
15748 shlibpath_overrides_runpath=yes
15749 ;;
15750 esac
15751 else
15752 shlibpath_overrides_runpath=yes
15753 fi
15754 ;;
15755
15756 os2*)
15757 libname_spec='$name'
15758 shrext_cmds=".dll"
15759 need_lib_prefix=no
15760 library_names_spec='$libname${shared_ext} $libname.a'
15761 dynamic_linker='OS/2 ld.exe'
15762 shlibpath_var=LIBPATH
15763 ;;
15764
15765 osf3* | osf4* | osf5*)
15766 version_type=osf
15767 need_lib_prefix=no
15768 need_version=no
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15774 ;;
15775
15776 rdos*)
15777 dynamic_linker=no
15778 ;;
15779
15780 solaris*)
15781 version_type=linux
15782 need_lib_prefix=no
15783 need_version=no
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15789 # ldd complains unless libraries are executable
15790 postinstall_cmds='chmod +x $lib'
15791 ;;
15792
15793 sunos4*)
15794 version_type=sunos
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 shlibpath_overrides_runpath=yes
15799 if test "$with_gnu_ld" = yes; then
15800 need_lib_prefix=no
15801 fi
15802 need_version=yes
15803 ;;
15804
15805 sysv4 | sysv4.3*)
15806 version_type=linux
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 case $host_vendor in
15811 sni)
15812 shlibpath_overrides_runpath=no
15813 need_lib_prefix=no
15814 runpath_var=LD_RUN_PATH
15815 ;;
15816 siemens)
15817 need_lib_prefix=no
15818 ;;
15819 motorola)
15820 need_lib_prefix=no
15821 need_version=no
15822 shlibpath_overrides_runpath=no
15823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15824 ;;
15825 esac
15826 ;;
15827
15828 sysv4*MP*)
15829 if test -d /usr/nec ;then
15830 version_type=linux
15831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15832 soname_spec='$libname${shared_ext}.$major'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 fi
15835 ;;
15836
15837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15838 version_type=freebsd-elf
15839 need_lib_prefix=no
15840 need_version=no
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes
15845 hardcode_into_libs=yes
15846 if test "$with_gnu_ld" = yes; then
15847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15848 else
15849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15850 case $host_os in
15851 sco3.2v5*)
15852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15853 ;;
15854 esac
15855 fi
15856 sys_lib_dlsearch_path_spec='/usr/lib'
15857 ;;
15858
15859 tpf*)
15860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15861 version_type=linux
15862 need_lib_prefix=no
15863 need_version=no
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 shlibpath_overrides_runpath=no
15867 hardcode_into_libs=yes
15868 ;;
15869
15870 uts4*)
15871 version_type=linux
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 shlibpath_var=LD_LIBRARY_PATH
15875 ;;
15876
15877 *)
15878 dynamic_linker=no
15879 ;;
15880 esac
15881 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15882 echo "${ECHO_T}$dynamic_linker" >&6; }
15883 test "$dynamic_linker" = no && can_build_shared=no
15884
15885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15886 if test "$GCC" = yes; then
15887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15888 fi
15889
15890 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15891 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15892 fi
15893 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15894 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15895 fi
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15933 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15934 hardcode_action_CXX=
15935 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15936 test -n "$runpath_var_CXX" ||
15937 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15938
15939 # We can hardcode non-existent directories.
15940 if test "$hardcode_direct_CXX" != no &&
15941 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15942 # have to relink, otherwise we might link with an installed library
15943 # when we should be linking with a yet-to-be-installed one
15944 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15945 test "$hardcode_minus_L_CXX" != no; then
15946 # Linking always hardcodes the temporary library directory.
15947 hardcode_action_CXX=relink
15948 else
15949 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15950 hardcode_action_CXX=immediate
15951 fi
15952 else
15953 # We cannot hardcode anything, or else we can only hardcode existing
15954 # directories.
15955 hardcode_action_CXX=unsupported
15956 fi
15957 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15958 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15959
15960 if test "$hardcode_action_CXX" = relink ||
15961 test "$inherit_rpath_CXX" = yes; then
15962 # Fast installation is not supported
15963 enable_fast_install=no
15964 elif test "$shlibpath_overrides_runpath" = yes ||
15965 test "$enable_shared" = no; then
15966 # Fast installation is not necessary
15967 enable_fast_install=needless
15968 fi
15969
15970
15971
15972
15973
15974
15975
15976 fi # test -n "$compiler"
15977
15978 CC=$lt_save_CC
15979 LDCXX=$LD
15980 LD=$lt_save_LD
15981 GCC=$lt_save_GCC
15982 with_gnu_ld=$lt_save_with_gnu_ld
15983 lt_cv_path_LDCXX=$lt_cv_path_LD
15984 lt_cv_path_LD=$lt_save_path_LD
15985 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15986 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15987 fi # test "$_lt_caught_CXX_error" != yes
15988
15989 ac_ext=c
15990 ac_cpp='$CPP $CPPFLAGS'
15991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994
15995
15996 depcc="$CXX" am_compiler_list=
15997
15998 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15999 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
16000 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 else
16003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16004 # We make a subdir and do the tests there. Otherwise we can end up
16005 # making bogus files that we don't know about and never remove. For
16006 # instance it was reported that on HP-UX the gcc test will end up
16007 # making a dummy file named `D' -- because `-MD' means `put the output
16008 # in D'.
16009 mkdir conftest.dir
16010 # Copy depcomp to subdir because otherwise we won't find it if we're
16011 # using a relative directory.
16012 cp "$am_depcomp" conftest.dir
16013 cd conftest.dir
16014 # We will build objects and dependencies in a subdirectory because
16015 # it helps to detect inapplicable dependency modes. For instance
16016 # both Tru64's cc and ICC support -MD to output dependencies as a
16017 # side effect of compilation, but ICC will put the dependencies in
16018 # the current directory while Tru64 will put them in the object
16019 # directory.
16020 mkdir sub
16021
16022 am_cv_CXX_dependencies_compiler_type=none
16023 if test "$am_compiler_list" = ""; then
16024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16025 fi
16026 for depmode in $am_compiler_list; do
16027 # Setup a source with many dependencies, because some compilers
16028 # like to wrap large dependency lists on column 80 (with \), and
16029 # we should not choose a depcomp mode which is confused by this.
16030 #
16031 # We need to recreate these files for each test, as the compiler may
16032 # overwrite some of them when testing with obscure command lines.
16033 # This happens at least with the AIX C compiler.
16034 : > sub/conftest.c
16035 for i in 1 2 3 4 5 6; do
16036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16038 # Solaris 8's {/usr,}/bin/sh.
16039 touch sub/conftst$i.h
16040 done
16041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16042
16043 case $depmode in
16044 nosideeffect)
16045 # after this tag, mechanisms are not by side-effect, so they'll
16046 # only be used when explicitly requested
16047 if test "x$enable_dependency_tracking" = xyes; then
16048 continue
16049 else
16050 break
16051 fi
16052 ;;
16053 none) break ;;
16054 esac
16055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16056 # mode. It turns out that the SunPro C++ compiler does not properly
16057 # handle `-M -o', and we need to detect this.
16058 if depmode=$depmode \
16059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16062 >/dev/null 2>conftest.err &&
16063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16065 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16067 # icc doesn't choke on unknown options, it will just issue warnings
16068 # or remarks (even with -Werror). So we grep stderr for any message
16069 # that says an option was ignored or not supported.
16070 # When given -MP, icc 7.0 and 7.1 complain thusly:
16071 # icc: Command line warning: ignoring option '-M'; no argument required
16072 # The diagnosis changed in icc 8.0:
16073 # icc: Command line remark: option '-MP' not supported
16074 if (grep 'ignoring option' conftest.err ||
16075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16076 am_cv_CXX_dependencies_compiler_type=$depmode
16077 break
16078 fi
16079 fi
16080 done
16081
16082 cd ..
16083 rm -rf conftest.dir
16084 else
16085 am_cv_CXX_dependencies_compiler_type=none
16086 fi
16087
16088 fi
16089 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
16090 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
16091 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16092
16093 if
16094 test "x$enable_dependency_tracking" != xno \
16095 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16096 am__fastdepCXX_TRUE=
16097 am__fastdepCXX_FALSE='#'
16098 else
16099 am__fastdepCXX_TRUE='#'
16100 am__fastdepCXX_FALSE=
16101 fi
16102
16103
16104 # Find a good install program. We prefer a C program (faster),
16105 # so one script is as good as another. But avoid the broken or
16106 # incompatible versions:
16107 # SysV /etc/install, /usr/sbin/install
16108 # SunOS /usr/etc/install
16109 # IRIX /sbin/install
16110 # AIX /bin/install
16111 # AmigaOS /C/install, which installs bootblocks on floppy discs
16112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16115 # OS/2's system install, which has a completely different semantic
16116 # ./install, which can be erroneously created by make from ./install.sh.
16117 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16118 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
16119 if test -z "$INSTALL"; then
16120 if test "${ac_cv_path_install+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16122 else
16123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124 for as_dir in $PATH
16125 do
16126 IFS=$as_save_IFS
16127 test -z "$as_dir" && as_dir=.
16128 # Account for people who put trailing slashes in PATH elements.
16129 case $as_dir/ in
16130 ./ | .// | /cC/* | \
16131 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16132 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16133 /usr/ucb/* ) ;;
16134 *)
16135 # OSF1 and SCO ODT 3.0 have their own names for install.
16136 # Don't use installbsd from OSF since it installs stuff as root
16137 # by default.
16138 for ac_prog in ginstall scoinst install; do
16139 for ac_exec_ext in '' $ac_executable_extensions; do
16140 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16141 if test $ac_prog = install &&
16142 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16143 # AIX install. It has an incompatible calling convention.
16144 :
16145 elif test $ac_prog = install &&
16146 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16147 # program-specific install script used by HP pwplus--don't use.
16148 :
16149 else
16150 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16151 break 3
16152 fi
16153 fi
16154 done
16155 done
16156 ;;
16157 esac
16158 done
16159 IFS=$as_save_IFS
16160
16161
16162 fi
16163 if test "${ac_cv_path_install+set}" = set; then
16164 INSTALL=$ac_cv_path_install
16165 else
16166 # As a last resort, use the slow shell script. Don't cache a
16167 # value for INSTALL within a source directory, because that will
16168 # break other packages using the cache if that directory is
16169 # removed, or if the value is a relative name.
16170 INSTALL=$ac_install_sh
16171 fi
16172 fi
16173 { echo "$as_me:$LINENO: result: $INSTALL" >&5
16174 echo "${ECHO_T}$INSTALL" >&6; }
16175
16176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16177 # It thinks the first close brace ends the variable substitution.
16178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16179
16180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16181
16182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16183
16184 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16185 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16186 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16187 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 else
16190 cat >conftest.make <<\_ACEOF
16191 SHELL = /bin/sh
16192 all:
16193 @echo '@@@%%%=$(MAKE)=@@@%%%'
16194 _ACEOF
16195 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16196 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16197 *@@@%%%=?*=@@@%%%*)
16198 eval ac_cv_prog_make_${ac_make}_set=yes;;
16199 *)
16200 eval ac_cv_prog_make_${ac_make}_set=no;;
16201 esac
16202 rm -f conftest.make
16203 fi
16204 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16205 { echo "$as_me:$LINENO: result: yes" >&5
16206 echo "${ECHO_T}yes" >&6; }
16207 SET_MAKE=
16208 else
16209 { echo "$as_me:$LINENO: result: no" >&5
16210 echo "${ECHO_T}no" >&6; }
16211 SET_MAKE="MAKE=${MAKE-make}"
16212 fi
16213
16214 if test -z "$host_alias"; then
16215 hostaliaswindres=
16216 else
16217 hostaliaswindres="$host_alias-windres"
16218 fi
16219 for ac_prog in windres $hostaliaswindres $host_os-windres
16220 do
16221 # Extract the first word of "$ac_prog", so it can be a program name with args.
16222 set dummy $ac_prog; ac_word=$2
16223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16225 if test "${ac_cv_prog_WINDRES+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228 if test -n "$WINDRES"; then
16229 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16230 else
16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 for as_dir in $PATH
16233 do
16234 IFS=$as_save_IFS
16235 test -z "$as_dir" && as_dir=.
16236 for ac_exec_ext in '' $ac_executable_extensions; do
16237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16238 ac_cv_prog_WINDRES="$ac_prog"
16239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16240 break 2
16241 fi
16242 done
16243 done
16244 IFS=$as_save_IFS
16245
16246 fi
16247 fi
16248 WINDRES=$ac_cv_prog_WINDRES
16249 if test -n "$WINDRES"; then
16250 { echo "$as_me:$LINENO: result: $WINDRES" >&5
16251 echo "${ECHO_T}$WINDRES" >&6; }
16252 else
16253 { echo "$as_me:$LINENO: result: no" >&5
16254 echo "${ECHO_T}no" >&6; }
16255 fi
16256
16257
16258 test -n "$WINDRES" && break
16259 done
16260
16261
16262 case "$host" in
16263 *-*-beos*)
16264 ac_default_prefix=/boot/develop/tools/gnupro
16265 ;;
16266 *-*-cygwin* | *-*-mingw32*)
16267 if test "$build" != "$host"; then # cross-compiling
16268 # Default cross-compile location
16269 ac_default_prefix=/usr/local/cross-tools/i386-mingw32
16270 else
16271 # Look for the location of the tools and install there
16272 if test "$BUILD_PREFIX" != ""; then
16273 ac_default_prefix=$BUILD_PREFIX
16274 fi
16275 fi
16276 if test x$WINDRES != x; then
16277 use_version_rc=true
16278 fi
16279 ;;
16280 esac
16281 if test x$use_version_rc = xtrue; then
16282 USE_VERSION_RC_TRUE=
16283 USE_VERSION_RC_FALSE='#'
16284 else
16285 USE_VERSION_RC_TRUE='#'
16286 USE_VERSION_RC_FALSE=
16287 fi
16288
16289
16290 case "$host" in
16291 *mingw32ce*)
16292 INETLIB="-lwinsock -lws2"
16293 ;;
16294 x86_64-*-mingw32*)
16295 INETLIB="-lws2_32 -liphlpapi"
16296 ;;
16297 *-*-cygwin* | *-*-mingw32*)
16298 INETLIB="-lwsock32 -liphlpapi"
16299 ;;
16300 sparc*-*-solaris*)
16301 INETLIB="-lsocket -lnsl"
16302 ;;
16303 *-*-qnx*)
16304 INETLIB="-lsocket"
16305 ;;
16306 *-*-beos*)
16307 INETLIB=""
16308 ;;
16309 *-*-haiku*)
16310 INETLIB="-lnetwork"
16311 ;;
16312 *)
16313 INETLIB=""
16314 ;;
16315 esac
16316
16317
16318 SDL_VERSION=1.2.14
16319
16320
16321
16322 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16323 if test -n "$ac_tool_prefix"; then
16324 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16325 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16328 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331 case $PKG_CONFIG in
16332 [\\/]* | ?:[\\/]*)
16333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16334 ;;
16335 *)
16336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16337 for as_dir in $PATH
16338 do
16339 IFS=$as_save_IFS
16340 test -z "$as_dir" && as_dir=.
16341 for ac_exec_ext in '' $ac_executable_extensions; do
16342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16343 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16345 break 2
16346 fi
16347 done
16348 done
16349 IFS=$as_save_IFS
16350
16351 ;;
16352 esac
16353 fi
16354 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16355 if test -n "$PKG_CONFIG"; then
16356 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
16357 echo "${ECHO_T}$PKG_CONFIG" >&6; }
16358 else
16359 { echo "$as_me:$LINENO: result: no" >&5
16360 echo "${ECHO_T}no" >&6; }
16361 fi
16362
16363
16364 fi
16365 if test -z "$ac_cv_path_PKG_CONFIG"; then
16366 ac_pt_PKG_CONFIG=$PKG_CONFIG
16367 # Extract the first word of "pkg-config", so it can be a program name with args.
16368 set dummy pkg-config; ac_word=$2
16369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16371 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 else
16374 case $ac_pt_PKG_CONFIG in
16375 [\\/]* | ?:[\\/]*)
16376 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16377 ;;
16378 *)
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH
16381 do
16382 IFS=$as_save_IFS
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16386 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16388 break 2
16389 fi
16390 done
16391 done
16392 IFS=$as_save_IFS
16393
16394 ;;
16395 esac
16396 fi
16397 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16398 if test -n "$ac_pt_PKG_CONFIG"; then
16399 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
16400 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
16401 else
16402 { echo "$as_me:$LINENO: result: no" >&5
16403 echo "${ECHO_T}no" >&6; }
16404 fi
16405
16406 if test "x$ac_pt_PKG_CONFIG" = x; then
16407 PKG_CONFIG=""
16408 else
16409 case $cross_compiling:$ac_tool_warned in
16410 yes:)
16411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16412 whose name does not start with the host triplet. If you think this
16413 configuration is useful to you, please write to [email protected]." >&5
16414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16415 whose name does not start with the host triplet. If you think this
16416 configuration is useful to you, please write to [email protected]." >&2;}
16417 ac_tool_warned=yes ;;
16418 esac
16419 PKG_CONFIG=$ac_pt_PKG_CONFIG
16420 fi
16421 else
16422 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16423 fi
16424
16425 fi
16426 if test -n "$PKG_CONFIG"; then
16427 _pkg_min_version=0.9.0
16428 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
16429 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
16430 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16431 { echo "$as_me:$LINENO: result: yes" >&5
16432 echo "${ECHO_T}yes" >&6; }
16433 else
16434 { echo "$as_me:$LINENO: result: no" >&5
16435 echo "${ECHO_T}no" >&6; }
16436 PKG_CONFIG=""
16437 fi
16438
16439 fi
16440
16441 # Check whether --with-sdl-prefix was given.
16442 if test "${with_sdl_prefix+set}" = set; then
16443 withval=$with_sdl_prefix; sdl_prefix="$withval"
16444 else
16445 sdl_prefix=""
16446 fi
16447
16448
16449 # Check whether --with-sdl-exec-prefix was given.
16450 if test "${with_sdl_exec_prefix+set}" = set; then
16451 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
16452 else
16453 sdl_exec_prefix=""
16454 fi
16455
16456 # Check whether --enable-sdltest was given.
16457 if test "${enable_sdltest+set}" = set; then
16458 enableval=$enable_sdltest;
16459 else
16460 enable_sdltest=yes
16461 fi
16462
16463
16464 min_sdl_version=$SDL_VERSION
16465
16466 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
16467
16468 pkg_failed=no
16469 { echo "$as_me:$LINENO: checking for SDL" >&5
16470 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
16471
16472 if test -n "$PKG_CONFIG"; then
16473 if test -n "$SDL_CFLAGS"; then
16474 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
16475 else
16476 if test -n "$PKG_CONFIG" && \
16477 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
16478 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; then
16482 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= $min_sdl_version" 2>/dev/null`
16483 else
16484 pkg_failed=yes
16485 fi
16486 fi
16487 else
16488 pkg_failed=untried
16489 fi
16490 if test -n "$PKG_CONFIG"; then
16491 if test -n "$SDL_LIBS"; then
16492 pkg_cv_SDL_LIBS="$SDL_LIBS"
16493 else
16494 if test -n "$PKG_CONFIG" && \
16495 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
16496 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; then
16500 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= $min_sdl_version" 2>/dev/null`
16501 else
16502 pkg_failed=yes
16503 fi
16504 fi
16505 else
16506 pkg_failed=untried
16507 fi
16508
16509
16510
16511 if test $pkg_failed = yes; then
16512
16513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16514 _pkg_short_errors_supported=yes
16515 else
16516 _pkg_short_errors_supported=no
16517 fi
16518 if test $_pkg_short_errors_supported = yes; then
16519 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
16520 else
16521 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
16522 fi
16523 # Put the nasty error message in config.log where it belongs
16524 echo "$SDL_PKG_ERRORS" >&5
16525
16526 { echo "$as_me:$LINENO: result: no" >&5
16527 echo "${ECHO_T}no" >&6; }
16528 { echo "$as_me:$LINENO: result: no" >&5
16529 echo "${ECHO_T}no" >&6; }
16530 sdl_pc=no
16531
16532 elif test $pkg_failed = untried; then
16533 { echo "$as_me:$LINENO: result: no" >&5
16534 echo "${ECHO_T}no" >&6; }
16535 sdl_pc=no
16536
16537 else
16538 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
16539 SDL_LIBS=$pkg_cv_SDL_LIBS
16540 { echo "$as_me:$LINENO: result: yes" >&5
16541 echo "${ECHO_T}yes" >&6; }
16542 sdl_pc=yes
16543 fi
16544 else
16545 sdl_pc=no
16546 if test x$sdl_exec_prefix != x ; then
16547 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
16548 if test x${SDL_CONFIG+set} != xset ; then
16549 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
16550 fi
16551 fi
16552 if test x$sdl_prefix != x ; then
16553 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
16554 if test x${SDL_CONFIG+set} != xset ; then
16555 SDL_CONFIG=$sdl_prefix/bin/sdl-config
16556 fi
16557 fi
16558 fi
16559
16560 if test "x$sdl_pc" = xyes ; then
16561 no_sdl=""
16562 SDL_CONFIG="pkg-config sdl"
16563 else
16564 as_save_PATH="$PATH"
16565 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
16566 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
16567 fi
16568 # Extract the first word of "sdl-config", so it can be a program name with args.
16569 set dummy sdl-config; ac_word=$2
16570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16572 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575 case $SDL_CONFIG in
16576 [\\/]* | ?:[\\/]*)
16577 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
16578 ;;
16579 *)
16580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16581 for as_dir in $PATH
16582 do
16583 IFS=$as_save_IFS
16584 test -z "$as_dir" && as_dir=.
16585 for ac_exec_ext in '' $ac_executable_extensions; do
16586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16587 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16589 break 2
16590 fi
16591 done
16592 done
16593 IFS=$as_save_IFS
16594
16595 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
16596 ;;
16597 esac
16598 fi
16599 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
16600 if test -n "$SDL_CONFIG"; then
16601 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
16602 echo "${ECHO_T}$SDL_CONFIG" >&6; }
16603 else
16604 { echo "$as_me:$LINENO: result: no" >&5
16605 echo "${ECHO_T}no" >&6; }
16606 fi
16607
16608
16609 PATH="$as_save_PATH"
16610 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
16611 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
16612 no_sdl=""
16613
16614 if test "$SDL_CONFIG" = "no" ; then
16615 no_sdl=yes
16616 else
16617 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
16618 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
16619
16620 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
16621 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16622 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
16623 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16624 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
16625 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16626 if test "x$enable_sdltest" = "xyes" ; then
16627 ac_save_CFLAGS="$CFLAGS"
16628 ac_save_CXXFLAGS="$CXXFLAGS"
16629 ac_save_LIBS="$LIBS"
16630 CFLAGS="$CFLAGS $SDL_CFLAGS"
16631 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
16632 LIBS="$LIBS $SDL_LIBS"
16633 rm -f conf.sdltest
16634 if test "$cross_compiling" = yes; then
16635 echo $ac_n "cross compiling; assumed OK... $ac_c"
16636 else
16637 cat >conftest.$ac_ext <<_ACEOF
16638 /* confdefs.h. */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643
16644 #include <stdio.h>
16645 #include <stdlib.h>
16646 #include <string.h>
16647 #include "SDL.h"
16648
16649 char*
16650 my_strdup (char *str)
16651 {
16652 char *new_str;
16653
16654 if (str)
16655 {
16656 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
16657 strcpy (new_str, str);
16658 }
16659 else
16660 new_str = NULL;
16661
16662 return new_str;
16663 }
16664
16665 int main (int argc, char *argv[])
16666 {
16667 int major, minor, micro;
16668 char *tmp_version;
16669
16670 /* This hangs on some systems (?)
16671 system ("touch conf.sdltest");
16672 */
16673 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
16674
16675 /* HP/UX 9 (%@#!) writes to sscanf strings */
16676 tmp_version = my_strdup("$min_sdl_version");
16677 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16678 printf("%s, bad version string\n", "$min_sdl_version");
16679 exit(1);
16680 }
16681
16682 if (($sdl_major_version > major) ||
16683 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
16684 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
16685 {
16686 return 0;
16687 }
16688 else
16689 {
16690 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
16691 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
16692 printf("*** best to upgrade to the required version.\n");
16693 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
16694 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
16695 printf("*** config.cache before re-running configure\n");
16696 return 1;
16697 }
16698 }
16699
16700
16701 _ACEOF
16702 rm -f conftest$ac_exeext
16703 if { (ac_try="$ac_link"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_link") 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16713 { (case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16716 esac
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_try") 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722 :
16723 else
16724 echo "$as_me: program exited with status $ac_status" >&5
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 ( exit $ac_status )
16729 no_sdl=yes
16730 fi
16731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16732 fi
16733
16734
16735 CFLAGS="$ac_save_CFLAGS"
16736 CXXFLAGS="$ac_save_CXXFLAGS"
16737 LIBS="$ac_save_LIBS"
16738 fi
16739 fi
16740 if test "x$no_sdl" = x ; then
16741 { echo "$as_me:$LINENO: result: yes" >&5
16742 echo "${ECHO_T}yes" >&6; }
16743 else
16744 { echo "$as_me:$LINENO: result: no" >&5
16745 echo "${ECHO_T}no" >&6; }
16746 fi
16747 fi
16748 if test "x$no_sdl" = x ; then
16749 :
16750 else
16751 if test "$SDL_CONFIG" = "no" ; then
16752 echo "*** The sdl-config script installed by SDL could not be found"
16753 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
16754 echo "*** your path, or set the SDL_CONFIG environment variable to the"
16755 echo "*** full path to sdl-config."
16756 else
16757 if test -f conf.sdltest ; then
16758 :
16759 else
16760 echo "*** Could not run SDL test program, checking why..."
16761 CFLAGS="$CFLAGS $SDL_CFLAGS"
16762 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
16763 LIBS="$LIBS $SDL_LIBS"
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770
16771 #include <stdio.h>
16772 #include "SDL.h"
16773
16774 int main(int argc, char *argv[])
16775 { return 0; }
16776 #undef main
16777 #define main K_and_R_C_main
16778
16779 int
16780 main ()
16781 {
16782 return 0;
16783 ;
16784 return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext conftest$ac_exeext
16788 if { (ac_try="$ac_link"
16789 case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_link") 2>conftest.er1
16795 ac_status=$?
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && {
16801 test -z "$ac_c_werror_flag" ||
16802 test ! -s conftest.err
16803 } && test -s conftest$ac_exeext &&
16804 $as_test_x conftest$ac_exeext; then
16805 echo "*** The test program compiled, but did not run. This usually means"
16806 echo "*** that the run-time linker is not finding SDL or finding the wrong"
16807 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
16808 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16809 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16810 echo "*** is required on your system"
16811 echo "***"
16812 echo "*** If you have an old version installed, it is best to remove it, although"
16813 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16814 else
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16817
16818 echo "*** The test program failed to compile or link. See the file config.log for the"
16819 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
16820 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
16821 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
16822 fi
16823
16824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16825 conftest$ac_exeext conftest.$ac_ext
16826 CFLAGS="$ac_save_CFLAGS"
16827 CXXFLAGS="$ac_save_CXXFLAGS"
16828 LIBS="$ac_save_LIBS"
16829 fi
16830 fi
16831 SDL_CFLAGS=""
16832 SDL_LIBS=""
16833 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
16834 echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
16835 { (exit 1); exit 1; }; }
16836
16837 fi
16838
16839
16840 rm -f conf.sdltest
16841
16842 CFLAGS="$CFLAGS $SDL_CFLAGS"
16843 LIBS="$LIBS $SDL_LIBS"
16844
16845 have_GUI=no
16846 # Check whether --enable-gui was given.
16847 if test "${enable_gui+set}" = set; then
16848 enableval=$enable_gui;
16849 else
16850 enable_gui=yes
16851 fi
16852
16853 if test x$enable_gui = xyes; then
16854 ac_ext=cpp
16855 ac_cpp='$CXXCPP $CPPFLAGS'
16856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16859
16860 { echo "$as_me:$LINENO: checking for GUI_Create in -lGUI" >&5
16861 echo $ECHO_N "checking for GUI_Create in -lGUI... $ECHO_C" >&6; }
16862 if test "${ac_cv_lib_GUI_GUI_Create+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865 ac_check_lib_save_LIBS=$LIBS
16866 LIBS="-lGUI $LIBS"
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h. */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16877 #ifdef __cplusplus
16878 extern "C"
16879 #endif
16880 char GUI_Create ();
16881 int
16882 main ()
16883 {
16884 return GUI_Create ();
16885 ;
16886 return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } && {
16903 test -z "$ac_cxx_werror_flag" ||
16904 test ! -s conftest.err
16905 } && test -s conftest$ac_exeext &&
16906 $as_test_x conftest$ac_exeext; then
16907 ac_cv_lib_GUI_GUI_Create=yes
16908 else
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 ac_cv_lib_GUI_GUI_Create=no
16913 fi
16914
16915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16916 conftest$ac_exeext conftest.$ac_ext
16917 LIBS=$ac_check_lib_save_LIBS
16918 fi
16919 { echo "$as_me:$LINENO: result: $ac_cv_lib_GUI_GUI_Create" >&5
16920 echo "${ECHO_T}$ac_cv_lib_GUI_GUI_Create" >&6; }
16921 if test $ac_cv_lib_GUI_GUI_Create = yes; then
16922 have_GUI=yes
16923 fi
16924
16925 ac_ext=c
16926 ac_cpp='$CPP $CPPFLAGS'
16927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16930
16931 if test x$have_GUI != xyes; then
16932 { echo "$as_me:$LINENO: WARNING: *** Can't find the GUI library - not building test programs
16933 The GUI library can be found at:
16934 http://www.libsdl.org/projects/GUIlib/
16935 " >&5
16936 echo "$as_me: WARNING: *** Can't find the GUI library - not building test programs
16937 The GUI library can be found at:
16938 http://www.libsdl.org/projects/GUIlib/
16939 " >&2;}
16940 fi
16941 fi
16942 if test x$have_GUI = xyes; then
16943 HAVE_GUI_LIB_TRUE=
16944 HAVE_GUI_LIB_FALSE='#'
16945 else
16946 HAVE_GUI_LIB_TRUE='#'
16947 HAVE_GUI_LIB_FALSE=
16948 fi
16949
16950
16951 CXXFLAGS="$CXXFLAGS $CFLAGS"
16952
16953
16954
16955 # Finally create all the generated files
16956 ac_config_files="$ac_config_files Makefile SDL_net.spec SDL_net.qpg SDL_net.pc"
16957
16958 cat >confcache <<\_ACEOF
16959 # This file is a shell script that caches the results of configure
16960 # tests run on this system so they can be shared between configure
16961 # scripts and configure runs, see configure's option --config-cache.
16962 # It is not useful on other systems. If it contains results you don't
16963 # want to keep, you may remove or edit it.
16964 #
16965 # config.status only pays attention to the cache file if you give it
16966 # the --recheck option to rerun configure.
16967 #
16968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16970 # following values.
16971
16972 _ACEOF
16973
16974 # The following way of writing the cache mishandles newlines in values,
16975 # but we know of no workaround that is simple, portable, and efficient.
16976 # So, we kill variables containing newlines.
16977 # Ultrix sh set writes to stderr and can't be redirected directly,
16978 # and sets the high bit in the cache file unless we assign to the vars.
16979 (
16980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16981 eval ac_val=\$$ac_var
16982 case $ac_val in #(
16983 *${as_nl}*)
16984 case $ac_var in #(
16985 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16986 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16987 esac
16988 case $ac_var in #(
16989 _ | IFS | as_nl) ;; #(
16990 *) $as_unset $ac_var ;;
16991 esac ;;
16992 esac
16993 done
16994
16995 (set) 2>&1 |
16996 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16997 *${as_nl}ac_space=\ *)
16998 # `set' does not quote correctly, so add quotes (double-quote
16999 # substitution turns \\\\ into \\, and sed turns \\ into \).
17000 sed -n \
17001 "s/'/'\\\\''/g;
17002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17003 ;; #(
17004 *)
17005 # `set' quotes correctly as required by POSIX, so do not add quotes.
17006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17007 ;;
17008 esac |
17009 sort
17010 ) |
17011 sed '
17012 /^ac_cv_env_/b end
17013 t clear
17014 :clear
17015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17016 t end
17017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17018 :end' >>confcache
17019 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17020 if test -w "$cache_file"; then
17021 test "x$cache_file" != "x/dev/null" &&
17022 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17023 echo "$as_me: updating cache $cache_file" >&6;}
17024 cat confcache >$cache_file
17025 else
17026 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17027 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17028 fi
17029 fi
17030 rm -f confcache
17031
17032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17033 # Let make expand exec_prefix.
17034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17035
17036 # Transform confdefs.h into DEFS.
17037 # Protect against shell expansion while executing Makefile rules.
17038 # Protect against Makefile macro expansion.
17039 #
17040 # If the first sed substitution is executed (which looks for macros that
17041 # take arguments), then branch to the quote section. Otherwise,
17042 # look for a macro that doesn't take arguments.
17043 ac_script='
17044 t clear
17045 :clear
17046 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17047 t quote
17048 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17049 t quote
17050 b any
17051 :quote
17052 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17053 s/\[/\\&/g
17054 s/\]/\\&/g
17055 s/\$/$$/g
17056 H
17057 :any
17058 ${
17059 g
17060 s/^\n//
17061 s/\n/ /g
17062 p
17063 }
17064 '
17065 DEFS=`sed -n "$ac_script" confdefs.h`
17066
17067
17068 ac_libobjs=
17069 ac_ltlibobjs=
17070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17071 # 1. Remove the extension, and $U if already installed.
17072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17073 ac_i=`echo "$ac_i" | sed "$ac_script"`
17074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17075 # will be set to the directory where LIBOBJS objects are built.
17076 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17077 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17078 done
17079 LIBOBJS=$ac_libobjs
17080
17081 LTLIBOBJS=$ac_ltlibobjs
17082
17083
17084 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17085 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17086 Usually this means the macro was only invoked conditionally." >&5
17087 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17088 Usually this means the macro was only invoked conditionally." >&2;}
17089 { (exit 1); exit 1; }; }
17090 fi
17091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17092 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17093 Usually this means the macro was only invoked conditionally." >&5
17094 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17095 Usually this means the macro was only invoked conditionally." >&2;}
17096 { (exit 1); exit 1; }; }
17097 fi
17098 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17099 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17100 Usually this means the macro was only invoked conditionally." >&5
17101 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17102 Usually this means the macro was only invoked conditionally." >&2;}
17103 { (exit 1); exit 1; }; }
17104 fi
17105 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17106 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17107 Usually this means the macro was only invoked conditionally." >&5
17108 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17109 Usually this means the macro was only invoked conditionally." >&2;}
17110 { (exit 1); exit 1; }; }
17111 fi
17112 if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
17113 { { echo "$as_me:$LINENO: error: conditional \"USE_VERSION_RC\" was never defined.
17114 Usually this means the macro was only invoked conditionally." >&5
17115 echo "$as_me: error: conditional \"USE_VERSION_RC\" was never defined.
17116 Usually this means the macro was only invoked conditionally." >&2;}
17117 { (exit 1); exit 1; }; }
17118 fi
17119 if test -z "${HAVE_GUI_LIB_TRUE}" && test -z "${HAVE_GUI_LIB_FALSE}"; then
17120 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GUI_LIB\" was never defined.
17121 Usually this means the macro was only invoked conditionally." >&5
17122 echo "$as_me: error: conditional \"HAVE_GUI_LIB\" was never defined.
17123 Usually this means the macro was only invoked conditionally." >&2;}
17124 { (exit 1); exit 1; }; }
17125 fi
17126
17127 : ${CONFIG_STATUS=./config.status}
17128 ac_clean_files_save=$ac_clean_files
17129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17130 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17131 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17132 cat >$CONFIG_STATUS <<_ACEOF
17133 #! $SHELL
17134 # Generated by $as_me.
17135 # Run this file to recreate the current configuration.
17136 # Compiler output produced by configure, useful for debugging
17137 # configure, is in config.log if it exists.
17138
17139 debug=false
17140 ac_cs_recheck=false
17141 ac_cs_silent=false
17142 SHELL=\${CONFIG_SHELL-$SHELL}
17143 _ACEOF
17144
17145 cat >>$CONFIG_STATUS <<\_ACEOF
17146 ## --------------------- ##
17147 ## M4sh Initialization. ##
17148 ## --------------------- ##
17149
17150 # Be more Bourne compatible
17151 DUALCASE=1; export DUALCASE # for MKS sh
17152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17153 emulate sh
17154 NULLCMD=:
17155 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17156 # is contrary to our usage. Disable this feature.
17157 alias -g '${1+"$@"}'='"$@"'
17158 setopt NO_GLOB_SUBST
17159 else
17160 case `(set -o) 2>/dev/null` in
17161 *posix*) set -o posix ;;
17162 esac
17163
17164 fi
17165
17166
17167
17168
17169 # PATH needs CR
17170 # Avoid depending upon Character Ranges.
17171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17174 as_cr_digits='0123456789'
17175 as_cr_alnum=$as_cr_Letters$as_cr_digits
17176
17177 # The user is always right.
17178 if test "${PATH_SEPARATOR+set}" != set; then
17179 echo "#! /bin/sh" >conf$$.sh
17180 echo "exit 0" >>conf$$.sh
17181 chmod +x conf$$.sh
17182 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17183 PATH_SEPARATOR=';'
17184 else
17185 PATH_SEPARATOR=:
17186 fi
17187 rm -f conf$$.sh
17188 fi
17189
17190 # Support unset when possible.
17191 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17192 as_unset=unset
17193 else
17194 as_unset=false
17195 fi
17196
17197
17198 # IFS
17199 # We need space, tab and new line, in precisely that order. Quoting is
17200 # there to prevent editors from complaining about space-tab.
17201 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17202 # splitting by setting IFS to empty value.)
17203 as_nl='
17204 '
17205 IFS=" "" $as_nl"
17206
17207 # Find who we are. Look in the path if we contain no directory separator.
17208 case $0 in
17209 *[\\/]* ) as_myself=$0 ;;
17210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17211 for as_dir in $PATH
17212 do
17213 IFS=$as_save_IFS
17214 test -z "$as_dir" && as_dir=.
17215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17216 done
17217 IFS=$as_save_IFS
17218
17219 ;;
17220 esac
17221 # We did not find ourselves, most probably we were run as `sh COMMAND'
17222 # in which case we are not to be found in the path.
17223 if test "x$as_myself" = x; then
17224 as_myself=$0
17225 fi
17226 if test ! -f "$as_myself"; then
17227 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17228 { (exit 1); exit 1; }
17229 fi
17230
17231 # Work around bugs in pre-3.0 UWIN ksh.
17232 for as_var in ENV MAIL MAILPATH
17233 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17234 done
17235 PS1='$ '
17236 PS2='> '
17237 PS4='+ '
17238
17239 # NLS nuisances.
17240 for as_var in \
17241 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17242 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17243 LC_TELEPHONE LC_TIME
17244 do
17245 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17246 eval $as_var=C; export $as_var
17247 else
17248 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17249 fi
17250 done
17251
17252 # Required to use basename.
17253 if expr a : '\(a\)' >/dev/null 2>&1 &&
17254 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17255 as_expr=expr
17256 else
17257 as_expr=false
17258 fi
17259
17260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17261 as_basename=basename
17262 else
17263 as_basename=false
17264 fi
17265
17266
17267 # Name of the executable.
17268 as_me=`$as_basename -- "$0" ||
17269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17270 X"$0" : 'X\(//\)$' \| \
17271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17272 echo X/"$0" |
17273 sed '/^.*\/\([^/][^/]*\)\/*$/{
17274 s//\1/
17275 q
17276 }
17277 /^X\/\(\/\/\)$/{
17278 s//\1/
17279 q
17280 }
17281 /^X\/\(\/\).*/{
17282 s//\1/
17283 q
17284 }
17285 s/.*/./; q'`
17286
17287 # CDPATH.
17288 $as_unset CDPATH
17289
17290
17291
17292 as_lineno_1=$LINENO
17293 as_lineno_2=$LINENO
17294 test "x$as_lineno_1" != "x$as_lineno_2" &&
17295 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17296
17297 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17298 # uniformly replaced by the line number. The first 'sed' inserts a
17299 # line-number line after each line using $LINENO; the second 'sed'
17300 # does the real work. The second script uses 'N' to pair each
17301 # line-number line with the line containing $LINENO, and appends
17302 # trailing '-' during substitution so that $LINENO is not a special
17303 # case at line end.
17304 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17305 # scripts with optimization help from Paolo Bonzini. Blame Lee
17306 # E. McMahon (1931-1989) for sed's syntax. :-)
17307 sed -n '
17308 p
17309 /[$]LINENO/=
17310 ' <$as_myself |
17311 sed '
17312 s/[$]LINENO.*/&-/
17313 t lineno
17314 b
17315 :lineno
17316 N
17317 :loop
17318 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17319 t loop
17320 s/-\n.*//
17321 ' >$as_me.lineno &&
17322 chmod +x "$as_me.lineno" ||
17323 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17324 { (exit 1); exit 1; }; }
17325
17326 # Don't try to exec as it changes $[0], causing all sort of problems
17327 # (the dirname of $[0] is not the place where we might find the
17328 # original and so on. Autoconf is especially sensitive to this).
17329 . "./$as_me.lineno"
17330 # Exit status is that of the last command.
17331 exit
17332 }
17333
17334
17335 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17336 as_dirname=dirname
17337 else
17338 as_dirname=false
17339 fi
17340
17341 ECHO_C= ECHO_N= ECHO_T=
17342 case `echo -n x` in
17343 -n*)
17344 case `echo 'x\c'` in
17345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17346 *) ECHO_C='\c';;
17347 esac;;
17348 *)
17349 ECHO_N='-n';;
17350 esac
17351
17352 if expr a : '\(a\)' >/dev/null 2>&1 &&
17353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17354 as_expr=expr
17355 else
17356 as_expr=false
17357 fi
17358
17359 rm -f conf$$ conf$$.exe conf$$.file
17360 if test -d conf$$.dir; then
17361 rm -f conf$$.dir/conf$$.file
17362 else
17363 rm -f conf$$.dir
17364 mkdir conf$$.dir
17365 fi
17366 echo >conf$$.file
17367 if ln -s conf$$.file conf$$ 2>/dev/null; then
17368 as_ln_s='ln -s'
17369 # ... but there are two gotchas:
17370 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17371 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17372 # In both cases, we have to default to `cp -p'.
17373 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17374 as_ln_s='cp -p'
17375 elif ln conf$$.file conf$$ 2>/dev/null; then
17376 as_ln_s=ln
17377 else
17378 as_ln_s='cp -p'
17379 fi
17380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17381 rmdir conf$$.dir 2>/dev/null
17382
17383 if mkdir -p . 2>/dev/null; then
17384 as_mkdir_p=:
17385 else
17386 test -d ./-p && rmdir ./-p
17387 as_mkdir_p=false
17388 fi
17389
17390 if test -x / >/dev/null 2>&1; then
17391 as_test_x='test -x'
17392 else
17393 if ls -dL / >/dev/null 2>&1; then
17394 as_ls_L_option=L
17395 else
17396 as_ls_L_option=
17397 fi
17398 as_test_x='
17399 eval sh -c '\''
17400 if test -d "$1"; then
17401 test -d "$1/.";
17402 else
17403 case $1 in
17404 -*)set "./$1";;
17405 esac;
17406 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17407 ???[sx]*):;;*)false;;esac;fi
17408 '\'' sh
17409 '
17410 fi
17411 as_executable_p=$as_test_x
17412
17413 # Sed expression to map a string onto a valid CPP name.
17414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17415
17416 # Sed expression to map a string onto a valid variable name.
17417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17418
17419
17420 exec 6>&1
17421
17422 # Save the log message, to keep $[0] and so on meaningful, and to
17423 # report actual input values of CONFIG_FILES etc. instead of their
17424 # values after options handling.
17425 ac_log="
17426 This file was extended by $as_me, which was
17427 generated by GNU Autoconf 2.61. Invocation command line was
17428
17429 CONFIG_FILES = $CONFIG_FILES
17430 CONFIG_HEADERS = $CONFIG_HEADERS
17431 CONFIG_LINKS = $CONFIG_LINKS
17432 CONFIG_COMMANDS = $CONFIG_COMMANDS
17433 $ $0 $@
17434
17435 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17436 "
17437
17438 _ACEOF
17439
17440 cat >>$CONFIG_STATUS <<_ACEOF
17441 # Files that config.status was made for.
17442 config_files="$ac_config_files"
17443 config_commands="$ac_config_commands"
17444
17445 _ACEOF
17446
17447 cat >>$CONFIG_STATUS <<\_ACEOF
17448 ac_cs_usage="\
17449 \`$as_me' instantiates files from templates according to the
17450 current configuration.
17451
17452 Usage: $0 [OPTIONS] [FILE]...
17453
17454 -h, --help print this help, then exit
17455 -V, --version print version number and configuration settings, then exit
17456 -q, --quiet do not print progress messages
17457 -d, --debug don't remove temporary files
17458 --recheck update $as_me by reconfiguring in the same conditions
17459 --file=FILE[:TEMPLATE]
17460 instantiate the configuration file FILE
17461
17462 Configuration files:
17463 $config_files
17464
17465 Configuration commands:
17466 $config_commands
17467
17468 Report bugs to <[email protected]>."
17469
17470 _ACEOF
17471 cat >>$CONFIG_STATUS <<_ACEOF
17472 ac_cs_version="\\
17473 config.status
17474 configured by $0, generated by GNU Autoconf 2.61,
17475 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17476
17477 Copyright (C) 2006 Free Software Foundation, Inc.
17478 This config.status script is free software; the Free Software Foundation
17479 gives unlimited permission to copy, distribute and modify it."
17480
17481 ac_pwd='$ac_pwd'
17482 srcdir='$srcdir'
17483 INSTALL='$INSTALL'
17484 MKDIR_P='$MKDIR_P'
17485 _ACEOF
17486
17487 cat >>$CONFIG_STATUS <<\_ACEOF
17488 # If no file are specified by the user, then we need to provide default
17489 # value. By we need to know if files were specified by the user.
17490 ac_need_defaults=:
17491 while test $# != 0
17492 do
17493 case $1 in
17494 --*=*)
17495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17497 ac_shift=:
17498 ;;
17499 *)
17500 ac_option=$1
17501 ac_optarg=$2
17502 ac_shift=shift
17503 ;;
17504 esac
17505
17506 case $ac_option in
17507 # Handling of the options.
17508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17509 ac_cs_recheck=: ;;
17510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17511 echo "$ac_cs_version"; exit ;;
17512 --debug | --debu | --deb | --de | --d | -d )
17513 debug=: ;;
17514 --file | --fil | --fi | --f )
17515 $ac_shift
17516 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17517 ac_need_defaults=false;;
17518 --he | --h | --help | --hel | -h )
17519 echo "$ac_cs_usage"; exit ;;
17520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17521 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17522 ac_cs_silent=: ;;
17523
17524 # This is an error.
17525 -*) { echo "$as_me: error: unrecognized option: $1
17526 Try \`$0 --help' for more information." >&2
17527 { (exit 1); exit 1; }; } ;;
17528
17529 *) ac_config_targets="$ac_config_targets $1"
17530 ac_need_defaults=false ;;
17531
17532 esac
17533 shift
17534 done
17535
17536 ac_configure_extra_args=
17537
17538 if $ac_cs_silent; then
17539 exec 6>/dev/null
17540 ac_configure_extra_args="$ac_configure_extra_args --silent"
17541 fi
17542
17543 _ACEOF
17544 cat >>$CONFIG_STATUS <<_ACEOF
17545 if \$ac_cs_recheck; then
17546 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17547 CONFIG_SHELL=$SHELL
17548 export CONFIG_SHELL
17549 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17550 fi
17551
17552 _ACEOF
17553 cat >>$CONFIG_STATUS <<\_ACEOF
17554 exec 5>>config.log
17555 {
17556 echo
17557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17558 ## Running $as_me. ##
17559 _ASBOX
17560 echo "$ac_log"
17561 } >&5
17562
17563 _ACEOF
17564 cat >>$CONFIG_STATUS <<_ACEOF
17565 #
17566 # INIT-COMMANDS
17567 #
17568
17569
17570 # The HP-UX ksh and POSIX shell print the target directory to stdout
17571 # if CDPATH is set.
17572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17573
17574 sed_quote_subst='$sed_quote_subst'
17575 double_quote_subst='$double_quote_subst'
17576 delay_variable_subst='$delay_variable_subst'
17577 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17578 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17579 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
17580 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17581 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17582 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17583 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17584 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17585 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17586 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17587 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17588 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17589 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17590 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17591 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17592 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17593 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17594 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17595 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17596 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17597 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17598 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17599 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17600 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17601 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17602 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17603 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17604 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17605 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17606 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17607 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17608 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17609 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17610 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17611 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17612 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17613 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17614 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17615 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17616 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17617 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17618 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17619 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17620 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17621 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17622 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17623 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"`'
17624 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"`'
17625 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17626 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17627 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17628 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17629 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17630 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17631 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17632 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17633 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17634 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17635 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17636 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17637 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17638 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17639 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17640 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17641 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17642 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17643 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17644 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17645 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17646 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17647 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17648 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17649 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17650 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17651 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17652 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17653 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17654 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17655 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17656 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17657 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17658 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17659 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17660 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17661 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17662 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17663 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17664 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17665 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17666 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17667 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17668 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17669 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17670 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17671 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17672 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17673 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17674 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17675 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17676 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17677 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17678 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17679 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17680 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17681 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17682 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17683 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17684 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17685 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17686 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17687 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17688 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17689 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17690 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17691 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17692 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17693 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17694 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17695 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17696 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17697 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17698 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17699 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17700 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17701 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17702 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17703 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17704 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17705 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17706 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17707 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17708 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17709 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17710 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17711 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17712 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17713 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17714 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17715 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17716 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17717 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17718 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17719 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17720 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17721 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17722 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17723 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17724 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17725 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17726 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17727 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17728 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17729 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17730 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17731 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17732 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17733 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17734 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17735 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17736 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17737 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17738 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17739 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17740 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17741 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17742 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17743 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17744 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17745 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17746 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17747 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17748 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17749 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17750
17751 LTCC='$LTCC'
17752 LTCFLAGS='$LTCFLAGS'
17753 compiler='$compiler_DEFAULT'
17754
17755 # Quote evaled strings.
17756 for var in SED \
17757 GREP \
17758 EGREP \
17759 FGREP \
17760 LD \
17761 NM \
17762 LN_S \
17763 lt_SP2NL \
17764 lt_NL2SP \
17765 reload_flag \
17766 deplibs_check_method \
17767 file_magic_cmd \
17768 AR \
17769 AR_FLAGS \
17770 STRIP \
17771 RANLIB \
17772 CC \
17773 CFLAGS \
17774 compiler \
17775 lt_cv_sys_global_symbol_pipe \
17776 lt_cv_sys_global_symbol_to_cdecl \
17777 lt_cv_sys_global_symbol_to_c_name_address \
17778 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17779 SHELL \
17780 ECHO \
17781 lt_prog_compiler_no_builtin_flag \
17782 lt_prog_compiler_wl \
17783 lt_prog_compiler_pic \
17784 lt_prog_compiler_static \
17785 lt_cv_prog_compiler_c_o \
17786 need_locks \
17787 DSYMUTIL \
17788 NMEDIT \
17789 LIPO \
17790 OTOOL \
17791 OTOOL64 \
17792 shrext_cmds \
17793 export_dynamic_flag_spec \
17794 whole_archive_flag_spec \
17795 compiler_needs_object \
17796 with_gnu_ld \
17797 allow_undefined_flag \
17798 no_undefined_flag \
17799 hardcode_libdir_flag_spec \
17800 hardcode_libdir_flag_spec_ld \
17801 hardcode_libdir_separator \
17802 fix_srcfile_path \
17803 exclude_expsyms \
17804 include_expsyms \
17805 file_list_spec \
17806 variables_saved_for_relink \
17807 libname_spec \
17808 library_names_spec \
17809 soname_spec \
17810 finish_eval \
17811 old_striplib \
17812 striplib \
17813 compiler_lib_search_dirs \
17814 predep_objects \
17815 postdep_objects \
17816 predeps \
17817 postdeps \
17818 compiler_lib_search_path \
17819 LD_CXX \
17820 compiler_CXX \
17821 lt_prog_compiler_no_builtin_flag_CXX \
17822 lt_prog_compiler_wl_CXX \
17823 lt_prog_compiler_pic_CXX \
17824 lt_prog_compiler_static_CXX \
17825 lt_cv_prog_compiler_c_o_CXX \
17826 export_dynamic_flag_spec_CXX \
17827 whole_archive_flag_spec_CXX \
17828 compiler_needs_object_CXX \
17829 with_gnu_ld_CXX \
17830 allow_undefined_flag_CXX \
17831 no_undefined_flag_CXX \
17832 hardcode_libdir_flag_spec_CXX \
17833 hardcode_libdir_flag_spec_ld_CXX \
17834 hardcode_libdir_separator_CXX \
17835 fix_srcfile_path_CXX \
17836 exclude_expsyms_CXX \
17837 include_expsyms_CXX \
17838 file_list_spec_CXX \
17839 compiler_lib_search_dirs_CXX \
17840 predep_objects_CXX \
17841 postdep_objects_CXX \
17842 predeps_CXX \
17843 postdeps_CXX \
17844 compiler_lib_search_path_CXX; do
17845 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17846 *[\\\\\\\`\\"\\\$]*)
17847 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17848 ;;
17849 *)
17850 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17851 ;;
17852 esac
17853 done
17854
17855 # Double-quote double-evaled strings.
17856 for var in reload_cmds \
17857 old_postinstall_cmds \
17858 old_postuninstall_cmds \
17859 old_archive_cmds \
17860 extract_expsyms_cmds \
17861 old_archive_from_new_cmds \
17862 old_archive_from_expsyms_cmds \
17863 archive_cmds \
17864 archive_expsym_cmds \
17865 module_cmds \
17866 module_expsym_cmds \
17867 export_symbols_cmds \
17868 prelink_cmds \
17869 postinstall_cmds \
17870 postuninstall_cmds \
17871 finish_cmds \
17872 sys_lib_search_path_spec \
17873 sys_lib_dlsearch_path_spec \
17874 old_archive_cmds_CXX \
17875 old_archive_from_new_cmds_CXX \
17876 old_archive_from_expsyms_cmds_CXX \
17877 archive_cmds_CXX \
17878 archive_expsym_cmds_CXX \
17879 module_cmds_CXX \
17880 module_expsym_cmds_CXX \
17881 export_symbols_cmds_CXX \
17882 prelink_cmds_CXX; do
17883 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17884 *[\\\\\\\`\\"\\\$]*)
17885 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17886 ;;
17887 *)
17888 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17889 ;;
17890 esac
17891 done
17892
17893 # Fix-up fallback echo if it was mangled by the above quoting rules.
17894 case \$lt_ECHO in
17895 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17896 ;;
17897 esac
17898
17899 ac_aux_dir='$ac_aux_dir'
17900 xsi_shell='$xsi_shell'
17901 lt_shell_append='$lt_shell_append'
17902
17903 # See if we are running on zsh, and set the options which allow our
17904 # commands through without removal of \ escapes INIT.
17905 if test -n "\${ZSH_VERSION+set}" ; then
17906 setopt NO_GLOB_SUBST
17907 fi
17908
17909
17910 PACKAGE='$PACKAGE'
17911 VERSION='$VERSION'
17912 TIMESTAMP='$TIMESTAMP'
17913 RM='$RM'
17914 ofile='$ofile'
17915
17916
17917
17918
17919
17920 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17921
17922 _ACEOF
17923
17924 cat >>$CONFIG_STATUS <<\_ACEOF
17925
17926 # Handling of arguments.
17927 for ac_config_target in $ac_config_targets
17928 do
17929 case $ac_config_target in
17930 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17931 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17932 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17933 "SDL_net.spec") CONFIG_FILES="$CONFIG_FILES SDL_net.spec" ;;
17934 "SDL_net.qpg") CONFIG_FILES="$CONFIG_FILES SDL_net.qpg" ;;
17935 "SDL_net.pc") CONFIG_FILES="$CONFIG_FILES SDL_net.pc" ;;
17936
17937 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17938 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17939 { (exit 1); exit 1; }; };;
17940 esac
17941 done
17942
17943
17944 # If the user did not use the arguments to specify the items to instantiate,
17945 # then the envvar interface is used. Set only those that are not.
17946 # We use the long form for the default assignment because of an extremely
17947 # bizarre bug on SunOS 4.1.3.
17948 if $ac_need_defaults; then
17949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17951 fi
17952
17953 # Have a temporary directory for convenience. Make it in the build tree
17954 # simply because there is no reason against having it here, and in addition,
17955 # creating and moving files from /tmp can sometimes cause problems.
17956 # Hook for its removal unless debugging.
17957 # Note that there is a small window in which the directory will not be cleaned:
17958 # after its creation but before its name has been assigned to `$tmp'.
17959 $debug ||
17960 {
17961 tmp=
17962 trap 'exit_status=$?
17963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17964 ' 0
17965 trap '{ (exit 1); exit 1; }' 1 2 13 15
17966 }
17967 # Create a (secure) tmp directory for tmp files.
17968
17969 {
17970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17971 test -n "$tmp" && test -d "$tmp"
17972 } ||
17973 {
17974 tmp=./conf$$-$RANDOM
17975 (umask 077 && mkdir "$tmp")
17976 } ||
17977 {
17978 echo "$me: cannot create a temporary directory in ." >&2
17979 { (exit 1); exit 1; }
17980 }
17981
17982 #
17983 # Set up the sed scripts for CONFIG_FILES section.
17984 #
17985
17986 # No need to generate the scripts if there are no CONFIG_FILES.
17987 # This happens for instance when ./config.status config.h
17988 if test -n "$CONFIG_FILES"; then
17989
17990 _ACEOF
17991
17992
17993
17994 ac_delim='%!_!# '
17995 for ac_last_try in false false false false false :; do
17996 cat >conf$$subs.sed <<_ACEOF
17997 SHELL!$SHELL$ac_delim
17998 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17999 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18000 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18001 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18002 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18003 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18004 exec_prefix!$exec_prefix$ac_delim
18005 prefix!$prefix$ac_delim
18006 program_transform_name!$program_transform_name$ac_delim
18007 bindir!$bindir$ac_delim
18008 sbindir!$sbindir$ac_delim
18009 libexecdir!$libexecdir$ac_delim
18010 datarootdir!$datarootdir$ac_delim
18011 datadir!$datadir$ac_delim
18012 sysconfdir!$sysconfdir$ac_delim
18013 sharedstatedir!$sharedstatedir$ac_delim
18014 localstatedir!$localstatedir$ac_delim
18015 includedir!$includedir$ac_delim
18016 oldincludedir!$oldincludedir$ac_delim
18017 docdir!$docdir$ac_delim
18018 infodir!$infodir$ac_delim
18019 htmldir!$htmldir$ac_delim
18020 dvidir!$dvidir$ac_delim
18021 pdfdir!$pdfdir$ac_delim
18022 psdir!$psdir$ac_delim
18023 libdir!$libdir$ac_delim
18024 localedir!$localedir$ac_delim
18025 mandir!$mandir$ac_delim
18026 DEFS!$DEFS$ac_delim
18027 ECHO_C!$ECHO_C$ac_delim
18028 ECHO_N!$ECHO_N$ac_delim
18029 ECHO_T!$ECHO_T$ac_delim
18030 LIBS!$LIBS$ac_delim
18031 build_alias!$build_alias$ac_delim
18032 host_alias!$host_alias$ac_delim
18033 target_alias!$target_alias$ac_delim
18034 MAJOR_VERSION!$MAJOR_VERSION$ac_delim
18035 MINOR_VERSION!$MINOR_VERSION$ac_delim
18036 MICRO_VERSION!$MICRO_VERSION$ac_delim
18037 INTERFACE_AGE!$INTERFACE_AGE$ac_delim
18038 BINARY_AGE!$BINARY_AGE$ac_delim
18039 VERSION!$VERSION$ac_delim
18040 AS!$AS$ac_delim
18041 DLLTOOL!$DLLTOOL$ac_delim
18042 OBJDUMP!$OBJDUMP$ac_delim
18043 LIBTOOL!$LIBTOOL$ac_delim
18044 build!$build$ac_delim
18045 build_cpu!$build_cpu$ac_delim
18046 build_vendor!$build_vendor$ac_delim
18047 build_os!$build_os$ac_delim
18048 host!$host$ac_delim
18049 host_cpu!$host_cpu$ac_delim
18050 host_vendor!$host_vendor$ac_delim
18051 host_os!$host_os$ac_delim
18052 CC!$CC$ac_delim
18053 CFLAGS!$CFLAGS$ac_delim
18054 LDFLAGS!$LDFLAGS$ac_delim
18055 CPPFLAGS!$CPPFLAGS$ac_delim
18056 ac_ct_CC!$ac_ct_CC$ac_delim
18057 EXEEXT!$EXEEXT$ac_delim
18058 OBJEXT!$OBJEXT$ac_delim
18059 SED!$SED$ac_delim
18060 GREP!$GREP$ac_delim
18061 EGREP!$EGREP$ac_delim
18062 FGREP!$FGREP$ac_delim
18063 LD!$LD$ac_delim
18064 DUMPBIN!$DUMPBIN$ac_delim
18065 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
18066 NM!$NM$ac_delim
18067 LN_S!$LN_S$ac_delim
18068 AR!$AR$ac_delim
18069 STRIP!$STRIP$ac_delim
18070 RANLIB!$RANLIB$ac_delim
18071 lt_ECHO!$lt_ECHO$ac_delim
18072 DSYMUTIL!$DSYMUTIL$ac_delim
18073 NMEDIT!$NMEDIT$ac_delim
18074 LIPO!$LIPO$ac_delim
18075 OTOOL!$OTOOL$ac_delim
18076 OTOOL64!$OTOOL64$ac_delim
18077 CPP!$CPP$ac_delim
18078 LT_RELEASE!$LT_RELEASE$ac_delim
18079 LT_CURRENT!$LT_CURRENT$ac_delim
18080 LT_REVISION!$LT_REVISION$ac_delim
18081 LT_AGE!$LT_AGE$ac_delim
18082 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18083 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18084 INSTALL_DATA!$INSTALL_DATA$ac_delim
18085 am__isrc!$am__isrc$ac_delim
18086 CYGPATH_W!$CYGPATH_W$ac_delim
18087 PACKAGE!$PACKAGE$ac_delim
18088 ACLOCAL!$ACLOCAL$ac_delim
18089 AUTOCONF!$AUTOCONF$ac_delim
18090 AUTOMAKE!$AUTOMAKE$ac_delim
18091 AUTOHEADER!$AUTOHEADER$ac_delim
18092 MAKEINFO!$MAKEINFO$ac_delim
18093 install_sh!$install_sh$ac_delim
18094 _ACEOF
18095
18096 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18097 break
18098 elif $ac_last_try; then
18099 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18100 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18101 { (exit 1); exit 1; }; }
18102 else
18103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18104 fi
18105 done
18106
18107 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18108 if test -n "$ac_eof"; then
18109 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18110 ac_eof=`expr $ac_eof + 1`
18111 fi
18112
18113 cat >>$CONFIG_STATUS <<_ACEOF
18114 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18116 _ACEOF
18117 sed '
18118 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18119 s/^/s,@/; s/!/@,|#_!!_#|/
18120 :n
18121 t n
18122 s/'"$ac_delim"'$/,g/; t
18123 s/$/\\/; p
18124 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18125 ' >>$CONFIG_STATUS <conf$$subs.sed
18126 rm -f conf$$subs.sed
18127 cat >>$CONFIG_STATUS <<_ACEOF
18128 CEOF$ac_eof
18129 _ACEOF
18130
18131
18132 ac_delim='%!_!# '
18133 for ac_last_try in false false false false false :; do
18134 cat >conf$$subs.sed <<_ACEOF
18135 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
18136 mkdir_p!$mkdir_p$ac_delim
18137 AWK!$AWK$ac_delim
18138 SET_MAKE!$SET_MAKE$ac_delim
18139 am__leading_dot!$am__leading_dot$ac_delim
18140 AMTAR!$AMTAR$ac_delim
18141 am__tar!$am__tar$ac_delim
18142 am__untar!$am__untar$ac_delim
18143 DEPDIR!$DEPDIR$ac_delim
18144 am__include!$am__include$ac_delim
18145 am__quote!$am__quote$ac_delim
18146 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
18147 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
18148 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
18149 CCDEPMODE!$CCDEPMODE$ac_delim
18150 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
18151 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
18152 CXX!$CXX$ac_delim
18153 CXXFLAGS!$CXXFLAGS$ac_delim
18154 ac_ct_CXX!$ac_ct_CXX$ac_delim
18155 CXXDEPMODE!$CXXDEPMODE$ac_delim
18156 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
18157 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
18158 CXXCPP!$CXXCPP$ac_delim
18159 WINDRES!$WINDRES$ac_delim
18160 USE_VERSION_RC_TRUE!$USE_VERSION_RC_TRUE$ac_delim
18161 USE_VERSION_RC_FALSE!$USE_VERSION_RC_FALSE$ac_delim
18162 INETLIB!$INETLIB$ac_delim
18163 SDL_VERSION!$SDL_VERSION$ac_delim
18164 PKG_CONFIG!$PKG_CONFIG$ac_delim
18165 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
18166 SDL_LIBS!$SDL_LIBS$ac_delim
18167 SDL_CONFIG!$SDL_CONFIG$ac_delim
18168 HAVE_GUI_LIB_TRUE!$HAVE_GUI_LIB_TRUE$ac_delim
18169 HAVE_GUI_LIB_FALSE!$HAVE_GUI_LIB_FALSE$ac_delim
18170 LIBOBJS!$LIBOBJS$ac_delim
18171 LTLIBOBJS!$LTLIBOBJS$ac_delim
18172 _ACEOF
18173
18174 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
18175 break
18176 elif $ac_last_try; then
18177 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18178 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18179 { (exit 1); exit 1; }; }
18180 else
18181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18182 fi
18183 done
18184
18185 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18186 if test -n "$ac_eof"; then
18187 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18188 ac_eof=`expr $ac_eof + 1`
18189 fi
18190
18191 cat >>$CONFIG_STATUS <<_ACEOF
18192 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18194 _ACEOF
18195 sed '
18196 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18197 s/^/s,@/; s/!/@,|#_!!_#|/
18198 :n
18199 t n
18200 s/'"$ac_delim"'$/,g/; t
18201 s/$/\\/; p
18202 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18203 ' >>$CONFIG_STATUS <conf$$subs.sed
18204 rm -f conf$$subs.sed
18205 cat >>$CONFIG_STATUS <<_ACEOF
18206 :end
18207 s/|#_!!_#|//g
18208 CEOF$ac_eof
18209 _ACEOF
18210
18211
18212 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18213 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18214 # trailing colons and then remove the whole line if VPATH becomes empty
18215 # (actually we leave an empty line to preserve line numbers).
18216 if test "x$srcdir" = x.; then
18217 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18218 s/:*\$(srcdir):*/:/
18219 s/:*\${srcdir}:*/:/
18220 s/:*@srcdir@:*/:/
18221 s/^\([^=]*=[ ]*\):*/\1/
18222 s/:*$//
18223 s/^[^=]*=[ ]*$//
18224 }'
18225 fi
18226
18227 cat >>$CONFIG_STATUS <<\_ACEOF
18228 fi # test -n "$CONFIG_FILES"
18229
18230
18231 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
18232 do
18233 case $ac_tag in
18234 :[FHLC]) ac_mode=$ac_tag; continue;;
18235 esac
18236 case $ac_mode$ac_tag in
18237 :[FHL]*:*);;
18238 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18239 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18240 { (exit 1); exit 1; }; };;
18241 :[FH]-) ac_tag=-:-;;
18242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18243 esac
18244 ac_save_IFS=$IFS
18245 IFS=:
18246 set x $ac_tag
18247 IFS=$ac_save_IFS
18248 shift
18249 ac_file=$1
18250 shift
18251
18252 case $ac_mode in
18253 :L) ac_source=$1;;
18254 :[FH])
18255 ac_file_inputs=
18256 for ac_f
18257 do
18258 case $ac_f in
18259 -) ac_f="$tmp/stdin";;
18260 *) # Look for the file first in the build tree, then in the source tree
18261 # (if the path is not absolute). The absolute path cannot be DOS-style,
18262 # because $ac_f cannot contain `:'.
18263 test -f "$ac_f" ||
18264 case $ac_f in
18265 [\\/$]*) false;;
18266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18267 esac ||
18268 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18269 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18270 { (exit 1); exit 1; }; };;
18271 esac
18272 ac_file_inputs="$ac_file_inputs $ac_f"
18273 done
18274
18275 # Let's still pretend it is `configure' which instantiates (i.e., don't
18276 # use $as_me), people would be surprised to read:
18277 # /* config.h. Generated by config.status. */
18278 configure_input="Generated from "`IFS=:
18279 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18280 if test x"$ac_file" != x-; then
18281 configure_input="$ac_file. $configure_input"
18282 { echo "$as_me:$LINENO: creating $ac_file" >&5
18283 echo "$as_me: creating $ac_file" >&6;}
18284 fi
18285
18286 case $ac_tag in
18287 *:-:* | *:-) cat >"$tmp/stdin";;
18288 esac
18289 ;;
18290 esac
18291
18292 ac_dir=`$as_dirname -- "$ac_file" ||
18293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18294 X"$ac_file" : 'X\(//\)[^/]' \| \
18295 X"$ac_file" : 'X\(//\)$' \| \
18296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18297 echo X"$ac_file" |
18298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18299 s//\1/
18300 q
18301 }
18302 /^X\(\/\/\)[^/].*/{
18303 s//\1/
18304 q
18305 }
18306 /^X\(\/\/\)$/{
18307 s//\1/
18308 q
18309 }
18310 /^X\(\/\).*/{
18311 s//\1/
18312 q
18313 }
18314 s/.*/./; q'`
18315 { as_dir="$ac_dir"
18316 case $as_dir in #(
18317 -*) as_dir=./$as_dir;;
18318 esac
18319 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18320 as_dirs=
18321 while :; do
18322 case $as_dir in #(
18323 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18324 *) as_qdir=$as_dir;;
18325 esac
18326 as_dirs="'$as_qdir' $as_dirs"
18327 as_dir=`$as_dirname -- "$as_dir" ||
18328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18329 X"$as_dir" : 'X\(//\)[^/]' \| \
18330 X"$as_dir" : 'X\(//\)$' \| \
18331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18332 echo X"$as_dir" |
18333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18334 s//\1/
18335 q
18336 }
18337 /^X\(\/\/\)[^/].*/{
18338 s//\1/
18339 q
18340 }
18341 /^X\(\/\/\)$/{
18342 s//\1/
18343 q
18344 }
18345 /^X\(\/\).*/{
18346 s//\1/
18347 q
18348 }
18349 s/.*/./; q'`
18350 test -d "$as_dir" && break
18351 done
18352 test -z "$as_dirs" || eval "mkdir $as_dirs"
18353 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18354 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18355 { (exit 1); exit 1; }; }; }
18356 ac_builddir=.
18357
18358 case "$ac_dir" in
18359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18360 *)
18361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18362 # A ".." for each directory in $ac_dir_suffix.
18363 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18364 case $ac_top_builddir_sub in
18365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18367 esac ;;
18368 esac
18369 ac_abs_top_builddir=$ac_pwd
18370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18371 # for backward compatibility:
18372 ac_top_builddir=$ac_top_build_prefix
18373
18374 case $srcdir in
18375 .) # We are building in place.
18376 ac_srcdir=.
18377 ac_top_srcdir=$ac_top_builddir_sub
18378 ac_abs_top_srcdir=$ac_pwd ;;
18379 [\\/]* | ?:[\\/]* ) # Absolute name.
18380 ac_srcdir=$srcdir$ac_dir_suffix;
18381 ac_top_srcdir=$srcdir
18382 ac_abs_top_srcdir=$srcdir ;;
18383 *) # Relative name.
18384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18385 ac_top_srcdir=$ac_top_build_prefix$srcdir
18386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18387 esac
18388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18389
18390
18391 case $ac_mode in
18392 :F)
18393 #
18394 # CONFIG_FILE
18395 #
18396
18397 case $INSTALL in
18398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18399 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18400 esac
18401 ac_MKDIR_P=$MKDIR_P
18402 case $MKDIR_P in
18403 [\\/$]* | ?:[\\/]* ) ;;
18404 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18405 esac
18406 _ACEOF
18407
18408 cat >>$CONFIG_STATUS <<\_ACEOF
18409 # If the template does not know about datarootdir, expand it.
18410 # FIXME: This hack should be removed a few years after 2.60.
18411 ac_datarootdir_hack=; ac_datarootdir_seen=
18412
18413 case `sed -n '/datarootdir/ {
18414 p
18415 q
18416 }
18417 /@datadir@/p
18418 /@docdir@/p
18419 /@infodir@/p
18420 /@localedir@/p
18421 /@mandir@/p
18422 ' $ac_file_inputs` in
18423 *datarootdir*) ac_datarootdir_seen=yes;;
18424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18425 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18426 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18427 _ACEOF
18428 cat >>$CONFIG_STATUS <<_ACEOF
18429 ac_datarootdir_hack='
18430 s&@datadir@&$datadir&g
18431 s&@docdir@&$docdir&g
18432 s&@infodir@&$infodir&g
18433 s&@localedir@&$localedir&g
18434 s&@mandir@&$mandir&g
18435 s&\\\${datarootdir}&$datarootdir&g' ;;
18436 esac
18437 _ACEOF
18438
18439 # Neutralize VPATH when `$srcdir' = `.'.
18440 # Shell code in configure.ac might set extrasub.
18441 # FIXME: do we really want to maintain this feature?
18442 cat >>$CONFIG_STATUS <<_ACEOF
18443 sed "$ac_vpsub
18444 $extrasub
18445 _ACEOF
18446 cat >>$CONFIG_STATUS <<\_ACEOF
18447 :t
18448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18449 s&@configure_input@&$configure_input&;t t
18450 s&@top_builddir@&$ac_top_builddir_sub&;t t
18451 s&@srcdir@&$ac_srcdir&;t t
18452 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18453 s&@top_srcdir@&$ac_top_srcdir&;t t
18454 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18455 s&@builddir@&$ac_builddir&;t t
18456 s&@abs_builddir@&$ac_abs_builddir&;t t
18457 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18458 s&@INSTALL@&$ac_INSTALL&;t t
18459 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18460 $ac_datarootdir_hack
18461 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
18462
18463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18467 which seems to be undefined. Please make sure it is defined." >&5
18468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18469 which seems to be undefined. Please make sure it is defined." >&2;}
18470
18471 rm -f "$tmp/stdin"
18472 case $ac_file in
18473 -) cat "$tmp/out"; rm -f "$tmp/out";;
18474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18475 esac
18476 ;;
18477
18478
18479 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18480 echo "$as_me: executing $ac_file commands" >&6;}
18481 ;;
18482 esac
18483
18484
18485 case $ac_file$ac_mode in
18486 "libtool":C)
18487
18488 # See if we are running on zsh, and set the options which allow our
18489 # commands through without removal of \ escapes.
18490 if test -n "${ZSH_VERSION+set}" ; then
18491 setopt NO_GLOB_SUBST
18492 fi
18493
18494 cfgfile="${ofile}T"
18495 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18496 $RM "$cfgfile"
18497
18498 cat <<_LT_EOF >> "$cfgfile"
18499 #! $SHELL
18500
18501 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18502 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18503 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18504 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18505 #
18506 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18507 # 2006, 2007, 2008 Free Software Foundation, Inc.
18508 # Written by Gordon Matzigkeit, 1996
18509 #
18510 # This file is part of GNU Libtool.
18511 #
18512 # GNU Libtool is free software; you can redistribute it and/or
18513 # modify it under the terms of the GNU General Public License as
18514 # published by the Free Software Foundation; either version 2 of
18515 # the License, or (at your option) any later version.
18516 #
18517 # As a special exception to the GNU General Public License,
18518 # if you distribute this file as part of a program or library that
18519 # is built using GNU Libtool, you may include this file under the
18520 # same distribution terms that you use for the rest of that program.
18521 #
18522 # GNU Libtool is distributed in the hope that it will be useful,
18523 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18524 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18525 # GNU General Public License for more details.
18526 #
18527 # You should have received a copy of the GNU General Public License
18528 # along with GNU Libtool; see the file COPYING. If not, a copy
18529 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18530 # obtained by writing to the Free Software Foundation, Inc.,
18531 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18532
18533
18534 # The names of the tagged configurations supported by this script.
18535 available_tags="CXX "
18536
18537 # ### BEGIN LIBTOOL CONFIG
18538
18539 # Which release of libtool.m4 was used?
18540 macro_version=$macro_version
18541 macro_revision=$macro_revision
18542
18543 # Assembler program.
18544 AS=$AS
18545
18546 # DLL creation program.
18547 DLLTOOL=$DLLTOOL
18548
18549 # Object dumper program.
18550 OBJDUMP=$OBJDUMP
18551
18552 # Whether or not to build shared libraries.
18553 build_libtool_libs=$enable_shared
18554
18555 # Whether or not to build static libraries.
18556 build_old_libs=$enable_static
18557
18558 # What type of objects to build.
18559 pic_mode=$pic_mode
18560
18561 # Whether or not to optimize for fast installation.
18562 fast_install=$enable_fast_install
18563
18564 # The host system.
18565 host_alias=$host_alias
18566 host=$host
18567 host_os=$host_os
18568
18569 # The build system.
18570 build_alias=$build_alias
18571 build=$build
18572 build_os=$build_os
18573
18574 # A sed program that does not truncate output.
18575 SED=$lt_SED
18576
18577 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18578 Xsed="\$SED -e 1s/^X//"
18579
18580 # A grep program that handles long lines.
18581 GREP=$lt_GREP
18582
18583 # An ERE matcher.
18584 EGREP=$lt_EGREP
18585
18586 # A literal string matcher.
18587 FGREP=$lt_FGREP
18588
18589 # A BSD- or MS-compatible name lister.
18590 NM=$lt_NM
18591
18592 # Whether we need soft or hard links.
18593 LN_S=$lt_LN_S
18594
18595 # What is the maximum length of a command?
18596 max_cmd_len=$max_cmd_len
18597
18598 # Object file suffix (normally "o").
18599 objext=$ac_objext
18600
18601 # Executable file suffix (normally "").
18602 exeext=$exeext
18603
18604 # whether the shell understands "unset".
18605 lt_unset=$lt_unset
18606
18607 # turn spaces into newlines.
18608 SP2NL=$lt_lt_SP2NL
18609
18610 # turn newlines into spaces.
18611 NL2SP=$lt_lt_NL2SP
18612
18613 # How to create reloadable object files.
18614 reload_flag=$lt_reload_flag
18615 reload_cmds=$lt_reload_cmds
18616
18617 # Method to check whether dependent libraries are shared objects.
18618 deplibs_check_method=$lt_deplibs_check_method
18619
18620 # Command to use when deplibs_check_method == "file_magic".
18621 file_magic_cmd=$lt_file_magic_cmd
18622
18623 # The archiver.
18624 AR=$lt_AR
18625 AR_FLAGS=$lt_AR_FLAGS
18626
18627 # A symbol stripping program.
18628 STRIP=$lt_STRIP
18629
18630 # Commands used to install an old-style archive.
18631 RANLIB=$lt_RANLIB
18632 old_postinstall_cmds=$lt_old_postinstall_cmds
18633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18634
18635 # A C compiler.
18636 LTCC=$lt_CC
18637
18638 # LTCC compiler flags.
18639 LTCFLAGS=$lt_CFLAGS
18640
18641 # Take the output of nm and produce a listing of raw symbols and C names.
18642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18643
18644 # Transform the output of nm in a proper C declaration.
18645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18646
18647 # Transform the output of nm in a C name address pair.
18648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18649
18650 # Transform the output of nm in a C name address pair when lib prefix is needed.
18651 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18652
18653 # The name of the directory that contains temporary libtool files.
18654 objdir=$objdir
18655
18656 # Shell to use when invoking shell scripts.
18657 SHELL=$lt_SHELL
18658
18659 # An echo program that does not interpret backslashes.
18660 ECHO=$lt_ECHO
18661
18662 # Used to examine libraries when file_magic_cmd begins with "file".
18663 MAGIC_CMD=$MAGIC_CMD
18664
18665 # Must we lock files when doing compilation?
18666 need_locks=$lt_need_locks
18667
18668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18669 DSYMUTIL=$lt_DSYMUTIL
18670
18671 # Tool to change global to local symbols on Mac OS X.
18672 NMEDIT=$lt_NMEDIT
18673
18674 # Tool to manipulate fat objects and archives on Mac OS X.
18675 LIPO=$lt_LIPO
18676
18677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18678 OTOOL=$lt_OTOOL
18679
18680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18681 OTOOL64=$lt_OTOOL64
18682
18683 # Old archive suffix (normally "a").
18684 libext=$libext
18685
18686 # Shared library suffix (normally ".so").
18687 shrext_cmds=$lt_shrext_cmds
18688
18689 # The commands to extract the exported symbol list from a shared archive.
18690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18691
18692 # Variables whose values should be saved in libtool wrapper scripts and
18693 # restored at link time.
18694 variables_saved_for_relink=$lt_variables_saved_for_relink
18695
18696 # Do we need the "lib" prefix for modules?
18697 need_lib_prefix=$need_lib_prefix
18698
18699 # Do we need a version for libraries?
18700 need_version=$need_version
18701
18702 # Library versioning type.
18703 version_type=$version_type
18704
18705 # Shared library runtime path variable.
18706 runpath_var=$runpath_var
18707
18708 # Shared library path variable.
18709 shlibpath_var=$shlibpath_var
18710
18711 # Is shlibpath searched before the hard-coded library search path?
18712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18713
18714 # Format of library name prefix.
18715 libname_spec=$lt_libname_spec
18716
18717 # List of archive names. First name is the real one, the rest are links.
18718 # The last name is the one that the linker finds with -lNAME
18719 library_names_spec=$lt_library_names_spec
18720
18721 # The coded name of the library, if different from the real name.
18722 soname_spec=$lt_soname_spec
18723
18724 # Command to use after installation of a shared archive.
18725 postinstall_cmds=$lt_postinstall_cmds
18726
18727 # Command to use after uninstallation of a shared archive.
18728 postuninstall_cmds=$lt_postuninstall_cmds
18729
18730 # Commands used to finish a libtool library installation in a directory.
18731 finish_cmds=$lt_finish_cmds
18732
18733 # As "finish_cmds", except a single script fragment to be evaled but
18734 # not shown.
18735 finish_eval=$lt_finish_eval
18736
18737 # Whether we should hardcode library paths into libraries.
18738 hardcode_into_libs=$hardcode_into_libs
18739
18740 # Compile-time system search path for libraries.
18741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18742
18743 # Run-time system search path for libraries.
18744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18745
18746 # Whether dlopen is supported.
18747 dlopen_support=$enable_dlopen
18748
18749 # Whether dlopen of programs is supported.
18750 dlopen_self=$enable_dlopen_self
18751
18752 # Whether dlopen of statically linked programs is supported.
18753 dlopen_self_static=$enable_dlopen_self_static
18754
18755 # Commands to strip libraries.
18756 old_striplib=$lt_old_striplib
18757 striplib=$lt_striplib
18758
18759
18760 # The linker used to build libraries.
18761 LD=$lt_LD
18762
18763 # Commands used to build an old-style archive.
18764 old_archive_cmds=$lt_old_archive_cmds
18765
18766 # A language specific compiler.
18767 CC=$lt_compiler
18768
18769 # Is the compiler the GNU compiler?
18770 with_gcc=$GCC
18771
18772 # Compiler flag to turn off builtin functions.
18773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18774
18775 # How to pass a linker flag through the compiler.
18776 wl=$lt_lt_prog_compiler_wl
18777
18778 # Additional compiler flags for building library objects.
18779 pic_flag=$lt_lt_prog_compiler_pic
18780
18781 # Compiler flag to prevent dynamic linking.
18782 link_static_flag=$lt_lt_prog_compiler_static
18783
18784 # Does compiler simultaneously support -c and -o options?
18785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18786
18787 # Whether or not to add -lc for building shared libraries.
18788 build_libtool_need_lc=$archive_cmds_need_lc
18789
18790 # Whether or not to disallow shared libs when runtime libs are static.
18791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18792
18793 # Compiler flag to allow reflexive dlopens.
18794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18795
18796 # Compiler flag to generate shared objects directly from archives.
18797 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18798
18799 # Whether the compiler copes with passing no objects directly.
18800 compiler_needs_object=$lt_compiler_needs_object
18801
18802 # Create an old-style archive from a shared archive.
18803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18804
18805 # Create a temporary old-style archive to link instead of a shared archive.
18806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18807
18808 # Commands used to build a shared archive.
18809 archive_cmds=$lt_archive_cmds
18810 archive_expsym_cmds=$lt_archive_expsym_cmds
18811
18812 # Commands used to build a loadable module if different from building
18813 # a shared archive.
18814 module_cmds=$lt_module_cmds
18815 module_expsym_cmds=$lt_module_expsym_cmds
18816
18817 # Whether we are building with GNU ld or not.
18818 with_gnu_ld=$lt_with_gnu_ld
18819
18820 # Flag that allows shared libraries with undefined symbols to be built.
18821 allow_undefined_flag=$lt_allow_undefined_flag
18822
18823 # Flag that enforces no undefined symbols.
18824 no_undefined_flag=$lt_no_undefined_flag
18825
18826 # Flag to hardcode \$libdir into a binary during linking.
18827 # This must work even if \$libdir does not exist
18828 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18829
18830 # If ld is used when linking, flag to hardcode \$libdir into a binary
18831 # during linking. This must work even if \$libdir does not exist.
18832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18833
18834 # Whether we need a single "-rpath" flag with a separated argument.
18835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18836
18837 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18838 # DIR into the resulting binary.
18839 hardcode_direct=$hardcode_direct
18840
18841 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18842 # DIR into the resulting binary and the resulting library dependency is
18843 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18844 # library is relocated.
18845 hardcode_direct_absolute=$hardcode_direct_absolute
18846
18847 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18848 # into the resulting binary.
18849 hardcode_minus_L=$hardcode_minus_L
18850
18851 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18852 # into the resulting binary.
18853 hardcode_shlibpath_var=$hardcode_shlibpath_var
18854
18855 # Set to "yes" if building a shared library automatically hardcodes DIR
18856 # into the library and all subsequent libraries and executables linked
18857 # against it.
18858 hardcode_automatic=$hardcode_automatic
18859
18860 # Set to yes if linker adds runtime paths of dependent libraries
18861 # to runtime path list.
18862 inherit_rpath=$inherit_rpath
18863
18864 # Whether libtool must link a program against all its dependency libraries.
18865 link_all_deplibs=$link_all_deplibs
18866
18867 # Fix the shell variable \$srcfile for the compiler.
18868 fix_srcfile_path=$lt_fix_srcfile_path
18869
18870 # Set to "yes" if exported symbols are required.
18871 always_export_symbols=$always_export_symbols
18872
18873 # The commands to list exported symbols.
18874 export_symbols_cmds=$lt_export_symbols_cmds
18875
18876 # Symbols that should not be listed in the preloaded symbols.
18877 exclude_expsyms=$lt_exclude_expsyms
18878
18879 # Symbols that must always be exported.
18880 include_expsyms=$lt_include_expsyms
18881
18882 # Commands necessary for linking programs (against libraries) with templates.
18883 prelink_cmds=$lt_prelink_cmds
18884
18885 # Specify filename containing input files.
18886 file_list_spec=$lt_file_list_spec
18887
18888 # How to hardcode a shared library path into an executable.
18889 hardcode_action=$hardcode_action
18890
18891 # The directories searched by this compiler when creating a shared library.
18892 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18893
18894 # Dependencies to place before and after the objects being linked to
18895 # create a shared library.
18896 predep_objects=$lt_predep_objects
18897 postdep_objects=$lt_postdep_objects
18898 predeps=$lt_predeps
18899 postdeps=$lt_postdeps
18900
18901 # The library search path used internally by the compiler when linking
18902 # a shared library.
18903 compiler_lib_search_path=$lt_compiler_lib_search_path
18904
18905 # ### END LIBTOOL CONFIG
18906
18907 _LT_EOF
18908
18909 case $host_os in
18910 aix3*)
18911 cat <<\_LT_EOF >> "$cfgfile"
18912 # AIX sometimes has problems with the GCC collect2 program. For some
18913 # reason, if we set the COLLECT_NAMES environment variable, the problems
18914 # vanish in a puff of smoke.
18915 if test "X${COLLECT_NAMES+set}" != Xset; then
18916 COLLECT_NAMES=
18917 export COLLECT_NAMES
18918 fi
18919 _LT_EOF
18920 ;;
18921 esac
18922
18923
18924 ltmain="$ac_aux_dir/ltmain.sh"
18925
18926
18927 # We use sed instead of cat because bash on DJGPP gets confused if
18928 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18929 # text mode, it properly converts lines to CR/LF. This bash problem
18930 # is reportedly fixed, but why not run on old versions too?
18931 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18932 || (rm -f "$cfgfile"; exit 1)
18933
18934 case $xsi_shell in
18935 yes)
18936 cat << \_LT_EOF >> "$cfgfile"
18937
18938 # func_dirname file append nondir_replacement
18939 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18940 # otherwise set result to NONDIR_REPLACEMENT.
18941 func_dirname ()
18942 {
18943 case ${1} in
18944 */*) func_dirname_result="${1%/*}${2}" ;;
18945 * ) func_dirname_result="${3}" ;;
18946 esac
18947 }
18948
18949 # func_basename file
18950 func_basename ()
18951 {
18952 func_basename_result="${1##*/}"
18953 }
18954
18955 # func_dirname_and_basename file append nondir_replacement
18956 # perform func_basename and func_dirname in a single function
18957 # call:
18958 # dirname: Compute the dirname of FILE. If nonempty,
18959 # add APPEND to the result, otherwise set result
18960 # to NONDIR_REPLACEMENT.
18961 # value returned in "$func_dirname_result"
18962 # basename: Compute filename of FILE.
18963 # value retuned in "$func_basename_result"
18964 # Implementation must be kept synchronized with func_dirname
18965 # and func_basename. For efficiency, we do not delegate to
18966 # those functions but instead duplicate the functionality here.
18967 func_dirname_and_basename ()
18968 {
18969 case ${1} in
18970 */*) func_dirname_result="${1%/*}${2}" ;;
18971 * ) func_dirname_result="${3}" ;;
18972 esac
18973 func_basename_result="${1##*/}"
18974 }
18975
18976 # func_stripname prefix suffix name
18977 # strip PREFIX and SUFFIX off of NAME.
18978 # PREFIX and SUFFIX must not contain globbing or regex special
18979 # characters, hashes, percent signs, but SUFFIX may contain a leading
18980 # dot (in which case that matches only a dot).
18981 func_stripname ()
18982 {
18983 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18984 # positional parameters, so assign one to ordinary parameter first.
18985 func_stripname_result=${3}
18986 func_stripname_result=${func_stripname_result#"${1}"}
18987 func_stripname_result=${func_stripname_result%"${2}"}
18988 }
18989
18990 # func_opt_split
18991 func_opt_split ()
18992 {
18993 func_opt_split_opt=${1%%=*}
18994 func_opt_split_arg=${1#*=}
18995 }
18996
18997 # func_lo2o object
18998 func_lo2o ()
18999 {
19000 case ${1} in
19001 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19002 *) func_lo2o_result=${1} ;;
19003 esac
19004 }
19005
19006 # func_xform libobj-or-source
19007 func_xform ()
19008 {
19009 func_xform_result=${1%.*}.lo
19010 }
19011
19012 # func_arith arithmetic-term...
19013 func_arith ()
19014 {
19015 func_arith_result=$(( $* ))
19016 }
19017
19018 # func_len string
19019 # STRING may not start with a hyphen.
19020 func_len ()
19021 {
19022 func_len_result=${#1}
19023 }
19024
19025 _LT_EOF
19026 ;;
19027 *) # Bourne compatible functions.
19028 cat << \_LT_EOF >> "$cfgfile"
19029
19030 # func_dirname file append nondir_replacement
19031 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19032 # otherwise set result to NONDIR_REPLACEMENT.
19033 func_dirname ()
19034 {
19035 # Extract subdirectory from the argument.
19036 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19037 if test "X$func_dirname_result" = "X${1}"; then
19038 func_dirname_result="${3}"
19039 else
19040 func_dirname_result="$func_dirname_result${2}"
19041 fi
19042 }
19043
19044 # func_basename file
19045 func_basename ()
19046 {
19047 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19048 }
19049
19050
19051 # func_stripname prefix suffix name
19052 # strip PREFIX and SUFFIX off of NAME.
19053 # PREFIX and SUFFIX must not contain globbing or regex special
19054 # characters, hashes, percent signs, but SUFFIX may contain a leading
19055 # dot (in which case that matches only a dot).
19056 # func_strip_suffix prefix name
19057 func_stripname ()
19058 {
19059 case ${2} in
19060 .*) func_stripname_result=`$ECHO "X${3}" \
19061 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19062 *) func_stripname_result=`$ECHO "X${3}" \
19063 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19064 esac
19065 }
19066
19067 # sed scripts:
19068 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19069 my_sed_long_arg='1s/^-[^=]*=//'
19070
19071 # func_opt_split
19072 func_opt_split ()
19073 {
19074 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19075 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19076 }
19077
19078 # func_lo2o object
19079 func_lo2o ()
19080 {
19081 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19082 }
19083
19084 # func_xform libobj-or-source
19085 func_xform ()
19086 {
19087 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19088 }
19089
19090 # func_arith arithmetic-term...
19091 func_arith ()
19092 {
19093 func_arith_result=`expr "$@"`
19094 }
19095
19096 # func_len string
19097 # STRING may not start with a hyphen.
19098 func_len ()
19099 {
19100 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19101 }
19102
19103 _LT_EOF
19104 esac
19105
19106 case $lt_shell_append in
19107 yes)
19108 cat << \_LT_EOF >> "$cfgfile"
19109
19110 # func_append var value
19111 # Append VALUE to the end of shell variable VAR.
19112 func_append ()
19113 {
19114 eval "$1+=\$2"
19115 }
19116 _LT_EOF
19117 ;;
19118 *)
19119 cat << \_LT_EOF >> "$cfgfile"
19120
19121 # func_append var value
19122 # Append VALUE to the end of shell variable VAR.
19123 func_append ()
19124 {
19125 eval "$1=\$$1\$2"
19126 }
19127
19128 _LT_EOF
19129 ;;
19130 esac
19131
19132
19133 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19134 || (rm -f "$cfgfile"; exit 1)
19135
19136 mv -f "$cfgfile" "$ofile" ||
19137 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19138 chmod +x "$ofile"
19139
19140
19141 cat <<_LT_EOF >> "$ofile"
19142
19143 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19144
19145 # The linker used to build libraries.
19146 LD=$lt_LD_CXX
19147
19148 # Commands used to build an old-style archive.
19149 old_archive_cmds=$lt_old_archive_cmds_CXX
19150
19151 # A language specific compiler.
19152 CC=$lt_compiler_CXX
19153
19154 # Is the compiler the GNU compiler?
19155 with_gcc=$GCC_CXX
19156
19157 # Compiler flag to turn off builtin functions.
19158 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19159
19160 # How to pass a linker flag through the compiler.
19161 wl=$lt_lt_prog_compiler_wl_CXX
19162
19163 # Additional compiler flags for building library objects.
19164 pic_flag=$lt_lt_prog_compiler_pic_CXX
19165
19166 # Compiler flag to prevent dynamic linking.
19167 link_static_flag=$lt_lt_prog_compiler_static_CXX
19168
19169 # Does compiler simultaneously support -c and -o options?
19170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19171
19172 # Whether or not to add -lc for building shared libraries.
19173 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19174
19175 # Whether or not to disallow shared libs when runtime libs are static.
19176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19177
19178 # Compiler flag to allow reflexive dlopens.
19179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19180
19181 # Compiler flag to generate shared objects directly from archives.
19182 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19183
19184 # Whether the compiler copes with passing no objects directly.
19185 compiler_needs_object=$lt_compiler_needs_object_CXX
19186
19187 # Create an old-style archive from a shared archive.
19188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19189
19190 # Create a temporary old-style archive to link instead of a shared archive.
19191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19192
19193 # Commands used to build a shared archive.
19194 archive_cmds=$lt_archive_cmds_CXX
19195 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19196
19197 # Commands used to build a loadable module if different from building
19198 # a shared archive.
19199 module_cmds=$lt_module_cmds_CXX
19200 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19201
19202 # Whether we are building with GNU ld or not.
19203 with_gnu_ld=$lt_with_gnu_ld_CXX
19204
19205 # Flag that allows shared libraries with undefined symbols to be built.
19206 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19207
19208 # Flag that enforces no undefined symbols.
19209 no_undefined_flag=$lt_no_undefined_flag_CXX
19210
19211 # Flag to hardcode \$libdir into a binary during linking.
19212 # This must work even if \$libdir does not exist
19213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19214
19215 # If ld is used when linking, flag to hardcode \$libdir into a binary
19216 # during linking. This must work even if \$libdir does not exist.
19217 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19218
19219 # Whether we need a single "-rpath" flag with a separated argument.
19220 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19221
19222 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19223 # DIR into the resulting binary.
19224 hardcode_direct=$hardcode_direct_CXX
19225
19226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19227 # DIR into the resulting binary and the resulting library dependency is
19228 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19229 # library is relocated.
19230 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19231
19232 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19233 # into the resulting binary.
19234 hardcode_minus_L=$hardcode_minus_L_CXX
19235
19236 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19237 # into the resulting binary.
19238 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19239
19240 # Set to "yes" if building a shared library automatically hardcodes DIR
19241 # into the library and all subsequent libraries and executables linked
19242 # against it.
19243 hardcode_automatic=$hardcode_automatic_CXX
19244
19245 # Set to yes if linker adds runtime paths of dependent libraries
19246 # to runtime path list.
19247 inherit_rpath=$inherit_rpath_CXX
19248
19249 # Whether libtool must link a program against all its dependency libraries.
19250 link_all_deplibs=$link_all_deplibs_CXX
19251
19252 # Fix the shell variable \$srcfile for the compiler.
19253 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19254
19255 # Set to "yes" if exported symbols are required.
19256 always_export_symbols=$always_export_symbols_CXX
19257
19258 # The commands to list exported symbols.
19259 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19260
19261 # Symbols that should not be listed in the preloaded symbols.
19262 exclude_expsyms=$lt_exclude_expsyms_CXX
19263
19264 # Symbols that must always be exported.
19265 include_expsyms=$lt_include_expsyms_CXX
19266
19267 # Commands necessary for linking programs (against libraries) with templates.
19268 prelink_cmds=$lt_prelink_cmds_CXX
19269
19270 # Specify filename containing input files.
19271 file_list_spec=$lt_file_list_spec_CXX
19272
19273 # How to hardcode a shared library path into an executable.
19274 hardcode_action=$hardcode_action_CXX
19275
19276 # The directories searched by this compiler when creating a shared library.
19277 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19278
19279 # Dependencies to place before and after the objects being linked to
19280 # create a shared library.
19281 predep_objects=$lt_predep_objects_CXX
19282 postdep_objects=$lt_postdep_objects_CXX
19283 predeps=$lt_predeps_CXX
19284 postdeps=$lt_postdeps_CXX
19285
19286 # The library search path used internally by the compiler when linking
19287 # a shared library.
19288 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19289
19290 # ### END LIBTOOL TAG CONFIG: CXX
19291 _LT_EOF
19292
19293 ;;
19294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19295 # Strip MF so we end up with the name of the file.
19296 mf=`echo "$mf" | sed -e 's/:.*$//'`
19297 # Check whether this is an Automake generated Makefile or not.
19298 # We used to match only the files named `Makefile.in', but
19299 # some people rename them; so instead we look at the file content.
19300 # Grep'ing the first line is not enough: some people post-process
19301 # each Makefile.in and add a new line on top of each file to say so.
19302 # Grep'ing the whole file is not good either: AIX grep has a line
19303 # limit of 2048, but all sed's we know have understand at least 4000.
19304 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
19305 dirpart=`$as_dirname -- "$mf" ||
19306 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19307 X"$mf" : 'X\(//\)[^/]' \| \
19308 X"$mf" : 'X\(//\)$' \| \
19309 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19310 echo X"$mf" |
19311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19312 s//\1/
19313 q
19314 }
19315 /^X\(\/\/\)[^/].*/{
19316 s//\1/
19317 q
19318 }
19319 /^X\(\/\/\)$/{
19320 s//\1/
19321 q
19322 }
19323 /^X\(\/\).*/{
19324 s//\1/
19325 q
19326 }
19327 s/.*/./; q'`
19328 else
19329 continue
19330 fi
19331 # Extract the definition of DEPDIR, am__include, and am__quote
19332 # from the Makefile without running `make'.
19333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19334 test -z "$DEPDIR" && continue
19335 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19336 test -z "am__include" && continue
19337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19338 # When using ansi2knr, U may be empty or an underscore; expand it
19339 U=`sed -n 's/^U = //p' < "$mf"`
19340 # Find all dependency output files, they are included files with
19341 # $(DEPDIR) in their names. We invoke sed twice because it is the
19342 # simplest approach to changing $(DEPDIR) to its actual value in the
19343 # expansion.
19344 for file in `sed -n "
19345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19347 # Make sure the directory exists.
19348 test -f "$dirpart/$file" && continue
19349 fdir=`$as_dirname -- "$file" ||
19350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19351 X"$file" : 'X\(//\)[^/]' \| \
19352 X"$file" : 'X\(//\)$' \| \
19353 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19354 echo X"$file" |
19355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19356 s//\1/
19357 q
19358 }
19359 /^X\(\/\/\)[^/].*/{
19360 s//\1/
19361 q
19362 }
19363 /^X\(\/\/\)$/{
19364 s//\1/
19365 q
19366 }
19367 /^X\(\/\).*/{
19368 s//\1/
19369 q
19370 }
19371 s/.*/./; q'`
19372 { as_dir=$dirpart/$fdir
19373 case $as_dir in #(
19374 -*) as_dir=./$as_dir;;
19375 esac
19376 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19377 as_dirs=
19378 while :; do
19379 case $as_dir in #(
19380 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19381 *) as_qdir=$as_dir;;
19382 esac
19383 as_dirs="'$as_qdir' $as_dirs"
19384 as_dir=`$as_dirname -- "$as_dir" ||
19385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19386 X"$as_dir" : 'X\(//\)[^/]' \| \
19387 X"$as_dir" : 'X\(//\)$' \| \
19388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19389 echo X"$as_dir" |
19390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19391 s//\1/
19392 q
19393 }
19394 /^X\(\/\/\)[^/].*/{
19395 s//\1/
19396 q
19397 }
19398 /^X\(\/\/\)$/{
19399 s//\1/
19400 q
19401 }
19402 /^X\(\/\).*/{
19403 s//\1/
19404 q
19405 }
19406 s/.*/./; q'`
19407 test -d "$as_dir" && break
19408 done
19409 test -z "$as_dirs" || eval "mkdir $as_dirs"
19410 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19411 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19412 { (exit 1); exit 1; }; }; }
19413 # echo "creating $dirpart/$file"
19414 echo '# dummy' > "$dirpart/$file"
19415 done
19416 done
19417 ;;
19418
19419 esac
19420 done # for ac_tag
19421
19422
19423 { (exit 0); exit 0; }
19424 _ACEOF
19425 chmod +x $CONFIG_STATUS
19426 ac_clean_files=$ac_clean_files_save
19427
19428
19429 # configure is writing to config.log, and then calls config.status.
19430 # config.status does its own redirection, appending to config.log.
19431 # Unfortunately, on DOS this fails, as config.log is still kept open
19432 # by configure, so config.status won't be able to write to it; its
19433 # output is simply discarded. So we exec the FD to /dev/null,
19434 # effectively closing config.log, so it can be properly (re)opened and
19435 # appended to by config.status. When coming back to configure, we
19436 # need to make the FD available again.
19437 if test "$no_create" != yes; then
19438 ac_cs_success=:
19439 ac_config_status_args=
19440 test "$silent" = yes &&
19441 ac_config_status_args="$ac_config_status_args --quiet"
19442 exec 5>/dev/null
19443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19444 exec 5>>config.log
19445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19446 # would make configure fail if this is the last instruction.
19447 $ac_cs_success || { (exit 1); exit 1; }
19448 fi
19449