Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libpuzzle 0.11.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$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 # Pre-4.2 versions of Zsh do 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 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell [email protected] about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libpuzzle'
747 PACKAGE_TARNAME='libpuzzle'
748 PACKAGE_VERSION='0.11'
749 PACKAGE_STRING='libpuzzle 0.11'
750 PACKAGE_BUGREPORT='[email protected]'
751
752 ac_unique_file="src/puzzle.h"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 CXXCPP
792 OTOOL64
793 OTOOL
794 LIPO
795 NMEDIT
796 DSYMUTIL
797 lt_ECHO
798 RANLIB
799 AR
800 OBJDUMP
801 NM
802 ac_ct_DUMPBIN
803 DUMPBIN
804 LD
805 FGREP
806 SED
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 LIBTOOL
816 EGREP
817 GREP
818 GDLIBCONFIG
819 LN_S
820 CPP
821 am__fastdepCC_FALSE
822 am__fastdepCC_TRUE
823 CCDEPMODE
824 ac_ct_CC
825 CFLAGS
826 CC
827 am__fastdepCXX_FALSE
828 am__fastdepCXX_TRUE
829 CXXDEPMODE
830 AMDEPBACKSLASH
831 AMDEP_FALSE
832 AMDEP_TRUE
833 am__quote
834 am__include
835 DEPDIR
836 OBJEXT
837 EXEEXT
838 ac_ct_CXX
839 CPPFLAGS
840 LDFLAGS
841 CXXFLAGS
842 CXX
843 MAINT
844 MAINTAINER_MODE_FALSE
845 MAINTAINER_MODE_TRUE
846 am__untar
847 am__tar
848 AMTAR
849 am__leading_dot
850 SET_MAKE
851 AWK
852 mkdir_p
853 MKDIR_P
854 INSTALL_STRIP_PROGRAM
855 STRIP
856 install_sh
857 MAKEINFO
858 AUTOHEADER
859 AUTOMAKE
860 AUTOCONF
861 ACLOCAL
862 VERSION
863 PACKAGE
864 CYGPATH_W
865 am__isrc
866 INSTALL_DATA
867 INSTALL_SCRIPT
868 INSTALL_PROGRAM
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 enable_maintainer_mode
910 enable_dependency_tracking
911 enable_shared
912 enable_static
913 with_pic
914 enable_fast_install
915 with_gnu_ld
916 enable_libtool_lock
917 '
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
921 CXX
922 CXXFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
926 CCC
927 CC
928 CFLAGS
929 CPP
930 CXXCPP'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 ac_unrecognized_opts=
937 ac_unrecognized_sep=
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
954
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
980
981 ac_prev=
982 ac_dashdash=
983 for ac_option
984 do
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
988 ac_prev=
989 continue
990 fi
991
992 case $ac_option in
993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
995 esac
996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
1002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1007
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1022
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1027
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
1035 -disable-* | --disable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
1051
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1056
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1061
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=\$ac_optarg ;;
1078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1098
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1103
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1133
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1207
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
1226 sbindir=$ac_optarg ;;
1227
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
1237 sharedstatedir=$ac_optarg ;;
1238
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
1242 site=$ac_optarg ;;
1243
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1248
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1255
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1260
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1263
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1266
1267 -with-* | --with-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
1283
1284 -without-* | --without-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1289 { (exit 1); exit 1; }; }
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1293 *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1300
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1304
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1311
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1318
1319 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1320 Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1322 ;;
1323
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1332
1333 *)
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 ;;
1340
1341 esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1348 fi
1349
1350 if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
1353 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1354 { (exit 1); exit 1; }; } ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1357 fi
1358
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1364 do
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
1377 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1378 { (exit 1); exit 1; }; }
1379 done
1380
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1387
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1396 fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1409 { (exit 1); exit 1; }; }
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1412 { (exit 1); exit 1; }; }
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446 else
1447 ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1452 { (exit 1); exit 1; }; }
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1457 { (exit 1); exit 1; }; }
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462 fi
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1475
1476 #
1477 # Report the --help message.
1478 #
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures libpuzzle 0.11 to adapt to many kinds of systems.
1484
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490 Defaults for the options are specified in brackets.
1491
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1508
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1513
1514 For better control, use the options below.
1515
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/libpuzzle]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1537
1538 cat <<\_ACEOF
1539
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552 case $ac_init_help in
1553 short | recursive ) echo "Configuration of libpuzzle 0.11:";;
1554 esac
1555 cat <<\_ACEOF
1556
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-maintainer-mode enable make rules and dependencies not useful
1562 (and sometimes confusing) to the casual installer
1563 --disable-dependency-tracking speeds up one-time build
1564 --enable-dependency-tracking do not reject slow dependency extractors
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-static[=PKGS] build static libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570
1571 Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577
1578 Some influential environment variables:
1579 CXX C++ compiler command
1580 CXXFLAGS C++ compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 CPP C preprocessor
1589 CXXCPP C++ preprocessor
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <[email protected]>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1647 else
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1651 done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656 cat <<\_ACEOF
1657 libpuzzle configure 0.11
1658 generated by GNU Autoconf 2.63
1659
1660 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1661 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1666 fi
1667 cat >config.log <<_ACEOF
1668 This file contains any messages produced by compilers while
1669 running configure, to aid debugging if configure makes a mistake.
1670
1671 It was created by libpuzzle $as_me 0.11, which was
1672 generated by GNU Autoconf 2.63. Invocation command line was
1673
1674 $ $0 $@
1675
1676 _ACEOF
1677 exec 5>>config.log
1678 {
1679 cat <<_ASUNAME
1680 ## --------- ##
1681 ## Platform. ##
1682 ## --------- ##
1683
1684 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1685 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1686 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1687 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1688 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689
1690 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1691 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1692
1693 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1694 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1695 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1696 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1697 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1698 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1699 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700
1701 _ASUNAME
1702
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706 IFS=$as_save_IFS
1707 test -z "$as_dir" && as_dir=.
1708 $as_echo "PATH: $as_dir"
1709 done
1710 IFS=$as_save_IFS
1711
1712 } >&5
1713
1714 cat >&5 <<_ACEOF
1715
1716
1717 ## ----------- ##
1718 ## Core tests. ##
1719 ## ----------- ##
1720
1721 _ACEOF
1722
1723
1724 # Keep a trace of the command line.
1725 # Strip out --no-create and --no-recursion so they do not pile up.
1726 # Strip out --silent because we don't want to record it for future runs.
1727 # Also quote any args containing shell meta-characters.
1728 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_configure_args=
1730 ac_configure_args0=
1731 ac_configure_args1=
1732 ac_must_keep_next=false
1733 for ac_pass in 1 2
1734 do
1735 for ac_arg
1736 do
1737 case $ac_arg in
1738 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740 | -silent | --silent | --silen | --sile | --sil)
1741 continue ;;
1742 *\'*)
1743 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744 esac
1745 case $ac_pass in
1746 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747 2)
1748 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1749 if test $ac_must_keep_next = true; then
1750 ac_must_keep_next=false # Got value, back to normal.
1751 else
1752 case $ac_arg in
1753 *=* | --config-cache | -C | -disable-* | --disable-* \
1754 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1755 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1756 | -with-* | --with-* | -without-* | --without-* | --x)
1757 case "$ac_configure_args0 " in
1758 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759 esac
1760 ;;
1761 -* ) ac_must_keep_next=true ;;
1762 esac
1763 fi
1764 ac_configure_args="$ac_configure_args '$ac_arg'"
1765 ;;
1766 esac
1767 done
1768 done
1769 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1770 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1771
1772 # When interrupted or exit'd, cleanup temporary files, and complete
1773 # config.log. We remove comments because anyway the quotes in there
1774 # would cause problems or look ugly.
1775 # WARNING: Use '\'' to represent an apostrophe within the trap.
1776 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1777 trap 'exit_status=$?
1778 # Save into config.log some information that might help in debugging.
1779 {
1780 echo
1781
1782 cat <<\_ASBOX
1783 ## ---------------- ##
1784 ## Cache variables. ##
1785 ## ---------------- ##
1786 _ASBOX
1787 echo
1788 # The following way of writing the cache mishandles newlines in values,
1789 (
1790 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1791 eval ac_val=\$$ac_var
1792 case $ac_val in #(
1793 *${as_nl}*)
1794 case $ac_var in #(
1795 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1796 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1797 esac
1798 case $ac_var in #(
1799 _ | IFS | as_nl) ;; #(
1800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1801 *) $as_unset $ac_var ;;
1802 esac ;;
1803 esac
1804 done
1805 (set) 2>&1 |
1806 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1807 *${as_nl}ac_space=\ *)
1808 sed -n \
1809 "s/'\''/'\''\\\\'\'''\''/g;
1810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811 ;; #(
1812 *)
1813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1814 ;;
1815 esac |
1816 sort
1817 )
1818 echo
1819
1820 cat <<\_ASBOX
1821 ## ----------------- ##
1822 ## Output variables. ##
1823 ## ----------------- ##
1824 _ASBOX
1825 echo
1826 for ac_var in $ac_subst_vars
1827 do
1828 eval ac_val=\$$ac_var
1829 case $ac_val in
1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 esac
1832 $as_echo "$ac_var='\''$ac_val'\''"
1833 done | sort
1834 echo
1835
1836 if test -n "$ac_subst_files"; then
1837 cat <<\_ASBOX
1838 ## ------------------- ##
1839 ## File substitutions. ##
1840 ## ------------------- ##
1841 _ASBOX
1842 echo
1843 for ac_var in $ac_subst_files
1844 do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in
1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 esac
1849 $as_echo "$ac_var='\''$ac_val'\''"
1850 done | sort
1851 echo
1852 fi
1853
1854 if test -s confdefs.h; then
1855 cat <<\_ASBOX
1856 ## ----------- ##
1857 ## confdefs.h. ##
1858 ## ----------- ##
1859 _ASBOX
1860 echo
1861 cat confdefs.h
1862 echo
1863 fi
1864 test "$ac_signal" != 0 &&
1865 $as_echo "$as_me: caught signal $ac_signal"
1866 $as_echo "$as_me: exit $exit_status"
1867 } >&5
1868 rm -f core *.core core.conftest.* &&
1869 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870 exit $exit_status
1871 ' 0
1872 for ac_signal in 1 2 13 15; do
1873 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874 done
1875 ac_signal=0
1876
1877 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1878 rm -f -r conftest* confdefs.h
1879
1880 # Predefined preprocessor variables.
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_NAME "$PACKAGE_NAME"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_STRING "$PACKAGE_STRING"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904 _ACEOF
1905
1906
1907 # Let the site file select an alternate cache file if it wants to.
1908 # Prefer an explicitly selected file to automatically selected ones.
1909 ac_site_file1=NONE
1910 ac_site_file2=NONE
1911 if test -n "$CONFIG_SITE"; then
1912 ac_site_file1=$CONFIG_SITE
1913 elif test "x$prefix" != xNONE; then
1914 ac_site_file1=$prefix/share/config.site
1915 ac_site_file2=$prefix/etc/config.site
1916 else
1917 ac_site_file1=$ac_default_prefix/share/config.site
1918 ac_site_file2=$ac_default_prefix/etc/config.site
1919 fi
1920 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1921 do
1922 test "x$ac_site_file" = xNONE && continue
1923 if test -r "$ac_site_file"; then
1924 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1926 sed 's/^/| /' "$ac_site_file" >&5
1927 . "$ac_site_file"
1928 fi
1929 done
1930
1931 if test -r "$cache_file"; then
1932 # Some versions of bash will fail to source /dev/null (special
1933 # files actually), so we avoid doing that.
1934 if test -f "$cache_file"; then
1935 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936 $as_echo "$as_me: loading cache $cache_file" >&6;}
1937 case $cache_file in
1938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
1940 esac
1941 fi
1942 else
1943 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944 $as_echo "$as_me: creating cache $cache_file" >&6;}
1945 >$cache_file
1946 fi
1947
1948 # Check that the precious variables saved in the cache have kept the same
1949 # value.
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1957 set,)
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,set)
1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,);;
1966 *)
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 # differences in whitespace do not lead to failure.
1969 ac_old_val_w=`echo x $ac_old_val`
1970 ac_new_val_w=`echo x $ac_new_val`
1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 ac_cache_corrupted=:
1975 else
1976 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1977 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1978 eval $ac_var=\$ac_old_val
1979 fi
1980 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1981 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1982 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1983 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
1989 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995 esac
1996 fi
1997 done
1998 if $ac_cache_corrupted; then
1999 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2002 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2003 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2004 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005 { (exit 1); exit 1; }; }
2006 fi
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037
2038
2039
2040 ac_config_headers="$ac_config_headers config.h"
2041
2042 am__api_version='1.10'
2043
2044 ac_aux_dir=
2045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2046 if test -f "$ac_dir/install-sh"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install-sh -c"
2049 break
2050 elif test -f "$ac_dir/install.sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install.sh -c"
2053 break
2054 elif test -f "$ac_dir/shtool"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/shtool install -c"
2057 break
2058 fi
2059 done
2060 if test -z "$ac_aux_dir"; then
2061 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2062 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2063 { (exit 1); exit 1; }; }
2064 fi
2065
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2073
2074
2075 # Find a good install program. We prefer a C program (faster),
2076 # so one script is as good as another. But avoid the broken or
2077 # incompatible versions:
2078 # SysV /etc/install, /usr/sbin/install
2079 # SunOS /usr/etc/install
2080 # IRIX /sbin/install
2081 # AIX /bin/install
2082 # AmigaOS /C/install, which installs bootblocks on floppy discs
2083 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2084 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2085 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2086 # OS/2's system install, which has a completely different semantic
2087 # ./install, which can be erroneously created by make from ./install.sh.
2088 # Reject install programs that cannot install multiple files.
2089 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2090 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2091 if test -z "$INSTALL"; then
2092 if test "${ac_cv_path_install+set}" = set; then
2093 $as_echo_n "(cached) " >&6
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 # Account for people who put trailing slashes in PATH elements.
2101 case $as_dir/ in
2102 ./ | .// | /cC/* | \
2103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2104 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2105 /usr/ucb/* ) ;;
2106 *)
2107 # OSF1 and SCO ODT 3.0 have their own names for install.
2108 # Don't use installbsd from OSF since it installs stuff as root
2109 # by default.
2110 for ac_prog in ginstall scoinst install; do
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2113 if test $ac_prog = install &&
2114 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2115 # AIX install. It has an incompatible calling convention.
2116 :
2117 elif test $ac_prog = install &&
2118 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # program-specific install script used by HP pwplus--don't use.
2120 :
2121 else
2122 rm -rf conftest.one conftest.two conftest.dir
2123 echo one > conftest.one
2124 echo two > conftest.two
2125 mkdir conftest.dir
2126 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2127 test -s conftest.one && test -s conftest.two &&
2128 test -s conftest.dir/conftest.one &&
2129 test -s conftest.dir/conftest.two
2130 then
2131 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2132 break 3
2133 fi
2134 fi
2135 fi
2136 done
2137 done
2138 ;;
2139 esac
2140
2141 done
2142 IFS=$as_save_IFS
2143
2144 rm -rf conftest.one conftest.two conftest.dir
2145
2146 fi
2147 if test "${ac_cv_path_install+set}" = set; then
2148 INSTALL=$ac_cv_path_install
2149 else
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for INSTALL within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 INSTALL=$ac_install_sh
2155 fi
2156 fi
2157 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2158 $as_echo "$INSTALL" >&6; }
2159
2160 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2161 # It thinks the first close brace ends the variable substitution.
2162 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2163
2164 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2165
2166 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2167
2168 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2169 $as_echo_n "checking whether build environment is sane... " >&6; }
2170 # Just in case
2171 sleep 1
2172 echo timestamp > conftest.file
2173 # Do `set' in a subshell so we don't clobber the current shell's
2174 # arguments. Must try -L first in case configure is actually a
2175 # symlink; some systems play weird games with the mod time of symlinks
2176 # (eg FreeBSD returns the mod time of the symlink's containing
2177 # directory).
2178 if (
2179 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2180 if test "$*" = "X"; then
2181 # -L didn't work.
2182 set X `ls -t $srcdir/configure conftest.file`
2183 fi
2184 rm -f conftest.file
2185 if test "$*" != "X $srcdir/configure conftest.file" \
2186 && test "$*" != "X conftest.file $srcdir/configure"; then
2187
2188 # If neither matched, then we have a broken ls. This can happen
2189 # if, for instance, CONFIG_SHELL is bash and it inherits a
2190 # broken ls alias from the environment. This has actually
2191 # happened. Such a system could not be considered "sane".
2192 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2193 alias in your environment" >&5
2194 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2195 alias in your environment" >&2;}
2196 { (exit 1); exit 1; }; }
2197 fi
2198
2199 test "$2" = conftest.file
2200 )
2201 then
2202 # Ok.
2203 :
2204 else
2205 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2206 Check your system clock" >&5
2207 $as_echo "$as_me: error: newly created file is older than distributed files!
2208 Check your system clock" >&2;}
2209 { (exit 1); exit 1; }; }
2210 fi
2211 { $as_echo "$as_me:$LINENO: result: yes" >&5
2212 $as_echo "yes" >&6; }
2213 test "$program_prefix" != NONE &&
2214 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2215 # Use a double $ so make ignores it.
2216 test "$program_suffix" != NONE &&
2217 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2218 # Double any \ or $.
2219 # By default was `s,x,x', remove it if useless.
2220 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2221 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2222
2223 # expand $ac_aux_dir to an absolute path
2224 am_aux_dir=`cd $ac_aux_dir && pwd`
2225
2226 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2227 # Use eval to expand $SHELL
2228 if eval "$MISSING --run true"; then
2229 am_missing_run="$MISSING --run "
2230 else
2231 am_missing_run=
2232 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2233 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2234 fi
2235
2236 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2237 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2238 if test -z "$MKDIR_P"; then
2239 if test "${ac_cv_path_mkdir+set}" = set; then
2240 $as_echo_n "(cached) " >&6
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2244 do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_prog in mkdir gmkdir; do
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2250 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2251 'mkdir (GNU coreutils) '* | \
2252 'mkdir (coreutils) '* | \
2253 'mkdir (fileutils) '4.1*)
2254 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2255 break 3;;
2256 esac
2257 done
2258 done
2259 done
2260 IFS=$as_save_IFS
2261
2262 fi
2263
2264 if test "${ac_cv_path_mkdir+set}" = set; then
2265 MKDIR_P="$ac_cv_path_mkdir -p"
2266 else
2267 # As a last resort, use the slow shell script. Don't cache a
2268 # value for MKDIR_P within a source directory, because that will
2269 # break other packages using the cache if that directory is
2270 # removed, or if the value is a relative name.
2271 test -d ./--version && rmdir ./--version
2272 MKDIR_P="$ac_install_sh -d"
2273 fi
2274 fi
2275 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2276 $as_echo "$MKDIR_P" >&6; }
2277
2278 mkdir_p="$MKDIR_P"
2279 case $mkdir_p in
2280 [\\/$]* | ?:[\\/]*) ;;
2281 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2282 esac
2283
2284 for ac_prog in gawk mawk nawk awk
2285 do
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if test "${ac_cv_prog_AWK+set}" = set; then
2291 $as_echo_n "(cached) " >&6
2292 else
2293 if test -n "$AWK"; then
2294 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_AWK="$ac_prog"
2304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2306 fi
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 fi
2312 fi
2313 AWK=$ac_cv_prog_AWK
2314 if test -n "$AWK"; then
2315 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2316 $as_echo "$AWK" >&6; }
2317 else
2318 { $as_echo "$as_me:$LINENO: result: no" >&5
2319 $as_echo "no" >&6; }
2320 fi
2321
2322
2323 test -n "$AWK" && break
2324 done
2325
2326 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2328 set x ${MAKE-make}
2329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2331 $as_echo_n "(cached) " >&6
2332 else
2333 cat >conftest.make <<\_ACEOF
2334 SHELL = /bin/sh
2335 all:
2336 @echo '@@@%%%=$(MAKE)=@@@%%%'
2337 _ACEOF
2338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2340 *@@@%%%=?*=@@@%%%*)
2341 eval ac_cv_prog_make_${ac_make}_set=yes;;
2342 *)
2343 eval ac_cv_prog_make_${ac_make}_set=no;;
2344 esac
2345 rm -f conftest.make
2346 fi
2347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2348 { $as_echo "$as_me:$LINENO: result: yes" >&5
2349 $as_echo "yes" >&6; }
2350 SET_MAKE=
2351 else
2352 { $as_echo "$as_me:$LINENO: result: no" >&5
2353 $as_echo "no" >&6; }
2354 SET_MAKE="MAKE=${MAKE-make}"
2355 fi
2356
2357 rm -rf .tst 2>/dev/null
2358 mkdir .tst 2>/dev/null
2359 if test -d .tst; then
2360 am__leading_dot=.
2361 else
2362 am__leading_dot=_
2363 fi
2364 rmdir .tst 2>/dev/null
2365
2366 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2367 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2368 # is not polluted with repeated "-I."
2369 am__isrc=' -I$(srcdir)'
2370 # test to see if srcdir already configured
2371 if test -f $srcdir/config.status; then
2372 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2373 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2374 { (exit 1); exit 1; }; }
2375 fi
2376 fi
2377
2378 # test whether we have cygpath
2379 if test -z "$CYGPATH_W"; then
2380 if (cygpath --version) >/dev/null 2>/dev/null; then
2381 CYGPATH_W='cygpath -w'
2382 else
2383 CYGPATH_W=echo
2384 fi
2385 fi
2386
2387
2388 # Define the identity of the package.
2389 PACKAGE='libpuzzle'
2390 VERSION='0.11'
2391
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE "$PACKAGE"
2395 _ACEOF
2396
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define VERSION "$VERSION"
2400 _ACEOF
2401
2402 # Some tools Automake needs.
2403
2404 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2405
2406
2407 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2408
2409
2410 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2411
2412
2413 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2414
2415
2416 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2417
2418 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2419
2420 # Installed binaries are usually stripped using `strip' when the user
2421 # run `make install-strip'. However `strip' might not be the right
2422 # tool to use in cross-compilation environments, therefore Automake
2423 # will honor the `STRIP' environment variable to overrule this program.
2424 if test "$cross_compiling" != no; then
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}strip; ac_word=$2
2428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if test "${ac_cv_prog_STRIP+set}" = set; then
2431 $as_echo_n "(cached) " >&6
2432 else
2433 if test -n "$STRIP"; then
2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 STRIP=$ac_cv_prog_STRIP
2454 if test -n "$STRIP"; then
2455 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2456 $as_echo "$STRIP" >&6; }
2457 else
2458 { $as_echo "$as_me:$LINENO: result: no" >&5
2459 $as_echo "no" >&6; }
2460 fi
2461
2462
2463 fi
2464 if test -z "$ac_cv_prog_STRIP"; then
2465 ac_ct_STRIP=$STRIP
2466 # Extract the first word of "strip", so it can be a program name with args.
2467 set dummy strip; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$ac_ct_STRIP"; then
2474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_ac_ct_STRIP="strip"
2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2494 if test -n "$ac_ct_STRIP"; then
2495 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2496 $as_echo "$ac_ct_STRIP" >&6; }
2497 else
2498 { $as_echo "$as_me:$LINENO: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502 if test "x$ac_ct_STRIP" = x; then
2503 STRIP=":"
2504 else
2505 case $cross_compiling:$ac_tool_warned in
2506 yes:)
2507 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2509 ac_tool_warned=yes ;;
2510 esac
2511 STRIP=$ac_ct_STRIP
2512 fi
2513 else
2514 STRIP="$ac_cv_prog_STRIP"
2515 fi
2516
2517 fi
2518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2519
2520 # We need awk for the "check" target. The system "awk" is bad on
2521 # some platforms.
2522 # Always define AMTAR for backward compatibility.
2523
2524 AMTAR=${AMTAR-"${am_missing_run}tar"}
2525
2526 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2527
2528
2529
2530
2531
2532 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2533 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2534 # Check whether --enable-maintainer-mode was given.
2535 if test "${enable_maintainer_mode+set}" = set; then
2536 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2537 else
2538 USE_MAINTAINER_MODE=no
2539 fi
2540
2541 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2542 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2543 if test $USE_MAINTAINER_MODE = yes; then
2544 MAINTAINER_MODE_TRUE=
2545 MAINTAINER_MODE_FALSE='#'
2546 else
2547 MAINTAINER_MODE_TRUE='#'
2548 MAINTAINER_MODE_FALSE=
2549 fi
2550
2551 MAINT=$MAINTAINER_MODE_TRUE
2552
2553
2554
2555 # Checks for programs.
2556 ac_ext=cpp
2557 ac_cpp='$CXXCPP $CPPFLAGS'
2558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2561 if test -z "$CXX"; then
2562 if test -n "$CCC"; then
2563 CXX=$CCC
2564 else
2565 if test -n "$ac_tool_prefix"; then
2566 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2567 do
2568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if test "${ac_cv_prog_CXX+set}" = set; then
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test -n "$CXX"; then
2576 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 fi
2594 fi
2595 CXX=$ac_cv_prog_CXX
2596 if test -n "$CXX"; then
2597 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2598 $as_echo "$CXX" >&6; }
2599 else
2600 { $as_echo "$as_me:$LINENO: result: no" >&5
2601 $as_echo "no" >&6; }
2602 fi
2603
2604
2605 test -n "$CXX" && break
2606 done
2607 fi
2608 if test -z "$CXX"; then
2609 ac_ct_CXX=$CXX
2610 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2611 do
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613 set dummy $ac_prog; ac_word=$2
2614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$ac_ct_CXX"; then
2620 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 ac_cv_prog_ac_ct_CXX="$ac_prog"
2630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633 done
2634 done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2640 if test -n "$ac_ct_CXX"; then
2641 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2642 $as_echo "$ac_ct_CXX" >&6; }
2643 else
2644 { $as_echo "$as_me:$LINENO: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649 test -n "$ac_ct_CXX" && break
2650 done
2651
2652 if test "x$ac_ct_CXX" = x; then
2653 CXX="g++"
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656 yes:)
2657 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2660 esac
2661 CXX=$ac_ct_CXX
2662 fi
2663 fi
2664
2665 fi
2666 fi
2667 # Provide some information about the compiler.
2668 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2669 set X $ac_compile
2670 ac_compiler=$2
2671 { (ac_try="$ac_compiler --version >&5"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2677 $as_echo "$ac_try_echo") >&5
2678 (eval "$ac_compiler --version >&5") 2>&5
2679 ac_status=$?
2680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -v >&5"
2683 case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686 esac
2687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2688 $as_echo "$ac_try_echo") >&5
2689 (eval "$ac_compiler -v >&5") 2>&5
2690 ac_status=$?
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (ac_try="$ac_compiler -V >&5"
2694 case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697 esac
2698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2699 $as_echo "$ac_try_echo") >&5
2700 (eval "$ac_compiler -V >&5") 2>&5
2701 ac_status=$?
2702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704
2705 cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h. */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2711
2712 int
2713 main ()
2714 {
2715
2716 ;
2717 return 0;
2718 }
2719 _ACEOF
2720 ac_clean_files_save=$ac_clean_files
2721 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2722 # Try to create an executable without -o first, disregard a.out.
2723 # It will help us diagnose broken compilers, and finding out an intuition
2724 # of exeext.
2725 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2726 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2727 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2728
2729 # The possible output files:
2730 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2731
2732 ac_rmfiles=
2733 for ac_file in $ac_files
2734 do
2735 case $ac_file in
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 esac
2739 done
2740 rm -f $ac_rmfiles
2741
2742 if { (ac_try="$ac_link_default"
2743 case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746 esac
2747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2748 $as_echo "$ac_try_echo") >&5
2749 (eval "$ac_link_default") 2>&5
2750 ac_status=$?
2751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; then
2753 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2755 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2756 # so that the user can short-circuit this test for compilers unknown to
2757 # Autoconf.
2758 for ac_file in $ac_files ''
2759 do
2760 test -f "$ac_file" || continue
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2763 ;;
2764 [ab].out )
2765 # We found the default executable, but exeext='' is most
2766 # certainly right.
2767 break;;
2768 *.* )
2769 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770 then :; else
2771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 fi
2773 # We set ac_cv_exeext here because the later test for it is not
2774 # safe: cross compilers may not add the suffix if given an `-o'
2775 # argument, so we may need to know it at that point already.
2776 # Even if this section looks crufty: it has the advantage of
2777 # actually working.
2778 break;;
2779 * )
2780 break;;
2781 esac
2782 done
2783 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784
2785 else
2786 ac_file=''
2787 fi
2788
2789 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2790 $as_echo "$ac_file" >&6; }
2791 if test -z "$ac_file"; then
2792 $as_echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2798 See \`config.log' for more details." >&5
2799 $as_echo "$as_me: error: C++ compiler cannot create executables
2800 See \`config.log' for more details." >&2;}
2801 { (exit 77); exit 77; }; }; }
2802 fi
2803
2804 ac_exeext=$ac_cv_exeext
2805
2806 # Check that the compiler produces executables we can run. If not, either
2807 # the compiler is broken, or we cross compile.
2808 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2809 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813 if { ac_try='./$ac_file'
2814 { (case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2819 $as_echo "$ac_try_echo") >&5
2820 (eval "$ac_try") 2>&5
2821 ac_status=$?
2822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 cross_compiling=no
2825 else
2826 if test "$cross_compiling" = maybe; then
2827 cross_compiling=yes
2828 else
2829 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2832 If you meant to cross compile, use \`--host'.
2833 See \`config.log' for more details." >&5
2834 $as_echo "$as_me: error: cannot run C++ compiled programs.
2835 If you meant to cross compile, use \`--host'.
2836 See \`config.log' for more details." >&2;}
2837 { (exit 1); exit 1; }; }; }
2838 fi
2839 fi
2840 fi
2841 { $as_echo "$as_me:$LINENO: result: yes" >&5
2842 $as_echo "yes" >&6; }
2843
2844 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2845 ac_clean_files=$ac_clean_files_save
2846 # Check that the compiler produces executables we can run. If not, either
2847 # the compiler is broken, or we cross compile.
2848 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2849 $as_echo_n "checking whether we are cross compiling... " >&6; }
2850 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2851 $as_echo "$cross_compiling" >&6; }
2852
2853 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2854 $as_echo_n "checking for suffix of executables... " >&6; }
2855 if { (ac_try="$ac_link"
2856 case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862 (eval "$ac_link") 2>&5
2863 ac_status=$?
2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; then
2866 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2867 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2868 # work properly (i.e., refer to `conftest.exe'), while it won't with
2869 # `rm'.
2870 for ac_file in conftest.exe conftest conftest.*; do
2871 test -f "$ac_file" || continue
2872 case $ac_file in
2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2874 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875 break;;
2876 * ) break;;
2877 esac
2878 done
2879 else
2880 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2883 See \`config.log' for more details." >&5
2884 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2885 See \`config.log' for more details." >&2;}
2886 { (exit 1); exit 1; }; }; }
2887 fi
2888
2889 rm -f conftest$ac_cv_exeext
2890 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2891 $as_echo "$ac_cv_exeext" >&6; }
2892
2893 rm -f conftest.$ac_ext
2894 EXEEXT=$ac_cv_exeext
2895 ac_exeext=$EXEEXT
2896 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2897 $as_echo_n "checking for suffix of object files... " >&6; }
2898 if test "${ac_cv_objext+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2900 else
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907
2908 int
2909 main ()
2910 {
2911
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.o conftest.obj
2917 if { (ac_try="$ac_compile"
2918 case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921 esac
2922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2923 $as_echo "$ac_try_echo") >&5
2924 (eval "$ac_compile") 2>&5
2925 ac_status=$?
2926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 for ac_file in conftest.o conftest.obj conftest.*; do
2929 test -f "$ac_file" || continue;
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2933 break;;
2934 esac
2935 done
2936 else
2937 $as_echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2943 See \`config.log' for more details." >&5
2944 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }; }
2947 fi
2948
2949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2950 fi
2951 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2952 $as_echo "$ac_cv_objext" >&6; }
2953 OBJEXT=$ac_cv_objext
2954 ac_objext=$OBJEXT
2955 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2956 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2957 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2958 $as_echo_n "(cached) " >&6
2959 else
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966
2967 int
2968 main ()
2969 {
2970 #ifndef __GNUC__
2971 choke me
2972 #endif
2973
2974 ;
2975 return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2985 $as_echo "$ac_try_echo") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_cxx_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2996 ac_compiler_gnu=yes
2997 else
2998 $as_echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 ac_compiler_gnu=no
3002 fi
3003
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3006
3007 fi
3008 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3009 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3010 if test $ac_compiler_gnu = yes; then
3011 GXX=yes
3012 else
3013 GXX=
3014 fi
3015 ac_test_CXXFLAGS=${CXXFLAGS+set}
3016 ac_save_CXXFLAGS=$CXXFLAGS
3017 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3018 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3019 if test "${ac_cv_prog_cxx_g+set}" = set; then
3020 $as_echo_n "(cached) " >&6
3021 else
3022 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3023 ac_cxx_werror_flag=yes
3024 ac_cv_prog_cxx_g=no
3025 CXXFLAGS="-g"
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032
3033 int
3034 main ()
3035 {
3036
3037 ;
3038 return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3048 $as_echo "$ac_try_echo") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } && {
3056 test -z "$ac_cxx_werror_flag" ||
3057 test ! -s conftest.err
3058 } && test -s conftest.$ac_objext; then
3059 ac_cv_prog_cxx_g=yes
3060 else
3061 $as_echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 CXXFLAGS=""
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071
3072 int
3073 main ()
3074 {
3075
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3087 $as_echo "$ac_try_echo") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_cxx_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 :
3099 else
3100 $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3104 CXXFLAGS="-g"
3105 cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h. */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3111
3112 int
3113 main ()
3114 {
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_cxx_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3138 ac_cv_prog_cxx_g=yes
3139 else
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143
3144 fi
3145
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 fi
3148
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 fi
3151
3152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3154 fi
3155 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3156 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3157 if test "$ac_test_CXXFLAGS" = set; then
3158 CXXFLAGS=$ac_save_CXXFLAGS
3159 elif test $ac_cv_prog_cxx_g = yes; then
3160 if test "$GXX" = yes; then
3161 CXXFLAGS="-g -O2"
3162 else
3163 CXXFLAGS="-g"
3164 fi
3165 else
3166 if test "$GXX" = yes; then
3167 CXXFLAGS="-O2"
3168 else
3169 CXXFLAGS=
3170 fi
3171 fi
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 DEPDIR="${am__leading_dot}deps"
3178
3179 ac_config_commands="$ac_config_commands depfiles"
3180
3181
3182 am_make=${MAKE-make}
3183 cat > confinc << 'END'
3184 am__doit:
3185 @echo done
3186 .PHONY: am__doit
3187 END
3188 # If we don't find an include directive, just comment out the code.
3189 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3190 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3191 am__include="#"
3192 am__quote=
3193 _am_result=none
3194 # First try GNU make style include.
3195 echo "include confinc" > confmf
3196 # We grep out `Entering directory' and `Leaving directory'
3197 # messages which can occur if `w' ends up in MAKEFLAGS.
3198 # In particular we don't look at `^make:' because GNU make might
3199 # be invoked under some other name (usually "gmake"), in which
3200 # case it prints its new name instead of `make'.
3201 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3202 am__include=include
3203 am__quote=
3204 _am_result=GNU
3205 fi
3206 # Now try BSD make style include.
3207 if test "$am__include" = "#"; then
3208 echo '.include "confinc"' > confmf
3209 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3210 am__include=.include
3211 am__quote="\""
3212 _am_result=BSD
3213 fi
3214 fi
3215
3216
3217 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3218 $as_echo "$_am_result" >&6; }
3219 rm -f confinc confmf
3220
3221 # Check whether --enable-dependency-tracking was given.
3222 if test "${enable_dependency_tracking+set}" = set; then
3223 enableval=$enable_dependency_tracking;
3224 fi
3225
3226 if test "x$enable_dependency_tracking" != xno; then
3227 am_depcomp="$ac_aux_dir/depcomp"
3228 AMDEPBACKSLASH='\'
3229 fi
3230 if test "x$enable_dependency_tracking" != xno; then
3231 AMDEP_TRUE=
3232 AMDEP_FALSE='#'
3233 else
3234 AMDEP_TRUE='#'
3235 AMDEP_FALSE=
3236 fi
3237
3238
3239
3240 depcc="$CXX" am_compiler_list=
3241
3242 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3243 $as_echo_n "checking dependency style of $depcc... " >&6; }
3244 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3248 # We make a subdir and do the tests there. Otherwise we can end up
3249 # making bogus files that we don't know about and never remove. For
3250 # instance it was reported that on HP-UX the gcc test will end up
3251 # making a dummy file named `D' -- because `-MD' means `put the output
3252 # in D'.
3253 mkdir conftest.dir
3254 # Copy depcomp to subdir because otherwise we won't find it if we're
3255 # using a relative directory.
3256 cp "$am_depcomp" conftest.dir
3257 cd conftest.dir
3258 # We will build objects and dependencies in a subdirectory because
3259 # it helps to detect inapplicable dependency modes. For instance
3260 # both Tru64's cc and ICC support -MD to output dependencies as a
3261 # side effect of compilation, but ICC will put the dependencies in
3262 # the current directory while Tru64 will put them in the object
3263 # directory.
3264 mkdir sub
3265
3266 am_cv_CXX_dependencies_compiler_type=none
3267 if test "$am_compiler_list" = ""; then
3268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3269 fi
3270 for depmode in $am_compiler_list; do
3271 # Setup a source with many dependencies, because some compilers
3272 # like to wrap large dependency lists on column 80 (with \), and
3273 # we should not choose a depcomp mode which is confused by this.
3274 #
3275 # We need to recreate these files for each test, as the compiler may
3276 # overwrite some of them when testing with obscure command lines.
3277 # This happens at least with the AIX C compiler.
3278 : > sub/conftest.c
3279 for i in 1 2 3 4 5 6; do
3280 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3281 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3282 # Solaris 8's {/usr,}/bin/sh.
3283 touch sub/conftst$i.h
3284 done
3285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3286
3287 case $depmode in
3288 nosideeffect)
3289 # after this tag, mechanisms are not by side-effect, so they'll
3290 # only be used when explicitly requested
3291 if test "x$enable_dependency_tracking" = xyes; then
3292 continue
3293 else
3294 break
3295 fi
3296 ;;
3297 none) break ;;
3298 esac
3299 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3300 # mode. It turns out that the SunPro C++ compiler does not properly
3301 # handle `-M -o', and we need to detect this.
3302 if depmode=$depmode \
3303 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3305 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3306 >/dev/null 2>conftest.err &&
3307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3309 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3311 # icc doesn't choke on unknown options, it will just issue warnings
3312 # or remarks (even with -Werror). So we grep stderr for any message
3313 # that says an option was ignored or not supported.
3314 # When given -MP, icc 7.0 and 7.1 complain thusly:
3315 # icc: Command line warning: ignoring option '-M'; no argument required
3316 # The diagnosis changed in icc 8.0:
3317 # icc: Command line remark: option '-MP' not supported
3318 if (grep 'ignoring option' conftest.err ||
3319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3320 am_cv_CXX_dependencies_compiler_type=$depmode
3321 break
3322 fi
3323 fi
3324 done
3325
3326 cd ..
3327 rm -rf conftest.dir
3328 else
3329 am_cv_CXX_dependencies_compiler_type=none
3330 fi
3331
3332 fi
3333 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3334 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3335 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3336
3337 if
3338 test "x$enable_dependency_tracking" != xno \
3339 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3340 am__fastdepCXX_TRUE=
3341 am__fastdepCXX_FALSE='#'
3342 else
3343 am__fastdepCXX_TRUE='#'
3344 am__fastdepCXX_FALSE=
3345 fi
3346
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if test "${ac_cv_prog_CC+set}" = set; then
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 CC=$ac_cv_prog_CC
3382 if test -n "$CC"; then
3383 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3384 $as_echo "$CC" >&6; }
3385 else
3386 { $as_echo "$as_me:$LINENO: result: no" >&5
3387 $as_echo "no" >&6; }
3388 fi
3389
3390
3391 fi
3392 if test -z "$ac_cv_prog_CC"; then
3393 ac_ct_CC=$CC
3394 # Extract the first word of "gcc", so it can be a program name with args.
3395 set dummy gcc; ac_word=$2
3396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_ac_ct_CC="gcc"
3412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3424 $as_echo "$ac_ct_CC" >&6; }
3425 else
3426 { $as_echo "$as_me:$LINENO: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 CC=$ac_ct_CC
3440 fi
3441 else
3442 CC="$ac_cv_prog_CC"
3443 fi
3444
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3448 set dummy ${ac_tool_prefix}cc; ac_word=$2
3449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if test "${ac_cv_prog_CC+set}" = set; then
3452 $as_echo_n "(cached) " >&6
3453 else
3454 if test -n "$CC"; then
3455 ac_cv_prog_CC="$CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3459 do
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464 ac_cv_prog_CC="${ac_tool_prefix}cc"
3465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468 done
3469 done
3470 IFS=$as_save_IFS
3471
3472 fi
3473 fi
3474 CC=$ac_cv_prog_CC
3475 if test -n "$CC"; then
3476 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3477 $as_echo "$CC" >&6; }
3478 else
3479 { $as_echo "$as_me:$LINENO: result: no" >&5
3480 $as_echo "no" >&6; }
3481 fi
3482
3483
3484 fi
3485 fi
3486 if test -z "$CC"; then
3487 # Extract the first word of "cc", so it can be a program name with args.
3488 set dummy cc; ac_word=$2
3489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if test "${ac_cv_prog_CC+set}" = set; then
3492 $as_echo_n "(cached) " >&6
3493 else
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 ac_prog_rejected=no
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3506 ac_prog_rejected=yes
3507 continue
3508 fi
3509 ac_cv_prog_CC="cc"
3510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 if test $ac_prog_rejected = yes; then
3518 # We found a bogon in the path, so make sure we never use it.
3519 set dummy $ac_cv_prog_CC
3520 shift
3521 if test $# != 0; then
3522 # We chose a different compiler from the bogus one.
3523 # However, it has the same basename, so the bogon will be chosen
3524 # first if we set CC to just the basename; use the full file name.
3525 shift
3526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3527 fi
3528 fi
3529 fi
3530 fi
3531 CC=$ac_cv_prog_CC
3532 if test -n "$CC"; then
3533 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3534 $as_echo "$CC" >&6; }
3535 else
3536 { $as_echo "$as_me:$LINENO: result: no" >&5
3537 $as_echo "no" >&6; }
3538 fi
3539
3540
3541 fi
3542 if test -z "$CC"; then
3543 if test -n "$ac_tool_prefix"; then
3544 for ac_prog in cl.exe
3545 do
3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567 done
3568 done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3577 else
3578 { $as_echo "$as_me:$LINENO: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582
3583 test -n "$CC" && break
3584 done
3585 fi
3586 if test -z "$CC"; then
3587 ac_ct_CC=$CC
3588 for ac_prog in cl.exe
3589 do
3590 # Extract the first word of "$ac_prog", so it can be a program name with args.
3591 set dummy $ac_prog; ac_word=$2
3592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$ac_ct_CC"; then
3598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_ac_ct_CC="$ac_prog"
3608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620 $as_echo "$ac_ct_CC" >&6; }
3621 else
3622 { $as_echo "$as_me:$LINENO: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 test -n "$ac_ct_CC" && break
3628 done
3629
3630 if test "x$ac_ct_CC" = x; then
3631 CC=""
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 CC=$ac_ct_CC
3640 fi
3641 fi
3642
3643 fi
3644
3645
3646 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3649 See \`config.log' for more details." >&5
3650 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3651 See \`config.log' for more details." >&2;}
3652 { (exit 1); exit 1; }; }; }
3653
3654 # Provide some information about the compiler.
3655 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3656 set X $ac_compile
3657 ac_compiler=$2
3658 { (ac_try="$ac_compiler --version >&5"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665 (eval "$ac_compiler --version >&5") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }
3669 { (ac_try="$ac_compiler -v >&5"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3675 $as_echo "$ac_try_echo") >&5
3676 (eval "$ac_compiler -v >&5") 2>&5
3677 ac_status=$?
3678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }
3680 { (ac_try="$ac_compiler -V >&5"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3686 $as_echo "$ac_try_echo") >&5
3687 (eval "$ac_compiler -V >&5") 2>&5
3688 ac_status=$?
3689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }
3691
3692 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3693 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703
3704 int
3705 main ()
3706 {
3707 #ifndef __GNUC__
3708 choke me
3709 #endif
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3722 $as_echo "$ac_try_echo") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && {
3730 test -z "$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3732 } && test -s conftest.$ac_objext; then
3733 ac_compiler_gnu=yes
3734 else
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 ac_compiler_gnu=no
3739 fi
3740
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3743
3744 fi
3745 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3748 GCC=yes
3749 else
3750 GCC=
3751 fi
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if test "${ac_cv_prog_cc_g+set}" = set; then
3757 $as_echo_n "(cached) " >&6
3758 else
3759 ac_save_c_werror_flag=$ac_c_werror_flag
3760 ac_c_werror_flag=yes
3761 ac_cv_prog_cc_g=no
3762 CFLAGS="-g"
3763 cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h. */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3769
3770 int
3771 main ()
3772 {
3773
3774 ;
3775 return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3785 $as_echo "$ac_try_echo") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3796 ac_cv_prog_cc_g=yes
3797 else
3798 $as_echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801 CFLAGS=""
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808
3809 int
3810 main ()
3811 {
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3835 :
3836 else
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3841 CFLAGS="-g"
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848
3849 int
3850 main ()
3851 {
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864 $as_echo "$ac_try_echo") >&5
3865 (eval "$ac_compile") 2>conftest.er1
3866 ac_status=$?
3867 grep -v '^ *+' conftest.er1 >conftest.err
3868 rm -f conftest.er1
3869 cat conftest.err >&5
3870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } && {
3872 test -z "$ac_c_werror_flag" ||
3873 test ! -s conftest.err
3874 } && test -s conftest.$ac_objext; then
3875 ac_cv_prog_cc_g=yes
3876 else
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3879
3880
3881 fi
3882
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 fi
3885
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 fi
3888
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 ac_c_werror_flag=$ac_save_c_werror_flag
3891 fi
3892 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3893 $as_echo "$ac_cv_prog_cc_g" >&6; }
3894 if test "$ac_test_CFLAGS" = set; then
3895 CFLAGS=$ac_save_CFLAGS
3896 elif test $ac_cv_prog_cc_g = yes; then
3897 if test "$GCC" = yes; then
3898 CFLAGS="-g -O2"
3899 else
3900 CFLAGS="-g"
3901 fi
3902 else
3903 if test "$GCC" = yes; then
3904 CFLAGS="-O2"
3905 else
3906 CFLAGS=
3907 fi
3908 fi
3909 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3911 if test "${ac_cv_prog_cc_c89+set}" = set; then
3912 $as_echo_n "(cached) " >&6
3913 else
3914 ac_cv_prog_cc_c89=no
3915 ac_save_CC=$CC
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h. */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 #include <stdarg.h>
3923 #include <stdio.h>
3924 #include <sys/types.h>
3925 #include <sys/stat.h>
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3930 char **p;
3931 int i;
3932 {
3933 return p[i];
3934 }
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3936 {
3937 char *s;
3938 va_list v;
3939 va_start (v,p);
3940 s = g (p, va_arg (v,int));
3941 va_end (v);
3942 return s;
3943 }
3944
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3956 #define FOO(x) 'x'
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963 int argc;
3964 char **argv;
3965 int
3966 main ()
3967 {
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975 do
3976 CC="$ac_save_CC $ac_arg"
3977 rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3995 ac_cv_prog_cc_c89=$ac_arg
3996 else
3997 $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000
4001 fi
4002
4003 rm -f core conftest.err conftest.$ac_objext
4004 test "x$ac_cv_prog_cc_c89" != "xno" && break
4005 done
4006 rm -f conftest.$ac_ext
4007 CC=$ac_save_CC
4008
4009 fi
4010 # AC_CACHE_VAL
4011 case "x$ac_cv_prog_cc_c89" in
4012 x)
4013 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;;
4015 xno)
4016 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4017 $as_echo "unsupported" >&6; } ;;
4018 *)
4019 CC="$CC $ac_cv_prog_cc_c89"
4020 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4021 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4022 esac
4023
4024
4025 ac_ext=c
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030
4031 depcc="$CC" am_compiler_list=
4032
4033 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4034 $as_echo_n "checking dependency style of $depcc... " >&6; }
4035 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4039 # We make a subdir and do the tests there. Otherwise we can end up
4040 # making bogus files that we don't know about and never remove. For
4041 # instance it was reported that on HP-UX the gcc test will end up
4042 # making a dummy file named `D' -- because `-MD' means `put the output
4043 # in D'.
4044 mkdir conftest.dir
4045 # Copy depcomp to subdir because otherwise we won't find it if we're
4046 # using a relative directory.
4047 cp "$am_depcomp" conftest.dir
4048 cd conftest.dir
4049 # We will build objects and dependencies in a subdirectory because
4050 # it helps to detect inapplicable dependency modes. For instance
4051 # both Tru64's cc and ICC support -MD to output dependencies as a
4052 # side effect of compilation, but ICC will put the dependencies in
4053 # the current directory while Tru64 will put them in the object
4054 # directory.
4055 mkdir sub
4056
4057 am_cv_CC_dependencies_compiler_type=none
4058 if test "$am_compiler_list" = ""; then
4059 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4060 fi
4061 for depmode in $am_compiler_list; do
4062 # Setup a source with many dependencies, because some compilers
4063 # like to wrap large dependency lists on column 80 (with \), and
4064 # we should not choose a depcomp mode which is confused by this.
4065 #
4066 # We need to recreate these files for each test, as the compiler may
4067 # overwrite some of them when testing with obscure command lines.
4068 # This happens at least with the AIX C compiler.
4069 : > sub/conftest.c
4070 for i in 1 2 3 4 5 6; do
4071 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4072 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4073 # Solaris 8's {/usr,}/bin/sh.
4074 touch sub/conftst$i.h
4075 done
4076 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4077
4078 case $depmode in
4079 nosideeffect)
4080 # after this tag, mechanisms are not by side-effect, so they'll
4081 # only be used when explicitly requested
4082 if test "x$enable_dependency_tracking" = xyes; then
4083 continue
4084 else
4085 break
4086 fi
4087 ;;
4088 none) break ;;
4089 esac
4090 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4091 # mode. It turns out that the SunPro C++ compiler does not properly
4092 # handle `-M -o', and we need to detect this.
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4112 break
4113 fi
4114 fi
4115 done
4116
4117 cd ..
4118 rm -rf conftest.dir
4119 else
4120 am_cv_CC_dependencies_compiler_type=none
4121 fi
4122
4123 fi
4124 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4127
4128 if
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_TRUE=
4132 am__fastdepCC_FALSE='#'
4133 else
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4136 fi
4137
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4145 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4146 # On Suns, sometimes $CPP names a directory.
4147 if test -n "$CPP" && test -d "$CPP"; then
4148 CPP=
4149 fi
4150 if test -z "$CPP"; then
4151 if test "${ac_cv_prog_CPP+set}" = set; then
4152 $as_echo_n "(cached) " >&6
4153 else
4154 # Double quotes because CPP needs to be expanded
4155 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4156 do
4157 ac_preproc_ok=false
4158 for ac_c_preproc_warn_flag in '' yes
4159 do
4160 # Use a header file that comes with gcc, so configuring glibc
4161 # with a fresh cross-compiler works.
4162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163 # <limits.h> exists even on freestanding compilers.
4164 # On the NeXT, cc -E runs the code through the compiler's parser,
4165 # not just through cpp. "Syntax error" is here to catch this case.
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #ifdef __STDC__
4173 # include <limits.h>
4174 #else
4175 # include <assert.h>
4176 #endif
4177 Syntax error
4178 _ACEOF
4179 if { (ac_try="$ac_cpp conftest.$ac_ext"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 }; then
4196 :
4197 else
4198 $as_echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 # Broken: fails on valid input.
4202 continue
4203 fi
4204
4205 rm -f conftest.err conftest.$ac_ext
4206
4207 # OK, works on sane cases. Now check whether nonexistent headers
4208 # can be detected and how.
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4216 _ACEOF
4217 if { (ac_try="$ac_cpp conftest.$ac_ext"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4223 $as_echo "$ac_try_echo") >&5
4224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } >/dev/null && {
4231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 }; then
4234 # Broken: success on invalid input.
4235 continue
4236 else
4237 $as_echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 # Passes both tests.
4241 ac_preproc_ok=:
4242 break
4243 fi
4244
4245 rm -f conftest.err conftest.$ac_ext
4246
4247 done
4248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4249 rm -f conftest.err conftest.$ac_ext
4250 if $ac_preproc_ok; then
4251 break
4252 fi
4253
4254 done
4255 ac_cv_prog_CPP=$CPP
4256
4257 fi
4258 CPP=$ac_cv_prog_CPP
4259 else
4260 ac_cv_prog_CPP=$CPP
4261 fi
4262 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4263 $as_echo "$CPP" >&6; }
4264 ac_preproc_ok=false
4265 for ac_c_preproc_warn_flag in '' yes
4266 do
4267 # Use a header file that comes with gcc, so configuring glibc
4268 # with a fresh cross-compiler works.
4269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4270 # <limits.h> exists even on freestanding compilers.
4271 # On the NeXT, cc -E runs the code through the compiler's parser,
4272 # not just through cpp. "Syntax error" is here to catch this case.
4273 cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h. */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #ifdef __STDC__
4280 # include <limits.h>
4281 #else
4282 # include <assert.h>
4283 #endif
4284 Syntax error
4285 _ACEOF
4286 if { (ac_try="$ac_cpp conftest.$ac_ext"
4287 case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4292 $as_echo "$ac_try_echo") >&5
4293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } >/dev/null && {
4300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4301 test ! -s conftest.err
4302 }; then
4303 :
4304 else
4305 $as_echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308 # Broken: fails on valid input.
4309 continue
4310 fi
4311
4312 rm -f conftest.err conftest.$ac_ext
4313
4314 # OK, works on sane cases. Now check whether nonexistent headers
4315 # can be detected and how.
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <ac_nonexistent.h>
4323 _ACEOF
4324 if { (ac_try="$ac_cpp conftest.$ac_ext"
4325 case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4330 $as_echo "$ac_try_echo") >&5
4331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } >/dev/null && {
4338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4340 }; then
4341 # Broken: success on invalid input.
4342 continue
4343 else
4344 $as_echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 # Passes both tests.
4348 ac_preproc_ok=:
4349 break
4350 fi
4351
4352 rm -f conftest.err conftest.$ac_ext
4353
4354 done
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.err conftest.$ac_ext
4357 if $ac_preproc_ok; then
4358 :
4359 else
4360 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4363 See \`config.log' for more details." >&5
4364 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details." >&2;}
4366 { (exit 1); exit 1; }; }; }
4367 fi
4368
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374
4375 # Find a good install program. We prefer a C program (faster),
4376 # so one script is as good as another. But avoid the broken or
4377 # incompatible versions:
4378 # SysV /etc/install, /usr/sbin/install
4379 # SunOS /usr/etc/install
4380 # IRIX /sbin/install
4381 # AIX /bin/install
4382 # AmigaOS /C/install, which installs bootblocks on floppy discs
4383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4386 # OS/2's system install, which has a completely different semantic
4387 # ./install, which can be erroneously created by make from ./install.sh.
4388 # Reject install programs that cannot install multiple files.
4389 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4390 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4391 if test -z "$INSTALL"; then
4392 if test "${ac_cv_path_install+set}" = set; then
4393 $as_echo_n "(cached) " >&6
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 # Account for people who put trailing slashes in PATH elements.
4401 case $as_dir/ in
4402 ./ | .// | /cC/* | \
4403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4404 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4405 /usr/ucb/* ) ;;
4406 *)
4407 # OSF1 and SCO ODT 3.0 have their own names for install.
4408 # Don't use installbsd from OSF since it installs stuff as root
4409 # by default.
4410 for ac_prog in ginstall scoinst install; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4413 if test $ac_prog = install &&
4414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4415 # AIX install. It has an incompatible calling convention.
4416 :
4417 elif test $ac_prog = install &&
4418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419 # program-specific install script used by HP pwplus--don't use.
4420 :
4421 else
4422 rm -rf conftest.one conftest.two conftest.dir
4423 echo one > conftest.one
4424 echo two > conftest.two
4425 mkdir conftest.dir
4426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4427 test -s conftest.one && test -s conftest.two &&
4428 test -s conftest.dir/conftest.one &&
4429 test -s conftest.dir/conftest.two
4430 then
4431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4432 break 3
4433 fi
4434 fi
4435 fi
4436 done
4437 done
4438 ;;
4439 esac
4440
4441 done
4442 IFS=$as_save_IFS
4443
4444 rm -rf conftest.one conftest.two conftest.dir
4445
4446 fi
4447 if test "${ac_cv_path_install+set}" = set; then
4448 INSTALL=$ac_cv_path_install
4449 else
4450 # As a last resort, use the slow shell script. Don't cache a
4451 # value for INSTALL within a source directory, because that will
4452 # break other packages using the cache if that directory is
4453 # removed, or if the value is a relative name.
4454 INSTALL=$ac_install_sh
4455 fi
4456 fi
4457 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4458 $as_echo "$INSTALL" >&6; }
4459
4460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4461 # It thinks the first close brace ends the variable substitution.
4462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4463
4464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4465
4466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4467
4468 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4469 $as_echo_n "checking whether ln -s works... " >&6; }
4470 LN_S=$as_ln_s
4471 if test "$LN_S" = "ln -s"; then
4472 { $as_echo "$as_me:$LINENO: result: yes" >&5
4473 $as_echo "yes" >&6; }
4474 else
4475 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4476 $as_echo "no, using $LN_S" >&6; }
4477 fi
4478
4479 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4481 set x ${MAKE-make}
4482 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4483 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4484 $as_echo_n "(cached) " >&6
4485 else
4486 cat >conftest.make <<\_ACEOF
4487 SHELL = /bin/sh
4488 all:
4489 @echo '@@@%%%=$(MAKE)=@@@%%%'
4490 _ACEOF
4491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4493 *@@@%%%=?*=@@@%%%*)
4494 eval ac_cv_prog_make_${ac_make}_set=yes;;
4495 *)
4496 eval ac_cv_prog_make_${ac_make}_set=no;;
4497 esac
4498 rm -f conftest.make
4499 fi
4500 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4501 { $as_echo "$as_me:$LINENO: result: yes" >&5
4502 $as_echo "yes" >&6; }
4503 SET_MAKE=
4504 else
4505 { $as_echo "$as_me:$LINENO: result: no" >&5
4506 $as_echo "no" >&6; }
4507 SET_MAKE="MAKE=${MAKE-make}"
4508 fi
4509
4510 # Extract the first word of "gdlib-config", so it can be a program name with args.
4511 set dummy gdlib-config; ac_word=$2
4512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if test "${ac_cv_path_GDLIBCONFIG+set}" = set; then
4515 $as_echo_n "(cached) " >&6
4516 else
4517 case $GDLIBCONFIG in
4518 [\\/]* | ?:[\\/]*)
4519 ac_cv_path_GDLIBCONFIG="$GDLIBCONFIG" # Let the user override the test with a path.
4520 ;;
4521 *)
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_GDLIBCONFIG="$as_dir/$ac_word$ac_exec_ext"
4530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537 ;;
4538 esac
4539 fi
4540 GDLIBCONFIG=$ac_cv_path_GDLIBCONFIG
4541 if test -n "$GDLIBCONFIG"; then
4542 { $as_echo "$as_me:$LINENO: result: $GDLIBCONFIG" >&5
4543 $as_echo "$GDLIBCONFIG" >&6; }
4544 else
4545 { $as_echo "$as_me:$LINENO: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548
4549
4550 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE=1"
4551 CPPFLAGS="$CPPFLAGS `$GDLIBCONFIG --cflags`"
4552 LDFLAGS="$LDFLAGS `$GDLIBCONFIG --ldflags`"
4553 LDADD="$LDADD `$GDLIBCONFIG --libs`"
4554
4555 # Checks for libraries.
4556
4557
4558
4559 { $as_echo "$as_me:$LINENO: checking for gdImageCreateFromGd2 in -lgd" >&5
4560 $as_echo_n "checking for gdImageCreateFromGd2 in -lgd... " >&6; }
4561 if test "${ac_cv_lib_gd_gdImageCreateFromGd2+set}" = set; then
4562 $as_echo_n "(cached) " >&6
4563 else
4564 ac_check_lib_save_LIBS=$LIBS
4565 LIBS="-lgd $LIBS"
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572
4573 /* Override any GCC internal prototype to avoid an error.
4574 Use char because int might match the return type of a GCC
4575 builtin and then its argument prototype would still apply. */
4576 #ifdef __cplusplus
4577 extern "C"
4578 #endif
4579 char gdImageCreateFromGd2 ();
4580 int
4581 main ()
4582 {
4583 return gdImageCreateFromGd2 ();
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext conftest$ac_exeext
4589 if { (ac_try="$ac_link"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4595 $as_echo "$ac_try_echo") >&5
4596 (eval "$ac_link") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest$ac_exeext && {
4606 test "$cross_compiling" = yes ||
4607 $as_test_x conftest$ac_exeext
4608 }; then
4609 ac_cv_lib_gd_gdImageCreateFromGd2=yes
4610 else
4611 $as_echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 ac_cv_lib_gd_gdImageCreateFromGd2=no
4615 fi
4616
4617 rm -rf conftest.dSYM
4618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4619 conftest$ac_exeext conftest.$ac_ext
4620 LIBS=$ac_check_lib_save_LIBS
4621 fi
4622 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateFromGd2" >&5
4623 $as_echo "$ac_cv_lib_gd_gdImageCreateFromGd2" >&6; }
4624 if test "x$ac_cv_lib_gd_gdImageCreateFromGd2" = x""yes; then
4625 cat >>confdefs.h <<_ACEOF
4626 #define HAVE_LIBGD 1
4627 _ACEOF
4628
4629 LIBS="-lgd $LIBS"
4630
4631 else
4632 { { $as_echo "$as_me:$LINENO: error: libgd2 development files not found" >&5
4633 $as_echo "$as_me: error: libgd2 development files not found" >&2;}
4634 { (exit 1); exit 1; }; }
4635 fi
4636
4637
4638 # Checks for header files.
4639
4640 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4642 if test "${ac_cv_path_GREP+set}" = set; then
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -z "$GREP"; then
4646 ac_path_GREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650 do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in grep ggrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4657 # Check for GNU ac_path_GREP and select it if it is found.
4658 # Check for GNU $ac_path_GREP
4659 case `"$ac_path_GREP" --version 2>&1` in
4660 *GNU*)
4661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4662 *)
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4666 do
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'GREP' >> "conftest.nl"
4671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 ac_count=`expr $ac_count + 1`
4674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_GREP="$ac_path_GREP"
4677 ac_path_GREP_max=$ac_count
4678 fi
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683 esac
4684
4685 $ac_path_GREP_found && break 3
4686 done
4687 done
4688 done
4689 IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_GREP"; then
4691 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4692 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4693 { (exit 1); exit 1; }; }
4694 fi
4695 else
4696 ac_cv_path_GREP=$GREP
4697 fi
4698
4699 fi
4700 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4701 $as_echo "$ac_cv_path_GREP" >&6; }
4702 GREP="$ac_cv_path_GREP"
4703
4704
4705 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4706 $as_echo_n "checking for egrep... " >&6; }
4707 if test "${ac_cv_path_EGREP+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4709 else
4710 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4711 then ac_cv_path_EGREP="$GREP -E"
4712 else
4713 if test -z "$EGREP"; then
4714 ac_path_EGREP_found=false
4715 # Loop through the user's path and test for each of PROGNAME-LIST
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_prog in egrep; do
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4724 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4725 # Check for GNU ac_path_EGREP and select it if it is found.
4726 # Check for GNU $ac_path_EGREP
4727 case `"$ac_path_EGREP" --version 2>&1` in
4728 *GNU*)
4729 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4730 *)
4731 ac_count=0
4732 $as_echo_n 0123456789 >"conftest.in"
4733 while :
4734 do
4735 cat "conftest.in" "conftest.in" >"conftest.tmp"
4736 mv "conftest.tmp" "conftest.in"
4737 cp "conftest.in" "conftest.nl"
4738 $as_echo 'EGREP' >> "conftest.nl"
4739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4741 ac_count=`expr $ac_count + 1`
4742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4743 # Best one so far, save it but keep looking for a better one
4744 ac_cv_path_EGREP="$ac_path_EGREP"
4745 ac_path_EGREP_max=$ac_count
4746 fi
4747 # 10*(2^10) chars as input seems more than enough
4748 test $ac_count -gt 10 && break
4749 done
4750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4751 esac
4752
4753 $ac_path_EGREP_found && break 3
4754 done
4755 done
4756 done
4757 IFS=$as_save_IFS
4758 if test -z "$ac_cv_path_EGREP"; then
4759 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4760 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4761 { (exit 1); exit 1; }; }
4762 fi
4763 else
4764 ac_cv_path_EGREP=$EGREP
4765 fi
4766
4767 fi
4768 fi
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4770 $as_echo "$ac_cv_path_EGREP" >&6; }
4771 EGREP="$ac_cv_path_EGREP"
4772
4773
4774 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4775 $as_echo_n "checking for ANSI C header files... " >&6; }
4776 if test "${ac_cv_header_stdc+set}" = set; then
4777 $as_echo_n "(cached) " >&6
4778 else
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <stdlib.h>
4786 #include <stdarg.h>
4787 #include <string.h>
4788 #include <float.h>
4789
4790 int
4791 main ()
4792 {
4793
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (ac_try="$ac_compile"
4800 case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803 esac
4804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4805 $as_echo "$ac_try_echo") >&5
4806 (eval "$ac_compile") 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && {
4813 test -z "$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4815 } && test -s conftest.$ac_objext; then
4816 ac_cv_header_stdc=yes
4817 else
4818 $as_echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 ac_cv_header_stdc=no
4822 fi
4823
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825
4826 if test $ac_cv_header_stdc = yes; then
4827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #include <string.h>
4835
4836 _ACEOF
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 $EGREP "memchr" >/dev/null 2>&1; then
4839 :
4840 else
4841 ac_cv_header_stdc=no
4842 fi
4843 rm -f conftest*
4844
4845 fi
4846
4847 if test $ac_cv_header_stdc = yes; then
4848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #include <stdlib.h>
4856
4857 _ACEOF
4858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4859 $EGREP "free" >/dev/null 2>&1; then
4860 :
4861 else
4862 ac_cv_header_stdc=no
4863 fi
4864 rm -f conftest*
4865
4866 fi
4867
4868 if test $ac_cv_header_stdc = yes; then
4869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4870 if test "$cross_compiling" = yes; then
4871 :
4872 else
4873 cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 #include <ctype.h>
4880 #include <stdlib.h>
4881 #if ((' ' & 0x0FF) == 0x020)
4882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4884 #else
4885 # define ISLOWER(c) \
4886 (('a' <= (c) && (c) <= 'i') \
4887 || ('j' <= (c) && (c) <= 'r') \
4888 || ('s' <= (c) && (c) <= 'z'))
4889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4890 #endif
4891
4892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4893 int
4894 main ()
4895 {
4896 int i;
4897 for (i = 0; i < 256; i++)
4898 if (XOR (islower (i), ISLOWER (i))
4899 || toupper (i) != TOUPPER (i))
4900 return 2;
4901 return 0;
4902 }
4903 _ACEOF
4904 rm -f conftest$ac_exeext
4905 if { (ac_try="$ac_link"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4911 $as_echo "$ac_try_echo") >&5
4912 (eval "$ac_link") 2>&5
4913 ac_status=$?
4914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4916 { (case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919 esac
4920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4921 $as_echo "$ac_try_echo") >&5
4922 (eval "$ac_try") 2>&5
4923 ac_status=$?
4924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; }; then
4926 :
4927 else
4928 $as_echo "$as_me: program exited with status $ac_status" >&5
4929 $as_echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ( exit $ac_status )
4933 ac_cv_header_stdc=no
4934 fi
4935 rm -rf conftest.dSYM
4936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4937 fi
4938
4939
4940 fi
4941 fi
4942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4943 $as_echo "$ac_cv_header_stdc" >&6; }
4944 if test $ac_cv_header_stdc = yes; then
4945
4946 cat >>confdefs.h <<\_ACEOF
4947 #define STDC_HEADERS 1
4948 _ACEOF
4949
4950 fi
4951
4952 case `pwd` in
4953 *\ * | *\ *)
4954 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4955 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4956 esac
4957
4958
4959
4960 macro_version='2.2.6'
4961 macro_revision='1.3012'
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975 ltmain="$ac_aux_dir/ltmain.sh"
4976
4977 # Make sure we can run config.sub.
4978 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4979 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4980 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4981 { (exit 1); exit 1; }; }
4982
4983 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4984 $as_echo_n "checking build system type... " >&6; }
4985 if test "${ac_cv_build+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987 else
4988 ac_build_alias=$build_alias
4989 test "x$ac_build_alias" = x &&
4990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4991 test "x$ac_build_alias" = x &&
4992 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4993 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4994 { (exit 1); exit 1; }; }
4995 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4996 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4997 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4998 { (exit 1); exit 1; }; }
4999
5000 fi
5001 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5002 $as_echo "$ac_cv_build" >&6; }
5003 case $ac_cv_build in
5004 *-*-*) ;;
5005 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5006 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5007 { (exit 1); exit 1; }; };;
5008 esac
5009 build=$ac_cv_build
5010 ac_save_IFS=$IFS; IFS='-'
5011 set x $ac_cv_build
5012 shift
5013 build_cpu=$1
5014 build_vendor=$2
5015 shift; shift
5016 # Remember, the first character of IFS is used to create $*,
5017 # except with old shells:
5018 build_os=$*
5019 IFS=$ac_save_IFS
5020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5021
5022
5023 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5024 $as_echo_n "checking host system type... " >&6; }
5025 if test "${ac_cv_host+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test "x$host_alias" = x; then
5029 ac_cv_host=$ac_cv_build
5030 else
5031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5032 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5033 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5034 { (exit 1); exit 1; }; }
5035 fi
5036
5037 fi
5038 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5039 $as_echo "$ac_cv_host" >&6; }
5040 case $ac_cv_host in
5041 *-*-*) ;;
5042 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5043 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5044 { (exit 1); exit 1; }; };;
5045 esac
5046 host=$ac_cv_host
5047 ac_save_IFS=$IFS; IFS='-'
5048 set x $ac_cv_host
5049 shift
5050 host_cpu=$1
5051 host_vendor=$2
5052 shift; shift
5053 # Remember, the first character of IFS is used to create $*,
5054 # except with old shells:
5055 host_os=$*
5056 IFS=$ac_save_IFS
5057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5058
5059
5060 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5061 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5062 if test "${ac_cv_path_SED+set}" = set; then
5063 $as_echo_n "(cached) " >&6
5064 else
5065 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5066 for ac_i in 1 2 3 4 5 6 7; do
5067 ac_script="$ac_script$as_nl$ac_script"
5068 done
5069 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5070 $as_unset ac_script || ac_script=
5071 if test -z "$SED"; then
5072 ac_path_SED_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in sed gsed; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5083 # Check for GNU ac_path_SED and select it if it is found.
5084 # Check for GNU $ac_path_SED
5085 case `"$ac_path_SED" --version 2>&1` in
5086 *GNU*)
5087 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5088 *)
5089 ac_count=0
5090 $as_echo_n 0123456789 >"conftest.in"
5091 while :
5092 do
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo '' >> "conftest.nl"
5097 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 ac_count=`expr $ac_count + 1`
5100 if test $ac_count -gt ${ac_path_SED_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_SED="$ac_path_SED"
5103 ac_path_SED_max=$ac_count
5104 fi
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5110
5111 $ac_path_SED_found && break 3
5112 done
5113 done
5114 done
5115 IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_SED"; then
5117 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5118 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5119 { (exit 1); exit 1; }; }
5120 fi
5121 else
5122 ac_cv_path_SED=$SED
5123 fi
5124
5125 fi
5126 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5127 $as_echo "$ac_cv_path_SED" >&6; }
5128 SED="$ac_cv_path_SED"
5129 rm -f conftest.sed
5130
5131 test -z "$SED" && SED=sed
5132 Xsed="$SED -e 1s/^X//"
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5145 $as_echo_n "checking for fgrep... " >&6; }
5146 if test "${ac_cv_path_FGREP+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5150 then ac_cv_path_FGREP="$GREP -F"
5151 else
5152 if test -z "$FGREP"; then
5153 ac_path_FGREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157 do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_prog in fgrep; do
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5163 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5164 # Check for GNU ac_path_FGREP and select it if it is found.
5165 # Check for GNU $ac_path_FGREP
5166 case `"$ac_path_FGREP" --version 2>&1` in
5167 *GNU*)
5168 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5169 *)
5170 ac_count=0
5171 $as_echo_n 0123456789 >"conftest.in"
5172 while :
5173 do
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 $as_echo 'FGREP' >> "conftest.nl"
5178 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 ac_count=`expr $ac_count + 1`
5181 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_FGREP="$ac_path_FGREP"
5184 ac_path_FGREP_max=$ac_count
5185 fi
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5188 done
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190 esac
5191
5192 $ac_path_FGREP_found && break 3
5193 done
5194 done
5195 done
5196 IFS=$as_save_IFS
5197 if test -z "$ac_cv_path_FGREP"; then
5198 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5199 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5200 { (exit 1); exit 1; }; }
5201 fi
5202 else
5203 ac_cv_path_FGREP=$FGREP
5204 fi
5205
5206 fi
5207 fi
5208 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5209 $as_echo "$ac_cv_path_FGREP" >&6; }
5210 FGREP="$ac_cv_path_FGREP"
5211
5212
5213 test -z "$GREP" && GREP=grep
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 # Check whether --with-gnu-ld was given.
5234 if test "${with_gnu_ld+set}" = set; then
5235 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5236 else
5237 with_gnu_ld=no
5238 fi
5239
5240 ac_prog=ld
5241 if test "$GCC" = yes; then
5242 # Check if gcc -print-prog-name=ld gives a path.
5243 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5244 $as_echo_n "checking for ld used by $CC... " >&6; }
5245 case $host in
5246 *-*-mingw*)
5247 # gcc leaves a trailing carriage return which upsets mingw
5248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5249 *)
5250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5251 esac
5252 case $ac_prog in
5253 # Accept absolute paths.
5254 [\\/]* | ?:[\\/]*)
5255 re_direlt='/[^/][^/]*/\.\./'
5256 # Canonicalize the pathname of ld
5257 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5258 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5259 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5260 done
5261 test -z "$LD" && LD="$ac_prog"
5262 ;;
5263 "")
5264 # If it fails, then pretend we aren't using GCC.
5265 ac_prog=ld
5266 ;;
5267 *)
5268 # If it is relative, then search for the first ld in PATH.
5269 with_gnu_ld=unknown
5270 ;;
5271 esac
5272 elif test "$with_gnu_ld" = yes; then
5273 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5274 $as_echo_n "checking for GNU ld... " >&6; }
5275 else
5276 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5277 $as_echo_n "checking for non-GNU ld... " >&6; }
5278 fi
5279 if test "${lt_cv_path_LD+set}" = set; then
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test -z "$LD"; then
5283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5284 for ac_dir in $PATH; do
5285 IFS="$lt_save_ifs"
5286 test -z "$ac_dir" && ac_dir=.
5287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5288 lt_cv_path_LD="$ac_dir/$ac_prog"
5289 # Check to see if the program is GNU ld. I'd rather use --version,
5290 # but apparently some variants of GNU ld only accept -v.
5291 # Break only if it was the GNU/non-GNU ld that we prefer.
5292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5293 *GNU* | *'with BFD'*)
5294 test "$with_gnu_ld" != no && break
5295 ;;
5296 *)
5297 test "$with_gnu_ld" != yes && break
5298 ;;
5299 esac
5300 fi
5301 done
5302 IFS="$lt_save_ifs"
5303 else
5304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5305 fi
5306 fi
5307
5308 LD="$lt_cv_path_LD"
5309 if test -n "$LD"; then
5310 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5311 $as_echo "$LD" >&6; }
5312 else
5313 { $as_echo "$as_me:$LINENO: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5317 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5318 { (exit 1); exit 1; }; }
5319 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5321 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5322 $as_echo_n "(cached) " >&6
5323 else
5324 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5325 case `$LD -v 2>&1 </dev/null` in
5326 *GNU* | *'with BFD'*)
5327 lt_cv_prog_gnu_ld=yes
5328 ;;
5329 *)
5330 lt_cv_prog_gnu_ld=no
5331 ;;
5332 esac
5333 fi
5334 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5336 with_gnu_ld=$lt_cv_prog_gnu_ld
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5348 if test "${lt_cv_path_NM+set}" = set; then
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$NM"; then
5352 # Let the user override the test.
5353 lt_cv_path_NM="$NM"
5354 else
5355 lt_nm_to_check="${ac_tool_prefix}nm"
5356 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5357 lt_nm_to_check="$lt_nm_to_check nm"
5358 fi
5359 for lt_tmp_nm in $lt_nm_to_check; do
5360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5361 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5362 IFS="$lt_save_ifs"
5363 test -z "$ac_dir" && ac_dir=.
5364 tmp_nm="$ac_dir/$lt_tmp_nm"
5365 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5366 # Check to see if the nm accepts a BSD-compat flag.
5367 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5368 # nm: unknown option "B" ignored
5369 # Tru64's nm complains that /dev/null is an invalid object file
5370 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5371 */dev/null* | *'Invalid file or object type'*)
5372 lt_cv_path_NM="$tmp_nm -B"
5373 break
5374 ;;
5375 *)
5376 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5377 */dev/null*)
5378 lt_cv_path_NM="$tmp_nm -p"
5379 break
5380 ;;
5381 *)
5382 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5383 continue # so that we can try to find one that supports BSD flags
5384 ;;
5385 esac
5386 ;;
5387 esac
5388 fi
5389 done
5390 IFS="$lt_save_ifs"
5391 done
5392 : ${lt_cv_path_NM=no}
5393 fi
5394 fi
5395 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5396 $as_echo "$lt_cv_path_NM" >&6; }
5397 if test "$lt_cv_path_NM" != "no"; then
5398 NM="$lt_cv_path_NM"
5399 else
5400 # Didn't find any BSD compatible name lister, look for dumpbin.
5401 if test -n "$ac_tool_prefix"; then
5402 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5403 do
5404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -n "$DUMPBIN"; then
5412 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 DUMPBIN=$ac_cv_prog_DUMPBIN
5432 if test -n "$DUMPBIN"; then
5433 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5434 $as_echo "$DUMPBIN" >&6; }
5435 else
5436 { $as_echo "$as_me:$LINENO: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440
5441 test -n "$DUMPBIN" && break
5442 done
5443 fi
5444 if test -z "$DUMPBIN"; then
5445 ac_ct_DUMPBIN=$DUMPBIN
5446 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5447 do
5448 # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$ac_ct_DUMPBIN"; then
5456 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 fi
5474 fi
5475 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5476 if test -n "$ac_ct_DUMPBIN"; then
5477 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5478 $as_echo "$ac_ct_DUMPBIN" >&6; }
5479 else
5480 { $as_echo "$as_me:$LINENO: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484
5485 test -n "$ac_ct_DUMPBIN" && break
5486 done
5487
5488 if test "x$ac_ct_DUMPBIN" = x; then
5489 DUMPBIN=":"
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492 yes:)
5493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495 ac_tool_warned=yes ;;
5496 esac
5497 DUMPBIN=$ac_ct_DUMPBIN
5498 fi
5499 fi
5500
5501
5502 if test "$DUMPBIN" != ":"; then
5503 NM="$DUMPBIN"
5504 fi
5505 fi
5506 test -z "$NM" && NM=nm
5507
5508
5509
5510
5511
5512
5513 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5514 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5515 if test "${lt_cv_nm_interface+set}" = set; then
5516 $as_echo_n "(cached) " >&6
5517 else
5518 lt_cv_nm_interface="BSD nm"
5519 echo "int some_variable = 0;" > conftest.$ac_ext
5520 (eval echo "\"\$as_me:5520: $ac_compile\"" >&5)
5521 (eval "$ac_compile" 2>conftest.err)
5522 cat conftest.err >&5
5523 (eval echo "\"\$as_me:5523: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5524 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5525 cat conftest.err >&5
5526 (eval echo "\"\$as_me:5526: output\"" >&5)
5527 cat conftest.out >&5
5528 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5529 lt_cv_nm_interface="MS dumpbin"
5530 fi
5531 rm -f conftest*
5532 fi
5533 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5534 $as_echo "$lt_cv_nm_interface" >&6; }
5535
5536 # find the maximum length of command line arguments
5537 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5538 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5539 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5540 $as_echo_n "(cached) " >&6
5541 else
5542 i=0
5543 teststring="ABCD"
5544
5545 case $build_os in
5546 msdosdjgpp*)
5547 # On DJGPP, this test can blow up pretty badly due to problems in libc
5548 # (any single argument exceeding 2000 bytes causes a buffer overrun
5549 # during glob expansion). Even if it were fixed, the result of this
5550 # check would be larger than it should be.
5551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5552 ;;
5553
5554 gnu*)
5555 # Under GNU Hurd, this test is not required because there is
5556 # no limit to the length of command line arguments.
5557 # Libtool will interpret -1 as no limit whatsoever
5558 lt_cv_sys_max_cmd_len=-1;
5559 ;;
5560
5561 cygwin* | mingw* | cegcc*)
5562 # On Win9x/ME, this test blows up -- it succeeds, but takes
5563 # about 5 minutes as the teststring grows exponentially.
5564 # Worse, since 9x/ME are not pre-emptively multitasking,
5565 # you end up with a "frozen" computer, even though with patience
5566 # the test eventually succeeds (with a max line length of 256k).
5567 # Instead, let's just punt: use the minimum linelength reported by
5568 # all of the supported platforms: 8192 (on NT/2K/XP).
5569 lt_cv_sys_max_cmd_len=8192;
5570 ;;
5571
5572 amigaos*)
5573 # On AmigaOS with pdksh, this test takes hours, literally.
5574 # So we just punt and use a minimum line length of 8192.
5575 lt_cv_sys_max_cmd_len=8192;
5576 ;;
5577
5578 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5579 # This has been around since 386BSD, at least. Likely further.
5580 if test -x /sbin/sysctl; then
5581 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5582 elif test -x /usr/sbin/sysctl; then
5583 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5584 else
5585 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5586 fi
5587 # And add a safety zone
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5590 ;;
5591
5592 interix*)
5593 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5594 lt_cv_sys_max_cmd_len=196608
5595 ;;
5596
5597 osf*)
5598 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5599 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5600 # nice to cause kernel panics so lets avoid the loop below.
5601 # First set a reasonable default.
5602 lt_cv_sys_max_cmd_len=16384
5603 #
5604 if test -x /sbin/sysconfig; then
5605 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5606 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5607 esac
5608 fi
5609 ;;
5610 sco3.2v5*)
5611 lt_cv_sys_max_cmd_len=102400
5612 ;;
5613 sysv5* | sco5v6* | sysv4.2uw2*)
5614 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5615 if test -n "$kargmax"; then
5616 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5617 else
5618 lt_cv_sys_max_cmd_len=32768
5619 fi
5620 ;;
5621 *)
5622 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5623 if test -n "$lt_cv_sys_max_cmd_len"; then
5624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5626 else
5627 # Make teststring a little bigger before we do anything with it.
5628 # a 1K string should be a reasonable start.
5629 for i in 1 2 3 4 5 6 7 8 ; do
5630 teststring=$teststring$teststring
5631 done
5632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5633 # If test is not a shell built-in, we'll probably end up computing a
5634 # maximum length that is only half of the actual maximum length, but
5635 # we can't tell.
5636 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5637 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5638 test $i != 17 # 1/2 MB should be enough
5639 do
5640 i=`expr $i + 1`
5641 teststring=$teststring$teststring
5642 done
5643 # Only check the string length outside the loop.
5644 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5645 teststring=
5646 # Add a significant safety factor because C++ compilers can tack on
5647 # massive amounts of additional arguments before passing them to the
5648 # linker. It appears as though 1/2 is a usable value.
5649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5650 fi
5651 ;;
5652 esac
5653
5654 fi
5655
5656 if test -n $lt_cv_sys_max_cmd_len ; then
5657 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5658 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5659 else
5660 { $as_echo "$as_me:$LINENO: result: none" >&5
5661 $as_echo "none" >&6; }
5662 fi
5663 max_cmd_len=$lt_cv_sys_max_cmd_len
5664
5665
5666
5667
5668
5669
5670 : ${CP="cp -f"}
5671 : ${MV="mv -f"}
5672 : ${RM="rm -f"}
5673
5674 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5675 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5676 # Try some XSI features
5677 xsi_shell=no
5678 ( _lt_dummy="a/b/c"
5679 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5680 = c,a/b,, \
5681 && eval 'test $(( 1 + 1 )) -eq 2 \
5682 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5683 && xsi_shell=yes
5684 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5685 $as_echo "$xsi_shell" >&6; }
5686
5687
5688 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5689 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5690 lt_shell_append=no
5691 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5692 >/dev/null 2>&1 \
5693 && lt_shell_append=yes
5694 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5695 $as_echo "$lt_shell_append" >&6; }
5696
5697
5698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5699 lt_unset=unset
5700 else
5701 lt_unset=false
5702 fi
5703
5704
5705
5706
5707
5708 # test EBCDIC or ASCII
5709 case `echo X|tr X '\101'` in
5710 A) # ASCII based system
5711 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5712 lt_SP2NL='tr \040 \012'
5713 lt_NL2SP='tr \015\012 \040\040'
5714 ;;
5715 *) # EBCDIC based system
5716 lt_SP2NL='tr \100 \n'
5717 lt_NL2SP='tr \r\n \100\100'
5718 ;;
5719 esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5730 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5731 if test "${lt_cv_ld_reload_flag+set}" = set; then
5732 $as_echo_n "(cached) " >&6
5733 else
5734 lt_cv_ld_reload_flag='-r'
5735 fi
5736 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5737 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5738 reload_flag=$lt_cv_ld_reload_flag
5739 case $reload_flag in
5740 "" | " "*) ;;
5741 *) reload_flag=" $reload_flag" ;;
5742 esac
5743 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5744 case $host_os in
5745 darwin*)
5746 if test "$GCC" = yes; then
5747 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5748 else
5749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5750 fi
5751 ;;
5752 esac
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 if test -n "$ac_tool_prefix"; then
5763 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5764 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -n "$OBJDUMP"; then
5771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784 done
5785 done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 OBJDUMP=$ac_cv_prog_OBJDUMP
5791 if test -n "$OBJDUMP"; then
5792 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5793 $as_echo "$OBJDUMP" >&6; }
5794 else
5795 { $as_echo "$as_me:$LINENO: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799
5800 fi
5801 if test -z "$ac_cv_prog_OBJDUMP"; then
5802 ac_ct_OBJDUMP=$OBJDUMP
5803 # Extract the first word of "objdump", so it can be a program name with args.
5804 set dummy objdump; ac_word=$2
5805 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$ac_ct_OBJDUMP"; then
5811 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5821 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5823 fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828 fi
5829 fi
5830 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5831 if test -n "$ac_ct_OBJDUMP"; then
5832 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5833 $as_echo "$ac_ct_OBJDUMP" >&6; }
5834 else
5835 { $as_echo "$as_me:$LINENO: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839 if test "x$ac_ct_OBJDUMP" = x; then
5840 OBJDUMP="false"
5841 else
5842 case $cross_compiling:$ac_tool_warned in
5843 yes:)
5844 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5846 ac_tool_warned=yes ;;
5847 esac
5848 OBJDUMP=$ac_ct_OBJDUMP
5849 fi
5850 else
5851 OBJDUMP="$ac_cv_prog_OBJDUMP"
5852 fi
5853
5854 test -z "$OBJDUMP" && OBJDUMP=objdump
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5865 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5866 if test "${lt_cv_deplibs_check_method+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5868 else
5869 lt_cv_file_magic_cmd='$MAGIC_CMD'
5870 lt_cv_file_magic_test_file=
5871 lt_cv_deplibs_check_method='unknown'
5872 # Need to set the preceding variable on all platforms that support
5873 # interlibrary dependencies.
5874 # 'none' -- dependencies not supported.
5875 # `unknown' -- same as none, but documents that we really don't know.
5876 # 'pass_all' -- all dependencies passed with no checks.
5877 # 'test_compile' -- check by making test program.
5878 # 'file_magic [[regex]]' -- check by looking for files in library path
5879 # which responds to the $file_magic_cmd with a given extended regex.
5880 # If you have `file' or equivalent on your system and you're not sure
5881 # whether `pass_all' will *always* work, you probably want this one.
5882
5883 case $host_os in
5884 aix[4-9]*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888 beos*)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891
5892 bsdi[45]*)
5893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5894 lt_cv_file_magic_cmd='/usr/bin/file -L'
5895 lt_cv_file_magic_test_file=/shlib/libc.so
5896 ;;
5897
5898 cygwin*)
5899 # func_win32_libid is a shell function defined in ltmain.sh
5900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5901 lt_cv_file_magic_cmd='func_win32_libid'
5902 ;;
5903
5904 mingw* | pw32*)
5905 # Base MSYS/MinGW do not provide the 'file' command needed by
5906 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5907 # unless we find 'file', for example because we are cross-compiling.
5908 if ( file / ) >/dev/null 2>&1; then
5909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910 lt_cv_file_magic_cmd='func_win32_libid'
5911 else
5912 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5913 lt_cv_file_magic_cmd='$OBJDUMP -f'
5914 fi
5915 ;;
5916
5917 cegcc)
5918 # use the weaker test based on 'objdump'. See mingw*.
5919 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5920 lt_cv_file_magic_cmd='$OBJDUMP -f'
5921 ;;
5922
5923 darwin* | rhapsody*)
5924 lt_cv_deplibs_check_method=pass_all
5925 ;;
5926
5927 freebsd* | dragonfly*)
5928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5929 case $host_cpu in
5930 i*86 )
5931 # Not sure whether the presence of OpenBSD here was a mistake.
5932 # Let's accept both of them until this is cleared up.
5933 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5934 lt_cv_file_magic_cmd=/usr/bin/file
5935 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5936 ;;
5937 esac
5938 else
5939 lt_cv_deplibs_check_method=pass_all
5940 fi
5941 ;;
5942
5943 gnu*)
5944 lt_cv_deplibs_check_method=pass_all
5945 ;;
5946
5947 hpux10.20* | hpux11*)
5948 lt_cv_file_magic_cmd=/usr/bin/file
5949 case $host_cpu in
5950 ia64*)
5951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5952 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5953 ;;
5954 hppa*64*)
5955 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]'
5956 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5957 ;;
5958 *)
5959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5960 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5961 ;;
5962 esac
5963 ;;
5964
5965 interix[3-9]*)
5966 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5968 ;;
5969
5970 irix5* | irix6* | nonstopux*)
5971 case $LD in
5972 *-32|*"-32 ") libmagic=32-bit;;
5973 *-n32|*"-n32 ") libmagic=N32;;
5974 *-64|*"-64 ") libmagic=64-bit;;
5975 *) libmagic=never-match;;
5976 esac
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979
5980 # This must be Linux ELF.
5981 linux* | k*bsd*-gnu)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985 netbsd*)
5986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5988 else
5989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5990 fi
5991 ;;
5992
5993 newos6*)
5994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5995 lt_cv_file_magic_cmd=/usr/bin/file
5996 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5997 ;;
5998
5999 *nto* | *qnx*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
6002
6003 openbsd*)
6004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6006 else
6007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6008 fi
6009 ;;
6010
6011 osf3* | osf4* | osf5*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015 rdos*)
6016 lt_cv_deplibs_check_method=pass_all
6017 ;;
6018
6019 solaris*)
6020 lt_cv_deplibs_check_method=pass_all
6021 ;;
6022
6023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026
6027 sysv4 | sysv4.3*)
6028 case $host_vendor in
6029 motorola)
6030 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]'
6031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6032 ;;
6033 ncr)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036 sequent)
6037 lt_cv_file_magic_cmd='/bin/file'
6038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6039 ;;
6040 sni)
6041 lt_cv_file_magic_cmd='/bin/file'
6042 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6043 lt_cv_file_magic_test_file=/lib/libc.so
6044 ;;
6045 siemens)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048 pc)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051 esac
6052 ;;
6053
6054 tpf*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057 esac
6058
6059 fi
6060 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6061 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6062 file_magic_cmd=$lt_cv_file_magic_cmd
6063 deplibs_check_method=$lt_cv_deplibs_check_method
6064 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}ar; ac_word=$2
6080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_AR+set}" = set; then
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$AR"; then
6086 ac_cv_prog_AR="$AR" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_AR="${ac_tool_prefix}ar"
6096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 AR=$ac_cv_prog_AR
6106 if test -n "$AR"; then
6107 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6108 $as_echo "$AR" >&6; }
6109 else
6110 { $as_echo "$as_me:$LINENO: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115 fi
6116 if test -z "$ac_cv_prog_AR"; then
6117 ac_ct_AR=$AR
6118 # Extract the first word of "ar", so it can be a program name with args.
6119 set dummy ar; ac_word=$2
6120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$ac_ct_AR"; then
6126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_ac_ct_AR="ar"
6136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6146 if test -n "$ac_ct_AR"; then
6147 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6148 $as_echo "$ac_ct_AR" >&6; }
6149 else
6150 { $as_echo "$as_me:$LINENO: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154 if test "x$ac_ct_AR" = x; then
6155 AR="false"
6156 else
6157 case $cross_compiling:$ac_tool_warned in
6158 yes:)
6159 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161 ac_tool_warned=yes ;;
6162 esac
6163 AR=$ac_ct_AR
6164 fi
6165 else
6166 AR="$ac_cv_prog_AR"
6167 fi
6168
6169 test -z "$AR" && AR=ar
6170 test -z "$AR_FLAGS" && AR_FLAGS=cru
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}strip; ac_word=$2
6185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if test "${ac_cv_prog_STRIP+set}" = set; then
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$STRIP"; then
6191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 STRIP=$ac_cv_prog_STRIP
6211 if test -n "$STRIP"; then
6212 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6213 $as_echo "$STRIP" >&6; }
6214 else
6215 { $as_echo "$as_me:$LINENO: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_STRIP"; then
6222 ac_ct_STRIP=$STRIP
6223 # Extract the first word of "strip", so it can be a program name with args.
6224 set dummy strip; ac_word=$2
6225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if test -n "$ac_ct_STRIP"; then
6231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_ac_ct_STRIP="strip"
6241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244 done
6245 done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6251 if test -n "$ac_ct_STRIP"; then
6252 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6253 $as_echo "$ac_ct_STRIP" >&6; }
6254 else
6255 { $as_echo "$as_me:$LINENO: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259 if test "x$ac_ct_STRIP" = x; then
6260 STRIP=":"
6261 else
6262 case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266 ac_tool_warned=yes ;;
6267 esac
6268 STRIP=$ac_ct_STRIP
6269 fi
6270 else
6271 STRIP="$ac_cv_prog_STRIP"
6272 fi
6273
6274 test -z "$STRIP" && STRIP=:
6275
6276
6277
6278
6279
6280
6281 if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if test "${ac_cv_prog_RANLIB+set}" = set; then
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$RANLIB"; then
6290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 RANLIB=$ac_cv_prog_RANLIB
6310 if test -n "$RANLIB"; then
6311 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6312 $as_echo "$RANLIB" >&6; }
6313 else
6314 { $as_echo "$as_me:$LINENO: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319 fi
6320 if test -z "$ac_cv_prog_RANLIB"; then
6321 ac_ct_RANLIB=$RANLIB
6322 # Extract the first word of "ranlib", so it can be a program name with args.
6323 set dummy ranlib; ac_word=$2
6324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$ac_ct_RANLIB"; then
6330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_RANLIB="ranlib"
6340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6350 if test -n "$ac_ct_RANLIB"; then
6351 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6352 $as_echo "$ac_ct_RANLIB" >&6; }
6353 else
6354 { $as_echo "$as_me:$LINENO: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358 if test "x$ac_ct_RANLIB" = x; then
6359 RANLIB=":"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362 yes:)
6363 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367 RANLIB=$ac_ct_RANLIB
6368 fi
6369 else
6370 RANLIB="$ac_cv_prog_RANLIB"
6371 fi
6372
6373 test -z "$RANLIB" && RANLIB=:
6374
6375
6376
6377
6378
6379
6380 # Determine commands to create old-style static archives.
6381 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6382 old_postinstall_cmds='chmod 644 $oldlib'
6383 old_postuninstall_cmds=
6384
6385 if test -n "$RANLIB"; then
6386 case $host_os in
6387 openbsd*)
6388 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6389 ;;
6390 *)
6391 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6392 ;;
6393 esac
6394 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6395 fi
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 # If no C compiler was specified, use CC.
6431 LTCC=${LTCC-"$CC"}
6432
6433 # If no C compiler flags were specified, use CFLAGS.
6434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6435
6436 # Allow CC to be a program name with arguments.
6437 compiler=$CC
6438
6439
6440 # Check for command to grab the raw symbol name followed by C symbol from nm.
6441 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6442 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6445 else
6446
6447 # These are sane defaults that work on at least a few old systems.
6448 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6449
6450 # Character class describing NM global symbol codes.
6451 symcode='[BCDEGRST]'
6452
6453 # Regexp to match symbols that can be accessed directly from C.
6454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6455
6456 # Define system-specific variables.
6457 case $host_os in
6458 aix*)
6459 symcode='[BCDT]'
6460 ;;
6461 cygwin* | mingw* | pw32* | cegcc*)
6462 symcode='[ABCDGISTW]'
6463 ;;
6464 hpux*)
6465 if test "$host_cpu" = ia64; then
6466 symcode='[ABCDEGRST]'
6467 fi
6468 ;;
6469 irix* | nonstopux*)
6470 symcode='[BCDEGRST]'
6471 ;;
6472 osf*)
6473 symcode='[BCDEGQRST]'
6474 ;;
6475 solaris*)
6476 symcode='[BDRT]'
6477 ;;
6478 sco3.2v5*)
6479 symcode='[DT]'
6480 ;;
6481 sysv4.2uw2*)
6482 symcode='[DT]'
6483 ;;
6484 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6485 symcode='[ABDT]'
6486 ;;
6487 sysv4)
6488 symcode='[DFNSTU]'
6489 ;;
6490 esac
6491
6492 # If we're using GNU nm, then use its standard symbol codes.
6493 case `$NM -V 2>&1` in
6494 *GNU* | *'with BFD'*)
6495 symcode='[ABCDGIRSTW]' ;;
6496 esac
6497
6498 # Transform an extracted symbol line into a proper C declaration.
6499 # Some systems (esp. on ia64) link data and code symbols differently,
6500 # so use this general approach.
6501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6502
6503 # Transform an extracted symbol line into symbol name and symbol address
6504 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6505 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'"
6506
6507 # Handle CRLF in mingw tool chain
6508 opt_cr=
6509 case $build_os in
6510 mingw*)
6511 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6512 ;;
6513 esac
6514
6515 # Try without a prefix underscore, then with it.
6516 for ac_symprfx in "" "_"; do
6517
6518 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6519 symxfrm="\\1 $ac_symprfx\\2 \\2"
6520
6521 # Write the raw and C identifiers.
6522 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6523 # Fake it for dumpbin and say T for any non-static function
6524 # and D for any global variable.
6525 # Also find C++ and __fastcall symbols from MSVC++,
6526 # which start with @ or ?.
6527 lt_cv_sys_global_symbol_pipe="$AWK '"\
6528 " {last_section=section; section=\$ 3};"\
6529 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6530 " \$ 0!~/External *\|/{next};"\
6531 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6532 " {if(hide[section]) next};"\
6533 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6534 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6535 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6536 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6537 " ' prfx=^$ac_symprfx"
6538 else
6539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6540 fi
6541
6542 # Check to see that the pipe works correctly.
6543 pipe_works=no
6544
6545 rm -f conftest*
6546 cat > conftest.$ac_ext <<_LT_EOF
6547 #ifdef __cplusplus
6548 extern "C" {
6549 #endif
6550 char nm_test_var;
6551 void nm_test_func(void);
6552 void nm_test_func(void){}
6553 #ifdef __cplusplus
6554 }
6555 #endif
6556 int main(){nm_test_var='a';nm_test_func();return(0);}
6557 _LT_EOF
6558
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560 (eval $ac_compile) 2>&5
6561 ac_status=$?
6562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; then
6564 # Now try to grab the symbols.
6565 nlist=conftest.nm
6566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6567 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6568 ac_status=$?
6569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && test -s "$nlist"; then
6571 # Try sorting and uniquifying the output.
6572 if sort "$nlist" | uniq > "$nlist"T; then
6573 mv -f "$nlist"T "$nlist"
6574 else
6575 rm -f "$nlist"T
6576 fi
6577
6578 # Make sure that we snagged all the symbols we need.
6579 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6580 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6581 cat <<_LT_EOF > conftest.$ac_ext
6582 #ifdef __cplusplus
6583 extern "C" {
6584 #endif
6585
6586 _LT_EOF
6587 # Now generate the symbol file.
6588 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6589
6590 cat <<_LT_EOF >> conftest.$ac_ext
6591
6592 /* The mapping between symbol names and symbols. */
6593 const struct {
6594 const char *name;
6595 void *address;
6596 }
6597 lt__PROGRAM__LTX_preloaded_symbols[] =
6598 {
6599 { "@PROGRAM@", (void *) 0 },
6600 _LT_EOF
6601 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6602 cat <<\_LT_EOF >> conftest.$ac_ext
6603 {0, (void *) 0}
6604 };
6605
6606 /* This works around a problem in FreeBSD linker */
6607 #ifdef FREEBSD_WORKAROUND
6608 static const void *lt_preloaded_setup() {
6609 return lt__PROGRAM__LTX_preloaded_symbols;
6610 }
6611 #endif
6612
6613 #ifdef __cplusplus
6614 }
6615 #endif
6616 _LT_EOF
6617 # Now try linking the two files.
6618 mv conftest.$ac_objext conftstm.$ac_objext
6619 lt_save_LIBS="$LIBS"
6620 lt_save_CFLAGS="$CFLAGS"
6621 LIBS="conftstm.$ac_objext"
6622 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6624 (eval $ac_link) 2>&5
6625 ac_status=$?
6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6628 pipe_works=yes
6629 fi
6630 LIBS="$lt_save_LIBS"
6631 CFLAGS="$lt_save_CFLAGS"
6632 else
6633 echo "cannot find nm_test_func in $nlist" >&5
6634 fi
6635 else
6636 echo "cannot find nm_test_var in $nlist" >&5
6637 fi
6638 else
6639 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6640 fi
6641 else
6642 echo "$progname: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6644 fi
6645 rm -rf conftest* conftst*
6646
6647 # Do not use the global_symbol_pipe unless it works.
6648 if test "$pipe_works" = yes; then
6649 break
6650 else
6651 lt_cv_sys_global_symbol_pipe=
6652 fi
6653 done
6654
6655 fi
6656
6657 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6658 lt_cv_sys_global_symbol_to_cdecl=
6659 fi
6660 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6661 { $as_echo "$as_me:$LINENO: result: failed" >&5
6662 $as_echo "failed" >&6; }
6663 else
6664 { $as_echo "$as_me:$LINENO: result: ok" >&5
6665 $as_echo "ok" >&6; }
6666 fi
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689 # Check whether --enable-libtool-lock was given.
6690 if test "${enable_libtool_lock+set}" = set; then
6691 enableval=$enable_libtool_lock;
6692 fi
6693
6694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6695
6696 # Some flags need to be propagated to the compiler or linker for good
6697 # libtool support.
6698 case $host in
6699 ia64-*-hpux*)
6700 # Find out which ABI we are using.
6701 echo 'int i;' > conftest.$ac_ext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; then
6707 case `/usr/bin/file conftest.$ac_objext` in
6708 *ELF-32*)
6709 HPUX_IA64_MODE="32"
6710 ;;
6711 *ELF-64*)
6712 HPUX_IA64_MODE="64"
6713 ;;
6714 esac
6715 fi
6716 rm -rf conftest*
6717 ;;
6718 *-*-irix6*)
6719 # Find out which ABI we are using.
6720 echo '#line 6720 "configure"' > conftest.$ac_ext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722 (eval $ac_compile) 2>&5
6723 ac_status=$?
6724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; then
6726 if test "$lt_cv_prog_gnu_ld" = yes; then
6727 case `/usr/bin/file conftest.$ac_objext` in
6728 *32-bit*)
6729 LD="${LD-ld} -melf32bsmip"
6730 ;;
6731 *N32*)
6732 LD="${LD-ld} -melf32bmipn32"
6733 ;;
6734 *64-bit*)
6735 LD="${LD-ld} -melf64bmip"
6736 ;;
6737 esac
6738 else
6739 case `/usr/bin/file conftest.$ac_objext` in
6740 *32-bit*)
6741 LD="${LD-ld} -32"
6742 ;;
6743 *N32*)
6744 LD="${LD-ld} -n32"
6745 ;;
6746 *64-bit*)
6747 LD="${LD-ld} -64"
6748 ;;
6749 esac
6750 fi
6751 fi
6752 rm -rf conftest*
6753 ;;
6754
6755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6756 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6757 # Find out which ABI we are using.
6758 echo 'int i;' > conftest.$ac_ext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6761 ac_status=$?
6762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; then
6764 case `/usr/bin/file conftest.o` in
6765 *32-bit*)
6766 case $host in
6767 x86_64-*kfreebsd*-gnu)
6768 LD="${LD-ld} -m elf_i386_fbsd"
6769 ;;
6770 x86_64-*linux*)
6771 LD="${LD-ld} -m elf_i386"
6772 ;;
6773 ppc64-*linux*|powerpc64-*linux*)
6774 LD="${LD-ld} -m elf32ppclinux"
6775 ;;
6776 s390x-*linux*)
6777 LD="${LD-ld} -m elf_s390"
6778 ;;
6779 sparc64-*linux*)
6780 LD="${LD-ld} -m elf32_sparc"
6781 ;;
6782 esac
6783 ;;
6784 *64-bit*)
6785 case $host in
6786 x86_64-*kfreebsd*-gnu)
6787 LD="${LD-ld} -m elf_x86_64_fbsd"
6788 ;;
6789 x86_64-*linux*)
6790 LD="${LD-ld} -m elf_x86_64"
6791 ;;
6792 ppc*-*linux*|powerpc*-*linux*)
6793 LD="${LD-ld} -m elf64ppc"
6794 ;;
6795 s390*-*linux*|s390*-*tpf*)
6796 LD="${LD-ld} -m elf64_s390"
6797 ;;
6798 sparc*-*linux*)
6799 LD="${LD-ld} -m elf64_sparc"
6800 ;;
6801 esac
6802 ;;
6803 esac
6804 fi
6805 rm -rf conftest*
6806 ;;
6807
6808 *-*-sco3.2v5*)
6809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6810 SAVE_CFLAGS="$CFLAGS"
6811 CFLAGS="$CFLAGS -belf"
6812 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6813 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6814 if test "${lt_cv_cc_needs_belf+set}" = set; then
6815 $as_echo_n "(cached) " >&6
6816 else
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829
6830 int
6831 main ()
6832 {
6833
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (ac_try="$ac_link"
6840 case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843 esac
6844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6845 $as_echo "$ac_try_echo") >&5
6846 (eval "$ac_link") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest$ac_exeext && {
6856 test "$cross_compiling" = yes ||
6857 $as_test_x conftest$ac_exeext
6858 }; then
6859 lt_cv_cc_needs_belf=yes
6860 else
6861 $as_echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 lt_cv_cc_needs_belf=no
6865 fi
6866
6867 rm -rf conftest.dSYM
6868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6869 conftest$ac_exeext conftest.$ac_ext
6870 ac_ext=c
6871 ac_cpp='$CPP $CPPFLAGS'
6872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6875
6876 fi
6877 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6878 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6881 CFLAGS="$SAVE_CFLAGS"
6882 fi
6883 ;;
6884 sparc*-*solaris*)
6885 # Find out which ABI we are using.
6886 echo 'int i;' > conftest.$ac_ext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; then
6892 case `/usr/bin/file conftest.o` in
6893 *64-bit*)
6894 case $lt_cv_prog_gnu_ld in
6895 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6896 *)
6897 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6898 LD="${LD-ld} -64"
6899 fi
6900 ;;
6901 esac
6902 ;;
6903 esac
6904 fi
6905 rm -rf conftest*
6906 ;;
6907 esac
6908
6909 need_locks="$enable_libtool_lock"
6910
6911
6912 case $host_os in
6913 rhapsody* | darwin*)
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$DSYMUTIL"; then
6923 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6943 if test -n "$DSYMUTIL"; then
6944 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6945 $as_echo "$DSYMUTIL" >&6; }
6946 else
6947 { $as_echo "$as_me:$LINENO: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_DSYMUTIL"; then
6954 ac_ct_DSYMUTIL=$DSYMUTIL
6955 # Extract the first word of "dsymutil", so it can be a program name with args.
6956 set dummy dsymutil; ac_word=$2
6957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$ac_ct_DSYMUTIL"; then
6963 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6983 if test -n "$ac_ct_DSYMUTIL"; then
6984 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6985 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6986 else
6987 { $as_echo "$as_me:$LINENO: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991 if test "x$ac_ct_DSYMUTIL" = x; then
6992 DSYMUTIL=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000 DSYMUTIL=$ac_ct_DSYMUTIL
7001 fi
7002 else
7003 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7004 fi
7005
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$NMEDIT"; then
7015 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 NMEDIT=$ac_cv_prog_NMEDIT
7035 if test -n "$NMEDIT"; then
7036 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7037 $as_echo "$NMEDIT" >&6; }
7038 else
7039 { $as_echo "$as_me:$LINENO: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_NMEDIT"; then
7046 ac_ct_NMEDIT=$NMEDIT
7047 # Extract the first word of "nmedit", so it can be a program name with args.
7048 set dummy nmedit; ac_word=$2
7049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -n "$ac_ct_NMEDIT"; then
7055 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7075 if test -n "$ac_ct_NMEDIT"; then
7076 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7077 $as_echo "$ac_ct_NMEDIT" >&6; }
7078 else
7079 { $as_echo "$as_me:$LINENO: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083 if test "x$ac_ct_NMEDIT" = x; then
7084 NMEDIT=":"
7085 else
7086 case $cross_compiling:$ac_tool_warned in
7087 yes:)
7088 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7091 esac
7092 NMEDIT=$ac_ct_NMEDIT
7093 fi
7094 else
7095 NMEDIT="$ac_cv_prog_NMEDIT"
7096 fi
7097
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if test "${ac_cv_prog_LIPO+set}" = set; then
7104 $as_echo_n "(cached) " >&6
7105 else
7106 if test -n "$LIPO"; then
7107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 LIPO=$ac_cv_prog_LIPO
7127 if test -n "$LIPO"; then
7128 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7129 $as_echo "$LIPO" >&6; }
7130 else
7131 { $as_echo "$as_me:$LINENO: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136 fi
7137 if test -z "$ac_cv_prog_LIPO"; then
7138 ac_ct_LIPO=$LIPO
7139 # Extract the first word of "lipo", so it can be a program name with args.
7140 set dummy lipo; ac_word=$2
7141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$ac_ct_LIPO"; then
7147 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_prog_ac_ct_LIPO="lipo"
7157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7167 if test -n "$ac_ct_LIPO"; then
7168 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7169 $as_echo "$ac_ct_LIPO" >&6; }
7170 else
7171 { $as_echo "$as_me:$LINENO: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175 if test "x$ac_ct_LIPO" = x; then
7176 LIPO=":"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184 LIPO=$ac_ct_LIPO
7185 fi
7186 else
7187 LIPO="$ac_cv_prog_LIPO"
7188 fi
7189
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}otool; ac_word=$2
7193 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_OTOOL+set}" = set; then
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$OTOOL"; then
7199 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 OTOOL=$ac_cv_prog_OTOOL
7219 if test -n "$OTOOL"; then
7220 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7221 $as_echo "$OTOOL" >&6; }
7222 else
7223 { $as_echo "$as_me:$LINENO: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228 fi
7229 if test -z "$ac_cv_prog_OTOOL"; then
7230 ac_ct_OTOOL=$OTOOL
7231 # Extract the first word of "otool", so it can be a program name with args.
7232 set dummy otool; ac_word=$2
7233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$ac_ct_OTOOL"; then
7239 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_OTOOL="otool"
7249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7259 if test -n "$ac_ct_OTOOL"; then
7260 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7261 $as_echo "$ac_ct_OTOOL" >&6; }
7262 else
7263 { $as_echo "$as_me:$LINENO: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267 if test "x$ac_ct_OTOOL" = x; then
7268 OTOOL=":"
7269 else
7270 case $cross_compiling:$ac_tool_warned in
7271 yes:)
7272 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7275 esac
7276 OTOOL=$ac_ct_OTOOL
7277 fi
7278 else
7279 OTOOL="$ac_cv_prog_OTOOL"
7280 fi
7281
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7284 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$OTOOL64"; then
7291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 OTOOL64=$ac_cv_prog_OTOOL64
7311 if test -n "$OTOOL64"; then
7312 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7313 $as_echo "$OTOOL64" >&6; }
7314 else
7315 { $as_echo "$as_me:$LINENO: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319
7320 fi
7321 if test -z "$ac_cv_prog_OTOOL64"; then
7322 ac_ct_OTOOL64=$OTOOL64
7323 # Extract the first word of "otool64", so it can be a program name with args.
7324 set dummy otool64; ac_word=$2
7325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$ac_ct_OTOOL64"; then
7331 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_prog_ac_ct_OTOOL64="otool64"
7341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7351 if test -n "$ac_ct_OTOOL64"; then
7352 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7353 $as_echo "$ac_ct_OTOOL64" >&6; }
7354 else
7355 { $as_echo "$as_me:$LINENO: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359 if test "x$ac_ct_OTOOL64" = x; then
7360 OTOOL64=":"
7361 else
7362 case $cross_compiling:$ac_tool_warned in
7363 yes:)
7364 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366 ac_tool_warned=yes ;;
7367 esac
7368 OTOOL64=$ac_ct_OTOOL64
7369 fi
7370 else
7371 OTOOL64="$ac_cv_prog_OTOOL64"
7372 fi
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7401 $as_echo_n "checking for -single_module linker flag... " >&6; }
7402 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7403 $as_echo_n "(cached) " >&6
7404 else
7405 lt_cv_apple_cc_single_mod=no
7406 if test -z "${LT_MULTI_MODULE}"; then
7407 # By default we will add the -single_module flag. You can override
7408 # by either setting the environment variable LT_MULTI_MODULE
7409 # non-empty at configure time, or by adding -multi_module to the
7410 # link flags.
7411 rm -rf libconftest.dylib*
7412 echo "int foo(void){return 1;}" > conftest.c
7413 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7414 -dynamiclib -Wl,-single_module conftest.c" >&5
7415 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7416 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7417 _lt_result=$?
7418 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7419 lt_cv_apple_cc_single_mod=yes
7420 else
7421 cat conftest.err >&5
7422 fi
7423 rm -rf libconftest.dylib*
7424 rm -f conftest.*
7425 fi
7426 fi
7427 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7428 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7429 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7430 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7431 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7432 $as_echo_n "(cached) " >&6
7433 else
7434 lt_cv_ld_exported_symbols_list=no
7435 save_LDFLAGS=$LDFLAGS
7436 echo "_main" > conftest.sym
7437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444
7445 int
7446 main ()
7447 {
7448
7449 ;
7450 return 0;
7451 }
7452 _ACEOF
7453 rm -f conftest.$ac_objext conftest$ac_exeext
7454 if { (ac_try="$ac_link"
7455 case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458 esac
7459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7460 $as_echo "$ac_try_echo") >&5
7461 (eval "$ac_link") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest$ac_exeext && {
7471 test "$cross_compiling" = yes ||
7472 $as_test_x conftest$ac_exeext
7473 }; then
7474 lt_cv_ld_exported_symbols_list=yes
7475 else
7476 $as_echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 lt_cv_ld_exported_symbols_list=no
7480 fi
7481
7482 rm -rf conftest.dSYM
7483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7484 conftest$ac_exeext conftest.$ac_ext
7485 LDFLAGS="$save_LDFLAGS"
7486
7487 fi
7488 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7489 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7490 case $host_os in
7491 rhapsody* | darwin1.[012])
7492 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7493 darwin1.*)
7494 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7495 darwin*) # darwin 5.x on
7496 # if running on 10.5 or later, the deployment target defaults
7497 # to the OS version, if on x86, and 10.4, the deployment
7498 # target defaults to 10.4. Don't you love it?
7499 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7500 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7502 10.[012]*)
7503 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7504 10.*)
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7506 esac
7507 ;;
7508 esac
7509 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7510 _lt_dar_single_mod='$single_module'
7511 fi
7512 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7513 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7514 else
7515 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7516 fi
7517 if test "$DSYMUTIL" != ":"; then
7518 _lt_dsymutil='~$DSYMUTIL $lib || :'
7519 else
7520 _lt_dsymutil=
7521 fi
7522 ;;
7523 esac
7524
7525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7536 inttypes.h stdint.h unistd.h
7537 do
7538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 $as_echo_n "checking for $ac_header... " >&6; }
7541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 $ac_includes_default
7551
7552 #include <$ac_header>
7553 _ACEOF
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7556 case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7561 $as_echo "$ac_try_echo") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
7572 eval "$as_ac_Header=yes"
7573 else
7574 $as_echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 eval "$as_ac_Header=no"
7578 fi
7579
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 fi
7582 ac_res=`eval 'as_val=${'$as_ac_Header'}
7583 $as_echo "$as_val"'`
7584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7585 $as_echo "$ac_res" >&6; }
7586 as_val=`eval 'as_val=${'$as_ac_Header'}
7587 $as_echo "$as_val"'`
7588 if test "x$as_val" = x""yes; then
7589 cat >>confdefs.h <<_ACEOF
7590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7591 _ACEOF
7592
7593 fi
7594
7595 done
7596
7597
7598
7599 for ac_header in dlfcn.h
7600 do
7601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7603 $as_echo_n "checking for $ac_header... " >&6; }
7604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7605 $as_echo_n "(cached) " >&6
7606 else
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7614
7615 #include <$ac_header>
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7624 $as_echo "$ac_try_echo") >&5
7625 (eval "$ac_compile") 2>conftest.er1
7626 ac_status=$?
7627 grep -v '^ *+' conftest.er1 >conftest.err
7628 rm -f conftest.er1
7629 cat conftest.err >&5
7630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } && {
7632 test -z "$ac_c_werror_flag" ||
7633 test ! -s conftest.err
7634 } && test -s conftest.$ac_objext; then
7635 eval "$as_ac_Header=yes"
7636 else
7637 $as_echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 eval "$as_ac_Header=no"
7641 fi
7642
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 ac_res=`eval 'as_val=${'$as_ac_Header'}
7646 $as_echo "$as_val"'`
7647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7648 $as_echo "$ac_res" >&6; }
7649 as_val=`eval 'as_val=${'$as_ac_Header'}
7650 $as_echo "$as_val"'`
7651 if test "x$as_val" = x""yes; then
7652 cat >>confdefs.h <<_ACEOF
7653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7654 _ACEOF
7655
7656 fi
7657
7658 done
7659
7660
7661
7662 ac_ext=cpp
7663 ac_cpp='$CXXCPP $CPPFLAGS'
7664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7667 if test -z "$CXX"; then
7668 if test -n "$CCC"; then
7669 CXX=$CCC
7670 else
7671 if test -n "$ac_tool_prefix"; then
7672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7673 do
7674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_CXX+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$CXX"; then
7682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7694 fi
7695 done
7696 done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 CXX=$ac_cv_prog_CXX
7702 if test -n "$CXX"; then
7703 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7704 $as_echo "$CXX" >&6; }
7705 else
7706 { $as_echo "$as_me:$LINENO: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710
7711 test -n "$CXX" && break
7712 done
7713 fi
7714 if test -z "$CXX"; then
7715 ac_ct_CXX=$CXX
7716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7717 do
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$ac_ct_CXX"; then
7726 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_ac_ct_CXX="$ac_prog"
7736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7746 if test -n "$ac_ct_CXX"; then
7747 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7748 $as_echo "$ac_ct_CXX" >&6; }
7749 else
7750 { $as_echo "$as_me:$LINENO: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755 test -n "$ac_ct_CXX" && break
7756 done
7757
7758 if test "x$ac_ct_CXX" = x; then
7759 CXX="g++"
7760 else
7761 case $cross_compiling:$ac_tool_warned in
7762 yes:)
7763 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7765 ac_tool_warned=yes ;;
7766 esac
7767 CXX=$ac_ct_CXX
7768 fi
7769 fi
7770
7771 fi
7772 fi
7773 # Provide some information about the compiler.
7774 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7775 set X $ac_compile
7776 ac_compiler=$2
7777 { (ac_try="$ac_compiler --version >&5"
7778 case "(($ac_try" in
7779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7781 esac
7782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7783 $as_echo "$ac_try_echo") >&5
7784 (eval "$ac_compiler --version >&5") 2>&5
7785 ac_status=$?
7786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }
7788 { (ac_try="$ac_compiler -v >&5"
7789 case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792 esac
7793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7794 $as_echo "$ac_try_echo") >&5
7795 (eval "$ac_compiler -v >&5") 2>&5
7796 ac_status=$?
7797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }
7799 { (ac_try="$ac_compiler -V >&5"
7800 case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803 esac
7804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7805 $as_echo "$ac_try_echo") >&5
7806 (eval "$ac_compiler -V >&5") 2>&5
7807 ac_status=$?
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }
7810
7811 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7813 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7814 $as_echo_n "(cached) " >&6
7815 else
7816 cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h. */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822
7823 int
7824 main ()
7825 {
7826 #ifndef __GNUC__
7827 choke me
7828 #endif
7829
7830 ;
7831 return 0;
7832 }
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (ac_try="$ac_compile"
7836 case "(($ac_try" in
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7839 esac
7840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7841 $as_echo "$ac_try_echo") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7843 ac_status=$?
7844 grep -v '^ *+' conftest.er1 >conftest.err
7845 rm -f conftest.er1
7846 cat conftest.err >&5
7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_cxx_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 ac_compiler_gnu=yes
7853 else
7854 $as_echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857 ac_compiler_gnu=no
7858 fi
7859
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7862
7863 fi
7864 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7865 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7866 if test $ac_compiler_gnu = yes; then
7867 GXX=yes
7868 else
7869 GXX=
7870 fi
7871 ac_test_CXXFLAGS=${CXXFLAGS+set}
7872 ac_save_CXXFLAGS=$CXXFLAGS
7873 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7874 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7875 if test "${ac_cv_prog_cxx_g+set}" = set; then
7876 $as_echo_n "(cached) " >&6
7877 else
7878 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7879 ac_cxx_werror_flag=yes
7880 ac_cv_prog_cxx_g=no
7881 CXXFLAGS="-g"
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888
7889 int
7890 main ()
7891 {
7892
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7899 case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7902 esac
7903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904 $as_echo "$ac_try_echo") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_cxx_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7915 ac_cv_prog_cxx_g=yes
7916 else
7917 $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 CXXFLAGS=""
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927
7928 int
7929 main ()
7930 {
7931
7932 ;
7933 return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (ac_try="$ac_compile"
7938 case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941 esac
7942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943 $as_echo "$ac_try_echo") >&5
7944 (eval "$ac_compile") 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_cxx_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest.$ac_objext; then
7954 :
7955 else
7956 $as_echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7960 CXXFLAGS="-g"
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967
7968 int
7969 main ()
7970 {
7971
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 rm -f conftest.$ac_objext
7977 if { (ac_try="$ac_compile"
7978 case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981 esac
7982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7983 $as_echo "$ac_try_echo") >&5
7984 (eval "$ac_compile") 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_cxx_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest.$ac_objext; then
7994 ac_cv_prog_cxx_g=yes
7995 else
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 fi
8007
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8010 fi
8011 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8012 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8013 if test "$ac_test_CXXFLAGS" = set; then
8014 CXXFLAGS=$ac_save_CXXFLAGS
8015 elif test $ac_cv_prog_cxx_g = yes; then
8016 if test "$GXX" = yes; then
8017 CXXFLAGS="-g -O2"
8018 else
8019 CXXFLAGS="-g"
8020 fi
8021 else
8022 if test "$GXX" = yes; then
8023 CXXFLAGS="-O2"
8024 else
8025 CXXFLAGS=
8026 fi
8027 fi
8028 ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8033
8034 depcc="$CXX" am_compiler_list=
8035
8036 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8037 $as_echo_n "checking dependency style of $depcc... " >&6; }
8038 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8039 $as_echo_n "(cached) " >&6
8040 else
8041 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8042 # We make a subdir and do the tests there. Otherwise we can end up
8043 # making bogus files that we don't know about and never remove. For
8044 # instance it was reported that on HP-UX the gcc test will end up
8045 # making a dummy file named `D' -- because `-MD' means `put the output
8046 # in D'.
8047 mkdir conftest.dir
8048 # Copy depcomp to subdir because otherwise we won't find it if we're
8049 # using a relative directory.
8050 cp "$am_depcomp" conftest.dir
8051 cd conftest.dir
8052 # We will build objects and dependencies in a subdirectory because
8053 # it helps to detect inapplicable dependency modes. For instance
8054 # both Tru64's cc and ICC support -MD to output dependencies as a
8055 # side effect of compilation, but ICC will put the dependencies in
8056 # the current directory while Tru64 will put them in the object
8057 # directory.
8058 mkdir sub
8059
8060 am_cv_CXX_dependencies_compiler_type=none
8061 if test "$am_compiler_list" = ""; then
8062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8063 fi
8064 for depmode in $am_compiler_list; do
8065 # Setup a source with many dependencies, because some compilers
8066 # like to wrap large dependency lists on column 80 (with \), and
8067 # we should not choose a depcomp mode which is confused by this.
8068 #
8069 # We need to recreate these files for each test, as the compiler may
8070 # overwrite some of them when testing with obscure command lines.
8071 # This happens at least with the AIX C compiler.
8072 : > sub/conftest.c
8073 for i in 1 2 3 4 5 6; do
8074 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8075 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8076 # Solaris 8's {/usr,}/bin/sh.
8077 touch sub/conftst$i.h
8078 done
8079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8080
8081 case $depmode in
8082 nosideeffect)
8083 # after this tag, mechanisms are not by side-effect, so they'll
8084 # only be used when explicitly requested
8085 if test "x$enable_dependency_tracking" = xyes; then
8086 continue
8087 else
8088 break
8089 fi
8090 ;;
8091 none) break ;;
8092 esac
8093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8094 # mode. It turns out that the SunPro C++ compiler does not properly
8095 # handle `-M -o', and we need to detect this.
8096 if depmode=$depmode \
8097 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8099 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8100 >/dev/null 2>conftest.err &&
8101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8103 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8105 # icc doesn't choke on unknown options, it will just issue warnings
8106 # or remarks (even with -Werror). So we grep stderr for any message
8107 # that says an option was ignored or not supported.
8108 # When given -MP, icc 7.0 and 7.1 complain thusly:
8109 # icc: Command line warning: ignoring option '-M'; no argument required
8110 # The diagnosis changed in icc 8.0:
8111 # icc: Command line remark: option '-MP' not supported
8112 if (grep 'ignoring option' conftest.err ||
8113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8114 am_cv_CXX_dependencies_compiler_type=$depmode
8115 break
8116 fi
8117 fi
8118 done
8119
8120 cd ..
8121 rm -rf conftest.dir
8122 else
8123 am_cv_CXX_dependencies_compiler_type=none
8124 fi
8125
8126 fi
8127 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8128 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8129 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8130
8131 if
8132 test "x$enable_dependency_tracking" != xno \
8133 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8134 am__fastdepCXX_TRUE=
8135 am__fastdepCXX_FALSE='#'
8136 else
8137 am__fastdepCXX_TRUE='#'
8138 am__fastdepCXX_FALSE=
8139 fi
8140
8141
8142 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8143 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8144 (test "X$CXX" != "Xg++"))) ; then
8145 ac_ext=cpp
8146 ac_cpp='$CXXCPP $CPPFLAGS'
8147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8150 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8151 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8152 if test -z "$CXXCPP"; then
8153 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8154 $as_echo_n "(cached) " >&6
8155 else
8156 # Double quotes because CXXCPP needs to be expanded
8157 for CXXCPP in "$CXX -E" "/lib/cpp"
8158 do
8159 ac_preproc_ok=false
8160 for ac_cxx_preproc_warn_flag in '' yes
8161 do
8162 # Use a header file that comes with gcc, so configuring glibc
8163 # with a fresh cross-compiler works.
8164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8165 # <limits.h> exists even on freestanding compilers.
8166 # On the NeXT, cc -E runs the code through the compiler's parser,
8167 # not just through cpp. "Syntax error" is here to catch this case.
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 #ifdef __STDC__
8175 # include <limits.h>
8176 #else
8177 # include <assert.h>
8178 #endif
8179 Syntax error
8180 _ACEOF
8181 if { (ac_try="$ac_cpp conftest.$ac_ext"
8182 case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8185 esac
8186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8187 $as_echo "$ac_try_echo") >&5
8188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } >/dev/null && {
8195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8196 test ! -s conftest.err
8197 }; then
8198 :
8199 else
8200 $as_echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 # Broken: fails on valid input.
8204 continue
8205 fi
8206
8207 rm -f conftest.err conftest.$ac_ext
8208
8209 # OK, works on sane cases. Now check whether nonexistent headers
8210 # can be detected and how.
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 #include <ac_nonexistent.h>
8218 _ACEOF
8219 if { (ac_try="$ac_cpp conftest.$ac_ext"
8220 case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223 esac
8224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8225 $as_echo "$ac_try_echo") >&5
8226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8227 ac_status=$?
8228 grep -v '^ *+' conftest.er1 >conftest.err
8229 rm -f conftest.er1
8230 cat conftest.err >&5
8231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } >/dev/null && {
8233 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8234 test ! -s conftest.err
8235 }; then
8236 # Broken: success on invalid input.
8237 continue
8238 else
8239 $as_echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 # Passes both tests.
8243 ac_preproc_ok=:
8244 break
8245 fi
8246
8247 rm -f conftest.err conftest.$ac_ext
8248
8249 done
8250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8251 rm -f conftest.err conftest.$ac_ext
8252 if $ac_preproc_ok; then
8253 break
8254 fi
8255
8256 done
8257 ac_cv_prog_CXXCPP=$CXXCPP
8258
8259 fi
8260 CXXCPP=$ac_cv_prog_CXXCPP
8261 else
8262 ac_cv_prog_CXXCPP=$CXXCPP
8263 fi
8264 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8265 $as_echo "$CXXCPP" >&6; }
8266 ac_preproc_ok=false
8267 for ac_cxx_preproc_warn_flag in '' yes
8268 do
8269 # Use a header file that comes with gcc, so configuring glibc
8270 # with a fresh cross-compiler works.
8271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8272 # <limits.h> exists even on freestanding compilers.
8273 # On the NeXT, cc -E runs the code through the compiler's parser,
8274 # not just through cpp. "Syntax error" is here to catch this case.
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 #ifdef __STDC__
8282 # include <limits.h>
8283 #else
8284 # include <assert.h>
8285 #endif
8286 Syntax error
8287 _ACEOF
8288 if { (ac_try="$ac_cpp conftest.$ac_ext"
8289 case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8294 $as_echo "$ac_try_echo") >&5
8295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } >/dev/null && {
8302 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8303 test ! -s conftest.err
8304 }; then
8305 :
8306 else
8307 $as_echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 # Broken: fails on valid input.
8311 continue
8312 fi
8313
8314 rm -f conftest.err conftest.$ac_ext
8315
8316 # OK, works on sane cases. Now check whether nonexistent headers
8317 # can be detected and how.
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 #include <ac_nonexistent.h>
8325 _ACEOF
8326 if { (ac_try="$ac_cpp conftest.$ac_ext"
8327 case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330 esac
8331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332 $as_echo "$ac_try_echo") >&5
8333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } >/dev/null && {
8340 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8341 test ! -s conftest.err
8342 }; then
8343 # Broken: success on invalid input.
8344 continue
8345 else
8346 $as_echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 # Passes both tests.
8350 ac_preproc_ok=:
8351 break
8352 fi
8353
8354 rm -f conftest.err conftest.$ac_ext
8355
8356 done
8357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8358 rm -f conftest.err conftest.$ac_ext
8359 if $ac_preproc_ok; then
8360 :
8361 else
8362 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8364 _lt_caught_CXX_error=yes; }
8365 fi
8366
8367 ac_ext=c
8368 ac_cpp='$CPP $CPPFLAGS'
8369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372
8373 else
8374 _lt_caught_CXX_error=yes
8375 fi
8376
8377
8378
8379
8380
8381 # Set options
8382
8383
8384
8385 enable_dlopen=no
8386
8387
8388 enable_win32_dll=no
8389
8390
8391 # Check whether --enable-shared was given.
8392 if test "${enable_shared+set}" = set; then
8393 enableval=$enable_shared; p=${PACKAGE-default}
8394 case $enableval in
8395 yes) enable_shared=yes ;;
8396 no) enable_shared=no ;;
8397 *)
8398 enable_shared=no
8399 # Look at the argument we got. We use all the common list separators.
8400 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8401 for pkg in $enableval; do
8402 IFS="$lt_save_ifs"
8403 if test "X$pkg" = "X$p"; then
8404 enable_shared=yes
8405 fi
8406 done
8407 IFS="$lt_save_ifs"
8408 ;;
8409 esac
8410 else
8411 enable_shared=yes
8412 fi
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422 # Check whether --enable-static was given.
8423 if test "${enable_static+set}" = set; then
8424 enableval=$enable_static; p=${PACKAGE-default}
8425 case $enableval in
8426 yes) enable_static=yes ;;
8427 no) enable_static=no ;;
8428 *)
8429 enable_static=no
8430 # Look at the argument we got. We use all the common list separators.
8431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8432 for pkg in $enableval; do
8433 IFS="$lt_save_ifs"
8434 if test "X$pkg" = "X$p"; then
8435 enable_static=yes
8436 fi
8437 done
8438 IFS="$lt_save_ifs"
8439 ;;
8440 esac
8441 else
8442 enable_static=yes
8443 fi
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454 # Check whether --with-pic was given.
8455 if test "${with_pic+set}" = set; then
8456 withval=$with_pic; pic_mode="$withval"
8457 else
8458 pic_mode=default
8459 fi
8460
8461
8462 test -z "$pic_mode" && pic_mode=default
8463
8464
8465
8466
8467
8468
8469
8470 # Check whether --enable-fast-install was given.
8471 if test "${enable_fast_install+set}" = set; then
8472 enableval=$enable_fast_install; p=${PACKAGE-default}
8473 case $enableval in
8474 yes) enable_fast_install=yes ;;
8475 no) enable_fast_install=no ;;
8476 *)
8477 enable_fast_install=no
8478 # Look at the argument we got. We use all the common list separators.
8479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480 for pkg in $enableval; do
8481 IFS="$lt_save_ifs"
8482 if test "X$pkg" = "X$p"; then
8483 enable_fast_install=yes
8484 fi
8485 done
8486 IFS="$lt_save_ifs"
8487 ;;
8488 esac
8489 else
8490 enable_fast_install=yes
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 # This can be used to rebuild libtool when needed
8504 LIBTOOL_DEPS="$ltmain"
8505
8506 # Always use our own libtool.
8507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533 test -z "$LN_S" && LN_S="ln -s"
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 if test -n "${ZSH_VERSION+set}" ; then
8549 setopt NO_GLOB_SUBST
8550 fi
8551
8552 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8553 $as_echo_n "checking for objdir... " >&6; }
8554 if test "${lt_cv_objdir+set}" = set; then
8555 $as_echo_n "(cached) " >&6
8556 else
8557 rm -f .libs 2>/dev/null
8558 mkdir .libs 2>/dev/null
8559 if test -d .libs; then
8560 lt_cv_objdir=.libs
8561 else
8562 # MS-DOS does not allow filenames that begin with a dot.
8563 lt_cv_objdir=_libs
8564 fi
8565 rmdir .libs 2>/dev/null
8566 fi
8567 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8568 $as_echo "$lt_cv_objdir" >&6; }
8569 objdir=$lt_cv_objdir
8570
8571
8572
8573
8574
8575 cat >>confdefs.h <<_ACEOF
8576 #define LT_OBJDIR "$lt_cv_objdir/"
8577 _ACEOF
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 case $host_os in
8596 aix3*)
8597 # AIX sometimes has problems with the GCC collect2 program. For some
8598 # reason, if we set the COLLECT_NAMES environment variable, the problems
8599 # vanish in a puff of smoke.
8600 if test "X${COLLECT_NAMES+set}" != Xset; then
8601 COLLECT_NAMES=
8602 export COLLECT_NAMES
8603 fi
8604 ;;
8605 esac
8606
8607 # Sed substitution that helps us do robust quoting. It backslashifies
8608 # metacharacters that are still active within double-quoted strings.
8609 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8610
8611 # Same as above, but do not quote variable references.
8612 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8613
8614 # Sed substitution to delay expansion of an escaped shell variable in a
8615 # double_quote_subst'ed string.
8616 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8617
8618 # Sed substitution to delay expansion of an escaped single quote.
8619 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8620
8621 # Sed substitution to avoid accidental globbing in evaled expressions
8622 no_glob_subst='s/\*/\\\*/g'
8623
8624 # Global variables:
8625 ofile=libtool
8626 can_build_shared=yes
8627
8628 # All known linkers require a `.a' archive for static linking (except MSVC,
8629 # which needs '.lib').
8630 libext=a
8631
8632 with_gnu_ld="$lt_cv_prog_gnu_ld"
8633
8634 old_CC="$CC"
8635 old_CFLAGS="$CFLAGS"
8636
8637 # Set sane defaults for various variables
8638 test -z "$CC" && CC=cc
8639 test -z "$LTCC" && LTCC=$CC
8640 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8641 test -z "$LD" && LD=ld
8642 test -z "$ac_objext" && ac_objext=o
8643
8644 for cc_temp in $compiler""; do
8645 case $cc_temp in
8646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8648 \-*) ;;
8649 *) break;;
8650 esac
8651 done
8652 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8653
8654
8655 # Only perform the check for file, if the check method requires it
8656 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8657 case $deplibs_check_method in
8658 file_magic*)
8659 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8660 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8661 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8662 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8663 $as_echo_n "(cached) " >&6
8664 else
8665 case $MAGIC_CMD in
8666 [\\/*] | ?:[\\/]*)
8667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8668 ;;
8669 *)
8670 lt_save_MAGIC_CMD="$MAGIC_CMD"
8671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8673 for ac_dir in $ac_dummy; do
8674 IFS="$lt_save_ifs"
8675 test -z "$ac_dir" && ac_dir=.
8676 if test -f $ac_dir/${ac_tool_prefix}file; then
8677 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8678 if test -n "$file_magic_test_file"; then
8679 case $deplibs_check_method in
8680 "file_magic "*)
8681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8684 $EGREP "$file_magic_regex" > /dev/null; then
8685 :
8686 else
8687 cat <<_LT_EOF 1>&2
8688
8689 *** Warning: the command libtool uses to detect shared libraries,
8690 *** $file_magic_cmd, produces output that libtool cannot recognize.
8691 *** The result is that libtool may fail to recognize shared libraries
8692 *** as such. This will affect the creation of libtool libraries that
8693 *** depend on shared libraries, but programs linked with such libtool
8694 *** libraries will work regardless of this problem. Nevertheless, you
8695 *** may want to report the problem to your system manager and/or to
8696 *** [email protected]
8697
8698 _LT_EOF
8699 fi ;;
8700 esac
8701 fi
8702 break
8703 fi
8704 done
8705 IFS="$lt_save_ifs"
8706 MAGIC_CMD="$lt_save_MAGIC_CMD"
8707 ;;
8708 esac
8709 fi
8710
8711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8712 if test -n "$MAGIC_CMD"; then
8713 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8714 $as_echo "$MAGIC_CMD" >&6; }
8715 else
8716 { $as_echo "$as_me:$LINENO: result: no" >&5
8717 $as_echo "no" >&6; }
8718 fi
8719
8720
8721
8722
8723
8724 if test -z "$lt_cv_path_MAGIC_CMD"; then
8725 if test -n "$ac_tool_prefix"; then
8726 { $as_echo "$as_me:$LINENO: checking for file" >&5
8727 $as_echo_n "checking for file... " >&6; }
8728 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8729 $as_echo_n "(cached) " >&6
8730 else
8731 case $MAGIC_CMD in
8732 [\\/*] | ?:[\\/]*)
8733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8734 ;;
8735 *)
8736 lt_save_MAGIC_CMD="$MAGIC_CMD"
8737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8738 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8739 for ac_dir in $ac_dummy; do
8740 IFS="$lt_save_ifs"
8741 test -z "$ac_dir" && ac_dir=.
8742 if test -f $ac_dir/file; then
8743 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8744 if test -n "$file_magic_test_file"; then
8745 case $deplibs_check_method in
8746 "file_magic "*)
8747 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8750 $EGREP "$file_magic_regex" > /dev/null; then
8751 :
8752 else
8753 cat <<_LT_EOF 1>&2
8754
8755 *** Warning: the command libtool uses to detect shared libraries,
8756 *** $file_magic_cmd, produces output that libtool cannot recognize.
8757 *** The result is that libtool may fail to recognize shared libraries
8758 *** as such. This will affect the creation of libtool libraries that
8759 *** depend on shared libraries, but programs linked with such libtool
8760 *** libraries will work regardless of this problem. Nevertheless, you
8761 *** may want to report the problem to your system manager and/or to
8762 *** [email protected]
8763
8764 _LT_EOF
8765 fi ;;
8766 esac
8767 fi
8768 break
8769 fi
8770 done
8771 IFS="$lt_save_ifs"
8772 MAGIC_CMD="$lt_save_MAGIC_CMD"
8773 ;;
8774 esac
8775 fi
8776
8777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8778 if test -n "$MAGIC_CMD"; then
8779 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8780 $as_echo "$MAGIC_CMD" >&6; }
8781 else
8782 { $as_echo "$as_me:$LINENO: result: no" >&5
8783 $as_echo "no" >&6; }
8784 fi
8785
8786
8787 else
8788 MAGIC_CMD=:
8789 fi
8790 fi
8791
8792 fi
8793 ;;
8794 esac
8795
8796 # Use C for the default configuration in the libtool script
8797
8798 lt_save_CC="$CC"
8799 ac_ext=c
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8804
8805
8806 # Source file extension for C test sources.
8807 ac_ext=c
8808
8809 # Object file extension for compiled C test sources.
8810 objext=o
8811 objext=$objext
8812
8813 # Code to be used in simple compile tests
8814 lt_simple_compile_test_code="int some_variable = 0;"
8815
8816 # Code to be used in simple link tests
8817 lt_simple_link_test_code='int main(){return(0);}'
8818
8819
8820
8821
8822
8823
8824
8825 # If no C compiler was specified, use CC.
8826 LTCC=${LTCC-"$CC"}
8827
8828 # If no C compiler flags were specified, use CFLAGS.
8829 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8830
8831 # Allow CC to be a program name with arguments.
8832 compiler=$CC
8833
8834 # Save the default compiler, since it gets overwritten when the other
8835 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8836 compiler_DEFAULT=$CC
8837
8838 # save warnings/boilerplate of simple test code
8839 ac_outfile=conftest.$ac_objext
8840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8842 _lt_compiler_boilerplate=`cat conftest.err`
8843 $RM conftest*
8844
8845 ac_outfile=conftest.$ac_objext
8846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8848 _lt_linker_boilerplate=`cat conftest.err`
8849 $RM -r conftest*
8850
8851
8852 if test -n "$compiler"; then
8853
8854 lt_prog_compiler_no_builtin_flag=
8855
8856 if test "$GCC" = yes; then
8857 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8858
8859 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8860 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8861 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8862 $as_echo_n "(cached) " >&6
8863 else
8864 lt_cv_prog_compiler_rtti_exceptions=no
8865 ac_outfile=conftest.$ac_objext
8866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867 lt_compiler_flag="-fno-rtti -fno-exceptions"
8868 # Insert the option either (1) after the last *FLAGS variable, or
8869 # (2) before a word containing "conftest.", or (3) at the end.
8870 # Note that $ac_compile itself does not contain backslashes and begins
8871 # with a dollar sign (not a hyphen), so the echo should work correctly.
8872 # The option is referenced via a variable to avoid confusing sed.
8873 lt_compile=`echo "$ac_compile" | $SED \
8874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8876 -e 's:$: $lt_compiler_flag:'`
8877 (eval echo "\"\$as_me:8877: $lt_compile\"" >&5)
8878 (eval "$lt_compile" 2>conftest.err)
8879 ac_status=$?
8880 cat conftest.err >&5
8881 echo "$as_me:8881: \$? = $ac_status" >&5
8882 if (exit $ac_status) && test -s "$ac_outfile"; then
8883 # The compiler can only warn and ignore the option if not recognized
8884 # So say no if there are warnings other than the usual output.
8885 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_rtti_exceptions=yes
8889 fi
8890 fi
8891 $RM conftest*
8892
8893 fi
8894 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8895 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8896
8897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8899 else
8900 :
8901 fi
8902
8903 fi
8904
8905
8906
8907
8908
8909
8910 lt_prog_compiler_wl=
8911 lt_prog_compiler_pic=
8912 lt_prog_compiler_static=
8913
8914 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8915 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8916
8917 if test "$GCC" = yes; then
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_static='-static'
8920
8921 case $host_os in
8922 aix*)
8923 # All AIX code is PIC.
8924 if test "$host_cpu" = ia64; then
8925 # AIX 5 now supports IA64 processor
8926 lt_prog_compiler_static='-Bstatic'
8927 fi
8928 ;;
8929
8930 amigaos*)
8931 case $host_cpu in
8932 powerpc)
8933 # see comment about AmigaOS4 .so support
8934 lt_prog_compiler_pic='-fPIC'
8935 ;;
8936 m68k)
8937 # FIXME: we need at least 68020 code to build shared libraries, but
8938 # adding the `-m68020' flag to GCC prevents building anything better,
8939 # like `-m68040'.
8940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8941 ;;
8942 esac
8943 ;;
8944
8945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8946 # PIC is the default for these OSes.
8947 ;;
8948
8949 mingw* | cygwin* | pw32* | os2* | cegcc*)
8950 # This hack is so that the source file can tell whether it is being
8951 # built for inclusion in a dll (and should export symbols for example).
8952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8953 # (--disable-auto-import) libraries
8954 lt_prog_compiler_pic='-DDLL_EXPORT'
8955 ;;
8956
8957 darwin* | rhapsody*)
8958 # PIC is the default on this platform
8959 # Common symbols not allowed in MH_DYLIB files
8960 lt_prog_compiler_pic='-fno-common'
8961 ;;
8962
8963 hpux*)
8964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8966 # sets the default TLS model and affects inlining.
8967 case $host_cpu in
8968 hppa*64*)
8969 # +Z the default
8970 ;;
8971 *)
8972 lt_prog_compiler_pic='-fPIC'
8973 ;;
8974 esac
8975 ;;
8976
8977 interix[3-9]*)
8978 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8979 # Instead, we relocate shared libraries at runtime.
8980 ;;
8981
8982 msdosdjgpp*)
8983 # Just because we use GCC doesn't mean we suddenly get shared libraries
8984 # on systems that don't support them.
8985 lt_prog_compiler_can_build_shared=no
8986 enable_shared=no
8987 ;;
8988
8989 *nto* | *qnx*)
8990 # QNX uses GNU C++, but need to define -shared option too, otherwise
8991 # it will coredump.
8992 lt_prog_compiler_pic='-fPIC -shared'
8993 ;;
8994
8995 sysv4*MP*)
8996 if test -d /usr/nec; then
8997 lt_prog_compiler_pic=-Kconform_pic
8998 fi
8999 ;;
9000
9001 *)
9002 lt_prog_compiler_pic='-fPIC'
9003 ;;
9004 esac
9005 else
9006 # PORTME Check for flag to pass linker flags through the system compiler.
9007 case $host_os in
9008 aix*)
9009 lt_prog_compiler_wl='-Wl,'
9010 if test "$host_cpu" = ia64; then
9011 # AIX 5 now supports IA64 processor
9012 lt_prog_compiler_static='-Bstatic'
9013 else
9014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9015 fi
9016 ;;
9017
9018 mingw* | cygwin* | pw32* | os2* | cegcc*)
9019 # This hack is so that the source file can tell whether it is being
9020 # built for inclusion in a dll (and should export symbols for example).
9021 lt_prog_compiler_pic='-DDLL_EXPORT'
9022 ;;
9023
9024 hpux9* | hpux10* | hpux11*)
9025 lt_prog_compiler_wl='-Wl,'
9026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9027 # not for PA HP-UX.
9028 case $host_cpu in
9029 hppa*64*|ia64*)
9030 # +Z the default
9031 ;;
9032 *)
9033 lt_prog_compiler_pic='+Z'
9034 ;;
9035 esac
9036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9037 lt_prog_compiler_static='${wl}-a ${wl}archive'
9038 ;;
9039
9040 irix5* | irix6* | nonstopux*)
9041 lt_prog_compiler_wl='-Wl,'
9042 # PIC (with -KPIC) is the default.
9043 lt_prog_compiler_static='-non_shared'
9044 ;;
9045
9046 linux* | k*bsd*-gnu)
9047 case $cc_basename in
9048 # old Intel for x86_64 which still supported -KPIC.
9049 ecc*)
9050 lt_prog_compiler_wl='-Wl,'
9051 lt_prog_compiler_pic='-KPIC'
9052 lt_prog_compiler_static='-static'
9053 ;;
9054 # icc used to be incompatible with GCC.
9055 # ICC 10 doesn't accept -KPIC any more.
9056 icc* | ifort*)
9057 lt_prog_compiler_wl='-Wl,'
9058 lt_prog_compiler_pic='-fPIC'
9059 lt_prog_compiler_static='-static'
9060 ;;
9061 # Lahey Fortran 8.1.
9062 lf95*)
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='--shared'
9065 lt_prog_compiler_static='--static'
9066 ;;
9067 pgcc* | pgf77* | pgf90* | pgf95*)
9068 # Portland Group compilers (*not* the Pentium gcc compiler,
9069 # which looks to be a dead project)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_pic='-fpic'
9072 lt_prog_compiler_static='-Bstatic'
9073 ;;
9074 ccc*)
9075 lt_prog_compiler_wl='-Wl,'
9076 # All Alpha code is PIC.
9077 lt_prog_compiler_static='-non_shared'
9078 ;;
9079 xl*)
9080 # IBM XL C 8.0/Fortran 10.1 on PPC
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_pic='-qpic'
9083 lt_prog_compiler_static='-qstaticlink'
9084 ;;
9085 *)
9086 case `$CC -V 2>&1 | sed 5q` in
9087 *Sun\ C*)
9088 # Sun C 5.9
9089 lt_prog_compiler_pic='-KPIC'
9090 lt_prog_compiler_static='-Bstatic'
9091 lt_prog_compiler_wl='-Wl,'
9092 ;;
9093 *Sun\ F*)
9094 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-Bstatic'
9097 lt_prog_compiler_wl=''
9098 ;;
9099 esac
9100 ;;
9101 esac
9102 ;;
9103
9104 newsos6)
9105 lt_prog_compiler_pic='-KPIC'
9106 lt_prog_compiler_static='-Bstatic'
9107 ;;
9108
9109 *nto* | *qnx*)
9110 # QNX uses GNU C++, but need to define -shared option too, otherwise
9111 # it will coredump.
9112 lt_prog_compiler_pic='-fPIC -shared'
9113 ;;
9114
9115 osf3* | osf4* | osf5*)
9116 lt_prog_compiler_wl='-Wl,'
9117 # All OSF/1 code is PIC.
9118 lt_prog_compiler_static='-non_shared'
9119 ;;
9120
9121 rdos*)
9122 lt_prog_compiler_static='-non_shared'
9123 ;;
9124
9125 solaris*)
9126 lt_prog_compiler_pic='-KPIC'
9127 lt_prog_compiler_static='-Bstatic'
9128 case $cc_basename in
9129 f77* | f90* | f95*)
9130 lt_prog_compiler_wl='-Qoption ld ';;
9131 *)
9132 lt_prog_compiler_wl='-Wl,';;
9133 esac
9134 ;;
9135
9136 sunos4*)
9137 lt_prog_compiler_wl='-Qoption ld '
9138 lt_prog_compiler_pic='-PIC'
9139 lt_prog_compiler_static='-Bstatic'
9140 ;;
9141
9142 sysv4 | sysv4.2uw2* | sysv4.3*)
9143 lt_prog_compiler_wl='-Wl,'
9144 lt_prog_compiler_pic='-KPIC'
9145 lt_prog_compiler_static='-Bstatic'
9146 ;;
9147
9148 sysv4*MP*)
9149 if test -d /usr/nec ;then
9150 lt_prog_compiler_pic='-Kconform_pic'
9151 lt_prog_compiler_static='-Bstatic'
9152 fi
9153 ;;
9154
9155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_pic='-KPIC'
9158 lt_prog_compiler_static='-Bstatic'
9159 ;;
9160
9161 unicos*)
9162 lt_prog_compiler_wl='-Wl,'
9163 lt_prog_compiler_can_build_shared=no
9164 ;;
9165
9166 uts4*)
9167 lt_prog_compiler_pic='-pic'
9168 lt_prog_compiler_static='-Bstatic'
9169 ;;
9170
9171 *)
9172 lt_prog_compiler_can_build_shared=no
9173 ;;
9174 esac
9175 fi
9176
9177 case $host_os in
9178 # For platforms which do not support PIC, -DPIC is meaningless:
9179 *djgpp*)
9180 lt_prog_compiler_pic=
9181 ;;
9182 *)
9183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9184 ;;
9185 esac
9186 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9187 $as_echo "$lt_prog_compiler_pic" >&6; }
9188
9189
9190
9191
9192
9193
9194 #
9195 # Check to make sure the PIC flag actually works.
9196 #
9197 if test -n "$lt_prog_compiler_pic"; then
9198 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9199 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9200 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9201 $as_echo_n "(cached) " >&6
9202 else
9203 lt_cv_prog_compiler_pic_works=no
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9207 # Insert the option either (1) after the last *FLAGS variable, or
9208 # (2) before a word containing "conftest.", or (3) at the end.
9209 # Note that $ac_compile itself does not contain backslashes and begins
9210 # with a dollar sign (not a hyphen), so the echo should work correctly.
9211 # The option is referenced via a variable to avoid confusing sed.
9212 lt_compile=`echo "$ac_compile" | $SED \
9213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9215 -e 's:$: $lt_compiler_flag:'`
9216 (eval echo "\"\$as_me:9216: $lt_compile\"" >&5)
9217 (eval "$lt_compile" 2>conftest.err)
9218 ac_status=$?
9219 cat conftest.err >&5
9220 echo "$as_me:9220: \$? = $ac_status" >&5
9221 if (exit $ac_status) && test -s "$ac_outfile"; then
9222 # The compiler can only warn and ignore the option if not recognized
9223 # So say no if there are warnings other than the usual output.
9224 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9227 lt_cv_prog_compiler_pic_works=yes
9228 fi
9229 fi
9230 $RM conftest*
9231
9232 fi
9233 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9234 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9235
9236 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9237 case $lt_prog_compiler_pic in
9238 "" | " "*) ;;
9239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9240 esac
9241 else
9242 lt_prog_compiler_pic=
9243 lt_prog_compiler_can_build_shared=no
9244 fi
9245
9246 fi
9247
9248
9249
9250
9251
9252
9253 #
9254 # Check to make sure the static flag actually works.
9255 #
9256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9257 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9258 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9259 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9260 $as_echo_n "(cached) " >&6
9261 else
9262 lt_cv_prog_compiler_static_works=no
9263 save_LDFLAGS="$LDFLAGS"
9264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9265 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9267 # The linker can only warn and ignore the option if not recognized
9268 # So say no if there are warnings
9269 if test -s conftest.err; then
9270 # Append any errors to the config.log.
9271 cat conftest.err 1>&5
9272 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9274 if diff conftest.exp conftest.er2 >/dev/null; then
9275 lt_cv_prog_compiler_static_works=yes
9276 fi
9277 else
9278 lt_cv_prog_compiler_static_works=yes
9279 fi
9280 fi
9281 $RM -r conftest*
9282 LDFLAGS="$save_LDFLAGS"
9283
9284 fi
9285 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9286 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9287
9288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9289 :
9290 else
9291 lt_prog_compiler_static=
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9302 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9303 $as_echo_n "(cached) " >&6
9304 else
9305 lt_cv_prog_compiler_c_o=no
9306 $RM -r conftest 2>/dev/null
9307 mkdir conftest
9308 cd conftest
9309 mkdir out
9310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9311
9312 lt_compiler_flag="-o out/conftest2.$ac_objext"
9313 # Insert the option either (1) after the last *FLAGS variable, or
9314 # (2) before a word containing "conftest.", or (3) at the end.
9315 # Note that $ac_compile itself does not contain backslashes and begins
9316 # with a dollar sign (not a hyphen), so the echo should work correctly.
9317 lt_compile=`echo "$ac_compile" | $SED \
9318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9320 -e 's:$: $lt_compiler_flag:'`
9321 (eval echo "\"\$as_me:9321: $lt_compile\"" >&5)
9322 (eval "$lt_compile" 2>out/conftest.err)
9323 ac_status=$?
9324 cat out/conftest.err >&5
9325 echo "$as_me:9325: \$? = $ac_status" >&5
9326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9327 then
9328 # The compiler can only warn and ignore the option if not recognized
9329 # So say no if there are warnings
9330 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9333 lt_cv_prog_compiler_c_o=yes
9334 fi
9335 fi
9336 chmod u+w . 2>&5
9337 $RM conftest*
9338 # SGI C++ compiler will create directory out/ii_files/ for
9339 # template instantiation
9340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9341 $RM out/* && rmdir out
9342 cd ..
9343 $RM -r conftest
9344 $RM conftest*
9345
9346 fi
9347 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9349
9350
9351
9352
9353
9354
9355 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9358 $as_echo_n "(cached) " >&6
9359 else
9360 lt_cv_prog_compiler_c_o=no
9361 $RM -r conftest 2>/dev/null
9362 mkdir conftest
9363 cd conftest
9364 mkdir out
9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366
9367 lt_compiler_flag="-o out/conftest2.$ac_objext"
9368 # Insert the option either (1) after the last *FLAGS variable, or
9369 # (2) before a word containing "conftest.", or (3) at the end.
9370 # Note that $ac_compile itself does not contain backslashes and begins
9371 # with a dollar sign (not a hyphen), so the echo should work correctly.
9372 lt_compile=`echo "$ac_compile" | $SED \
9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375 -e 's:$: $lt_compiler_flag:'`
9376 (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377 (eval "$lt_compile" 2>out/conftest.err)
9378 ac_status=$?
9379 cat out/conftest.err >&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9382 then
9383 # The compiler can only warn and ignore the option if not recognized
9384 # So say no if there are warnings
9385 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9388 lt_cv_prog_compiler_c_o=yes
9389 fi
9390 fi
9391 chmod u+w . 2>&5
9392 $RM conftest*
9393 # SGI C++ compiler will create directory out/ii_files/ for
9394 # template instantiation
9395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9396 $RM out/* && rmdir out
9397 cd ..
9398 $RM -r conftest
9399 $RM conftest*
9400
9401 fi
9402 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9404
9405
9406
9407
9408 hard_links="nottested"
9409 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9410 # do not overwrite the value of need_locks provided by the user
9411 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9412 $as_echo_n "checking if we can lock with hard links... " >&6; }
9413 hard_links=yes
9414 $RM conftest*
9415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9416 touch conftest.a
9417 ln conftest.a conftest.b 2>&5 || hard_links=no
9418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9419 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9420 $as_echo "$hard_links" >&6; }
9421 if test "$hard_links" = no; then
9422 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9423 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9424 need_locks=warn
9425 fi
9426 else
9427 need_locks=no
9428 fi
9429
9430
9431
9432
9433
9434
9435 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9437
9438 runpath_var=
9439 allow_undefined_flag=
9440 always_export_symbols=no
9441 archive_cmds=
9442 archive_expsym_cmds=
9443 compiler_needs_object=no
9444 enable_shared_with_static_runtimes=no
9445 export_dynamic_flag_spec=
9446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9447 hardcode_automatic=no
9448 hardcode_direct=no
9449 hardcode_direct_absolute=no
9450 hardcode_libdir_flag_spec=
9451 hardcode_libdir_flag_spec_ld=
9452 hardcode_libdir_separator=
9453 hardcode_minus_L=no
9454 hardcode_shlibpath_var=unsupported
9455 inherit_rpath=no
9456 link_all_deplibs=unknown
9457 module_cmds=
9458 module_expsym_cmds=
9459 old_archive_from_new_cmds=
9460 old_archive_from_expsyms_cmds=
9461 thread_safe_flag_spec=
9462 whole_archive_flag_spec=
9463 # include_expsyms should be a list of space-separated symbols to be *always*
9464 # included in the symbol list
9465 include_expsyms=
9466 # exclude_expsyms can be an extended regexp of symbols to exclude
9467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9469 # as well as any symbol that contains `d'.
9470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9472 # platforms (ab)use it in PIC code, but their linkers get confused if
9473 # the symbol is explicitly referenced. Since portable code cannot
9474 # rely on this symbol name, it's probably fine to never include it in
9475 # preloaded symbol tables.
9476 # Exclude shared library initialization/finalization symbols.
9477 extract_expsyms_cmds=
9478
9479 case $host_os in
9480 cygwin* | mingw* | pw32* | cegcc*)
9481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9482 # When not using gcc, we currently assume that we are using
9483 # Microsoft Visual C++.
9484 if test "$GCC" != yes; then
9485 with_gnu_ld=no
9486 fi
9487 ;;
9488 interix*)
9489 # we just hope/assume this is gcc and not c89 (= MSVC++)
9490 with_gnu_ld=yes
9491 ;;
9492 openbsd*)
9493 with_gnu_ld=no
9494 ;;
9495 esac
9496
9497 ld_shlibs=yes
9498 if test "$with_gnu_ld" = yes; then
9499 # If archive_cmds runs LD, not CC, wlarc should be empty
9500 wlarc='${wl}'
9501
9502 # Set some defaults for GNU ld with shared library support. These
9503 # are reset later if shared libraries are not supported. Putting them
9504 # here allows them to be overridden if necessary.
9505 runpath_var=LD_RUN_PATH
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507 export_dynamic_flag_spec='${wl}--export-dynamic'
9508 # ancient GNU ld didn't support --whole-archive et. al.
9509 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9510 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9511 else
9512 whole_archive_flag_spec=
9513 fi
9514 supports_anon_versioning=no
9515 case `$LD -v 2>&1` in
9516 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9517 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9518 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9519 *\ 2.11.*) ;; # other 2.11 versions
9520 *) supports_anon_versioning=yes ;;
9521 esac
9522
9523 # See if GNU ld supports shared libraries.
9524 case $host_os in
9525 aix[3-9]*)
9526 # On AIX/PPC, the GNU linker is very broken
9527 if test "$host_cpu" != ia64; then
9528 ld_shlibs=no
9529 cat <<_LT_EOF 1>&2
9530
9531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9532 *** to be unable to reliably create shared libraries on AIX.
9533 *** Therefore, libtool is disabling shared libraries support. If you
9534 *** really care for shared libraries, you may want to modify your PATH
9535 *** so that a non-GNU linker is found, and then restart.
9536
9537 _LT_EOF
9538 fi
9539 ;;
9540
9541 amigaos*)
9542 case $host_cpu in
9543 powerpc)
9544 # see comment about AmigaOS4 .so support
9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 archive_expsym_cmds=''
9547 ;;
9548 m68k)
9549 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)'
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 hardcode_minus_L=yes
9552 ;;
9553 esac
9554 ;;
9555
9556 beos*)
9557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558 allow_undefined_flag=unsupported
9559 # Joseph Beckenbach <[email protected]> says some releases of gcc
9560 # support --undefined. This deserves some investigation. FIXME
9561 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562 else
9563 ld_shlibs=no
9564 fi
9565 ;;
9566
9567 cygwin* | mingw* | pw32* | cegcc*)
9568 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9569 # as there is no search path for DLLs.
9570 hardcode_libdir_flag_spec='-L$libdir'
9571 allow_undefined_flag=unsupported
9572 always_export_symbols=no
9573 enable_shared_with_static_runtimes=yes
9574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9575
9576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9578 # If the export-symbols file already is a .def file (1st line
9579 # is EXPORTS), use it as is; otherwise, prepend...
9580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9581 cp $export_symbols $output_objdir/$soname.def;
9582 else
9583 echo EXPORTS > $output_objdir/$soname.def;
9584 cat $export_symbols >> $output_objdir/$soname.def;
9585 fi~
9586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587 else
9588 ld_shlibs=no
9589 fi
9590 ;;
9591
9592 interix[3-9]*)
9593 hardcode_direct=no
9594 hardcode_shlibpath_var=no
9595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596 export_dynamic_flag_spec='${wl}-E'
9597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9598 # Instead, shared libraries are loaded at an image base (0x10000000 by
9599 # default) and relocated if they conflict, which is a slow very memory
9600 # consuming and fragmenting process. To avoid this, we pick a random,
9601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9604 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'
9605 ;;
9606
9607 gnu* | linux* | tpf* | k*bsd*-gnu)
9608 tmp_diet=no
9609 if test "$host_os" = linux-dietlibc; then
9610 case $cc_basename in
9611 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9612 esac
9613 fi
9614 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9615 && test "$tmp_diet" = no
9616 then
9617 tmp_addflag=
9618 tmp_sharedflag='-shared'
9619 case $cc_basename,$host_cpu in
9620 pgcc*) # Portland Group C compiler
9621 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'
9622 tmp_addflag=' $pic_flag'
9623 ;;
9624 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9625 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'
9626 tmp_addflag=' $pic_flag -Mnomain' ;;
9627 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9628 tmp_addflag=' -i_dynamic' ;;
9629 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9630 tmp_addflag=' -i_dynamic -nofor_main' ;;
9631 ifc* | ifort*) # Intel Fortran compiler
9632 tmp_addflag=' -nofor_main' ;;
9633 lf95*) # Lahey Fortran 8.1
9634 whole_archive_flag_spec=
9635 tmp_sharedflag='--shared' ;;
9636 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9637 tmp_sharedflag='-qmkshrobj'
9638 tmp_addflag= ;;
9639 esac
9640 case `$CC -V 2>&1 | sed 5q` in
9641 *Sun\ C*) # Sun C 5.9
9642 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'
9643 compiler_needs_object=yes
9644 tmp_sharedflag='-G' ;;
9645 *Sun\ F*) # Sun Fortran 8.3
9646 tmp_sharedflag='-G' ;;
9647 esac
9648 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649
9650 if test "x$supports_anon_versioning" = xyes; then
9651 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9653 echo "local: *; };" >> $output_objdir/$libname.ver~
9654 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9655 fi
9656
9657 case $cc_basename in
9658 xlf*)
9659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9660 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9661 hardcode_libdir_flag_spec=
9662 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9663 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9664 if test "x$supports_anon_versioning" = xyes; then
9665 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9667 echo "local: *; };" >> $output_objdir/$libname.ver~
9668 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9669 fi
9670 ;;
9671 esac
9672 else
9673 ld_shlibs=no
9674 fi
9675 ;;
9676
9677 netbsd*)
9678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9679 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9680 wlarc=
9681 else
9682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684 fi
9685 ;;
9686
9687 solaris*)
9688 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9689 ld_shlibs=no
9690 cat <<_LT_EOF 1>&2
9691
9692 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9693 *** create shared libraries on Solaris systems. Therefore, libtool
9694 *** is disabling shared libraries support. We urge you to upgrade GNU
9695 *** binutils to release 2.9.1 or newer. Another option is to modify
9696 *** your PATH or compiler configuration so that the native linker is
9697 *** used, and then restart.
9698
9699 _LT_EOF
9700 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9703 else
9704 ld_shlibs=no
9705 fi
9706 ;;
9707
9708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9709 case `$LD -v 2>&1` in
9710 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9711 ld_shlibs=no
9712 cat <<_LT_EOF 1>&2
9713
9714 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9715 *** reliably create shared libraries on SCO systems. Therefore, libtool
9716 *** is disabling shared libraries support. We urge you to upgrade GNU
9717 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9718 *** your PATH or compiler configuration so that the native linker is
9719 *** used, and then restart.
9720
9721 _LT_EOF
9722 ;;
9723 *)
9724 # For security reasons, it is highly recommended that you always
9725 # use absolute paths for naming shared libraries, and exclude the
9726 # DT_RUNPATH tag from executables and libraries. But doing so
9727 # requires that you compile everything twice, which is a pain.
9728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9732 else
9733 ld_shlibs=no
9734 fi
9735 ;;
9736 esac
9737 ;;
9738
9739 sunos4*)
9740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9741 wlarc=
9742 hardcode_direct=yes
9743 hardcode_shlibpath_var=no
9744 ;;
9745
9746 *)
9747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9750 else
9751 ld_shlibs=no
9752 fi
9753 ;;
9754 esac
9755
9756 if test "$ld_shlibs" = no; then
9757 runpath_var=
9758 hardcode_libdir_flag_spec=
9759 export_dynamic_flag_spec=
9760 whole_archive_flag_spec=
9761 fi
9762 else
9763 # PORTME fill in a description of your system's linker (not GNU ld)
9764 case $host_os in
9765 aix3*)
9766 allow_undefined_flag=unsupported
9767 always_export_symbols=yes
9768 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'
9769 # Note: this linker hardcodes the directories in LIBPATH if there
9770 # are no directories specified by -L.
9771 hardcode_minus_L=yes
9772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9773 # Neither direct hardcoding nor static linking is supported with a
9774 # broken collect2.
9775 hardcode_direct=unsupported
9776 fi
9777 ;;
9778
9779 aix[4-9]*)
9780 if test "$host_cpu" = ia64; then
9781 # On IA64, the linker does run time linking by default, so we don't
9782 # have to do anything special.
9783 aix_use_runtimelinking=no
9784 exp_sym_flag='-Bexport'
9785 no_entry_flag=""
9786 else
9787 # If we're using GNU nm, then we don't want the "-C" option.
9788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9789 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9790 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'
9791 else
9792 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'
9793 fi
9794 aix_use_runtimelinking=no
9795
9796 # Test if we are trying to use run time linking or normal
9797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9798 # need to do runtime linking.
9799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9800 for ld_flag in $LDFLAGS; do
9801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9802 aix_use_runtimelinking=yes
9803 break
9804 fi
9805 done
9806 ;;
9807 esac
9808
9809 exp_sym_flag='-bexport'
9810 no_entry_flag='-bnoentry'
9811 fi
9812
9813 # When large executables or shared objects are built, AIX ld can
9814 # have problems creating the table of contents. If linking a library
9815 # or program results in "error TOC overflow" add -mminimal-toc to
9816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9818
9819 archive_cmds=''
9820 hardcode_direct=yes
9821 hardcode_direct_absolute=yes
9822 hardcode_libdir_separator=':'
9823 link_all_deplibs=yes
9824 file_list_spec='${wl}-f,'
9825
9826 if test "$GCC" = yes; then
9827 case $host_os in aix4.[012]|aix4.[012].*)
9828 # We only want to do this on AIX 4.2 and lower, the check
9829 # below for broken collect2 doesn't work under 4.3+
9830 collect2name=`${CC} -print-prog-name=collect2`
9831 if test -f "$collect2name" &&
9832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9833 then
9834 # We have reworked collect2
9835 :
9836 else
9837 # We have old collect2
9838 hardcode_direct=unsupported
9839 # It fails to find uninstalled libraries when the uninstalled
9840 # path is not listed in the libpath. Setting hardcode_minus_L
9841 # to unsupported forces relinking
9842 hardcode_minus_L=yes
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_libdir_separator=
9845 fi
9846 ;;
9847 esac
9848 shared_flag='-shared'
9849 if test "$aix_use_runtimelinking" = yes; then
9850 shared_flag="$shared_flag "'${wl}-G'
9851 fi
9852 else
9853 # not using gcc
9854 if test "$host_cpu" = ia64; then
9855 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9856 # chokes on -Wl,-G. The following line is correct:
9857 shared_flag='-G'
9858 else
9859 if test "$aix_use_runtimelinking" = yes; then
9860 shared_flag='${wl}-G'
9861 else
9862 shared_flag='${wl}-bM:SRE'
9863 fi
9864 fi
9865 fi
9866
9867 export_dynamic_flag_spec='${wl}-bexpall'
9868 # It seems that -bexpall does not export symbols beginning with
9869 # underscore (_), so it is better to generate a list of symbols to export.
9870 always_export_symbols=yes
9871 if test "$aix_use_runtimelinking" = yes; then
9872 # Warning - without using the other runtime loading flags (-brtl),
9873 # -berok will link without error, but may produce a broken library.
9874 allow_undefined_flag='-berok'
9875 # Determine the default libpath from the value encoded in an
9876 # empty executable.
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883
9884 int
9885 main ()
9886 {
9887
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899 $as_echo "$ac_try_echo") >&5
9900 (eval "$ac_link") 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest$ac_exeext && {
9910 test "$cross_compiling" = yes ||
9911 $as_test_x conftest$ac_exeext
9912 }; then
9913
9914 lt_aix_libpath_sed='
9915 /Import File Strings/,/^$/ {
9916 /^0/ {
9917 s/^0 *\(.*\)$/\1/
9918 p
9919 }
9920 }'
9921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9922 # Check for a 64-bit object if we didn't find anything.
9923 if test -z "$aix_libpath"; then
9924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925 fi
9926 else
9927 $as_echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930
9931 fi
9932
9933 rm -rf conftest.dSYM
9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9935 conftest$ac_exeext conftest.$ac_ext
9936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9937
9938 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9939 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"
9940 else
9941 if test "$host_cpu" = ia64; then
9942 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9943 allow_undefined_flag="-z nodefs"
9944 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"
9945 else
9946 # Determine the default libpath from the value encoded in an
9947 # empty executable.
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954
9955 int
9956 main ()
9957 {
9958
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968 esac
9969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970 $as_echo "$ac_try_echo") >&5
9971 (eval "$ac_link") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest$ac_exeext && {
9981 test "$cross_compiling" = yes ||
9982 $as_test_x conftest$ac_exeext
9983 }; then
9984
9985 lt_aix_libpath_sed='
9986 /Import File Strings/,/^$/ {
9987 /^0/ {
9988 s/^0 *\(.*\)$/\1/
9989 p
9990 }
9991 }'
9992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9993 # Check for a 64-bit object if we didn't find anything.
9994 if test -z "$aix_libpath"; then
9995 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9996 fi
9997 else
9998 $as_echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001
10002 fi
10003
10004 rm -rf conftest.dSYM
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006 conftest$ac_exeext conftest.$ac_ext
10007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10008
10009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10010 # Warning - without using the other run time loading flags,
10011 # -berok will link without error, but may produce a broken library.
10012 no_undefined_flag=' ${wl}-bernotok'
10013 allow_undefined_flag=' ${wl}-berok'
10014 # Exported symbols can be pulled into shared objects from archives
10015 whole_archive_flag_spec='$convenience'
10016 archive_cmds_need_lc=yes
10017 # This is similar to how AIX traditionally builds its shared libraries.
10018 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'
10019 fi
10020 fi
10021 ;;
10022
10023 amigaos*)
10024 case $host_cpu in
10025 powerpc)
10026 # see comment about AmigaOS4 .so support
10027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028 archive_expsym_cmds=''
10029 ;;
10030 m68k)
10031 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)'
10032 hardcode_libdir_flag_spec='-L$libdir'
10033 hardcode_minus_L=yes
10034 ;;
10035 esac
10036 ;;
10037
10038 bsdi[45]*)
10039 export_dynamic_flag_spec=-rdynamic
10040 ;;
10041
10042 cygwin* | mingw* | pw32* | cegcc*)
10043 # When not using gcc, we currently assume that we are using
10044 # Microsoft Visual C++.
10045 # hardcode_libdir_flag_spec is actually meaningless, as there is
10046 # no search path for DLLs.
10047 hardcode_libdir_flag_spec=' '
10048 allow_undefined_flag=unsupported
10049 # Tell ltmain to make .lib files, not .a files.
10050 libext=lib
10051 # Tell ltmain to make .dll files, not .so files.
10052 shrext_cmds=".dll"
10053 # FIXME: Setting linknames here is a bad hack.
10054 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10055 # The linker will automatically build a .lib file if we build a DLL.
10056 old_archive_from_new_cmds='true'
10057 # FIXME: Should let the user specify the lib program.
10058 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10059 fix_srcfile_path='`cygpath -w "$srcfile"`'
10060 enable_shared_with_static_runtimes=yes
10061 ;;
10062
10063 darwin* | rhapsody*)
10064
10065
10066 archive_cmds_need_lc=no
10067 hardcode_direct=no
10068 hardcode_automatic=yes
10069 hardcode_shlibpath_var=unsupported
10070 whole_archive_flag_spec=''
10071 link_all_deplibs=yes
10072 allow_undefined_flag="$_lt_dar_allow_undefined"
10073 case $cc_basename in
10074 ifort*) _lt_dar_can_shared=yes ;;
10075 *) _lt_dar_can_shared=$GCC ;;
10076 esac
10077 if test "$_lt_dar_can_shared" = "yes"; then
10078 output_verbose_link_cmd=echo
10079 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10080 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10081 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}"
10082 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}"
10083
10084 else
10085 ld_shlibs=no
10086 fi
10087
10088 ;;
10089
10090 dgux*)
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 hardcode_shlibpath_var=no
10094 ;;
10095
10096 freebsd1*)
10097 ld_shlibs=no
10098 ;;
10099
10100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10101 # support. Future versions do this automatically, but an explicit c++rt0.o
10102 # does not break anything, and helps significantly (at the cost of a little
10103 # extra space).
10104 freebsd2.2*)
10105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10106 hardcode_libdir_flag_spec='-R$libdir'
10107 hardcode_direct=yes
10108 hardcode_shlibpath_var=no
10109 ;;
10110
10111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10112 freebsd2*)
10113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_direct=yes
10115 hardcode_minus_L=yes
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10120 freebsd* | dragonfly*)
10121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10122 hardcode_libdir_flag_spec='-R$libdir'
10123 hardcode_direct=yes
10124 hardcode_shlibpath_var=no
10125 ;;
10126
10127 hpux9*)
10128 if test "$GCC" = yes; then
10129 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'
10130 else
10131 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'
10132 fi
10133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10134 hardcode_libdir_separator=:
10135 hardcode_direct=yes
10136
10137 # hardcode_minus_L: Not really in the search PATH,
10138 # but as the default location of the library.
10139 hardcode_minus_L=yes
10140 export_dynamic_flag_spec='${wl}-E'
10141 ;;
10142
10143 hpux10*)
10144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10146 else
10147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10148 fi
10149 if test "$with_gnu_ld" = no; then
10150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10151 hardcode_libdir_flag_spec_ld='+b $libdir'
10152 hardcode_libdir_separator=:
10153 hardcode_direct=yes
10154 hardcode_direct_absolute=yes
10155 export_dynamic_flag_spec='${wl}-E'
10156 # hardcode_minus_L: Not really in the search PATH,
10157 # but as the default location of the library.
10158 hardcode_minus_L=yes
10159 fi
10160 ;;
10161
10162 hpux11*)
10163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10164 case $host_cpu in
10165 hppa*64*)
10166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 ;;
10168 ia64*)
10169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10170 ;;
10171 *)
10172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10173 ;;
10174 esac
10175 else
10176 case $host_cpu in
10177 hppa*64*)
10178 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 ;;
10180 ia64*)
10181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10182 ;;
10183 *)
10184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10185 ;;
10186 esac
10187 fi
10188 if test "$with_gnu_ld" = no; then
10189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10190 hardcode_libdir_separator=:
10191
10192 case $host_cpu in
10193 hppa*64*|ia64*)
10194 hardcode_direct=no
10195 hardcode_shlibpath_var=no
10196 ;;
10197 *)
10198 hardcode_direct=yes
10199 hardcode_direct_absolute=yes
10200 export_dynamic_flag_spec='${wl}-E'
10201
10202 # hardcode_minus_L: Not really in the search PATH,
10203 # but as the default location of the library.
10204 hardcode_minus_L=yes
10205 ;;
10206 esac
10207 fi
10208 ;;
10209
10210 irix5* | irix6* | nonstopux*)
10211 if test "$GCC" = yes; then
10212 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'
10213 # Try to use the -exported_symbol ld option, if it does not
10214 # work, assume that -exports_file does not work either and
10215 # implicitly export all symbols.
10216 save_LDFLAGS="$LDFLAGS"
10217 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 int foo(void) {}
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10228 $as_echo "$ac_try_echo") >&5
10229 (eval "$ac_link") 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest$ac_exeext && {
10239 test "$cross_compiling" = yes ||
10240 $as_test_x conftest$ac_exeext
10241 }; then
10242 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'
10243
10244 else
10245 $as_echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248
10249 fi
10250
10251 rm -rf conftest.dSYM
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LDFLAGS="$save_LDFLAGS"
10255 else
10256 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'
10257 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'
10258 fi
10259 archive_cmds_need_lc='no'
10260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261 hardcode_libdir_separator=:
10262 inherit_rpath=yes
10263 link_all_deplibs=yes
10264 ;;
10265
10266 netbsd*)
10267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10269 else
10270 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10271 fi
10272 hardcode_libdir_flag_spec='-R$libdir'
10273 hardcode_direct=yes
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 newsos6)
10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 hardcode_direct=yes
10280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281 hardcode_libdir_separator=:
10282 hardcode_shlibpath_var=no
10283 ;;
10284
10285 *nto* | *qnx*)
10286 ;;
10287
10288 openbsd*)
10289 if test -f /usr/libexec/ld.so; then
10290 hardcode_direct=yes
10291 hardcode_shlibpath_var=no
10292 hardcode_direct_absolute=yes
10293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10297 export_dynamic_flag_spec='${wl}-E'
10298 else
10299 case $host_os in
10300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_libdir_flag_spec='-R$libdir'
10303 ;;
10304 *)
10305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10307 ;;
10308 esac
10309 fi
10310 else
10311 ld_shlibs=no
10312 fi
10313 ;;
10314
10315 os2*)
10316 hardcode_libdir_flag_spec='-L$libdir'
10317 hardcode_minus_L=yes
10318 allow_undefined_flag=unsupported
10319 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'
10320 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10321 ;;
10322
10323 osf3*)
10324 if test "$GCC" = yes; then
10325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10326 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'
10327 else
10328 allow_undefined_flag=' -expect_unresolved \*'
10329 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'
10330 fi
10331 archive_cmds_need_lc='no'
10332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333 hardcode_libdir_separator=:
10334 ;;
10335
10336 osf4* | osf5*) # as osf3* with the addition of -msym flag
10337 if test "$GCC" = yes; then
10338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10339 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'
10340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341 else
10342 allow_undefined_flag=' -expect_unresolved \*'
10343 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'
10344 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~
10345 $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'
10346
10347 # Both c and cxx compiler support -rpath directly
10348 hardcode_libdir_flag_spec='-rpath $libdir'
10349 fi
10350 archive_cmds_need_lc='no'
10351 hardcode_libdir_separator=:
10352 ;;
10353
10354 solaris*)
10355 no_undefined_flag=' -z defs'
10356 if test "$GCC" = yes; then
10357 wlarc='${wl}'
10358 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10359 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10361 else
10362 case `$CC -V 2>&1` in
10363 *"Compilers 5.0"*)
10364 wlarc=''
10365 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10368 ;;
10369 *)
10370 wlarc='${wl}'
10371 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10373 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10374 ;;
10375 esac
10376 fi
10377 hardcode_libdir_flag_spec='-R$libdir'
10378 hardcode_shlibpath_var=no
10379 case $host_os in
10380 solaris2.[0-5] | solaris2.[0-5].*) ;;
10381 *)
10382 # The compiler driver will combine and reorder linker options,
10383 # but understands `-z linker_flag'. GCC discards it without `$wl',
10384 # but is careful enough not to reorder.
10385 # Supported since Solaris 2.6 (maybe 2.5.1?)
10386 if test "$GCC" = yes; then
10387 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10388 else
10389 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10390 fi
10391 ;;
10392 esac
10393 link_all_deplibs=yes
10394 ;;
10395
10396 sunos4*)
10397 if test "x$host_vendor" = xsequent; then
10398 # Use $CC to link under sequent, because it throws in some extra .o
10399 # files that make .init and .fini sections work.
10400 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10401 else
10402 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10403 fi
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_direct=yes
10406 hardcode_minus_L=yes
10407 hardcode_shlibpath_var=no
10408 ;;
10409
10410 sysv4)
10411 case $host_vendor in
10412 sni)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_direct=yes # is this really true???
10415 ;;
10416 siemens)
10417 ## LD is ld it makes a PLAMLIB
10418 ## CC just makes a GrossModule.
10419 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10420 reload_cmds='$CC -r -o $output$reload_objs'
10421 hardcode_direct=no
10422 ;;
10423 motorola)
10424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10426 ;;
10427 esac
10428 runpath_var='LD_RUN_PATH'
10429 hardcode_shlibpath_var=no
10430 ;;
10431
10432 sysv4.3*)
10433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_shlibpath_var=no
10435 export_dynamic_flag_spec='-Bexport'
10436 ;;
10437
10438 sysv4*MP*)
10439 if test -d /usr/nec; then
10440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_shlibpath_var=no
10442 runpath_var=LD_RUN_PATH
10443 hardcode_runpath_var=yes
10444 ld_shlibs=yes
10445 fi
10446 ;;
10447
10448 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10449 no_undefined_flag='${wl}-z,text'
10450 archive_cmds_need_lc=no
10451 hardcode_shlibpath_var=no
10452 runpath_var='LD_RUN_PATH'
10453
10454 if test "$GCC" = yes; then
10455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 else
10458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460 fi
10461 ;;
10462
10463 sysv5* | sco3.2v5* | sco5v6*)
10464 # Note: We can NOT use -z defs as we might desire, because we do not
10465 # link with -lc, and that would cause any symbols used from libc to
10466 # always be unresolved, which means just about no library would
10467 # ever link correctly. If we're not using GNU ld we use -z text
10468 # though, which does catch some bad symbols but isn't as heavy-handed
10469 # as -z defs.
10470 no_undefined_flag='${wl}-z,text'
10471 allow_undefined_flag='${wl}-z,nodefs'
10472 archive_cmds_need_lc=no
10473 hardcode_shlibpath_var=no
10474 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10475 hardcode_libdir_separator=':'
10476 link_all_deplibs=yes
10477 export_dynamic_flag_spec='${wl}-Bexport'
10478 runpath_var='LD_RUN_PATH'
10479
10480 if test "$GCC" = yes; then
10481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 else
10484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 fi
10487 ;;
10488
10489 uts4*)
10490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491 hardcode_libdir_flag_spec='-L$libdir'
10492 hardcode_shlibpath_var=no
10493 ;;
10494
10495 *)
10496 ld_shlibs=no
10497 ;;
10498 esac
10499
10500 if test x$host_vendor = xsni; then
10501 case $host in
10502 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10503 export_dynamic_flag_spec='${wl}-Blargedynsym'
10504 ;;
10505 esac
10506 fi
10507 fi
10508
10509 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10510 $as_echo "$ld_shlibs" >&6; }
10511 test "$ld_shlibs" = no && can_build_shared=no
10512
10513 with_gnu_ld=$with_gnu_ld
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529 #
10530 # Do we need to explicitly link libc?
10531 #
10532 case "x$archive_cmds_need_lc" in
10533 x|xyes)
10534 # Assume -lc should be added
10535 archive_cmds_need_lc=yes
10536
10537 if test "$enable_shared" = yes && test "$GCC" = yes; then
10538 case $archive_cmds in
10539 *'~'*)
10540 # FIXME: we may have to deal with multi-command sequences.
10541 ;;
10542 '$CC '*)
10543 # Test whether the compiler implicitly links with -lc since on some
10544 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10545 # to ld, don't add -lc before -lgcc.
10546 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10547 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10548 $RM conftest*
10549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10550
10551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552 (eval $ac_compile) 2>&5
10553 ac_status=$?
10554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } 2>conftest.err; then
10556 soname=conftest
10557 lib=conftest
10558 libobjs=conftest.$ac_objext
10559 deplibs=
10560 wl=$lt_prog_compiler_wl
10561 pic_flag=$lt_prog_compiler_pic
10562 compiler_flags=-v
10563 linker_flags=-v
10564 verstring=
10565 output_objdir=.
10566 libname=conftest
10567 lt_save_allow_undefined_flag=$allow_undefined_flag
10568 allow_undefined_flag=
10569 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10570 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10571 ac_status=$?
10572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }
10574 then
10575 archive_cmds_need_lc=no
10576 else
10577 archive_cmds_need_lc=yes
10578 fi
10579 allow_undefined_flag=$lt_save_allow_undefined_flag
10580 else
10581 cat conftest.err 1>&5
10582 fi
10583 $RM conftest*
10584 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10585 $as_echo "$archive_cmds_need_lc" >&6; }
10586 ;;
10587 esac
10588 fi
10589 ;;
10590 esac
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10750
10751 if test "$GCC" = yes; then
10752 case $host_os in
10753 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10754 *) lt_awk_arg="/^libraries:/" ;;
10755 esac
10756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10757 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10758 # if the path contains ";" then we assume it to be the separator
10759 # otherwise default to the standard path separator (i.e. ":") - it is
10760 # assumed that no part of a normal pathname contains ";" but that should
10761 # okay in the real world where ";" in dirpaths is itself problematic.
10762 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10763 else
10764 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10765 fi
10766 # Ok, now we have the path, separated by spaces, we can step through it
10767 # and add multilib dir if necessary.
10768 lt_tmp_lt_search_path_spec=
10769 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10770 for lt_sys_path in $lt_search_path_spec; do
10771 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10772 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10773 else
10774 test -d "$lt_sys_path" && \
10775 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10776 fi
10777 done
10778 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10779 BEGIN {RS=" "; FS="/|\n";} {
10780 lt_foo="";
10781 lt_count=0;
10782 for (lt_i = NF; lt_i > 0; lt_i--) {
10783 if ($lt_i != "" && $lt_i != ".") {
10784 if ($lt_i == "..") {
10785 lt_count++;
10786 } else {
10787 if (lt_count == 0) {
10788 lt_foo="/" $lt_i lt_foo;
10789 } else {
10790 lt_count--;
10791 }
10792 }
10793 }
10794 }
10795 if (lt_foo != "") { lt_freq[lt_foo]++; }
10796 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10797 }'`
10798 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10799 else
10800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10801 fi
10802 library_names_spec=
10803 libname_spec='lib$name'
10804 soname_spec=
10805 shrext_cmds=".so"
10806 postinstall_cmds=
10807 postuninstall_cmds=
10808 finish_cmds=
10809 finish_eval=
10810 shlibpath_var=
10811 shlibpath_overrides_runpath=unknown
10812 version_type=none
10813 dynamic_linker="$host_os ld.so"
10814 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10815 need_lib_prefix=unknown
10816 hardcode_into_libs=no
10817
10818 # when you set need_version to no, make sure it does not cause -set_version
10819 # flags to be left without arguments
10820 need_version=unknown
10821
10822 case $host_os in
10823 aix3*)
10824 version_type=linux
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10826 shlibpath_var=LIBPATH
10827
10828 # AIX 3 has no versioning support, so we append a major version to the name.
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 ;;
10831
10832 aix[4-9]*)
10833 version_type=linux
10834 need_lib_prefix=no
10835 need_version=no
10836 hardcode_into_libs=yes
10837 if test "$host_cpu" = ia64; then
10838 # AIX 5 supports IA64
10839 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 else
10842 # With GCC up to 2.95.x, collect2 would create an import file
10843 # for dependence libraries. The import file would start with
10844 # the line `#! .'. This would cause the generated library to
10845 # depend on `.', always an invalid library. This was fixed in
10846 # development snapshots of GCC prior to 3.0.
10847 case $host_os in
10848 aix4 | aix4.[01] | aix4.[01].*)
10849 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10850 echo ' yes '
10851 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10852 :
10853 else
10854 can_build_shared=no
10855 fi
10856 ;;
10857 esac
10858 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10859 # soname into executable. Probably we can add versioning support to
10860 # collect2, so additional links can be useful in future.
10861 if test "$aix_use_runtimelinking" = yes; then
10862 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10863 # instead of lib<name>.a to let people know that these are not
10864 # typical AIX shared libraries.
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 else
10867 # We preserve .a as extension for shared libraries through AIX4.2
10868 # and later when we are not doing run time linking.
10869 library_names_spec='${libname}${release}.a $libname.a'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 fi
10872 shlibpath_var=LIBPATH
10873 fi
10874 ;;
10875
10876 amigaos*)
10877 case $host_cpu in
10878 powerpc)
10879 # Since July 2007 AmigaOS4 officially supports .so libraries.
10880 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 ;;
10883 m68k)
10884 library_names_spec='$libname.ixlibrary $libname.a'
10885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10886 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'
10887 ;;
10888 esac
10889 ;;
10890
10891 beos*)
10892 library_names_spec='${libname}${shared_ext}'
10893 dynamic_linker="$host_os ld.so"
10894 shlibpath_var=LIBRARY_PATH
10895 ;;
10896
10897 bsdi[45]*)
10898 version_type=linux
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10905 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10906 # the default ld.so.conf also contains /usr/contrib/lib and
10907 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10908 # libtool to hard-code these into programs
10909 ;;
10910
10911 cygwin* | mingw* | pw32* | cegcc*)
10912 version_type=windows
10913 shrext_cmds=".dll"
10914 need_version=no
10915 need_lib_prefix=no
10916
10917 case $GCC,$host_os in
10918 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10919 library_names_spec='$libname.dll.a'
10920 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10921 postinstall_cmds='base_file=`basename \${file}`~
10922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10923 dldir=$destdir/`dirname \$dlpath`~
10924 test -d \$dldir || mkdir -p \$dldir~
10925 $install_prog $dir/$dlname \$dldir/$dlname~
10926 chmod a+x \$dldir/$dlname~
10927 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10928 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10929 fi'
10930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10931 dlpath=$dir/\$dldll~
10932 $RM \$dlpath'
10933 shlibpath_overrides_runpath=yes
10934
10935 case $host_os in
10936 cygwin*)
10937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10938 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10939 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10940 ;;
10941 mingw* | cegcc*)
10942 # MinGW DLLs use traditional 'lib' prefix
10943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10944 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10945 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10946 # It is most probably a Windows format PATH printed by
10947 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10948 # path with ; separators, and with drive letters. We can handle the
10949 # drive letters (cygwin fileutils understands them), so leave them,
10950 # especially as we might pass files found there to a mingw objdump,
10951 # which wouldn't understand a cygwinified path. Ahh.
10952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10953 else
10954 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10955 fi
10956 ;;
10957 pw32*)
10958 # pw32 DLLs use 'pw' prefix rather than 'lib'
10959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10960 ;;
10961 esac
10962 ;;
10963
10964 *)
10965 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10966 ;;
10967 esac
10968 dynamic_linker='Win32 ld.exe'
10969 # FIXME: first we should search . and the directory the executable is in
10970 shlibpath_var=PATH
10971 ;;
10972
10973 darwin* | rhapsody*)
10974 dynamic_linker="$host_os dyld"
10975 version_type=darwin
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10979 soname_spec='${libname}${release}${major}$shared_ext'
10980 shlibpath_overrides_runpath=yes
10981 shlibpath_var=DYLD_LIBRARY_PATH
10982 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10983
10984 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10986 ;;
10987
10988 dgux*)
10989 version_type=linux
10990 need_lib_prefix=no
10991 need_version=no
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 ;;
10996
10997 freebsd1*)
10998 dynamic_linker=no
10999 ;;
11000
11001 freebsd* | dragonfly*)
11002 # DragonFly does not have aout. When/if they implement a new
11003 # versioning mechanism, adjust this.
11004 if test -x /usr/bin/objformat; then
11005 objformat=`/usr/bin/objformat`
11006 else
11007 case $host_os in
11008 freebsd[123]*) objformat=aout ;;
11009 *) objformat=elf ;;
11010 esac
11011 fi
11012 version_type=freebsd-$objformat
11013 case $version_type in
11014 freebsd-elf*)
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11016 need_version=no
11017 need_lib_prefix=no
11018 ;;
11019 freebsd-*)
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11021 need_version=yes
11022 ;;
11023 esac
11024 shlibpath_var=LD_LIBRARY_PATH
11025 case $host_os in
11026 freebsd2*)
11027 shlibpath_overrides_runpath=yes
11028 ;;
11029 freebsd3.[01]* | freebsdelf3.[01]*)
11030 shlibpath_overrides_runpath=yes
11031 hardcode_into_libs=yes
11032 ;;
11033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11035 shlibpath_overrides_runpath=no
11036 hardcode_into_libs=yes
11037 ;;
11038 *) # from 4.6 on, and DragonFly
11039 shlibpath_overrides_runpath=yes
11040 hardcode_into_libs=yes
11041 ;;
11042 esac
11043 ;;
11044
11045 gnu*)
11046 version_type=linux
11047 need_lib_prefix=no
11048 need_version=no
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 hardcode_into_libs=yes
11053 ;;
11054
11055 hpux9* | hpux10* | hpux11*)
11056 # Give a soname corresponding to the major version so that dld.sl refuses to
11057 # link against other versions.
11058 version_type=sunos
11059 need_lib_prefix=no
11060 need_version=no
11061 case $host_cpu in
11062 ia64*)
11063 shrext_cmds='.so'
11064 hardcode_into_libs=yes
11065 dynamic_linker="$host_os dld.so"
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 if test "X$HPUX_IA64_MODE" = X32; then
11071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11072 else
11073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11074 fi
11075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11076 ;;
11077 hppa*64*)
11078 shrext_cmds='.sl'
11079 hardcode_into_libs=yes
11080 dynamic_linker="$host_os dld.sl"
11081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11087 ;;
11088 *)
11089 shrext_cmds='.sl'
11090 dynamic_linker="$host_os dld.sl"
11091 shlibpath_var=SHLIB_PATH
11092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 ;;
11096 esac
11097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11098 postinstall_cmds='chmod 555 $lib'
11099 ;;
11100
11101 interix[3-9]*)
11102 version_type=linux
11103 need_lib_prefix=no
11104 need_version=no
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 ;;
11112
11113 irix5* | irix6* | nonstopux*)
11114 case $host_os in
11115 nonstopux*) version_type=nonstopux ;;
11116 *)
11117 if test "$lt_cv_prog_gnu_ld" = yes; then
11118 version_type=linux
11119 else
11120 version_type=irix
11121 fi ;;
11122 esac
11123 need_lib_prefix=no
11124 need_version=no
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11127 case $host_os in
11128 irix5* | nonstopux*)
11129 libsuff= shlibsuff=
11130 ;;
11131 *)
11132 case $LD in # libtool.m4 will add one of these switches to LD
11133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11134 libsuff= shlibsuff= libmagic=32-bit;;
11135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11136 libsuff=32 shlibsuff=N32 libmagic=N32;;
11137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11139 *) libsuff= shlibsuff= libmagic=never-match;;
11140 esac
11141 ;;
11142 esac
11143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11144 shlibpath_overrides_runpath=no
11145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11147 hardcode_into_libs=yes
11148 ;;
11149
11150 # No shared lib support for Linux oldld, aout, or coff.
11151 linux*oldld* | linux*aout* | linux*coff*)
11152 dynamic_linker=no
11153 ;;
11154
11155 # This must be Linux ELF.
11156 linux* | k*bsd*-gnu)
11157 version_type=linux
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath=no
11165 # Some binutils ld are patched to set DT_RUNPATH
11166 save_LDFLAGS=$LDFLAGS
11167 save_libdir=$libdir
11168 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11169 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h. */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176
11177 int
11178 main ()
11179 {
11180
11181 ;
11182 return 0;
11183 }
11184 _ACEOF
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190 esac
11191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193 (eval "$ac_link") 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest$ac_exeext && {
11203 test "$cross_compiling" = yes ||
11204 $as_test_x conftest$ac_exeext
11205 }; then
11206 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11207 shlibpath_overrides_runpath=yes
11208 fi
11209
11210 else
11211 $as_echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214
11215 fi
11216
11217 rm -rf conftest.dSYM
11218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LDFLAGS=$save_LDFLAGS
11221 libdir=$save_libdir
11222
11223 # This implies no fast_install, which is unacceptable.
11224 # Some rework will be needed to allow for fast_install
11225 # before this can be enabled.
11226 hardcode_into_libs=yes
11227
11228 # Append ld.so.conf contents to the search path
11229 if test -f /etc/ld.so.conf; then
11230 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' ' '`
11231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11232 fi
11233
11234 # We used to test for /lib/ld.so.1 and disable shared libraries on
11235 # powerpc, because MkLinux only supported shared libraries with the
11236 # GNU dynamic linker. Since this was broken with cross compilers,
11237 # most powerpc-linux boxes support dynamic linking these days and
11238 # people can always --disable-shared, the test was removed, and we
11239 # assume the GNU/Linux dynamic linker is in use.
11240 dynamic_linker='GNU/Linux ld.so'
11241 ;;
11242
11243 netbsd*)
11244 version_type=sunos
11245 need_lib_prefix=no
11246 need_version=no
11247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11250 dynamic_linker='NetBSD (a.out) ld.so'
11251 else
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 dynamic_linker='NetBSD ld.elf_so'
11255 fi
11256 shlibpath_var=LD_LIBRARY_PATH
11257 shlibpath_overrides_runpath=yes
11258 hardcode_into_libs=yes
11259 ;;
11260
11261 newsos6)
11262 version_type=linux
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264 shlibpath_var=LD_LIBRARY_PATH
11265 shlibpath_overrides_runpath=yes
11266 ;;
11267
11268 *nto* | *qnx*)
11269 version_type=qnx
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=no
11276 hardcode_into_libs=yes
11277 dynamic_linker='ldqnx.so'
11278 ;;
11279
11280 openbsd*)
11281 version_type=sunos
11282 sys_lib_dlsearch_path_spec="/usr/lib"
11283 need_lib_prefix=no
11284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11285 case $host_os in
11286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11287 *) need_version=no ;;
11288 esac
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11293 case $host_os in
11294 openbsd2.[89] | openbsd2.[89].*)
11295 shlibpath_overrides_runpath=no
11296 ;;
11297 *)
11298 shlibpath_overrides_runpath=yes
11299 ;;
11300 esac
11301 else
11302 shlibpath_overrides_runpath=yes
11303 fi
11304 ;;
11305
11306 os2*)
11307 libname_spec='$name'
11308 shrext_cmds=".dll"
11309 need_lib_prefix=no
11310 library_names_spec='$libname${shared_ext} $libname.a'
11311 dynamic_linker='OS/2 ld.exe'
11312 shlibpath_var=LIBPATH
11313 ;;
11314
11315 osf3* | osf4* | osf5*)
11316 version_type=osf
11317 need_lib_prefix=no
11318 need_version=no
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11324 ;;
11325
11326 rdos*)
11327 dynamic_linker=no
11328 ;;
11329
11330 solaris*)
11331 version_type=linux
11332 need_lib_prefix=no
11333 need_version=no
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes
11338 hardcode_into_libs=yes
11339 # ldd complains unless libraries are executable
11340 postinstall_cmds='chmod +x $lib'
11341 ;;
11342
11343 sunos4*)
11344 version_type=sunos
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=yes
11349 if test "$with_gnu_ld" = yes; then
11350 need_lib_prefix=no
11351 fi
11352 need_version=yes
11353 ;;
11354
11355 sysv4 | sysv4.3*)
11356 version_type=linux
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 case $host_vendor in
11361 sni)
11362 shlibpath_overrides_runpath=no
11363 need_lib_prefix=no
11364 runpath_var=LD_RUN_PATH
11365 ;;
11366 siemens)
11367 need_lib_prefix=no
11368 ;;
11369 motorola)
11370 need_lib_prefix=no
11371 need_version=no
11372 shlibpath_overrides_runpath=no
11373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11374 ;;
11375 esac
11376 ;;
11377
11378 sysv4*MP*)
11379 if test -d /usr/nec ;then
11380 version_type=linux
11381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11382 soname_spec='$libname${shared_ext}.$major'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 fi
11385 ;;
11386
11387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11388 version_type=freebsd-elf
11389 need_lib_prefix=no
11390 need_version=no
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 shlibpath_overrides_runpath=yes
11395 hardcode_into_libs=yes
11396 if test "$with_gnu_ld" = yes; then
11397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11398 else
11399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11400 case $host_os in
11401 sco3.2v5*)
11402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11403 ;;
11404 esac
11405 fi
11406 sys_lib_dlsearch_path_spec='/usr/lib'
11407 ;;
11408
11409 tpf*)
11410 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11411 version_type=linux
11412 need_lib_prefix=no
11413 need_version=no
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=no
11417 hardcode_into_libs=yes
11418 ;;
11419
11420 uts4*)
11421 version_type=linux
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 ;;
11426
11427 *)
11428 dynamic_linker=no
11429 ;;
11430 esac
11431 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11432 $as_echo "$dynamic_linker" >&6; }
11433 test "$dynamic_linker" = no && can_build_shared=no
11434
11435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11436 if test "$GCC" = yes; then
11437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11438 fi
11439
11440 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11441 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11442 fi
11443 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11444 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11445 fi
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11534 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11535 hardcode_action=
11536 if test -n "$hardcode_libdir_flag_spec" ||
11537 test -n "$runpath_var" ||
11538 test "X$hardcode_automatic" = "Xyes" ; then
11539
11540 # We can hardcode non-existent directories.
11541 if test "$hardcode_direct" != no &&
11542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11543 # have to relink, otherwise we might link with an installed library
11544 # when we should be linking with a yet-to-be-installed one
11545 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11546 test "$hardcode_minus_L" != no; then
11547 # Linking always hardcodes the temporary library directory.
11548 hardcode_action=relink
11549 else
11550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11551 hardcode_action=immediate
11552 fi
11553 else
11554 # We cannot hardcode anything, or else we can only hardcode existing
11555 # directories.
11556 hardcode_action=unsupported
11557 fi
11558 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11559 $as_echo "$hardcode_action" >&6; }
11560
11561 if test "$hardcode_action" = relink ||
11562 test "$inherit_rpath" = yes; then
11563 # Fast installation is not supported
11564 enable_fast_install=no
11565 elif test "$shlibpath_overrides_runpath" = yes ||
11566 test "$enable_shared" = no; then
11567 # Fast installation is not necessary
11568 enable_fast_install=needless
11569 fi
11570
11571
11572
11573
11574
11575
11576 if test "x$enable_dlopen" != xyes; then
11577 enable_dlopen=unknown
11578 enable_dlopen_self=unknown
11579 enable_dlopen_self_static=unknown
11580 else
11581 lt_cv_dlopen=no
11582 lt_cv_dlopen_libs=
11583
11584 case $host_os in
11585 beos*)
11586 lt_cv_dlopen="load_add_on"
11587 lt_cv_dlopen_libs=
11588 lt_cv_dlopen_self=yes
11589 ;;
11590
11591 mingw* | pw32* | cegcc*)
11592 lt_cv_dlopen="LoadLibrary"
11593 lt_cv_dlopen_libs=
11594 ;;
11595
11596 cygwin*)
11597 lt_cv_dlopen="dlopen"
11598 lt_cv_dlopen_libs=
11599 ;;
11600
11601 darwin*)
11602 # if libdl is installed we need to link against it
11603 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11604 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11605 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11606 $as_echo_n "(cached) " >&6
11607 else
11608 ac_check_lib_save_LIBS=$LIBS
11609 LIBS="-ldl $LIBS"
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dlopen ();
11624 int
11625 main ()
11626 {
11627 return dlopen ();
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 rm -f conftest.$ac_objext conftest$ac_exeext
11633 if { (ac_try="$ac_link"
11634 case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11637 esac
11638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11639 $as_echo "$ac_try_echo") >&5
11640 (eval "$ac_link") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest$ac_exeext && {
11650 test "$cross_compiling" = yes ||
11651 $as_test_x conftest$ac_exeext
11652 }; then
11653 ac_cv_lib_dl_dlopen=yes
11654 else
11655 $as_echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11657
11658 ac_cv_lib_dl_dlopen=no
11659 fi
11660
11661 rm -rf conftest.dSYM
11662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11663 conftest$ac_exeext conftest.$ac_ext
11664 LIBS=$ac_check_lib_save_LIBS
11665 fi
11666 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11667 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11668 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11669 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11670 else
11671
11672 lt_cv_dlopen="dyld"
11673 lt_cv_dlopen_libs=
11674 lt_cv_dlopen_self=yes
11675
11676 fi
11677
11678 ;;
11679
11680 *)
11681 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11682 $as_echo_n "checking for shl_load... " >&6; }
11683 if test "${ac_cv_func_shl_load+set}" = set; then
11684 $as_echo_n "(cached) " >&6
11685 else
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11694 #define shl_load innocuous_shl_load
11695
11696 /* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char shl_load (); below.
11698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699 <limits.h> exists even on freestanding compilers. */
11700
11701 #ifdef __STDC__
11702 # include <limits.h>
11703 #else
11704 # include <assert.h>
11705 #endif
11706
11707 #undef shl_load
11708
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 char shl_load ();
11716 /* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719 #if defined __stub_shl_load || defined __stub___shl_load
11720 choke me
11721 #endif
11722
11723 int
11724 main ()
11725 {
11726 return shl_load ();
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (ac_try="$ac_link"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736 esac
11737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11738 $as_echo "$ac_try_echo") >&5
11739 (eval "$ac_link") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext && {
11749 test "$cross_compiling" = yes ||
11750 $as_test_x conftest$ac_exeext
11751 }; then
11752 ac_cv_func_shl_load=yes
11753 else
11754 $as_echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757 ac_cv_func_shl_load=no
11758 fi
11759
11760 rm -rf conftest.dSYM
11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762 conftest$ac_exeext conftest.$ac_ext
11763 fi
11764 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11765 $as_echo "$ac_cv_func_shl_load" >&6; }
11766 if test "x$ac_cv_func_shl_load" = x""yes; then
11767 lt_cv_dlopen="shl_load"
11768 else
11769 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11770 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11771 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11772 $as_echo_n "(cached) " >&6
11773 else
11774 ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-ldld $LIBS"
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782
11783 /* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char shl_load ();
11790 int
11791 main ()
11792 {
11793 return shl_load ();
11794 ;
11795 return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11805 $as_echo "$ac_try_echo") >&5
11806 (eval "$ac_link") 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest$ac_exeext && {
11816 test "$cross_compiling" = yes ||
11817 $as_test_x conftest$ac_exeext
11818 }; then
11819 ac_cv_lib_dld_shl_load=yes
11820 else
11821 $as_echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_cv_lib_dld_shl_load=no
11825 fi
11826
11827 rm -rf conftest.dSYM
11828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11831 fi
11832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11833 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11834 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11835 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11836 else
11837 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11838 $as_echo_n "checking for dlopen... " >&6; }
11839 if test "${ac_cv_func_dlopen+set}" = set; then
11840 $as_echo_n "(cached) " >&6
11841 else
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11850 #define dlopen innocuous_dlopen
11851
11852 /* System header to define __stub macros and hopefully few prototypes,
11853 which can conflict with char dlopen (); below.
11854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11855 <limits.h> exists even on freestanding compilers. */
11856
11857 #ifdef __STDC__
11858 # include <limits.h>
11859 #else
11860 # include <assert.h>
11861 #endif
11862
11863 #undef dlopen
11864
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11868 #ifdef __cplusplus
11869 extern "C"
11870 #endif
11871 char dlopen ();
11872 /* The GNU C library defines this for functions which it implements
11873 to always fail with ENOSYS. Some functions are actually named
11874 something starting with __ and the normal name is an alias. */
11875 #if defined __stub_dlopen || defined __stub___dlopen
11876 choke me
11877 #endif
11878
11879 int
11880 main ()
11881 {
11882 return dlopen ();
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (ac_try="$ac_link"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892 esac
11893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11894 $as_echo "$ac_try_echo") >&5
11895 (eval "$ac_link") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } && {
11902 test -z "$ac_c_werror_flag" ||
11903 test ! -s conftest.err
11904 } && test -s conftest$ac_exeext && {
11905 test "$cross_compiling" = yes ||
11906 $as_test_x conftest$ac_exeext
11907 }; then
11908 ac_cv_func_dlopen=yes
11909 else
11910 $as_echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913 ac_cv_func_dlopen=no
11914 fi
11915
11916 rm -rf conftest.dSYM
11917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11918 conftest$ac_exeext conftest.$ac_ext
11919 fi
11920 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11921 $as_echo "$ac_cv_func_dlopen" >&6; }
11922 if test "x$ac_cv_func_dlopen" = x""yes; then
11923 lt_cv_dlopen="dlopen"
11924 else
11925 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11926 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11927 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_check_lib_save_LIBS=$LIBS
11931 LIBS="-ldl $LIBS"
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char dlopen ();
11946 int
11947 main ()
11948 {
11949 return dlopen ();
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (ac_try="$ac_link"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959 esac
11960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11961 $as_echo "$ac_try_echo") >&5
11962 (eval "$ac_link") 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } && {
11969 test -z "$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11971 } && test -s conftest$ac_exeext && {
11972 test "$cross_compiling" = yes ||
11973 $as_test_x conftest$ac_exeext
11974 }; then
11975 ac_cv_lib_dl_dlopen=yes
11976 else
11977 $as_echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980 ac_cv_lib_dl_dlopen=no
11981 fi
11982
11983 rm -rf conftest.dSYM
11984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11989 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11990 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11992 else
11993 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11994 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11995 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11996 $as_echo_n "(cached) " >&6
11997 else
11998 ac_check_lib_save_LIBS=$LIBS
11999 LIBS="-lsvld $LIBS"
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006
12007 /* Override any GCC internal prototype to avoid an error.
12008 Use char because int might match the return type of a GCC
12009 builtin and then its argument prototype would still apply. */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 char dlopen ();
12014 int
12015 main ()
12016 {
12017 return dlopen ();
12018 ;
12019 return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (ac_try="$ac_link"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027 esac
12028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12029 $as_echo "$ac_try_echo") >&5
12030 (eval "$ac_link") 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } && {
12037 test -z "$ac_c_werror_flag" ||
12038 test ! -s conftest.err
12039 } && test -s conftest$ac_exeext && {
12040 test "$cross_compiling" = yes ||
12041 $as_test_x conftest$ac_exeext
12042 }; then
12043 ac_cv_lib_svld_dlopen=yes
12044 else
12045 $as_echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 ac_cv_lib_svld_dlopen=no
12049 fi
12050
12051 rm -rf conftest.dSYM
12052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053 conftest$ac_exeext conftest.$ac_ext
12054 LIBS=$ac_check_lib_save_LIBS
12055 fi
12056 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12057 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12058 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12060 else
12061 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12062 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12064 $as_echo_n "(cached) " >&6
12065 else
12066 ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-ldld $LIBS"
12068 cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h. */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char dld_link ();
12082 int
12083 main ()
12084 {
12085 return dld_link ();
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (ac_try="$ac_link"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095 esac
12096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097 $as_echo "$ac_try_echo") >&5
12098 (eval "$ac_link") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest$ac_exeext && {
12108 test "$cross_compiling" = yes ||
12109 $as_test_x conftest$ac_exeext
12110 }; then
12111 ac_cv_lib_dld_dld_link=yes
12112 else
12113 $as_echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116 ac_cv_lib_dld_dld_link=no
12117 fi
12118
12119 rm -rf conftest.dSYM
12120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12121 conftest$ac_exeext conftest.$ac_ext
12122 LIBS=$ac_check_lib_save_LIBS
12123 fi
12124 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12125 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12126 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12127 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12128 fi
12129
12130
12131 fi
12132
12133
12134 fi
12135
12136
12137 fi
12138
12139
12140 fi
12141
12142
12143 fi
12144
12145 ;;
12146 esac
12147
12148 if test "x$lt_cv_dlopen" != xno; then
12149 enable_dlopen=yes
12150 else
12151 enable_dlopen=no
12152 fi
12153
12154 case $lt_cv_dlopen in
12155 dlopen)
12156 save_CPPFLAGS="$CPPFLAGS"
12157 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12158
12159 save_LDFLAGS="$LDFLAGS"
12160 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12161
12162 save_LIBS="$LIBS"
12163 LIBS="$lt_cv_dlopen_libs $LIBS"
12164
12165 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12166 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12167 if test "${lt_cv_dlopen_self+set}" = set; then
12168 $as_echo_n "(cached) " >&6
12169 else
12170 if test "$cross_compiling" = yes; then :
12171 lt_cv_dlopen_self=cross
12172 else
12173 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12174 lt_status=$lt_dlunknown
12175 cat > conftest.$ac_ext <<_LT_EOF
12176 #line 12176 "configure"
12177 #include "confdefs.h"
12178
12179 #if HAVE_DLFCN_H
12180 #include <dlfcn.h>
12181 #endif
12182
12183 #include <stdio.h>
12184
12185 #ifdef RTLD_GLOBAL
12186 # define LT_DLGLOBAL RTLD_GLOBAL
12187 #else
12188 # ifdef DL_GLOBAL
12189 # define LT_DLGLOBAL DL_GLOBAL
12190 # else
12191 # define LT_DLGLOBAL 0
12192 # endif
12193 #endif
12194
12195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12196 find out it does not work in some platform. */
12197 #ifndef LT_DLLAZY_OR_NOW
12198 # ifdef RTLD_LAZY
12199 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12200 # else
12201 # ifdef DL_LAZY
12202 # define LT_DLLAZY_OR_NOW DL_LAZY
12203 # else
12204 # ifdef RTLD_NOW
12205 # define LT_DLLAZY_OR_NOW RTLD_NOW
12206 # else
12207 # ifdef DL_NOW
12208 # define LT_DLLAZY_OR_NOW DL_NOW
12209 # else
12210 # define LT_DLLAZY_OR_NOW 0
12211 # endif
12212 # endif
12213 # endif
12214 # endif
12215 #endif
12216
12217 void fnord() { int i=42;}
12218 int main ()
12219 {
12220 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12221 int status = $lt_dlunknown;
12222
12223 if (self)
12224 {
12225 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12226 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12227 /* dlclose (self); */
12228 }
12229 else
12230 puts (dlerror ());
12231
12232 return status;
12233 }
12234 _LT_EOF
12235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12236 (eval $ac_link) 2>&5
12237 ac_status=$?
12238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12240 (./conftest; exit; ) >&5 2>/dev/null
12241 lt_status=$?
12242 case x$lt_status in
12243 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12244 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12245 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12246 esac
12247 else :
12248 # compilation failed
12249 lt_cv_dlopen_self=no
12250 fi
12251 fi
12252 rm -fr conftest*
12253
12254
12255 fi
12256 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12257 $as_echo "$lt_cv_dlopen_self" >&6; }
12258
12259 if test "x$lt_cv_dlopen_self" = xyes; then
12260 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12261 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12262 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12263 if test "${lt_cv_dlopen_self_static+set}" = set; then
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test "$cross_compiling" = yes; then :
12267 lt_cv_dlopen_self_static=cross
12268 else
12269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12270 lt_status=$lt_dlunknown
12271 cat > conftest.$ac_ext <<_LT_EOF
12272 #line 12272 "configure"
12273 #include "confdefs.h"
12274
12275 #if HAVE_DLFCN_H
12276 #include <dlfcn.h>
12277 #endif
12278
12279 #include <stdio.h>
12280
12281 #ifdef RTLD_GLOBAL
12282 # define LT_DLGLOBAL RTLD_GLOBAL
12283 #else
12284 # ifdef DL_GLOBAL
12285 # define LT_DLGLOBAL DL_GLOBAL
12286 # else
12287 # define LT_DLGLOBAL 0
12288 # endif
12289 #endif
12290
12291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12292 find out it does not work in some platform. */
12293 #ifndef LT_DLLAZY_OR_NOW
12294 # ifdef RTLD_LAZY
12295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12296 # else
12297 # ifdef DL_LAZY
12298 # define LT_DLLAZY_OR_NOW DL_LAZY
12299 # else
12300 # ifdef RTLD_NOW
12301 # define LT_DLLAZY_OR_NOW RTLD_NOW
12302 # else
12303 # ifdef DL_NOW
12304 # define LT_DLLAZY_OR_NOW DL_NOW
12305 # else
12306 # define LT_DLLAZY_OR_NOW 0
12307 # endif
12308 # endif
12309 # endif
12310 # endif
12311 #endif
12312
12313 void fnord() { int i=42;}
12314 int main ()
12315 {
12316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12317 int status = $lt_dlunknown;
12318
12319 if (self)
12320 {
12321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12322 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12323 /* dlclose (self); */
12324 }
12325 else
12326 puts (dlerror ());
12327
12328 return status;
12329 }
12330 _LT_EOF
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>&5
12333 ac_status=$?
12334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12336 (./conftest; exit; ) >&5 2>/dev/null
12337 lt_status=$?
12338 case x$lt_status in
12339 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12340 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12341 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12342 esac
12343 else :
12344 # compilation failed
12345 lt_cv_dlopen_self_static=no
12346 fi
12347 fi
12348 rm -fr conftest*
12349
12350
12351 fi
12352 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12353 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12354 fi
12355
12356 CPPFLAGS="$save_CPPFLAGS"
12357 LDFLAGS="$save_LDFLAGS"
12358 LIBS="$save_LIBS"
12359 ;;
12360 esac
12361
12362 case $lt_cv_dlopen_self in
12363 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12364 *) enable_dlopen_self=unknown ;;
12365 esac
12366
12367 case $lt_cv_dlopen_self_static in
12368 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12369 *) enable_dlopen_self_static=unknown ;;
12370 esac
12371 fi
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389 striplib=
12390 old_striplib=
12391 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12392 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12393 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12395 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12396 { $as_echo "$as_me:$LINENO: result: yes" >&5
12397 $as_echo "yes" >&6; }
12398 else
12399 # FIXME - insert some real tests, host_os isn't really good enough
12400 case $host_os in
12401 darwin*)
12402 if test -n "$STRIP" ; then
12403 striplib="$STRIP -x"
12404 old_striplib="$STRIP -S"
12405 { $as_echo "$as_me:$LINENO: result: yes" >&5
12406 $as_echo "yes" >&6; }
12407 else
12408 { $as_echo "$as_me:$LINENO: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411 ;;
12412 *)
12413 { $as_echo "$as_me:$LINENO: result: no" >&5
12414 $as_echo "no" >&6; }
12415 ;;
12416 esac
12417 fi
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430 # Report which library types will actually be built
12431 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12432 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12433 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12434 $as_echo "$can_build_shared" >&6; }
12435
12436 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12437 $as_echo_n "checking whether to build shared libraries... " >&6; }
12438 test "$can_build_shared" = "no" && enable_shared=no
12439
12440 # On AIX, shared libraries and static libraries use the same namespace, and
12441 # are all built from PIC.
12442 case $host_os in
12443 aix3*)
12444 test "$enable_shared" = yes && enable_static=no
12445 if test -n "$RANLIB"; then
12446 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12447 postinstall_cmds='$RANLIB $lib'
12448 fi
12449 ;;
12450
12451 aix[4-9]*)
12452 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12453 test "$enable_shared" = yes && enable_static=no
12454 fi
12455 ;;
12456 esac
12457 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12458 $as_echo "$enable_shared" >&6; }
12459
12460 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12461 $as_echo_n "checking whether to build static libraries... " >&6; }
12462 # Make sure either enable_shared or enable_static is yes.
12463 test "$enable_shared" = yes || enable_static=yes
12464 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12465 $as_echo "$enable_static" >&6; }
12466
12467
12468
12469
12470 fi
12471 ac_ext=c
12472 ac_cpp='$CPP $CPPFLAGS'
12473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12476
12477 CC="$lt_save_CC"
12478
12479
12480 ac_ext=cpp
12481 ac_cpp='$CXXCPP $CPPFLAGS'
12482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12485
12486 archive_cmds_need_lc_CXX=no
12487 allow_undefined_flag_CXX=
12488 always_export_symbols_CXX=no
12489 archive_expsym_cmds_CXX=
12490 compiler_needs_object_CXX=no
12491 export_dynamic_flag_spec_CXX=
12492 hardcode_direct_CXX=no
12493 hardcode_direct_absolute_CXX=no
12494 hardcode_libdir_flag_spec_CXX=
12495 hardcode_libdir_flag_spec_ld_CXX=
12496 hardcode_libdir_separator_CXX=
12497 hardcode_minus_L_CXX=no
12498 hardcode_shlibpath_var_CXX=unsupported
12499 hardcode_automatic_CXX=no
12500 inherit_rpath_CXX=no
12501 module_cmds_CXX=
12502 module_expsym_cmds_CXX=
12503 link_all_deplibs_CXX=unknown
12504 old_archive_cmds_CXX=$old_archive_cmds
12505 no_undefined_flag_CXX=
12506 whole_archive_flag_spec_CXX=
12507 enable_shared_with_static_runtimes_CXX=no
12508
12509 # Source file extension for C++ test sources.
12510 ac_ext=cpp
12511
12512 # Object file extension for compiled C++ test sources.
12513 objext=o
12514 objext_CXX=$objext
12515
12516 # No sense in running all these tests if we already determined that
12517 # the CXX compiler isn't working. Some variables (like enable_shared)
12518 # are currently assumed to apply to all compilers on this platform,
12519 # and will be corrupted by setting them based on a non-working compiler.
12520 if test "$_lt_caught_CXX_error" != yes; then
12521 # Code to be used in simple compile tests
12522 lt_simple_compile_test_code="int some_variable = 0;"
12523
12524 # Code to be used in simple link tests
12525 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12526
12527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12528
12529
12530
12531
12532
12533
12534 # If no C compiler was specified, use CC.
12535 LTCC=${LTCC-"$CC"}
12536
12537 # If no C compiler flags were specified, use CFLAGS.
12538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12539
12540 # Allow CC to be a program name with arguments.
12541 compiler=$CC
12542
12543
12544 # save warnings/boilerplate of simple test code
12545 ac_outfile=conftest.$ac_objext
12546 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12548 _lt_compiler_boilerplate=`cat conftest.err`
12549 $RM conftest*
12550
12551 ac_outfile=conftest.$ac_objext
12552 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12554 _lt_linker_boilerplate=`cat conftest.err`
12555 $RM -r conftest*
12556
12557
12558 # Allow CC to be a program name with arguments.
12559 lt_save_CC=$CC
12560 lt_save_LD=$LD
12561 lt_save_GCC=$GCC
12562 GCC=$GXX
12563 lt_save_with_gnu_ld=$with_gnu_ld
12564 lt_save_path_LD=$lt_cv_path_LD
12565 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12566 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12567 else
12568 $as_unset lt_cv_prog_gnu_ld
12569 fi
12570 if test -n "${lt_cv_path_LDCXX+set}"; then
12571 lt_cv_path_LD=$lt_cv_path_LDCXX
12572 else
12573 $as_unset lt_cv_path_LD
12574 fi
12575 test -z "${LDCXX+set}" || LD=$LDCXX
12576 CC=${CXX-"c++"}
12577 compiler=$CC
12578 compiler_CXX=$CC
12579 for cc_temp in $compiler""; do
12580 case $cc_temp in
12581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12583 \-*) ;;
12584 *) break;;
12585 esac
12586 done
12587 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12588
12589
12590 if test -n "$compiler"; then
12591 # We don't want -fno-exception when compiling C++ code, so set the
12592 # no_builtin_flag separately
12593 if test "$GXX" = yes; then
12594 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12595 else
12596 lt_prog_compiler_no_builtin_flag_CXX=
12597 fi
12598
12599 if test "$GXX" = yes; then
12600 # Set up default GNU C++ configuration
12601
12602
12603
12604 # Check whether --with-gnu-ld was given.
12605 if test "${with_gnu_ld+set}" = set; then
12606 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12607 else
12608 with_gnu_ld=no
12609 fi
12610
12611 ac_prog=ld
12612 if test "$GCC" = yes; then
12613 # Check if gcc -print-prog-name=ld gives a path.
12614 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12615 $as_echo_n "checking for ld used by $CC... " >&6; }
12616 case $host in
12617 *-*-mingw*)
12618 # gcc leaves a trailing carriage return which upsets mingw
12619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12620 *)
12621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12622 esac
12623 case $ac_prog in
12624 # Accept absolute paths.
12625 [\\/]* | ?:[\\/]*)
12626 re_direlt='/[^/][^/]*/\.\./'
12627 # Canonicalize the pathname of ld
12628 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12629 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12630 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12631 done
12632 test -z "$LD" && LD="$ac_prog"
12633 ;;
12634 "")
12635 # If it fails, then pretend we aren't using GCC.
12636 ac_prog=ld
12637 ;;
12638 *)
12639 # If it is relative, then search for the first ld in PATH.
12640 with_gnu_ld=unknown
12641 ;;
12642 esac
12643 elif test "$with_gnu_ld" = yes; then
12644 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12645 $as_echo_n "checking for GNU ld... " >&6; }
12646 else
12647 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12648 $as_echo_n "checking for non-GNU ld... " >&6; }
12649 fi
12650 if test "${lt_cv_path_LD+set}" = set; then
12651 $as_echo_n "(cached) " >&6
12652 else
12653 if test -z "$LD"; then
12654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12655 for ac_dir in $PATH; do
12656 IFS="$lt_save_ifs"
12657 test -z "$ac_dir" && ac_dir=.
12658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12659 lt_cv_path_LD="$ac_dir/$ac_prog"
12660 # Check to see if the program is GNU ld. I'd rather use --version,
12661 # but apparently some variants of GNU ld only accept -v.
12662 # Break only if it was the GNU/non-GNU ld that we prefer.
12663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12664 *GNU* | *'with BFD'*)
12665 test "$with_gnu_ld" != no && break
12666 ;;
12667 *)
12668 test "$with_gnu_ld" != yes && break
12669 ;;
12670 esac
12671 fi
12672 done
12673 IFS="$lt_save_ifs"
12674 else
12675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12676 fi
12677 fi
12678
12679 LD="$lt_cv_path_LD"
12680 if test -n "$LD"; then
12681 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12682 $as_echo "$LD" >&6; }
12683 else
12684 { $as_echo "$as_me:$LINENO: result: no" >&5
12685 $as_echo "no" >&6; }
12686 fi
12687 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12688 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12689 { (exit 1); exit 1; }; }
12690 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12691 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12692 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12693 $as_echo_n "(cached) " >&6
12694 else
12695 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12696 case `$LD -v 2>&1 </dev/null` in
12697 *GNU* | *'with BFD'*)
12698 lt_cv_prog_gnu_ld=yes
12699 ;;
12700 *)
12701 lt_cv_prog_gnu_ld=no
12702 ;;
12703 esac
12704 fi
12705 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12706 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12707 with_gnu_ld=$lt_cv_prog_gnu_ld
12708
12709
12710
12711
12712
12713
12714
12715 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12716 # archiving commands below assume that GNU ld is being used.
12717 if test "$with_gnu_ld" = yes; then
12718 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12719 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'
12720
12721 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12723
12724 # If archive_cmds runs LD, not CC, wlarc should be empty
12725 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12726 # investigate it a little bit more. (MM)
12727 wlarc='${wl}'
12728
12729 # ancient GNU ld didn't support --whole-archive et. al.
12730 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12731 $GREP 'no-whole-archive' > /dev/null; then
12732 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12733 else
12734 whole_archive_flag_spec_CXX=
12735 fi
12736 else
12737 with_gnu_ld=no
12738 wlarc=
12739
12740 # A generic and very simple default shared library creation
12741 # command for GNU C++ for the case where it uses the native
12742 # linker, instead of GNU ld. If possible, this setting should
12743 # overridden to take advantage of the native linker features on
12744 # the platform it is being used on.
12745 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12746 fi
12747
12748 # Commands to make compiler produce verbose output that lists
12749 # what "hidden" libraries, object files and flags are used when
12750 # linking a shared library.
12751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12752
12753 else
12754 GXX=no
12755 with_gnu_ld=no
12756 wlarc=
12757 fi
12758
12759 # PORTME: fill in a description of your system's C++ link characteristics
12760 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12761 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12762 ld_shlibs_CXX=yes
12763 case $host_os in
12764 aix3*)
12765 # FIXME: insert proper C++ library support
12766 ld_shlibs_CXX=no
12767 ;;
12768 aix[4-9]*)
12769 if test "$host_cpu" = ia64; then
12770 # On IA64, the linker does run time linking by default, so we don't
12771 # have to do anything special.
12772 aix_use_runtimelinking=no
12773 exp_sym_flag='-Bexport'
12774 no_entry_flag=""
12775 else
12776 aix_use_runtimelinking=no
12777
12778 # Test if we are trying to use run time linking or normal
12779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12780 # need to do runtime linking.
12781 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12782 for ld_flag in $LDFLAGS; do
12783 case $ld_flag in
12784 *-brtl*)
12785 aix_use_runtimelinking=yes
12786 break
12787 ;;
12788 esac
12789 done
12790 ;;
12791 esac
12792
12793 exp_sym_flag='-bexport'
12794 no_entry_flag='-bnoentry'
12795 fi
12796
12797 # When large executables or shared objects are built, AIX ld can
12798 # have problems creating the table of contents. If linking a library
12799 # or program results in "error TOC overflow" add -mminimal-toc to
12800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12802
12803 archive_cmds_CXX=''
12804 hardcode_direct_CXX=yes
12805 hardcode_direct_absolute_CXX=yes
12806 hardcode_libdir_separator_CXX=':'
12807 link_all_deplibs_CXX=yes
12808 file_list_spec_CXX='${wl}-f,'
12809
12810 if test "$GXX" = yes; then
12811 case $host_os in aix4.[012]|aix4.[012].*)
12812 # We only want to do this on AIX 4.2 and lower, the check
12813 # below for broken collect2 doesn't work under 4.3+
12814 collect2name=`${CC} -print-prog-name=collect2`
12815 if test -f "$collect2name" &&
12816 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12817 then
12818 # We have reworked collect2
12819 :
12820 else
12821 # We have old collect2
12822 hardcode_direct_CXX=unsupported
12823 # It fails to find uninstalled libraries when the uninstalled
12824 # path is not listed in the libpath. Setting hardcode_minus_L
12825 # to unsupported forces relinking
12826 hardcode_minus_L_CXX=yes
12827 hardcode_libdir_flag_spec_CXX='-L$libdir'
12828 hardcode_libdir_separator_CXX=
12829 fi
12830 esac
12831 shared_flag='-shared'
12832 if test "$aix_use_runtimelinking" = yes; then
12833 shared_flag="$shared_flag "'${wl}-G'
12834 fi
12835 else
12836 # not using gcc
12837 if test "$host_cpu" = ia64; then
12838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12839 # chokes on -Wl,-G. The following line is correct:
12840 shared_flag='-G'
12841 else
12842 if test "$aix_use_runtimelinking" = yes; then
12843 shared_flag='${wl}-G'
12844 else
12845 shared_flag='${wl}-bM:SRE'
12846 fi
12847 fi
12848 fi
12849
12850 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12851 # It seems that -bexpall does not export symbols beginning with
12852 # underscore (_), so it is better to generate a list of symbols to
12853 # export.
12854 always_export_symbols_CXX=yes
12855 if test "$aix_use_runtimelinking" = yes; then
12856 # Warning - without using the other runtime loading flags (-brtl),
12857 # -berok will link without error, but may produce a broken library.
12858 allow_undefined_flag_CXX='-berok'
12859 # Determine the default libpath from the value encoded in an empty
12860 # executable.
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h. */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12867
12868 int
12869 main ()
12870 {
12871
12872 ;
12873 return 0;
12874 }
12875 _ACEOF
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (ac_try="$ac_link"
12878 case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12881 esac
12882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12883 $as_echo "$ac_try_echo") >&5
12884 (eval "$ac_link") 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } && {
12891 test -z "$ac_cxx_werror_flag" ||
12892 test ! -s conftest.err
12893 } && test -s conftest$ac_exeext && {
12894 test "$cross_compiling" = yes ||
12895 $as_test_x conftest$ac_exeext
12896 }; then
12897
12898 lt_aix_libpath_sed='
12899 /Import File Strings/,/^$/ {
12900 /^0/ {
12901 s/^0 *\(.*\)$/\1/
12902 p
12903 }
12904 }'
12905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12906 # Check for a 64-bit object if we didn't find anything.
12907 if test -z "$aix_libpath"; then
12908 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12909 fi
12910 else
12911 $as_echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914
12915 fi
12916
12917 rm -rf conftest.dSYM
12918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12919 conftest$ac_exeext conftest.$ac_ext
12920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12921
12922 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12923
12924 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"
12925 else
12926 if test "$host_cpu" = ia64; then
12927 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12928 allow_undefined_flag_CXX="-z nodefs"
12929 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"
12930 else
12931 # Determine the default libpath from the value encoded in an
12932 # empty executable.
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h. */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939
12940 int
12941 main ()
12942 {
12943
12944 ;
12945 return 0;
12946 }
12947 _ACEOF
12948 rm -f conftest.$ac_objext conftest$ac_exeext
12949 if { (ac_try="$ac_link"
12950 case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953 esac
12954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12955 $as_echo "$ac_try_echo") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_cxx_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext && {
12966 test "$cross_compiling" = yes ||
12967 $as_test_x conftest$ac_exeext
12968 }; then
12969
12970 lt_aix_libpath_sed='
12971 /Import File Strings/,/^$/ {
12972 /^0/ {
12973 s/^0 *\(.*\)$/\1/
12974 p
12975 }
12976 }'
12977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12978 # Check for a 64-bit object if we didn't find anything.
12979 if test -z "$aix_libpath"; then
12980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981 fi
12982 else
12983 $as_echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986
12987 fi
12988
12989 rm -rf conftest.dSYM
12990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12991 conftest$ac_exeext conftest.$ac_ext
12992 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12993
12994 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12995 # Warning - without using the other run time loading flags,
12996 # -berok will link without error, but may produce a broken library.
12997 no_undefined_flag_CXX=' ${wl}-bernotok'
12998 allow_undefined_flag_CXX=' ${wl}-berok'
12999 # Exported symbols can be pulled into shared objects from archives
13000 whole_archive_flag_spec_CXX='$convenience'
13001 archive_cmds_need_lc_CXX=yes
13002 # This is similar to how AIX traditionally builds its shared
13003 # libraries.
13004 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'
13005 fi
13006 fi
13007 ;;
13008
13009 beos*)
13010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13011 allow_undefined_flag_CXX=unsupported
13012 # Joseph Beckenbach <[email protected]> says some releases of gcc
13013 # support --undefined. This deserves some investigation. FIXME
13014 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 else
13016 ld_shlibs_CXX=no
13017 fi
13018 ;;
13019
13020 chorus*)
13021 case $cc_basename in
13022 *)
13023 # FIXME: insert proper C++ library support
13024 ld_shlibs_CXX=no
13025 ;;
13026 esac
13027 ;;
13028
13029 cygwin* | mingw* | pw32* | cegcc*)
13030 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13031 # as there is no search path for DLLs.
13032 hardcode_libdir_flag_spec_CXX='-L$libdir'
13033 allow_undefined_flag_CXX=unsupported
13034 always_export_symbols_CXX=no
13035 enable_shared_with_static_runtimes_CXX=yes
13036
13037 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13038 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'
13039 # If the export-symbols file already is a .def file (1st line
13040 # is EXPORTS), use it as is; otherwise, prepend...
13041 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13042 cp $export_symbols $output_objdir/$soname.def;
13043 else
13044 echo EXPORTS > $output_objdir/$soname.def;
13045 cat $export_symbols >> $output_objdir/$soname.def;
13046 fi~
13047 $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'
13048 else
13049 ld_shlibs_CXX=no
13050 fi
13051 ;;
13052 darwin* | rhapsody*)
13053
13054
13055 archive_cmds_need_lc_CXX=no
13056 hardcode_direct_CXX=no
13057 hardcode_automatic_CXX=yes
13058 hardcode_shlibpath_var_CXX=unsupported
13059 whole_archive_flag_spec_CXX=''
13060 link_all_deplibs_CXX=yes
13061 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13062 case $cc_basename in
13063 ifort*) _lt_dar_can_shared=yes ;;
13064 *) _lt_dar_can_shared=$GCC ;;
13065 esac
13066 if test "$_lt_dar_can_shared" = "yes"; then
13067 output_verbose_link_cmd=echo
13068 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}"
13069 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13070 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}"
13071 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}"
13072 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13073 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}"
13074 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}"
13075 fi
13076
13077 else
13078 ld_shlibs_CXX=no
13079 fi
13080
13081 ;;
13082
13083 dgux*)
13084 case $cc_basename in
13085 ec++*)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13088 ;;
13089 ghcx*)
13090 # Green Hills C++ Compiler
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 *)
13095 # FIXME: insert proper C++ library support
13096 ld_shlibs_CXX=no
13097 ;;
13098 esac
13099 ;;
13100
13101 freebsd[12]*)
13102 # C++ shared libraries reported to be fairly broken before
13103 # switch to ELF
13104 ld_shlibs_CXX=no
13105 ;;
13106
13107 freebsd-elf*)
13108 archive_cmds_need_lc_CXX=no
13109 ;;
13110
13111 freebsd* | dragonfly*)
13112 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13113 # conventions
13114 ld_shlibs_CXX=yes
13115 ;;
13116
13117 gnu*)
13118 ;;
13119
13120 hpux9*)
13121 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13122 hardcode_libdir_separator_CXX=:
13123 export_dynamic_flag_spec_CXX='${wl}-E'
13124 hardcode_direct_CXX=yes
13125 hardcode_minus_L_CXX=yes # Not in the search PATH,
13126 # but as the default
13127 # location of the library.
13128
13129 case $cc_basename in
13130 CC*)
13131 # FIXME: insert proper C++ library support
13132 ld_shlibs_CXX=no
13133 ;;
13134 aCC*)
13135 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'
13136 # Commands to make compiler produce verbose output that lists
13137 # what "hidden" libraries, object files and flags are used when
13138 # linking a shared library.
13139 #
13140 # There doesn't appear to be a way to prevent this compiler from
13141 # explicitly linking system object files so we need to strip them
13142 # from the output so that they don't get included in the library
13143 # dependencies.
13144 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'
13145 ;;
13146 *)
13147 if test "$GXX" = yes; then
13148 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'
13149 else
13150 # FIXME: insert proper C++ library support
13151 ld_shlibs_CXX=no
13152 fi
13153 ;;
13154 esac
13155 ;;
13156
13157 hpux10*|hpux11*)
13158 if test $with_gnu_ld = no; then
13159 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13160 hardcode_libdir_separator_CXX=:
13161
13162 case $host_cpu in
13163 hppa*64*|ia64*)
13164 ;;
13165 *)
13166 export_dynamic_flag_spec_CXX='${wl}-E'
13167 ;;
13168 esac
13169 fi
13170 case $host_cpu in
13171 hppa*64*|ia64*)
13172 hardcode_direct_CXX=no
13173 hardcode_shlibpath_var_CXX=no
13174 ;;
13175 *)
13176 hardcode_direct_CXX=yes
13177 hardcode_direct_absolute_CXX=yes
13178 hardcode_minus_L_CXX=yes # Not in the search PATH,
13179 # but as the default
13180 # location of the library.
13181 ;;
13182 esac
13183
13184 case $cc_basename in
13185 CC*)
13186 # FIXME: insert proper C++ library support
13187 ld_shlibs_CXX=no
13188 ;;
13189 aCC*)
13190 case $host_cpu in
13191 hppa*64*)
13192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13193 ;;
13194 ia64*)
13195 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13196 ;;
13197 *)
13198 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13199 ;;
13200 esac
13201 # Commands to make compiler produce verbose output that lists
13202 # what "hidden" libraries, object files and flags are used when
13203 # linking a shared library.
13204 #
13205 # There doesn't appear to be a way to prevent this compiler from
13206 # explicitly linking system object files so we need to strip them
13207 # from the output so that they don't get included in the library
13208 # dependencies.
13209 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'
13210 ;;
13211 *)
13212 if test "$GXX" = yes; then
13213 if test $with_gnu_ld = no; then
13214 case $host_cpu in
13215 hppa*64*)
13216 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13217 ;;
13218 ia64*)
13219 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13220 ;;
13221 *)
13222 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'
13223 ;;
13224 esac
13225 fi
13226 else
13227 # FIXME: insert proper C++ library support
13228 ld_shlibs_CXX=no
13229 fi
13230 ;;
13231 esac
13232 ;;
13233
13234 interix[3-9]*)
13235 hardcode_direct_CXX=no
13236 hardcode_shlibpath_var_CXX=no
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13238 export_dynamic_flag_spec_CXX='${wl}-E'
13239 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13240 # Instead, shared libraries are loaded at an image base (0x10000000 by
13241 # default) and relocated if they conflict, which is a slow very memory
13242 # consuming and fragmenting process. To avoid this, we pick a random,
13243 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13244 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13245 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'
13246 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'
13247 ;;
13248 irix5* | irix6*)
13249 case $cc_basename in
13250 CC*)
13251 # SGI C++
13252 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'
13253
13254 # Archives containing C++ object files must be created using
13255 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13256 # necessary to make sure instantiated templates are included
13257 # in the archive.
13258 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13259 ;;
13260 *)
13261 if test "$GXX" = yes; then
13262 if test "$with_gnu_ld" = no; then
13263 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'
13264 else
13265 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'
13266 fi
13267 fi
13268 link_all_deplibs_CXX=yes
13269 ;;
13270 esac
13271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13272 hardcode_libdir_separator_CXX=:
13273 inherit_rpath_CXX=yes
13274 ;;
13275
13276 linux* | k*bsd*-gnu)
13277 case $cc_basename in
13278 KCC*)
13279 # Kuck and Associates, Inc. (KAI) C++ Compiler
13280
13281 # KCC will only create a shared library if the output file
13282 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13283 # to its proper name (with version) after linking.
13284 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'
13285 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'
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 #
13290 # There doesn't appear to be a way to prevent this compiler from
13291 # explicitly linking system object files so we need to strip them
13292 # from the output so that they don't get included in the library
13293 # dependencies.
13294 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'
13295
13296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13298
13299 # Archives containing C++ object files must be created using
13300 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13301 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13302 ;;
13303 icpc* | ecpc* )
13304 # Intel C++
13305 with_gnu_ld=yes
13306 # version 8.0 and above of icpc choke on multiply defined symbols
13307 # if we add $predep_objects and $postdep_objects, however 7.1 and
13308 # earlier do not add the objects themselves.
13309 case `$CC -V 2>&1` in
13310 *"Version 7."*)
13311 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13312 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'
13313 ;;
13314 *) # Version 8.0 or newer
13315 tmp_idyn=
13316 case $host_cpu in
13317 ia64*) tmp_idyn=' -i_dynamic';;
13318 esac
13319 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320 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'
13321 ;;
13322 esac
13323 archive_cmds_need_lc_CXX=no
13324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13325 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13326 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13327 ;;
13328 pgCC* | pgcpp*)
13329 # Portland Group C++ compiler
13330 case `$CC -V` in
13331 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13332 prelink_cmds_CXX='tpldir=Template.dir~
13333 rm -rf $tpldir~
13334 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13335 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13336 old_archive_cmds_CXX='tpldir=Template.dir~
13337 rm -rf $tpldir~
13338 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13339 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13340 $RANLIB $oldlib'
13341 archive_cmds_CXX='tpldir=Template.dir~
13342 rm -rf $tpldir~
13343 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13344 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13345 archive_expsym_cmds_CXX='tpldir=Template.dir~
13346 rm -rf $tpldir~
13347 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13348 $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'
13349 ;;
13350 *) # Version 6 will use weak symbols
13351 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13352 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'
13353 ;;
13354 esac
13355
13356 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13357 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13358 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'
13359 ;;
13360 cxx*)
13361 # Compaq C++
13362 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13363 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'
13364
13365 runpath_var=LD_RUN_PATH
13366 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13367 hardcode_libdir_separator_CXX=:
13368
13369 # Commands to make compiler produce verbose output that lists
13370 # what "hidden" libraries, object files and flags are used when
13371 # linking a shared library.
13372 #
13373 # There doesn't appear to be a way to prevent this compiler from
13374 # explicitly linking system object files so we need to strip them
13375 # from the output so that they don't get included in the library
13376 # dependencies.
13377 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'
13378 ;;
13379 xl*)
13380 # IBM XL 8.0 on PPC, with GNU ld
13381 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13383 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 if test "x$supports_anon_versioning" = xyes; then
13385 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13387 echo "local: *; };" >> $output_objdir/$libname.ver~
13388 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13389 fi
13390 ;;
13391 *)
13392 case `$CC -V 2>&1 | sed 5q` in
13393 *Sun\ C*)
13394 # Sun C++ 5.9
13395 no_undefined_flag_CXX=' -zdefs'
13396 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13397 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'
13398 hardcode_libdir_flag_spec_CXX='-R$libdir'
13399 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'
13400 compiler_needs_object_CXX=yes
13401
13402 # Not sure whether something based on
13403 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13404 # would be better.
13405 output_verbose_link_cmd='echo'
13406
13407 # Archives containing C++ object files must be created using
13408 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13409 # necessary to make sure instantiated templates are included
13410 # in the archive.
13411 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13412 ;;
13413 esac
13414 ;;
13415 esac
13416 ;;
13417
13418 lynxos*)
13419 # FIXME: insert proper C++ library support
13420 ld_shlibs_CXX=no
13421 ;;
13422
13423 m88k*)
13424 # FIXME: insert proper C++ library support
13425 ld_shlibs_CXX=no
13426 ;;
13427
13428 mvs*)
13429 case $cc_basename in
13430 cxx*)
13431 # FIXME: insert proper C++ library support
13432 ld_shlibs_CXX=no
13433 ;;
13434 *)
13435 # FIXME: insert proper C++ library support
13436 ld_shlibs_CXX=no
13437 ;;
13438 esac
13439 ;;
13440
13441 netbsd*)
13442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13443 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13444 wlarc=
13445 hardcode_libdir_flag_spec_CXX='-R$libdir'
13446 hardcode_direct_CXX=yes
13447 hardcode_shlibpath_var_CXX=no
13448 fi
13449 # Workaround some broken pre-1.5 toolchains
13450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13451 ;;
13452
13453 *nto* | *qnx*)
13454 ld_shlibs_CXX=yes
13455 ;;
13456
13457 openbsd2*)
13458 # C++ shared libraries are fairly broken
13459 ld_shlibs_CXX=no
13460 ;;
13461
13462 openbsd*)
13463 if test -f /usr/libexec/ld.so; then
13464 hardcode_direct_CXX=yes
13465 hardcode_shlibpath_var_CXX=no
13466 hardcode_direct_absolute_CXX=yes
13467 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13469 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13470 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13471 export_dynamic_flag_spec_CXX='${wl}-E'
13472 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13473 fi
13474 output_verbose_link_cmd=echo
13475 else
13476 ld_shlibs_CXX=no
13477 fi
13478 ;;
13479
13480 osf3* | osf4* | osf5*)
13481 case $cc_basename in
13482 KCC*)
13483 # Kuck and Associates, Inc. (KAI) C++ Compiler
13484
13485 # KCC will only create a shared library if the output file
13486 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13487 # to its proper name (with version) after linking.
13488 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'
13489
13490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13491 hardcode_libdir_separator_CXX=:
13492
13493 # Archives containing C++ object files must be created using
13494 # the KAI C++ compiler.
13495 case $host in
13496 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13497 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13498 esac
13499 ;;
13500 RCC*)
13501 # Rational C++ 2.4.1
13502 # FIXME: insert proper C++ library support
13503 ld_shlibs_CXX=no
13504 ;;
13505 cxx*)
13506 case $host in
13507 osf3*)
13508 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13509 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'
13510 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13511 ;;
13512 *)
13513 allow_undefined_flag_CXX=' -expect_unresolved \*'
13514 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'
13515 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13516 echo "-hidden">> $lib.exp~
13517 $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~
13518 $RM $lib.exp'
13519 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13520 ;;
13521 esac
13522
13523 hardcode_libdir_separator_CXX=:
13524
13525 # Commands to make compiler produce verbose output that lists
13526 # what "hidden" libraries, object files and flags are used when
13527 # linking a shared library.
13528 #
13529 # There doesn't appear to be a way to prevent this compiler from
13530 # explicitly linking system object files so we need to strip them
13531 # from the output so that they don't get included in the library
13532 # dependencies.
13533 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'
13534 ;;
13535 *)
13536 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13538 case $host in
13539 osf3*)
13540 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'
13541 ;;
13542 *)
13543 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'
13544 ;;
13545 esac
13546
13547 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13548 hardcode_libdir_separator_CXX=:
13549
13550 # Commands to make compiler produce verbose output that lists
13551 # what "hidden" libraries, object files and flags are used when
13552 # linking a shared library.
13553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13554
13555 else
13556 # FIXME: insert proper C++ library support
13557 ld_shlibs_CXX=no
13558 fi
13559 ;;
13560 esac
13561 ;;
13562
13563 psos*)
13564 # FIXME: insert proper C++ library support
13565 ld_shlibs_CXX=no
13566 ;;
13567
13568 sunos4*)
13569 case $cc_basename in
13570 CC*)
13571 # Sun C++ 4.x
13572 # FIXME: insert proper C++ library support
13573 ld_shlibs_CXX=no
13574 ;;
13575 lcc*)
13576 # Lucid
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13579 ;;
13580 *)
13581 # FIXME: insert proper C++ library support
13582 ld_shlibs_CXX=no
13583 ;;
13584 esac
13585 ;;
13586
13587 solaris*)
13588 case $cc_basename in
13589 CC*)
13590 # Sun C++ 4.2, 5.x and Centerline C++
13591 archive_cmds_need_lc_CXX=yes
13592 no_undefined_flag_CXX=' -zdefs'
13593 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13594 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13595 $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'
13596
13597 hardcode_libdir_flag_spec_CXX='-R$libdir'
13598 hardcode_shlibpath_var_CXX=no
13599 case $host_os in
13600 solaris2.[0-5] | solaris2.[0-5].*) ;;
13601 *)
13602 # The compiler driver will combine and reorder linker options,
13603 # but understands `-z linker_flag'.
13604 # Supported since Solaris 2.6 (maybe 2.5.1?)
13605 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13606 ;;
13607 esac
13608 link_all_deplibs_CXX=yes
13609
13610 output_verbose_link_cmd='echo'
13611
13612 # Archives containing C++ object files must be created using
13613 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13614 # necessary to make sure instantiated templates are included
13615 # in the archive.
13616 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13617 ;;
13618 gcx*)
13619 # Green Hills C++ Compiler
13620 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13621
13622 # The C++ compiler must be used to create the archive.
13623 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13624 ;;
13625 *)
13626 # GNU C++ compiler with Solaris linker
13627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13628 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13629 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13630 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13631 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13632 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13633
13634 # Commands to make compiler produce verbose output that lists
13635 # what "hidden" libraries, object files and flags are used when
13636 # linking a shared library.
13637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13638 else
13639 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13640 # platform.
13641 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13642 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13643 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13644
13645 # Commands to make compiler produce verbose output that lists
13646 # what "hidden" libraries, object files and flags are used when
13647 # linking a shared library.
13648 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13649 fi
13650
13651 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13652 case $host_os in
13653 solaris2.[0-5] | solaris2.[0-5].*) ;;
13654 *)
13655 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13656 ;;
13657 esac
13658 fi
13659 ;;
13660 esac
13661 ;;
13662
13663 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13664 no_undefined_flag_CXX='${wl}-z,text'
13665 archive_cmds_need_lc_CXX=no
13666 hardcode_shlibpath_var_CXX=no
13667 runpath_var='LD_RUN_PATH'
13668
13669 case $cc_basename in
13670 CC*)
13671 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 ;;
13674 *)
13675 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677 ;;
13678 esac
13679 ;;
13680
13681 sysv5* | sco3.2v5* | sco5v6*)
13682 # Note: We can NOT use -z defs as we might desire, because we do not
13683 # link with -lc, and that would cause any symbols used from libc to
13684 # always be unresolved, which means just about no library would
13685 # ever link correctly. If we're not using GNU ld we use -z text
13686 # though, which does catch some bad symbols but isn't as heavy-handed
13687 # as -z defs.
13688 no_undefined_flag_CXX='${wl}-z,text'
13689 allow_undefined_flag_CXX='${wl}-z,nodefs'
13690 archive_cmds_need_lc_CXX=no
13691 hardcode_shlibpath_var_CXX=no
13692 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13693 hardcode_libdir_separator_CXX=':'
13694 link_all_deplibs_CXX=yes
13695 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13696 runpath_var='LD_RUN_PATH'
13697
13698 case $cc_basename in
13699 CC*)
13700 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13701 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13702 ;;
13703 *)
13704 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13706 ;;
13707 esac
13708 ;;
13709
13710 tandem*)
13711 case $cc_basename in
13712 NCC*)
13713 # NonStop-UX NCC 3.20
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13716 ;;
13717 *)
13718 # FIXME: insert proper C++ library support
13719 ld_shlibs_CXX=no
13720 ;;
13721 esac
13722 ;;
13723
13724 vxworks*)
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13727 ;;
13728
13729 *)
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 ;;
13733 esac
13734
13735 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13736 $as_echo "$ld_shlibs_CXX" >&6; }
13737 test "$ld_shlibs_CXX" = no && can_build_shared=no
13738
13739 GCC_CXX="$GXX"
13740 LD_CXX="$LD"
13741
13742 ## CAVEAT EMPTOR:
13743 ## There is no encapsulation within the following macros, do not change
13744 ## the running order or otherwise move them around unless you know exactly
13745 ## what you are doing...
13746 # Dependencies to place before and after the object being linked:
13747 predep_objects_CXX=
13748 postdep_objects_CXX=
13749 predeps_CXX=
13750 postdeps_CXX=
13751 compiler_lib_search_path_CXX=
13752
13753 cat > conftest.$ac_ext <<_LT_EOF
13754 class Foo
13755 {
13756 public:
13757 Foo (void) { a = 0; }
13758 private:
13759 int a;
13760 };
13761 _LT_EOF
13762
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>&5
13765 ac_status=$?
13766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; then
13768 # Parse the compiler output and extract the necessary
13769 # objects, libraries and library flags.
13770
13771 # Sentinel used to keep track of whether or not we are before
13772 # the conftest object file.
13773 pre_test_object_deps_done=no
13774
13775 for p in `eval "$output_verbose_link_cmd"`; do
13776 case $p in
13777
13778 -L* | -R* | -l*)
13779 # Some compilers place space between "-{L,R}" and the path.
13780 # Remove the space.
13781 if test $p = "-L" ||
13782 test $p = "-R"; then
13783 prev=$p
13784 continue
13785 else
13786 prev=
13787 fi
13788
13789 if test "$pre_test_object_deps_done" = no; then
13790 case $p in
13791 -L* | -R*)
13792 # Internal compiler library paths should come after those
13793 # provided the user. The postdeps already come after the
13794 # user supplied libs so there is no need to process them.
13795 if test -z "$compiler_lib_search_path_CXX"; then
13796 compiler_lib_search_path_CXX="${prev}${p}"
13797 else
13798 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13799 fi
13800 ;;
13801 # The "-l" case would never come before the object being
13802 # linked, so don't bother handling this case.
13803 esac
13804 else
13805 if test -z "$postdeps_CXX"; then
13806 postdeps_CXX="${prev}${p}"
13807 else
13808 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13809 fi
13810 fi
13811 ;;
13812
13813 *.$objext)
13814 # This assumes that the test object file only shows up
13815 # once in the compiler output.
13816 if test "$p" = "conftest.$objext"; then
13817 pre_test_object_deps_done=yes
13818 continue
13819 fi
13820
13821 if test "$pre_test_object_deps_done" = no; then
13822 if test -z "$predep_objects_CXX"; then
13823 predep_objects_CXX="$p"
13824 else
13825 predep_objects_CXX="$predep_objects_CXX $p"
13826 fi
13827 else
13828 if test -z "$postdep_objects_CXX"; then
13829 postdep_objects_CXX="$p"
13830 else
13831 postdep_objects_CXX="$postdep_objects_CXX $p"
13832 fi
13833 fi
13834 ;;
13835
13836 *) ;; # Ignore the rest.
13837
13838 esac
13839 done
13840
13841 # Clean up.
13842 rm -f a.out a.exe
13843 else
13844 echo "libtool.m4: error: problem compiling CXX test program"
13845 fi
13846
13847 $RM -f confest.$objext
13848
13849 # PORTME: override above test on systems where it is broken
13850 case $host_os in
13851 interix[3-9]*)
13852 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13853 # hack all around it, let's just trust "g++" to DTRT.
13854 predep_objects_CXX=
13855 postdep_objects_CXX=
13856 postdeps_CXX=
13857 ;;
13858
13859 linux*)
13860 case `$CC -V 2>&1 | sed 5q` in
13861 *Sun\ C*)
13862 # Sun C++ 5.9
13863
13864 # The more standards-conforming stlport4 library is
13865 # incompatible with the Cstd library. Avoid specifying
13866 # it if it's in CXXFLAGS. Ignore libCrun as
13867 # -library=stlport4 depends on it.
13868 case " $CXX $CXXFLAGS " in
13869 *" -library=stlport4 "*)
13870 solaris_use_stlport4=yes
13871 ;;
13872 esac
13873
13874 if test "$solaris_use_stlport4" != yes; then
13875 postdeps_CXX='-library=Cstd -library=Crun'
13876 fi
13877 ;;
13878 esac
13879 ;;
13880
13881 solaris*)
13882 case $cc_basename in
13883 CC*)
13884 # The more standards-conforming stlport4 library is
13885 # incompatible with the Cstd library. Avoid specifying
13886 # it if it's in CXXFLAGS. Ignore libCrun as
13887 # -library=stlport4 depends on it.
13888 case " $CXX $CXXFLAGS " in
13889 *" -library=stlport4 "*)
13890 solaris_use_stlport4=yes
13891 ;;
13892 esac
13893
13894 # Adding this requires a known-good setup of shared libraries for
13895 # Sun compiler versions before 5.6, else PIC objects from an old
13896 # archive will be linked into the output, leading to subtle bugs.
13897 if test "$solaris_use_stlport4" != yes; then
13898 postdeps_CXX='-library=Cstd -library=Crun'
13899 fi
13900 ;;
13901 esac
13902 ;;
13903 esac
13904
13905
13906 case " $postdeps_CXX " in
13907 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13908 esac
13909 compiler_lib_search_dirs_CXX=
13910 if test -n "${compiler_lib_search_path_CXX}"; then
13911 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13912 fi
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944 lt_prog_compiler_wl_CXX=
13945 lt_prog_compiler_pic_CXX=
13946 lt_prog_compiler_static_CXX=
13947
13948 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13949 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13950
13951 # C++ specific cases for pic, static, wl, etc.
13952 if test "$GXX" = yes; then
13953 lt_prog_compiler_wl_CXX='-Wl,'
13954 lt_prog_compiler_static_CXX='-static'
13955
13956 case $host_os in
13957 aix*)
13958 # All AIX code is PIC.
13959 if test "$host_cpu" = ia64; then
13960 # AIX 5 now supports IA64 processor
13961 lt_prog_compiler_static_CXX='-Bstatic'
13962 fi
13963 ;;
13964
13965 amigaos*)
13966 case $host_cpu in
13967 powerpc)
13968 # see comment about AmigaOS4 .so support
13969 lt_prog_compiler_pic_CXX='-fPIC'
13970 ;;
13971 m68k)
13972 # FIXME: we need at least 68020 code to build shared libraries, but
13973 # adding the `-m68020' flag to GCC prevents building anything better,
13974 # like `-m68040'.
13975 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13976 ;;
13977 esac
13978 ;;
13979
13980 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13981 # PIC is the default for these OSes.
13982 ;;
13983 mingw* | cygwin* | os2* | pw32* | cegcc*)
13984 # This hack is so that the source file can tell whether it is being
13985 # built for inclusion in a dll (and should export symbols for example).
13986 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13987 # (--disable-auto-import) libraries
13988 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13989 ;;
13990 darwin* | rhapsody*)
13991 # PIC is the default on this platform
13992 # Common symbols not allowed in MH_DYLIB files
13993 lt_prog_compiler_pic_CXX='-fno-common'
13994 ;;
13995 *djgpp*)
13996 # DJGPP does not support shared libraries at all
13997 lt_prog_compiler_pic_CXX=
13998 ;;
13999 interix[3-9]*)
14000 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14001 # Instead, we relocate shared libraries at runtime.
14002 ;;
14003 sysv4*MP*)
14004 if test -d /usr/nec; then
14005 lt_prog_compiler_pic_CXX=-Kconform_pic
14006 fi
14007 ;;
14008 hpux*)
14009 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14010 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14011 # sets the default TLS model and affects inlining.
14012 case $host_cpu in
14013 hppa*64*)
14014 ;;
14015 *)
14016 lt_prog_compiler_pic_CXX='-fPIC'
14017 ;;
14018 esac
14019 ;;
14020 *qnx* | *nto*)
14021 # QNX uses GNU C++, but need to define -shared option too, otherwise
14022 # it will coredump.
14023 lt_prog_compiler_pic_CXX='-fPIC -shared'
14024 ;;
14025 *)
14026 lt_prog_compiler_pic_CXX='-fPIC'
14027 ;;
14028 esac
14029 else
14030 case $host_os in
14031 aix[4-9]*)
14032 # All AIX code is PIC.
14033 if test "$host_cpu" = ia64; then
14034 # AIX 5 now supports IA64 processor
14035 lt_prog_compiler_static_CXX='-Bstatic'
14036 else
14037 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14038 fi
14039 ;;
14040 chorus*)
14041 case $cc_basename in
14042 cxch68*)
14043 # Green Hills C++ Compiler
14044 # _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"
14045 ;;
14046 esac
14047 ;;
14048 dgux*)
14049 case $cc_basename in
14050 ec++*)
14051 lt_prog_compiler_pic_CXX='-KPIC'
14052 ;;
14053 ghcx*)
14054 # Green Hills C++ Compiler
14055 lt_prog_compiler_pic_CXX='-pic'
14056 ;;
14057 *)
14058 ;;
14059 esac
14060 ;;
14061 freebsd* | dragonfly*)
14062 # FreeBSD uses GNU C++
14063 ;;
14064 hpux9* | hpux10* | hpux11*)
14065 case $cc_basename in
14066 CC*)
14067 lt_prog_compiler_wl_CXX='-Wl,'
14068 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14069 if test "$host_cpu" != ia64; then
14070 lt_prog_compiler_pic_CXX='+Z'
14071 fi
14072 ;;
14073 aCC*)
14074 lt_prog_compiler_wl_CXX='-Wl,'
14075 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14076 case $host_cpu in
14077 hppa*64*|ia64*)
14078 # +Z the default
14079 ;;
14080 *)
14081 lt_prog_compiler_pic_CXX='+Z'
14082 ;;
14083 esac
14084 ;;
14085 *)
14086 ;;
14087 esac
14088 ;;
14089 interix*)
14090 # This is c89, which is MS Visual C++ (no shared libs)
14091 # Anyone wants to do a port?
14092 ;;
14093 irix5* | irix6* | nonstopux*)
14094 case $cc_basename in
14095 CC*)
14096 lt_prog_compiler_wl_CXX='-Wl,'
14097 lt_prog_compiler_static_CXX='-non_shared'
14098 # CC pic flag -KPIC is the default.
14099 ;;
14100 *)
14101 ;;
14102 esac
14103 ;;
14104 linux* | k*bsd*-gnu)
14105 case $cc_basename in
14106 KCC*)
14107 # KAI C++ Compiler
14108 lt_prog_compiler_wl_CXX='--backend -Wl,'
14109 lt_prog_compiler_pic_CXX='-fPIC'
14110 ;;
14111 ecpc* )
14112 # old Intel C++ for x86_64 which still supported -KPIC.
14113 lt_prog_compiler_wl_CXX='-Wl,'
14114 lt_prog_compiler_pic_CXX='-KPIC'
14115 lt_prog_compiler_static_CXX='-static'
14116 ;;
14117 icpc* )
14118 # Intel C++, used to be incompatible with GCC.
14119 # ICC 10 doesn't accept -KPIC any more.
14120 lt_prog_compiler_wl_CXX='-Wl,'
14121 lt_prog_compiler_pic_CXX='-fPIC'
14122 lt_prog_compiler_static_CXX='-static'
14123 ;;
14124 pgCC* | pgcpp*)
14125 # Portland Group C++ compiler
14126 lt_prog_compiler_wl_CXX='-Wl,'
14127 lt_prog_compiler_pic_CXX='-fpic'
14128 lt_prog_compiler_static_CXX='-Bstatic'
14129 ;;
14130 cxx*)
14131 # Compaq C++
14132 # Make sure the PIC flag is empty. It appears that all Alpha
14133 # Linux and Compaq Tru64 Unix objects are PIC.
14134 lt_prog_compiler_pic_CXX=
14135 lt_prog_compiler_static_CXX='-non_shared'
14136 ;;
14137 xlc* | xlC*)
14138 # IBM XL 8.0 on PPC
14139 lt_prog_compiler_wl_CXX='-Wl,'
14140 lt_prog_compiler_pic_CXX='-qpic'
14141 lt_prog_compiler_static_CXX='-qstaticlink'
14142 ;;
14143 *)
14144 case `$CC -V 2>&1 | sed 5q` in
14145 *Sun\ C*)
14146 # Sun C++ 5.9
14147 lt_prog_compiler_pic_CXX='-KPIC'
14148 lt_prog_compiler_static_CXX='-Bstatic'
14149 lt_prog_compiler_wl_CXX='-Qoption ld '
14150 ;;
14151 esac
14152 ;;
14153 esac
14154 ;;
14155 lynxos*)
14156 ;;
14157 m88k*)
14158 ;;
14159 mvs*)
14160 case $cc_basename in
14161 cxx*)
14162 lt_prog_compiler_pic_CXX='-W c,exportall'
14163 ;;
14164 *)
14165 ;;
14166 esac
14167 ;;
14168 netbsd*)
14169 ;;
14170 *qnx* | *nto*)
14171 # QNX uses GNU C++, but need to define -shared option too, otherwise
14172 # it will coredump.
14173 lt_prog_compiler_pic_CXX='-fPIC -shared'
14174 ;;
14175 osf3* | osf4* | osf5*)
14176 case $cc_basename in
14177 KCC*)
14178 lt_prog_compiler_wl_CXX='--backend -Wl,'
14179 ;;
14180 RCC*)
14181 # Rational C++ 2.4.1
14182 lt_prog_compiler_pic_CXX='-pic'
14183 ;;
14184 cxx*)
14185 # Digital/Compaq C++
14186 lt_prog_compiler_wl_CXX='-Wl,'
14187 # Make sure the PIC flag is empty. It appears that all Alpha
14188 # Linux and Compaq Tru64 Unix objects are PIC.
14189 lt_prog_compiler_pic_CXX=
14190 lt_prog_compiler_static_CXX='-non_shared'
14191 ;;
14192 *)
14193 ;;
14194 esac
14195 ;;
14196 psos*)
14197 ;;
14198 solaris*)
14199 case $cc_basename in
14200 CC*)
14201 # Sun C++ 4.2, 5.x and Centerline C++
14202 lt_prog_compiler_pic_CXX='-KPIC'
14203 lt_prog_compiler_static_CXX='-Bstatic'
14204 lt_prog_compiler_wl_CXX='-Qoption ld '
14205 ;;
14206 gcx*)
14207 # Green Hills C++ Compiler
14208 lt_prog_compiler_pic_CXX='-PIC'
14209 ;;
14210 *)
14211 ;;
14212 esac
14213 ;;
14214 sunos4*)
14215 case $cc_basename in
14216 CC*)
14217 # Sun C++ 4.x
14218 lt_prog_compiler_pic_CXX='-pic'
14219 lt_prog_compiler_static_CXX='-Bstatic'
14220 ;;
14221 lcc*)
14222 # Lucid
14223 lt_prog_compiler_pic_CXX='-pic'
14224 ;;
14225 *)
14226 ;;
14227 esac
14228 ;;
14229 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14230 case $cc_basename in
14231 CC*)
14232 lt_prog_compiler_wl_CXX='-Wl,'
14233 lt_prog_compiler_pic_CXX='-KPIC'
14234 lt_prog_compiler_static_CXX='-Bstatic'
14235 ;;
14236 esac
14237 ;;
14238 tandem*)
14239 case $cc_basename in
14240 NCC*)
14241 # NonStop-UX NCC 3.20
14242 lt_prog_compiler_pic_CXX='-KPIC'
14243 ;;
14244 *)
14245 ;;
14246 esac
14247 ;;
14248 vxworks*)
14249 ;;
14250 *)
14251 lt_prog_compiler_can_build_shared_CXX=no
14252 ;;
14253 esac
14254 fi
14255
14256 case $host_os in
14257 # For platforms which do not support PIC, -DPIC is meaningless:
14258 *djgpp*)
14259 lt_prog_compiler_pic_CXX=
14260 ;;
14261 *)
14262 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14263 ;;
14264 esac
14265 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14266 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14267
14268
14269
14270 #
14271 # Check to make sure the PIC flag actually works.
14272 #
14273 if test -n "$lt_prog_compiler_pic_CXX"; then
14274 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14275 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14276 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14277 $as_echo_n "(cached) " >&6
14278 else
14279 lt_cv_prog_compiler_pic_works_CXX=no
14280 ac_outfile=conftest.$ac_objext
14281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14282 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14283 # Insert the option either (1) after the last *FLAGS variable, or
14284 # (2) before a word containing "conftest.", or (3) at the end.
14285 # Note that $ac_compile itself does not contain backslashes and begins
14286 # with a dollar sign (not a hyphen), so the echo should work correctly.
14287 # The option is referenced via a variable to avoid confusing sed.
14288 lt_compile=`echo "$ac_compile" | $SED \
14289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14291 -e 's:$: $lt_compiler_flag:'`
14292 (eval echo "\"\$as_me:14292: $lt_compile\"" >&5)
14293 (eval "$lt_compile" 2>conftest.err)
14294 ac_status=$?
14295 cat conftest.err >&5
14296 echo "$as_me:14296: \$? = $ac_status" >&5
14297 if (exit $ac_status) && test -s "$ac_outfile"; then
14298 # The compiler can only warn and ignore the option if not recognized
14299 # So say no if there are warnings other than the usual output.
14300 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14303 lt_cv_prog_compiler_pic_works_CXX=yes
14304 fi
14305 fi
14306 $RM conftest*
14307
14308 fi
14309 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14310 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14311
14312 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14313 case $lt_prog_compiler_pic_CXX in
14314 "" | " "*) ;;
14315 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14316 esac
14317 else
14318 lt_prog_compiler_pic_CXX=
14319 lt_prog_compiler_can_build_shared_CXX=no
14320 fi
14321
14322 fi
14323
14324
14325
14326 #
14327 # Check to make sure the static flag actually works.
14328 #
14329 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14330 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14332 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14333 $as_echo_n "(cached) " >&6
14334 else
14335 lt_cv_prog_compiler_static_works_CXX=no
14336 save_LDFLAGS="$LDFLAGS"
14337 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14338 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14340 # The linker can only warn and ignore the option if not recognized
14341 # So say no if there are warnings
14342 if test -s conftest.err; then
14343 # Append any errors to the config.log.
14344 cat conftest.err 1>&5
14345 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14347 if diff conftest.exp conftest.er2 >/dev/null; then
14348 lt_cv_prog_compiler_static_works_CXX=yes
14349 fi
14350 else
14351 lt_cv_prog_compiler_static_works_CXX=yes
14352 fi
14353 fi
14354 $RM -r conftest*
14355 LDFLAGS="$save_LDFLAGS"
14356
14357 fi
14358 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14359 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14360
14361 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14362 :
14363 else
14364 lt_prog_compiler_static_CXX=
14365 fi
14366
14367
14368
14369
14370 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14371 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14372 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14373 $as_echo_n "(cached) " >&6
14374 else
14375 lt_cv_prog_compiler_c_o_CXX=no
14376 $RM -r conftest 2>/dev/null
14377 mkdir conftest
14378 cd conftest
14379 mkdir out
14380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14381
14382 lt_compiler_flag="-o out/conftest2.$ac_objext"
14383 # Insert the option either (1) after the last *FLAGS variable, or
14384 # (2) before a word containing "conftest.", or (3) at the end.
14385 # Note that $ac_compile itself does not contain backslashes and begins
14386 # with a dollar sign (not a hyphen), so the echo should work correctly.
14387 lt_compile=`echo "$ac_compile" | $SED \
14388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390 -e 's:$: $lt_compiler_flag:'`
14391 (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392 (eval "$lt_compile" 2>out/conftest.err)
14393 ac_status=$?
14394 cat out/conftest.err >&5
14395 echo "$as_me:14395: \$? = $ac_status" >&5
14396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14397 then
14398 # The compiler can only warn and ignore the option if not recognized
14399 # So say no if there are warnings
14400 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14403 lt_cv_prog_compiler_c_o_CXX=yes
14404 fi
14405 fi
14406 chmod u+w . 2>&5
14407 $RM conftest*
14408 # SGI C++ compiler will create directory out/ii_files/ for
14409 # template instantiation
14410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14411 $RM out/* && rmdir out
14412 cd ..
14413 $RM -r conftest
14414 $RM conftest*
14415
14416 fi
14417 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14418 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14419
14420
14421
14422 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14423 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14424 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14425 $as_echo_n "(cached) " >&6
14426 else
14427 lt_cv_prog_compiler_c_o_CXX=no
14428 $RM -r conftest 2>/dev/null
14429 mkdir conftest
14430 cd conftest
14431 mkdir out
14432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14433
14434 lt_compiler_flag="-o out/conftest2.$ac_objext"
14435 # Insert the option either (1) after the last *FLAGS variable, or
14436 # (2) before a word containing "conftest.", or (3) at the end.
14437 # Note that $ac_compile itself does not contain backslashes and begins
14438 # with a dollar sign (not a hyphen), so the echo should work correctly.
14439 lt_compile=`echo "$ac_compile" | $SED \
14440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14442 -e 's:$: $lt_compiler_flag:'`
14443 (eval echo "\"\$as_me:14443: $lt_compile\"" >&5)
14444 (eval "$lt_compile" 2>out/conftest.err)
14445 ac_status=$?
14446 cat out/conftest.err >&5
14447 echo "$as_me:14447: \$? = $ac_status" >&5
14448 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14449 then
14450 # The compiler can only warn and ignore the option if not recognized
14451 # So say no if there are warnings
14452 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14455 lt_cv_prog_compiler_c_o_CXX=yes
14456 fi
14457 fi
14458 chmod u+w . 2>&5
14459 $RM conftest*
14460 # SGI C++ compiler will create directory out/ii_files/ for
14461 # template instantiation
14462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14463 $RM out/* && rmdir out
14464 cd ..
14465 $RM -r conftest
14466 $RM conftest*
14467
14468 fi
14469 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14470 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14471
14472
14473
14474
14475 hard_links="nottested"
14476 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14477 # do not overwrite the value of need_locks provided by the user
14478 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14479 $as_echo_n "checking if we can lock with hard links... " >&6; }
14480 hard_links=yes
14481 $RM conftest*
14482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14483 touch conftest.a
14484 ln conftest.a conftest.b 2>&5 || hard_links=no
14485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14486 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14487 $as_echo "$hard_links" >&6; }
14488 if test "$hard_links" = no; then
14489 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14490 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14491 need_locks=warn
14492 fi
14493 else
14494 need_locks=no
14495 fi
14496
14497
14498
14499 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14500 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14501
14502 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14503 case $host_os in
14504 aix[4-9]*)
14505 # If we're using GNU nm, then we don't want the "-C" option.
14506 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14507 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14508 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'
14509 else
14510 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'
14511 fi
14512 ;;
14513 pw32*)
14514 export_symbols_cmds_CXX="$ltdll_cmds"
14515 ;;
14516 cygwin* | mingw* | cegcc*)
14517 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'
14518 ;;
14519 *)
14520 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14521 ;;
14522 esac
14523 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14524
14525 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14526 $as_echo "$ld_shlibs_CXX" >&6; }
14527 test "$ld_shlibs_CXX" = no && can_build_shared=no
14528
14529 with_gnu_ld_CXX=$with_gnu_ld
14530
14531
14532
14533
14534
14535
14536 #
14537 # Do we need to explicitly link libc?
14538 #
14539 case "x$archive_cmds_need_lc_CXX" in
14540 x|xyes)
14541 # Assume -lc should be added
14542 archive_cmds_need_lc_CXX=yes
14543
14544 if test "$enable_shared" = yes && test "$GCC" = yes; then
14545 case $archive_cmds_CXX in
14546 *'~'*)
14547 # FIXME: we may have to deal with multi-command sequences.
14548 ;;
14549 '$CC '*)
14550 # Test whether the compiler implicitly links with -lc since on some
14551 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14552 # to ld, don't add -lc before -lgcc.
14553 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14554 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14555 $RM conftest*
14556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14557
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>&5
14560 ac_status=$?
14561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } 2>conftest.err; then
14563 soname=conftest
14564 lib=conftest
14565 libobjs=conftest.$ac_objext
14566 deplibs=
14567 wl=$lt_prog_compiler_wl_CXX
14568 pic_flag=$lt_prog_compiler_pic_CXX
14569 compiler_flags=-v
14570 linker_flags=-v
14571 verstring=
14572 output_objdir=.
14573 libname=conftest
14574 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14575 allow_undefined_flag_CXX=
14576 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14577 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14578 ac_status=$?
14579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }
14581 then
14582 archive_cmds_need_lc_CXX=no
14583 else
14584 archive_cmds_need_lc_CXX=yes
14585 fi
14586 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14587 else
14588 cat conftest.err 1>&5
14589 fi
14590 $RM conftest*
14591 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14592 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14593 ;;
14594 esac
14595 fi
14596 ;;
14597 esac
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14664
14665 library_names_spec=
14666 libname_spec='lib$name'
14667 soname_spec=
14668 shrext_cmds=".so"
14669 postinstall_cmds=
14670 postuninstall_cmds=
14671 finish_cmds=
14672 finish_eval=
14673 shlibpath_var=
14674 shlibpath_overrides_runpath=unknown
14675 version_type=none
14676 dynamic_linker="$host_os ld.so"
14677 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14678 need_lib_prefix=unknown
14679 hardcode_into_libs=no
14680
14681 # when you set need_version to no, make sure it does not cause -set_version
14682 # flags to be left without arguments
14683 need_version=unknown
14684
14685 case $host_os in
14686 aix3*)
14687 version_type=linux
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14689 shlibpath_var=LIBPATH
14690
14691 # AIX 3 has no versioning support, so we append a major version to the name.
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 ;;
14694
14695 aix[4-9]*)
14696 version_type=linux
14697 need_lib_prefix=no
14698 need_version=no
14699 hardcode_into_libs=yes
14700 if test "$host_cpu" = ia64; then
14701 # AIX 5 supports IA64
14702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 else
14705 # With GCC up to 2.95.x, collect2 would create an import file
14706 # for dependence libraries. The import file would start with
14707 # the line `#! .'. This would cause the generated library to
14708 # depend on `.', always an invalid library. This was fixed in
14709 # development snapshots of GCC prior to 3.0.
14710 case $host_os in
14711 aix4 | aix4.[01] | aix4.[01].*)
14712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14713 echo ' yes '
14714 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14715 :
14716 else
14717 can_build_shared=no
14718 fi
14719 ;;
14720 esac
14721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14722 # soname into executable. Probably we can add versioning support to
14723 # collect2, so additional links can be useful in future.
14724 if test "$aix_use_runtimelinking" = yes; then
14725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14726 # instead of lib<name>.a to let people know that these are not
14727 # typical AIX shared libraries.
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729 else
14730 # We preserve .a as extension for shared libraries through AIX4.2
14731 # and later when we are not doing run time linking.
14732 library_names_spec='${libname}${release}.a $libname.a'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 fi
14735 shlibpath_var=LIBPATH
14736 fi
14737 ;;
14738
14739 amigaos*)
14740 case $host_cpu in
14741 powerpc)
14742 # Since July 2007 AmigaOS4 officially supports .so libraries.
14743 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 ;;
14746 m68k)
14747 library_names_spec='$libname.ixlibrary $libname.a'
14748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14749 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'
14750 ;;
14751 esac
14752 ;;
14753
14754 beos*)
14755 library_names_spec='${libname}${shared_ext}'
14756 dynamic_linker="$host_os ld.so"
14757 shlibpath_var=LIBRARY_PATH
14758 ;;
14759
14760 bsdi[45]*)
14761 version_type=linux
14762 need_version=no
14763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 soname_spec='${libname}${release}${shared_ext}$major'
14765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14769 # the default ld.so.conf also contains /usr/contrib/lib and
14770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14771 # libtool to hard-code these into programs
14772 ;;
14773
14774 cygwin* | mingw* | pw32* | cegcc*)
14775 version_type=windows
14776 shrext_cmds=".dll"
14777 need_version=no
14778 need_lib_prefix=no
14779
14780 case $GCC,$host_os in
14781 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14782 library_names_spec='$libname.dll.a'
14783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14784 postinstall_cmds='base_file=`basename \${file}`~
14785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14786 dldir=$destdir/`dirname \$dlpath`~
14787 test -d \$dldir || mkdir -p \$dldir~
14788 $install_prog $dir/$dlname \$dldir/$dlname~
14789 chmod a+x \$dldir/$dlname~
14790 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14791 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14792 fi'
14793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14794 dlpath=$dir/\$dldll~
14795 $RM \$dlpath'
14796 shlibpath_overrides_runpath=yes
14797
14798 case $host_os in
14799 cygwin*)
14800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14801 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14802 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14803 ;;
14804 mingw* | cegcc*)
14805 # MinGW DLLs use traditional 'lib' prefix
14806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14807 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14808 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14809 # It is most probably a Windows format PATH printed by
14810 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14811 # path with ; separators, and with drive letters. We can handle the
14812 # drive letters (cygwin fileutils understands them), so leave them,
14813 # especially as we might pass files found there to a mingw objdump,
14814 # which wouldn't understand a cygwinified path. Ahh.
14815 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14816 else
14817 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14818 fi
14819 ;;
14820 pw32*)
14821 # pw32 DLLs use 'pw' prefix rather than 'lib'
14822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823 ;;
14824 esac
14825 ;;
14826
14827 *)
14828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14829 ;;
14830 esac
14831 dynamic_linker='Win32 ld.exe'
14832 # FIXME: first we should search . and the directory the executable is in
14833 shlibpath_var=PATH
14834 ;;
14835
14836 darwin* | rhapsody*)
14837 dynamic_linker="$host_os dyld"
14838 version_type=darwin
14839 need_lib_prefix=no
14840 need_version=no
14841 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14842 soname_spec='${libname}${release}${major}$shared_ext'
14843 shlibpath_overrides_runpath=yes
14844 shlibpath_var=DYLD_LIBRARY_PATH
14845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14846
14847 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14848 ;;
14849
14850 dgux*)
14851 version_type=linux
14852 need_lib_prefix=no
14853 need_version=no
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 ;;
14858
14859 freebsd1*)
14860 dynamic_linker=no
14861 ;;
14862
14863 freebsd* | dragonfly*)
14864 # DragonFly does not have aout. When/if they implement a new
14865 # versioning mechanism, adjust this.
14866 if test -x /usr/bin/objformat; then
14867 objformat=`/usr/bin/objformat`
14868 else
14869 case $host_os in
14870 freebsd[123]*) objformat=aout ;;
14871 *) objformat=elf ;;
14872 esac
14873 fi
14874 version_type=freebsd-$objformat
14875 case $version_type in
14876 freebsd-elf*)
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14878 need_version=no
14879 need_lib_prefix=no
14880 ;;
14881 freebsd-*)
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14883 need_version=yes
14884 ;;
14885 esac
14886 shlibpath_var=LD_LIBRARY_PATH
14887 case $host_os in
14888 freebsd2*)
14889 shlibpath_overrides_runpath=yes
14890 ;;
14891 freebsd3.[01]* | freebsdelf3.[01]*)
14892 shlibpath_overrides_runpath=yes
14893 hardcode_into_libs=yes
14894 ;;
14895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14897 shlibpath_overrides_runpath=no
14898 hardcode_into_libs=yes
14899 ;;
14900 *) # from 4.6 on, and DragonFly
14901 shlibpath_overrides_runpath=yes
14902 hardcode_into_libs=yes
14903 ;;
14904 esac
14905 ;;
14906
14907 gnu*)
14908 version_type=linux
14909 need_lib_prefix=no
14910 need_version=no
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14912 soname_spec='${libname}${release}${shared_ext}$major'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 hardcode_into_libs=yes
14915 ;;
14916
14917 hpux9* | hpux10* | hpux11*)
14918 # Give a soname corresponding to the major version so that dld.sl refuses to
14919 # link against other versions.
14920 version_type=sunos
14921 need_lib_prefix=no
14922 need_version=no
14923 case $host_cpu in
14924 ia64*)
14925 shrext_cmds='.so'
14926 hardcode_into_libs=yes
14927 dynamic_linker="$host_os dld.so"
14928 shlibpath_var=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 soname_spec='${libname}${release}${shared_ext}$major'
14932 if test "X$HPUX_IA64_MODE" = X32; then
14933 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14934 else
14935 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14936 fi
14937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14938 ;;
14939 hppa*64*)
14940 shrext_cmds='.sl'
14941 hardcode_into_libs=yes
14942 dynamic_linker="$host_os dld.sl"
14943 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14949 ;;
14950 *)
14951 shrext_cmds='.sl'
14952 dynamic_linker="$host_os dld.sl"
14953 shlibpath_var=SHLIB_PATH
14954 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 ;;
14958 esac
14959 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14960 postinstall_cmds='chmod 555 $lib'
14961 ;;
14962
14963 interix[3-9]*)
14964 version_type=linux
14965 need_lib_prefix=no
14966 need_version=no
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 shlibpath_overrides_runpath=no
14972 hardcode_into_libs=yes
14973 ;;
14974
14975 irix5* | irix6* | nonstopux*)
14976 case $host_os in
14977 nonstopux*) version_type=nonstopux ;;
14978 *)
14979 if test "$lt_cv_prog_gnu_ld" = yes; then
14980 version_type=linux
14981 else
14982 version_type=irix
14983 fi ;;
14984 esac
14985 need_lib_prefix=no
14986 need_version=no
14987 soname_spec='${libname}${release}${shared_ext}$major'
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14989 case $host_os in
14990 irix5* | nonstopux*)
14991 libsuff= shlibsuff=
14992 ;;
14993 *)
14994 case $LD in # libtool.m4 will add one of these switches to LD
14995 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14996 libsuff= shlibsuff= libmagic=32-bit;;
14997 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14998 libsuff=32 shlibsuff=N32 libmagic=N32;;
14999 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15000 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15001 *) libsuff= shlibsuff= libmagic=never-match;;
15002 esac
15003 ;;
15004 esac
15005 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15006 shlibpath_overrides_runpath=no
15007 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15008 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15009 hardcode_into_libs=yes
15010 ;;
15011
15012 # No shared lib support for Linux oldld, aout, or coff.
15013 linux*oldld* | linux*aout* | linux*coff*)
15014 dynamic_linker=no
15015 ;;
15016
15017 # This must be Linux ELF.
15018 linux* | k*bsd*-gnu)
15019 version_type=linux
15020 need_lib_prefix=no
15021 need_version=no
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15025 shlibpath_var=LD_LIBRARY_PATH
15026 shlibpath_overrides_runpath=no
15027 # Some binutils ld are patched to set DT_RUNPATH
15028 save_LDFLAGS=$LDFLAGS
15029 save_libdir=$libdir
15030 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15031 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h. */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038
15039 int
15040 main ()
15041 {
15042
15043 ;
15044 return 0;
15045 }
15046 _ACEOF
15047 rm -f conftest.$ac_objext conftest$ac_exeext
15048 if { (ac_try="$ac_link"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052 esac
15053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15054 $as_echo "$ac_try_echo") >&5
15055 (eval "$ac_link") 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_cxx_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest$ac_exeext && {
15065 test "$cross_compiling" = yes ||
15066 $as_test_x conftest$ac_exeext
15067 }; then
15068 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15069 shlibpath_overrides_runpath=yes
15070 fi
15071
15072 else
15073 $as_echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076
15077 fi
15078
15079 rm -rf conftest.dSYM
15080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15081 conftest$ac_exeext conftest.$ac_ext
15082 LDFLAGS=$save_LDFLAGS
15083 libdir=$save_libdir
15084
15085 # This implies no fast_install, which is unacceptable.
15086 # Some rework will be needed to allow for fast_install
15087 # before this can be enabled.
15088 hardcode_into_libs=yes
15089
15090 # Append ld.so.conf contents to the search path
15091 if test -f /etc/ld.so.conf; then
15092 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' ' '`
15093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15094 fi
15095
15096 # We used to test for /lib/ld.so.1 and disable shared libraries on
15097 # powerpc, because MkLinux only supported shared libraries with the
15098 # GNU dynamic linker. Since this was broken with cross compilers,
15099 # most powerpc-linux boxes support dynamic linking these days and
15100 # people can always --disable-shared, the test was removed, and we
15101 # assume the GNU/Linux dynamic linker is in use.
15102 dynamic_linker='GNU/Linux ld.so'
15103 ;;
15104
15105 netbsd*)
15106 version_type=sunos
15107 need_lib_prefix=no
15108 need_version=no
15109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15112 dynamic_linker='NetBSD (a.out) ld.so'
15113 else
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 dynamic_linker='NetBSD ld.elf_so'
15117 fi
15118 shlibpath_var=LD_LIBRARY_PATH
15119 shlibpath_overrides_runpath=yes
15120 hardcode_into_libs=yes
15121 ;;
15122
15123 newsos6)
15124 version_type=linux
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=yes
15128 ;;
15129
15130 *nto* | *qnx*)
15131 version_type=qnx
15132 need_lib_prefix=no
15133 need_version=no
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 shlibpath_overrides_runpath=no
15138 hardcode_into_libs=yes
15139 dynamic_linker='ldqnx.so'
15140 ;;
15141
15142 openbsd*)
15143 version_type=sunos
15144 sys_lib_dlsearch_path_spec="/usr/lib"
15145 need_lib_prefix=no
15146 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15147 case $host_os in
15148 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15149 *) need_version=no ;;
15150 esac
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15153 shlibpath_var=LD_LIBRARY_PATH
15154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15155 case $host_os in
15156 openbsd2.[89] | openbsd2.[89].*)
15157 shlibpath_overrides_runpath=no
15158 ;;
15159 *)
15160 shlibpath_overrides_runpath=yes
15161 ;;
15162 esac
15163 else
15164 shlibpath_overrides_runpath=yes
15165 fi
15166 ;;
15167
15168 os2*)
15169 libname_spec='$name'
15170 shrext_cmds=".dll"
15171 need_lib_prefix=no
15172 library_names_spec='$libname${shared_ext} $libname.a'
15173 dynamic_linker='OS/2 ld.exe'
15174 shlibpath_var=LIBPATH
15175 ;;
15176
15177 osf3* | osf4* | osf5*)
15178 version_type=osf
15179 need_lib_prefix=no
15180 need_version=no
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 shlibpath_var=LD_LIBRARY_PATH
15184 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15186 ;;
15187
15188 rdos*)
15189 dynamic_linker=no
15190 ;;
15191
15192 solaris*)
15193 version_type=linux
15194 need_lib_prefix=no
15195 need_version=no
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197 soname_spec='${libname}${release}${shared_ext}$major'
15198 shlibpath_var=LD_LIBRARY_PATH
15199 shlibpath_overrides_runpath=yes
15200 hardcode_into_libs=yes
15201 # ldd complains unless libraries are executable
15202 postinstall_cmds='chmod +x $lib'
15203 ;;
15204
15205 sunos4*)
15206 version_type=sunos
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 shlibpath_overrides_runpath=yes
15211 if test "$with_gnu_ld" = yes; then
15212 need_lib_prefix=no
15213 fi
15214 need_version=yes
15215 ;;
15216
15217 sysv4 | sysv4.3*)
15218 version_type=linux
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 case $host_vendor in
15223 sni)
15224 shlibpath_overrides_runpath=no
15225 need_lib_prefix=no
15226 runpath_var=LD_RUN_PATH
15227 ;;
15228 siemens)
15229 need_lib_prefix=no
15230 ;;
15231 motorola)
15232 need_lib_prefix=no
15233 need_version=no
15234 shlibpath_overrides_runpath=no
15235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15236 ;;
15237 esac
15238 ;;
15239
15240 sysv4*MP*)
15241 if test -d /usr/nec ;then
15242 version_type=linux
15243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15244 soname_spec='$libname${shared_ext}.$major'
15245 shlibpath_var=LD_LIBRARY_PATH
15246 fi
15247 ;;
15248
15249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15250 version_type=freebsd-elf
15251 need_lib_prefix=no
15252 need_version=no
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=yes
15257 hardcode_into_libs=yes
15258 if test "$with_gnu_ld" = yes; then
15259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15260 else
15261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15262 case $host_os in
15263 sco3.2v5*)
15264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15265 ;;
15266 esac
15267 fi
15268 sys_lib_dlsearch_path_spec='/usr/lib'
15269 ;;
15270
15271 tpf*)
15272 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15273 version_type=linux
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath=no
15279 hardcode_into_libs=yes
15280 ;;
15281
15282 uts4*)
15283 version_type=linux
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 shlibpath_var=LD_LIBRARY_PATH
15287 ;;
15288
15289 *)
15290 dynamic_linker=no
15291 ;;
15292 esac
15293 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15294 $as_echo "$dynamic_linker" >&6; }
15295 test "$dynamic_linker" = no && can_build_shared=no
15296
15297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15298 if test "$GCC" = yes; then
15299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15300 fi
15301
15302 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15303 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15304 fi
15305 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15306 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15307 fi
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15345 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15346 hardcode_action_CXX=
15347 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15348 test -n "$runpath_var_CXX" ||
15349 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15350
15351 # We can hardcode non-existent directories.
15352 if test "$hardcode_direct_CXX" != no &&
15353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15354 # have to relink, otherwise we might link with an installed library
15355 # when we should be linking with a yet-to-be-installed one
15356 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15357 test "$hardcode_minus_L_CXX" != no; then
15358 # Linking always hardcodes the temporary library directory.
15359 hardcode_action_CXX=relink
15360 else
15361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15362 hardcode_action_CXX=immediate
15363 fi
15364 else
15365 # We cannot hardcode anything, or else we can only hardcode existing
15366 # directories.
15367 hardcode_action_CXX=unsupported
15368 fi
15369 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15370 $as_echo "$hardcode_action_CXX" >&6; }
15371
15372 if test "$hardcode_action_CXX" = relink ||
15373 test "$inherit_rpath_CXX" = yes; then
15374 # Fast installation is not supported
15375 enable_fast_install=no
15376 elif test "$shlibpath_overrides_runpath" = yes ||
15377 test "$enable_shared" = no; then
15378 # Fast installation is not necessary
15379 enable_fast_install=needless
15380 fi
15381
15382
15383
15384
15385
15386
15387
15388 fi # test -n "$compiler"
15389
15390 CC=$lt_save_CC
15391 LDCXX=$LD
15392 LD=$lt_save_LD
15393 GCC=$lt_save_GCC
15394 with_gnu_ld=$lt_save_with_gnu_ld
15395 lt_cv_path_LDCXX=$lt_cv_path_LD
15396 lt_cv_path_LD=$lt_save_path_LD
15397 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15398 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15399 fi # test "$_lt_caught_CXX_error" != yes
15400
15401 ac_ext=c
15402 ac_cpp='$CPP $CPPFLAGS'
15403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419 ac_config_commands="$ac_config_commands libtool"
15420
15421
15422
15423
15424 # Only expand once:
15425
15426
15427
15428
15429
15430
15431
15432
15433 for ac_header in limits.h memory.h stddef.h stdlib.h string.h unistd.h
15434 do
15435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15438 $as_echo_n "checking for $ac_header... " >&6; }
15439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15440 $as_echo_n "(cached) " >&6
15441 fi
15442 ac_res=`eval 'as_val=${'$as_ac_Header'}
15443 $as_echo "$as_val"'`
15444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15445 $as_echo "$ac_res" >&6; }
15446 else
15447 # Is the header compilable?
15448 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15449 $as_echo_n "checking $ac_header usability... " >&6; }
15450 cat >conftest.$ac_ext <<_ACEOF
15451 /* confdefs.h. */
15452 _ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15456 $ac_includes_default
15457 #include <$ac_header>
15458 _ACEOF
15459 rm -f conftest.$ac_objext
15460 if { (ac_try="$ac_compile"
15461 case "(($ac_try" in
15462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15464 esac
15465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15466 $as_echo "$ac_try_echo") >&5
15467 (eval "$ac_compile") 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } && {
15474 test -z "$ac_c_werror_flag" ||
15475 test ! -s conftest.err
15476 } && test -s conftest.$ac_objext; then
15477 ac_header_compiler=yes
15478 else
15479 $as_echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_header_compiler=no
15483 fi
15484
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15487 $as_echo "$ac_header_compiler" >&6; }
15488
15489 # Is the header present?
15490 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15491 $as_echo_n "checking $ac_header presence... " >&6; }
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 #include <$ac_header>
15499 _ACEOF
15500 if { (ac_try="$ac_cpp conftest.$ac_ext"
15501 case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15504 esac
15505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15506 $as_echo "$ac_try_echo") >&5
15507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } >/dev/null && {
15514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15515 test ! -s conftest.err
15516 }; then
15517 ac_header_preproc=yes
15518 else
15519 $as_echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 ac_header_preproc=no
15523 fi
15524
15525 rm -f conftest.err conftest.$ac_ext
15526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15527 $as_echo "$ac_header_preproc" >&6; }
15528
15529 # So? What about this header?
15530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15531 yes:no: )
15532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15533 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15536 ac_header_preproc=yes
15537 ;;
15538 no:yes:* )
15539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15540 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15542 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15544 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15546 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15548 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15550 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15551 ( cat <<\_ASBOX
15552 ## -------------------------------- ##
15553 ## Report this to [email protected] ##
15554 ## -------------------------------- ##
15555 _ASBOX
15556 ) | sed "s/^/$as_me: WARNING: /" >&2
15557 ;;
15558 esac
15559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15560 $as_echo_n "checking for $ac_header... " >&6; }
15561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562 $as_echo_n "(cached) " >&6
15563 else
15564 eval "$as_ac_Header=\$ac_header_preproc"
15565 fi
15566 ac_res=`eval 'as_val=${'$as_ac_Header'}
15567 $as_echo "$as_val"'`
15568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15569 $as_echo "$ac_res" >&6; }
15570
15571 fi
15572 as_val=`eval 'as_val=${'$as_ac_Header'}
15573 $as_echo "$as_val"'`
15574 if test "x$as_val" = x""yes; then
15575 cat >>confdefs.h <<_ACEOF
15576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15577 _ACEOF
15578
15579 fi
15580
15581 done
15582
15583
15584 # Checks for typedefs, structures, and compiler characteristics.
15585 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15586 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15587 if test "${ac_cv_c_const+set}" = set; then
15588 $as_echo_n "(cached) " >&6
15589 else
15590 cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h. */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15596
15597 int
15598 main ()
15599 {
15600 /* FIXME: Include the comments suggested by Paul. */
15601 #ifndef __cplusplus
15602 /* Ultrix mips cc rejects this. */
15603 typedef int charset[2];
15604 const charset cs;
15605 /* SunOS 4.1.1 cc rejects this. */
15606 char const *const *pcpcc;
15607 char **ppc;
15608 /* NEC SVR4.0.2 mips cc rejects this. */
15609 struct point {int x, y;};
15610 static struct point const zero = {0,0};
15611 /* AIX XL C 1.02.0.0 rejects this.
15612 It does not let you subtract one const X* pointer from another in
15613 an arm of an if-expression whose if-part is not a constant
15614 expression */
15615 const char *g = "string";
15616 pcpcc = &g + (g ? g-g : 0);
15617 /* HPUX 7.0 cc rejects these. */
15618 ++pcpcc;
15619 ppc = (char**) pcpcc;
15620 pcpcc = (char const *const *) ppc;
15621 { /* SCO 3.2v4 cc rejects this. */
15622 char *t;
15623 char const *s = 0 ? (char *) 0 : (char const *) 0;
15624
15625 *t++ = 0;
15626 if (s) return 0;
15627 }
15628 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15629 int x[] = {25, 17};
15630 const int *foo = &x[0];
15631 ++foo;
15632 }
15633 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15634 typedef const int *iptr;
15635 iptr p = 0;
15636 ++p;
15637 }
15638 { /* AIX XL C 1.02.0.0 rejects this saying
15639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15640 struct s { int j; const int *ap[3]; };
15641 struct s *b; b->j = 5;
15642 }
15643 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15644 const int foo = 10;
15645 if (!foo) return 0;
15646 }
15647 return !cs[0] && !zero.x;
15648 #endif
15649
15650 ;
15651 return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext
15655 if { (ac_try="$ac_compile"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659 esac
15660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661 $as_echo "$ac_try_echo") >&5
15662 (eval "$ac_compile") 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest.$ac_objext; then
15672 ac_cv_c_const=yes
15673 else
15674 $as_echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 ac_cv_c_const=no
15678 fi
15679
15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 fi
15682 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15683 $as_echo "$ac_cv_c_const" >&6; }
15684 if test $ac_cv_c_const = no; then
15685
15686 cat >>confdefs.h <<\_ACEOF
15687 #define const /**/
15688 _ACEOF
15689
15690 fi
15691
15692 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
15693 $as_echo_n "checking for size_t... " >&6; }
15694 if test "${ac_cv_type_size_t+set}" = set; then
15695 $as_echo_n "(cached) " >&6
15696 else
15697 ac_cv_type_size_t=no
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 $ac_includes_default
15705 int
15706 main ()
15707 {
15708 if (sizeof (size_t))
15709 return 0;
15710 ;
15711 return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (ac_try="$ac_compile"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719 esac
15720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721 $as_echo "$ac_try_echo") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 $ac_includes_default
15739 int
15740 main ()
15741 {
15742 if (sizeof ((size_t)))
15743 return 0;
15744 ;
15745 return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (ac_try="$ac_compile"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753 esac
15754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15755 $as_echo "$ac_try_echo") >&5
15756 (eval "$ac_compile") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest.$ac_objext; then
15766 :
15767 else
15768 $as_echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_cv_type_size_t=yes
15772 fi
15773
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 else
15776 $as_echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15778
15779
15780 fi
15781
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 fi
15784 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15785 $as_echo "$ac_cv_type_size_t" >&6; }
15786 if test "x$ac_cv_type_size_t" = x""yes; then
15787 :
15788 else
15789
15790 cat >>confdefs.h <<_ACEOF
15791 #define size_t unsigned int
15792 _ACEOF
15793
15794 fi
15795
15796 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
15797 $as_echo_n "checking for ssize_t... " >&6; }
15798 if test "${ac_cv_type_ssize_t+set}" = set; then
15799 $as_echo_n "(cached) " >&6
15800 else
15801 ac_cv_type_ssize_t=no
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h. */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 $ac_includes_default
15809 int
15810 main ()
15811 {
15812 if (sizeof (ssize_t))
15813 return 0;
15814 ;
15815 return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext
15819 if { (ac_try="$ac_compile"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15823 esac
15824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15825 $as_echo "$ac_try_echo") >&5
15826 (eval "$ac_compile") 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest.$ac_objext; then
15836 cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h. */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842 $ac_includes_default
15843 int
15844 main ()
15845 {
15846 if (sizeof ((ssize_t)))
15847 return 0;
15848 ;
15849 return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (ac_try="$ac_compile"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857 esac
15858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15859 $as_echo "$ac_try_echo") >&5
15860 (eval "$ac_compile") 2>conftest.er1
15861 ac_status=$?
15862 grep -v '^ *+' conftest.er1 >conftest.err
15863 rm -f conftest.er1
15864 cat conftest.err >&5
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } && {
15867 test -z "$ac_c_werror_flag" ||
15868 test ! -s conftest.err
15869 } && test -s conftest.$ac_objext; then
15870 :
15871 else
15872 $as_echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875 ac_cv_type_ssize_t=yes
15876 fi
15877
15878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879 else
15880 $as_echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883
15884 fi
15885
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15889 $as_echo "$ac_cv_type_ssize_t" >&6; }
15890 if test "x$ac_cv_type_ssize_t" = x""yes; then
15891 :
15892 else
15893
15894 cat >>confdefs.h <<_ACEOF
15895 #define ssize_t int
15896 _ACEOF
15897
15898 fi
15899
15900 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
15901 $as_echo_n "checking for off_t... " >&6; }
15902 if test "${ac_cv_type_off_t+set}" = set; then
15903 $as_echo_n "(cached) " >&6
15904 else
15905 ac_cv_type_off_t=no
15906 cat >conftest.$ac_ext <<_ACEOF
15907 /* confdefs.h. */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 $ac_includes_default
15913 int
15914 main ()
15915 {
15916 if (sizeof (off_t))
15917 return 0;
15918 ;
15919 return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927 esac
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930 (eval "$ac_compile") 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } && {
15937 test -z "$ac_c_werror_flag" ||
15938 test ! -s conftest.err
15939 } && test -s conftest.$ac_objext; then
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h. */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 $ac_includes_default
15947 int
15948 main ()
15949 {
15950 if (sizeof ((off_t)))
15951 return 0;
15952 ;
15953 return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (ac_try="$ac_compile"
15958 case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15961 esac
15962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15963 $as_echo "$ac_try_echo") >&5
15964 (eval "$ac_compile") 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } && {
15971 test -z "$ac_c_werror_flag" ||
15972 test ! -s conftest.err
15973 } && test -s conftest.$ac_objext; then
15974 :
15975 else
15976 $as_echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 ac_cv_type_off_t=yes
15980 fi
15981
15982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15983 else
15984 $as_echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15986
15987
15988 fi
15989
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 fi
15992 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15993 $as_echo "$ac_cv_type_off_t" >&6; }
15994 if test "x$ac_cv_type_off_t" = x""yes; then
15995 :
15996 else
15997
15998 cat >>confdefs.h <<_ACEOF
15999 #define off_t long int
16000 _ACEOF
16001
16002 fi
16003
16004
16005 # Checks for library functions.
16006
16007 for ac_header in stdlib.h
16008 do
16009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16012 $as_echo_n "checking for $ac_header... " >&6; }
16013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16014 $as_echo_n "(cached) " >&6
16015 fi
16016 ac_res=`eval 'as_val=${'$as_ac_Header'}
16017 $as_echo "$as_val"'`
16018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16019 $as_echo "$ac_res" >&6; }
16020 else
16021 # Is the header compilable?
16022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023 $as_echo_n "checking $ac_header usability... " >&6; }
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h. */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 $ac_includes_default
16031 #include <$ac_header>
16032 _ACEOF
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038 esac
16039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16040 $as_echo "$ac_try_echo") >&5
16041 (eval "$ac_compile") 2>conftest.er1
16042 ac_status=$?
16043 grep -v '^ *+' conftest.er1 >conftest.err
16044 rm -f conftest.er1
16045 cat conftest.err >&5
16046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } && {
16048 test -z "$ac_c_werror_flag" ||
16049 test ! -s conftest.err
16050 } && test -s conftest.$ac_objext; then
16051 ac_header_compiler=yes
16052 else
16053 $as_echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_header_compiler=no
16057 fi
16058
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16061 $as_echo "$ac_header_compiler" >&6; }
16062
16063 # Is the header present?
16064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16065 $as_echo_n "checking $ac_header presence... " >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 #include <$ac_header>
16073 _ACEOF
16074 if { (ac_try="$ac_cpp conftest.$ac_ext"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078 esac
16079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16080 $as_echo "$ac_try_echo") >&5
16081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16082 ac_status=$?
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
16086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } >/dev/null && {
16088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16089 test ! -s conftest.err
16090 }; then
16091 ac_header_preproc=yes
16092 else
16093 $as_echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16095
16096 ac_header_preproc=no
16097 fi
16098
16099 rm -f conftest.err conftest.$ac_ext
16100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16101 $as_echo "$ac_header_preproc" >&6; }
16102
16103 # So? What about this header?
16104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16105 yes:no: )
16106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16110 ac_header_preproc=yes
16111 ;;
16112 no:yes:* )
16113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16125 ( cat <<\_ASBOX
16126 ## -------------------------------- ##
16127 ## Report this to [email protected] ##
16128 ## -------------------------------- ##
16129 _ASBOX
16130 ) | sed "s/^/$as_me: WARNING: /" >&2
16131 ;;
16132 esac
16133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16134 $as_echo_n "checking for $ac_header... " >&6; }
16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 $as_echo_n "(cached) " >&6
16137 else
16138 eval "$as_ac_Header=\$ac_header_preproc"
16139 fi
16140 ac_res=`eval 'as_val=${'$as_ac_Header'}
16141 $as_echo "$as_val"'`
16142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16143 $as_echo "$ac_res" >&6; }
16144
16145 fi
16146 as_val=`eval 'as_val=${'$as_ac_Header'}
16147 $as_echo "$as_val"'`
16148 if test "x$as_val" = x""yes; then
16149 cat >>confdefs.h <<_ACEOF
16150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16151 _ACEOF
16152
16153 fi
16154
16155 done
16156
16157 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
16158 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16159 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
16160 $as_echo_n "(cached) " >&6
16161 else
16162 if test "$cross_compiling" = yes; then
16163 ac_cv_func_malloc_0_nonnull=no
16164 else
16165 cat >conftest.$ac_ext <<_ACEOF
16166 /* confdefs.h. */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16172 # include <stdlib.h>
16173 #else
16174 char *malloc ();
16175 #endif
16176
16177 int
16178 main ()
16179 {
16180 return ! malloc (0);
16181 ;
16182 return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_link") 2>&5
16194 ac_status=$?
16195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200 esac
16201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202 $as_echo "$ac_try_echo") >&5
16203 (eval "$ac_try") 2>&5
16204 ac_status=$?
16205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_cv_func_malloc_0_nonnull=yes
16208 else
16209 $as_echo "$as_me: program exited with status $ac_status" >&5
16210 $as_echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213 ( exit $ac_status )
16214 ac_cv_func_malloc_0_nonnull=no
16215 fi
16216 rm -rf conftest.dSYM
16217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16218 fi
16219
16220
16221 fi
16222 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
16223 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16224 if test $ac_cv_func_malloc_0_nonnull = yes; then
16225
16226 cat >>confdefs.h <<\_ACEOF
16227 #define HAVE_MALLOC 1
16228 _ACEOF
16229
16230 else
16231 cat >>confdefs.h <<\_ACEOF
16232 #define HAVE_MALLOC 0
16233 _ACEOF
16234
16235 case " $LIBOBJS " in
16236 *" malloc.$ac_objext "* ) ;;
16237 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16238 ;;
16239 esac
16240
16241
16242 cat >>confdefs.h <<\_ACEOF
16243 #define malloc rpl_malloc
16244 _ACEOF
16245
16246 fi
16247
16248
16249
16250
16251 for ac_header in stdlib.h
16252 do
16253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16256 $as_echo_n "checking for $ac_header... " >&6; }
16257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16258 $as_echo_n "(cached) " >&6
16259 fi
16260 ac_res=`eval 'as_val=${'$as_ac_Header'}
16261 $as_echo "$as_val"'`
16262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16263 $as_echo "$ac_res" >&6; }
16264 else
16265 # Is the header compilable?
16266 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16267 $as_echo_n "checking $ac_header usability... " >&6; }
16268 cat >conftest.$ac_ext <<_ACEOF
16269 /* confdefs.h. */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 $ac_includes_default
16275 #include <$ac_header>
16276 _ACEOF
16277 rm -f conftest.$ac_objext
16278 if { (ac_try="$ac_compile"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282 esac
16283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16284 $as_echo "$ac_try_echo") >&5
16285 (eval "$ac_compile") 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } && {
16292 test -z "$ac_c_werror_flag" ||
16293 test ! -s conftest.err
16294 } && test -s conftest.$ac_objext; then
16295 ac_header_compiler=yes
16296 else
16297 $as_echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300 ac_header_compiler=no
16301 fi
16302
16303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16305 $as_echo "$ac_header_compiler" >&6; }
16306
16307 # Is the header present?
16308 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16309 $as_echo_n "checking $ac_header presence... " >&6; }
16310 cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h. */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h. */
16316 #include <$ac_header>
16317 _ACEOF
16318 if { (ac_try="$ac_cpp conftest.$ac_ext"
16319 case "(($ac_try" in
16320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16321 *) ac_try_echo=$ac_try;;
16322 esac
16323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16324 $as_echo "$ac_try_echo") >&5
16325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } >/dev/null && {
16332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 }; then
16335 ac_header_preproc=yes
16336 else
16337 $as_echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_header_preproc=no
16341 fi
16342
16343 rm -f conftest.err conftest.$ac_ext
16344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16345 $as_echo "$ac_header_preproc" >&6; }
16346
16347 # So? What about this header?
16348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16349 yes:no: )
16350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16351 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16354 ac_header_preproc=yes
16355 ;;
16356 no:yes:* )
16357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16358 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16360 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16362 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16364 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16368 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16369 ( cat <<\_ASBOX
16370 ## -------------------------------- ##
16371 ## Report this to [email protected] ##
16372 ## -------------------------------- ##
16373 _ASBOX
16374 ) | sed "s/^/$as_me: WARNING: /" >&2
16375 ;;
16376 esac
16377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16378 $as_echo_n "checking for $ac_header... " >&6; }
16379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16380 $as_echo_n "(cached) " >&6
16381 else
16382 eval "$as_ac_Header=\$ac_header_preproc"
16383 fi
16384 ac_res=`eval 'as_val=${'$as_ac_Header'}
16385 $as_echo "$as_val"'`
16386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16387 $as_echo "$ac_res" >&6; }
16388
16389 fi
16390 as_val=`eval 'as_val=${'$as_ac_Header'}
16391 $as_echo "$as_val"'`
16392 if test "x$as_val" = x""yes; then
16393 cat >>confdefs.h <<_ACEOF
16394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16395 _ACEOF
16396
16397 fi
16398
16399 done
16400
16401 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
16402 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16403 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
16404 $as_echo_n "(cached) " >&6
16405 else
16406 if test "$cross_compiling" = yes; then
16407 ac_cv_func_realloc_0_nonnull=no
16408 else
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16416 # include <stdlib.h>
16417 #else
16418 char *realloc ();
16419 #endif
16420
16421 int
16422 main ()
16423 {
16424 return ! realloc (0, 0);
16425 ;
16426 return 0;
16427 }
16428 _ACEOF
16429 rm -f conftest$ac_exeext
16430 if { (ac_try="$ac_link"
16431 case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16434 esac
16435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16436 $as_echo "$ac_try_echo") >&5
16437 (eval "$ac_link") 2>&5
16438 ac_status=$?
16439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16441 { (case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444 esac
16445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16446 $as_echo "$ac_try_echo") >&5
16447 (eval "$ac_try") 2>&5
16448 ac_status=$?
16449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16451 ac_cv_func_realloc_0_nonnull=yes
16452 else
16453 $as_echo "$as_me: program exited with status $ac_status" >&5
16454 $as_echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16456
16457 ( exit $ac_status )
16458 ac_cv_func_realloc_0_nonnull=no
16459 fi
16460 rm -rf conftest.dSYM
16461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16462 fi
16463
16464
16465 fi
16466 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
16467 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16468 if test $ac_cv_func_realloc_0_nonnull = yes; then
16469
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_REALLOC 1
16472 _ACEOF
16473
16474 else
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE_REALLOC 0
16477 _ACEOF
16478
16479 case " $LIBOBJS " in
16480 *" realloc.$ac_objext "* ) ;;
16481 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16482 ;;
16483 esac
16484
16485
16486 cat >>confdefs.h <<\_ACEOF
16487 #define realloc rpl_realloc
16488 _ACEOF
16489
16490 fi
16491
16492
16493
16494 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
16495 $as_echo_n "checking for working memcmp... " >&6; }
16496 if test "${ac_cv_func_memcmp_working+set}" = set; then
16497 $as_echo_n "(cached) " >&6
16498 else
16499 if test "$cross_compiling" = yes; then
16500 ac_cv_func_memcmp_working=no
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h. */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 $ac_includes_default
16509 int
16510 main ()
16511 {
16512
16513 /* Some versions of memcmp are not 8-bit clean. */
16514 char c0 = '\100', c1 = '\200', c2 = '\201';
16515 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16516 return 1;
16517
16518 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16519 or more and with at least one buffer not starting on a 4-byte boundary.
16520 William Lewis provided this test program. */
16521 {
16522 char foo[21];
16523 char bar[21];
16524 int i;
16525 for (i = 0; i < 4; i++)
16526 {
16527 char *a = foo + i;
16528 char *b = bar + i;
16529 strcpy (a, "--------01111111");
16530 strcpy (b, "--------10000000");
16531 if (memcmp (a, b, 16) >= 0)
16532 return 1;
16533 }
16534 return 0;
16535 }
16536
16537 ;
16538 return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest$ac_exeext
16542 if { (ac_try="$ac_link"
16543 case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16546 esac
16547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548 $as_echo "$ac_try_echo") >&5
16549 (eval "$ac_link") 2>&5
16550 ac_status=$?
16551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556 esac
16557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558 $as_echo "$ac_try_echo") >&5
16559 (eval "$ac_try") 2>&5
16560 ac_status=$?
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 ac_cv_func_memcmp_working=yes
16564 else
16565 $as_echo "$as_me: program exited with status $ac_status" >&5
16566 $as_echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ( exit $ac_status )
16570 ac_cv_func_memcmp_working=no
16571 fi
16572 rm -rf conftest.dSYM
16573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16574 fi
16575
16576
16577 fi
16578 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
16579 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16580 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16581 *" memcmp.$ac_objext "* ) ;;
16582 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16583 ;;
16584 esac
16585
16586
16587 { $as_echo "$as_me:$LINENO: checking for floor" >&5
16588 $as_echo_n "checking for floor... " >&6; }
16589 if test "${ac_cv_func_floor+set}" = set; then
16590 $as_echo_n "(cached) " >&6
16591 else
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 /* Define floor to an innocuous variant, in case <limits.h> declares floor.
16599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16600 #define floor innocuous_floor
16601
16602 /* System header to define __stub macros and hopefully few prototypes,
16603 which can conflict with char floor (); below.
16604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16605 <limits.h> exists even on freestanding compilers. */
16606
16607 #ifdef __STDC__
16608 # include <limits.h>
16609 #else
16610 # include <assert.h>
16611 #endif
16612
16613 #undef floor
16614
16615 /* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
16618 #ifdef __cplusplus
16619 extern "C"
16620 #endif
16621 char floor ();
16622 /* The GNU C library defines this for functions which it implements
16623 to always fail with ENOSYS. Some functions are actually named
16624 something starting with __ and the normal name is an alias. */
16625 #if defined __stub_floor || defined __stub___floor
16626 choke me
16627 #endif
16628
16629 int
16630 main ()
16631 {
16632 return floor ();
16633 ;
16634 return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (ac_try="$ac_link"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642 esac
16643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16644 $as_echo "$ac_try_echo") >&5
16645 (eval "$ac_link") 2>conftest.er1
16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
16650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } && {
16652 test -z "$ac_c_werror_flag" ||
16653 test ! -s conftest.err
16654 } && test -s conftest$ac_exeext && {
16655 test "$cross_compiling" = yes ||
16656 $as_test_x conftest$ac_exeext
16657 }; then
16658 ac_cv_func_floor=yes
16659 else
16660 $as_echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16662
16663 ac_cv_func_floor=no
16664 fi
16665
16666 rm -rf conftest.dSYM
16667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16668 conftest$ac_exeext conftest.$ac_ext
16669 fi
16670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_floor" >&5
16671 $as_echo "$ac_cv_func_floor" >&6; }
16672 if test "x$ac_cv_func_floor" = x""yes; then
16673 :
16674 else
16675
16676 { $as_echo "$as_me:$LINENO: checking for floor in -lmath" >&5
16677 $as_echo_n "checking for floor in -lmath... " >&6; }
16678 if test "${ac_cv_lib_math_floor+set}" = set; then
16679 $as_echo_n "(cached) " >&6
16680 else
16681 ac_check_lib_save_LIBS=$LIBS
16682 LIBS="-lmath $LIBS"
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h. */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689
16690 /* Override any GCC internal prototype to avoid an error.
16691 Use char because int might match the return type of a GCC
16692 builtin and then its argument prototype would still apply. */
16693 #ifdef __cplusplus
16694 extern "C"
16695 #endif
16696 char floor ();
16697 int
16698 main ()
16699 {
16700 return floor ();
16701 ;
16702 return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16712 $as_echo "$ac_try_echo") >&5
16713 (eval "$ac_link") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } && {
16720 test -z "$ac_c_werror_flag" ||
16721 test ! -s conftest.err
16722 } && test -s conftest$ac_exeext && {
16723 test "$cross_compiling" = yes ||
16724 $as_test_x conftest$ac_exeext
16725 }; then
16726 ac_cv_lib_math_floor=yes
16727 else
16728 $as_echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_lib_math_floor=no
16732 fi
16733
16734 rm -rf conftest.dSYM
16735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16736 conftest$ac_exeext conftest.$ac_ext
16737 LIBS=$ac_check_lib_save_LIBS
16738 fi
16739 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_math_floor" >&5
16740 $as_echo "$ac_cv_lib_math_floor" >&6; }
16741 if test "x$ac_cv_lib_math_floor" = x""yes; then
16742 cat >>confdefs.h <<_ACEOF
16743 #define HAVE_LIBMATH 1
16744 _ACEOF
16745
16746 LIBS="-lmath $LIBS"
16747
16748 fi
16749
16750 fi
16751
16752 { $as_echo "$as_me:$LINENO: checking for round" >&5
16753 $as_echo_n "checking for round... " >&6; }
16754 if test "${ac_cv_func_round+set}" = set; then
16755 $as_echo_n "(cached) " >&6
16756 else
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h. */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define round to an innocuous variant, in case <limits.h> declares round.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define round innocuous_round
16766
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char round (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16771
16772 #ifdef __STDC__
16773 # include <limits.h>
16774 #else
16775 # include <assert.h>
16776 #endif
16777
16778 #undef round
16779
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char round ();
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined __stub_round || defined __stub___round
16791 choke me
16792 #endif
16793
16794 int
16795 main ()
16796 {
16797 return round ();
16798 ;
16799 return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807 esac
16808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809 $as_echo "$ac_try_echo") >&5
16810 (eval "$ac_link") 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest$ac_exeext && {
16820 test "$cross_compiling" = yes ||
16821 $as_test_x conftest$ac_exeext
16822 }; then
16823 ac_cv_func_round=yes
16824 else
16825 $as_echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16827
16828 ac_cv_func_round=no
16829 fi
16830
16831 rm -rf conftest.dSYM
16832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16833 conftest$ac_exeext conftest.$ac_ext
16834 fi
16835 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_round" >&5
16836 $as_echo "$ac_cv_func_round" >&6; }
16837 if test "x$ac_cv_func_round" = x""yes; then
16838 :
16839 else
16840
16841 { $as_echo "$as_me:$LINENO: checking for round in -lmath" >&5
16842 $as_echo_n "checking for round in -lmath... " >&6; }
16843 if test "${ac_cv_lib_math_round+set}" = set; then
16844 $as_echo_n "(cached) " >&6
16845 else
16846 ac_check_lib_save_LIBS=$LIBS
16847 LIBS="-lmath $LIBS"
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854
16855 /* Override any GCC internal prototype to avoid an error.
16856 Use char because int might match the return type of a GCC
16857 builtin and then its argument prototype would still apply. */
16858 #ifdef __cplusplus
16859 extern "C"
16860 #endif
16861 char round ();
16862 int
16863 main ()
16864 {
16865 return round ();
16866 ;
16867 return 0;
16868 }
16869 _ACEOF
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16875 esac
16876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16877 $as_echo "$ac_try_echo") >&5
16878 (eval "$ac_link") 2>conftest.er1
16879 ac_status=$?
16880 grep -v '^ *+' conftest.er1 >conftest.err
16881 rm -f conftest.er1
16882 cat conftest.err >&5
16883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && {
16885 test -z "$ac_c_werror_flag" ||
16886 test ! -s conftest.err
16887 } && test -s conftest$ac_exeext && {
16888 test "$cross_compiling" = yes ||
16889 $as_test_x conftest$ac_exeext
16890 }; then
16891 ac_cv_lib_math_round=yes
16892 else
16893 $as_echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ac_cv_lib_math_round=no
16897 fi
16898
16899 rm -rf conftest.dSYM
16900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16901 conftest$ac_exeext conftest.$ac_ext
16902 LIBS=$ac_check_lib_save_LIBS
16903 fi
16904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_math_round" >&5
16905 $as_echo "$ac_cv_lib_math_round" >&6; }
16906 if test "x$ac_cv_lib_math_round" = x""yes; then
16907 cat >>confdefs.h <<_ACEOF
16908 #define HAVE_LIBMATH 1
16909 _ACEOF
16910
16911 LIBS="-lmath $LIBS"
16912
16913 fi
16914
16915 fi
16916
16917
16918 for ac_func in strtoul
16919 do
16920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 $as_echo_n "checking for $ac_func... " >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924 $as_echo_n "(cached) " >&6
16925 else
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16934 #define $ac_func innocuous_$ac_func
16935
16936 /* System header to define __stub macros and hopefully few prototypes,
16937 which can conflict with char $ac_func (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16940
16941 #ifdef __STDC__
16942 # include <limits.h>
16943 #else
16944 # include <assert.h>
16945 #endif
16946
16947 #undef $ac_func
16948
16949 /* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 char $ac_func ();
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16960 choke me
16961 #endif
16962
16963 int
16964 main ()
16965 {
16966 return $ac_func ();
16967 ;
16968 return 0;
16969 }
16970 _ACEOF
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976 esac
16977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16978 $as_echo "$ac_try_echo") >&5
16979 (eval "$ac_link") 2>conftest.er1
16980 ac_status=$?
16981 grep -v '^ *+' conftest.er1 >conftest.err
16982 rm -f conftest.er1
16983 cat conftest.err >&5
16984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && {
16986 test -z "$ac_c_werror_flag" ||
16987 test ! -s conftest.err
16988 } && test -s conftest$ac_exeext && {
16989 test "$cross_compiling" = yes ||
16990 $as_test_x conftest$ac_exeext
16991 }; then
16992 eval "$as_ac_var=yes"
16993 else
16994 $as_echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16996
16997 eval "$as_ac_var=no"
16998 fi
16999
17000 rm -rf conftest.dSYM
17001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17002 conftest$ac_exeext conftest.$ac_ext
17003 fi
17004 ac_res=`eval 'as_val=${'$as_ac_var'}
17005 $as_echo "$as_val"'`
17006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17007 $as_echo "$ac_res" >&6; }
17008 as_val=`eval 'as_val=${'$as_ac_var'}
17009 $as_echo "$as_val"'`
17010 if test "x$as_val" = x""yes; then
17011 cat >>confdefs.h <<_ACEOF
17012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17013 _ACEOF
17014
17015 fi
17016 done
17017
17018
17019
17020
17021 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile src/pics/Makefile php/Makefile php/libpuzzle/Makefile php/libpuzzle/include/Makefile php/libpuzzle/modules/Makefile php/libpuzzle/build/Makefile php/libpuzzle/tests/Makefile php/libpuzzle/tests/pics/Makefile php/examples/Makefile php/examples/similar/Makefile"
17022
17023 cat >confcache <<\_ACEOF
17024 # This file is a shell script that caches the results of configure
17025 # tests run on this system so they can be shared between configure
17026 # scripts and configure runs, see configure's option --config-cache.
17027 # It is not useful on other systems. If it contains results you don't
17028 # want to keep, you may remove or edit it.
17029 #
17030 # config.status only pays attention to the cache file if you give it
17031 # the --recheck option to rerun configure.
17032 #
17033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17035 # following values.
17036
17037 _ACEOF
17038
17039 # The following way of writing the cache mishandles newlines in values,
17040 # but we know of no workaround that is simple, portable, and efficient.
17041 # So, we kill variables containing newlines.
17042 # Ultrix sh set writes to stderr and can't be redirected directly,
17043 # and sets the high bit in the cache file unless we assign to the vars.
17044 (
17045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17046 eval ac_val=\$$ac_var
17047 case $ac_val in #(
17048 *${as_nl}*)
17049 case $ac_var in #(
17050 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17052 esac
17053 case $ac_var in #(
17054 _ | IFS | as_nl) ;; #(
17055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17056 *) $as_unset $ac_var ;;
17057 esac ;;
17058 esac
17059 done
17060
17061 (set) 2>&1 |
17062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17063 *${as_nl}ac_space=\ *)
17064 # `set' does not quote correctly, so add quotes (double-quote
17065 # substitution turns \\\\ into \\, and sed turns \\ into \).
17066 sed -n \
17067 "s/'/'\\\\''/g;
17068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17069 ;; #(
17070 *)
17071 # `set' quotes correctly as required by POSIX, so do not add quotes.
17072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17073 ;;
17074 esac |
17075 sort
17076 ) |
17077 sed '
17078 /^ac_cv_env_/b end
17079 t clear
17080 :clear
17081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17082 t end
17083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17084 :end' >>confcache
17085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17086 if test -w "$cache_file"; then
17087 test "x$cache_file" != "x/dev/null" &&
17088 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17089 $as_echo "$as_me: updating cache $cache_file" >&6;}
17090 cat confcache >$cache_file
17091 else
17092 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17093 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17094 fi
17095 fi
17096 rm -f confcache
17097
17098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17099 # Let make expand exec_prefix.
17100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17101
17102 DEFS=-DHAVE_CONFIG_H
17103
17104 ac_libobjs=
17105 ac_ltlibobjs=
17106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17107 # 1. Remove the extension, and $U if already installed.
17108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17111 # will be set to the directory where LIBOBJS objects are built.
17112 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17113 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17114 done
17115 LIBOBJS=$ac_libobjs
17116
17117 LTLIBOBJS=$ac_ltlibobjs
17118
17119
17120 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17121 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17122 Usually this means the macro was only invoked conditionally." >&5
17123 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17124 Usually this means the macro was only invoked conditionally." >&2;}
17125 { (exit 1); exit 1; }; }
17126 fi
17127 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17128 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17129 Usually this means the macro was only invoked conditionally." >&5
17130 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17131 Usually this means the macro was only invoked conditionally." >&2;}
17132 { (exit 1); exit 1; }; }
17133 fi
17134 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17135 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17136 Usually this means the macro was only invoked conditionally." >&5
17137 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17138 Usually this means the macro was only invoked conditionally." >&2;}
17139 { (exit 1); exit 1; }; }
17140 fi
17141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17142 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17143 Usually this means the macro was only invoked conditionally." >&5
17144 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17145 Usually this means the macro was only invoked conditionally." >&2;}
17146 { (exit 1); exit 1; }; }
17147 fi
17148 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17149 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17150 Usually this means the macro was only invoked conditionally." >&5
17151 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17152 Usually this means the macro was only invoked conditionally." >&2;}
17153 { (exit 1); exit 1; }; }
17154 fi
17155
17156 : ${CONFIG_STATUS=./config.status}
17157 ac_write_fail=0
17158 ac_clean_files_save=$ac_clean_files
17159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17160 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17162 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17163 #! $SHELL
17164 # Generated by $as_me.
17165 # Run this file to recreate the current configuration.
17166 # Compiler output produced by configure, useful for debugging
17167 # configure, is in config.log if it exists.
17168
17169 debug=false
17170 ac_cs_recheck=false
17171 ac_cs_silent=false
17172 SHELL=\${CONFIG_SHELL-$SHELL}
17173 _ACEOF
17174
17175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17176 ## --------------------- ##
17177 ## M4sh Initialization. ##
17178 ## --------------------- ##
17179
17180 # Be more Bourne compatible
17181 DUALCASE=1; export DUALCASE # for MKS sh
17182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17183 emulate sh
17184 NULLCMD=:
17185 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17186 # is contrary to our usage. Disable this feature.
17187 alias -g '${1+"$@"}'='"$@"'
17188 setopt NO_GLOB_SUBST
17189 else
17190 case `(set -o) 2>/dev/null` in
17191 *posix*) set -o posix ;;
17192 esac
17193
17194 fi
17195
17196
17197
17198
17199 # PATH needs CR
17200 # Avoid depending upon Character Ranges.
17201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17204 as_cr_digits='0123456789'
17205 as_cr_alnum=$as_cr_Letters$as_cr_digits
17206
17207 as_nl='
17208 '
17209 export as_nl
17210 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17211 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17214 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17215 as_echo='printf %s\n'
17216 as_echo_n='printf %s'
17217 else
17218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17220 as_echo_n='/usr/ucb/echo -n'
17221 else
17222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17223 as_echo_n_body='eval
17224 arg=$1;
17225 case $arg in
17226 *"$as_nl"*)
17227 expr "X$arg" : "X\\(.*\\)$as_nl";
17228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17229 esac;
17230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17231 '
17232 export as_echo_n_body
17233 as_echo_n='sh -c $as_echo_n_body as_echo'
17234 fi
17235 export as_echo_body
17236 as_echo='sh -c $as_echo_body as_echo'
17237 fi
17238
17239 # The user is always right.
17240 if test "${PATH_SEPARATOR+set}" != set; then
17241 PATH_SEPARATOR=:
17242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17244 PATH_SEPARATOR=';'
17245 }
17246 fi
17247
17248 # Support unset when possible.
17249 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17250 as_unset=unset
17251 else
17252 as_unset=false
17253 fi
17254
17255
17256 # IFS
17257 # We need space, tab and new line, in precisely that order. Quoting is
17258 # there to prevent editors from complaining about space-tab.
17259 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17260 # splitting by setting IFS to empty value.)
17261 IFS=" "" $as_nl"
17262
17263 # Find who we are. Look in the path if we contain no directory separator.
17264 case $0 in
17265 *[\\/]* ) as_myself=$0 ;;
17266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17267 for as_dir in $PATH
17268 do
17269 IFS=$as_save_IFS
17270 test -z "$as_dir" && as_dir=.
17271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17272 done
17273 IFS=$as_save_IFS
17274
17275 ;;
17276 esac
17277 # We did not find ourselves, most probably we were run as `sh COMMAND'
17278 # in which case we are not to be found in the path.
17279 if test "x$as_myself" = x; then
17280 as_myself=$0
17281 fi
17282 if test ! -f "$as_myself"; then
17283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17284 { (exit 1); exit 1; }
17285 fi
17286
17287 # Work around bugs in pre-3.0 UWIN ksh.
17288 for as_var in ENV MAIL MAILPATH
17289 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17290 done
17291 PS1='$ '
17292 PS2='> '
17293 PS4='+ '
17294
17295 # NLS nuisances.
17296 LC_ALL=C
17297 export LC_ALL
17298 LANGUAGE=C
17299 export LANGUAGE
17300
17301 # Required to use basename.
17302 if expr a : '\(a\)' >/dev/null 2>&1 &&
17303 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17304 as_expr=expr
17305 else
17306 as_expr=false
17307 fi
17308
17309 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17310 as_basename=basename
17311 else
17312 as_basename=false
17313 fi
17314
17315
17316 # Name of the executable.
17317 as_me=`$as_basename -- "$0" ||
17318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17319 X"$0" : 'X\(//\)$' \| \
17320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17321 $as_echo X/"$0" |
17322 sed '/^.*\/\([^/][^/]*\)\/*$/{
17323 s//\1/
17324 q
17325 }
17326 /^X\/\(\/\/\)$/{
17327 s//\1/
17328 q
17329 }
17330 /^X\/\(\/\).*/{
17331 s//\1/
17332 q
17333 }
17334 s/.*/./; q'`
17335
17336 # CDPATH.
17337 $as_unset CDPATH
17338
17339
17340
17341 as_lineno_1=$LINENO
17342 as_lineno_2=$LINENO
17343 test "x$as_lineno_1" != "x$as_lineno_2" &&
17344 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17345
17346 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17347 # uniformly replaced by the line number. The first 'sed' inserts a
17348 # line-number line after each line using $LINENO; the second 'sed'
17349 # does the real work. The second script uses 'N' to pair each
17350 # line-number line with the line containing $LINENO, and appends
17351 # trailing '-' during substitution so that $LINENO is not a special
17352 # case at line end.
17353 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17354 # scripts with optimization help from Paolo Bonzini. Blame Lee
17355 # E. McMahon (1931-1989) for sed's syntax. :-)
17356 sed -n '
17357 p
17358 /[$]LINENO/=
17359 ' <$as_myself |
17360 sed '
17361 s/[$]LINENO.*/&-/
17362 t lineno
17363 b
17364 :lineno
17365 N
17366 :loop
17367 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17368 t loop
17369 s/-\n.*//
17370 ' >$as_me.lineno &&
17371 chmod +x "$as_me.lineno" ||
17372 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17373 { (exit 1); exit 1; }; }
17374
17375 # Don't try to exec as it changes $[0], causing all sort of problems
17376 # (the dirname of $[0] is not the place where we might find the
17377 # original and so on. Autoconf is especially sensitive to this).
17378 . "./$as_me.lineno"
17379 # Exit status is that of the last command.
17380 exit
17381 }
17382
17383
17384 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17385 as_dirname=dirname
17386 else
17387 as_dirname=false
17388 fi
17389
17390 ECHO_C= ECHO_N= ECHO_T=
17391 case `echo -n x` in
17392 -n*)
17393 case `echo 'x\c'` in
17394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17395 *) ECHO_C='\c';;
17396 esac;;
17397 *)
17398 ECHO_N='-n';;
17399 esac
17400 if expr a : '\(a\)' >/dev/null 2>&1 &&
17401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17402 as_expr=expr
17403 else
17404 as_expr=false
17405 fi
17406
17407 rm -f conf$$ conf$$.exe conf$$.file
17408 if test -d conf$$.dir; then
17409 rm -f conf$$.dir/conf$$.file
17410 else
17411 rm -f conf$$.dir
17412 mkdir conf$$.dir 2>/dev/null
17413 fi
17414 if (echo >conf$$.file) 2>/dev/null; then
17415 if ln -s conf$$.file conf$$ 2>/dev/null; then
17416 as_ln_s='ln -s'
17417 # ... but there are two gotchas:
17418 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17419 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17420 # In both cases, we have to default to `cp -p'.
17421 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17422 as_ln_s='cp -p'
17423 elif ln conf$$.file conf$$ 2>/dev/null; then
17424 as_ln_s=ln
17425 else
17426 as_ln_s='cp -p'
17427 fi
17428 else
17429 as_ln_s='cp -p'
17430 fi
17431 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17432 rmdir conf$$.dir 2>/dev/null
17433
17434 if mkdir -p . 2>/dev/null; then
17435 as_mkdir_p=:
17436 else
17437 test -d ./-p && rmdir ./-p
17438 as_mkdir_p=false
17439 fi
17440
17441 if test -x / >/dev/null 2>&1; then
17442 as_test_x='test -x'
17443 else
17444 if ls -dL / >/dev/null 2>&1; then
17445 as_ls_L_option=L
17446 else
17447 as_ls_L_option=
17448 fi
17449 as_test_x='
17450 eval sh -c '\''
17451 if test -d "$1"; then
17452 test -d "$1/.";
17453 else
17454 case $1 in
17455 -*)set "./$1";;
17456 esac;
17457 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17458 ???[sx]*):;;*)false;;esac;fi
17459 '\'' sh
17460 '
17461 fi
17462 as_executable_p=$as_test_x
17463
17464 # Sed expression to map a string onto a valid CPP name.
17465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17466
17467 # Sed expression to map a string onto a valid variable name.
17468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17469
17470
17471 exec 6>&1
17472
17473 # Save the log message, to keep $[0] and so on meaningful, and to
17474 # report actual input values of CONFIG_FILES etc. instead of their
17475 # values after options handling.
17476 ac_log="
17477 This file was extended by libpuzzle $as_me 0.11, which was
17478 generated by GNU Autoconf 2.63. Invocation command line was
17479
17480 CONFIG_FILES = $CONFIG_FILES
17481 CONFIG_HEADERS = $CONFIG_HEADERS
17482 CONFIG_LINKS = $CONFIG_LINKS
17483 CONFIG_COMMANDS = $CONFIG_COMMANDS
17484 $ $0 $@
17485
17486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17487 "
17488
17489 _ACEOF
17490
17491 case $ac_config_files in *"
17492 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17493 esac
17494
17495 case $ac_config_headers in *"
17496 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17497 esac
17498
17499
17500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17501 # Files that config.status was made for.
17502 config_files="$ac_config_files"
17503 config_headers="$ac_config_headers"
17504 config_commands="$ac_config_commands"
17505
17506 _ACEOF
17507
17508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17509 ac_cs_usage="\
17510 \`$as_me' instantiates files from templates according to the
17511 current configuration.
17512
17513 Usage: $0 [OPTION]... [FILE]...
17514
17515 -h, --help print this help, then exit
17516 -V, --version print version number and configuration settings, then exit
17517 -q, --quiet, --silent
17518 do not print progress messages
17519 -d, --debug don't remove temporary files
17520 --recheck update $as_me by reconfiguring in the same conditions
17521 --file=FILE[:TEMPLATE]
17522 instantiate the configuration file FILE
17523 --header=FILE[:TEMPLATE]
17524 instantiate the configuration header FILE
17525
17526 Configuration files:
17527 $config_files
17528
17529 Configuration headers:
17530 $config_headers
17531
17532 Configuration commands:
17533 $config_commands
17534
17535 Report bugs to <[email protected]>."
17536
17537 _ACEOF
17538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17539 ac_cs_version="\\
17540 libpuzzle config.status 0.11
17541 configured by $0, generated by GNU Autoconf 2.63,
17542 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17543
17544 Copyright (C) 2008 Free Software Foundation, Inc.
17545 This config.status script is free software; the Free Software Foundation
17546 gives unlimited permission to copy, distribute and modify it."
17547
17548 ac_pwd='$ac_pwd'
17549 srcdir='$srcdir'
17550 INSTALL='$INSTALL'
17551 MKDIR_P='$MKDIR_P'
17552 AWK='$AWK'
17553 test -n "\$AWK" || AWK=awk
17554 _ACEOF
17555
17556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17557 # The default lists apply if the user does not specify any file.
17558 ac_need_defaults=:
17559 while test $# != 0
17560 do
17561 case $1 in
17562 --*=*)
17563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17564 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17565 ac_shift=:
17566 ;;
17567 *)
17568 ac_option=$1
17569 ac_optarg=$2
17570 ac_shift=shift
17571 ;;
17572 esac
17573
17574 case $ac_option in
17575 # Handling of the options.
17576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17577 ac_cs_recheck=: ;;
17578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17579 $as_echo "$ac_cs_version"; exit ;;
17580 --debug | --debu | --deb | --de | --d | -d )
17581 debug=: ;;
17582 --file | --fil | --fi | --f )
17583 $ac_shift
17584 case $ac_optarg in
17585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17586 esac
17587 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17588 ac_need_defaults=false;;
17589 --header | --heade | --head | --hea )
17590 $ac_shift
17591 case $ac_optarg in
17592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17593 esac
17594 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17595 ac_need_defaults=false;;
17596 --he | --h)
17597 # Conflict between --help and --header
17598 { $as_echo "$as_me: error: ambiguous option: $1
17599 Try \`$0 --help' for more information." >&2
17600 { (exit 1); exit 1; }; };;
17601 --help | --hel | -h )
17602 $as_echo "$ac_cs_usage"; exit ;;
17603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17605 ac_cs_silent=: ;;
17606
17607 # This is an error.
17608 -*) { $as_echo "$as_me: error: unrecognized option: $1
17609 Try \`$0 --help' for more information." >&2
17610 { (exit 1); exit 1; }; } ;;
17611
17612 *) ac_config_targets="$ac_config_targets $1"
17613 ac_need_defaults=false ;;
17614
17615 esac
17616 shift
17617 done
17618
17619 ac_configure_extra_args=
17620
17621 if $ac_cs_silent; then
17622 exec 6>/dev/null
17623 ac_configure_extra_args="$ac_configure_extra_args --silent"
17624 fi
17625
17626 _ACEOF
17627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17628 if \$ac_cs_recheck; then
17629 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17630 shift
17631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17632 CONFIG_SHELL='$SHELL'
17633 export CONFIG_SHELL
17634 exec "\$@"
17635 fi
17636
17637 _ACEOF
17638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17639 exec 5>>config.log
17640 {
17641 echo
17642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17643 ## Running $as_me. ##
17644 _ASBOX
17645 $as_echo "$ac_log"
17646 } >&5
17647
17648 _ACEOF
17649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17650 #
17651 # INIT-COMMANDS
17652 #
17653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17654
17655
17656 # The HP-UX ksh and POSIX shell print the target directory to stdout
17657 # if CDPATH is set.
17658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17659
17660 sed_quote_subst='$sed_quote_subst'
17661 double_quote_subst='$double_quote_subst'
17662 delay_variable_subst='$delay_variable_subst'
17663 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17664 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17665 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17666 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17667 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17668 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17669 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17670 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17671 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17672 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17673 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17674 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17675 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17676 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17677 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17678 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17679 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17680 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17681 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17682 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17683 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17684 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17685 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17686 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17687 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17688 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17689 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17690 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17691 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17692 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17693 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17694 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17695 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17696 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17697 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17698 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17699 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17700 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17701 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17702 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17703 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17704 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17705 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17706 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17707 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"`'
17708 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"`'
17709 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17710 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17711 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17712 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17713 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17714 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17715 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17716 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17717 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17718 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17719 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17720 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17721 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17722 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17723 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17724 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17725 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17726 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17727 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17728 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17729 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17730 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17731 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17732 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17733 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17734 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17735 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17736 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17737 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17738 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17739 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17740 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17741 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17742 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17743 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17744 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17745 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17746 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17747 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17748 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17749 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17750 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17751 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17752 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17753 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17754 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17755 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17756 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17757 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17758 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17759 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17760 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17761 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17762 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17763 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17764 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17765 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17766 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17767 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17768 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17769 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17770 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17771 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17772 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17773 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17774 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17775 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17776 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17777 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17778 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17779 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17780 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17781 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17782 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17783 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17784 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17785 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17786 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17787 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17788 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17789 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17790 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17791 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17792 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17793 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17794 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17795 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17796 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17797 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17798 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17799 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17800 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17801 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17802 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17803 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17804 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17805 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17806 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17807 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17808 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17809 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17810 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17811 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17812 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17813 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17814 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17815 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17816 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17817 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17818 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17819 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17820 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17821 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17822 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17823 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17824 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17825 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17826 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17827 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17828 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17829 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17830 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17831 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17832 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17833 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17834
17835 LTCC='$LTCC'
17836 LTCFLAGS='$LTCFLAGS'
17837 compiler='$compiler_DEFAULT'
17838
17839 # Quote evaled strings.
17840 for var in SED \
17841 GREP \
17842 EGREP \
17843 FGREP \
17844 LD \
17845 NM \
17846 LN_S \
17847 lt_SP2NL \
17848 lt_NL2SP \
17849 reload_flag \
17850 OBJDUMP \
17851 deplibs_check_method \
17852 file_magic_cmd \
17853 AR \
17854 AR_FLAGS \
17855 STRIP \
17856 RANLIB \
17857 CC \
17858 CFLAGS \
17859 compiler \
17860 lt_cv_sys_global_symbol_pipe \
17861 lt_cv_sys_global_symbol_to_cdecl \
17862 lt_cv_sys_global_symbol_to_c_name_address \
17863 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17864 SHELL \
17865 ECHO \
17866 lt_prog_compiler_no_builtin_flag \
17867 lt_prog_compiler_wl \
17868 lt_prog_compiler_pic \
17869 lt_prog_compiler_static \
17870 lt_cv_prog_compiler_c_o \
17871 need_locks \
17872 DSYMUTIL \
17873 NMEDIT \
17874 LIPO \
17875 OTOOL \
17876 OTOOL64 \
17877 shrext_cmds \
17878 export_dynamic_flag_spec \
17879 whole_archive_flag_spec \
17880 compiler_needs_object \
17881 with_gnu_ld \
17882 allow_undefined_flag \
17883 no_undefined_flag \
17884 hardcode_libdir_flag_spec \
17885 hardcode_libdir_flag_spec_ld \
17886 hardcode_libdir_separator \
17887 fix_srcfile_path \
17888 exclude_expsyms \
17889 include_expsyms \
17890 file_list_spec \
17891 variables_saved_for_relink \
17892 libname_spec \
17893 library_names_spec \
17894 soname_spec \
17895 finish_eval \
17896 old_striplib \
17897 striplib \
17898 compiler_lib_search_dirs \
17899 predep_objects \
17900 postdep_objects \
17901 predeps \
17902 postdeps \
17903 compiler_lib_search_path \
17904 LD_CXX \
17905 compiler_CXX \
17906 lt_prog_compiler_no_builtin_flag_CXX \
17907 lt_prog_compiler_wl_CXX \
17908 lt_prog_compiler_pic_CXX \
17909 lt_prog_compiler_static_CXX \
17910 lt_cv_prog_compiler_c_o_CXX \
17911 export_dynamic_flag_spec_CXX \
17912 whole_archive_flag_spec_CXX \
17913 compiler_needs_object_CXX \
17914 with_gnu_ld_CXX \
17915 allow_undefined_flag_CXX \
17916 no_undefined_flag_CXX \
17917 hardcode_libdir_flag_spec_CXX \
17918 hardcode_libdir_flag_spec_ld_CXX \
17919 hardcode_libdir_separator_CXX \
17920 fix_srcfile_path_CXX \
17921 exclude_expsyms_CXX \
17922 include_expsyms_CXX \
17923 file_list_spec_CXX \
17924 compiler_lib_search_dirs_CXX \
17925 predep_objects_CXX \
17926 postdep_objects_CXX \
17927 predeps_CXX \
17928 postdeps_CXX \
17929 compiler_lib_search_path_CXX; do
17930 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17931 *[\\\\\\\`\\"\\\$]*)
17932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17933 ;;
17934 *)
17935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17936 ;;
17937 esac
17938 done
17939
17940 # Double-quote double-evaled strings.
17941 for var in reload_cmds \
17942 old_postinstall_cmds \
17943 old_postuninstall_cmds \
17944 old_archive_cmds \
17945 extract_expsyms_cmds \
17946 old_archive_from_new_cmds \
17947 old_archive_from_expsyms_cmds \
17948 archive_cmds \
17949 archive_expsym_cmds \
17950 module_cmds \
17951 module_expsym_cmds \
17952 export_symbols_cmds \
17953 prelink_cmds \
17954 postinstall_cmds \
17955 postuninstall_cmds \
17956 finish_cmds \
17957 sys_lib_search_path_spec \
17958 sys_lib_dlsearch_path_spec \
17959 old_archive_cmds_CXX \
17960 old_archive_from_new_cmds_CXX \
17961 old_archive_from_expsyms_cmds_CXX \
17962 archive_cmds_CXX \
17963 archive_expsym_cmds_CXX \
17964 module_cmds_CXX \
17965 module_expsym_cmds_CXX \
17966 export_symbols_cmds_CXX \
17967 prelink_cmds_CXX; do
17968 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17969 *[\\\\\\\`\\"\\\$]*)
17970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17971 ;;
17972 *)
17973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17974 ;;
17975 esac
17976 done
17977
17978 # Fix-up fallback echo if it was mangled by the above quoting rules.
17979 case \$lt_ECHO in
17980 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17981 ;;
17982 esac
17983
17984 ac_aux_dir='$ac_aux_dir'
17985 xsi_shell='$xsi_shell'
17986 lt_shell_append='$lt_shell_append'
17987
17988 # See if we are running on zsh, and set the options which allow our
17989 # commands through without removal of \ escapes INIT.
17990 if test -n "\${ZSH_VERSION+set}" ; then
17991 setopt NO_GLOB_SUBST
17992 fi
17993
17994
17995 PACKAGE='$PACKAGE'
17996 VERSION='$VERSION'
17997 TIMESTAMP='$TIMESTAMP'
17998 RM='$RM'
17999 ofile='$ofile'
18000
18001
18002
18003
18004
18005
18006 _ACEOF
18007
18008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18009
18010 # Handling of arguments.
18011 for ac_config_target in $ac_config_targets
18012 do
18013 case $ac_config_target in
18014 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18015 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18016 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18017 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18018 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18019 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18020 "src/pics/Makefile") CONFIG_FILES="$CONFIG_FILES src/pics/Makefile" ;;
18021 "php/Makefile") CONFIG_FILES="$CONFIG_FILES php/Makefile" ;;
18022 "php/libpuzzle/Makefile") CONFIG_FILES="$CONFIG_FILES php/libpuzzle/Makefile" ;;
18023 "php/libpuzzle/include/Makefile") CONFIG_FILES="$CONFIG_FILES php/libpuzzle/include/Makefile" ;;
18024 "php/libpuzzle/modules/Makefile") CONFIG_FILES="$CONFIG_FILES php/libpuzzle/modules/Makefile" ;;
18025 "php/libpuzzle/build/Makefile") CONFIG_FILES="$CONFIG_FILES php/libpuzzle/build/Makefile" ;;
18026 "php/libpuzzle/tests/Makefile") CONFIG_FILES="$CONFIG_FILES php/libpuzzle/tests/Makefile" ;;
18027 "php/libpuzzle/tests/pics/Makefile") CONFIG_FILES="$CONFIG_FILES php/libpuzzle/tests/pics/Makefile" ;;
18028 "php/examples/Makefile") CONFIG_FILES="$CONFIG_FILES php/examples/Makefile" ;;
18029 "php/examples/similar/Makefile") CONFIG_FILES="$CONFIG_FILES php/examples/similar/Makefile" ;;
18030
18031 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18032 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18033 { (exit 1); exit 1; }; };;
18034 esac
18035 done
18036
18037
18038 # If the user did not use the arguments to specify the items to instantiate,
18039 # then the envvar interface is used. Set only those that are not.
18040 # We use the long form for the default assignment because of an extremely
18041 # bizarre bug on SunOS 4.1.3.
18042 if $ac_need_defaults; then
18043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18046 fi
18047
18048 # Have a temporary directory for convenience. Make it in the build tree
18049 # simply because there is no reason against having it here, and in addition,
18050 # creating and moving files from /tmp can sometimes cause problems.
18051 # Hook for its removal unless debugging.
18052 # Note that there is a small window in which the directory will not be cleaned:
18053 # after its creation but before its name has been assigned to `$tmp'.
18054 $debug ||
18055 {
18056 tmp=
18057 trap 'exit_status=$?
18058 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18059 ' 0
18060 trap '{ (exit 1); exit 1; }' 1 2 13 15
18061 }
18062 # Create a (secure) tmp directory for tmp files.
18063
18064 {
18065 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18066 test -n "$tmp" && test -d "$tmp"
18067 } ||
18068 {
18069 tmp=./conf$$-$RANDOM
18070 (umask 077 && mkdir "$tmp")
18071 } ||
18072 {
18073 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18074 { (exit 1); exit 1; }
18075 }
18076
18077 # Set up the scripts for CONFIG_FILES section.
18078 # No need to generate them if there are no CONFIG_FILES.
18079 # This happens for instance with `./config.status config.h'.
18080 if test -n "$CONFIG_FILES"; then
18081
18082
18083 ac_cr=' '
18084 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18085 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18086 ac_cs_awk_cr='\\r'
18087 else
18088 ac_cs_awk_cr=$ac_cr
18089 fi
18090
18091 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18092 _ACEOF
18093
18094
18095 {
18096 echo "cat >conf$$subs.awk <<_ACEOF" &&
18097 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18098 echo "_ACEOF"
18099 } >conf$$subs.sh ||
18100 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18101 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18102 { (exit 1); exit 1; }; }
18103 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18104 ac_delim='%!_!# '
18105 for ac_last_try in false false false false false :; do
18106 . ./conf$$subs.sh ||
18107 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18108 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18109 { (exit 1); exit 1; }; }
18110
18111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18112 if test $ac_delim_n = $ac_delim_num; then
18113 break
18114 elif $ac_last_try; then
18115 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18116 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18117 { (exit 1); exit 1; }; }
18118 else
18119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18120 fi
18121 done
18122 rm -f conf$$subs.sh
18123
18124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18125 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18126 _ACEOF
18127 sed -n '
18128 h
18129 s/^/S["/; s/!.*/"]=/
18130 p
18131 g
18132 s/^[^!]*!//
18133 :repl
18134 t repl
18135 s/'"$ac_delim"'$//
18136 t delim
18137 :nl
18138 h
18139 s/\(.\{148\}\).*/\1/
18140 t more1
18141 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18142 p
18143 n
18144 b repl
18145 :more1
18146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18147 p
18148 g
18149 s/.\{148\}//
18150 t nl
18151 :delim
18152 h
18153 s/\(.\{148\}\).*/\1/
18154 t more2
18155 s/["\\]/\\&/g; s/^/"/; s/$/"/
18156 p
18157 b
18158 :more2
18159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18160 p
18161 g
18162 s/.\{148\}//
18163 t delim
18164 ' <conf$$subs.awk | sed '
18165 /^[^""]/{
18166 N
18167 s/\n//
18168 }
18169 ' >>$CONFIG_STATUS || ac_write_fail=1
18170 rm -f conf$$subs.awk
18171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18172 _ACAWK
18173 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18174 for (key in S) S_is_set[key] = 1
18175 FS = ""
18176
18177 }
18178 {
18179 line = $ 0
18180 nfields = split(line, field, "@")
18181 substed = 0
18182 len = length(field[1])
18183 for (i = 2; i < nfields; i++) {
18184 key = field[i]
18185 keylen = length(key)
18186 if (S_is_set[key]) {
18187 value = S[key]
18188 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18189 len += length(value) + length(field[++i])
18190 substed = 1
18191 } else
18192 len += 1 + keylen
18193 }
18194
18195 print line
18196 }
18197
18198 _ACAWK
18199 _ACEOF
18200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18201 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18202 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18203 else
18204 cat
18205 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18206 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18207 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18208 { (exit 1); exit 1; }; }
18209 _ACEOF
18210
18211 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18212 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18213 # trailing colons and then remove the whole line if VPATH becomes empty
18214 # (actually we leave an empty line to preserve line numbers).
18215 if test "x$srcdir" = x.; then
18216 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18217 s/:*\$(srcdir):*/:/
18218 s/:*\${srcdir}:*/:/
18219 s/:*@srcdir@:*/:/
18220 s/^\([^=]*=[ ]*\):*/\1/
18221 s/:*$//
18222 s/^[^=]*=[ ]*$//
18223 }'
18224 fi
18225
18226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18227 fi # test -n "$CONFIG_FILES"
18228
18229 # Set up the scripts for CONFIG_HEADERS section.
18230 # No need to generate them if there are no CONFIG_HEADERS.
18231 # This happens for instance with `./config.status Makefile'.
18232 if test -n "$CONFIG_HEADERS"; then
18233 cat >"$tmp/defines.awk" <<\_ACAWK ||
18234 BEGIN {
18235 _ACEOF
18236
18237 # Transform confdefs.h into an awk script `defines.awk', embedded as
18238 # here-document in config.status, that substitutes the proper values into
18239 # config.h.in to produce config.h.
18240
18241 # Create a delimiter string that does not exist in confdefs.h, to ease
18242 # handling of long lines.
18243 ac_delim='%!_!# '
18244 for ac_last_try in false false :; do
18245 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18246 if test -z "$ac_t"; then
18247 break
18248 elif $ac_last_try; then
18249 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18250 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18251 { (exit 1); exit 1; }; }
18252 else
18253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18254 fi
18255 done
18256
18257 # For the awk script, D is an array of macro values keyed by name,
18258 # likewise P contains macro parameters if any. Preserve backslash
18259 # newline sequences.
18260
18261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18262 sed -n '
18263 s/.\{148\}/&'"$ac_delim"'/g
18264 t rset
18265 :rset
18266 s/^[ ]*#[ ]*define[ ][ ]*/ /
18267 t def
18268 d
18269 :def
18270 s/\\$//
18271 t bsnl
18272 s/["\\]/\\&/g
18273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18274 D["\1"]=" \3"/p
18275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18276 d
18277 :bsnl
18278 s/["\\]/\\&/g
18279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18280 D["\1"]=" \3\\\\\\n"\\/p
18281 t cont
18282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18283 t cont
18284 d
18285 :cont
18286 n
18287 s/.\{148\}/&'"$ac_delim"'/g
18288 t clear
18289 :clear
18290 s/\\$//
18291 t bsnlc
18292 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18293 d
18294 :bsnlc
18295 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18296 b cont
18297 ' <confdefs.h | sed '
18298 s/'"$ac_delim"'/"\\\
18299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18300
18301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18302 for (key in D) D_is_set[key] = 1
18303 FS = ""
18304 }
18305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18306 line = \$ 0
18307 split(line, arg, " ")
18308 if (arg[1] == "#") {
18309 defundef = arg[2]
18310 mac1 = arg[3]
18311 } else {
18312 defundef = substr(arg[1], 2)
18313 mac1 = arg[2]
18314 }
18315 split(mac1, mac2, "(") #)
18316 macro = mac2[1]
18317 prefix = substr(line, 1, index(line, defundef) - 1)
18318 if (D_is_set[macro]) {
18319 # Preserve the white space surrounding the "#".
18320 print prefix "define", macro P[macro] D[macro]
18321 next
18322 } else {
18323 # Replace #undef with comments. This is necessary, for example,
18324 # in the case of _POSIX_SOURCE, which is predefined and required
18325 # on some systems where configure will not decide to define it.
18326 if (defundef == "undef") {
18327 print "/*", prefix defundef, macro, "*/"
18328 next
18329 }
18330 }
18331 }
18332 { print }
18333 _ACAWK
18334 _ACEOF
18335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18336 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18337 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18338 { (exit 1); exit 1; }; }
18339 fi # test -n "$CONFIG_HEADERS"
18340
18341
18342 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18343 shift
18344 for ac_tag
18345 do
18346 case $ac_tag in
18347 :[FHLC]) ac_mode=$ac_tag; continue;;
18348 esac
18349 case $ac_mode$ac_tag in
18350 :[FHL]*:*);;
18351 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18352 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18353 { (exit 1); exit 1; }; };;
18354 :[FH]-) ac_tag=-:-;;
18355 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18356 esac
18357 ac_save_IFS=$IFS
18358 IFS=:
18359 set x $ac_tag
18360 IFS=$ac_save_IFS
18361 shift
18362 ac_file=$1
18363 shift
18364
18365 case $ac_mode in
18366 :L) ac_source=$1;;
18367 :[FH])
18368 ac_file_inputs=
18369 for ac_f
18370 do
18371 case $ac_f in
18372 -) ac_f="$tmp/stdin";;
18373 *) # Look for the file first in the build tree, then in the source tree
18374 # (if the path is not absolute). The absolute path cannot be DOS-style,
18375 # because $ac_f cannot contain `:'.
18376 test -f "$ac_f" ||
18377 case $ac_f in
18378 [\\/$]*) false;;
18379 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18380 esac ||
18381 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18382 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18383 { (exit 1); exit 1; }; };;
18384 esac
18385 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18386 ac_file_inputs="$ac_file_inputs '$ac_f'"
18387 done
18388
18389 # Let's still pretend it is `configure' which instantiates (i.e., don't
18390 # use $as_me), people would be surprised to read:
18391 # /* config.h. Generated by config.status. */
18392 configure_input='Generated from '`
18393 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18394 `' by configure.'
18395 if test x"$ac_file" != x-; then
18396 configure_input="$ac_file. $configure_input"
18397 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18398 $as_echo "$as_me: creating $ac_file" >&6;}
18399 fi
18400 # Neutralize special characters interpreted by sed in replacement strings.
18401 case $configure_input in #(
18402 *\&* | *\|* | *\\* )
18403 ac_sed_conf_input=`$as_echo "$configure_input" |
18404 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18405 *) ac_sed_conf_input=$configure_input;;
18406 esac
18407
18408 case $ac_tag in
18409 *:-:* | *:-) cat >"$tmp/stdin" \
18410 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18411 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18412 { (exit 1); exit 1; }; } ;;
18413 esac
18414 ;;
18415 esac
18416
18417 ac_dir=`$as_dirname -- "$ac_file" ||
18418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18419 X"$ac_file" : 'X\(//\)[^/]' \| \
18420 X"$ac_file" : 'X\(//\)$' \| \
18421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18422 $as_echo X"$ac_file" |
18423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18424 s//\1/
18425 q
18426 }
18427 /^X\(\/\/\)[^/].*/{
18428 s//\1/
18429 q
18430 }
18431 /^X\(\/\/\)$/{
18432 s//\1/
18433 q
18434 }
18435 /^X\(\/\).*/{
18436 s//\1/
18437 q
18438 }
18439 s/.*/./; q'`
18440 { as_dir="$ac_dir"
18441 case $as_dir in #(
18442 -*) as_dir=./$as_dir;;
18443 esac
18444 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18445 as_dirs=
18446 while :; do
18447 case $as_dir in #(
18448 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18449 *) as_qdir=$as_dir;;
18450 esac
18451 as_dirs="'$as_qdir' $as_dirs"
18452 as_dir=`$as_dirname -- "$as_dir" ||
18453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18454 X"$as_dir" : 'X\(//\)[^/]' \| \
18455 X"$as_dir" : 'X\(//\)$' \| \
18456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18457 $as_echo X"$as_dir" |
18458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18459 s//\1/
18460 q
18461 }
18462 /^X\(\/\/\)[^/].*/{
18463 s//\1/
18464 q
18465 }
18466 /^X\(\/\/\)$/{
18467 s//\1/
18468 q
18469 }
18470 /^X\(\/\).*/{
18471 s//\1/
18472 q
18473 }
18474 s/.*/./; q'`
18475 test -d "$as_dir" && break
18476 done
18477 test -z "$as_dirs" || eval "mkdir $as_dirs"
18478 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18479 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18480 { (exit 1); exit 1; }; }; }
18481 ac_builddir=.
18482
18483 case "$ac_dir" in
18484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18485 *)
18486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18487 # A ".." for each directory in $ac_dir_suffix.
18488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18489 case $ac_top_builddir_sub in
18490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18492 esac ;;
18493 esac
18494 ac_abs_top_builddir=$ac_pwd
18495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18496 # for backward compatibility:
18497 ac_top_builddir=$ac_top_build_prefix
18498
18499 case $srcdir in
18500 .) # We are building in place.
18501 ac_srcdir=.
18502 ac_top_srcdir=$ac_top_builddir_sub
18503 ac_abs_top_srcdir=$ac_pwd ;;
18504 [\\/]* | ?:[\\/]* ) # Absolute name.
18505 ac_srcdir=$srcdir$ac_dir_suffix;
18506 ac_top_srcdir=$srcdir
18507 ac_abs_top_srcdir=$srcdir ;;
18508 *) # Relative name.
18509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18510 ac_top_srcdir=$ac_top_build_prefix$srcdir
18511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18512 esac
18513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18514
18515
18516 case $ac_mode in
18517 :F)
18518 #
18519 # CONFIG_FILE
18520 #
18521
18522 case $INSTALL in
18523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18525 esac
18526 ac_MKDIR_P=$MKDIR_P
18527 case $MKDIR_P in
18528 [\\/$]* | ?:[\\/]* ) ;;
18529 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18530 esac
18531 _ACEOF
18532
18533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18534 # If the template does not know about datarootdir, expand it.
18535 # FIXME: This hack should be removed a few years after 2.60.
18536 ac_datarootdir_hack=; ac_datarootdir_seen=
18537
18538 ac_sed_dataroot='
18539 /datarootdir/ {
18540 p
18541 q
18542 }
18543 /@datadir@/p
18544 /@docdir@/p
18545 /@infodir@/p
18546 /@localedir@/p
18547 /@mandir@/p
18548 '
18549 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18550 *datarootdir*) ac_datarootdir_seen=yes;;
18551 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18552 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18553 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18554 _ACEOF
18555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18556 ac_datarootdir_hack='
18557 s&@datadir@&$datadir&g
18558 s&@docdir@&$docdir&g
18559 s&@infodir@&$infodir&g
18560 s&@localedir@&$localedir&g
18561 s&@mandir@&$mandir&g
18562 s&\\\${datarootdir}&$datarootdir&g' ;;
18563 esac
18564 _ACEOF
18565
18566 # Neutralize VPATH when `$srcdir' = `.'.
18567 # Shell code in configure.ac might set extrasub.
18568 # FIXME: do we really want to maintain this feature?
18569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18570 ac_sed_extra="$ac_vpsub
18571 $extrasub
18572 _ACEOF
18573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18574 :t
18575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18576 s|@configure_input@|$ac_sed_conf_input|;t t
18577 s&@top_builddir@&$ac_top_builddir_sub&;t t
18578 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18579 s&@srcdir@&$ac_srcdir&;t t
18580 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18581 s&@top_srcdir@&$ac_top_srcdir&;t t
18582 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18583 s&@builddir@&$ac_builddir&;t t
18584 s&@abs_builddir@&$ac_abs_builddir&;t t
18585 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18586 s&@INSTALL@&$ac_INSTALL&;t t
18587 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18588 $ac_datarootdir_hack
18589 "
18590 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18591 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18592 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18593 { (exit 1); exit 1; }; }
18594
18595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18596 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18598 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18599 which seems to be undefined. Please make sure it is defined." >&5
18600 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18601 which seems to be undefined. Please make sure it is defined." >&2;}
18602
18603 rm -f "$tmp/stdin"
18604 case $ac_file in
18605 -) cat "$tmp/out" && rm -f "$tmp/out";;
18606 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18607 esac \
18608 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18609 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18610 { (exit 1); exit 1; }; }
18611 ;;
18612 :H)
18613 #
18614 # CONFIG_HEADER
18615 #
18616 if test x"$ac_file" != x-; then
18617 {
18618 $as_echo "/* $configure_input */" \
18619 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18620 } >"$tmp/config.h" \
18621 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18622 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18623 { (exit 1); exit 1; }; }
18624 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18625 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18626 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18627 else
18628 rm -f "$ac_file"
18629 mv "$tmp/config.h" "$ac_file" \
18630 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18631 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18632 { (exit 1); exit 1; }; }
18633 fi
18634 else
18635 $as_echo "/* $configure_input */" \
18636 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18637 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18638 $as_echo "$as_me: error: could not create -" >&2;}
18639 { (exit 1); exit 1; }; }
18640 fi
18641 # Compute "$ac_file"'s index in $config_headers.
18642 _am_arg="$ac_file"
18643 _am_stamp_count=1
18644 for _am_header in $config_headers :; do
18645 case $_am_header in
18646 $_am_arg | $_am_arg:* )
18647 break ;;
18648 * )
18649 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18650 esac
18651 done
18652 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18653 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18654 X"$_am_arg" : 'X\(//\)[^/]' \| \
18655 X"$_am_arg" : 'X\(//\)$' \| \
18656 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18657 $as_echo X"$_am_arg" |
18658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18659 s//\1/
18660 q
18661 }
18662 /^X\(\/\/\)[^/].*/{
18663 s//\1/
18664 q
18665 }
18666 /^X\(\/\/\)$/{
18667 s//\1/
18668 q
18669 }
18670 /^X\(\/\).*/{
18671 s//\1/
18672 q
18673 }
18674 s/.*/./; q'`/stamp-h$_am_stamp_count
18675 ;;
18676
18677 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18678 $as_echo "$as_me: executing $ac_file commands" >&6;}
18679 ;;
18680 esac
18681
18682
18683 case $ac_file$ac_mode in
18684 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
18685 # are listed without --file. Let's play safe and only enable the eval
18686 # if we detect the quoting.
18687 case $CONFIG_FILES in
18688 *\'*) eval set x "$CONFIG_FILES" ;;
18689 *) set x $CONFIG_FILES ;;
18690 esac
18691 shift
18692 for mf
18693 do
18694 # Strip MF so we end up with the name of the file.
18695 mf=`echo "$mf" | sed -e 's/:.*$//'`
18696 # Check whether this is an Automake generated Makefile or not.
18697 # We used to match only the files named `Makefile.in', but
18698 # some people rename them; so instead we look at the file content.
18699 # Grep'ing the first line is not enough: some people post-process
18700 # each Makefile.in and add a new line on top of each file to say so.
18701 # Grep'ing the whole file is not good either: AIX grep has a line
18702 # limit of 2048, but all sed's we know have understand at least 4000.
18703 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18704 dirpart=`$as_dirname -- "$mf" ||
18705 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18706 X"$mf" : 'X\(//\)[^/]' \| \
18707 X"$mf" : 'X\(//\)$' \| \
18708 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18709 $as_echo X"$mf" |
18710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18711 s//\1/
18712 q
18713 }
18714 /^X\(\/\/\)[^/].*/{
18715 s//\1/
18716 q
18717 }
18718 /^X\(\/\/\)$/{
18719 s//\1/
18720 q
18721 }
18722 /^X\(\/\).*/{
18723 s//\1/
18724 q
18725 }
18726 s/.*/./; q'`
18727 else
18728 continue
18729 fi
18730 # Extract the definition of DEPDIR, am__include, and am__quote
18731 # from the Makefile without running `make'.
18732 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18733 test -z "$DEPDIR" && continue
18734 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18735 test -z "am__include" && continue
18736 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18737 # When using ansi2knr, U may be empty or an underscore; expand it
18738 U=`sed -n 's/^U = //p' < "$mf"`
18739 # Find all dependency output files, they are included files with
18740 # $(DEPDIR) in their names. We invoke sed twice because it is the
18741 # simplest approach to changing $(DEPDIR) to its actual value in the
18742 # expansion.
18743 for file in `sed -n "
18744 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18745 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18746 # Make sure the directory exists.
18747 test -f "$dirpart/$file" && continue
18748 fdir=`$as_dirname -- "$file" ||
18749 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18750 X"$file" : 'X\(//\)[^/]' \| \
18751 X"$file" : 'X\(//\)$' \| \
18752 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18753 $as_echo X"$file" |
18754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18755 s//\1/
18756 q
18757 }
18758 /^X\(\/\/\)[^/].*/{
18759 s//\1/
18760 q
18761 }
18762 /^X\(\/\/\)$/{
18763 s//\1/
18764 q
18765 }
18766 /^X\(\/\).*/{
18767 s//\1/
18768 q
18769 }
18770 s/.*/./; q'`
18771 { as_dir=$dirpart/$fdir
18772 case $as_dir in #(
18773 -*) as_dir=./$as_dir;;
18774 esac
18775 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18776 as_dirs=
18777 while :; do
18778 case $as_dir in #(
18779 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18780 *) as_qdir=$as_dir;;
18781 esac
18782 as_dirs="'$as_qdir' $as_dirs"
18783 as_dir=`$as_dirname -- "$as_dir" ||
18784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18785 X"$as_dir" : 'X\(//\)[^/]' \| \
18786 X"$as_dir" : 'X\(//\)$' \| \
18787 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18788 $as_echo X"$as_dir" |
18789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18790 s//\1/
18791 q
18792 }
18793 /^X\(\/\/\)[^/].*/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\/\)$/{
18798 s//\1/
18799 q
18800 }
18801 /^X\(\/\).*/{
18802 s//\1/
18803 q
18804 }
18805 s/.*/./; q'`
18806 test -d "$as_dir" && break
18807 done
18808 test -z "$as_dirs" || eval "mkdir $as_dirs"
18809 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18810 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18811 { (exit 1); exit 1; }; }; }
18812 # echo "creating $dirpart/$file"
18813 echo '# dummy' > "$dirpart/$file"
18814 done
18815 done
18816 ;;
18817 "libtool":C)
18818
18819 # See if we are running on zsh, and set the options which allow our
18820 # commands through without removal of \ escapes.
18821 if test -n "${ZSH_VERSION+set}" ; then
18822 setopt NO_GLOB_SUBST
18823 fi
18824
18825 cfgfile="${ofile}T"
18826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18827 $RM "$cfgfile"
18828
18829 cat <<_LT_EOF >> "$cfgfile"
18830 #! $SHELL
18831
18832 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18833 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18835 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18836 #
18837 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18838 # 2006, 2007, 2008 Free Software Foundation, Inc.
18839 # Written by Gordon Matzigkeit, 1996
18840 #
18841 # This file is part of GNU Libtool.
18842 #
18843 # GNU Libtool is free software; you can redistribute it and/or
18844 # modify it under the terms of the GNU General Public License as
18845 # published by the Free Software Foundation; either version 2 of
18846 # the License, or (at your option) any later version.
18847 #
18848 # As a special exception to the GNU General Public License,
18849 # if you distribute this file as part of a program or library that
18850 # is built using GNU Libtool, you may include this file under the
18851 # same distribution terms that you use for the rest of that program.
18852 #
18853 # GNU Libtool is distributed in the hope that it will be useful,
18854 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18856 # GNU General Public License for more details.
18857 #
18858 # You should have received a copy of the GNU General Public License
18859 # along with GNU Libtool; see the file COPYING. If not, a copy
18860 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18861 # obtained by writing to the Free Software Foundation, Inc.,
18862 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18863
18864
18865 # The names of the tagged configurations supported by this script.
18866 available_tags="CXX "
18867
18868 # ### BEGIN LIBTOOL CONFIG
18869
18870 # Which release of libtool.m4 was used?
18871 macro_version=$macro_version
18872 macro_revision=$macro_revision
18873
18874 # Whether or not to build shared libraries.
18875 build_libtool_libs=$enable_shared
18876
18877 # Whether or not to build static libraries.
18878 build_old_libs=$enable_static
18879
18880 # What type of objects to build.
18881 pic_mode=$pic_mode
18882
18883 # Whether or not to optimize for fast installation.
18884 fast_install=$enable_fast_install
18885
18886 # The host system.
18887 host_alias=$host_alias
18888 host=$host
18889 host_os=$host_os
18890
18891 # The build system.
18892 build_alias=$build_alias
18893 build=$build
18894 build_os=$build_os
18895
18896 # A sed program that does not truncate output.
18897 SED=$lt_SED
18898
18899 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18900 Xsed="\$SED -e 1s/^X//"
18901
18902 # A grep program that handles long lines.
18903 GREP=$lt_GREP
18904
18905 # An ERE matcher.
18906 EGREP=$lt_EGREP
18907
18908 # A literal string matcher.
18909 FGREP=$lt_FGREP
18910
18911 # A BSD- or MS-compatible name lister.
18912 NM=$lt_NM
18913
18914 # Whether we need soft or hard links.
18915 LN_S=$lt_LN_S
18916
18917 # What is the maximum length of a command?
18918 max_cmd_len=$max_cmd_len
18919
18920 # Object file suffix (normally "o").
18921 objext=$ac_objext
18922
18923 # Executable file suffix (normally "").
18924 exeext=$exeext
18925
18926 # whether the shell understands "unset".
18927 lt_unset=$lt_unset
18928
18929 # turn spaces into newlines.
18930 SP2NL=$lt_lt_SP2NL
18931
18932 # turn newlines into spaces.
18933 NL2SP=$lt_lt_NL2SP
18934
18935 # How to create reloadable object files.
18936 reload_flag=$lt_reload_flag
18937 reload_cmds=$lt_reload_cmds
18938
18939 # An object symbol dumper.
18940 OBJDUMP=$lt_OBJDUMP
18941
18942 # Method to check whether dependent libraries are shared objects.
18943 deplibs_check_method=$lt_deplibs_check_method
18944
18945 # Command to use when deplibs_check_method == "file_magic".
18946 file_magic_cmd=$lt_file_magic_cmd
18947
18948 # The archiver.
18949 AR=$lt_AR
18950 AR_FLAGS=$lt_AR_FLAGS
18951
18952 # A symbol stripping program.
18953 STRIP=$lt_STRIP
18954
18955 # Commands used to install an old-style archive.
18956 RANLIB=$lt_RANLIB
18957 old_postinstall_cmds=$lt_old_postinstall_cmds
18958 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18959
18960 # A C compiler.
18961 LTCC=$lt_CC
18962
18963 # LTCC compiler flags.
18964 LTCFLAGS=$lt_CFLAGS
18965
18966 # Take the output of nm and produce a listing of raw symbols and C names.
18967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18968
18969 # Transform the output of nm in a proper C declaration.
18970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18971
18972 # Transform the output of nm in a C name address pair.
18973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18974
18975 # Transform the output of nm in a C name address pair when lib prefix is needed.
18976 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18977
18978 # The name of the directory that contains temporary libtool files.
18979 objdir=$objdir
18980
18981 # Shell to use when invoking shell scripts.
18982 SHELL=$lt_SHELL
18983
18984 # An echo program that does not interpret backslashes.
18985 ECHO=$lt_ECHO
18986
18987 # Used to examine libraries when file_magic_cmd begins with "file".
18988 MAGIC_CMD=$MAGIC_CMD
18989
18990 # Must we lock files when doing compilation?
18991 need_locks=$lt_need_locks
18992
18993 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18994 DSYMUTIL=$lt_DSYMUTIL
18995
18996 # Tool to change global to local symbols on Mac OS X.
18997 NMEDIT=$lt_NMEDIT
18998
18999 # Tool to manipulate fat objects and archives on Mac OS X.
19000 LIPO=$lt_LIPO
19001
19002 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19003 OTOOL=$lt_OTOOL
19004
19005 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19006 OTOOL64=$lt_OTOOL64
19007
19008 # Old archive suffix (normally "a").
19009 libext=$libext
19010
19011 # Shared library suffix (normally ".so").
19012 shrext_cmds=$lt_shrext_cmds
19013
19014 # The commands to extract the exported symbol list from a shared archive.
19015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19016
19017 # Variables whose values should be saved in libtool wrapper scripts and
19018 # restored at link time.
19019 variables_saved_for_relink=$lt_variables_saved_for_relink
19020
19021 # Do we need the "lib" prefix for modules?
19022 need_lib_prefix=$need_lib_prefix
19023
19024 # Do we need a version for libraries?
19025 need_version=$need_version
19026
19027 # Library versioning type.
19028 version_type=$version_type
19029
19030 # Shared library runtime path variable.
19031 runpath_var=$runpath_var
19032
19033 # Shared library path variable.
19034 shlibpath_var=$shlibpath_var
19035
19036 # Is shlibpath searched before the hard-coded library search path?
19037 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19038
19039 # Format of library name prefix.
19040 libname_spec=$lt_libname_spec
19041
19042 # List of archive names. First name is the real one, the rest are links.
19043 # The last name is the one that the linker finds with -lNAME
19044 library_names_spec=$lt_library_names_spec
19045
19046 # The coded name of the library, if different from the real name.
19047 soname_spec=$lt_soname_spec
19048
19049 # Command to use after installation of a shared archive.
19050 postinstall_cmds=$lt_postinstall_cmds
19051
19052 # Command to use after uninstallation of a shared archive.
19053 postuninstall_cmds=$lt_postuninstall_cmds
19054
19055 # Commands used to finish a libtool library installation in a directory.
19056 finish_cmds=$lt_finish_cmds
19057
19058 # As "finish_cmds", except a single script fragment to be evaled but
19059 # not shown.
19060 finish_eval=$lt_finish_eval
19061
19062 # Whether we should hardcode library paths into libraries.
19063 hardcode_into_libs=$hardcode_into_libs
19064
19065 # Compile-time system search path for libraries.
19066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19067
19068 # Run-time system search path for libraries.
19069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19070
19071 # Whether dlopen is supported.
19072 dlopen_support=$enable_dlopen
19073
19074 # Whether dlopen of programs is supported.
19075 dlopen_self=$enable_dlopen_self
19076
19077 # Whether dlopen of statically linked programs is supported.
19078 dlopen_self_static=$enable_dlopen_self_static
19079
19080 # Commands to strip libraries.
19081 old_striplib=$lt_old_striplib
19082 striplib=$lt_striplib
19083
19084
19085 # The linker used to build libraries.
19086 LD=$lt_LD
19087
19088 # Commands used to build an old-style archive.
19089 old_archive_cmds=$lt_old_archive_cmds
19090
19091 # A language specific compiler.
19092 CC=$lt_compiler
19093
19094 # Is the compiler the GNU compiler?
19095 with_gcc=$GCC
19096
19097 # Compiler flag to turn off builtin functions.
19098 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19099
19100 # How to pass a linker flag through the compiler.
19101 wl=$lt_lt_prog_compiler_wl
19102
19103 # Additional compiler flags for building library objects.
19104 pic_flag=$lt_lt_prog_compiler_pic
19105
19106 # Compiler flag to prevent dynamic linking.
19107 link_static_flag=$lt_lt_prog_compiler_static
19108
19109 # Does compiler simultaneously support -c and -o options?
19110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19111
19112 # Whether or not to add -lc for building shared libraries.
19113 build_libtool_need_lc=$archive_cmds_need_lc
19114
19115 # Whether or not to disallow shared libs when runtime libs are static.
19116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19117
19118 # Compiler flag to allow reflexive dlopens.
19119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19120
19121 # Compiler flag to generate shared objects directly from archives.
19122 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19123
19124 # Whether the compiler copes with passing no objects directly.
19125 compiler_needs_object=$lt_compiler_needs_object
19126
19127 # Create an old-style archive from a shared archive.
19128 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19129
19130 # Create a temporary old-style archive to link instead of a shared archive.
19131 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19132
19133 # Commands used to build a shared archive.
19134 archive_cmds=$lt_archive_cmds
19135 archive_expsym_cmds=$lt_archive_expsym_cmds
19136
19137 # Commands used to build a loadable module if different from building
19138 # a shared archive.
19139 module_cmds=$lt_module_cmds
19140 module_expsym_cmds=$lt_module_expsym_cmds
19141
19142 # Whether we are building with GNU ld or not.
19143 with_gnu_ld=$lt_with_gnu_ld
19144
19145 # Flag that allows shared libraries with undefined symbols to be built.
19146 allow_undefined_flag=$lt_allow_undefined_flag
19147
19148 # Flag that enforces no undefined symbols.
19149 no_undefined_flag=$lt_no_undefined_flag
19150
19151 # Flag to hardcode \$libdir into a binary during linking.
19152 # This must work even if \$libdir does not exist
19153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19154
19155 # If ld is used when linking, flag to hardcode \$libdir into a binary
19156 # during linking. This must work even if \$libdir does not exist.
19157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19158
19159 # Whether we need a single "-rpath" flag with a separated argument.
19160 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19161
19162 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19163 # DIR into the resulting binary.
19164 hardcode_direct=$hardcode_direct
19165
19166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19167 # DIR into the resulting binary and the resulting library dependency is
19168 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19169 # library is relocated.
19170 hardcode_direct_absolute=$hardcode_direct_absolute
19171
19172 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19173 # into the resulting binary.
19174 hardcode_minus_L=$hardcode_minus_L
19175
19176 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19177 # into the resulting binary.
19178 hardcode_shlibpath_var=$hardcode_shlibpath_var
19179
19180 # Set to "yes" if building a shared library automatically hardcodes DIR
19181 # into the library and all subsequent libraries and executables linked
19182 # against it.
19183 hardcode_automatic=$hardcode_automatic
19184
19185 # Set to yes if linker adds runtime paths of dependent libraries
19186 # to runtime path list.
19187 inherit_rpath=$inherit_rpath
19188
19189 # Whether libtool must link a program against all its dependency libraries.
19190 link_all_deplibs=$link_all_deplibs
19191
19192 # Fix the shell variable \$srcfile for the compiler.
19193 fix_srcfile_path=$lt_fix_srcfile_path
19194
19195 # Set to "yes" if exported symbols are required.
19196 always_export_symbols=$always_export_symbols
19197
19198 # The commands to list exported symbols.
19199 export_symbols_cmds=$lt_export_symbols_cmds
19200
19201 # Symbols that should not be listed in the preloaded symbols.
19202 exclude_expsyms=$lt_exclude_expsyms
19203
19204 # Symbols that must always be exported.
19205 include_expsyms=$lt_include_expsyms
19206
19207 # Commands necessary for linking programs (against libraries) with templates.
19208 prelink_cmds=$lt_prelink_cmds
19209
19210 # Specify filename containing input files.
19211 file_list_spec=$lt_file_list_spec
19212
19213 # How to hardcode a shared library path into an executable.
19214 hardcode_action=$hardcode_action
19215
19216 # The directories searched by this compiler when creating a shared library.
19217 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19218
19219 # Dependencies to place before and after the objects being linked to
19220 # create a shared library.
19221 predep_objects=$lt_predep_objects
19222 postdep_objects=$lt_postdep_objects
19223 predeps=$lt_predeps
19224 postdeps=$lt_postdeps
19225
19226 # The library search path used internally by the compiler when linking
19227 # a shared library.
19228 compiler_lib_search_path=$lt_compiler_lib_search_path
19229
19230 # ### END LIBTOOL CONFIG
19231
19232 _LT_EOF
19233
19234 case $host_os in
19235 aix3*)
19236 cat <<\_LT_EOF >> "$cfgfile"
19237 # AIX sometimes has problems with the GCC collect2 program. For some
19238 # reason, if we set the COLLECT_NAMES environment variable, the problems
19239 # vanish in a puff of smoke.
19240 if test "X${COLLECT_NAMES+set}" != Xset; then
19241 COLLECT_NAMES=
19242 export COLLECT_NAMES
19243 fi
19244 _LT_EOF
19245 ;;
19246 esac
19247
19248
19249 ltmain="$ac_aux_dir/ltmain.sh"
19250
19251
19252 # We use sed instead of cat because bash on DJGPP gets confused if
19253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19254 # text mode, it properly converts lines to CR/LF. This bash problem
19255 # is reportedly fixed, but why not run on old versions too?
19256 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19257 || (rm -f "$cfgfile"; exit 1)
19258
19259 case $xsi_shell in
19260 yes)
19261 cat << \_LT_EOF >> "$cfgfile"
19262
19263 # func_dirname file append nondir_replacement
19264 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19265 # otherwise set result to NONDIR_REPLACEMENT.
19266 func_dirname ()
19267 {
19268 case ${1} in
19269 */*) func_dirname_result="${1%/*}${2}" ;;
19270 * ) func_dirname_result="${3}" ;;
19271 esac
19272 }
19273
19274 # func_basename file
19275 func_basename ()
19276 {
19277 func_basename_result="${1##*/}"
19278 }
19279
19280 # func_dirname_and_basename file append nondir_replacement
19281 # perform func_basename and func_dirname in a single function
19282 # call:
19283 # dirname: Compute the dirname of FILE. If nonempty,
19284 # add APPEND to the result, otherwise set result
19285 # to NONDIR_REPLACEMENT.
19286 # value returned in "$func_dirname_result"
19287 # basename: Compute filename of FILE.
19288 # value retuned in "$func_basename_result"
19289 # Implementation must be kept synchronized with func_dirname
19290 # and func_basename. For efficiency, we do not delegate to
19291 # those functions but instead duplicate the functionality here.
19292 func_dirname_and_basename ()
19293 {
19294 case ${1} in
19295 */*) func_dirname_result="${1%/*}${2}" ;;
19296 * ) func_dirname_result="${3}" ;;
19297 esac
19298 func_basename_result="${1##*/}"
19299 }
19300
19301 # func_stripname prefix suffix name
19302 # strip PREFIX and SUFFIX off of NAME.
19303 # PREFIX and SUFFIX must not contain globbing or regex special
19304 # characters, hashes, percent signs, but SUFFIX may contain a leading
19305 # dot (in which case that matches only a dot).
19306 func_stripname ()
19307 {
19308 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19309 # positional parameters, so assign one to ordinary parameter first.
19310 func_stripname_result=${3}
19311 func_stripname_result=${func_stripname_result#"${1}"}
19312 func_stripname_result=${func_stripname_result%"${2}"}
19313 }
19314
19315 # func_opt_split
19316 func_opt_split ()
19317 {
19318 func_opt_split_opt=${1%%=*}
19319 func_opt_split_arg=${1#*=}
19320 }
19321
19322 # func_lo2o object
19323 func_lo2o ()
19324 {
19325 case ${1} in
19326 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19327 *) func_lo2o_result=${1} ;;
19328 esac
19329 }
19330
19331 # func_xform libobj-or-source
19332 func_xform ()
19333 {
19334 func_xform_result=${1%.*}.lo
19335 }
19336
19337 # func_arith arithmetic-term...
19338 func_arith ()
19339 {
19340 func_arith_result=$(( $* ))
19341 }
19342
19343 # func_len string
19344 # STRING may not start with a hyphen.
19345 func_len ()
19346 {
19347 func_len_result=${#1}
19348 }
19349
19350 _LT_EOF
19351 ;;
19352 *) # Bourne compatible functions.
19353 cat << \_LT_EOF >> "$cfgfile"
19354
19355 # func_dirname file append nondir_replacement
19356 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19357 # otherwise set result to NONDIR_REPLACEMENT.
19358 func_dirname ()
19359 {
19360 # Extract subdirectory from the argument.
19361 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19362 if test "X$func_dirname_result" = "X${1}"; then
19363 func_dirname_result="${3}"
19364 else
19365 func_dirname_result="$func_dirname_result${2}"
19366 fi
19367 }
19368
19369 # func_basename file
19370 func_basename ()
19371 {
19372 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19373 }
19374
19375
19376 # func_stripname prefix suffix name
19377 # strip PREFIX and SUFFIX off of NAME.
19378 # PREFIX and SUFFIX must not contain globbing or regex special
19379 # characters, hashes, percent signs, but SUFFIX may contain a leading
19380 # dot (in which case that matches only a dot).
19381 # func_strip_suffix prefix name
19382 func_stripname ()
19383 {
19384 case ${2} in
19385 .*) func_stripname_result=`$ECHO "X${3}" \
19386 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19387 *) func_stripname_result=`$ECHO "X${3}" \
19388 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19389 esac
19390 }
19391
19392 # sed scripts:
19393 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19394 my_sed_long_arg='1s/^-[^=]*=//'
19395
19396 # func_opt_split
19397 func_opt_split ()
19398 {
19399 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19400 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19401 }
19402
19403 # func_lo2o object
19404 func_lo2o ()
19405 {
19406 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19407 }
19408
19409 # func_xform libobj-or-source
19410 func_xform ()
19411 {
19412 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19413 }
19414
19415 # func_arith arithmetic-term...
19416 func_arith ()
19417 {
19418 func_arith_result=`expr "$@"`
19419 }
19420
19421 # func_len string
19422 # STRING may not start with a hyphen.
19423 func_len ()
19424 {
19425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19426 }
19427
19428 _LT_EOF
19429 esac
19430
19431 case $lt_shell_append in
19432 yes)
19433 cat << \_LT_EOF >> "$cfgfile"
19434
19435 # func_append var value
19436 # Append VALUE to the end of shell variable VAR.
19437 func_append ()
19438 {
19439 eval "$1+=\$2"
19440 }
19441 _LT_EOF
19442 ;;
19443 *)
19444 cat << \_LT_EOF >> "$cfgfile"
19445
19446 # func_append var value
19447 # Append VALUE to the end of shell variable VAR.
19448 func_append ()
19449 {
19450 eval "$1=\$$1\$2"
19451 }
19452
19453 _LT_EOF
19454 ;;
19455 esac
19456
19457
19458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19459 || (rm -f "$cfgfile"; exit 1)
19460
19461 mv -f "$cfgfile" "$ofile" ||
19462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19463 chmod +x "$ofile"
19464
19465
19466 cat <<_LT_EOF >> "$ofile"
19467
19468 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19469
19470 # The linker used to build libraries.
19471 LD=$lt_LD_CXX
19472
19473 # Commands used to build an old-style archive.
19474 old_archive_cmds=$lt_old_archive_cmds_CXX
19475
19476 # A language specific compiler.
19477 CC=$lt_compiler_CXX
19478
19479 # Is the compiler the GNU compiler?
19480 with_gcc=$GCC_CXX
19481
19482 # Compiler flag to turn off builtin functions.
19483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19484
19485 # How to pass a linker flag through the compiler.
19486 wl=$lt_lt_prog_compiler_wl_CXX
19487
19488 # Additional compiler flags for building library objects.
19489 pic_flag=$lt_lt_prog_compiler_pic_CXX
19490
19491 # Compiler flag to prevent dynamic linking.
19492 link_static_flag=$lt_lt_prog_compiler_static_CXX
19493
19494 # Does compiler simultaneously support -c and -o options?
19495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19496
19497 # Whether or not to add -lc for building shared libraries.
19498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19499
19500 # Whether or not to disallow shared libs when runtime libs are static.
19501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19502
19503 # Compiler flag to allow reflexive dlopens.
19504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19505
19506 # Compiler flag to generate shared objects directly from archives.
19507 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19508
19509 # Whether the compiler copes with passing no objects directly.
19510 compiler_needs_object=$lt_compiler_needs_object_CXX
19511
19512 # Create an old-style archive from a shared archive.
19513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19514
19515 # Create a temporary old-style archive to link instead of a shared archive.
19516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19517
19518 # Commands used to build a shared archive.
19519 archive_cmds=$lt_archive_cmds_CXX
19520 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19521
19522 # Commands used to build a loadable module if different from building
19523 # a shared archive.
19524 module_cmds=$lt_module_cmds_CXX
19525 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19526
19527 # Whether we are building with GNU ld or not.
19528 with_gnu_ld=$lt_with_gnu_ld_CXX
19529
19530 # Flag that allows shared libraries with undefined symbols to be built.
19531 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19532
19533 # Flag that enforces no undefined symbols.
19534 no_undefined_flag=$lt_no_undefined_flag_CXX
19535
19536 # Flag to hardcode \$libdir into a binary during linking.
19537 # This must work even if \$libdir does not exist
19538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19539
19540 # If ld is used when linking, flag to hardcode \$libdir into a binary
19541 # during linking. This must work even if \$libdir does not exist.
19542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19543
19544 # Whether we need a single "-rpath" flag with a separated argument.
19545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19546
19547 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19548 # DIR into the resulting binary.
19549 hardcode_direct=$hardcode_direct_CXX
19550
19551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19552 # DIR into the resulting binary and the resulting library dependency is
19553 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19554 # library is relocated.
19555 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19556
19557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19558 # into the resulting binary.
19559 hardcode_minus_L=$hardcode_minus_L_CXX
19560
19561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19562 # into the resulting binary.
19563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19564
19565 # Set to "yes" if building a shared library automatically hardcodes DIR
19566 # into the library and all subsequent libraries and executables linked
19567 # against it.
19568 hardcode_automatic=$hardcode_automatic_CXX
19569
19570 # Set to yes if linker adds runtime paths of dependent libraries
19571 # to runtime path list.
19572 inherit_rpath=$inherit_rpath_CXX
19573
19574 # Whether libtool must link a program against all its dependency libraries.
19575 link_all_deplibs=$link_all_deplibs_CXX
19576
19577 # Fix the shell variable \$srcfile for the compiler.
19578 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19579
19580 # Set to "yes" if exported symbols are required.
19581 always_export_symbols=$always_export_symbols_CXX
19582
19583 # The commands to list exported symbols.
19584 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19585
19586 # Symbols that should not be listed in the preloaded symbols.
19587 exclude_expsyms=$lt_exclude_expsyms_CXX
19588
19589 # Symbols that must always be exported.
19590 include_expsyms=$lt_include_expsyms_CXX
19591
19592 # Commands necessary for linking programs (against libraries) with templates.
19593 prelink_cmds=$lt_prelink_cmds_CXX
19594
19595 # Specify filename containing input files.
19596 file_list_spec=$lt_file_list_spec_CXX
19597
19598 # How to hardcode a shared library path into an executable.
19599 hardcode_action=$hardcode_action_CXX
19600
19601 # The directories searched by this compiler when creating a shared library.
19602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19603
19604 # Dependencies to place before and after the objects being linked to
19605 # create a shared library.
19606 predep_objects=$lt_predep_objects_CXX
19607 postdep_objects=$lt_postdep_objects_CXX
19608 predeps=$lt_predeps_CXX
19609 postdeps=$lt_postdeps_CXX
19610
19611 # The library search path used internally by the compiler when linking
19612 # a shared library.
19613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19614
19615 # ### END LIBTOOL TAG CONFIG: CXX
19616 _LT_EOF
19617
19618 ;;
19619
19620 esac
19621 done # for ac_tag
19622
19623
19624 { (exit 0); exit 0; }
19625 _ACEOF
19626 chmod +x $CONFIG_STATUS
19627 ac_clean_files=$ac_clean_files_save
19628
19629 test $ac_write_fail = 0 ||
19630 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19631 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19632 { (exit 1); exit 1; }; }
19633
19634
19635 # configure is writing to config.log, and then calls config.status.
19636 # config.status does its own redirection, appending to config.log.
19637 # Unfortunately, on DOS this fails, as config.log is still kept open
19638 # by configure, so config.status won't be able to write to it; its
19639 # output is simply discarded. So we exec the FD to /dev/null,
19640 # effectively closing config.log, so it can be properly (re)opened and
19641 # appended to by config.status. When coming back to configure, we
19642 # need to make the FD available again.
19643 if test "$no_create" != yes; then
19644 ac_cs_success=:
19645 ac_config_status_args=
19646 test "$silent" = yes &&
19647 ac_config_status_args="$ac_config_status_args --quiet"
19648 exec 5>/dev/null
19649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19650 exec 5>>config.log
19651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19652 # would make configure fail if this is the last instruction.
19653 $ac_cs_success || { (exit 1); exit 1; }
19654 fi
19655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19656 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19658 fi
19659
19660
19661 { $as_echo "$as_me:$LINENO: +-------------------------------------------------------+" >&5
19662 $as_echo "$as_me: +-------------------------------------------------------+" >&6;}
19663 { $as_echo "$as_me:$LINENO: | You can subscribe to the Libpuzzle users mailing-list |" >&5
19664 $as_echo "$as_me: | You can subscribe to the Libpuzzle users mailing-list |" >&6;}
19665 { $as_echo "$as_me:$LINENO: | to ask for help and to stay informed of new releases. |" >&5
19666 $as_echo "$as_me: | to ask for help and to stay informed of new releases. |" >&6;}
19667 { $as_echo "$as_me:$LINENO: | Go to http://libpuzzle.pureftpd.org/ml/ now! |" >&5
19668 $as_echo "$as_me: | Go to http://libpuzzle.pureftpd.org/ml/ now! |" >&6;}
19669 { $as_echo "$as_me:$LINENO: +-------------------------------------------------------+" >&5
19670 $as_echo "$as_me: +-------------------------------------------------------+" >&6;}