Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / gdbmobj / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for gdbmobj 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
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 bug-autoconf@gnu.org 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='gdbmobj'
747 PACKAGE_TARNAME='gdbmobj'
748 PACKAGE_VERSION='0.10'
749 PACKAGE_STRING='gdbmobj 0.10'
750 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752 ac_unique_file="gdbmobj.c"
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='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 FOUND_GDBM_FALSE
794 FOUND_GDBM_TRUE
795 LIBGDBM
796 CXXCPP
797 OTOOL64
798 OTOOL
799 LIPO
800 NMEDIT
801 DSYMUTIL
802 lt_ECHO
803 RANLIB
804 AR
805 OBJDUMP
806 LN_S
807 NM
808 ac_ct_DUMPBIN
809 DUMPBIN
810 LD
811 FGREP
812 SED
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 LIBTOOL
822 am__fastdepCXX_FALSE
823 am__fastdepCXX_TRUE
824 CXXDEPMODE
825 ac_ct_CXX
826 CXXFLAGS
827 CXX
828 EGREP
829 GREP
830 CPP
831 am__fastdepCC_FALSE
832 am__fastdepCC_TRUE
833 CCDEPMODE
834 AMDEPBACKSLASH
835 AMDEP_FALSE
836 AMDEP_TRUE
837 am__quote
838 am__include
839 DEPDIR
840 OBJEXT
841 EXEEXT
842 ac_ct_CC
843 CPPFLAGS
844 LDFLAGS
845 CFLAGS
846 CC
847 am__untar
848 am__tar
849 AMTAR
850 am__leading_dot
851 SET_MAKE
852 AWK
853 mkdir_p
854 MKDIR_P
855 INSTALL_STRIP_PROGRAM
856 STRIP
857 install_sh
858 MAKEINFO
859 AUTOHEADER
860 AUTOMAKE
861 AUTOCONF
862 ACLOCAL
863 VERSION
864 PACKAGE
865 CYGPATH_W
866 am__isrc
867 INSTALL_DATA
868 INSTALL_SCRIPT
869 INSTALL_PROGRAM
870 target_alias
871 host_alias
872 build_alias
873 LIBS
874 ECHO_T
875 ECHO_N
876 ECHO_C
877 DEFS
878 mandir
879 localedir
880 libdir
881 psdir
882 pdfdir
883 dvidir
884 htmldir
885 infodir
886 docdir
887 oldincludedir
888 includedir
889 localstatedir
890 sharedstatedir
891 sysconfdir
892 datadir
893 datarootdir
894 libexecdir
895 sbindir
896 bindir
897 program_transform_name
898 prefix
899 exec_prefix
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
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 CC
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
926 CPP
927 CXX
928 CXXFLAGS
929 CCC
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 gdbmobj 0.10 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/gdbmobj]
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 gdbmobj 0.10:";;
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 --disable-dependency-tracking speeds up one-time build
1562 --enable-dependency-tracking do not reject slow dependency extractors
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568
1569 Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1572 --with-pic try to use only PIC/non-PIC objects [default=use
1573 both]
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CPP C preprocessor
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 CXXCPP C++ preprocessor
1588
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1591
1592 Report bugs to <courier-users@lists.sourceforge.net>.
1593 _ACEOF
1594 ac_status=$?
1595 fi
1596
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 gdbmobj configure 0.10
1656 generated by GNU Autoconf 2.63
1657
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1664 fi
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1668
1669 It was created by gdbmobj $as_me 0.10, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1671
1672 $ $0 $@
1673
1674 _ACEOF
1675 exec 5>>config.log
1676 {
1677 cat <<_ASUNAME
1678 ## --------- ##
1679 ## Platform. ##
1680 ## --------- ##
1681
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1698
1699 _ASUNAME
1700
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 $as_echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1709
1710 } >&5
1711
1712 cat >&5 <<_ACEOF
1713
1714
1715 ## ----------- ##
1716 ## Core tests. ##
1717 ## ----------- ##
1718
1719 _ACEOF
1720
1721
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1732 do
1733 for ac_arg
1734 do
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
1740 *\'*)
1741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745 2)
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1758 ;;
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1761 fi
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1763 ;;
1764 esac
1765 done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1777 {
1778 echo
1779
1780 cat <<\_ASBOX
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1784 _ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
1787 (
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1800 esac ;;
1801 esac
1802 done
1803 (set) 2>&1 |
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1806 sed -n \
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
1810 *)
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1812 ;;
1813 esac |
1814 sort
1815 )
1816 echo
1817
1818 cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_vars
1825 do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 $as_echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1833
1834 if test -n "$ac_subst_files"; then
1835 cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840 echo
1841 for ac_var in $ac_subst_files
1842 do
1843 eval ac_val=\$$ac_var
1844 case $ac_val in
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 esac
1847 $as_echo "$ac_var='\''$ac_val'\''"
1848 done | sort
1849 echo
1850 fi
1851
1852 if test -s confdefs.h; then
1853 cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858 echo
1859 cat confdefs.h
1860 echo
1861 fi
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1865 } >&5
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 exit $exit_status
1869 ' 0
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1874
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1877
1878 # Predefined preprocessor variables.
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1903
1904
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1907 ac_site_file1=NONE
1908 ac_site_file2=NONE
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE; then
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
1914 else
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
1917 fi
1918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1919 do
1920 test "x$ac_site_file" = xNONE && continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1926 fi
1927 done
1928
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1938 esac
1939 fi
1940 else
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1944 fi
1945
1946 # Check that the precious variables saved in the cache have kept the same
1947 # value.
1948 ac_cache_corrupted=false
1949 for ac_var in $ac_precious_vars; do
1950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951 eval ac_new_set=\$ac_env_${ac_var}_set
1952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953 eval ac_new_val=\$ac_env_${ac_var}_value
1954 case $ac_old_set,$ac_new_set in
1955 set,)
1956 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1959 ,set)
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,);;
1964 *)
1965 if test "x$ac_old_val" != "x$ac_new_val"; then
1966 # differences in whitespace do not lead to failure.
1967 ac_old_val_w=`echo x $ac_old_val`
1968 ac_new_val_w=`echo x $ac_new_val`
1969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972 ac_cache_corrupted=:
1973 else
1974 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1976 eval $ac_var=\$ac_old_val
1977 fi
1978 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1979 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1980 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1982 fi;;
1983 esac
1984 # Pass precious variables to config.status.
1985 if test "$ac_new_set" = set; then
1986 case $ac_new_val in
1987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 *) ac_arg=$ac_var=$ac_new_val ;;
1989 esac
1990 case " $ac_configure_args " in
1991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1992 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1993 esac
1994 fi
1995 done
1996 if $ac_cache_corrupted; then
1997 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2004 fi
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037
2038 >confdefs.h # Kill PACKAGE_ macros
2039
2040
2041 am__api_version='1.11'
2042
2043 ac_aux_dir=
2044 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2045 if test -f "$ac_dir/install-sh"; then
2046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 break
2049 elif test -f "$ac_dir/install.sh"; then
2050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 break
2053 elif test -f "$ac_dir/shtool"; then
2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 break
2057 fi
2058 done
2059 if test -z "$ac_aux_dir"; then
2060 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2061 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2062 { (exit 1); exit 1; }; }
2063 fi
2064
2065 # These three variables are undocumented and unsupported,
2066 # and are intended to be withdrawn in a future Autoconf release.
2067 # They can cause serious problems if a builder's source tree is in a directory
2068 # whose full name contains unusual characters.
2069 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2072
2073
2074 # Find a good install program. We prefer a C program (faster),
2075 # so one script is as good as another. But avoid the broken or
2076 # incompatible versions:
2077 # SysV /etc/install, /usr/sbin/install
2078 # SunOS /usr/etc/install
2079 # IRIX /sbin/install
2080 # AIX /bin/install
2081 # AmigaOS /C/install, which installs bootblocks on floppy discs
2082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2085 # OS/2's system install, which has a completely different semantic
2086 # ./install, which can be erroneously created by make from ./install.sh.
2087 # Reject install programs that cannot install multiple files.
2088 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2089 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2090 if test -z "$INSTALL"; then
2091 if test "${ac_cv_path_install+set}" = set; then
2092 $as_echo_n "(cached) " >&6
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 # Account for people who put trailing slashes in PATH elements.
2100 case $as_dir/ in
2101 ./ | .// | /cC/* | \
2102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2103 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2104 /usr/ucb/* ) ;;
2105 *)
2106 # OSF1 and SCO ODT 3.0 have their own names for install.
2107 # Don't use installbsd from OSF since it installs stuff as root
2108 # by default.
2109 for ac_prog in ginstall scoinst install; do
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2112 if test $ac_prog = install &&
2113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2114 # AIX install. It has an incompatible calling convention.
2115 :
2116 elif test $ac_prog = install &&
2117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # program-specific install script used by HP pwplus--don't use.
2119 :
2120 else
2121 rm -rf conftest.one conftest.two conftest.dir
2122 echo one > conftest.one
2123 echo two > conftest.two
2124 mkdir conftest.dir
2125 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2126 test -s conftest.one && test -s conftest.two &&
2127 test -s conftest.dir/conftest.one &&
2128 test -s conftest.dir/conftest.two
2129 then
2130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2131 break 3
2132 fi
2133 fi
2134 fi
2135 done
2136 done
2137 ;;
2138 esac
2139
2140 done
2141 IFS=$as_save_IFS
2142
2143 rm -rf conftest.one conftest.two conftest.dir
2144
2145 fi
2146 if test "${ac_cv_path_install+set}" = set; then
2147 INSTALL=$ac_cv_path_install
2148 else
2149 # As a last resort, use the slow shell script. Don't cache a
2150 # value for INSTALL within a source directory, because that will
2151 # break other packages using the cache if that directory is
2152 # removed, or if the value is a relative name.
2153 INSTALL=$ac_install_sh
2154 fi
2155 fi
2156 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2157 $as_echo "$INSTALL" >&6; }
2158
2159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2160 # It thinks the first close brace ends the variable substitution.
2161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2162
2163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2164
2165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2166
2167 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2168 $as_echo_n "checking whether build environment is sane... " >&6; }
2169 # Just in case
2170 sleep 1
2171 echo timestamp > conftest.file
2172 # Reject unsafe characters in $srcdir or the absolute working directory
2173 # name. Accept space and tab only in the latter.
2174 am_lf='
2175 '
2176 case `pwd` in
2177 *[\\\"\#\$\&\'\`$am_lf]*)
2178 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2179 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2180 { (exit 1); exit 1; }; };;
2181 esac
2182 case $srcdir in
2183 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2184 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2185 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2186 { (exit 1); exit 1; }; };;
2187 esac
2188
2189 # Do `set' in a subshell so we don't clobber the current shell's
2190 # arguments. Must try -L first in case configure is actually a
2191 # symlink; some systems play weird games with the mod time of symlinks
2192 # (eg FreeBSD returns the mod time of the symlink's containing
2193 # directory).
2194 if (
2195 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2196 if test "$*" = "X"; then
2197 # -L didn't work.
2198 set X `ls -t "$srcdir/configure" conftest.file`
2199 fi
2200 rm -f conftest.file
2201 if test "$*" != "X $srcdir/configure conftest.file" \
2202 && test "$*" != "X conftest.file $srcdir/configure"; then
2203
2204 # If neither matched, then we have a broken ls. This can happen
2205 # if, for instance, CONFIG_SHELL is bash and it inherits a
2206 # broken ls alias from the environment. This has actually
2207 # happened. Such a system could not be considered "sane".
2208 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2209 alias in your environment" >&5
2210 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2211 alias in your environment" >&2;}
2212 { (exit 1); exit 1; }; }
2213 fi
2214
2215 test "$2" = conftest.file
2216 )
2217 then
2218 # Ok.
2219 :
2220 else
2221 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2222 Check your system clock" >&5
2223 $as_echo "$as_me: error: newly created file is older than distributed files!
2224 Check your system clock" >&2;}
2225 { (exit 1); exit 1; }; }
2226 fi
2227 { $as_echo "$as_me:$LINENO: result: yes" >&5
2228 $as_echo "yes" >&6; }
2229 test "$program_prefix" != NONE &&
2230 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2231 # Use a double $ so make ignores it.
2232 test "$program_suffix" != NONE &&
2233 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2234 # Double any \ or $.
2235 # By default was `s,x,x', remove it if useless.
2236 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2237 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2238
2239 # expand $ac_aux_dir to an absolute path
2240 am_aux_dir=`cd $ac_aux_dir && pwd`
2241
2242 if test x"${MISSING+set}" != xset; then
2243 case $am_aux_dir in
2244 *\ * | *\ *)
2245 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2246 *)
2247 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2248 esac
2249 fi
2250 # Use eval to expand $SHELL
2251 if eval "$MISSING --run true"; then
2252 am_missing_run="$MISSING --run "
2253 else
2254 am_missing_run=
2255 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2256 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2257 fi
2258
2259 if test x"${install_sh}" != xset; then
2260 case $am_aux_dir in
2261 *\ * | *\ *)
2262 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2263 *)
2264 install_sh="\${SHELL} $am_aux_dir/install-sh"
2265 esac
2266 fi
2267
2268 # Installed binaries are usually stripped using `strip' when the user
2269 # run `make install-strip'. However `strip' might not be the right
2270 # tool to use in cross-compilation environments, therefore Automake
2271 # will honor the `STRIP' environment variable to overrule this program.
2272 if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275 set dummy ${ac_tool_prefix}strip; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_STRIP+set}" = set; then
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295 done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300 fi
2301 STRIP=$ac_cv_prog_STRIP
2302 if test -n "$STRIP"; then
2303 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2304 $as_echo "$STRIP" >&6; }
2305 else
2306 { $as_echo "$as_me:$LINENO: result: no" >&5
2307 $as_echo "no" >&6; }
2308 fi
2309
2310
2311 fi
2312 if test -z "$ac_cv_prog_STRIP"; then
2313 ac_ct_STRIP=$STRIP
2314 # Extract the first word of "strip", so it can be a program name with args.
2315 set dummy strip; ac_word=$2
2316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 $as_echo_n "checking for $ac_word... " >&6; }
2318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 $as_echo_n "(cached) " >&6
2320 else
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323 else
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_STRIP="strip"
2332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335 done
2336 done
2337 IFS=$as_save_IFS
2338
2339 fi
2340 fi
2341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342 if test -n "$ac_ct_STRIP"; then
2343 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344 $as_echo "$ac_ct_STRIP" >&6; }
2345 else
2346 { $as_echo "$as_me:$LINENO: result: no" >&5
2347 $as_echo "no" >&6; }
2348 fi
2349
2350 if test "x$ac_ct_STRIP" = x; then
2351 STRIP=":"
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354 yes:)
2355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2357 ac_tool_warned=yes ;;
2358 esac
2359 STRIP=$ac_ct_STRIP
2360 fi
2361 else
2362 STRIP="$ac_cv_prog_STRIP"
2363 fi
2364
2365 fi
2366 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2367
2368 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2369 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2370 if test -z "$MKDIR_P"; then
2371 if test "${ac_cv_path_mkdir+set}" = set; then
2372 $as_echo_n "(cached) " >&6
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_prog in mkdir gmkdir; do
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2382 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2383 'mkdir (GNU coreutils) '* | \
2384 'mkdir (coreutils) '* | \
2385 'mkdir (fileutils) '4.1*)
2386 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2387 break 3;;
2388 esac
2389 done
2390 done
2391 done
2392 IFS=$as_save_IFS
2393
2394 fi
2395
2396 if test "${ac_cv_path_mkdir+set}" = set; then
2397 MKDIR_P="$ac_cv_path_mkdir -p"
2398 else
2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for MKDIR_P within a source directory, because that will
2401 # break other packages using the cache if that directory is
2402 # removed, or if the value is a relative name.
2403 test -d ./--version && rmdir ./--version
2404 MKDIR_P="$ac_install_sh -d"
2405 fi
2406 fi
2407 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2408 $as_echo "$MKDIR_P" >&6; }
2409
2410 mkdir_p="$MKDIR_P"
2411 case $mkdir_p in
2412 [\\/$]* | ?:[\\/]*) ;;
2413 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2414 esac
2415
2416 for ac_prog in gawk mawk nawk awk
2417 do
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419 set dummy $ac_prog; ac_word=$2
2420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if test "${ac_cv_prog_AWK+set}" = set; then
2423 $as_echo_n "(cached) " >&6
2424 else
2425 if test -n "$AWK"; then
2426 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 ac_cv_prog_AWK="$ac_prog"
2436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441 IFS=$as_save_IFS
2442
2443 fi
2444 fi
2445 AWK=$ac_cv_prog_AWK
2446 if test -n "$AWK"; then
2447 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2448 $as_echo "$AWK" >&6; }
2449 else
2450 { $as_echo "$as_me:$LINENO: result: no" >&5
2451 $as_echo "no" >&6; }
2452 fi
2453
2454
2455 test -n "$AWK" && break
2456 done
2457
2458 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2459 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2460 set x ${MAKE-make}
2461 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2462 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2463 $as_echo_n "(cached) " >&6
2464 else
2465 cat >conftest.make <<\_ACEOF
2466 SHELL = /bin/sh
2467 all:
2468 @echo '@@@%%%=$(MAKE)=@@@%%%'
2469 _ACEOF
2470 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2471 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2472 *@@@%%%=?*=@@@%%%*)
2473 eval ac_cv_prog_make_${ac_make}_set=yes;;
2474 *)
2475 eval ac_cv_prog_make_${ac_make}_set=no;;
2476 esac
2477 rm -f conftest.make
2478 fi
2479 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2480 { $as_echo "$as_me:$LINENO: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 SET_MAKE=
2483 else
2484 { $as_echo "$as_me:$LINENO: result: no" >&5
2485 $as_echo "no" >&6; }
2486 SET_MAKE="MAKE=${MAKE-make}"
2487 fi
2488
2489 rm -rf .tst 2>/dev/null
2490 mkdir .tst 2>/dev/null
2491 if test -d .tst; then
2492 am__leading_dot=.
2493 else
2494 am__leading_dot=_
2495 fi
2496 rmdir .tst 2>/dev/null
2497
2498 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2500 # is not polluted with repeated "-I."
2501 am__isrc=' -I$(srcdir)'
2502 # test to see if srcdir already configured
2503 if test -f $srcdir/config.status; then
2504 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2505 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2506 { (exit 1); exit 1; }; }
2507 fi
2508 fi
2509
2510 # test whether we have cygpath
2511 if test -z "$CYGPATH_W"; then
2512 if (cygpath --version) >/dev/null 2>/dev/null; then
2513 CYGPATH_W='cygpath -w'
2514 else
2515 CYGPATH_W=echo
2516 fi
2517 fi
2518
2519
2520 # Define the identity of the package.
2521 PACKAGE='gdbmobj'
2522 VERSION='0.10'
2523
2524
2525 # Some tools Automake needs.
2526
2527 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2528
2529
2530 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2531
2532
2533 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2534
2535
2536 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2537
2538
2539 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2540
2541 # We need awk for the "check" target. The system "awk" is bad on
2542 # some platforms.
2543 # Always define AMTAR for backward compatibility.
2544
2545 AMTAR=${AMTAR-"${am_missing_run}tar"}
2546
2547 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2548
2549
2550
2551
2552
2553 ac_config_headers="$ac_config_headers config.h"
2554
2555
2556 DEPDIR="${am__leading_dot}deps"
2557
2558 ac_config_commands="$ac_config_commands depfiles"
2559
2560
2561 am_make=${MAKE-make}
2562 cat > confinc << 'END'
2563 am__doit:
2564 @echo this is the am__doit target
2565 .PHONY: am__doit
2566 END
2567 # If we don't find an include directive, just comment out the code.
2568 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2569 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2570 am__include="#"
2571 am__quote=
2572 _am_result=none
2573 # First try GNU make style include.
2574 echo "include confinc" > confmf
2575 # Ignore all kinds of additional output from `make'.
2576 case `$am_make -s -f confmf 2> /dev/null` in #(
2577 *the\ am__doit\ target*)
2578 am__include=include
2579 am__quote=
2580 _am_result=GNU
2581 ;;
2582 esac
2583 # Now try BSD make style include.
2584 if test "$am__include" = "#"; then
2585 echo '.include "confinc"' > confmf
2586 case `$am_make -s -f confmf 2> /dev/null` in #(
2587 *the\ am__doit\ target*)
2588 am__include=.include
2589 am__quote="\""
2590 _am_result=BSD
2591 ;;
2592 esac
2593 fi
2594
2595
2596 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2597 $as_echo "$_am_result" >&6; }
2598 rm -f confinc confmf
2599
2600 # Check whether --enable-dependency-tracking was given.
2601 if test "${enable_dependency_tracking+set}" = set; then
2602 enableval=$enable_dependency_tracking;
2603 fi
2604
2605 if test "x$enable_dependency_tracking" != xno; then
2606 am_depcomp="$ac_aux_dir/depcomp"
2607 AMDEPBACKSLASH='\'
2608 fi
2609 if test "x$enable_dependency_tracking" != xno; then
2610 AMDEP_TRUE=
2611 AMDEP_FALSE='#'
2612 else
2613 AMDEP_TRUE='#'
2614 AMDEP_FALSE=
2615 fi
2616
2617
2618 ac_ext=c
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2625 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629 $as_echo_n "(cached) " >&6
2630 else
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2654 $as_echo "$CC" >&6; }
2655 else
2656 { $as_echo "$as_me:$LINENO: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660
2661 fi
2662 if test -z "$ac_cv_prog_CC"; then
2663 ac_ct_CC=$CC
2664 # Extract the first word of "gcc", so it can be a program name with args.
2665 set dummy gcc; ac_word=$2
2666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$ac_ct_CC"; then
2672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_ac_ct_CC="gcc"
2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2692 if test -n "$ac_ct_CC"; then
2693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2694 $as_echo "$ac_ct_CC" >&6; }
2695 else
2696 { $as_echo "$as_me:$LINENO: result: no" >&5
2697 $as_echo "no" >&6; }
2698 fi
2699
2700 if test "x$ac_ct_CC" = x; then
2701 CC=""
2702 else
2703 case $cross_compiling:$ac_tool_warned in
2704 yes:)
2705 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2707 ac_tool_warned=yes ;;
2708 esac
2709 CC=$ac_ct_CC
2710 fi
2711 else
2712 CC="$ac_cv_prog_CC"
2713 fi
2714
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}cc; ac_word=$2
2719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_CC="${ac_tool_prefix}cc"
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2748 else
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754 fi
2755 fi
2756 if test -z "$CC"; then
2757 # Extract the first word of "cc", so it can be a program name with args.
2758 set dummy cc; ac_word=$2
2759 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if test "${ac_cv_prog_CC+set}" = set; then
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 ac_prog_rejected=no
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2776 ac_prog_rejected=yes
2777 continue
2778 fi
2779 ac_cv_prog_CC="cc"
2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 if test $ac_prog_rejected = yes; then
2788 # We found a bogon in the path, so make sure we never use it.
2789 set dummy $ac_cv_prog_CC
2790 shift
2791 if test $# != 0; then
2792 # We chose a different compiler from the bogus one.
2793 # However, it has the same basename, so the bogon will be chosen
2794 # first if we set CC to just the basename; use the full file name.
2795 shift
2796 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797 fi
2798 fi
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2804 $as_echo "$CC" >&6; }
2805 else
2806 { $as_echo "$as_me:$LINENO: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$CC"; then
2813 if test -n "$ac_tool_prefix"; then
2814 for ac_prog in cl.exe
2815 do
2816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2846 $as_echo "$CC" >&6; }
2847 else
2848 { $as_echo "$as_me:$LINENO: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852
2853 test -n "$CC" && break
2854 done
2855 fi
2856 if test -z "$CC"; then
2857 ac_ct_CC=$CC
2858 for ac_prog in cl.exe
2859 do
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$ac_ct_CC"; then
2868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_ac_ct_CC="$ac_prog"
2878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888 if test -n "$ac_ct_CC"; then
2889 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890 $as_echo "$ac_ct_CC" >&6; }
2891 else
2892 { $as_echo "$as_me:$LINENO: result: no" >&5
2893 $as_echo "no" >&6; }
2894 fi
2895
2896
2897 test -n "$ac_ct_CC" && break
2898 done
2899
2900 if test "x$ac_ct_CC" = x; then
2901 CC=""
2902 else
2903 case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907 ac_tool_warned=yes ;;
2908 esac
2909 CC=$ac_ct_CC
2910 fi
2911 fi
2912
2913 fi
2914
2915
2916 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2919 See \`config.log' for more details." >&5
2920 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2921 See \`config.log' for more details." >&2;}
2922 { (exit 1); exit 1; }; }; }
2923
2924 # Provide some information about the compiler.
2925 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2926 set X $ac_compile
2927 ac_compiler=$2
2928 { (ac_try="$ac_compiler --version >&5"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2934 $as_echo "$ac_try_echo") >&5
2935 (eval "$ac_compiler --version >&5") 2>&5
2936 ac_status=$?
2937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2939 { (ac_try="$ac_compiler -v >&5"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2945 $as_echo "$ac_try_echo") >&5
2946 (eval "$ac_compiler -v >&5") 2>&5
2947 ac_status=$?
2948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2950 { (ac_try="$ac_compiler -V >&5"
2951 case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2956 $as_echo "$ac_try_echo") >&5
2957 (eval "$ac_compiler -V >&5") 2>&5
2958 ac_status=$?
2959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2961
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968
2969 int
2970 main ()
2971 {
2972
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 ac_clean_files_save=$ac_clean_files
2978 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2981 # of exeext.
2982 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2983 $as_echo_n "checking for C compiler default output file name... " >&6; }
2984 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2985
2986 # The possible output files:
2987 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2988
2989 ac_rmfiles=
2990 for ac_file in $ac_files
2991 do
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996 done
2997 rm -f $ac_rmfiles
2998
2999 if { (ac_try="$ac_link_default"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3005 $as_echo "$ac_try_echo") >&5
3006 (eval "$ac_link_default") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; then
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3014 # Autoconf.
3015 for ac_file in $ac_files ''
3016 do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3020 ;;
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 fi
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
3035 break;;
3036 * )
3037 break;;
3038 esac
3039 done
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3041
3042 else
3043 ac_file=''
3044 fi
3045
3046 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3047 $as_echo "$ac_file" >&6; }
3048 if test -z "$ac_file"; then
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3055 See \`config.log' for more details." >&5
3056 $as_echo "$as_me: error: C compiler cannot create executables
3057 See \`config.log' for more details." >&2;}
3058 { (exit 77); exit 77; }; }; }
3059 fi
3060
3061 ac_exeext=$ac_cv_exeext
3062
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3066 $as_echo_n "checking whether the C compiler works... " >&6; }
3067 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3068 # If not cross compiling, check that we can run a simple program.
3069 if test "$cross_compiling" != yes; then
3070 if { ac_try='./$ac_file'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3076 $as_echo "$ac_try_echo") >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; }; then
3081 cross_compiling=no
3082 else
3083 if test "$cross_compiling" = maybe; then
3084 cross_compiling=yes
3085 else
3086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details." >&5
3091 $as_echo "$as_me: error: cannot run C compiled programs.
3092 If you meant to cross compile, use \`--host'.
3093 See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }; }
3095 fi
3096 fi
3097 fi
3098 { $as_echo "$as_me:$LINENO: result: yes" >&5
3099 $as_echo "yes" >&6; }
3100
3101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102 ac_clean_files=$ac_clean_files_save
3103 # Check that the compiler produces executables we can run. If not, either
3104 # the compiler is broken, or we cross compile.
3105 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3106 $as_echo_n "checking whether we are cross compiling... " >&6; }
3107 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3108 $as_echo "$cross_compiling" >&6; }
3109
3110 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3111 $as_echo_n "checking for suffix of executables... " >&6; }
3112 if { (ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3118 $as_echo "$ac_try_echo") >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; then
3123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3124 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3125 # work properly (i.e., refer to `conftest.exe'), while it won't with
3126 # `rm'.
3127 for ac_file in conftest.exe conftest conftest.*; do
3128 test -f "$ac_file" || continue
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 break;;
3133 * ) break;;
3134 esac
3135 done
3136 else
3137 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3140 See \`config.log' for more details." >&5
3141 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3142 See \`config.log' for more details." >&2;}
3143 { (exit 1); exit 1; }; }; }
3144 fi
3145
3146 rm -f conftest$ac_cv_exeext
3147 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3148 $as_echo "$ac_cv_exeext" >&6; }
3149
3150 rm -f conftest.$ac_ext
3151 EXEEXT=$ac_cv_exeext
3152 ac_exeext=$EXEEXT
3153 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3154 $as_echo_n "checking for suffix of object files... " >&6; }
3155 if test "${ac_cv_objext+set}" = set; then
3156 $as_echo_n "(cached) " >&6
3157 else
3158 cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164
3165 int
3166 main ()
3167 {
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.o conftest.obj
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181 (eval "$ac_compile") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; then
3185 for ac_file in conftest.o conftest.obj conftest.*; do
3186 test -f "$ac_file" || continue;
3187 case $ac_file in
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3190 break;;
3191 esac
3192 done
3193 else
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3200 See \`config.log' for more details." >&5
3201 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }; }
3204 fi
3205
3206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 fi
3208 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3209 $as_echo "$ac_cv_objext" >&6; }
3210 OBJEXT=$ac_cv_objext
3211 ac_objext=$OBJEXT
3212 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3213 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3214 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3215 $as_echo_n "(cached) " >&6
3216 else
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223
3224 int
3225 main ()
3226 {
3227 #ifndef __GNUC__
3228 choke me
3229 #endif
3230
3231 ;
3232 return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242 $as_echo "$ac_try_echo") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3253 ac_compiler_gnu=yes
3254 else
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ac_compiler_gnu=no
3259 fi
3260
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263
3264 fi
3265 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3266 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3267 if test $ac_compiler_gnu = yes; then
3268 GCC=yes
3269 else
3270 GCC=
3271 fi
3272 ac_test_CFLAGS=${CFLAGS+set}
3273 ac_save_CFLAGS=$CFLAGS
3274 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3275 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3276 if test "${ac_cv_prog_cc_g+set}" = set; then
3277 $as_echo_n "(cached) " >&6
3278 else
3279 ac_save_c_werror_flag=$ac_c_werror_flag
3280 ac_c_werror_flag=yes
3281 ac_cv_prog_cc_g=no
3282 CFLAGS="-g"
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 rm -f conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3305 $as_echo "$ac_try_echo") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 ac_cv_prog_cc_g=yes
3317 else
3318 $as_echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 CFLAGS=""
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328
3329 int
3330 main ()
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 :
3356 else
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3361 CFLAGS="-g"
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_compile") 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } && {
3392 test -z "$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 } && test -s conftest.$ac_objext; then
3395 ac_cv_prog_cc_g=yes
3396 else
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400
3401 fi
3402
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 fi
3405
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3411 fi
3412 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3413 $as_echo "$ac_cv_prog_cc_g" >&6; }
3414 if test "$ac_test_CFLAGS" = set; then
3415 CFLAGS=$ac_save_CFLAGS
3416 elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3418 CFLAGS="-g -O2"
3419 else
3420 CFLAGS="-g"
3421 fi
3422 else
3423 if test "$GCC" = yes; then
3424 CFLAGS="-O2"
3425 else
3426 CFLAGS=
3427 fi
3428 fi
3429 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3430 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3431 if test "${ac_cv_prog_cc_c89+set}" = set; then
3432 $as_echo_n "(cached) " >&6
3433 else
3434 ac_cv_prog_cc_c89=no
3435 ac_save_CC=$CC
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <stdarg.h>
3443 #include <stdio.h>
3444 #include <sys/types.h>
3445 #include <sys/stat.h>
3446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3447 struct buf { int x; };
3448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449 static char *e (p, i)
3450 char **p;
3451 int i;
3452 {
3453 return p[i];
3454 }
3455 static char *f (char * (*g) (char **, int), char **p, ...)
3456 {
3457 char *s;
3458 va_list v;
3459 va_start (v,p);
3460 s = g (p, va_arg (v,int));
3461 va_end (v);
3462 return s;
3463 }
3464
3465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3466 function prototypes and stuff, but not '\xHH' hex character constants.
3467 These don't provoke an error unfortunately, instead are silently treated
3468 as 'x'. The following induces an error, until -std is added to get
3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3470 array size at least. It's necessary to write '\x00'==0 to get something
3471 that's true only with -std. */
3472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
3474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3475 inside strings and character constants. */
3476 #define FOO(x) 'x'
3477 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478
3479 int test (int i, double x);
3480 struct s1 {int (*f) (int a);};
3481 struct s2 {int (*f) (double a);};
3482 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3483 int argc;
3484 char **argv;
3485 int
3486 main ()
3487 {
3488 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3494 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 do
3496 CC="$ac_save_CC $ac_arg"
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3515 ac_cv_prog_cc_c89=$ac_arg
3516 else
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520
3521 fi
3522
3523 rm -f core conftest.err conftest.$ac_objext
3524 test "x$ac_cv_prog_cc_c89" != "xno" && break
3525 done
3526 rm -f conftest.$ac_ext
3527 CC=$ac_save_CC
3528
3529 fi
3530 # AC_CACHE_VAL
3531 case "x$ac_cv_prog_cc_c89" in
3532 x)
3533 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3534 $as_echo "none needed" >&6; } ;;
3535 xno)
3536 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3537 $as_echo "unsupported" >&6; } ;;
3538 *)
3539 CC="$CC $ac_cv_prog_cc_c89"
3540 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3541 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3542 esac
3543
3544
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550
3551 depcc="$CC" am_compiler_list=
3552
3553 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3554 $as_echo_n "checking dependency style of $depcc... " >&6; }
3555 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3559 # We make a subdir and do the tests there. Otherwise we can end up
3560 # making bogus files that we don't know about and never remove. For
3561 # instance it was reported that on HP-UX the gcc test will end up
3562 # making a dummy file named `D' -- because `-MD' means `put the output
3563 # in D'.
3564 mkdir conftest.dir
3565 # Copy depcomp to subdir because otherwise we won't find it if we're
3566 # using a relative directory.
3567 cp "$am_depcomp" conftest.dir
3568 cd conftest.dir
3569 # We will build objects and dependencies in a subdirectory because
3570 # it helps to detect inapplicable dependency modes. For instance
3571 # both Tru64's cc and ICC support -MD to output dependencies as a
3572 # side effect of compilation, but ICC will put the dependencies in
3573 # the current directory while Tru64 will put them in the object
3574 # directory.
3575 mkdir sub
3576
3577 am_cv_CC_dependencies_compiler_type=none
3578 if test "$am_compiler_list" = ""; then
3579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3580 fi
3581 am__universal=false
3582 case " $depcc " in #(
3583 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3584 esac
3585
3586 for depmode in $am_compiler_list; do
3587 # Setup a source with many dependencies, because some compilers
3588 # like to wrap large dependency lists on column 80 (with \), and
3589 # we should not choose a depcomp mode which is confused by this.
3590 #
3591 # We need to recreate these files for each test, as the compiler may
3592 # overwrite some of them when testing with obscure command lines.
3593 # This happens at least with the AIX C compiler.
3594 : > sub/conftest.c
3595 for i in 1 2 3 4 5 6; do
3596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3598 # Solaris 8's {/usr,}/bin/sh.
3599 touch sub/conftst$i.h
3600 done
3601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602
3603 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604 # mode. It turns out that the SunPro C++ compiler does not properly
3605 # handle `-M -o', and we need to detect this. Also, some Intel
3606 # versions had trouble with output in subdirs
3607 am__obj=sub/conftest.${OBJEXT-o}
3608 am__minus_obj="-o $am__obj"
3609 case $depmode in
3610 gcc)
3611 # This depmode causes a compiler race in universal mode.
3612 test "$am__universal" = false || continue
3613 ;;
3614 nosideeffect)
3615 # after this tag, mechanisms are not by side-effect, so they'll
3616 # only be used when explicitly requested
3617 if test "x$enable_dependency_tracking" = xyes; then
3618 continue
3619 else
3620 break
3621 fi
3622 ;;
3623 msvisualcpp | msvcmsys)
3624 # This compiler won't grok `-c -o', but also, the minuso test has
3625 # not run yet. These depmodes are late enough in the game, and
3626 # so weak that their functioning should not be impacted.
3627 am__obj=conftest.${OBJEXT-o}
3628 am__minus_obj=
3629 ;;
3630 none) break ;;
3631 esac
3632 if depmode=$depmode \
3633 source=sub/conftest.c object=$am__obj \
3634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3636 >/dev/null 2>conftest.err &&
3637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3641 # icc doesn't choke on unknown options, it will just issue warnings
3642 # or remarks (even with -Werror). So we grep stderr for any message
3643 # that says an option was ignored or not supported.
3644 # When given -MP, icc 7.0 and 7.1 complain thusly:
3645 # icc: Command line warning: ignoring option '-M'; no argument required
3646 # The diagnosis changed in icc 8.0:
3647 # icc: Command line remark: option '-MP' not supported
3648 if (grep 'ignoring option' conftest.err ||
3649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3650 am_cv_CC_dependencies_compiler_type=$depmode
3651 break
3652 fi
3653 fi
3654 done
3655
3656 cd ..
3657 rm -rf conftest.dir
3658 else
3659 am_cv_CC_dependencies_compiler_type=none
3660 fi
3661
3662 fi
3663 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3664 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3665 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3666
3667 if
3668 test "x$enable_dependency_tracking" != xno \
3669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3670 am__fastdepCC_TRUE=
3671 am__fastdepCC_FALSE='#'
3672 else
3673 am__fastdepCC_TRUE='#'
3674 am__fastdepCC_FALSE=
3675 fi
3676
3677
3678
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3685 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3686 # On Suns, sometimes $CPP names a directory.
3687 if test -n "$CPP" && test -d "$CPP"; then
3688 CPP=
3689 fi
3690 if test -z "$CPP"; then
3691 if test "${ac_cv_prog_CPP+set}" = set; then
3692 $as_echo_n "(cached) " >&6
3693 else
3694 # Double quotes because CPP needs to be expanded
3695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3696 do
3697 ac_preproc_ok=false
3698 for ac_c_preproc_warn_flag in '' yes
3699 do
3700 # Use a header file that comes with gcc, so configuring glibc
3701 # with a fresh cross-compiler works.
3702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3703 # <limits.h> exists even on freestanding compilers.
3704 # On the NeXT, cc -E runs the code through the compiler's parser,
3705 # not just through cpp. "Syntax error" is here to catch this case.
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h. */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 #ifdef __STDC__
3713 # include <limits.h>
3714 #else
3715 # include <assert.h>
3716 #endif
3717 Syntax error
3718 _ACEOF
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725 $as_echo "$ac_try_echo") >&5
3726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } >/dev/null && {
3733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 }; then
3736 :
3737 else
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 # Broken: fails on valid input.
3742 continue
3743 fi
3744
3745 rm -f conftest.err conftest.$ac_ext
3746
3747 # OK, works on sane cases. Now check whether nonexistent headers
3748 # can be detected and how.
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #include <ac_nonexistent.h>
3756 _ACEOF
3757 if { (ac_try="$ac_cpp conftest.$ac_ext"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } >/dev/null && {
3771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 }; then
3774 # Broken: success on invalid input.
3775 continue
3776 else
3777 $as_echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 # Passes both tests.
3781 ac_preproc_ok=:
3782 break
3783 fi
3784
3785 rm -f conftest.err conftest.$ac_ext
3786
3787 done
3788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3789 rm -f conftest.err conftest.$ac_ext
3790 if $ac_preproc_ok; then
3791 break
3792 fi
3793
3794 done
3795 ac_cv_prog_CPP=$CPP
3796
3797 fi
3798 CPP=$ac_cv_prog_CPP
3799 else
3800 ac_cv_prog_CPP=$CPP
3801 fi
3802 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3803 $as_echo "$CPP" >&6; }
3804 ac_preproc_ok=false
3805 for ac_c_preproc_warn_flag in '' yes
3806 do
3807 # Use a header file that comes with gcc, so configuring glibc
3808 # with a fresh cross-compiler works.
3809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3810 # <limits.h> exists even on freestanding compilers.
3811 # On the NeXT, cc -E runs the code through the compiler's parser,
3812 # not just through cpp. "Syntax error" is here to catch this case.
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #ifdef __STDC__
3820 # include <limits.h>
3821 #else
3822 # include <assert.h>
3823 #endif
3824 Syntax error
3825 _ACEOF
3826 if { (ac_try="$ac_cpp conftest.$ac_ext"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } >/dev/null && {
3840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 }; then
3843 :
3844 else
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 # Broken: fails on valid input.
3849 continue
3850 fi
3851
3852 rm -f conftest.err conftest.$ac_ext
3853
3854 # OK, works on sane cases. Now check whether nonexistent headers
3855 # can be detected and how.
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h. */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862 #include <ac_nonexistent.h>
3863 _ACEOF
3864 if { (ac_try="$ac_cpp conftest.$ac_ext"
3865 case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null && {
3878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 }; then
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 $as_echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887 # Passes both tests.
3888 ac_preproc_ok=:
3889 break
3890 fi
3891
3892 rm -f conftest.err conftest.$ac_ext
3893
3894 done
3895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3896 rm -f conftest.err conftest.$ac_ext
3897 if $ac_preproc_ok; then
3898 :
3899 else
3900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3903 See \`config.log' for more details." >&5
3904 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3905 See \`config.log' for more details." >&2;}
3906 { (exit 1); exit 1; }; }; }
3907 fi
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915
3916 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3917 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3918 if test "${ac_cv_path_GREP+set}" = set; then
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test -z "$GREP"; then
3922 ac_path_GREP_found=false
3923 # Loop through the user's path and test for each of PROGNAME-LIST
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3926 do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_prog in grep ggrep; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3932 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3933 # Check for GNU ac_path_GREP and select it if it is found.
3934 # Check for GNU $ac_path_GREP
3935 case `"$ac_path_GREP" --version 2>&1` in
3936 *GNU*)
3937 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3938 *)
3939 ac_count=0
3940 $as_echo_n 0123456789 >"conftest.in"
3941 while :
3942 do
3943 cat "conftest.in" "conftest.in" >"conftest.tmp"
3944 mv "conftest.tmp" "conftest.in"
3945 cp "conftest.in" "conftest.nl"
3946 $as_echo 'GREP' >> "conftest.nl"
3947 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949 ac_count=`expr $ac_count + 1`
3950 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3951 # Best one so far, save it but keep looking for a better one
3952 ac_cv_path_GREP="$ac_path_GREP"
3953 ac_path_GREP_max=$ac_count
3954 fi
3955 # 10*(2^10) chars as input seems more than enough
3956 test $ac_count -gt 10 && break
3957 done
3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 esac
3960
3961 $ac_path_GREP_found && break 3
3962 done
3963 done
3964 done
3965 IFS=$as_save_IFS
3966 if test -z "$ac_cv_path_GREP"; then
3967 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3968 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3969 { (exit 1); exit 1; }; }
3970 fi
3971 else
3972 ac_cv_path_GREP=$GREP
3973 fi
3974
3975 fi
3976 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3977 $as_echo "$ac_cv_path_GREP" >&6; }
3978 GREP="$ac_cv_path_GREP"
3979
3980
3981 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3982 $as_echo_n "checking for egrep... " >&6; }
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987 then ac_cv_path_EGREP="$GREP -E"
3988 else
3989 if test -z "$EGREP"; then
3990 ac_path_EGREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3994 do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in egrep; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4000 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4001 # Check for GNU ac_path_EGREP and select it if it is found.
4002 # Check for GNU $ac_path_EGREP
4003 case `"$ac_path_EGREP" --version 2>&1` in
4004 *GNU*)
4005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4006 *)
4007 ac_count=0
4008 $as_echo_n 0123456789 >"conftest.in"
4009 while :
4010 do
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
4014 $as_echo 'EGREP' >> "conftest.nl"
4015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 ac_count=`expr $ac_count + 1`
4018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_EGREP="$ac_path_EGREP"
4021 ac_path_EGREP_max=$ac_count
4022 fi
4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4025 done
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 esac
4028
4029 $ac_path_EGREP_found && break 3
4030 done
4031 done
4032 done
4033 IFS=$as_save_IFS
4034 if test -z "$ac_cv_path_EGREP"; then
4035 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037 { (exit 1); exit 1; }; }
4038 fi
4039 else
4040 ac_cv_path_EGREP=$EGREP
4041 fi
4042
4043 fi
4044 fi
4045 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4046 $as_echo "$ac_cv_path_EGREP" >&6; }
4047 EGREP="$ac_cv_path_EGREP"
4048
4049
4050 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4051 $as_echo_n "checking for ANSI C header files... " >&6; }
4052 if test "${ac_cv_header_stdc+set}" = set; then
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <stdlib.h>
4062 #include <stdarg.h>
4063 #include <string.h>
4064 #include <float.h>
4065
4066 int
4067 main ()
4068 {
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (ac_try="$ac_compile"
4076 case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4081 $as_echo "$ac_try_echo") >&5
4082 (eval "$ac_compile") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } && {
4089 test -z "$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 } && test -s conftest.$ac_objext; then
4092 ac_cv_header_stdc=yes
4093 else
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 ac_cv_header_stdc=no
4098 fi
4099
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101
4102 if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <string.h>
4111
4112 _ACEOF
4113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4115 :
4116 else
4117 ac_cv_header_stdc=no
4118 fi
4119 rm -f conftest*
4120
4121 fi
4122
4123 if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include <stdlib.h>
4132
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4136 :
4137 else
4138 ac_cv_header_stdc=no
4139 fi
4140 rm -f conftest*
4141
4142 fi
4143
4144 if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4147 :
4148 else
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h. */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <ctype.h>
4156 #include <stdlib.h>
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160 #else
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166 #endif
4167
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169 int
4170 main ()
4171 {
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4176 return 2;
4177 return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest$ac_exeext
4181 if { (ac_try="$ac_link"
4182 case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187 $as_echo "$ac_try_echo") >&5
4188 (eval "$ac_link") 2>&5
4189 ac_status=$?
4190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197 $as_echo "$ac_try_echo") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 :
4203 else
4204 $as_echo "$as_me: program exited with status $ac_status" >&5
4205 $as_echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ( exit $ac_status )
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -rf conftest.dSYM
4212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4213 fi
4214
4215
4216 fi
4217 fi
4218 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219 $as_echo "$ac_cv_header_stdc" >&6; }
4220 if test $ac_cv_header_stdc = yes; then
4221
4222 cat >>confdefs.h <<\_ACEOF
4223 #define STDC_HEADERS 1
4224 _ACEOF
4225
4226 fi
4227
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4240 do
4241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 $as_echo_n "checking for $ac_header... " >&6; }
4244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4245 $as_echo_n "(cached) " >&6
4246 else
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4254
4255 #include <$ac_header>
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264 $as_echo "$ac_try_echo") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } && {
4272 test -z "$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 } && test -s conftest.$ac_objext; then
4275 eval "$as_ac_Header=yes"
4276 else
4277 $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 eval "$as_ac_Header=no"
4281 fi
4282
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 ac_res=`eval 'as_val=${'$as_ac_Header'}
4286 $as_echo "$as_val"'`
4287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4288 $as_echo "$ac_res" >&6; }
4289 as_val=`eval 'as_val=${'$as_ac_Header'}
4290 $as_echo "$as_val"'`
4291 if test "x$as_val" = x""yes; then
4292 cat >>confdefs.h <<_ACEOF
4293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 _ACEOF
4295
4296 fi
4297
4298 done
4299
4300
4301
4302 if test "${ac_cv_header_minix_config_h+set}" = set; then
4303 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4304 $as_echo_n "checking for minix/config.h... " >&6; }
4305 if test "${ac_cv_header_minix_config_h+set}" = set; then
4306 $as_echo_n "(cached) " >&6
4307 fi
4308 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4309 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4310 else
4311 # Is the header compilable?
4312 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4313 $as_echo_n "checking minix/config.h usability... " >&6; }
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4321 #include <minix/config.h>
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (ac_try="$ac_compile"
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_compile") 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); } && {
4338 test -z "$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4340 } && test -s conftest.$ac_objext; then
4341 ac_header_compiler=yes
4342 else
4343 $as_echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 ac_header_compiler=no
4347 fi
4348
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4351 $as_echo "$ac_header_compiler" >&6; }
4352
4353 # Is the header present?
4354 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4355 $as_echo_n "checking minix/config.h presence... " >&6; }
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h. */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <minix/config.h>
4363 _ACEOF
4364 if { (ac_try="$ac_cpp conftest.$ac_ext"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 }; then
4381 ac_header_preproc=yes
4382 else
4383 $as_echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 ac_header_preproc=no
4387 fi
4388
4389 rm -f conftest.err conftest.$ac_ext
4390 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4391 $as_echo "$ac_header_preproc" >&6; }
4392
4393 # So? What about this header?
4394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4395 yes:no: )
4396 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4397 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4398 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4399 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4400 ac_header_preproc=yes
4401 ;;
4402 no:yes:* )
4403 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4404 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4405 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4406 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4407 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4408 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4409 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4410 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4411 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4412 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4413 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4414 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4415 ( cat <<\_ASBOX
4416 ## -------------------------------------------------- ##
4417 ## Report this to courier-users@lists.sourceforge.net ##
4418 ## -------------------------------------------------- ##
4419 _ASBOX
4420 ) | sed "s/^/$as_me: WARNING: /" >&2
4421 ;;
4422 esac
4423 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4424 $as_echo_n "checking for minix/config.h... " >&6; }
4425 if test "${ac_cv_header_minix_config_h+set}" = set; then
4426 $as_echo_n "(cached) " >&6
4427 else
4428 ac_cv_header_minix_config_h=$ac_header_preproc
4429 fi
4430 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4431 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4432
4433 fi
4434 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4435 MINIX=yes
4436 else
4437 MINIX=
4438 fi
4439
4440
4441 if test "$MINIX" = yes; then
4442
4443 cat >>confdefs.h <<\_ACEOF
4444 #define _POSIX_SOURCE 1
4445 _ACEOF
4446
4447
4448 cat >>confdefs.h <<\_ACEOF
4449 #define _POSIX_1_SOURCE 2
4450 _ACEOF
4451
4452
4453 cat >>confdefs.h <<\_ACEOF
4454 #define _MINIX 1
4455 _ACEOF
4456
4457 fi
4458
4459
4460
4461 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4463 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472
4473 # define __EXTENSIONS__ 1
4474 $ac_includes_default
4475 int
4476 main ()
4477 {
4478
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (ac_try="$ac_compile"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490 $as_echo "$ac_try_echo") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest.$ac_objext; then
4501 ac_cv_safe_to_define___extensions__=yes
4502 else
4503 $as_echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 ac_cv_safe_to_define___extensions__=no
4507 fi
4508
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 fi
4511 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4512 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4513 test $ac_cv_safe_to_define___extensions__ = yes &&
4514 cat >>confdefs.h <<\_ACEOF
4515 #define __EXTENSIONS__ 1
4516 _ACEOF
4517
4518 cat >>confdefs.h <<\_ACEOF
4519 #define _ALL_SOURCE 1
4520 _ACEOF
4521
4522 cat >>confdefs.h <<\_ACEOF
4523 #define _GNU_SOURCE 1
4524 _ACEOF
4525
4526 cat >>confdefs.h <<\_ACEOF
4527 #define _POSIX_PTHREAD_SEMANTICS 1
4528 _ACEOF
4529
4530 cat >>confdefs.h <<\_ACEOF
4531 #define _TANDEM_SOURCE 1
4532 _ACEOF
4533
4534
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_CC+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562 done
4563 done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4572 else
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578 fi
4579 if test -z "$ac_cv_prog_CC"; then
4580 ac_ct_CC=$CC
4581 # Extract the first word of "gcc", so it can be a program name with args.
4582 set dummy gcc; ac_word=$2
4583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -n "$ac_ct_CC"; then
4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_ac_ct_CC="gcc"
4599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606 fi
4607 fi
4608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609 if test -n "$ac_ct_CC"; then
4610 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4611 $as_echo "$ac_ct_CC" >&6; }
4612 else
4613 { $as_echo "$as_me:$LINENO: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616
4617 if test "x$ac_ct_CC" = x; then
4618 CC=""
4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621 yes:)
4622 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624 ac_tool_warned=yes ;;
4625 esac
4626 CC=$ac_ct_CC
4627 fi
4628 else
4629 CC="$ac_cv_prog_CC"
4630 fi
4631
4632 if test -z "$CC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4635 set dummy ${ac_tool_prefix}cc; ac_word=$2
4636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if test "${ac_cv_prog_CC+set}" = set; then
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4646 do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4651 ac_cv_prog_CC="${ac_tool_prefix}cc"
4652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655 done
4656 done
4657 IFS=$as_save_IFS
4658
4659 fi
4660 fi
4661 CC=$ac_cv_prog_CC
4662 if test -n "$CC"; then
4663 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4664 $as_echo "$CC" >&6; }
4665 else
4666 { $as_echo "$as_me:$LINENO: result: no" >&5
4667 $as_echo "no" >&6; }
4668 fi
4669
4670
4671 fi
4672 fi
4673 if test -z "$CC"; then
4674 # Extract the first word of "cc", so it can be a program name with args.
4675 set dummy cc; ac_word=$2
4676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if test "${ac_cv_prog_CC+set}" = set; then
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$CC"; then
4682 ac_cv_prog_CC="$CC" # Let the user override the test.
4683 else
4684 ac_prog_rejected=no
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4693 ac_prog_rejected=yes
4694 continue
4695 fi
4696 ac_cv_prog_CC="cc"
4697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700 done
4701 done
4702 IFS=$as_save_IFS
4703
4704 if test $ac_prog_rejected = yes; then
4705 # We found a bogon in the path, so make sure we never use it.
4706 set dummy $ac_cv_prog_CC
4707 shift
4708 if test $# != 0; then
4709 # We chose a different compiler from the bogus one.
4710 # However, it has the same basename, so the bogon will be chosen
4711 # first if we set CC to just the basename; use the full file name.
4712 shift
4713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4714 fi
4715 fi
4716 fi
4717 fi
4718 CC=$ac_cv_prog_CC
4719 if test -n "$CC"; then
4720 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4721 $as_echo "$CC" >&6; }
4722 else
4723 { $as_echo "$as_me:$LINENO: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728 fi
4729 if test -z "$CC"; then
4730 if test -n "$ac_tool_prefix"; then
4731 for ac_prog in cl.exe
4732 do
4733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_CC+set}" = set; then
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$CC"; then
4741 ac_cv_prog_CC="$CC" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4753 fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
4760 CC=$ac_cv_prog_CC
4761 if test -n "$CC"; then
4762 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4763 $as_echo "$CC" >&6; }
4764 else
4765 { $as_echo "$as_me:$LINENO: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769
4770 test -n "$CC" && break
4771 done
4772 fi
4773 if test -z "$CC"; then
4774 ac_ct_CC=$CC
4775 for ac_prog in cl.exe
4776 do
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778 set dummy $ac_prog; ac_word=$2
4779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -n "$ac_ct_CC"; then
4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_ac_ct_CC="$ac_prog"
4795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798 done
4799 done
4800 IFS=$as_save_IFS
4801
4802 fi
4803 fi
4804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4805 if test -n "$ac_ct_CC"; then
4806 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4807 $as_echo "$ac_ct_CC" >&6; }
4808 else
4809 { $as_echo "$as_me:$LINENO: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812
4813
4814 test -n "$ac_ct_CC" && break
4815 done
4816
4817 if test "x$ac_ct_CC" = x; then
4818 CC=""
4819 else
4820 case $cross_compiling:$ac_tool_warned in
4821 yes:)
4822 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824 ac_tool_warned=yes ;;
4825 esac
4826 CC=$ac_ct_CC
4827 fi
4828 fi
4829
4830 fi
4831
4832
4833 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4835 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4836 See \`config.log' for more details." >&5
4837 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4838 See \`config.log' for more details." >&2;}
4839 { (exit 1); exit 1; }; }; }
4840
4841 # Provide some information about the compiler.
4842 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4843 set X $ac_compile
4844 ac_compiler=$2
4845 { (ac_try="$ac_compiler --version >&5"
4846 case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849 esac
4850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4851 $as_echo "$ac_try_echo") >&5
4852 (eval "$ac_compiler --version >&5") 2>&5
4853 ac_status=$?
4854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }
4856 { (ac_try="$ac_compiler -v >&5"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compiler -v >&5") 2>&5
4864 ac_status=$?
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }
4867 { (ac_try="$ac_compiler -V >&5"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_compiler -V >&5") 2>&5
4875 ac_status=$?
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }
4878
4879 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4880 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4881 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4882 $as_echo_n "(cached) " >&6
4883 else
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890
4891 int
4892 main ()
4893 {
4894 #ifndef __GNUC__
4895 choke me
4896 #endif
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909 $as_echo "$ac_try_echo") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 ac_compiler_gnu=yes
4921 else
4922 $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_compiler_gnu=no
4926 fi
4927
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4930
4931 fi
4932 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4933 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4934 if test $ac_compiler_gnu = yes; then
4935 GCC=yes
4936 else
4937 GCC=
4938 fi
4939 ac_test_CFLAGS=${CFLAGS+set}
4940 ac_save_CFLAGS=$CFLAGS
4941 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4942 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4943 if test "${ac_cv_prog_cc_g+set}" = set; then
4944 $as_echo_n "(cached) " >&6
4945 else
4946 ac_save_c_werror_flag=$ac_c_werror_flag
4947 ac_c_werror_flag=yes
4948 ac_cv_prog_cc_g=no
4949 CFLAGS="-g"
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956
4957 int
4958 main ()
4959 {
4960
4961 ;
4962 return 0;
4963 }
4964 _ACEOF
4965 rm -f conftest.$ac_objext
4966 if { (ac_try="$ac_compile"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4972 $as_echo "$ac_try_echo") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 ac_cv_prog_cc_g=yes
4984 else
4985 $as_echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 CFLAGS=""
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995
4996 int
4997 main ()
4998 {
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5006 case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009 esac
5010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5011 $as_echo "$ac_try_echo") >&5
5012 (eval "$ac_compile") 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } && {
5019 test -z "$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5021 } && test -s conftest.$ac_objext; then
5022 :
5023 else
5024 $as_echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 ac_c_werror_flag=$ac_save_c_werror_flag
5028 CFLAGS="-g"
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035
5036 int
5037 main ()
5038 {
5039
5040 ;
5041 return 0;
5042 }
5043 _ACEOF
5044 rm -f conftest.$ac_objext
5045 if { (ac_try="$ac_compile"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051 $as_echo "$ac_try_echo") >&5
5052 (eval "$ac_compile") 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && {
5059 test -z "$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5061 } && test -s conftest.$ac_objext; then
5062 ac_cv_prog_cc_g=yes
5063 else
5064 $as_echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067
5068 fi
5069
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 fi
5072
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 fi
5075
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_c_werror_flag=$ac_save_c_werror_flag
5078 fi
5079 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5080 $as_echo "$ac_cv_prog_cc_g" >&6; }
5081 if test "$ac_test_CFLAGS" = set; then
5082 CFLAGS=$ac_save_CFLAGS
5083 elif test $ac_cv_prog_cc_g = yes; then
5084 if test "$GCC" = yes; then
5085 CFLAGS="-g -O2"
5086 else
5087 CFLAGS="-g"
5088 fi
5089 else
5090 if test "$GCC" = yes; then
5091 CFLAGS="-O2"
5092 else
5093 CFLAGS=
5094 fi
5095 fi
5096 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5098 if test "${ac_cv_prog_cc_c89+set}" = set; then
5099 $as_echo_n "(cached) " >&6
5100 else
5101 ac_cv_prog_cc_c89=no
5102 ac_save_CC=$CC
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <stdarg.h>
5110 #include <stdio.h>
5111 #include <sys/types.h>
5112 #include <sys/stat.h>
5113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5114 struct buf { int x; };
5115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5116 static char *e (p, i)
5117 char **p;
5118 int i;
5119 {
5120 return p[i];
5121 }
5122 static char *f (char * (*g) (char **, int), char **p, ...)
5123 {
5124 char *s;
5125 va_list v;
5126 va_start (v,p);
5127 s = g (p, va_arg (v,int));
5128 va_end (v);
5129 return s;
5130 }
5131
5132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5133 function prototypes and stuff, but not '\xHH' hex character constants.
5134 These don't provoke an error unfortunately, instead are silently treated
5135 as 'x'. The following induces an error, until -std is added to get
5136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5137 array size at least. It's necessary to write '\x00'==0 to get something
5138 that's true only with -std. */
5139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5140
5141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5142 inside strings and character constants. */
5143 #define FOO(x) 'x'
5144 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5145
5146 int test (int i, double x);
5147 struct s1 {int (*f) (int a);};
5148 struct s2 {int (*f) (double a);};
5149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5150 int argc;
5151 char **argv;
5152 int
5153 main ()
5154 {
5155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5161 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5162 do
5163 CC="$ac_save_CC $ac_arg"
5164 rm -f conftest.$ac_objext
5165 if { (ac_try="$ac_compile"
5166 case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169 esac
5170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5171 $as_echo "$ac_try_echo") >&5
5172 (eval "$ac_compile") 2>conftest.er1
5173 ac_status=$?
5174 grep -v '^ *+' conftest.er1 >conftest.err
5175 rm -f conftest.er1
5176 cat conftest.err >&5
5177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && {
5179 test -z "$ac_c_werror_flag" ||
5180 test ! -s conftest.err
5181 } && test -s conftest.$ac_objext; then
5182 ac_cv_prog_cc_c89=$ac_arg
5183 else
5184 $as_echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187
5188 fi
5189
5190 rm -f core conftest.err conftest.$ac_objext
5191 test "x$ac_cv_prog_cc_c89" != "xno" && break
5192 done
5193 rm -f conftest.$ac_ext
5194 CC=$ac_save_CC
5195
5196 fi
5197 # AC_CACHE_VAL
5198 case "x$ac_cv_prog_cc_c89" in
5199 x)
5200 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5201 $as_echo "none needed" >&6; } ;;
5202 xno)
5203 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5204 $as_echo "unsupported" >&6; } ;;
5205 *)
5206 CC="$CC $ac_cv_prog_cc_c89"
5207 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5208 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5209 esac
5210
5211
5212 ac_ext=c
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218 depcc="$CC" am_compiler_list=
5219
5220 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5221 $as_echo_n "checking dependency style of $depcc... " >&6; }
5222 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5226 # We make a subdir and do the tests there. Otherwise we can end up
5227 # making bogus files that we don't know about and never remove. For
5228 # instance it was reported that on HP-UX the gcc test will end up
5229 # making a dummy file named `D' -- because `-MD' means `put the output
5230 # in D'.
5231 mkdir conftest.dir
5232 # Copy depcomp to subdir because otherwise we won't find it if we're
5233 # using a relative directory.
5234 cp "$am_depcomp" conftest.dir
5235 cd conftest.dir
5236 # We will build objects and dependencies in a subdirectory because
5237 # it helps to detect inapplicable dependency modes. For instance
5238 # both Tru64's cc and ICC support -MD to output dependencies as a
5239 # side effect of compilation, but ICC will put the dependencies in
5240 # the current directory while Tru64 will put them in the object
5241 # directory.
5242 mkdir sub
5243
5244 am_cv_CC_dependencies_compiler_type=none
5245 if test "$am_compiler_list" = ""; then
5246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5247 fi
5248 am__universal=false
5249 case " $depcc " in #(
5250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5251 esac
5252
5253 for depmode in $am_compiler_list; do
5254 # Setup a source with many dependencies, because some compilers
5255 # like to wrap large dependency lists on column 80 (with \), and
5256 # we should not choose a depcomp mode which is confused by this.
5257 #
5258 # We need to recreate these files for each test, as the compiler may
5259 # overwrite some of them when testing with obscure command lines.
5260 # This happens at least with the AIX C compiler.
5261 : > sub/conftest.c
5262 for i in 1 2 3 4 5 6; do
5263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5264 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5265 # Solaris 8's {/usr,}/bin/sh.
5266 touch sub/conftst$i.h
5267 done
5268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5269
5270 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5271 # mode. It turns out that the SunPro C++ compiler does not properly
5272 # handle `-M -o', and we need to detect this. Also, some Intel
5273 # versions had trouble with output in subdirs
5274 am__obj=sub/conftest.${OBJEXT-o}
5275 am__minus_obj="-o $am__obj"
5276 case $depmode in
5277 gcc)
5278 # This depmode causes a compiler race in universal mode.
5279 test "$am__universal" = false || continue
5280 ;;
5281 nosideeffect)
5282 # after this tag, mechanisms are not by side-effect, so they'll
5283 # only be used when explicitly requested
5284 if test "x$enable_dependency_tracking" = xyes; then
5285 continue
5286 else
5287 break
5288 fi
5289 ;;
5290 msvisualcpp | msvcmsys)
5291 # This compiler won't grok `-c -o', but also, the minuso test has
5292 # not run yet. These depmodes are late enough in the game, and
5293 # so weak that their functioning should not be impacted.
5294 am__obj=conftest.${OBJEXT-o}
5295 am__minus_obj=
5296 ;;
5297 none) break ;;
5298 esac
5299 if depmode=$depmode \
5300 source=sub/conftest.c object=$am__obj \
5301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5303 >/dev/null 2>conftest.err &&
5304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308 # icc doesn't choke on unknown options, it will just issue warnings
5309 # or remarks (even with -Werror). So we grep stderr for any message
5310 # that says an option was ignored or not supported.
5311 # When given -MP, icc 7.0 and 7.1 complain thusly:
5312 # icc: Command line warning: ignoring option '-M'; no argument required
5313 # The diagnosis changed in icc 8.0:
5314 # icc: Command line remark: option '-MP' not supported
5315 if (grep 'ignoring option' conftest.err ||
5316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5317 am_cv_CC_dependencies_compiler_type=$depmode
5318 break
5319 fi
5320 fi
5321 done
5322
5323 cd ..
5324 rm -rf conftest.dir
5325 else
5326 am_cv_CC_dependencies_compiler_type=none
5327 fi
5328
5329 fi
5330 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5333
5334 if
5335 test "x$enable_dependency_tracking" != xno \
5336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5337 am__fastdepCC_TRUE=
5338 am__fastdepCC_FALSE='#'
5339 else
5340 am__fastdepCC_TRUE='#'
5341 am__fastdepCC_FALSE=
5342 fi
5343
5344
5345 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
5346 $as_echo_n "checking for library containing strerror... " >&6; }
5347 if test "${ac_cv_search_strerror+set}" = set; then
5348 $as_echo_n "(cached) " >&6
5349 else
5350 ac_func_search_save_LIBS=$LIBS
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361 #ifdef __cplusplus
5362 extern "C"
5363 #endif
5364 char strerror ();
5365 int
5366 main ()
5367 {
5368 return strerror ();
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 for ac_lib in '' cposix; do
5374 if test -z "$ac_lib"; then
5375 ac_res="none required"
5376 else
5377 ac_res=-l$ac_lib
5378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5379 fi
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (ac_try="$ac_link"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5387 $as_echo "$ac_try_echo") >&5
5388 (eval "$ac_link") 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest$ac_exeext && {
5398 test "$cross_compiling" = yes ||
5399 $as_test_x conftest$ac_exeext
5400 }; then
5401 ac_cv_search_strerror=$ac_res
5402 else
5403 $as_echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406
5407 fi
5408
5409 rm -rf conftest.dSYM
5410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5411 conftest$ac_exeext
5412 if test "${ac_cv_search_strerror+set}" = set; then
5413 break
5414 fi
5415 done
5416 if test "${ac_cv_search_strerror+set}" = set; then
5417 :
5418 else
5419 ac_cv_search_strerror=no
5420 fi
5421 rm conftest.$ac_ext
5422 LIBS=$ac_func_search_save_LIBS
5423 fi
5424 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5425 $as_echo "$ac_cv_search_strerror" >&6; }
5426 ac_res=$ac_cv_search_strerror
5427 if test "$ac_res" != no; then
5428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5429
5430 fi
5431
5432 for ac_prog in gawk mawk nawk awk
5433 do
5434 # Extract the first word of "$ac_prog", so it can be a program name with args.
5435 set dummy $ac_prog; ac_word=$2
5436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_prog_AWK+set}" = set; then
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$AWK"; then
5442 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_AWK="$ac_prog"
5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 AWK=$ac_cv_prog_AWK
5462 if test -n "$AWK"; then
5463 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5464 $as_echo "$AWK" >&6; }
5465 else
5466 { $as_echo "$as_me:$LINENO: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470
5471 test -n "$AWK" && break
5472 done
5473
5474 ac_ext=cpp
5475 ac_cpp='$CXXCPP $CPPFLAGS'
5476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5479 if test -z "$CXX"; then
5480 if test -n "$CCC"; then
5481 CXX=$CCC
5482 else
5483 if test -n "$ac_tool_prefix"; then
5484 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5485 do
5486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_CXX+set}" = set; then
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$CXX"; then
5494 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 CXX=$ac_cv_prog_CXX
5514 if test -n "$CXX"; then
5515 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5516 $as_echo "$CXX" >&6; }
5517 else
5518 { $as_echo "$as_me:$LINENO: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522
5523 test -n "$CXX" && break
5524 done
5525 fi
5526 if test -z "$CXX"; then
5527 ac_ct_CXX=$CXX
5528 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5529 do
5530 # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$ac_ct_CXX"; then
5538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_ac_ct_CXX="$ac_prog"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5558 if test -n "$ac_ct_CXX"; then
5559 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5560 $as_echo "$ac_ct_CXX" >&6; }
5561 else
5562 { $as_echo "$as_me:$LINENO: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 test -n "$ac_ct_CXX" && break
5568 done
5569
5570 if test "x$ac_ct_CXX" = x; then
5571 CXX="g++"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574 yes:)
5575 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5578 esac
5579 CXX=$ac_ct_CXX
5580 fi
5581 fi
5582
5583 fi
5584 fi
5585 # Provide some information about the compiler.
5586 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5587 set X $ac_compile
5588 ac_compiler=$2
5589 { (ac_try="$ac_compiler --version >&5"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595 $as_echo "$ac_try_echo") >&5
5596 (eval "$ac_compiler --version >&5") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }
5600 { (ac_try="$ac_compiler -v >&5"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5606 $as_echo "$ac_try_echo") >&5
5607 (eval "$ac_compiler -v >&5") 2>&5
5608 ac_status=$?
5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }
5611 { (ac_try="$ac_compiler -V >&5"
5612 case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617 $as_echo "$ac_try_echo") >&5
5618 (eval "$ac_compiler -V >&5") 2>&5
5619 ac_status=$?
5620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }
5622
5623 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5624 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5625 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5627 else
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634
5635 int
5636 main ()
5637 {
5638 #ifndef __GNUC__
5639 choke me
5640 #endif
5641
5642 ;
5643 return 0;
5644 }
5645 _ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (ac_try="$ac_compile"
5648 case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651 esac
5652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5653 $as_echo "$ac_try_echo") >&5
5654 (eval "$ac_compile") 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && {
5661 test -z "$ac_cxx_werror_flag" ||
5662 test ! -s conftest.err
5663 } && test -s conftest.$ac_objext; then
5664 ac_compiler_gnu=yes
5665 else
5666 $as_echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5668
5669 ac_compiler_gnu=no
5670 fi
5671
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5674
5675 fi
5676 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5677 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5678 if test $ac_compiler_gnu = yes; then
5679 GXX=yes
5680 else
5681 GXX=
5682 fi
5683 ac_test_CXXFLAGS=${CXXFLAGS+set}
5684 ac_save_CXXFLAGS=$CXXFLAGS
5685 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5686 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5687 if test "${ac_cv_prog_cxx_g+set}" = set; then
5688 $as_echo_n "(cached) " >&6
5689 else
5690 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5691 ac_cxx_werror_flag=yes
5692 ac_cv_prog_cxx_g=no
5693 CXXFLAGS="-g"
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700
5701 int
5702 main ()
5703 {
5704
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716 $as_echo "$ac_try_echo") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_cv_prog_cxx_g=yes
5728 else
5729 $as_echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 CXXFLAGS=""
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739
5740 int
5741 main ()
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5755 $as_echo "$ac_try_echo") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_cxx_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
5766 :
5767 else
5768 $as_echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5772 CXXFLAGS="-g"
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779
5780 int
5781 main ()
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795 $as_echo "$ac_try_echo") >&5
5796 (eval "$ac_compile") 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } && {
5803 test -z "$ac_cxx_werror_flag" ||
5804 test ! -s conftest.err
5805 } && test -s conftest.$ac_objext; then
5806 ac_cv_prog_cxx_g=yes
5807 else
5808 $as_echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811
5812 fi
5813
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 fi
5816
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 fi
5819
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5822 fi
5823 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5824 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5825 if test "$ac_test_CXXFLAGS" = set; then
5826 CXXFLAGS=$ac_save_CXXFLAGS
5827 elif test $ac_cv_prog_cxx_g = yes; then
5828 if test "$GXX" = yes; then
5829 CXXFLAGS="-g -O2"
5830 else
5831 CXXFLAGS="-g"
5832 fi
5833 else
5834 if test "$GXX" = yes; then
5835 CXXFLAGS="-O2"
5836 else
5837 CXXFLAGS=
5838 fi
5839 fi
5840 ac_ext=c
5841 ac_cpp='$CPP $CPPFLAGS'
5842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845
5846 depcc="$CXX" am_compiler_list=
5847
5848 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5849 $as_echo_n "checking dependency style of $depcc... " >&6; }
5850 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5854 # We make a subdir and do the tests there. Otherwise we can end up
5855 # making bogus files that we don't know about and never remove. For
5856 # instance it was reported that on HP-UX the gcc test will end up
5857 # making a dummy file named `D' -- because `-MD' means `put the output
5858 # in D'.
5859 mkdir conftest.dir
5860 # Copy depcomp to subdir because otherwise we won't find it if we're
5861 # using a relative directory.
5862 cp "$am_depcomp" conftest.dir
5863 cd conftest.dir
5864 # We will build objects and dependencies in a subdirectory because
5865 # it helps to detect inapplicable dependency modes. For instance
5866 # both Tru64's cc and ICC support -MD to output dependencies as a
5867 # side effect of compilation, but ICC will put the dependencies in
5868 # the current directory while Tru64 will put them in the object
5869 # directory.
5870 mkdir sub
5871
5872 am_cv_CXX_dependencies_compiler_type=none
5873 if test "$am_compiler_list" = ""; then
5874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5875 fi
5876 am__universal=false
5877 case " $depcc " in #(
5878 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5879 esac
5880
5881 for depmode in $am_compiler_list; do
5882 # Setup a source with many dependencies, because some compilers
5883 # like to wrap large dependency lists on column 80 (with \), and
5884 # we should not choose a depcomp mode which is confused by this.
5885 #
5886 # We need to recreate these files for each test, as the compiler may
5887 # overwrite some of them when testing with obscure command lines.
5888 # This happens at least with the AIX C compiler.
5889 : > sub/conftest.c
5890 for i in 1 2 3 4 5 6; do
5891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5893 # Solaris 8's {/usr,}/bin/sh.
5894 touch sub/conftst$i.h
5895 done
5896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5897
5898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5899 # mode. It turns out that the SunPro C++ compiler does not properly
5900 # handle `-M -o', and we need to detect this. Also, some Intel
5901 # versions had trouble with output in subdirs
5902 am__obj=sub/conftest.${OBJEXT-o}
5903 am__minus_obj="-o $am__obj"
5904 case $depmode in
5905 gcc)
5906 # This depmode causes a compiler race in universal mode.
5907 test "$am__universal" = false || continue
5908 ;;
5909 nosideeffect)
5910 # after this tag, mechanisms are not by side-effect, so they'll
5911 # only be used when explicitly requested
5912 if test "x$enable_dependency_tracking" = xyes; then
5913 continue
5914 else
5915 break
5916 fi
5917 ;;
5918 msvisualcpp | msvcmsys)
5919 # This compiler won't grok `-c -o', but also, the minuso test has
5920 # not run yet. These depmodes are late enough in the game, and
5921 # so weak that their functioning should not be impacted.
5922 am__obj=conftest.${OBJEXT-o}
5923 am__minus_obj=
5924 ;;
5925 none) break ;;
5926 esac
5927 if depmode=$depmode \
5928 source=sub/conftest.c object=$am__obj \
5929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5931 >/dev/null 2>conftest.err &&
5932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5936 # icc doesn't choke on unknown options, it will just issue warnings
5937 # or remarks (even with -Werror). So we grep stderr for any message
5938 # that says an option was ignored or not supported.
5939 # When given -MP, icc 7.0 and 7.1 complain thusly:
5940 # icc: Command line warning: ignoring option '-M'; no argument required
5941 # The diagnosis changed in icc 8.0:
5942 # icc: Command line remark: option '-MP' not supported
5943 if (grep 'ignoring option' conftest.err ||
5944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5945 am_cv_CXX_dependencies_compiler_type=$depmode
5946 break
5947 fi
5948 fi
5949 done
5950
5951 cd ..
5952 rm -rf conftest.dir
5953 else
5954 am_cv_CXX_dependencies_compiler_type=none
5955 fi
5956
5957 fi
5958 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5959 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5960 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5961
5962 if
5963 test "x$enable_dependency_tracking" != xno \
5964 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5965 am__fastdepCXX_TRUE=
5966 am__fastdepCXX_FALSE='#'
5967 else
5968 am__fastdepCXX_TRUE='#'
5969 am__fastdepCXX_FALSE=
5970 fi
5971
5972
5973 case `pwd` in
5974 *\ * | *\ *)
5975 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5976 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5977 esac
5978
5979
5980
5981 macro_version='2.2.6'
5982 macro_revision='1.3012'
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 ltmain="$ac_aux_dir/ltmain.sh"
5997
5998 # Make sure we can run config.sub.
5999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6000 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6001 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6002 { (exit 1); exit 1; }; }
6003
6004 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6005 $as_echo_n "checking build system type... " >&6; }
6006 if test "${ac_cv_build+set}" = set; then
6007 $as_echo_n "(cached) " >&6
6008 else
6009 ac_build_alias=$build_alias
6010 test "x$ac_build_alias" = x &&
6011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6012 test "x$ac_build_alias" = x &&
6013 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6014 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6015 { (exit 1); exit 1; }; }
6016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6017 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6018 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6019 { (exit 1); exit 1; }; }
6020
6021 fi
6022 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6023 $as_echo "$ac_cv_build" >&6; }
6024 case $ac_cv_build in
6025 *-*-*) ;;
6026 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6027 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6028 { (exit 1); exit 1; }; };;
6029 esac
6030 build=$ac_cv_build
6031 ac_save_IFS=$IFS; IFS='-'
6032 set x $ac_cv_build
6033 shift
6034 build_cpu=$1
6035 build_vendor=$2
6036 shift; shift
6037 # Remember, the first character of IFS is used to create $*,
6038 # except with old shells:
6039 build_os=$*
6040 IFS=$ac_save_IFS
6041 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6042
6043
6044 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6045 $as_echo_n "checking host system type... " >&6; }
6046 if test "${ac_cv_host+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test "x$host_alias" = x; then
6050 ac_cv_host=$ac_cv_build
6051 else
6052 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6053 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6054 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6055 { (exit 1); exit 1; }; }
6056 fi
6057
6058 fi
6059 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6060 $as_echo "$ac_cv_host" >&6; }
6061 case $ac_cv_host in
6062 *-*-*) ;;
6063 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6064 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6065 { (exit 1); exit 1; }; };;
6066 esac
6067 host=$ac_cv_host
6068 ac_save_IFS=$IFS; IFS='-'
6069 set x $ac_cv_host
6070 shift
6071 host_cpu=$1
6072 host_vendor=$2
6073 shift; shift
6074 # Remember, the first character of IFS is used to create $*,
6075 # except with old shells:
6076 host_os=$*
6077 IFS=$ac_save_IFS
6078 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6079
6080
6081 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6082 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6083 if test "${ac_cv_path_SED+set}" = set; then
6084 $as_echo_n "(cached) " >&6
6085 else
6086 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6087 for ac_i in 1 2 3 4 5 6 7; do
6088 ac_script="$ac_script$as_nl$ac_script"
6089 done
6090 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6091 $as_unset ac_script || ac_script=
6092 if test -z "$SED"; then
6093 ac_path_SED_found=false
6094 # Loop through the user's path and test for each of PROGNAME-LIST
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_prog in sed gsed; do
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6103 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6104 # Check for GNU ac_path_SED and select it if it is found.
6105 # Check for GNU $ac_path_SED
6106 case `"$ac_path_SED" --version 2>&1` in
6107 *GNU*)
6108 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6109 *)
6110 ac_count=0
6111 $as_echo_n 0123456789 >"conftest.in"
6112 while :
6113 do
6114 cat "conftest.in" "conftest.in" >"conftest.tmp"
6115 mv "conftest.tmp" "conftest.in"
6116 cp "conftest.in" "conftest.nl"
6117 $as_echo '' >> "conftest.nl"
6118 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6120 ac_count=`expr $ac_count + 1`
6121 if test $ac_count -gt ${ac_path_SED_max-0}; then
6122 # Best one so far, save it but keep looking for a better one
6123 ac_cv_path_SED="$ac_path_SED"
6124 ac_path_SED_max=$ac_count
6125 fi
6126 # 10*(2^10) chars as input seems more than enough
6127 test $ac_count -gt 10 && break
6128 done
6129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6130 esac
6131
6132 $ac_path_SED_found && break 3
6133 done
6134 done
6135 done
6136 IFS=$as_save_IFS
6137 if test -z "$ac_cv_path_SED"; then
6138 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6139 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6140 { (exit 1); exit 1; }; }
6141 fi
6142 else
6143 ac_cv_path_SED=$SED
6144 fi
6145
6146 fi
6147 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6148 $as_echo "$ac_cv_path_SED" >&6; }
6149 SED="$ac_cv_path_SED"
6150 rm -f conftest.sed
6151
6152 test -z "$SED" && SED=sed
6153 Xsed="$SED -e 1s/^X//"
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6166 $as_echo_n "checking for fgrep... " >&6; }
6167 if test "${ac_cv_path_FGREP+set}" = set; then
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6171 then ac_cv_path_FGREP="$GREP -F"
6172 else
6173 if test -z "$FGREP"; then
6174 ac_path_FGREP_found=false
6175 # Loop through the user's path and test for each of PROGNAME-LIST
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6178 do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_prog in fgrep; do
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6185 # Check for GNU ac_path_FGREP and select it if it is found.
6186 # Check for GNU $ac_path_FGREP
6187 case `"$ac_path_FGREP" --version 2>&1` in
6188 *GNU*)
6189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6190 *)
6191 ac_count=0
6192 $as_echo_n 0123456789 >"conftest.in"
6193 while :
6194 do
6195 cat "conftest.in" "conftest.in" >"conftest.tmp"
6196 mv "conftest.tmp" "conftest.in"
6197 cp "conftest.in" "conftest.nl"
6198 $as_echo 'FGREP' >> "conftest.nl"
6199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6201 ac_count=`expr $ac_count + 1`
6202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6203 # Best one so far, save it but keep looking for a better one
6204 ac_cv_path_FGREP="$ac_path_FGREP"
6205 ac_path_FGREP_max=$ac_count
6206 fi
6207 # 10*(2^10) chars as input seems more than enough
6208 test $ac_count -gt 10 && break
6209 done
6210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6211 esac
6212
6213 $ac_path_FGREP_found && break 3
6214 done
6215 done
6216 done
6217 IFS=$as_save_IFS
6218 if test -z "$ac_cv_path_FGREP"; then
6219 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6220 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6221 { (exit 1); exit 1; }; }
6222 fi
6223 else
6224 ac_cv_path_FGREP=$FGREP
6225 fi
6226
6227 fi
6228 fi
6229 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6230 $as_echo "$ac_cv_path_FGREP" >&6; }
6231 FGREP="$ac_cv_path_FGREP"
6232
6233
6234 test -z "$GREP" && GREP=grep
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 # Check whether --with-gnu-ld was given.
6255 if test "${with_gnu_ld+set}" = set; then
6256 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6257 else
6258 with_gnu_ld=no
6259 fi
6260
6261 ac_prog=ld
6262 if test "$GCC" = yes; then
6263 # Check if gcc -print-prog-name=ld gives a path.
6264 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6265 $as_echo_n "checking for ld used by $CC... " >&6; }
6266 case $host in
6267 *-*-mingw*)
6268 # gcc leaves a trailing carriage return which upsets mingw
6269 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6270 *)
6271 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6272 esac
6273 case $ac_prog in
6274 # Accept absolute paths.
6275 [\\/]* | ?:[\\/]*)
6276 re_direlt='/[^/][^/]*/\.\./'
6277 # Canonicalize the pathname of ld
6278 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6279 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6280 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6281 done
6282 test -z "$LD" && LD="$ac_prog"
6283 ;;
6284 "")
6285 # If it fails, then pretend we aren't using GCC.
6286 ac_prog=ld
6287 ;;
6288 *)
6289 # If it is relative, then search for the first ld in PATH.
6290 with_gnu_ld=unknown
6291 ;;
6292 esac
6293 elif test "$with_gnu_ld" = yes; then
6294 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6295 $as_echo_n "checking for GNU ld... " >&6; }
6296 else
6297 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6298 $as_echo_n "checking for non-GNU ld... " >&6; }
6299 fi
6300 if test "${lt_cv_path_LD+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -z "$LD"; then
6304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6305 for ac_dir in $PATH; do
6306 IFS="$lt_save_ifs"
6307 test -z "$ac_dir" && ac_dir=.
6308 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6309 lt_cv_path_LD="$ac_dir/$ac_prog"
6310 # Check to see if the program is GNU ld. I'd rather use --version,
6311 # but apparently some variants of GNU ld only accept -v.
6312 # Break only if it was the GNU/non-GNU ld that we prefer.
6313 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6314 *GNU* | *'with BFD'*)
6315 test "$with_gnu_ld" != no && break
6316 ;;
6317 *)
6318 test "$with_gnu_ld" != yes && break
6319 ;;
6320 esac
6321 fi
6322 done
6323 IFS="$lt_save_ifs"
6324 else
6325 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6326 fi
6327 fi
6328
6329 LD="$lt_cv_path_LD"
6330 if test -n "$LD"; then
6331 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6332 $as_echo "$LD" >&6; }
6333 else
6334 { $as_echo "$as_me:$LINENO: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6338 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6339 { (exit 1); exit 1; }; }
6340 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6341 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6342 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6343 $as_echo_n "(cached) " >&6
6344 else
6345 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6346 case `$LD -v 2>&1 </dev/null` in
6347 *GNU* | *'with BFD'*)
6348 lt_cv_prog_gnu_ld=yes
6349 ;;
6350 *)
6351 lt_cv_prog_gnu_ld=no
6352 ;;
6353 esac
6354 fi
6355 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6356 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6357 with_gnu_ld=$lt_cv_prog_gnu_ld
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6368 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6369 if test "${lt_cv_path_NM+set}" = set; then
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$NM"; then
6373 # Let the user override the test.
6374 lt_cv_path_NM="$NM"
6375 else
6376 lt_nm_to_check="${ac_tool_prefix}nm"
6377 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6378 lt_nm_to_check="$lt_nm_to_check nm"
6379 fi
6380 for lt_tmp_nm in $lt_nm_to_check; do
6381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6382 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6383 IFS="$lt_save_ifs"
6384 test -z "$ac_dir" && ac_dir=.
6385 tmp_nm="$ac_dir/$lt_tmp_nm"
6386 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6387 # Check to see if the nm accepts a BSD-compat flag.
6388 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6389 # nm: unknown option "B" ignored
6390 # Tru64's nm complains that /dev/null is an invalid object file
6391 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6392 */dev/null* | *'Invalid file or object type'*)
6393 lt_cv_path_NM="$tmp_nm -B"
6394 break
6395 ;;
6396 *)
6397 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6398 */dev/null*)
6399 lt_cv_path_NM="$tmp_nm -p"
6400 break
6401 ;;
6402 *)
6403 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6404 continue # so that we can try to find one that supports BSD flags
6405 ;;
6406 esac
6407 ;;
6408 esac
6409 fi
6410 done
6411 IFS="$lt_save_ifs"
6412 done
6413 : ${lt_cv_path_NM=no}
6414 fi
6415 fi
6416 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6417 $as_echo "$lt_cv_path_NM" >&6; }
6418 if test "$lt_cv_path_NM" != "no"; then
6419 NM="$lt_cv_path_NM"
6420 else
6421 # Didn't find any BSD compatible name lister, look for dumpbin.
6422 if test -n "$ac_tool_prefix"; then
6423 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6424 do
6425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6430 $as_echo_n "(cached) " >&6
6431 else
6432 if test -n "$DUMPBIN"; then
6433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 DUMPBIN=$ac_cv_prog_DUMPBIN
6453 if test -n "$DUMPBIN"; then
6454 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6455 $as_echo "$DUMPBIN" >&6; }
6456 else
6457 { $as_echo "$as_me:$LINENO: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461
6462 test -n "$DUMPBIN" && break
6463 done
6464 fi
6465 if test -z "$DUMPBIN"; then
6466 ac_ct_DUMPBIN=$DUMPBIN
6467 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6468 do
6469 # Extract the first word of "$ac_prog", so it can be a program name with args.
6470 set dummy $ac_prog; ac_word=$2
6471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$ac_ct_DUMPBIN"; then
6477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6497 if test -n "$ac_ct_DUMPBIN"; then
6498 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6499 $as_echo "$ac_ct_DUMPBIN" >&6; }
6500 else
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 test -n "$ac_ct_DUMPBIN" && break
6507 done
6508
6509 if test "x$ac_ct_DUMPBIN" = x; then
6510 DUMPBIN=":"
6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513 yes:)
6514 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516 ac_tool_warned=yes ;;
6517 esac
6518 DUMPBIN=$ac_ct_DUMPBIN
6519 fi
6520 fi
6521
6522
6523 if test "$DUMPBIN" != ":"; then
6524 NM="$DUMPBIN"
6525 fi
6526 fi
6527 test -z "$NM" && NM=nm
6528
6529
6530
6531
6532
6533
6534 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6535 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6536 if test "${lt_cv_nm_interface+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6538 else
6539 lt_cv_nm_interface="BSD nm"
6540 echo "int some_variable = 0;" > conftest.$ac_ext
6541 (eval echo "\"\$as_me:6541: $ac_compile\"" >&5)
6542 (eval "$ac_compile" 2>conftest.err)
6543 cat conftest.err >&5
6544 (eval echo "\"\$as_me:6544: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6546 cat conftest.err >&5
6547 (eval echo "\"\$as_me:6547: output\"" >&5)
6548 cat conftest.out >&5
6549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6550 lt_cv_nm_interface="MS dumpbin"
6551 fi
6552 rm -f conftest*
6553 fi
6554 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6555 $as_echo "$lt_cv_nm_interface" >&6; }
6556
6557 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6558 $as_echo_n "checking whether ln -s works... " >&6; }
6559 LN_S=$as_ln_s
6560 if test "$LN_S" = "ln -s"; then
6561 { $as_echo "$as_me:$LINENO: result: yes" >&5
6562 $as_echo "yes" >&6; }
6563 else
6564 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6565 $as_echo "no, using $LN_S" >&6; }
6566 fi
6567
6568 # find the maximum length of command line arguments
6569 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6570 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6571 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6572 $as_echo_n "(cached) " >&6
6573 else
6574 i=0
6575 teststring="ABCD"
6576
6577 case $build_os in
6578 msdosdjgpp*)
6579 # On DJGPP, this test can blow up pretty badly due to problems in libc
6580 # (any single argument exceeding 2000 bytes causes a buffer overrun
6581 # during glob expansion). Even if it were fixed, the result of this
6582 # check would be larger than it should be.
6583 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6584 ;;
6585
6586 gnu*)
6587 # Under GNU Hurd, this test is not required because there is
6588 # no limit to the length of command line arguments.
6589 # Libtool will interpret -1 as no limit whatsoever
6590 lt_cv_sys_max_cmd_len=-1;
6591 ;;
6592
6593 cygwin* | mingw* | cegcc*)
6594 # On Win9x/ME, this test blows up -- it succeeds, but takes
6595 # about 5 minutes as the teststring grows exponentially.
6596 # Worse, since 9x/ME are not pre-emptively multitasking,
6597 # you end up with a "frozen" computer, even though with patience
6598 # the test eventually succeeds (with a max line length of 256k).
6599 # Instead, let's just punt: use the minimum linelength reported by
6600 # all of the supported platforms: 8192 (on NT/2K/XP).
6601 lt_cv_sys_max_cmd_len=8192;
6602 ;;
6603
6604 amigaos*)
6605 # On AmigaOS with pdksh, this test takes hours, literally.
6606 # So we just punt and use a minimum line length of 8192.
6607 lt_cv_sys_max_cmd_len=8192;
6608 ;;
6609
6610 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6611 # This has been around since 386BSD, at least. Likely further.
6612 if test -x /sbin/sysctl; then
6613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6614 elif test -x /usr/sbin/sysctl; then
6615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6616 else
6617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6618 fi
6619 # And add a safety zone
6620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6622 ;;
6623
6624 interix*)
6625 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6626 lt_cv_sys_max_cmd_len=196608
6627 ;;
6628
6629 osf*)
6630 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6631 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6632 # nice to cause kernel panics so lets avoid the loop below.
6633 # First set a reasonable default.
6634 lt_cv_sys_max_cmd_len=16384
6635 #
6636 if test -x /sbin/sysconfig; then
6637 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6638 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6639 esac
6640 fi
6641 ;;
6642 sco3.2v5*)
6643 lt_cv_sys_max_cmd_len=102400
6644 ;;
6645 sysv5* | sco5v6* | sysv4.2uw2*)
6646 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6647 if test -n "$kargmax"; then
6648 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6649 else
6650 lt_cv_sys_max_cmd_len=32768
6651 fi
6652 ;;
6653 *)
6654 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6655 if test -n "$lt_cv_sys_max_cmd_len"; then
6656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6658 else
6659 # Make teststring a little bigger before we do anything with it.
6660 # a 1K string should be a reasonable start.
6661 for i in 1 2 3 4 5 6 7 8 ; do
6662 teststring=$teststring$teststring
6663 done
6664 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6665 # If test is not a shell built-in, we'll probably end up computing a
6666 # maximum length that is only half of the actual maximum length, but
6667 # we can't tell.
6668 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6669 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6670 test $i != 17 # 1/2 MB should be enough
6671 do
6672 i=`expr $i + 1`
6673 teststring=$teststring$teststring
6674 done
6675 # Only check the string length outside the loop.
6676 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6677 teststring=
6678 # Add a significant safety factor because C++ compilers can tack on
6679 # massive amounts of additional arguments before passing them to the
6680 # linker. It appears as though 1/2 is a usable value.
6681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6682 fi
6683 ;;
6684 esac
6685
6686 fi
6687
6688 if test -n $lt_cv_sys_max_cmd_len ; then
6689 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6690 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6691 else
6692 { $as_echo "$as_me:$LINENO: result: none" >&5
6693 $as_echo "none" >&6; }
6694 fi
6695 max_cmd_len=$lt_cv_sys_max_cmd_len
6696
6697
6698
6699
6700
6701
6702 : ${CP="cp -f"}
6703 : ${MV="mv -f"}
6704 : ${RM="rm -f"}
6705
6706 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6707 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6708 # Try some XSI features
6709 xsi_shell=no
6710 ( _lt_dummy="a/b/c"
6711 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6712 = c,a/b,, \
6713 && eval 'test $(( 1 + 1 )) -eq 2 \
6714 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6715 && xsi_shell=yes
6716 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6717 $as_echo "$xsi_shell" >&6; }
6718
6719
6720 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6721 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6722 lt_shell_append=no
6723 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6724 >/dev/null 2>&1 \
6725 && lt_shell_append=yes
6726 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6727 $as_echo "$lt_shell_append" >&6; }
6728
6729
6730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6731 lt_unset=unset
6732 else
6733 lt_unset=false
6734 fi
6735
6736
6737
6738
6739
6740 # test EBCDIC or ASCII
6741 case `echo X|tr X '\101'` in
6742 A) # ASCII based system
6743 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6744 lt_SP2NL='tr \040 \012'
6745 lt_NL2SP='tr \015\012 \040\040'
6746 ;;
6747 *) # EBCDIC based system
6748 lt_SP2NL='tr \100 \n'
6749 lt_NL2SP='tr \r\n \100\100'
6750 ;;
6751 esac
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6762 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6763 if test "${lt_cv_ld_reload_flag+set}" = set; then
6764 $as_echo_n "(cached) " >&6
6765 else
6766 lt_cv_ld_reload_flag='-r'
6767 fi
6768 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6769 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6770 reload_flag=$lt_cv_ld_reload_flag
6771 case $reload_flag in
6772 "" | " "*) ;;
6773 *) reload_flag=" $reload_flag" ;;
6774 esac
6775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6776 case $host_os in
6777 darwin*)
6778 if test "$GCC" = yes; then
6779 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6780 else
6781 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6782 fi
6783 ;;
6784 esac
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$OBJDUMP"; then
6803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 OBJDUMP=$ac_cv_prog_OBJDUMP
6823 if test -n "$OBJDUMP"; then
6824 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6825 $as_echo "$OBJDUMP" >&6; }
6826 else
6827 { $as_echo "$as_me:$LINENO: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831
6832 fi
6833 if test -z "$ac_cv_prog_OBJDUMP"; then
6834 ac_ct_OBJDUMP=$OBJDUMP
6835 # Extract the first word of "objdump", so it can be a program name with args.
6836 set dummy objdump; ac_word=$2
6837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$ac_ct_OBJDUMP"; then
6843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6863 if test -n "$ac_ct_OBJDUMP"; then
6864 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6865 $as_echo "$ac_ct_OBJDUMP" >&6; }
6866 else
6867 { $as_echo "$as_me:$LINENO: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871 if test "x$ac_ct_OBJDUMP" = x; then
6872 OBJDUMP="false"
6873 else
6874 case $cross_compiling:$ac_tool_warned in
6875 yes:)
6876 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6879 esac
6880 OBJDUMP=$ac_ct_OBJDUMP
6881 fi
6882 else
6883 OBJDUMP="$ac_cv_prog_OBJDUMP"
6884 fi
6885
6886 test -z "$OBJDUMP" && OBJDUMP=objdump
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6897 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6898 if test "${lt_cv_deplibs_check_method+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6900 else
6901 lt_cv_file_magic_cmd='$MAGIC_CMD'
6902 lt_cv_file_magic_test_file=
6903 lt_cv_deplibs_check_method='unknown'
6904 # Need to set the preceding variable on all platforms that support
6905 # interlibrary dependencies.
6906 # 'none' -- dependencies not supported.
6907 # `unknown' -- same as none, but documents that we really don't know.
6908 # 'pass_all' -- all dependencies passed with no checks.
6909 # 'test_compile' -- check by making test program.
6910 # 'file_magic [[regex]]' -- check by looking for files in library path
6911 # which responds to the $file_magic_cmd with a given extended regex.
6912 # If you have `file' or equivalent on your system and you're not sure
6913 # whether `pass_all' will *always* work, you probably want this one.
6914
6915 case $host_os in
6916 aix[4-9]*)
6917 lt_cv_deplibs_check_method=pass_all
6918 ;;
6919
6920 beos*)
6921 lt_cv_deplibs_check_method=pass_all
6922 ;;
6923
6924 bsdi[45]*)
6925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6926 lt_cv_file_magic_cmd='/usr/bin/file -L'
6927 lt_cv_file_magic_test_file=/shlib/libc.so
6928 ;;
6929
6930 cygwin*)
6931 # func_win32_libid is a shell function defined in ltmain.sh
6932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6933 lt_cv_file_magic_cmd='func_win32_libid'
6934 ;;
6935
6936 mingw* | pw32*)
6937 # Base MSYS/MinGW do not provide the 'file' command needed by
6938 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6939 # unless we find 'file', for example because we are cross-compiling.
6940 if ( file / ) >/dev/null 2>&1; then
6941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6942 lt_cv_file_magic_cmd='func_win32_libid'
6943 else
6944 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6945 lt_cv_file_magic_cmd='$OBJDUMP -f'
6946 fi
6947 ;;
6948
6949 cegcc)
6950 # use the weaker test based on 'objdump'. See mingw*.
6951 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6952 lt_cv_file_magic_cmd='$OBJDUMP -f'
6953 ;;
6954
6955 darwin* | rhapsody*)
6956 lt_cv_deplibs_check_method=pass_all
6957 ;;
6958
6959 freebsd* | dragonfly*)
6960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6961 case $host_cpu in
6962 i*86 )
6963 # Not sure whether the presence of OpenBSD here was a mistake.
6964 # Let's accept both of them until this is cleared up.
6965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6966 lt_cv_file_magic_cmd=/usr/bin/file
6967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6968 ;;
6969 esac
6970 else
6971 lt_cv_deplibs_check_method=pass_all
6972 fi
6973 ;;
6974
6975 gnu*)
6976 lt_cv_deplibs_check_method=pass_all
6977 ;;
6978
6979 hpux10.20* | hpux11*)
6980 lt_cv_file_magic_cmd=/usr/bin/file
6981 case $host_cpu in
6982 ia64*)
6983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6985 ;;
6986 hppa*64*)
6987 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]'
6988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6989 ;;
6990 *)
6991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6993 ;;
6994 esac
6995 ;;
6996
6997 interix[3-9]*)
6998 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7000 ;;
7001
7002 irix5* | irix6* | nonstopux*)
7003 case $LD in
7004 *-32|*"-32 ") libmagic=32-bit;;
7005 *-n32|*"-n32 ") libmagic=N32;;
7006 *-64|*"-64 ") libmagic=64-bit;;
7007 *) libmagic=never-match;;
7008 esac
7009 lt_cv_deplibs_check_method=pass_all
7010 ;;
7011
7012 # This must be Linux ELF.
7013 linux* | k*bsd*-gnu)
7014 lt_cv_deplibs_check_method=pass_all
7015 ;;
7016
7017 netbsd*)
7018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7020 else
7021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7022 fi
7023 ;;
7024
7025 newos6*)
7026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7027 lt_cv_file_magic_cmd=/usr/bin/file
7028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7029 ;;
7030
7031 *nto* | *qnx*)
7032 lt_cv_deplibs_check_method=pass_all
7033 ;;
7034
7035 openbsd*)
7036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7038 else
7039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7040 fi
7041 ;;
7042
7043 osf3* | osf4* | osf5*)
7044 lt_cv_deplibs_check_method=pass_all
7045 ;;
7046
7047 rdos*)
7048 lt_cv_deplibs_check_method=pass_all
7049 ;;
7050
7051 solaris*)
7052 lt_cv_deplibs_check_method=pass_all
7053 ;;
7054
7055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7056 lt_cv_deplibs_check_method=pass_all
7057 ;;
7058
7059 sysv4 | sysv4.3*)
7060 case $host_vendor in
7061 motorola)
7062 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]'
7063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7064 ;;
7065 ncr)
7066 lt_cv_deplibs_check_method=pass_all
7067 ;;
7068 sequent)
7069 lt_cv_file_magic_cmd='/bin/file'
7070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7071 ;;
7072 sni)
7073 lt_cv_file_magic_cmd='/bin/file'
7074 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7075 lt_cv_file_magic_test_file=/lib/libc.so
7076 ;;
7077 siemens)
7078 lt_cv_deplibs_check_method=pass_all
7079 ;;
7080 pc)
7081 lt_cv_deplibs_check_method=pass_all
7082 ;;
7083 esac
7084 ;;
7085
7086 tpf*)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089 esac
7090
7091 fi
7092 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7093 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7094 file_magic_cmd=$lt_cv_file_magic_cmd
7095 deplibs_check_method=$lt_cv_deplibs_check_method
7096 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}ar; ac_word=$2
7112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if test "${ac_cv_prog_AR+set}" = set; then
7115 $as_echo_n "(cached) " >&6
7116 else
7117 if test -n "$AR"; then
7118 ac_cv_prog_AR="$AR" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_AR="${ac_tool_prefix}ar"
7128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 AR=$ac_cv_prog_AR
7138 if test -n "$AR"; then
7139 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7140 $as_echo "$AR" >&6; }
7141 else
7142 { $as_echo "$as_me:$LINENO: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145
7146
7147 fi
7148 if test -z "$ac_cv_prog_AR"; then
7149 ac_ct_AR=$AR
7150 # Extract the first word of "ar", so it can be a program name with args.
7151 set dummy ar; ac_word=$2
7152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$ac_ct_AR"; then
7158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_ac_ct_AR="ar"
7168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7178 if test -n "$ac_ct_AR"; then
7179 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7180 $as_echo "$ac_ct_AR" >&6; }
7181 else
7182 { $as_echo "$as_me:$LINENO: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186 if test "x$ac_ct_AR" = x; then
7187 AR="false"
7188 else
7189 case $cross_compiling:$ac_tool_warned in
7190 yes:)
7191 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7194 esac
7195 AR=$ac_ct_AR
7196 fi
7197 else
7198 AR="$ac_cv_prog_AR"
7199 fi
7200
7201 test -z "$AR" && AR=ar
7202 test -z "$AR_FLAGS" && AR_FLAGS=cru
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7216 set dummy ${ac_tool_prefix}strip; ac_word=$2
7217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if test "${ac_cv_prog_STRIP+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7221 else
7222 if test -n "$STRIP"; then
7223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240 fi
7241 fi
7242 STRIP=$ac_cv_prog_STRIP
7243 if test -n "$STRIP"; then
7244 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7245 $as_echo "$STRIP" >&6; }
7246 else
7247 { $as_echo "$as_me:$LINENO: result: no" >&5
7248 $as_echo "no" >&6; }
7249 fi
7250
7251
7252 fi
7253 if test -z "$ac_cv_prog_STRIP"; then
7254 ac_ct_STRIP=$STRIP
7255 # Extract the first word of "strip", so it can be a program name with args.
7256 set dummy strip; ac_word=$2
7257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7260 $as_echo_n "(cached) " >&6
7261 else
7262 if test -n "$ac_ct_STRIP"; then
7263 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_prog_ac_ct_STRIP="strip"
7273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7283 if test -n "$ac_ct_STRIP"; then
7284 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7285 $as_echo "$ac_ct_STRIP" >&6; }
7286 else
7287 { $as_echo "$as_me:$LINENO: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290
7291 if test "x$ac_ct_STRIP" = x; then
7292 STRIP=":"
7293 else
7294 case $cross_compiling:$ac_tool_warned in
7295 yes:)
7296 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298 ac_tool_warned=yes ;;
7299 esac
7300 STRIP=$ac_ct_STRIP
7301 fi
7302 else
7303 STRIP="$ac_cv_prog_STRIP"
7304 fi
7305
7306 test -z "$STRIP" && STRIP=:
7307
7308
7309
7310
7311
7312
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if test "${ac_cv_prog_RANLIB+set}" = set; then
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if test -n "$RANLIB"; then
7322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 RANLIB=$ac_cv_prog_RANLIB
7342 if test -n "$RANLIB"; then
7343 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7344 $as_echo "$RANLIB" >&6; }
7345 else
7346 { $as_echo "$as_me:$LINENO: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350
7351 fi
7352 if test -z "$ac_cv_prog_RANLIB"; then
7353 ac_ct_RANLIB=$RANLIB
7354 # Extract the first word of "ranlib", so it can be a program name with args.
7355 set dummy ranlib; ac_word=$2
7356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$ac_ct_RANLIB"; then
7362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_ac_ct_RANLIB="ranlib"
7372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375 done
7376 done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7382 if test -n "$ac_ct_RANLIB"; then
7383 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7384 $as_echo "$ac_ct_RANLIB" >&6; }
7385 else
7386 { $as_echo "$as_me:$LINENO: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390 if test "x$ac_ct_RANLIB" = x; then
7391 RANLIB=":"
7392 else
7393 case $cross_compiling:$ac_tool_warned in
7394 yes:)
7395 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7398 esac
7399 RANLIB=$ac_ct_RANLIB
7400 fi
7401 else
7402 RANLIB="$ac_cv_prog_RANLIB"
7403 fi
7404
7405 test -z "$RANLIB" && RANLIB=:
7406
7407
7408
7409
7410
7411
7412 # Determine commands to create old-style static archives.
7413 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7414 old_postinstall_cmds='chmod 644 $oldlib'
7415 old_postuninstall_cmds=
7416
7417 if test -n "$RANLIB"; then
7418 case $host_os in
7419 openbsd*)
7420 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7421 ;;
7422 *)
7423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7424 ;;
7425 esac
7426 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7427 fi
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462 # If no C compiler was specified, use CC.
7463 LTCC=${LTCC-"$CC"}
7464
7465 # If no C compiler flags were specified, use CFLAGS.
7466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7467
7468 # Allow CC to be a program name with arguments.
7469 compiler=$CC
7470
7471
7472 # Check for command to grab the raw symbol name followed by C symbol from nm.
7473 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7474 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7475 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7477 else
7478
7479 # These are sane defaults that work on at least a few old systems.
7480 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7481
7482 # Character class describing NM global symbol codes.
7483 symcode='[BCDEGRST]'
7484
7485 # Regexp to match symbols that can be accessed directly from C.
7486 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7487
7488 # Define system-specific variables.
7489 case $host_os in
7490 aix*)
7491 symcode='[BCDT]'
7492 ;;
7493 cygwin* | mingw* | pw32* | cegcc*)
7494 symcode='[ABCDGISTW]'
7495 ;;
7496 hpux*)
7497 if test "$host_cpu" = ia64; then
7498 symcode='[ABCDEGRST]'
7499 fi
7500 ;;
7501 irix* | nonstopux*)
7502 symcode='[BCDEGRST]'
7503 ;;
7504 osf*)
7505 symcode='[BCDEGQRST]'
7506 ;;
7507 solaris*)
7508 symcode='[BDRT]'
7509 ;;
7510 sco3.2v5*)
7511 symcode='[DT]'
7512 ;;
7513 sysv4.2uw2*)
7514 symcode='[DT]'
7515 ;;
7516 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7517 symcode='[ABDT]'
7518 ;;
7519 sysv4)
7520 symcode='[DFNSTU]'
7521 ;;
7522 esac
7523
7524 # If we're using GNU nm, then use its standard symbol codes.
7525 case `$NM -V 2>&1` in
7526 *GNU* | *'with BFD'*)
7527 symcode='[ABCDGIRSTW]' ;;
7528 esac
7529
7530 # Transform an extracted symbol line into a proper C declaration.
7531 # Some systems (esp. on ia64) link data and code symbols differently,
7532 # so use this general approach.
7533 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7534
7535 # Transform an extracted symbol line into symbol name and symbol address
7536 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7537 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'"
7538
7539 # Handle CRLF in mingw tool chain
7540 opt_cr=
7541 case $build_os in
7542 mingw*)
7543 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7544 ;;
7545 esac
7546
7547 # Try without a prefix underscore, then with it.
7548 for ac_symprfx in "" "_"; do
7549
7550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7551 symxfrm="\\1 $ac_symprfx\\2 \\2"
7552
7553 # Write the raw and C identifiers.
7554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7555 # Fake it for dumpbin and say T for any non-static function
7556 # and D for any global variable.
7557 # Also find C++ and __fastcall symbols from MSVC++,
7558 # which start with @ or ?.
7559 lt_cv_sys_global_symbol_pipe="$AWK '"\
7560 " {last_section=section; section=\$ 3};"\
7561 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7562 " \$ 0!~/External *\|/{next};"\
7563 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7564 " {if(hide[section]) next};"\
7565 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7566 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7567 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7568 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7569 " ' prfx=^$ac_symprfx"
7570 else
7571 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7572 fi
7573
7574 # Check to see that the pipe works correctly.
7575 pipe_works=no
7576
7577 rm -f conftest*
7578 cat > conftest.$ac_ext <<_LT_EOF
7579 #ifdef __cplusplus
7580 extern "C" {
7581 #endif
7582 char nm_test_var;
7583 void nm_test_func(void);
7584 void nm_test_func(void){}
7585 #ifdef __cplusplus
7586 }
7587 #endif
7588 int main(){nm_test_var='a';nm_test_func();return(0);}
7589 _LT_EOF
7590
7591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7593 ac_status=$?
7594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; then
7596 # Now try to grab the symbols.
7597 nlist=conftest.nm
7598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7600 ac_status=$?
7601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && test -s "$nlist"; then
7603 # Try sorting and uniquifying the output.
7604 if sort "$nlist" | uniq > "$nlist"T; then
7605 mv -f "$nlist"T "$nlist"
7606 else
7607 rm -f "$nlist"T
7608 fi
7609
7610 # Make sure that we snagged all the symbols we need.
7611 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7612 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7613 cat <<_LT_EOF > conftest.$ac_ext
7614 #ifdef __cplusplus
7615 extern "C" {
7616 #endif
7617
7618 _LT_EOF
7619 # Now generate the symbol file.
7620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7621
7622 cat <<_LT_EOF >> conftest.$ac_ext
7623
7624 /* The mapping between symbol names and symbols. */
7625 const struct {
7626 const char *name;
7627 void *address;
7628 }
7629 lt__PROGRAM__LTX_preloaded_symbols[] =
7630 {
7631 { "@PROGRAM@", (void *) 0 },
7632 _LT_EOF
7633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7634 cat <<\_LT_EOF >> conftest.$ac_ext
7635 {0, (void *) 0}
7636 };
7637
7638 /* This works around a problem in FreeBSD linker */
7639 #ifdef FREEBSD_WORKAROUND
7640 static const void *lt_preloaded_setup() {
7641 return lt__PROGRAM__LTX_preloaded_symbols;
7642 }
7643 #endif
7644
7645 #ifdef __cplusplus
7646 }
7647 #endif
7648 _LT_EOF
7649 # Now try linking the two files.
7650 mv conftest.$ac_objext conftstm.$ac_objext
7651 lt_save_LIBS="$LIBS"
7652 lt_save_CFLAGS="$CFLAGS"
7653 LIBS="conftstm.$ac_objext"
7654 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>&5
7657 ac_status=$?
7658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7660 pipe_works=yes
7661 fi
7662 LIBS="$lt_save_LIBS"
7663 CFLAGS="$lt_save_CFLAGS"
7664 else
7665 echo "cannot find nm_test_func in $nlist" >&5
7666 fi
7667 else
7668 echo "cannot find nm_test_var in $nlist" >&5
7669 fi
7670 else
7671 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7672 fi
7673 else
7674 echo "$progname: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 fi
7677 rm -rf conftest* conftst*
7678
7679 # Do not use the global_symbol_pipe unless it works.
7680 if test "$pipe_works" = yes; then
7681 break
7682 else
7683 lt_cv_sys_global_symbol_pipe=
7684 fi
7685 done
7686
7687 fi
7688
7689 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7690 lt_cv_sys_global_symbol_to_cdecl=
7691 fi
7692 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7693 { $as_echo "$as_me:$LINENO: result: failed" >&5
7694 $as_echo "failed" >&6; }
7695 else
7696 { $as_echo "$as_me:$LINENO: result: ok" >&5
7697 $as_echo "ok" >&6; }
7698 fi
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 # Check whether --enable-libtool-lock was given.
7722 if test "${enable_libtool_lock+set}" = set; then
7723 enableval=$enable_libtool_lock;
7724 fi
7725
7726 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7727
7728 # Some flags need to be propagated to the compiler or linker for good
7729 # libtool support.
7730 case $host in
7731 ia64-*-hpux*)
7732 # Find out which ABI we are using.
7733 echo 'int i;' > conftest.$ac_ext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735 (eval $ac_compile) 2>&5
7736 ac_status=$?
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; then
7739 case `/usr/bin/file conftest.$ac_objext` in
7740 *ELF-32*)
7741 HPUX_IA64_MODE="32"
7742 ;;
7743 *ELF-64*)
7744 HPUX_IA64_MODE="64"
7745 ;;
7746 esac
7747 fi
7748 rm -rf conftest*
7749 ;;
7750 *-*-irix6*)
7751 # Find out which ABI we are using.
7752 echo '#line 7752 "configure"' > conftest.$ac_ext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754 (eval $ac_compile) 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; then
7758 if test "$lt_cv_prog_gnu_ld" = yes; then
7759 case `/usr/bin/file conftest.$ac_objext` in
7760 *32-bit*)
7761 LD="${LD-ld} -melf32bsmip"
7762 ;;
7763 *N32*)
7764 LD="${LD-ld} -melf32bmipn32"
7765 ;;
7766 *64-bit*)
7767 LD="${LD-ld} -melf64bmip"
7768 ;;
7769 esac
7770 else
7771 case `/usr/bin/file conftest.$ac_objext` in
7772 *32-bit*)
7773 LD="${LD-ld} -32"
7774 ;;
7775 *N32*)
7776 LD="${LD-ld} -n32"
7777 ;;
7778 *64-bit*)
7779 LD="${LD-ld} -64"
7780 ;;
7781 esac
7782 fi
7783 fi
7784 rm -rf conftest*
7785 ;;
7786
7787 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7788 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7789 # Find out which ABI we are using.
7790 echo 'int i;' > conftest.$ac_ext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; then
7796 case `/usr/bin/file conftest.o` in
7797 *32-bit*)
7798 case $host in
7799 x86_64-*kfreebsd*-gnu)
7800 LD="${LD-ld} -m elf_i386_fbsd"
7801 ;;
7802 x86_64-*linux*)
7803 LD="${LD-ld} -m elf_i386"
7804 ;;
7805 ppc64-*linux*|powerpc64-*linux*)
7806 LD="${LD-ld} -m elf32ppclinux"
7807 ;;
7808 s390x-*linux*)
7809 LD="${LD-ld} -m elf_s390"
7810 ;;
7811 sparc64-*linux*)
7812 LD="${LD-ld} -m elf32_sparc"
7813 ;;
7814 esac
7815 ;;
7816 *64-bit*)
7817 case $host in
7818 x86_64-*kfreebsd*-gnu)
7819 LD="${LD-ld} -m elf_x86_64_fbsd"
7820 ;;
7821 x86_64-*linux*)
7822 LD="${LD-ld} -m elf_x86_64"
7823 ;;
7824 ppc*-*linux*|powerpc*-*linux*)
7825 LD="${LD-ld} -m elf64ppc"
7826 ;;
7827 s390*-*linux*|s390*-*tpf*)
7828 LD="${LD-ld} -m elf64_s390"
7829 ;;
7830 sparc*-*linux*)
7831 LD="${LD-ld} -m elf64_sparc"
7832 ;;
7833 esac
7834 ;;
7835 esac
7836 fi
7837 rm -rf conftest*
7838 ;;
7839
7840 *-*-sco3.2v5*)
7841 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7842 SAVE_CFLAGS="$CFLAGS"
7843 CFLAGS="$CFLAGS -belf"
7844 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7845 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7846 if test "${lt_cv_cc_needs_belf+set}" = set; then
7847 $as_echo_n "(cached) " >&6
7848 else
7849 ac_ext=c
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861
7862 int
7863 main ()
7864 {
7865
7866 ;
7867 return 0;
7868 }
7869 _ACEOF
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (ac_try="$ac_link"
7872 case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7877 $as_echo "$ac_try_echo") >&5
7878 (eval "$ac_link") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest$ac_exeext && {
7888 test "$cross_compiling" = yes ||
7889 $as_test_x conftest$ac_exeext
7890 }; then
7891 lt_cv_cc_needs_belf=yes
7892 else
7893 $as_echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896 lt_cv_cc_needs_belf=no
7897 fi
7898
7899 rm -rf conftest.dSYM
7900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7901 conftest$ac_exeext conftest.$ac_ext
7902 ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907
7908 fi
7909 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7910 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7911 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7912 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7913 CFLAGS="$SAVE_CFLAGS"
7914 fi
7915 ;;
7916 sparc*-*solaris*)
7917 # Find out which ABI we are using.
7918 echo 'int i;' > conftest.$ac_ext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>&5
7921 ac_status=$?
7922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; then
7924 case `/usr/bin/file conftest.o` in
7925 *64-bit*)
7926 case $lt_cv_prog_gnu_ld in
7927 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7928 *)
7929 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7930 LD="${LD-ld} -64"
7931 fi
7932 ;;
7933 esac
7934 ;;
7935 esac
7936 fi
7937 rm -rf conftest*
7938 ;;
7939 esac
7940
7941 need_locks="$enable_libtool_lock"
7942
7943
7944 case $host_os in
7945 rhapsody* | darwin*)
7946 if test -n "$ac_tool_prefix"; then
7947 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7948 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7952 $as_echo_n "(cached) " >&6
7953 else
7954 if test -n "$DSYMUTIL"; then
7955 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7975 if test -n "$DSYMUTIL"; then
7976 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7977 $as_echo "$DSYMUTIL" >&6; }
7978 else
7979 { $as_echo "$as_me:$LINENO: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984 fi
7985 if test -z "$ac_cv_prog_DSYMUTIL"; then
7986 ac_ct_DSYMUTIL=$DSYMUTIL
7987 # Extract the first word of "dsymutil", so it can be a program name with args.
7988 set dummy dsymutil; ac_word=$2
7989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7992 $as_echo_n "(cached) " >&6
7993 else
7994 if test -n "$ac_ct_DSYMUTIL"; then
7995 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012 fi
8013 fi
8014 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8015 if test -n "$ac_ct_DSYMUTIL"; then
8016 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8017 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8018 else
8019 { $as_echo "$as_me:$LINENO: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023 if test "x$ac_ct_DSYMUTIL" = x; then
8024 DSYMUTIL=":"
8025 else
8026 case $cross_compiling:$ac_tool_warned in
8027 yes:)
8028 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030 ac_tool_warned=yes ;;
8031 esac
8032 DSYMUTIL=$ac_ct_DSYMUTIL
8033 fi
8034 else
8035 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8036 fi
8037
8038 if test -n "$ac_tool_prefix"; then
8039 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8040 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8044 $as_echo_n "(cached) " >&6
8045 else
8046 if test -n "$NMEDIT"; then
8047 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060 done
8061 done
8062 IFS=$as_save_IFS
8063
8064 fi
8065 fi
8066 NMEDIT=$ac_cv_prog_NMEDIT
8067 if test -n "$NMEDIT"; then
8068 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8069 $as_echo "$NMEDIT" >&6; }
8070 else
8071 { $as_echo "$as_me:$LINENO: result: no" >&5
8072 $as_echo "no" >&6; }
8073 fi
8074
8075
8076 fi
8077 if test -z "$ac_cv_prog_NMEDIT"; then
8078 ac_ct_NMEDIT=$NMEDIT
8079 # Extract the first word of "nmedit", so it can be a program name with args.
8080 set dummy nmedit; ac_word=$2
8081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$ac_ct_NMEDIT"; then
8087 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8107 if test -n "$ac_ct_NMEDIT"; then
8108 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8109 $as_echo "$ac_ct_NMEDIT" >&6; }
8110 else
8111 { $as_echo "$as_me:$LINENO: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115 if test "x$ac_ct_NMEDIT" = x; then
8116 NMEDIT=":"
8117 else
8118 case $cross_compiling:$ac_tool_warned in
8119 yes:)
8120 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124 NMEDIT=$ac_ct_NMEDIT
8125 fi
8126 else
8127 NMEDIT="$ac_cv_prog_NMEDIT"
8128 fi
8129
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_LIPO+set}" = set; then
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$LIPO"; then
8139 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152 done
8153 done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 LIPO=$ac_cv_prog_LIPO
8159 if test -n "$LIPO"; then
8160 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8161 $as_echo "$LIPO" >&6; }
8162 else
8163 { $as_echo "$as_me:$LINENO: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168 fi
8169 if test -z "$ac_cv_prog_LIPO"; then
8170 ac_ct_LIPO=$LIPO
8171 # Extract the first word of "lipo", so it can be a program name with args.
8172 set dummy lipo; ac_word=$2
8173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$ac_ct_LIPO"; then
8179 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_ac_ct_LIPO="lipo"
8189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8199 if test -n "$ac_ct_LIPO"; then
8200 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8201 $as_echo "$ac_ct_LIPO" >&6; }
8202 else
8203 { $as_echo "$as_me:$LINENO: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207 if test "x$ac_ct_LIPO" = x; then
8208 LIPO=":"
8209 else
8210 case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8215 esac
8216 LIPO=$ac_ct_LIPO
8217 fi
8218 else
8219 LIPO="$ac_cv_prog_LIPO"
8220 fi
8221
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}otool; ac_word=$2
8225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_prog_OTOOL+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8229 else
8230 if test -n "$OTOOL"; then
8231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244 done
8245 done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 OTOOL=$ac_cv_prog_OTOOL
8251 if test -n "$OTOOL"; then
8252 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8253 $as_echo "$OTOOL" >&6; }
8254 else
8255 { $as_echo "$as_me:$LINENO: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260 fi
8261 if test -z "$ac_cv_prog_OTOOL"; then
8262 ac_ct_OTOOL=$OTOOL
8263 # Extract the first word of "otool", so it can be a program name with args.
8264 set dummy otool; ac_word=$2
8265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$ac_ct_OTOOL"; then
8271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_ac_ct_OTOOL="otool"
8281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8291 if test -n "$ac_ct_OTOOL"; then
8292 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8293 $as_echo "$ac_ct_OTOOL" >&6; }
8294 else
8295 { $as_echo "$as_me:$LINENO: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299 if test "x$ac_ct_OTOOL" = x; then
8300 OTOOL=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 OTOOL=$ac_ct_OTOOL
8309 fi
8310 else
8311 OTOOL="$ac_cv_prog_OTOOL"
8312 fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$OTOOL64"; then
8323 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336 done
8337 done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 OTOOL64=$ac_cv_prog_OTOOL64
8343 if test -n "$OTOOL64"; then
8344 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8345 $as_echo "$OTOOL64" >&6; }
8346 else
8347 { $as_echo "$as_me:$LINENO: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351
8352 fi
8353 if test -z "$ac_cv_prog_OTOOL64"; then
8354 ac_ct_OTOOL64=$OTOOL64
8355 # Extract the first word of "otool64", so it can be a program name with args.
8356 set dummy otool64; ac_word=$2
8357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$ac_ct_OTOOL64"; then
8363 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ac_ct_OTOOL64="otool64"
8373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8383 if test -n "$ac_ct_OTOOL64"; then
8384 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8385 $as_echo "$ac_ct_OTOOL64" >&6; }
8386 else
8387 { $as_echo "$as_me:$LINENO: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391 if test "x$ac_ct_OTOOL64" = x; then
8392 OTOOL64=":"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400 OTOOL64=$ac_ct_OTOOL64
8401 fi
8402 else
8403 OTOOL64="$ac_cv_prog_OTOOL64"
8404 fi
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8433 $as_echo_n "checking for -single_module linker flag... " >&6; }
8434 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8435 $as_echo_n "(cached) " >&6
8436 else
8437 lt_cv_apple_cc_single_mod=no
8438 if test -z "${LT_MULTI_MODULE}"; then
8439 # By default we will add the -single_module flag. You can override
8440 # by either setting the environment variable LT_MULTI_MODULE
8441 # non-empty at configure time, or by adding -multi_module to the
8442 # link flags.
8443 rm -rf libconftest.dylib*
8444 echo "int foo(void){return 1;}" > conftest.c
8445 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8446 -dynamiclib -Wl,-single_module conftest.c" >&5
8447 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8448 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8449 _lt_result=$?
8450 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8451 lt_cv_apple_cc_single_mod=yes
8452 else
8453 cat conftest.err >&5
8454 fi
8455 rm -rf libconftest.dylib*
8456 rm -f conftest.*
8457 fi
8458 fi
8459 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8460 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8461 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8462 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8463 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8464 $as_echo_n "(cached) " >&6
8465 else
8466 lt_cv_ld_exported_symbols_list=no
8467 save_LDFLAGS=$LDFLAGS
8468 echo "_main" > conftest.sym
8469 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476
8477 int
8478 main ()
8479 {
8480
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (ac_try="$ac_link"
8487 case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490 esac
8491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8492 $as_echo "$ac_try_echo") >&5
8493 (eval "$ac_link") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest$ac_exeext && {
8503 test "$cross_compiling" = yes ||
8504 $as_test_x conftest$ac_exeext
8505 }; then
8506 lt_cv_ld_exported_symbols_list=yes
8507 else
8508 $as_echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 lt_cv_ld_exported_symbols_list=no
8512 fi
8513
8514 rm -rf conftest.dSYM
8515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8516 conftest$ac_exeext conftest.$ac_ext
8517 LDFLAGS="$save_LDFLAGS"
8518
8519 fi
8520 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8521 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8522 case $host_os in
8523 rhapsody* | darwin1.[012])
8524 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8525 darwin1.*)
8526 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8527 darwin*) # darwin 5.x on
8528 # if running on 10.5 or later, the deployment target defaults
8529 # to the OS version, if on x86, and 10.4, the deployment
8530 # target defaults to 10.4. Don't you love it?
8531 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8532 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8533 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8534 10.[012]*)
8535 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8536 10.*)
8537 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8538 esac
8539 ;;
8540 esac
8541 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8542 _lt_dar_single_mod='$single_module'
8543 fi
8544 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8545 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8546 else
8547 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8548 fi
8549 if test "$DSYMUTIL" != ":"; then
8550 _lt_dsymutil='~$DSYMUTIL $lib || :'
8551 else
8552 _lt_dsymutil=
8553 fi
8554 ;;
8555 esac
8556
8557
8558 for ac_header in dlfcn.h
8559 do
8560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8562 $as_echo_n "checking for $ac_header... " >&6; }
8563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8564 $as_echo_n "(cached) " >&6
8565 else
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573
8574 #include <$ac_header>
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (ac_try="$ac_compile"
8578 case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581 esac
8582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8583 $as_echo "$ac_try_echo") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 eval "$as_ac_Header=yes"
8595 else
8596 $as_echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 eval "$as_ac_Header=no"
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604 ac_res=`eval 'as_val=${'$as_ac_Header'}
8605 $as_echo "$as_val"'`
8606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8607 $as_echo "$ac_res" >&6; }
8608 as_val=`eval 'as_val=${'$as_ac_Header'}
8609 $as_echo "$as_val"'`
8610 if test "x$as_val" = x""yes; then
8611 cat >>confdefs.h <<_ACEOF
8612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 _ACEOF
8614
8615 fi
8616
8617 done
8618
8619
8620
8621 ac_ext=cpp
8622 ac_cpp='$CXXCPP $CPPFLAGS'
8623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8626 if test -z "$CXX"; then
8627 if test -n "$CCC"; then
8628 CXX=$CCC
8629 else
8630 if test -n "$ac_tool_prefix"; then
8631 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8632 do
8633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if test "${ac_cv_prog_CXX+set}" = set; then
8638 $as_echo_n "(cached) " >&6
8639 else
8640 if test -n "$CXX"; then
8641 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658 fi
8659 fi
8660 CXX=$ac_cv_prog_CXX
8661 if test -n "$CXX"; then
8662 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8663 $as_echo "$CXX" >&6; }
8664 else
8665 { $as_echo "$as_me:$LINENO: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670 test -n "$CXX" && break
8671 done
8672 fi
8673 if test -z "$CXX"; then
8674 ac_ct_CXX=$CXX
8675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8676 do
8677 # Extract the first word of "$ac_prog", so it can be a program name with args.
8678 set dummy $ac_prog; ac_word=$2
8679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8682 $as_echo_n "(cached) " >&6
8683 else
8684 if test -n "$ac_ct_CXX"; then
8685 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_ac_ct_CXX="$ac_prog"
8695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698 done
8699 done
8700 IFS=$as_save_IFS
8701
8702 fi
8703 fi
8704 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8705 if test -n "$ac_ct_CXX"; then
8706 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8707 $as_echo "$ac_ct_CXX" >&6; }
8708 else
8709 { $as_echo "$as_me:$LINENO: result: no" >&5
8710 $as_echo "no" >&6; }
8711 fi
8712
8713
8714 test -n "$ac_ct_CXX" && break
8715 done
8716
8717 if test "x$ac_ct_CXX" = x; then
8718 CXX="g++"
8719 else
8720 case $cross_compiling:$ac_tool_warned in
8721 yes:)
8722 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8724 ac_tool_warned=yes ;;
8725 esac
8726 CXX=$ac_ct_CXX
8727 fi
8728 fi
8729
8730 fi
8731 fi
8732 # Provide some information about the compiler.
8733 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8734 set X $ac_compile
8735 ac_compiler=$2
8736 { (ac_try="$ac_compiler --version >&5"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742 $as_echo "$ac_try_echo") >&5
8743 (eval "$ac_compiler --version >&5") 2>&5
8744 ac_status=$?
8745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }
8747 { (ac_try="$ac_compiler -v >&5"
8748 case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753 $as_echo "$ac_try_echo") >&5
8754 (eval "$ac_compiler -v >&5") 2>&5
8755 ac_status=$?
8756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }
8758 { (ac_try="$ac_compiler -V >&5"
8759 case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_compiler -V >&5") 2>&5
8766 ac_status=$?
8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }
8769
8770 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8771 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8772 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8773 $as_echo_n "(cached) " >&6
8774 else
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781
8782 int
8783 main ()
8784 {
8785 #ifndef __GNUC__
8786 choke me
8787 #endif
8788
8789 ;
8790 return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8795 case "(($ac_try" in
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8798 esac
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801 (eval "$ac_compile") 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_cxx_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
8811 ac_compiler_gnu=yes
8812 else
8813 $as_echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8815
8816 ac_compiler_gnu=no
8817 fi
8818
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8821
8822 fi
8823 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8824 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8825 if test $ac_compiler_gnu = yes; then
8826 GXX=yes
8827 else
8828 GXX=
8829 fi
8830 ac_test_CXXFLAGS=${CXXFLAGS+set}
8831 ac_save_CXXFLAGS=$CXXFLAGS
8832 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8833 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8834 if test "${ac_cv_prog_cxx_g+set}" = set; then
8835 $as_echo_n "(cached) " >&6
8836 else
8837 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8838 ac_cxx_werror_flag=yes
8839 ac_cv_prog_cxx_g=no
8840 CXXFLAGS="-g"
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847
8848 int
8849 main ()
8850 {
8851
8852 ;
8853 return 0;
8854 }
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8858 case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861 esac
8862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863 $as_echo "$ac_try_echo") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_cxx_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.$ac_objext; then
8874 ac_cv_prog_cxx_g=yes
8875 else
8876 $as_echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 CXXFLAGS=""
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886
8887 int
8888 main ()
8889 {
8890
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (ac_try="$ac_compile"
8897 case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900 esac
8901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8902 $as_echo "$ac_try_echo") >&5
8903 (eval "$ac_compile") 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_cxx_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest.$ac_objext; then
8913 :
8914 else
8915 $as_echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8919 CXXFLAGS="-g"
8920 cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h. */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926
8927 int
8928 main ()
8929 {
8930
8931 ;
8932 return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext
8936 if { (ac_try="$ac_compile"
8937 case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940 esac
8941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8942 $as_echo "$ac_try_echo") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_cxx_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 ac_cv_prog_cxx_g=yes
8954 else
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8969 fi
8970 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8971 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8972 if test "$ac_test_CXXFLAGS" = set; then
8973 CXXFLAGS=$ac_save_CXXFLAGS
8974 elif test $ac_cv_prog_cxx_g = yes; then
8975 if test "$GXX" = yes; then
8976 CXXFLAGS="-g -O2"
8977 else
8978 CXXFLAGS="-g"
8979 fi
8980 else
8981 if test "$GXX" = yes; then
8982 CXXFLAGS="-O2"
8983 else
8984 CXXFLAGS=
8985 fi
8986 fi
8987 ac_ext=c
8988 ac_cpp='$CPP $CPPFLAGS'
8989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8992
8993 depcc="$CXX" am_compiler_list=
8994
8995 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8996 $as_echo_n "checking dependency style of $depcc... " >&6; }
8997 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8998 $as_echo_n "(cached) " >&6
8999 else
9000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9001 # We make a subdir and do the tests there. Otherwise we can end up
9002 # making bogus files that we don't know about and never remove. For
9003 # instance it was reported that on HP-UX the gcc test will end up
9004 # making a dummy file named `D' -- because `-MD' means `put the output
9005 # in D'.
9006 mkdir conftest.dir
9007 # Copy depcomp to subdir because otherwise we won't find it if we're
9008 # using a relative directory.
9009 cp "$am_depcomp" conftest.dir
9010 cd conftest.dir
9011 # We will build objects and dependencies in a subdirectory because
9012 # it helps to detect inapplicable dependency modes. For instance
9013 # both Tru64's cc and ICC support -MD to output dependencies as a
9014 # side effect of compilation, but ICC will put the dependencies in
9015 # the current directory while Tru64 will put them in the object
9016 # directory.
9017 mkdir sub
9018
9019 am_cv_CXX_dependencies_compiler_type=none
9020 if test "$am_compiler_list" = ""; then
9021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9022 fi
9023 am__universal=false
9024 case " $depcc " in #(
9025 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9026 esac
9027
9028 for depmode in $am_compiler_list; do
9029 # Setup a source with many dependencies, because some compilers
9030 # like to wrap large dependency lists on column 80 (with \), and
9031 # we should not choose a depcomp mode which is confused by this.
9032 #
9033 # We need to recreate these files for each test, as the compiler may
9034 # overwrite some of them when testing with obscure command lines.
9035 # This happens at least with the AIX C compiler.
9036 : > sub/conftest.c
9037 for i in 1 2 3 4 5 6; do
9038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9040 # Solaris 8's {/usr,}/bin/sh.
9041 touch sub/conftst$i.h
9042 done
9043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9044
9045 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9046 # mode. It turns out that the SunPro C++ compiler does not properly
9047 # handle `-M -o', and we need to detect this. Also, some Intel
9048 # versions had trouble with output in subdirs
9049 am__obj=sub/conftest.${OBJEXT-o}
9050 am__minus_obj="-o $am__obj"
9051 case $depmode in
9052 gcc)
9053 # This depmode causes a compiler race in universal mode.
9054 test "$am__universal" = false || continue
9055 ;;
9056 nosideeffect)
9057 # after this tag, mechanisms are not by side-effect, so they'll
9058 # only be used when explicitly requested
9059 if test "x$enable_dependency_tracking" = xyes; then
9060 continue
9061 else
9062 break
9063 fi
9064 ;;
9065 msvisualcpp | msvcmsys)
9066 # This compiler won't grok `-c -o', but also, the minuso test has
9067 # not run yet. These depmodes are late enough in the game, and
9068 # so weak that their functioning should not be impacted.
9069 am__obj=conftest.${OBJEXT-o}
9070 am__minus_obj=
9071 ;;
9072 none) break ;;
9073 esac
9074 if depmode=$depmode \
9075 source=sub/conftest.c object=$am__obj \
9076 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9077 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9078 >/dev/null 2>conftest.err &&
9079 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9080 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9081 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9082 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9083 # icc doesn't choke on unknown options, it will just issue warnings
9084 # or remarks (even with -Werror). So we grep stderr for any message
9085 # that says an option was ignored or not supported.
9086 # When given -MP, icc 7.0 and 7.1 complain thusly:
9087 # icc: Command line warning: ignoring option '-M'; no argument required
9088 # The diagnosis changed in icc 8.0:
9089 # icc: Command line remark: option '-MP' not supported
9090 if (grep 'ignoring option' conftest.err ||
9091 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9092 am_cv_CXX_dependencies_compiler_type=$depmode
9093 break
9094 fi
9095 fi
9096 done
9097
9098 cd ..
9099 rm -rf conftest.dir
9100 else
9101 am_cv_CXX_dependencies_compiler_type=none
9102 fi
9103
9104 fi
9105 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9106 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9107 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9108
9109 if
9110 test "x$enable_dependency_tracking" != xno \
9111 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9112 am__fastdepCXX_TRUE=
9113 am__fastdepCXX_FALSE='#'
9114 else
9115 am__fastdepCXX_TRUE='#'
9116 am__fastdepCXX_FALSE=
9117 fi
9118
9119
9120 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9121 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9122 (test "X$CXX" != "Xg++"))) ; then
9123 ac_ext=cpp
9124 ac_cpp='$CXXCPP $CPPFLAGS'
9125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9128 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9129 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9130 if test -z "$CXXCPP"; then
9131 if test "${ac_cv_prog_CXXCPP+set}" = set; then
9132 $as_echo_n "(cached) " >&6
9133 else
9134 # Double quotes because CXXCPP needs to be expanded
9135 for CXXCPP in "$CXX -E" "/lib/cpp"
9136 do
9137 ac_preproc_ok=false
9138 for ac_cxx_preproc_warn_flag in '' yes
9139 do
9140 # Use a header file that comes with gcc, so configuring glibc
9141 # with a fresh cross-compiler works.
9142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9143 # <limits.h> exists even on freestanding compilers.
9144 # On the NeXT, cc -E runs the code through the compiler's parser,
9145 # not just through cpp. "Syntax error" is here to catch this case.
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 #ifdef __STDC__
9153 # include <limits.h>
9154 #else
9155 # include <assert.h>
9156 #endif
9157 Syntax error
9158 _ACEOF
9159 if { (ac_try="$ac_cpp conftest.$ac_ext"
9160 case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163 esac
9164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9165 $as_echo "$ac_try_echo") >&5
9166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } >/dev/null && {
9173 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9174 test ! -s conftest.err
9175 }; then
9176 :
9177 else
9178 $as_echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 # Broken: fails on valid input.
9182 continue
9183 fi
9184
9185 rm -f conftest.err conftest.$ac_ext
9186
9187 # OK, works on sane cases. Now check whether nonexistent headers
9188 # can be detected and how.
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 #include <ac_nonexistent.h>
9196 _ACEOF
9197 if { (ac_try="$ac_cpp conftest.$ac_ext"
9198 case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201 esac
9202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9203 $as_echo "$ac_try_echo") >&5
9204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } >/dev/null && {
9211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9212 test ! -s conftest.err
9213 }; then
9214 # Broken: success on invalid input.
9215 continue
9216 else
9217 $as_echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 # Passes both tests.
9221 ac_preproc_ok=:
9222 break
9223 fi
9224
9225 rm -f conftest.err conftest.$ac_ext
9226
9227 done
9228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9229 rm -f conftest.err conftest.$ac_ext
9230 if $ac_preproc_ok; then
9231 break
9232 fi
9233
9234 done
9235 ac_cv_prog_CXXCPP=$CXXCPP
9236
9237 fi
9238 CXXCPP=$ac_cv_prog_CXXCPP
9239 else
9240 ac_cv_prog_CXXCPP=$CXXCPP
9241 fi
9242 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
9243 $as_echo "$CXXCPP" >&6; }
9244 ac_preproc_ok=false
9245 for ac_cxx_preproc_warn_flag in '' yes
9246 do
9247 # Use a header file that comes with gcc, so configuring glibc
9248 # with a fresh cross-compiler works.
9249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9250 # <limits.h> exists even on freestanding compilers.
9251 # On the NeXT, cc -E runs the code through the compiler's parser,
9252 # not just through cpp. "Syntax error" is here to catch this case.
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h. */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 #ifdef __STDC__
9260 # include <limits.h>
9261 #else
9262 # include <assert.h>
9263 #endif
9264 Syntax error
9265 _ACEOF
9266 if { (ac_try="$ac_cpp conftest.$ac_ext"
9267 case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270 esac
9271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9272 $as_echo "$ac_try_echo") >&5
9273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } >/dev/null && {
9280 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9281 test ! -s conftest.err
9282 }; then
9283 :
9284 else
9285 $as_echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 # Broken: fails on valid input.
9289 continue
9290 fi
9291
9292 rm -f conftest.err conftest.$ac_ext
9293
9294 # OK, works on sane cases. Now check whether nonexistent headers
9295 # can be detected and how.
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 #include <ac_nonexistent.h>
9303 _ACEOF
9304 if { (ac_try="$ac_cpp conftest.$ac_ext"
9305 case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308 esac
9309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310 $as_echo "$ac_try_echo") >&5
9311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } >/dev/null && {
9318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9319 test ! -s conftest.err
9320 }; then
9321 # Broken: success on invalid input.
9322 continue
9323 else
9324 $as_echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 # Passes both tests.
9328 ac_preproc_ok=:
9329 break
9330 fi
9331
9332 rm -f conftest.err conftest.$ac_ext
9333
9334 done
9335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9336 rm -f conftest.err conftest.$ac_ext
9337 if $ac_preproc_ok; then
9338 :
9339 else
9340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9342 _lt_caught_CXX_error=yes; }
9343 fi
9344
9345 ac_ext=c
9346 ac_cpp='$CPP $CPPFLAGS'
9347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9350
9351 else
9352 _lt_caught_CXX_error=yes
9353 fi
9354
9355
9356
9357
9358
9359 # Set options
9360
9361
9362
9363 enable_dlopen=no
9364
9365
9366 enable_win32_dll=no
9367
9368
9369 # Check whether --enable-shared was given.
9370 if test "${enable_shared+set}" = set; then
9371 enableval=$enable_shared; p=${PACKAGE-default}
9372 case $enableval in
9373 yes) enable_shared=yes ;;
9374 no) enable_shared=no ;;
9375 *)
9376 enable_shared=no
9377 # Look at the argument we got. We use all the common list separators.
9378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9379 for pkg in $enableval; do
9380 IFS="$lt_save_ifs"
9381 if test "X$pkg" = "X$p"; then
9382 enable_shared=yes
9383 fi
9384 done
9385 IFS="$lt_save_ifs"
9386 ;;
9387 esac
9388 else
9389 enable_shared=yes
9390 fi
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400 # Check whether --enable-static was given.
9401 if test "${enable_static+set}" = set; then
9402 enableval=$enable_static; p=${PACKAGE-default}
9403 case $enableval in
9404 yes) enable_static=yes ;;
9405 no) enable_static=no ;;
9406 *)
9407 enable_static=no
9408 # Look at the argument we got. We use all the common list separators.
9409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9410 for pkg in $enableval; do
9411 IFS="$lt_save_ifs"
9412 if test "X$pkg" = "X$p"; then
9413 enable_static=yes
9414 fi
9415 done
9416 IFS="$lt_save_ifs"
9417 ;;
9418 esac
9419 else
9420 enable_static=yes
9421 fi
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432 # Check whether --with-pic was given.
9433 if test "${with_pic+set}" = set; then
9434 withval=$with_pic; pic_mode="$withval"
9435 else
9436 pic_mode=default
9437 fi
9438
9439
9440 test -z "$pic_mode" && pic_mode=default
9441
9442
9443
9444
9445
9446
9447
9448 # Check whether --enable-fast-install was given.
9449 if test "${enable_fast_install+set}" = set; then
9450 enableval=$enable_fast_install; p=${PACKAGE-default}
9451 case $enableval in
9452 yes) enable_fast_install=yes ;;
9453 no) enable_fast_install=no ;;
9454 *)
9455 enable_fast_install=no
9456 # Look at the argument we got. We use all the common list separators.
9457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9458 for pkg in $enableval; do
9459 IFS="$lt_save_ifs"
9460 if test "X$pkg" = "X$p"; then
9461 enable_fast_install=yes
9462 fi
9463 done
9464 IFS="$lt_save_ifs"
9465 ;;
9466 esac
9467 else
9468 enable_fast_install=yes
9469 fi
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481 # This can be used to rebuild libtool when needed
9482 LIBTOOL_DEPS="$ltmain"
9483
9484 # Always use our own libtool.
9485 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511 test -z "$LN_S" && LN_S="ln -s"
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526 if test -n "${ZSH_VERSION+set}" ; then
9527 setopt NO_GLOB_SUBST
9528 fi
9529
9530 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9531 $as_echo_n "checking for objdir... " >&6; }
9532 if test "${lt_cv_objdir+set}" = set; then
9533 $as_echo_n "(cached) " >&6
9534 else
9535 rm -f .libs 2>/dev/null
9536 mkdir .libs 2>/dev/null
9537 if test -d .libs; then
9538 lt_cv_objdir=.libs
9539 else
9540 # MS-DOS does not allow filenames that begin with a dot.
9541 lt_cv_objdir=_libs
9542 fi
9543 rmdir .libs 2>/dev/null
9544 fi
9545 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9546 $as_echo "$lt_cv_objdir" >&6; }
9547 objdir=$lt_cv_objdir
9548
9549
9550
9551
9552
9553 cat >>confdefs.h <<_ACEOF
9554 #define LT_OBJDIR "$lt_cv_objdir/"
9555 _ACEOF
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573 case $host_os in
9574 aix3*)
9575 # AIX sometimes has problems with the GCC collect2 program. For some
9576 # reason, if we set the COLLECT_NAMES environment variable, the problems
9577 # vanish in a puff of smoke.
9578 if test "X${COLLECT_NAMES+set}" != Xset; then
9579 COLLECT_NAMES=
9580 export COLLECT_NAMES
9581 fi
9582 ;;
9583 esac
9584
9585 # Sed substitution that helps us do robust quoting. It backslashifies
9586 # metacharacters that are still active within double-quoted strings.
9587 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9588
9589 # Same as above, but do not quote variable references.
9590 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9591
9592 # Sed substitution to delay expansion of an escaped shell variable in a
9593 # double_quote_subst'ed string.
9594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9595
9596 # Sed substitution to delay expansion of an escaped single quote.
9597 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9598
9599 # Sed substitution to avoid accidental globbing in evaled expressions
9600 no_glob_subst='s/\*/\\\*/g'
9601
9602 # Global variables:
9603 ofile=libtool
9604 can_build_shared=yes
9605
9606 # All known linkers require a `.a' archive for static linking (except MSVC,
9607 # which needs '.lib').
9608 libext=a
9609
9610 with_gnu_ld="$lt_cv_prog_gnu_ld"
9611
9612 old_CC="$CC"
9613 old_CFLAGS="$CFLAGS"
9614
9615 # Set sane defaults for various variables
9616 test -z "$CC" && CC=cc
9617 test -z "$LTCC" && LTCC=$CC
9618 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9619 test -z "$LD" && LD=ld
9620 test -z "$ac_objext" && ac_objext=o
9621
9622 for cc_temp in $compiler""; do
9623 case $cc_temp in
9624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9626 \-*) ;;
9627 *) break;;
9628 esac
9629 done
9630 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9631
9632
9633 # Only perform the check for file, if the check method requires it
9634 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9635 case $deplibs_check_method in
9636 file_magic*)
9637 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9638 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9639 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9640 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9641 $as_echo_n "(cached) " >&6
9642 else
9643 case $MAGIC_CMD in
9644 [\\/*] | ?:[\\/]*)
9645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9646 ;;
9647 *)
9648 lt_save_MAGIC_CMD="$MAGIC_CMD"
9649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9651 for ac_dir in $ac_dummy; do
9652 IFS="$lt_save_ifs"
9653 test -z "$ac_dir" && ac_dir=.
9654 if test -f $ac_dir/${ac_tool_prefix}file; then
9655 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9656 if test -n "$file_magic_test_file"; then
9657 case $deplibs_check_method in
9658 "file_magic "*)
9659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9662 $EGREP "$file_magic_regex" > /dev/null; then
9663 :
9664 else
9665 cat <<_LT_EOF 1>&2
9666
9667 *** Warning: the command libtool uses to detect shared libraries,
9668 *** $file_magic_cmd, produces output that libtool cannot recognize.
9669 *** The result is that libtool may fail to recognize shared libraries
9670 *** as such. This will affect the creation of libtool libraries that
9671 *** depend on shared libraries, but programs linked with such libtool
9672 *** libraries will work regardless of this problem. Nevertheless, you
9673 *** may want to report the problem to your system manager and/or to
9674 *** bug-libtool@gnu.org
9675
9676 _LT_EOF
9677 fi ;;
9678 esac
9679 fi
9680 break
9681 fi
9682 done
9683 IFS="$lt_save_ifs"
9684 MAGIC_CMD="$lt_save_MAGIC_CMD"
9685 ;;
9686 esac
9687 fi
9688
9689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9690 if test -n "$MAGIC_CMD"; then
9691 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9692 $as_echo "$MAGIC_CMD" >&6; }
9693 else
9694 { $as_echo "$as_me:$LINENO: result: no" >&5
9695 $as_echo "no" >&6; }
9696 fi
9697
9698
9699
9700
9701
9702 if test -z "$lt_cv_path_MAGIC_CMD"; then
9703 if test -n "$ac_tool_prefix"; then
9704 { $as_echo "$as_me:$LINENO: checking for file" >&5
9705 $as_echo_n "checking for file... " >&6; }
9706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9707 $as_echo_n "(cached) " >&6
9708 else
9709 case $MAGIC_CMD in
9710 [\\/*] | ?:[\\/]*)
9711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9712 ;;
9713 *)
9714 lt_save_MAGIC_CMD="$MAGIC_CMD"
9715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9717 for ac_dir in $ac_dummy; do
9718 IFS="$lt_save_ifs"
9719 test -z "$ac_dir" && ac_dir=.
9720 if test -f $ac_dir/file; then
9721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9722 if test -n "$file_magic_test_file"; then
9723 case $deplibs_check_method in
9724 "file_magic "*)
9725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9728 $EGREP "$file_magic_regex" > /dev/null; then
9729 :
9730 else
9731 cat <<_LT_EOF 1>&2
9732
9733 *** Warning: the command libtool uses to detect shared libraries,
9734 *** $file_magic_cmd, produces output that libtool cannot recognize.
9735 *** The result is that libtool may fail to recognize shared libraries
9736 *** as such. This will affect the creation of libtool libraries that
9737 *** depend on shared libraries, but programs linked with such libtool
9738 *** libraries will work regardless of this problem. Nevertheless, you
9739 *** may want to report the problem to your system manager and/or to
9740 *** bug-libtool@gnu.org
9741
9742 _LT_EOF
9743 fi ;;
9744 esac
9745 fi
9746 break
9747 fi
9748 done
9749 IFS="$lt_save_ifs"
9750 MAGIC_CMD="$lt_save_MAGIC_CMD"
9751 ;;
9752 esac
9753 fi
9754
9755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9756 if test -n "$MAGIC_CMD"; then
9757 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9758 $as_echo "$MAGIC_CMD" >&6; }
9759 else
9760 { $as_echo "$as_me:$LINENO: result: no" >&5
9761 $as_echo "no" >&6; }
9762 fi
9763
9764
9765 else
9766 MAGIC_CMD=:
9767 fi
9768 fi
9769
9770 fi
9771 ;;
9772 esac
9773
9774 # Use C for the default configuration in the libtool script
9775
9776 lt_save_CC="$CC"
9777 ac_ext=c
9778 ac_cpp='$CPP $CPPFLAGS'
9779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9782
9783
9784 # Source file extension for C test sources.
9785 ac_ext=c
9786
9787 # Object file extension for compiled C test sources.
9788 objext=o
9789 objext=$objext
9790
9791 # Code to be used in simple compile tests
9792 lt_simple_compile_test_code="int some_variable = 0;"
9793
9794 # Code to be used in simple link tests
9795 lt_simple_link_test_code='int main(){return(0);}'
9796
9797
9798
9799
9800
9801
9802
9803 # If no C compiler was specified, use CC.
9804 LTCC=${LTCC-"$CC"}
9805
9806 # If no C compiler flags were specified, use CFLAGS.
9807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9808
9809 # Allow CC to be a program name with arguments.
9810 compiler=$CC
9811
9812 # Save the default compiler, since it gets overwritten when the other
9813 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9814 compiler_DEFAULT=$CC
9815
9816 # save warnings/boilerplate of simple test code
9817 ac_outfile=conftest.$ac_objext
9818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9820 _lt_compiler_boilerplate=`cat conftest.err`
9821 $RM conftest*
9822
9823 ac_outfile=conftest.$ac_objext
9824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9826 _lt_linker_boilerplate=`cat conftest.err`
9827 $RM -r conftest*
9828
9829
9830 if test -n "$compiler"; then
9831
9832 lt_prog_compiler_no_builtin_flag=
9833
9834 if test "$GCC" = yes; then
9835 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9836
9837 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9838 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9839 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9840 $as_echo_n "(cached) " >&6
9841 else
9842 lt_cv_prog_compiler_rtti_exceptions=no
9843 ac_outfile=conftest.$ac_objext
9844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9845 lt_compiler_flag="-fno-rtti -fno-exceptions"
9846 # Insert the option either (1) after the last *FLAGS variable, or
9847 # (2) before a word containing "conftest.", or (3) at the end.
9848 # Note that $ac_compile itself does not contain backslashes and begins
9849 # with a dollar sign (not a hyphen), so the echo should work correctly.
9850 # The option is referenced via a variable to avoid confusing sed.
9851 lt_compile=`echo "$ac_compile" | $SED \
9852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9854 -e 's:$: $lt_compiler_flag:'`
9855 (eval echo "\"\$as_me:9855: $lt_compile\"" >&5)
9856 (eval "$lt_compile" 2>conftest.err)
9857 ac_status=$?
9858 cat conftest.err >&5
9859 echo "$as_me:9859: \$? = $ac_status" >&5
9860 if (exit $ac_status) && test -s "$ac_outfile"; then
9861 # The compiler can only warn and ignore the option if not recognized
9862 # So say no if there are warnings other than the usual output.
9863 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9866 lt_cv_prog_compiler_rtti_exceptions=yes
9867 fi
9868 fi
9869 $RM conftest*
9870
9871 fi
9872 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9873 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9874
9875 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9876 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9877 else
9878 :
9879 fi
9880
9881 fi
9882
9883
9884
9885
9886
9887
9888 lt_prog_compiler_wl=
9889 lt_prog_compiler_pic=
9890 lt_prog_compiler_static=
9891
9892 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9893 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9894
9895 if test "$GCC" = yes; then
9896 lt_prog_compiler_wl='-Wl,'
9897 lt_prog_compiler_static='-static'
9898
9899 case $host_os in
9900 aix*)
9901 # All AIX code is PIC.
9902 if test "$host_cpu" = ia64; then
9903 # AIX 5 now supports IA64 processor
9904 lt_prog_compiler_static='-Bstatic'
9905 fi
9906 ;;
9907
9908 amigaos*)
9909 case $host_cpu in
9910 powerpc)
9911 # see comment about AmigaOS4 .so support
9912 lt_prog_compiler_pic='-fPIC'
9913 ;;
9914 m68k)
9915 # FIXME: we need at least 68020 code to build shared libraries, but
9916 # adding the `-m68020' flag to GCC prevents building anything better,
9917 # like `-m68040'.
9918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9919 ;;
9920 esac
9921 ;;
9922
9923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9924 # PIC is the default for these OSes.
9925 ;;
9926
9927 mingw* | cygwin* | pw32* | os2* | cegcc*)
9928 # This hack is so that the source file can tell whether it is being
9929 # built for inclusion in a dll (and should export symbols for example).
9930 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9931 # (--disable-auto-import) libraries
9932 lt_prog_compiler_pic='-DDLL_EXPORT'
9933 ;;
9934
9935 darwin* | rhapsody*)
9936 # PIC is the default on this platform
9937 # Common symbols not allowed in MH_DYLIB files
9938 lt_prog_compiler_pic='-fno-common'
9939 ;;
9940
9941 hpux*)
9942 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9943 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9944 # sets the default TLS model and affects inlining.
9945 case $host_cpu in
9946 hppa*64*)
9947 # +Z the default
9948 ;;
9949 *)
9950 lt_prog_compiler_pic='-fPIC'
9951 ;;
9952 esac
9953 ;;
9954
9955 interix[3-9]*)
9956 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9957 # Instead, we relocate shared libraries at runtime.
9958 ;;
9959
9960 msdosdjgpp*)
9961 # Just because we use GCC doesn't mean we suddenly get shared libraries
9962 # on systems that don't support them.
9963 lt_prog_compiler_can_build_shared=no
9964 enable_shared=no
9965 ;;
9966
9967 *nto* | *qnx*)
9968 # QNX uses GNU C++, but need to define -shared option too, otherwise
9969 # it will coredump.
9970 lt_prog_compiler_pic='-fPIC -shared'
9971 ;;
9972
9973 sysv4*MP*)
9974 if test -d /usr/nec; then
9975 lt_prog_compiler_pic=-Kconform_pic
9976 fi
9977 ;;
9978
9979 *)
9980 lt_prog_compiler_pic='-fPIC'
9981 ;;
9982 esac
9983 else
9984 # PORTME Check for flag to pass linker flags through the system compiler.
9985 case $host_os in
9986 aix*)
9987 lt_prog_compiler_wl='-Wl,'
9988 if test "$host_cpu" = ia64; then
9989 # AIX 5 now supports IA64 processor
9990 lt_prog_compiler_static='-Bstatic'
9991 else
9992 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9993 fi
9994 ;;
9995
9996 mingw* | cygwin* | pw32* | os2* | cegcc*)
9997 # This hack is so that the source file can tell whether it is being
9998 # built for inclusion in a dll (and should export symbols for example).
9999 lt_prog_compiler_pic='-DDLL_EXPORT'
10000 ;;
10001
10002 hpux9* | hpux10* | hpux11*)
10003 lt_prog_compiler_wl='-Wl,'
10004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10005 # not for PA HP-UX.
10006 case $host_cpu in
10007 hppa*64*|ia64*)
10008 # +Z the default
10009 ;;
10010 *)
10011 lt_prog_compiler_pic='+Z'
10012 ;;
10013 esac
10014 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10015 lt_prog_compiler_static='${wl}-a ${wl}archive'
10016 ;;
10017
10018 irix5* | irix6* | nonstopux*)
10019 lt_prog_compiler_wl='-Wl,'
10020 # PIC (with -KPIC) is the default.
10021 lt_prog_compiler_static='-non_shared'
10022 ;;
10023
10024 linux* | k*bsd*-gnu)
10025 case $cc_basename in
10026 # old Intel for x86_64 which still supported -KPIC.
10027 ecc*)
10028 lt_prog_compiler_wl='-Wl,'
10029 lt_prog_compiler_pic='-KPIC'
10030 lt_prog_compiler_static='-static'
10031 ;;
10032 # icc used to be incompatible with GCC.
10033 # ICC 10 doesn't accept -KPIC any more.
10034 icc* | ifort*)
10035 lt_prog_compiler_wl='-Wl,'
10036 lt_prog_compiler_pic='-fPIC'
10037 lt_prog_compiler_static='-static'
10038 ;;
10039 # Lahey Fortran 8.1.
10040 lf95*)
10041 lt_prog_compiler_wl='-Wl,'
10042 lt_prog_compiler_pic='--shared'
10043 lt_prog_compiler_static='--static'
10044 ;;
10045 pgcc* | pgf77* | pgf90* | pgf95*)
10046 # Portland Group compilers (*not* the Pentium gcc compiler,
10047 # which looks to be a dead project)
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_pic='-fpic'
10050 lt_prog_compiler_static='-Bstatic'
10051 ;;
10052 ccc*)
10053 lt_prog_compiler_wl='-Wl,'
10054 # All Alpha code is PIC.
10055 lt_prog_compiler_static='-non_shared'
10056 ;;
10057 xl*)
10058 # IBM XL C 8.0/Fortran 10.1 on PPC
10059 lt_prog_compiler_wl='-Wl,'
10060 lt_prog_compiler_pic='-qpic'
10061 lt_prog_compiler_static='-qstaticlink'
10062 ;;
10063 *)
10064 case `$CC -V 2>&1 | sed 5q` in
10065 *Sun\ C*)
10066 # Sun C 5.9
10067 lt_prog_compiler_pic='-KPIC'
10068 lt_prog_compiler_static='-Bstatic'
10069 lt_prog_compiler_wl='-Wl,'
10070 ;;
10071 *Sun\ F*)
10072 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10073 lt_prog_compiler_pic='-KPIC'
10074 lt_prog_compiler_static='-Bstatic'
10075 lt_prog_compiler_wl=''
10076 ;;
10077 esac
10078 ;;
10079 esac
10080 ;;
10081
10082 newsos6)
10083 lt_prog_compiler_pic='-KPIC'
10084 lt_prog_compiler_static='-Bstatic'
10085 ;;
10086
10087 *nto* | *qnx*)
10088 # QNX uses GNU C++, but need to define -shared option too, otherwise
10089 # it will coredump.
10090 lt_prog_compiler_pic='-fPIC -shared'
10091 ;;
10092
10093 osf3* | osf4* | osf5*)
10094 lt_prog_compiler_wl='-Wl,'
10095 # All OSF/1 code is PIC.
10096 lt_prog_compiler_static='-non_shared'
10097 ;;
10098
10099 rdos*)
10100 lt_prog_compiler_static='-non_shared'
10101 ;;
10102
10103 solaris*)
10104 lt_prog_compiler_pic='-KPIC'
10105 lt_prog_compiler_static='-Bstatic'
10106 case $cc_basename in
10107 f77* | f90* | f95*)
10108 lt_prog_compiler_wl='-Qoption ld ';;
10109 *)
10110 lt_prog_compiler_wl='-Wl,';;
10111 esac
10112 ;;
10113
10114 sunos4*)
10115 lt_prog_compiler_wl='-Qoption ld '
10116 lt_prog_compiler_pic='-PIC'
10117 lt_prog_compiler_static='-Bstatic'
10118 ;;
10119
10120 sysv4 | sysv4.2uw2* | sysv4.3*)
10121 lt_prog_compiler_wl='-Wl,'
10122 lt_prog_compiler_pic='-KPIC'
10123 lt_prog_compiler_static='-Bstatic'
10124 ;;
10125
10126 sysv4*MP*)
10127 if test -d /usr/nec ;then
10128 lt_prog_compiler_pic='-Kconform_pic'
10129 lt_prog_compiler_static='-Bstatic'
10130 fi
10131 ;;
10132
10133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10134 lt_prog_compiler_wl='-Wl,'
10135 lt_prog_compiler_pic='-KPIC'
10136 lt_prog_compiler_static='-Bstatic'
10137 ;;
10138
10139 unicos*)
10140 lt_prog_compiler_wl='-Wl,'
10141 lt_prog_compiler_can_build_shared=no
10142 ;;
10143
10144 uts4*)
10145 lt_prog_compiler_pic='-pic'
10146 lt_prog_compiler_static='-Bstatic'
10147 ;;
10148
10149 *)
10150 lt_prog_compiler_can_build_shared=no
10151 ;;
10152 esac
10153 fi
10154
10155 case $host_os in
10156 # For platforms which do not support PIC, -DPIC is meaningless:
10157 *djgpp*)
10158 lt_prog_compiler_pic=
10159 ;;
10160 *)
10161 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10162 ;;
10163 esac
10164 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10165 $as_echo "$lt_prog_compiler_pic" >&6; }
10166
10167
10168
10169
10170
10171
10172 #
10173 # Check to make sure the PIC flag actually works.
10174 #
10175 if test -n "$lt_prog_compiler_pic"; then
10176 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10177 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10178 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10179 $as_echo_n "(cached) " >&6
10180 else
10181 lt_cv_prog_compiler_pic_works=no
10182 ac_outfile=conftest.$ac_objext
10183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10184 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10185 # Insert the option either (1) after the last *FLAGS variable, or
10186 # (2) before a word containing "conftest.", or (3) at the end.
10187 # Note that $ac_compile itself does not contain backslashes and begins
10188 # with a dollar sign (not a hyphen), so the echo should work correctly.
10189 # The option is referenced via a variable to avoid confusing sed.
10190 lt_compile=`echo "$ac_compile" | $SED \
10191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10193 -e 's:$: $lt_compiler_flag:'`
10194 (eval echo "\"\$as_me:10194: $lt_compile\"" >&5)
10195 (eval "$lt_compile" 2>conftest.err)
10196 ac_status=$?
10197 cat conftest.err >&5
10198 echo "$as_me:10198: \$? = $ac_status" >&5
10199 if (exit $ac_status) && test -s "$ac_outfile"; then
10200 # The compiler can only warn and ignore the option if not recognized
10201 # So say no if there are warnings other than the usual output.
10202 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10205 lt_cv_prog_compiler_pic_works=yes
10206 fi
10207 fi
10208 $RM conftest*
10209
10210 fi
10211 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10212 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10213
10214 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10215 case $lt_prog_compiler_pic in
10216 "" | " "*) ;;
10217 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10218 esac
10219 else
10220 lt_prog_compiler_pic=
10221 lt_prog_compiler_can_build_shared=no
10222 fi
10223
10224 fi
10225
10226
10227
10228
10229
10230
10231 #
10232 # Check to make sure the static flag actually works.
10233 #
10234 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10235 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10236 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10237 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10238 $as_echo_n "(cached) " >&6
10239 else
10240 lt_cv_prog_compiler_static_works=no
10241 save_LDFLAGS="$LDFLAGS"
10242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10245 # The linker can only warn and ignore the option if not recognized
10246 # So say no if there are warnings
10247 if test -s conftest.err; then
10248 # Append any errors to the config.log.
10249 cat conftest.err 1>&5
10250 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10252 if diff conftest.exp conftest.er2 >/dev/null; then
10253 lt_cv_prog_compiler_static_works=yes
10254 fi
10255 else
10256 lt_cv_prog_compiler_static_works=yes
10257 fi
10258 fi
10259 $RM -r conftest*
10260 LDFLAGS="$save_LDFLAGS"
10261
10262 fi
10263 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10264 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10265
10266 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10267 :
10268 else
10269 lt_prog_compiler_static=
10270 fi
10271
10272
10273
10274
10275
10276
10277
10278 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10279 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10280 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10281 $as_echo_n "(cached) " >&6
10282 else
10283 lt_cv_prog_compiler_c_o=no
10284 $RM -r conftest 2>/dev/null
10285 mkdir conftest
10286 cd conftest
10287 mkdir out
10288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289
10290 lt_compiler_flag="-o out/conftest2.$ac_objext"
10291 # Insert the option either (1) after the last *FLAGS variable, or
10292 # (2) before a word containing "conftest.", or (3) at the end.
10293 # Note that $ac_compile itself does not contain backslashes and begins
10294 # with a dollar sign (not a hyphen), so the echo should work correctly.
10295 lt_compile=`echo "$ac_compile" | $SED \
10296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10298 -e 's:$: $lt_compiler_flag:'`
10299 (eval echo "\"\$as_me:10299: $lt_compile\"" >&5)
10300 (eval "$lt_compile" 2>out/conftest.err)
10301 ac_status=$?
10302 cat out/conftest.err >&5
10303 echo "$as_me:10303: \$? = $ac_status" >&5
10304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10305 then
10306 # The compiler can only warn and ignore the option if not recognized
10307 # So say no if there are warnings
10308 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10311 lt_cv_prog_compiler_c_o=yes
10312 fi
10313 fi
10314 chmod u+w . 2>&5
10315 $RM conftest*
10316 # SGI C++ compiler will create directory out/ii_files/ for
10317 # template instantiation
10318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10319 $RM out/* && rmdir out
10320 cd ..
10321 $RM -r conftest
10322 $RM conftest*
10323
10324 fi
10325 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10326 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10327
10328
10329
10330
10331
10332
10333 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10335 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10336 $as_echo_n "(cached) " >&6
10337 else
10338 lt_cv_prog_compiler_c_o=no
10339 $RM -r conftest 2>/dev/null
10340 mkdir conftest
10341 cd conftest
10342 mkdir out
10343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10344
10345 lt_compiler_flag="-o out/conftest2.$ac_objext"
10346 # Insert the option either (1) after the last *FLAGS variable, or
10347 # (2) before a word containing "conftest.", or (3) at the end.
10348 # Note that $ac_compile itself does not contain backslashes and begins
10349 # with a dollar sign (not a hyphen), so the echo should work correctly.
10350 lt_compile=`echo "$ac_compile" | $SED \
10351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10353 -e 's:$: $lt_compiler_flag:'`
10354 (eval echo "\"\$as_me:10354: $lt_compile\"" >&5)
10355 (eval "$lt_compile" 2>out/conftest.err)
10356 ac_status=$?
10357 cat out/conftest.err >&5
10358 echo "$as_me:10358: \$? = $ac_status" >&5
10359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10360 then
10361 # The compiler can only warn and ignore the option if not recognized
10362 # So say no if there are warnings
10363 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10366 lt_cv_prog_compiler_c_o=yes
10367 fi
10368 fi
10369 chmod u+w . 2>&5
10370 $RM conftest*
10371 # SGI C++ compiler will create directory out/ii_files/ for
10372 # template instantiation
10373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10374 $RM out/* && rmdir out
10375 cd ..
10376 $RM -r conftest
10377 $RM conftest*
10378
10379 fi
10380 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10381 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10382
10383
10384
10385
10386 hard_links="nottested"
10387 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10388 # do not overwrite the value of need_locks provided by the user
10389 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10390 $as_echo_n "checking if we can lock with hard links... " >&6; }
10391 hard_links=yes
10392 $RM conftest*
10393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10394 touch conftest.a
10395 ln conftest.a conftest.b 2>&5 || hard_links=no
10396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10397 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10398 $as_echo "$hard_links" >&6; }
10399 if test "$hard_links" = no; then
10400 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10401 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10402 need_locks=warn
10403 fi
10404 else
10405 need_locks=no
10406 fi
10407
10408
10409
10410
10411
10412
10413 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10414 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10415
10416 runpath_var=
10417 allow_undefined_flag=
10418 always_export_symbols=no
10419 archive_cmds=
10420 archive_expsym_cmds=
10421 compiler_needs_object=no
10422 enable_shared_with_static_runtimes=no
10423 export_dynamic_flag_spec=
10424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10425 hardcode_automatic=no
10426 hardcode_direct=no
10427 hardcode_direct_absolute=no
10428 hardcode_libdir_flag_spec=
10429 hardcode_libdir_flag_spec_ld=
10430 hardcode_libdir_separator=
10431 hardcode_minus_L=no
10432 hardcode_shlibpath_var=unsupported
10433 inherit_rpath=no
10434 link_all_deplibs=unknown
10435 module_cmds=
10436 module_expsym_cmds=
10437 old_archive_from_new_cmds=
10438 old_archive_from_expsyms_cmds=
10439 thread_safe_flag_spec=
10440 whole_archive_flag_spec=
10441 # include_expsyms should be a list of space-separated symbols to be *always*
10442 # included in the symbol list
10443 include_expsyms=
10444 # exclude_expsyms can be an extended regexp of symbols to exclude
10445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10447 # as well as any symbol that contains `d'.
10448 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10450 # platforms (ab)use it in PIC code, but their linkers get confused if
10451 # the symbol is explicitly referenced. Since portable code cannot
10452 # rely on this symbol name, it's probably fine to never include it in
10453 # preloaded symbol tables.
10454 # Exclude shared library initialization/finalization symbols.
10455 extract_expsyms_cmds=
10456
10457 case $host_os in
10458 cygwin* | mingw* | pw32* | cegcc*)
10459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10460 # When not using gcc, we currently assume that we are using
10461 # Microsoft Visual C++.
10462 if test "$GCC" != yes; then
10463 with_gnu_ld=no
10464 fi
10465 ;;
10466 interix*)
10467 # we just hope/assume this is gcc and not c89 (= MSVC++)
10468 with_gnu_ld=yes
10469 ;;
10470 openbsd*)
10471 with_gnu_ld=no
10472 ;;
10473 esac
10474
10475 ld_shlibs=yes
10476 if test "$with_gnu_ld" = yes; then
10477 # If archive_cmds runs LD, not CC, wlarc should be empty
10478 wlarc='${wl}'
10479
10480 # Set some defaults for GNU ld with shared library support. These
10481 # are reset later if shared libraries are not supported. Putting them
10482 # here allows them to be overridden if necessary.
10483 runpath_var=LD_RUN_PATH
10484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10485 export_dynamic_flag_spec='${wl}--export-dynamic'
10486 # ancient GNU ld didn't support --whole-archive et. al.
10487 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10488 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10489 else
10490 whole_archive_flag_spec=
10491 fi
10492 supports_anon_versioning=no
10493 case `$LD -v 2>&1` in
10494 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10495 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10496 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10497 *\ 2.11.*) ;; # other 2.11 versions
10498 *) supports_anon_versioning=yes ;;
10499 esac
10500
10501 # See if GNU ld supports shared libraries.
10502 case $host_os in
10503 aix[3-9]*)
10504 # On AIX/PPC, the GNU linker is very broken
10505 if test "$host_cpu" != ia64; then
10506 ld_shlibs=no
10507 cat <<_LT_EOF 1>&2
10508
10509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10510 *** to be unable to reliably create shared libraries on AIX.
10511 *** Therefore, libtool is disabling shared libraries support. If you
10512 *** really care for shared libraries, you may want to modify your PATH
10513 *** so that a non-GNU linker is found, and then restart.
10514
10515 _LT_EOF
10516 fi
10517 ;;
10518
10519 amigaos*)
10520 case $host_cpu in
10521 powerpc)
10522 # see comment about AmigaOS4 .so support
10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10524 archive_expsym_cmds=''
10525 ;;
10526 m68k)
10527 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)'
10528 hardcode_libdir_flag_spec='-L$libdir'
10529 hardcode_minus_L=yes
10530 ;;
10531 esac
10532 ;;
10533
10534 beos*)
10535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10536 allow_undefined_flag=unsupported
10537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10538 # support --undefined. This deserves some investigation. FIXME
10539 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10540 else
10541 ld_shlibs=no
10542 fi
10543 ;;
10544
10545 cygwin* | mingw* | pw32* | cegcc*)
10546 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10547 # as there is no search path for DLLs.
10548 hardcode_libdir_flag_spec='-L$libdir'
10549 allow_undefined_flag=unsupported
10550 always_export_symbols=no
10551 enable_shared_with_static_runtimes=yes
10552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10553
10554 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10556 # If the export-symbols file already is a .def file (1st line
10557 # is EXPORTS), use it as is; otherwise, prepend...
10558 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10559 cp $export_symbols $output_objdir/$soname.def;
10560 else
10561 echo EXPORTS > $output_objdir/$soname.def;
10562 cat $export_symbols >> $output_objdir/$soname.def;
10563 fi~
10564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10565 else
10566 ld_shlibs=no
10567 fi
10568 ;;
10569
10570 interix[3-9]*)
10571 hardcode_direct=no
10572 hardcode_shlibpath_var=no
10573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10574 export_dynamic_flag_spec='${wl}-E'
10575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10576 # Instead, shared libraries are loaded at an image base (0x10000000 by
10577 # default) and relocated if they conflict, which is a slow very memory
10578 # consuming and fragmenting process. To avoid this, we pick a random,
10579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10582 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'
10583 ;;
10584
10585 gnu* | linux* | tpf* | k*bsd*-gnu)
10586 tmp_diet=no
10587 if test "$host_os" = linux-dietlibc; then
10588 case $cc_basename in
10589 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10590 esac
10591 fi
10592 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10593 && test "$tmp_diet" = no
10594 then
10595 tmp_addflag=
10596 tmp_sharedflag='-shared'
10597 case $cc_basename,$host_cpu in
10598 pgcc*) # Portland Group C compiler
10599 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'
10600 tmp_addflag=' $pic_flag'
10601 ;;
10602 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10603 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'
10604 tmp_addflag=' $pic_flag -Mnomain' ;;
10605 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10606 tmp_addflag=' -i_dynamic' ;;
10607 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10608 tmp_addflag=' -i_dynamic -nofor_main' ;;
10609 ifc* | ifort*) # Intel Fortran compiler
10610 tmp_addflag=' -nofor_main' ;;
10611 lf95*) # Lahey Fortran 8.1
10612 whole_archive_flag_spec=
10613 tmp_sharedflag='--shared' ;;
10614 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10615 tmp_sharedflag='-qmkshrobj'
10616 tmp_addflag= ;;
10617 esac
10618 case `$CC -V 2>&1 | sed 5q` in
10619 *Sun\ C*) # Sun C 5.9
10620 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'
10621 compiler_needs_object=yes
10622 tmp_sharedflag='-G' ;;
10623 *Sun\ F*) # Sun Fortran 8.3
10624 tmp_sharedflag='-G' ;;
10625 esac
10626 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627
10628 if test "x$supports_anon_versioning" = xyes; then
10629 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10631 echo "local: *; };" >> $output_objdir/$libname.ver~
10632 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10633 fi
10634
10635 case $cc_basename in
10636 xlf*)
10637 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10638 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10639 hardcode_libdir_flag_spec=
10640 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10641 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10642 if test "x$supports_anon_versioning" = xyes; then
10643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10645 echo "local: *; };" >> $output_objdir/$libname.ver~
10646 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10647 fi
10648 ;;
10649 esac
10650 else
10651 ld_shlibs=no
10652 fi
10653 ;;
10654
10655 netbsd*)
10656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10658 wlarc=
10659 else
10660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10662 fi
10663 ;;
10664
10665 solaris*)
10666 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10667 ld_shlibs=no
10668 cat <<_LT_EOF 1>&2
10669
10670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10671 *** create shared libraries on Solaris systems. Therefore, libtool
10672 *** is disabling shared libraries support. We urge you to upgrade GNU
10673 *** binutils to release 2.9.1 or newer. Another option is to modify
10674 *** your PATH or compiler configuration so that the native linker is
10675 *** used, and then restart.
10676
10677 _LT_EOF
10678 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10681 else
10682 ld_shlibs=no
10683 fi
10684 ;;
10685
10686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10687 case `$LD -v 2>&1` in
10688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10689 ld_shlibs=no
10690 cat <<_LT_EOF 1>&2
10691
10692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10693 *** reliably create shared libraries on SCO systems. Therefore, libtool
10694 *** is disabling shared libraries support. We urge you to upgrade GNU
10695 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10696 *** your PATH or compiler configuration so that the native linker is
10697 *** used, and then restart.
10698
10699 _LT_EOF
10700 ;;
10701 *)
10702 # For security reasons, it is highly recommended that you always
10703 # use absolute paths for naming shared libraries, and exclude the
10704 # DT_RUNPATH tag from executables and libraries. But doing so
10705 # requires that you compile everything twice, which is a pain.
10706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10710 else
10711 ld_shlibs=no
10712 fi
10713 ;;
10714 esac
10715 ;;
10716
10717 sunos4*)
10718 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10719 wlarc=
10720 hardcode_direct=yes
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 *)
10725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10728 else
10729 ld_shlibs=no
10730 fi
10731 ;;
10732 esac
10733
10734 if test "$ld_shlibs" = no; then
10735 runpath_var=
10736 hardcode_libdir_flag_spec=
10737 export_dynamic_flag_spec=
10738 whole_archive_flag_spec=
10739 fi
10740 else
10741 # PORTME fill in a description of your system's linker (not GNU ld)
10742 case $host_os in
10743 aix3*)
10744 allow_undefined_flag=unsupported
10745 always_export_symbols=yes
10746 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'
10747 # Note: this linker hardcodes the directories in LIBPATH if there
10748 # are no directories specified by -L.
10749 hardcode_minus_L=yes
10750 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10751 # Neither direct hardcoding nor static linking is supported with a
10752 # broken collect2.
10753 hardcode_direct=unsupported
10754 fi
10755 ;;
10756
10757 aix[4-9]*)
10758 if test "$host_cpu" = ia64; then
10759 # On IA64, the linker does run time linking by default, so we don't
10760 # have to do anything special.
10761 aix_use_runtimelinking=no
10762 exp_sym_flag='-Bexport'
10763 no_entry_flag=""
10764 else
10765 # If we're using GNU nm, then we don't want the "-C" option.
10766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10767 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10768 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'
10769 else
10770 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'
10771 fi
10772 aix_use_runtimelinking=no
10773
10774 # Test if we are trying to use run time linking or normal
10775 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10776 # need to do runtime linking.
10777 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10778 for ld_flag in $LDFLAGS; do
10779 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10780 aix_use_runtimelinking=yes
10781 break
10782 fi
10783 done
10784 ;;
10785 esac
10786
10787 exp_sym_flag='-bexport'
10788 no_entry_flag='-bnoentry'
10789 fi
10790
10791 # When large executables or shared objects are built, AIX ld can
10792 # have problems creating the table of contents. If linking a library
10793 # or program results in "error TOC overflow" add -mminimal-toc to
10794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10796
10797 archive_cmds=''
10798 hardcode_direct=yes
10799 hardcode_direct_absolute=yes
10800 hardcode_libdir_separator=':'
10801 link_all_deplibs=yes
10802 file_list_spec='${wl}-f,'
10803
10804 if test "$GCC" = yes; then
10805 case $host_os in aix4.[012]|aix4.[012].*)
10806 # We only want to do this on AIX 4.2 and lower, the check
10807 # below for broken collect2 doesn't work under 4.3+
10808 collect2name=`${CC} -print-prog-name=collect2`
10809 if test -f "$collect2name" &&
10810 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10811 then
10812 # We have reworked collect2
10813 :
10814 else
10815 # We have old collect2
10816 hardcode_direct=unsupported
10817 # It fails to find uninstalled libraries when the uninstalled
10818 # path is not listed in the libpath. Setting hardcode_minus_L
10819 # to unsupported forces relinking
10820 hardcode_minus_L=yes
10821 hardcode_libdir_flag_spec='-L$libdir'
10822 hardcode_libdir_separator=
10823 fi
10824 ;;
10825 esac
10826 shared_flag='-shared'
10827 if test "$aix_use_runtimelinking" = yes; then
10828 shared_flag="$shared_flag "'${wl}-G'
10829 fi
10830 else
10831 # not using gcc
10832 if test "$host_cpu" = ia64; then
10833 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10834 # chokes on -Wl,-G. The following line is correct:
10835 shared_flag='-G'
10836 else
10837 if test "$aix_use_runtimelinking" = yes; then
10838 shared_flag='${wl}-G'
10839 else
10840 shared_flag='${wl}-bM:SRE'
10841 fi
10842 fi
10843 fi
10844
10845 export_dynamic_flag_spec='${wl}-bexpall'
10846 # It seems that -bexpall does not export symbols beginning with
10847 # underscore (_), so it is better to generate a list of symbols to export.
10848 always_export_symbols=yes
10849 if test "$aix_use_runtimelinking" = yes; then
10850 # Warning - without using the other runtime loading flags (-brtl),
10851 # -berok will link without error, but may produce a broken library.
10852 allow_undefined_flag='-berok'
10853 # Determine the default libpath from the value encoded in an
10854 # empty executable.
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861
10862 int
10863 main ()
10864 {
10865
10866 ;
10867 return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext conftest$ac_exeext
10871 if { (ac_try="$ac_link"
10872 case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875 esac
10876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10877 $as_echo "$ac_try_echo") >&5
10878 (eval "$ac_link") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } && {
10885 test -z "$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10887 } && test -s conftest$ac_exeext && {
10888 test "$cross_compiling" = yes ||
10889 $as_test_x conftest$ac_exeext
10890 }; then
10891
10892 lt_aix_libpath_sed='
10893 /Import File Strings/,/^$/ {
10894 /^0/ {
10895 s/^0 *\(.*\)$/\1/
10896 p
10897 }
10898 }'
10899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10900 # Check for a 64-bit object if we didn't find anything.
10901 if test -z "$aix_libpath"; then
10902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10903 fi
10904 else
10905 $as_echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908
10909 fi
10910
10911 rm -rf conftest.dSYM
10912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10913 conftest$ac_exeext conftest.$ac_ext
10914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10915
10916 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10917 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"
10918 else
10919 if test "$host_cpu" = ia64; then
10920 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10921 allow_undefined_flag="-z nodefs"
10922 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"
10923 else
10924 # Determine the default libpath from the value encoded in an
10925 # empty executable.
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h. */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932
10933 int
10934 main ()
10935 {
10936
10937 ;
10938 return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (ac_try="$ac_link"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10948 $as_echo "$ac_try_echo") >&5
10949 (eval "$ac_link") 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest$ac_exeext && {
10959 test "$cross_compiling" = yes ||
10960 $as_test_x conftest$ac_exeext
10961 }; then
10962
10963 lt_aix_libpath_sed='
10964 /Import File Strings/,/^$/ {
10965 /^0/ {
10966 s/^0 *\(.*\)$/\1/
10967 p
10968 }
10969 }'
10970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10971 # Check for a 64-bit object if we didn't find anything.
10972 if test -z "$aix_libpath"; then
10973 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10974 fi
10975 else
10976 $as_echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979
10980 fi
10981
10982 rm -rf conftest.dSYM
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10986
10987 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10988 # Warning - without using the other run time loading flags,
10989 # -berok will link without error, but may produce a broken library.
10990 no_undefined_flag=' ${wl}-bernotok'
10991 allow_undefined_flag=' ${wl}-berok'
10992 # Exported symbols can be pulled into shared objects from archives
10993 whole_archive_flag_spec='$convenience'
10994 archive_cmds_need_lc=yes
10995 # This is similar to how AIX traditionally builds its shared libraries.
10996 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'
10997 fi
10998 fi
10999 ;;
11000
11001 amigaos*)
11002 case $host_cpu in
11003 powerpc)
11004 # see comment about AmigaOS4 .so support
11005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006 archive_expsym_cmds=''
11007 ;;
11008 m68k)
11009 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)'
11010 hardcode_libdir_flag_spec='-L$libdir'
11011 hardcode_minus_L=yes
11012 ;;
11013 esac
11014 ;;
11015
11016 bsdi[45]*)
11017 export_dynamic_flag_spec=-rdynamic
11018 ;;
11019
11020 cygwin* | mingw* | pw32* | cegcc*)
11021 # When not using gcc, we currently assume that we are using
11022 # Microsoft Visual C++.
11023 # hardcode_libdir_flag_spec is actually meaningless, as there is
11024 # no search path for DLLs.
11025 hardcode_libdir_flag_spec=' '
11026 allow_undefined_flag=unsupported
11027 # Tell ltmain to make .lib files, not .a files.
11028 libext=lib
11029 # Tell ltmain to make .dll files, not .so files.
11030 shrext_cmds=".dll"
11031 # FIXME: Setting linknames here is a bad hack.
11032 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11033 # The linker will automatically build a .lib file if we build a DLL.
11034 old_archive_from_new_cmds='true'
11035 # FIXME: Should let the user specify the lib program.
11036 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11037 fix_srcfile_path='`cygpath -w "$srcfile"`'
11038 enable_shared_with_static_runtimes=yes
11039 ;;
11040
11041 darwin* | rhapsody*)
11042
11043
11044 archive_cmds_need_lc=no
11045 hardcode_direct=no
11046 hardcode_automatic=yes
11047 hardcode_shlibpath_var=unsupported
11048 whole_archive_flag_spec=''
11049 link_all_deplibs=yes
11050 allow_undefined_flag="$_lt_dar_allow_undefined"
11051 case $cc_basename in
11052 ifort*) _lt_dar_can_shared=yes ;;
11053 *) _lt_dar_can_shared=$GCC ;;
11054 esac
11055 if test "$_lt_dar_can_shared" = "yes"; then
11056 output_verbose_link_cmd=echo
11057 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11058 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11059 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}"
11060 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}"
11061
11062 else
11063 ld_shlibs=no
11064 fi
11065
11066 ;;
11067
11068 dgux*)
11069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11070 hardcode_libdir_flag_spec='-L$libdir'
11071 hardcode_shlibpath_var=no
11072 ;;
11073
11074 freebsd1*)
11075 ld_shlibs=no
11076 ;;
11077
11078 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11079 # support. Future versions do this automatically, but an explicit c++rt0.o
11080 # does not break anything, and helps significantly (at the cost of a little
11081 # extra space).
11082 freebsd2.2*)
11083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11084 hardcode_libdir_flag_spec='-R$libdir'
11085 hardcode_direct=yes
11086 hardcode_shlibpath_var=no
11087 ;;
11088
11089 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11090 freebsd2*)
11091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11092 hardcode_direct=yes
11093 hardcode_minus_L=yes
11094 hardcode_shlibpath_var=no
11095 ;;
11096
11097 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11098 freebsd* | dragonfly*)
11099 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11100 hardcode_libdir_flag_spec='-R$libdir'
11101 hardcode_direct=yes
11102 hardcode_shlibpath_var=no
11103 ;;
11104
11105 hpux9*)
11106 if test "$GCC" = yes; then
11107 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'
11108 else
11109 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'
11110 fi
11111 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11112 hardcode_libdir_separator=:
11113 hardcode_direct=yes
11114
11115 # hardcode_minus_L: Not really in the search PATH,
11116 # but as the default location of the library.
11117 hardcode_minus_L=yes
11118 export_dynamic_flag_spec='${wl}-E'
11119 ;;
11120
11121 hpux10*)
11122 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11124 else
11125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11126 fi
11127 if test "$with_gnu_ld" = no; then
11128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11129 hardcode_libdir_flag_spec_ld='+b $libdir'
11130 hardcode_libdir_separator=:
11131 hardcode_direct=yes
11132 hardcode_direct_absolute=yes
11133 export_dynamic_flag_spec='${wl}-E'
11134 # hardcode_minus_L: Not really in the search PATH,
11135 # but as the default location of the library.
11136 hardcode_minus_L=yes
11137 fi
11138 ;;
11139
11140 hpux11*)
11141 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11142 case $host_cpu in
11143 hppa*64*)
11144 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11145 ;;
11146 ia64*)
11147 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11148 ;;
11149 *)
11150 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11151 ;;
11152 esac
11153 else
11154 case $host_cpu in
11155 hppa*64*)
11156 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11157 ;;
11158 ia64*)
11159 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11160 ;;
11161 *)
11162 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11163 ;;
11164 esac
11165 fi
11166 if test "$with_gnu_ld" = no; then
11167 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11168 hardcode_libdir_separator=:
11169
11170 case $host_cpu in
11171 hppa*64*|ia64*)
11172 hardcode_direct=no
11173 hardcode_shlibpath_var=no
11174 ;;
11175 *)
11176 hardcode_direct=yes
11177 hardcode_direct_absolute=yes
11178 export_dynamic_flag_spec='${wl}-E'
11179
11180 # hardcode_minus_L: Not really in the search PATH,
11181 # but as the default location of the library.
11182 hardcode_minus_L=yes
11183 ;;
11184 esac
11185 fi
11186 ;;
11187
11188 irix5* | irix6* | nonstopux*)
11189 if test "$GCC" = yes; then
11190 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'
11191 # Try to use the -exported_symbol ld option, if it does not
11192 # work, assume that -exports_file does not work either and
11193 # implicitly export all symbols.
11194 save_LDFLAGS="$LDFLAGS"
11195 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11196 cat >conftest.$ac_ext <<_ACEOF
11197 int foo(void) {}
11198 _ACEOF
11199 rm -f conftest.$ac_objext conftest$ac_exeext
11200 if { (ac_try="$ac_link"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11206 $as_echo "$ac_try_echo") >&5
11207 (eval "$ac_link") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest$ac_exeext && {
11217 test "$cross_compiling" = yes ||
11218 $as_test_x conftest$ac_exeext
11219 }; then
11220 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'
11221
11222 else
11223 $as_echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226
11227 fi
11228
11229 rm -rf conftest.dSYM
11230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LDFLAGS="$save_LDFLAGS"
11233 else
11234 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'
11235 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'
11236 fi
11237 archive_cmds_need_lc='no'
11238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11239 hardcode_libdir_separator=:
11240 inherit_rpath=yes
11241 link_all_deplibs=yes
11242 ;;
11243
11244 netbsd*)
11245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11247 else
11248 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11249 fi
11250 hardcode_libdir_flag_spec='-R$libdir'
11251 hardcode_direct=yes
11252 hardcode_shlibpath_var=no
11253 ;;
11254
11255 newsos6)
11256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11257 hardcode_direct=yes
11258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11259 hardcode_libdir_separator=:
11260 hardcode_shlibpath_var=no
11261 ;;
11262
11263 *nto* | *qnx*)
11264 ;;
11265
11266 openbsd*)
11267 if test -f /usr/libexec/ld.so; then
11268 hardcode_direct=yes
11269 hardcode_shlibpath_var=no
11270 hardcode_direct_absolute=yes
11271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11273 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11275 export_dynamic_flag_spec='${wl}-E'
11276 else
11277 case $host_os in
11278 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11280 hardcode_libdir_flag_spec='-R$libdir'
11281 ;;
11282 *)
11283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11284 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11285 ;;
11286 esac
11287 fi
11288 else
11289 ld_shlibs=no
11290 fi
11291 ;;
11292
11293 os2*)
11294 hardcode_libdir_flag_spec='-L$libdir'
11295 hardcode_minus_L=yes
11296 allow_undefined_flag=unsupported
11297 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'
11298 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11299 ;;
11300
11301 osf3*)
11302 if test "$GCC" = yes; then
11303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11304 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'
11305 else
11306 allow_undefined_flag=' -expect_unresolved \*'
11307 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'
11308 fi
11309 archive_cmds_need_lc='no'
11310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11311 hardcode_libdir_separator=:
11312 ;;
11313
11314 osf4* | osf5*) # as osf3* with the addition of -msym flag
11315 if test "$GCC" = yes; then
11316 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11317 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'
11318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11319 else
11320 allow_undefined_flag=' -expect_unresolved \*'
11321 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'
11322 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~
11323 $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'
11324
11325 # Both c and cxx compiler support -rpath directly
11326 hardcode_libdir_flag_spec='-rpath $libdir'
11327 fi
11328 archive_cmds_need_lc='no'
11329 hardcode_libdir_separator=:
11330 ;;
11331
11332 solaris*)
11333 no_undefined_flag=' -z defs'
11334 if test "$GCC" = yes; then
11335 wlarc='${wl}'
11336 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11338 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11339 else
11340 case `$CC -V 2>&1` in
11341 *"Compilers 5.0"*)
11342 wlarc=''
11343 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11345 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11346 ;;
11347 *)
11348 wlarc='${wl}'
11349 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11351 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11352 ;;
11353 esac
11354 fi
11355 hardcode_libdir_flag_spec='-R$libdir'
11356 hardcode_shlibpath_var=no
11357 case $host_os in
11358 solaris2.[0-5] | solaris2.[0-5].*) ;;
11359 *)
11360 # The compiler driver will combine and reorder linker options,
11361 # but understands `-z linker_flag'. GCC discards it without `$wl',
11362 # but is careful enough not to reorder.
11363 # Supported since Solaris 2.6 (maybe 2.5.1?)
11364 if test "$GCC" = yes; then
11365 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11366 else
11367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11368 fi
11369 ;;
11370 esac
11371 link_all_deplibs=yes
11372 ;;
11373
11374 sunos4*)
11375 if test "x$host_vendor" = xsequent; then
11376 # Use $CC to link under sequent, because it throws in some extra .o
11377 # files that make .init and .fini sections work.
11378 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11379 else
11380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11381 fi
11382 hardcode_libdir_flag_spec='-L$libdir'
11383 hardcode_direct=yes
11384 hardcode_minus_L=yes
11385 hardcode_shlibpath_var=no
11386 ;;
11387
11388 sysv4)
11389 case $host_vendor in
11390 sni)
11391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11392 hardcode_direct=yes # is this really true???
11393 ;;
11394 siemens)
11395 ## LD is ld it makes a PLAMLIB
11396 ## CC just makes a GrossModule.
11397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11398 reload_cmds='$CC -r -o $output$reload_objs'
11399 hardcode_direct=no
11400 ;;
11401 motorola)
11402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11404 ;;
11405 esac
11406 runpath_var='LD_RUN_PATH'
11407 hardcode_shlibpath_var=no
11408 ;;
11409
11410 sysv4.3*)
11411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412 hardcode_shlibpath_var=no
11413 export_dynamic_flag_spec='-Bexport'
11414 ;;
11415
11416 sysv4*MP*)
11417 if test -d /usr/nec; then
11418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419 hardcode_shlibpath_var=no
11420 runpath_var=LD_RUN_PATH
11421 hardcode_runpath_var=yes
11422 ld_shlibs=yes
11423 fi
11424 ;;
11425
11426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11427 no_undefined_flag='${wl}-z,text'
11428 archive_cmds_need_lc=no
11429 hardcode_shlibpath_var=no
11430 runpath_var='LD_RUN_PATH'
11431
11432 if test "$GCC" = yes; then
11433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11435 else
11436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11438 fi
11439 ;;
11440
11441 sysv5* | sco3.2v5* | sco5v6*)
11442 # Note: We can NOT use -z defs as we might desire, because we do not
11443 # link with -lc, and that would cause any symbols used from libc to
11444 # always be unresolved, which means just about no library would
11445 # ever link correctly. If we're not using GNU ld we use -z text
11446 # though, which does catch some bad symbols but isn't as heavy-handed
11447 # as -z defs.
11448 no_undefined_flag='${wl}-z,text'
11449 allow_undefined_flag='${wl}-z,nodefs'
11450 archive_cmds_need_lc=no
11451 hardcode_shlibpath_var=no
11452 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11453 hardcode_libdir_separator=':'
11454 link_all_deplibs=yes
11455 export_dynamic_flag_spec='${wl}-Bexport'
11456 runpath_var='LD_RUN_PATH'
11457
11458 if test "$GCC" = yes; then
11459 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11460 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11461 else
11462 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11463 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11464 fi
11465 ;;
11466
11467 uts4*)
11468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11469 hardcode_libdir_flag_spec='-L$libdir'
11470 hardcode_shlibpath_var=no
11471 ;;
11472
11473 *)
11474 ld_shlibs=no
11475 ;;
11476 esac
11477
11478 if test x$host_vendor = xsni; then
11479 case $host in
11480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11481 export_dynamic_flag_spec='${wl}-Blargedynsym'
11482 ;;
11483 esac
11484 fi
11485 fi
11486
11487 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11488 $as_echo "$ld_shlibs" >&6; }
11489 test "$ld_shlibs" = no && can_build_shared=no
11490
11491 with_gnu_ld=$with_gnu_ld
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507 #
11508 # Do we need to explicitly link libc?
11509 #
11510 case "x$archive_cmds_need_lc" in
11511 x|xyes)
11512 # Assume -lc should be added
11513 archive_cmds_need_lc=yes
11514
11515 if test "$enable_shared" = yes && test "$GCC" = yes; then
11516 case $archive_cmds in
11517 *'~'*)
11518 # FIXME: we may have to deal with multi-command sequences.
11519 ;;
11520 '$CC '*)
11521 # Test whether the compiler implicitly links with -lc since on some
11522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11523 # to ld, don't add -lc before -lgcc.
11524 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11526 $RM conftest*
11527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11528
11529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>&5
11531 ac_status=$?
11532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } 2>conftest.err; then
11534 soname=conftest
11535 lib=conftest
11536 libobjs=conftest.$ac_objext
11537 deplibs=
11538 wl=$lt_prog_compiler_wl
11539 pic_flag=$lt_prog_compiler_pic
11540 compiler_flags=-v
11541 linker_flags=-v
11542 verstring=
11543 output_objdir=.
11544 libname=conftest
11545 lt_save_allow_undefined_flag=$allow_undefined_flag
11546 allow_undefined_flag=
11547 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11548 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11549 ac_status=$?
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }
11552 then
11553 archive_cmds_need_lc=no
11554 else
11555 archive_cmds_need_lc=yes
11556 fi
11557 allow_undefined_flag=$lt_save_allow_undefined_flag
11558 else
11559 cat conftest.err 1>&5
11560 fi
11561 $RM conftest*
11562 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11563 $as_echo "$archive_cmds_need_lc" >&6; }
11564 ;;
11565 esac
11566 fi
11567 ;;
11568 esac
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11727 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11728
11729 if test "$GCC" = yes; then
11730 case $host_os in
11731 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11732 *) lt_awk_arg="/^libraries:/" ;;
11733 esac
11734 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11735 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11736 # if the path contains ";" then we assume it to be the separator
11737 # otherwise default to the standard path separator (i.e. ":") - it is
11738 # assumed that no part of a normal pathname contains ";" but that should
11739 # okay in the real world where ";" in dirpaths is itself problematic.
11740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11741 else
11742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11743 fi
11744 # Ok, now we have the path, separated by spaces, we can step through it
11745 # and add multilib dir if necessary.
11746 lt_tmp_lt_search_path_spec=
11747 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11748 for lt_sys_path in $lt_search_path_spec; do
11749 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11750 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11751 else
11752 test -d "$lt_sys_path" && \
11753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11754 fi
11755 done
11756 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11757 BEGIN {RS=" "; FS="/|\n";} {
11758 lt_foo="";
11759 lt_count=0;
11760 for (lt_i = NF; lt_i > 0; lt_i--) {
11761 if ($lt_i != "" && $lt_i != ".") {
11762 if ($lt_i == "..") {
11763 lt_count++;
11764 } else {
11765 if (lt_count == 0) {
11766 lt_foo="/" $lt_i lt_foo;
11767 } else {
11768 lt_count--;
11769 }
11770 }
11771 }
11772 }
11773 if (lt_foo != "") { lt_freq[lt_foo]++; }
11774 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11775 }'`
11776 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11777 else
11778 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11779 fi
11780 library_names_spec=
11781 libname_spec='lib$name'
11782 soname_spec=
11783 shrext_cmds=".so"
11784 postinstall_cmds=
11785 postuninstall_cmds=
11786 finish_cmds=
11787 finish_eval=
11788 shlibpath_var=
11789 shlibpath_overrides_runpath=unknown
11790 version_type=none
11791 dynamic_linker="$host_os ld.so"
11792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11793 need_lib_prefix=unknown
11794 hardcode_into_libs=no
11795
11796 # when you set need_version to no, make sure it does not cause -set_version
11797 # flags to be left without arguments
11798 need_version=unknown
11799
11800 case $host_os in
11801 aix3*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11804 shlibpath_var=LIBPATH
11805
11806 # AIX 3 has no versioning support, so we append a major version to the name.
11807 soname_spec='${libname}${release}${shared_ext}$major'
11808 ;;
11809
11810 aix[4-9]*)
11811 version_type=linux
11812 need_lib_prefix=no
11813 need_version=no
11814 hardcode_into_libs=yes
11815 if test "$host_cpu" = ia64; then
11816 # AIX 5 supports IA64
11817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 else
11820 # With GCC up to 2.95.x, collect2 would create an import file
11821 # for dependence libraries. The import file would start with
11822 # the line `#! .'. This would cause the generated library to
11823 # depend on `.', always an invalid library. This was fixed in
11824 # development snapshots of GCC prior to 3.0.
11825 case $host_os in
11826 aix4 | aix4.[01] | aix4.[01].*)
11827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11828 echo ' yes '
11829 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11830 :
11831 else
11832 can_build_shared=no
11833 fi
11834 ;;
11835 esac
11836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11837 # soname into executable. Probably we can add versioning support to
11838 # collect2, so additional links can be useful in future.
11839 if test "$aix_use_runtimelinking" = yes; then
11840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11841 # instead of lib<name>.a to let people know that these are not
11842 # typical AIX shared libraries.
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844 else
11845 # We preserve .a as extension for shared libraries through AIX4.2
11846 # and later when we are not doing run time linking.
11847 library_names_spec='${libname}${release}.a $libname.a'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 fi
11850 shlibpath_var=LIBPATH
11851 fi
11852 ;;
11853
11854 amigaos*)
11855 case $host_cpu in
11856 powerpc)
11857 # Since July 2007 AmigaOS4 officially supports .so libraries.
11858 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11860 ;;
11861 m68k)
11862 library_names_spec='$libname.ixlibrary $libname.a'
11863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11864 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'
11865 ;;
11866 esac
11867 ;;
11868
11869 beos*)
11870 library_names_spec='${libname}${shared_ext}'
11871 dynamic_linker="$host_os ld.so"
11872 shlibpath_var=LIBRARY_PATH
11873 ;;
11874
11875 bsdi[45]*)
11876 version_type=linux
11877 need_version=no
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11884 # the default ld.so.conf also contains /usr/contrib/lib and
11885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11886 # libtool to hard-code these into programs
11887 ;;
11888
11889 cygwin* | mingw* | pw32* | cegcc*)
11890 version_type=windows
11891 shrext_cmds=".dll"
11892 need_version=no
11893 need_lib_prefix=no
11894
11895 case $GCC,$host_os in
11896 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11897 library_names_spec='$libname.dll.a'
11898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11899 postinstall_cmds='base_file=`basename \${file}`~
11900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11901 dldir=$destdir/`dirname \$dlpath`~
11902 test -d \$dldir || mkdir -p \$dldir~
11903 $install_prog $dir/$dlname \$dldir/$dlname~
11904 chmod a+x \$dldir/$dlname~
11905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11907 fi'
11908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11909 dlpath=$dir/\$dldll~
11910 $RM \$dlpath'
11911 shlibpath_overrides_runpath=yes
11912
11913 case $host_os in
11914 cygwin*)
11915 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11916 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11917 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11918 ;;
11919 mingw* | cegcc*)
11920 # MinGW DLLs use traditional 'lib' prefix
11921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11922 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11923 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11924 # It is most probably a Windows format PATH printed by
11925 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11926 # path with ; separators, and with drive letters. We can handle the
11927 # drive letters (cygwin fileutils understands them), so leave them,
11928 # especially as we might pass files found there to a mingw objdump,
11929 # which wouldn't understand a cygwinified path. Ahh.
11930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11931 else
11932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11933 fi
11934 ;;
11935 pw32*)
11936 # pw32 DLLs use 'pw' prefix rather than 'lib'
11937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11938 ;;
11939 esac
11940 ;;
11941
11942 *)
11943 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11944 ;;
11945 esac
11946 dynamic_linker='Win32 ld.exe'
11947 # FIXME: first we should search . and the directory the executable is in
11948 shlibpath_var=PATH
11949 ;;
11950
11951 darwin* | rhapsody*)
11952 dynamic_linker="$host_os dyld"
11953 version_type=darwin
11954 need_lib_prefix=no
11955 need_version=no
11956 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11957 soname_spec='${libname}${release}${major}$shared_ext'
11958 shlibpath_overrides_runpath=yes
11959 shlibpath_var=DYLD_LIBRARY_PATH
11960 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11961
11962 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11964 ;;
11965
11966 dgux*)
11967 version_type=linux
11968 need_lib_prefix=no
11969 need_version=no
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 ;;
11974
11975 freebsd1*)
11976 dynamic_linker=no
11977 ;;
11978
11979 freebsd* | dragonfly*)
11980 # DragonFly does not have aout. When/if they implement a new
11981 # versioning mechanism, adjust this.
11982 if test -x /usr/bin/objformat; then
11983 objformat=`/usr/bin/objformat`
11984 else
11985 case $host_os in
11986 freebsd[123]*) objformat=aout ;;
11987 *) objformat=elf ;;
11988 esac
11989 fi
11990 version_type=freebsd-$objformat
11991 case $version_type in
11992 freebsd-elf*)
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11994 need_version=no
11995 need_lib_prefix=no
11996 ;;
11997 freebsd-*)
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11999 need_version=yes
12000 ;;
12001 esac
12002 shlibpath_var=LD_LIBRARY_PATH
12003 case $host_os in
12004 freebsd2*)
12005 shlibpath_overrides_runpath=yes
12006 ;;
12007 freebsd3.[01]* | freebsdelf3.[01]*)
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12010 ;;
12011 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12012 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12013 shlibpath_overrides_runpath=no
12014 hardcode_into_libs=yes
12015 ;;
12016 *) # from 4.6 on, and DragonFly
12017 shlibpath_overrides_runpath=yes
12018 hardcode_into_libs=yes
12019 ;;
12020 esac
12021 ;;
12022
12023 gnu*)
12024 version_type=linux
12025 need_lib_prefix=no
12026 need_version=no
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 hardcode_into_libs=yes
12031 ;;
12032
12033 hpux9* | hpux10* | hpux11*)
12034 # Give a soname corresponding to the major version so that dld.sl refuses to
12035 # link against other versions.
12036 version_type=sunos
12037 need_lib_prefix=no
12038 need_version=no
12039 case $host_cpu in
12040 ia64*)
12041 shrext_cmds='.so'
12042 hardcode_into_libs=yes
12043 dynamic_linker="$host_os dld.so"
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 if test "X$HPUX_IA64_MODE" = X32; then
12049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12050 else
12051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052 fi
12053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12054 ;;
12055 hppa*64*)
12056 shrext_cmds='.sl'
12057 hardcode_into_libs=yes
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065 ;;
12066 *)
12067 shrext_cmds='.sl'
12068 dynamic_linker="$host_os dld.sl"
12069 shlibpath_var=SHLIB_PATH
12070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072 soname_spec='${libname}${release}${shared_ext}$major'
12073 ;;
12074 esac
12075 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12076 postinstall_cmds='chmod 555 $lib'
12077 ;;
12078
12079 interix[3-9]*)
12080 version_type=linux
12081 need_lib_prefix=no
12082 need_version=no
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 shlibpath_overrides_runpath=no
12088 hardcode_into_libs=yes
12089 ;;
12090
12091 irix5* | irix6* | nonstopux*)
12092 case $host_os in
12093 nonstopux*) version_type=nonstopux ;;
12094 *)
12095 if test "$lt_cv_prog_gnu_ld" = yes; then
12096 version_type=linux
12097 else
12098 version_type=irix
12099 fi ;;
12100 esac
12101 need_lib_prefix=no
12102 need_version=no
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12105 case $host_os in
12106 irix5* | nonstopux*)
12107 libsuff= shlibsuff=
12108 ;;
12109 *)
12110 case $LD in # libtool.m4 will add one of these switches to LD
12111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12112 libsuff= shlibsuff= libmagic=32-bit;;
12113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12114 libsuff=32 shlibsuff=N32 libmagic=N32;;
12115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12117 *) libsuff= shlibsuff= libmagic=never-match;;
12118 esac
12119 ;;
12120 esac
12121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12122 shlibpath_overrides_runpath=no
12123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12125 hardcode_into_libs=yes
12126 ;;
12127
12128 # No shared lib support for Linux oldld, aout, or coff.
12129 linux*oldld* | linux*aout* | linux*coff*)
12130 dynamic_linker=no
12131 ;;
12132
12133 # This must be Linux ELF.
12134 linux* | k*bsd*-gnu)
12135 version_type=linux
12136 need_lib_prefix=no
12137 need_version=no
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12141 shlibpath_var=LD_LIBRARY_PATH
12142 shlibpath_overrides_runpath=no
12143 # Some binutils ld are patched to set DT_RUNPATH
12144 save_LDFLAGS=$LDFLAGS
12145 save_libdir=$libdir
12146 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12147 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12148 cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h. */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154
12155 int
12156 main ()
12157 {
12158
12159 ;
12160 return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext conftest$ac_exeext
12164 if { (ac_try="$ac_link"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_link") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext && {
12181 test "$cross_compiling" = yes ||
12182 $as_test_x conftest$ac_exeext
12183 }; then
12184 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12185 shlibpath_overrides_runpath=yes
12186 fi
12187
12188 else
12189 $as_echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192
12193 fi
12194
12195 rm -rf conftest.dSYM
12196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LDFLAGS=$save_LDFLAGS
12199 libdir=$save_libdir
12200
12201 # This implies no fast_install, which is unacceptable.
12202 # Some rework will be needed to allow for fast_install
12203 # before this can be enabled.
12204 hardcode_into_libs=yes
12205
12206 # Add ABI-specific directories to the system library path.
12207 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12208
12209 # Append ld.so.conf contents to the search path
12210 if test -f /etc/ld.so.conf; then
12211 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' ' '`
12212 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12213 fi
12214
12215 # We used to test for /lib/ld.so.1 and disable shared libraries on
12216 # powerpc, because MkLinux only supported shared libraries with the
12217 # GNU dynamic linker. Since this was broken with cross compilers,
12218 # most powerpc-linux boxes support dynamic linking these days and
12219 # people can always --disable-shared, the test was removed, and we
12220 # assume the GNU/Linux dynamic linker is in use.
12221 dynamic_linker='GNU/Linux ld.so'
12222 ;;
12223
12224 netbsd*)
12225 version_type=sunos
12226 need_lib_prefix=no
12227 need_version=no
12228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12231 dynamic_linker='NetBSD (a.out) ld.so'
12232 else
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 dynamic_linker='NetBSD ld.elf_so'
12236 fi
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 hardcode_into_libs=yes
12240 ;;
12241
12242 newsos6)
12243 version_type=linux
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12247 ;;
12248
12249 *nto* | *qnx*)
12250 version_type=qnx
12251 need_lib_prefix=no
12252 need_version=no
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254 soname_spec='${libname}${release}${shared_ext}$major'
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=no
12257 hardcode_into_libs=yes
12258 dynamic_linker='ldqnx.so'
12259 ;;
12260
12261 openbsd*)
12262 version_type=sunos
12263 sys_lib_dlsearch_path_spec="/usr/lib"
12264 need_lib_prefix=no
12265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12266 case $host_os in
12267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12268 *) need_version=no ;;
12269 esac
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12274 case $host_os in
12275 openbsd2.[89] | openbsd2.[89].*)
12276 shlibpath_overrides_runpath=no
12277 ;;
12278 *)
12279 shlibpath_overrides_runpath=yes
12280 ;;
12281 esac
12282 else
12283 shlibpath_overrides_runpath=yes
12284 fi
12285 ;;
12286
12287 os2*)
12288 libname_spec='$name'
12289 shrext_cmds=".dll"
12290 need_lib_prefix=no
12291 library_names_spec='$libname${shared_ext} $libname.a'
12292 dynamic_linker='OS/2 ld.exe'
12293 shlibpath_var=LIBPATH
12294 ;;
12295
12296 osf3* | osf4* | osf5*)
12297 version_type=osf
12298 need_lib_prefix=no
12299 need_version=no
12300 soname_spec='${libname}${release}${shared_ext}$major'
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12305 ;;
12306
12307 rdos*)
12308 dynamic_linker=no
12309 ;;
12310
12311 solaris*)
12312 version_type=linux
12313 need_lib_prefix=no
12314 need_version=no
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316 soname_spec='${libname}${release}${shared_ext}$major'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=yes
12319 hardcode_into_libs=yes
12320 # ldd complains unless libraries are executable
12321 postinstall_cmds='chmod +x $lib'
12322 ;;
12323
12324 sunos4*)
12325 version_type=sunos
12326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 shlibpath_overrides_runpath=yes
12330 if test "$with_gnu_ld" = yes; then
12331 need_lib_prefix=no
12332 fi
12333 need_version=yes
12334 ;;
12335
12336 sysv4 | sysv4.3*)
12337 version_type=linux
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 case $host_vendor in
12342 sni)
12343 shlibpath_overrides_runpath=no
12344 need_lib_prefix=no
12345 runpath_var=LD_RUN_PATH
12346 ;;
12347 siemens)
12348 need_lib_prefix=no
12349 ;;
12350 motorola)
12351 need_lib_prefix=no
12352 need_version=no
12353 shlibpath_overrides_runpath=no
12354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12355 ;;
12356 esac
12357 ;;
12358
12359 sysv4*MP*)
12360 if test -d /usr/nec ;then
12361 version_type=linux
12362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12363 soname_spec='$libname${shared_ext}.$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 fi
12366 ;;
12367
12368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12369 version_type=freebsd-elf
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12373 soname_spec='${libname}${release}${shared_ext}$major'
12374 shlibpath_var=LD_LIBRARY_PATH
12375 shlibpath_overrides_runpath=yes
12376 hardcode_into_libs=yes
12377 if test "$with_gnu_ld" = yes; then
12378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12379 else
12380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12381 case $host_os in
12382 sco3.2v5*)
12383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12384 ;;
12385 esac
12386 fi
12387 sys_lib_dlsearch_path_spec='/usr/lib'
12388 ;;
12389
12390 tpf*)
12391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12392 version_type=linux
12393 need_lib_prefix=no
12394 need_version=no
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 shlibpath_overrides_runpath=no
12398 hardcode_into_libs=yes
12399 ;;
12400
12401 uts4*)
12402 version_type=linux
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 ;;
12407
12408 *)
12409 dynamic_linker=no
12410 ;;
12411 esac
12412 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12413 $as_echo "$dynamic_linker" >&6; }
12414 test "$dynamic_linker" = no && can_build_shared=no
12415
12416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12417 if test "$GCC" = yes; then
12418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12419 fi
12420
12421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12422 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12423 fi
12424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12425 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12426 fi
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12515 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12516 hardcode_action=
12517 if test -n "$hardcode_libdir_flag_spec" ||
12518 test -n "$runpath_var" ||
12519 test "X$hardcode_automatic" = "Xyes" ; then
12520
12521 # We can hardcode non-existent directories.
12522 if test "$hardcode_direct" != no &&
12523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12524 # have to relink, otherwise we might link with an installed library
12525 # when we should be linking with a yet-to-be-installed one
12526 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12527 test "$hardcode_minus_L" != no; then
12528 # Linking always hardcodes the temporary library directory.
12529 hardcode_action=relink
12530 else
12531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12532 hardcode_action=immediate
12533 fi
12534 else
12535 # We cannot hardcode anything, or else we can only hardcode existing
12536 # directories.
12537 hardcode_action=unsupported
12538 fi
12539 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12540 $as_echo "$hardcode_action" >&6; }
12541
12542 if test "$hardcode_action" = relink ||
12543 test "$inherit_rpath" = yes; then
12544 # Fast installation is not supported
12545 enable_fast_install=no
12546 elif test "$shlibpath_overrides_runpath" = yes ||
12547 test "$enable_shared" = no; then
12548 # Fast installation is not necessary
12549 enable_fast_install=needless
12550 fi
12551
12552
12553
12554
12555
12556
12557 if test "x$enable_dlopen" != xyes; then
12558 enable_dlopen=unknown
12559 enable_dlopen_self=unknown
12560 enable_dlopen_self_static=unknown
12561 else
12562 lt_cv_dlopen=no
12563 lt_cv_dlopen_libs=
12564
12565 case $host_os in
12566 beos*)
12567 lt_cv_dlopen="load_add_on"
12568 lt_cv_dlopen_libs=
12569 lt_cv_dlopen_self=yes
12570 ;;
12571
12572 mingw* | pw32* | cegcc*)
12573 lt_cv_dlopen="LoadLibrary"
12574 lt_cv_dlopen_libs=
12575 ;;
12576
12577 cygwin*)
12578 lt_cv_dlopen="dlopen"
12579 lt_cv_dlopen_libs=
12580 ;;
12581
12582 darwin*)
12583 # if libdl is installed we need to link against it
12584 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12587 $as_echo_n "(cached) " >&6
12588 else
12589 ac_check_lib_save_LIBS=$LIBS
12590 LIBS="-ldl $LIBS"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char dlopen ();
12605 int
12606 main ()
12607 {
12608 return dlopen ();
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620 $as_echo "$ac_try_echo") >&5
12621 (eval "$ac_link") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest$ac_exeext && {
12631 test "$cross_compiling" = yes ||
12632 $as_test_x conftest$ac_exeext
12633 }; then
12634 ac_cv_lib_dl_dlopen=yes
12635 else
12636 $as_echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ac_cv_lib_dl_dlopen=no
12640 fi
12641
12642 rm -rf conftest.dSYM
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12646 fi
12647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12649 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12651 else
12652
12653 lt_cv_dlopen="dyld"
12654 lt_cv_dlopen_libs=
12655 lt_cv_dlopen_self=yes
12656
12657 fi
12658
12659 ;;
12660
12661 *)
12662 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12663 $as_echo_n "checking for shl_load... " >&6; }
12664 if test "${ac_cv_func_shl_load+set}" = set; then
12665 $as_echo_n "(cached) " >&6
12666 else
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h. */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12675 #define shl_load innocuous_shl_load
12676
12677 /* System header to define __stub macros and hopefully few prototypes,
12678 which can conflict with char shl_load (); below.
12679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12680 <limits.h> exists even on freestanding compilers. */
12681
12682 #ifdef __STDC__
12683 # include <limits.h>
12684 #else
12685 # include <assert.h>
12686 #endif
12687
12688 #undef shl_load
12689
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693 #ifdef __cplusplus
12694 extern "C"
12695 #endif
12696 char shl_load ();
12697 /* The GNU C library defines this for functions which it implements
12698 to always fail with ENOSYS. Some functions are actually named
12699 something starting with __ and the normal name is an alias. */
12700 #if defined __stub_shl_load || defined __stub___shl_load
12701 choke me
12702 #endif
12703
12704 int
12705 main ()
12706 {
12707 return shl_load ();
12708 ;
12709 return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (ac_try="$ac_link"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717 esac
12718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719 $as_echo "$ac_try_echo") >&5
12720 (eval "$ac_link") 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest$ac_exeext && {
12730 test "$cross_compiling" = yes ||
12731 $as_test_x conftest$ac_exeext
12732 }; then
12733 ac_cv_func_shl_load=yes
12734 else
12735 $as_echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_cv_func_shl_load=no
12739 fi
12740
12741 rm -rf conftest.dSYM
12742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12743 conftest$ac_exeext conftest.$ac_ext
12744 fi
12745 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12746 $as_echo "$ac_cv_func_shl_load" >&6; }
12747 if test "x$ac_cv_func_shl_load" = x""yes; then
12748 lt_cv_dlopen="shl_load"
12749 else
12750 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12751 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12752 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12753 $as_echo_n "(cached) " >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-ldld $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char shl_load ();
12771 int
12772 main ()
12773 {
12774 return shl_load ();
12775 ;
12776 return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784 esac
12785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12786 $as_echo "$ac_try_echo") >&5
12787 (eval "$ac_link") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest$ac_exeext && {
12797 test "$cross_compiling" = yes ||
12798 $as_test_x conftest$ac_exeext
12799 }; then
12800 ac_cv_lib_dld_shl_load=yes
12801 else
12802 $as_echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 ac_cv_lib_dld_shl_load=no
12806 fi
12807
12808 rm -rf conftest.dSYM
12809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12812 fi
12813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12814 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12815 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12816 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12817 else
12818 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12819 $as_echo_n "checking for dlopen... " >&6; }
12820 if test "${ac_cv_func_dlopen+set}" = set; then
12821 $as_echo_n "(cached) " >&6
12822 else
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define dlopen innocuous_dlopen
12832
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char dlopen (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12837
12838 #ifdef __STDC__
12839 # include <limits.h>
12840 #else
12841 # include <assert.h>
12842 #endif
12843
12844 #undef dlopen
12845
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char dlopen ();
12853 /* The GNU C library defines this for functions which it implements
12854 to always fail with ENOSYS. Some functions are actually named
12855 something starting with __ and the normal name is an alias. */
12856 #if defined __stub_dlopen || defined __stub___dlopen
12857 choke me
12858 #endif
12859
12860 int
12861 main ()
12862 {
12863 return dlopen ();
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (ac_try="$ac_link"
12870 case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875 $as_echo "$ac_try_echo") >&5
12876 (eval "$ac_link") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest$ac_exeext && {
12886 test "$cross_compiling" = yes ||
12887 $as_test_x conftest$ac_exeext
12888 }; then
12889 ac_cv_func_dlopen=yes
12890 else
12891 $as_echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12893
12894 ac_cv_func_dlopen=no
12895 fi
12896
12897 rm -rf conftest.dSYM
12898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
12900 fi
12901 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12902 $as_echo "$ac_cv_func_dlopen" >&6; }
12903 if test "x$ac_cv_func_dlopen" = x""yes; then
12904 lt_cv_dlopen="dlopen"
12905 else
12906 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12907 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12909 $as_echo_n "(cached) " >&6
12910 else
12911 ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-ldl $LIBS"
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h. */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char dlopen ();
12927 int
12928 main ()
12929 {
12930 return dlopen ();
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12940 esac
12941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942 $as_echo "$ac_try_echo") >&5
12943 (eval "$ac_link") 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest$ac_exeext && {
12953 test "$cross_compiling" = yes ||
12954 $as_test_x conftest$ac_exeext
12955 }; then
12956 ac_cv_lib_dl_dlopen=yes
12957 else
12958 $as_echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 ac_cv_lib_dl_dlopen=no
12962 fi
12963
12964 rm -rf conftest.dSYM
12965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12966 conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12968 fi
12969 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12971 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12973 else
12974 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12975 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12976 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12977 $as_echo_n "(cached) " >&6
12978 else
12979 ac_check_lib_save_LIBS=$LIBS
12980 LIBS="-lsvld $LIBS"
12981 cat >conftest.$ac_ext <<_ACEOF
12982 /* confdefs.h. */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 char dlopen ();
12995 int
12996 main ()
12997 {
12998 return dlopen ();
12999 ;
13000 return 0;
13001 }
13002 _ACEOF
13003 rm -f conftest.$ac_objext conftest$ac_exeext
13004 if { (ac_try="$ac_link"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008 esac
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011 (eval "$ac_link") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest$ac_exeext && {
13021 test "$cross_compiling" = yes ||
13022 $as_test_x conftest$ac_exeext
13023 }; then
13024 ac_cv_lib_svld_dlopen=yes
13025 else
13026 $as_echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029 ac_cv_lib_svld_dlopen=no
13030 fi
13031
13032 rm -rf conftest.dSYM
13033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13034 conftest$ac_exeext conftest.$ac_ext
13035 LIBS=$ac_check_lib_save_LIBS
13036 fi
13037 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13038 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13039 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13041 else
13042 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13043 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13044 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13045 $as_echo_n "(cached) " >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-ldld $LIBS"
13049 cat >conftest.$ac_ext <<_ACEOF
13050 /* confdefs.h. */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13055
13056 /* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13059 #ifdef __cplusplus
13060 extern "C"
13061 #endif
13062 char dld_link ();
13063 int
13064 main ()
13065 {
13066 return dld_link ();
13067 ;
13068 return 0;
13069 }
13070 _ACEOF
13071 rm -f conftest.$ac_objext conftest$ac_exeext
13072 if { (ac_try="$ac_link"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076 esac
13077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13078 $as_echo "$ac_try_echo") >&5
13079 (eval "$ac_link") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest$ac_exeext && {
13089 test "$cross_compiling" = yes ||
13090 $as_test_x conftest$ac_exeext
13091 }; then
13092 ac_cv_lib_dld_dld_link=yes
13093 else
13094 $as_echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 ac_cv_lib_dld_dld_link=no
13098 fi
13099
13100 rm -rf conftest.dSYM
13101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13104 fi
13105 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13106 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13107 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13108 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13109 fi
13110
13111
13112 fi
13113
13114
13115 fi
13116
13117
13118 fi
13119
13120
13121 fi
13122
13123
13124 fi
13125
13126 ;;
13127 esac
13128
13129 if test "x$lt_cv_dlopen" != xno; then
13130 enable_dlopen=yes
13131 else
13132 enable_dlopen=no
13133 fi
13134
13135 case $lt_cv_dlopen in
13136 dlopen)
13137 save_CPPFLAGS="$CPPFLAGS"
13138 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13139
13140 save_LDFLAGS="$LDFLAGS"
13141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13142
13143 save_LIBS="$LIBS"
13144 LIBS="$lt_cv_dlopen_libs $LIBS"
13145
13146 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13147 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13148 if test "${lt_cv_dlopen_self+set}" = set; then
13149 $as_echo_n "(cached) " >&6
13150 else
13151 if test "$cross_compiling" = yes; then :
13152 lt_cv_dlopen_self=cross
13153 else
13154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13155 lt_status=$lt_dlunknown
13156 cat > conftest.$ac_ext <<_LT_EOF
13157 #line 13157 "configure"
13158 #include "confdefs.h"
13159
13160 #if HAVE_DLFCN_H
13161 #include <dlfcn.h>
13162 #endif
13163
13164 #include <stdio.h>
13165
13166 #ifdef RTLD_GLOBAL
13167 # define LT_DLGLOBAL RTLD_GLOBAL
13168 #else
13169 # ifdef DL_GLOBAL
13170 # define LT_DLGLOBAL DL_GLOBAL
13171 # else
13172 # define LT_DLGLOBAL 0
13173 # endif
13174 #endif
13175
13176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13177 find out it does not work in some platform. */
13178 #ifndef LT_DLLAZY_OR_NOW
13179 # ifdef RTLD_LAZY
13180 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13181 # else
13182 # ifdef DL_LAZY
13183 # define LT_DLLAZY_OR_NOW DL_LAZY
13184 # else
13185 # ifdef RTLD_NOW
13186 # define LT_DLLAZY_OR_NOW RTLD_NOW
13187 # else
13188 # ifdef DL_NOW
13189 # define LT_DLLAZY_OR_NOW DL_NOW
13190 # else
13191 # define LT_DLLAZY_OR_NOW 0
13192 # endif
13193 # endif
13194 # endif
13195 # endif
13196 #endif
13197
13198 void fnord() { int i=42;}
13199 int main ()
13200 {
13201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13202 int status = $lt_dlunknown;
13203
13204 if (self)
13205 {
13206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13207 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13208 /* dlclose (self); */
13209 }
13210 else
13211 puts (dlerror ());
13212
13213 return status;
13214 }
13215 _LT_EOF
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>&5
13218 ac_status=$?
13219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13221 (./conftest; exit; ) >&5 2>/dev/null
13222 lt_status=$?
13223 case x$lt_status in
13224 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13225 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13226 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13227 esac
13228 else :
13229 # compilation failed
13230 lt_cv_dlopen_self=no
13231 fi
13232 fi
13233 rm -fr conftest*
13234
13235
13236 fi
13237 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13238 $as_echo "$lt_cv_dlopen_self" >&6; }
13239
13240 if test "x$lt_cv_dlopen_self" = xyes; then
13241 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13242 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13243 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13244 if test "${lt_cv_dlopen_self_static+set}" = set; then
13245 $as_echo_n "(cached) " >&6
13246 else
13247 if test "$cross_compiling" = yes; then :
13248 lt_cv_dlopen_self_static=cross
13249 else
13250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13251 lt_status=$lt_dlunknown
13252 cat > conftest.$ac_ext <<_LT_EOF
13253 #line 13253 "configure"
13254 #include "confdefs.h"
13255
13256 #if HAVE_DLFCN_H
13257 #include <dlfcn.h>
13258 #endif
13259
13260 #include <stdio.h>
13261
13262 #ifdef RTLD_GLOBAL
13263 # define LT_DLGLOBAL RTLD_GLOBAL
13264 #else
13265 # ifdef DL_GLOBAL
13266 # define LT_DLGLOBAL DL_GLOBAL
13267 # else
13268 # define LT_DLGLOBAL 0
13269 # endif
13270 #endif
13271
13272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13273 find out it does not work in some platform. */
13274 #ifndef LT_DLLAZY_OR_NOW
13275 # ifdef RTLD_LAZY
13276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13277 # else
13278 # ifdef DL_LAZY
13279 # define LT_DLLAZY_OR_NOW DL_LAZY
13280 # else
13281 # ifdef RTLD_NOW
13282 # define LT_DLLAZY_OR_NOW RTLD_NOW
13283 # else
13284 # ifdef DL_NOW
13285 # define LT_DLLAZY_OR_NOW DL_NOW
13286 # else
13287 # define LT_DLLAZY_OR_NOW 0
13288 # endif
13289 # endif
13290 # endif
13291 # endif
13292 #endif
13293
13294 void fnord() { int i=42;}
13295 int main ()
13296 {
13297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13298 int status = $lt_dlunknown;
13299
13300 if (self)
13301 {
13302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13304 /* dlclose (self); */
13305 }
13306 else
13307 puts (dlerror ());
13308
13309 return status;
13310 }
13311 _LT_EOF
13312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13313 (eval $ac_link) 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13317 (./conftest; exit; ) >&5 2>/dev/null
13318 lt_status=$?
13319 case x$lt_status in
13320 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13321 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13322 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13323 esac
13324 else :
13325 # compilation failed
13326 lt_cv_dlopen_self_static=no
13327 fi
13328 fi
13329 rm -fr conftest*
13330
13331
13332 fi
13333 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13334 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13335 fi
13336
13337 CPPFLAGS="$save_CPPFLAGS"
13338 LDFLAGS="$save_LDFLAGS"
13339 LIBS="$save_LIBS"
13340 ;;
13341 esac
13342
13343 case $lt_cv_dlopen_self in
13344 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13345 *) enable_dlopen_self=unknown ;;
13346 esac
13347
13348 case $lt_cv_dlopen_self_static in
13349 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13350 *) enable_dlopen_self_static=unknown ;;
13351 esac
13352 fi
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370 striplib=
13371 old_striplib=
13372 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13373 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13374 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13375 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13376 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13377 { $as_echo "$as_me:$LINENO: result: yes" >&5
13378 $as_echo "yes" >&6; }
13379 else
13380 # FIXME - insert some real tests, host_os isn't really good enough
13381 case $host_os in
13382 darwin*)
13383 if test -n "$STRIP" ; then
13384 striplib="$STRIP -x"
13385 old_striplib="$STRIP -S"
13386 { $as_echo "$as_me:$LINENO: result: yes" >&5
13387 $as_echo "yes" >&6; }
13388 else
13389 { $as_echo "$as_me:$LINENO: result: no" >&5
13390 $as_echo "no" >&6; }
13391 fi
13392 ;;
13393 *)
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395 $as_echo "no" >&6; }
13396 ;;
13397 esac
13398 fi
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411 # Report which library types will actually be built
13412 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13413 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13414 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13415 $as_echo "$can_build_shared" >&6; }
13416
13417 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13418 $as_echo_n "checking whether to build shared libraries... " >&6; }
13419 test "$can_build_shared" = "no" && enable_shared=no
13420
13421 # On AIX, shared libraries and static libraries use the same namespace, and
13422 # are all built from PIC.
13423 case $host_os in
13424 aix3*)
13425 test "$enable_shared" = yes && enable_static=no
13426 if test -n "$RANLIB"; then
13427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13428 postinstall_cmds='$RANLIB $lib'
13429 fi
13430 ;;
13431
13432 aix[4-9]*)
13433 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13434 test "$enable_shared" = yes && enable_static=no
13435 fi
13436 ;;
13437 esac
13438 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13439 $as_echo "$enable_shared" >&6; }
13440
13441 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13442 $as_echo_n "checking whether to build static libraries... " >&6; }
13443 # Make sure either enable_shared or enable_static is yes.
13444 test "$enable_shared" = yes || enable_static=yes
13445 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13446 $as_echo "$enable_static" >&6; }
13447
13448
13449
13450
13451 fi
13452 ac_ext=c
13453 ac_cpp='$CPP $CPPFLAGS'
13454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13457
13458 CC="$lt_save_CC"
13459
13460
13461 ac_ext=cpp
13462 ac_cpp='$CXXCPP $CPPFLAGS'
13463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13466
13467 archive_cmds_need_lc_CXX=no
13468 allow_undefined_flag_CXX=
13469 always_export_symbols_CXX=no
13470 archive_expsym_cmds_CXX=
13471 compiler_needs_object_CXX=no
13472 export_dynamic_flag_spec_CXX=
13473 hardcode_direct_CXX=no
13474 hardcode_direct_absolute_CXX=no
13475 hardcode_libdir_flag_spec_CXX=
13476 hardcode_libdir_flag_spec_ld_CXX=
13477 hardcode_libdir_separator_CXX=
13478 hardcode_minus_L_CXX=no
13479 hardcode_shlibpath_var_CXX=unsupported
13480 hardcode_automatic_CXX=no
13481 inherit_rpath_CXX=no
13482 module_cmds_CXX=
13483 module_expsym_cmds_CXX=
13484 link_all_deplibs_CXX=unknown
13485 old_archive_cmds_CXX=$old_archive_cmds
13486 no_undefined_flag_CXX=
13487 whole_archive_flag_spec_CXX=
13488 enable_shared_with_static_runtimes_CXX=no
13489
13490 # Source file extension for C++ test sources.
13491 ac_ext=cpp
13492
13493 # Object file extension for compiled C++ test sources.
13494 objext=o
13495 objext_CXX=$objext
13496
13497 # No sense in running all these tests if we already determined that
13498 # the CXX compiler isn't working. Some variables (like enable_shared)
13499 # are currently assumed to apply to all compilers on this platform,
13500 # and will be corrupted by setting them based on a non-working compiler.
13501 if test "$_lt_caught_CXX_error" != yes; then
13502 # Code to be used in simple compile tests
13503 lt_simple_compile_test_code="int some_variable = 0;"
13504
13505 # Code to be used in simple link tests
13506 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13507
13508 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13509
13510
13511
13512
13513
13514
13515 # If no C compiler was specified, use CC.
13516 LTCC=${LTCC-"$CC"}
13517
13518 # If no C compiler flags were specified, use CFLAGS.
13519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13520
13521 # Allow CC to be a program name with arguments.
13522 compiler=$CC
13523
13524
13525 # save warnings/boilerplate of simple test code
13526 ac_outfile=conftest.$ac_objext
13527 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13529 _lt_compiler_boilerplate=`cat conftest.err`
13530 $RM conftest*
13531
13532 ac_outfile=conftest.$ac_objext
13533 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13535 _lt_linker_boilerplate=`cat conftest.err`
13536 $RM -r conftest*
13537
13538
13539 # Allow CC to be a program name with arguments.
13540 lt_save_CC=$CC
13541 lt_save_LD=$LD
13542 lt_save_GCC=$GCC
13543 GCC=$GXX
13544 lt_save_with_gnu_ld=$with_gnu_ld
13545 lt_save_path_LD=$lt_cv_path_LD
13546 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13547 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13548 else
13549 $as_unset lt_cv_prog_gnu_ld
13550 fi
13551 if test -n "${lt_cv_path_LDCXX+set}"; then
13552 lt_cv_path_LD=$lt_cv_path_LDCXX
13553 else
13554 $as_unset lt_cv_path_LD
13555 fi
13556 test -z "${LDCXX+set}" || LD=$LDCXX
13557 CC=${CXX-"c++"}
13558 compiler=$CC
13559 compiler_CXX=$CC
13560 for cc_temp in $compiler""; do
13561 case $cc_temp in
13562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13564 \-*) ;;
13565 *) break;;
13566 esac
13567 done
13568 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13569
13570
13571 if test -n "$compiler"; then
13572 # We don't want -fno-exception when compiling C++ code, so set the
13573 # no_builtin_flag separately
13574 if test "$GXX" = yes; then
13575 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13576 else
13577 lt_prog_compiler_no_builtin_flag_CXX=
13578 fi
13579
13580 if test "$GXX" = yes; then
13581 # Set up default GNU C++ configuration
13582
13583
13584
13585 # Check whether --with-gnu-ld was given.
13586 if test "${with_gnu_ld+set}" = set; then
13587 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13588 else
13589 with_gnu_ld=no
13590 fi
13591
13592 ac_prog=ld
13593 if test "$GCC" = yes; then
13594 # Check if gcc -print-prog-name=ld gives a path.
13595 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13596 $as_echo_n "checking for ld used by $CC... " >&6; }
13597 case $host in
13598 *-*-mingw*)
13599 # gcc leaves a trailing carriage return which upsets mingw
13600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13601 *)
13602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13603 esac
13604 case $ac_prog in
13605 # Accept absolute paths.
13606 [\\/]* | ?:[\\/]*)
13607 re_direlt='/[^/][^/]*/\.\./'
13608 # Canonicalize the pathname of ld
13609 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13610 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13611 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13612 done
13613 test -z "$LD" && LD="$ac_prog"
13614 ;;
13615 "")
13616 # If it fails, then pretend we aren't using GCC.
13617 ac_prog=ld
13618 ;;
13619 *)
13620 # If it is relative, then search for the first ld in PATH.
13621 with_gnu_ld=unknown
13622 ;;
13623 esac
13624 elif test "$with_gnu_ld" = yes; then
13625 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13626 $as_echo_n "checking for GNU ld... " >&6; }
13627 else
13628 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13629 $as_echo_n "checking for non-GNU ld... " >&6; }
13630 fi
13631 if test "${lt_cv_path_LD+set}" = set; then
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test -z "$LD"; then
13635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13636 for ac_dir in $PATH; do
13637 IFS="$lt_save_ifs"
13638 test -z "$ac_dir" && ac_dir=.
13639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13640 lt_cv_path_LD="$ac_dir/$ac_prog"
13641 # Check to see if the program is GNU ld. I'd rather use --version,
13642 # but apparently some variants of GNU ld only accept -v.
13643 # Break only if it was the GNU/non-GNU ld that we prefer.
13644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13645 *GNU* | *'with BFD'*)
13646 test "$with_gnu_ld" != no && break
13647 ;;
13648 *)
13649 test "$with_gnu_ld" != yes && break
13650 ;;
13651 esac
13652 fi
13653 done
13654 IFS="$lt_save_ifs"
13655 else
13656 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13657 fi
13658 fi
13659
13660 LD="$lt_cv_path_LD"
13661 if test -n "$LD"; then
13662 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13663 $as_echo "$LD" >&6; }
13664 else
13665 { $as_echo "$as_me:$LINENO: result: no" >&5
13666 $as_echo "no" >&6; }
13667 fi
13668 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13669 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13670 { (exit 1); exit 1; }; }
13671 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13672 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13673 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13674 $as_echo_n "(cached) " >&6
13675 else
13676 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13677 case `$LD -v 2>&1 </dev/null` in
13678 *GNU* | *'with BFD'*)
13679 lt_cv_prog_gnu_ld=yes
13680 ;;
13681 *)
13682 lt_cv_prog_gnu_ld=no
13683 ;;
13684 esac
13685 fi
13686 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13687 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13688 with_gnu_ld=$lt_cv_prog_gnu_ld
13689
13690
13691
13692
13693
13694
13695
13696 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13697 # archiving commands below assume that GNU ld is being used.
13698 if test "$with_gnu_ld" = yes; then
13699 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13700 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'
13701
13702 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13703 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13704
13705 # If archive_cmds runs LD, not CC, wlarc should be empty
13706 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13707 # investigate it a little bit more. (MM)
13708 wlarc='${wl}'
13709
13710 # ancient GNU ld didn't support --whole-archive et. al.
13711 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13712 $GREP 'no-whole-archive' > /dev/null; then
13713 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13714 else
13715 whole_archive_flag_spec_CXX=
13716 fi
13717 else
13718 with_gnu_ld=no
13719 wlarc=
13720
13721 # A generic and very simple default shared library creation
13722 # command for GNU C++ for the case where it uses the native
13723 # linker, instead of GNU ld. If possible, this setting should
13724 # overridden to take advantage of the native linker features on
13725 # the platform it is being used on.
13726 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13727 fi
13728
13729 # Commands to make compiler produce verbose output that lists
13730 # what "hidden" libraries, object files and flags are used when
13731 # linking a shared library.
13732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13733
13734 else
13735 GXX=no
13736 with_gnu_ld=no
13737 wlarc=
13738 fi
13739
13740 # PORTME: fill in a description of your system's C++ link characteristics
13741 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13743 ld_shlibs_CXX=yes
13744 case $host_os in
13745 aix3*)
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13748 ;;
13749 aix[4-9]*)
13750 if test "$host_cpu" = ia64; then
13751 # On IA64, the linker does run time linking by default, so we don't
13752 # have to do anything special.
13753 aix_use_runtimelinking=no
13754 exp_sym_flag='-Bexport'
13755 no_entry_flag=""
13756 else
13757 aix_use_runtimelinking=no
13758
13759 # Test if we are trying to use run time linking or normal
13760 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13761 # need to do runtime linking.
13762 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13763 for ld_flag in $LDFLAGS; do
13764 case $ld_flag in
13765 *-brtl*)
13766 aix_use_runtimelinking=yes
13767 break
13768 ;;
13769 esac
13770 done
13771 ;;
13772 esac
13773
13774 exp_sym_flag='-bexport'
13775 no_entry_flag='-bnoentry'
13776 fi
13777
13778 # When large executables or shared objects are built, AIX ld can
13779 # have problems creating the table of contents. If linking a library
13780 # or program results in "error TOC overflow" add -mminimal-toc to
13781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13783
13784 archive_cmds_CXX=''
13785 hardcode_direct_CXX=yes
13786 hardcode_direct_absolute_CXX=yes
13787 hardcode_libdir_separator_CXX=':'
13788 link_all_deplibs_CXX=yes
13789 file_list_spec_CXX='${wl}-f,'
13790
13791 if test "$GXX" = yes; then
13792 case $host_os in aix4.[012]|aix4.[012].*)
13793 # We only want to do this on AIX 4.2 and lower, the check
13794 # below for broken collect2 doesn't work under 4.3+
13795 collect2name=`${CC} -print-prog-name=collect2`
13796 if test -f "$collect2name" &&
13797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13798 then
13799 # We have reworked collect2
13800 :
13801 else
13802 # We have old collect2
13803 hardcode_direct_CXX=unsupported
13804 # It fails to find uninstalled libraries when the uninstalled
13805 # path is not listed in the libpath. Setting hardcode_minus_L
13806 # to unsupported forces relinking
13807 hardcode_minus_L_CXX=yes
13808 hardcode_libdir_flag_spec_CXX='-L$libdir'
13809 hardcode_libdir_separator_CXX=
13810 fi
13811 esac
13812 shared_flag='-shared'
13813 if test "$aix_use_runtimelinking" = yes; then
13814 shared_flag="$shared_flag "'${wl}-G'
13815 fi
13816 else
13817 # not using gcc
13818 if test "$host_cpu" = ia64; then
13819 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13820 # chokes on -Wl,-G. The following line is correct:
13821 shared_flag='-G'
13822 else
13823 if test "$aix_use_runtimelinking" = yes; then
13824 shared_flag='${wl}-G'
13825 else
13826 shared_flag='${wl}-bM:SRE'
13827 fi
13828 fi
13829 fi
13830
13831 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13832 # It seems that -bexpall does not export symbols beginning with
13833 # underscore (_), so it is better to generate a list of symbols to
13834 # export.
13835 always_export_symbols_CXX=yes
13836 if test "$aix_use_runtimelinking" = yes; then
13837 # Warning - without using the other runtime loading flags (-brtl),
13838 # -berok will link without error, but may produce a broken library.
13839 allow_undefined_flag_CXX='-berok'
13840 # Determine the default libpath from the value encoded in an empty
13841 # executable.
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848
13849 int
13850 main ()
13851 {
13852
13853 ;
13854 return 0;
13855 }
13856 _ACEOF
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (ac_try="$ac_link"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13862 esac
13863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13864 $as_echo "$ac_try_echo") >&5
13865 (eval "$ac_link") 2>conftest.er1
13866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_cxx_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest$ac_exeext && {
13875 test "$cross_compiling" = yes ||
13876 $as_test_x conftest$ac_exeext
13877 }; then
13878
13879 lt_aix_libpath_sed='
13880 /Import File Strings/,/^$/ {
13881 /^0/ {
13882 s/^0 *\(.*\)$/\1/
13883 p
13884 }
13885 }'
13886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13887 # Check for a 64-bit object if we didn't find anything.
13888 if test -z "$aix_libpath"; then
13889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13890 fi
13891 else
13892 $as_echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895
13896 fi
13897
13898 rm -rf conftest.dSYM
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext conftest.$ac_ext
13901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13902
13903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13904
13905 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"
13906 else
13907 if test "$host_cpu" = ia64; then
13908 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13909 allow_undefined_flag_CXX="-z nodefs"
13910 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"
13911 else
13912 # Determine the default libpath from the value encoded in an
13913 # empty executable.
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h. */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920
13921 int
13922 main ()
13923 {
13924
13925 ;
13926 return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext conftest$ac_exeext
13930 if { (ac_try="$ac_link"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13934 esac
13935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13936 $as_echo "$ac_try_echo") >&5
13937 (eval "$ac_link") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_cxx_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest$ac_exeext && {
13947 test "$cross_compiling" = yes ||
13948 $as_test_x conftest$ac_exeext
13949 }; then
13950
13951 lt_aix_libpath_sed='
13952 /Import File Strings/,/^$/ {
13953 /^0/ {
13954 s/^0 *\(.*\)$/\1/
13955 p
13956 }
13957 }'
13958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13959 # Check for a 64-bit object if we didn't find anything.
13960 if test -z "$aix_libpath"; then
13961 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13962 fi
13963 else
13964 $as_echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967
13968 fi
13969
13970 rm -rf conftest.dSYM
13971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972 conftest$ac_exeext conftest.$ac_ext
13973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13974
13975 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13976 # Warning - without using the other run time loading flags,
13977 # -berok will link without error, but may produce a broken library.
13978 no_undefined_flag_CXX=' ${wl}-bernotok'
13979 allow_undefined_flag_CXX=' ${wl}-berok'
13980 # Exported symbols can be pulled into shared objects from archives
13981 whole_archive_flag_spec_CXX='$convenience'
13982 archive_cmds_need_lc_CXX=yes
13983 # This is similar to how AIX traditionally builds its shared
13984 # libraries.
13985 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'
13986 fi
13987 fi
13988 ;;
13989
13990 beos*)
13991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13992 allow_undefined_flag_CXX=unsupported
13993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13994 # support --undefined. This deserves some investigation. FIXME
13995 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996 else
13997 ld_shlibs_CXX=no
13998 fi
13999 ;;
14000
14001 chorus*)
14002 case $cc_basename in
14003 *)
14004 # FIXME: insert proper C++ library support
14005 ld_shlibs_CXX=no
14006 ;;
14007 esac
14008 ;;
14009
14010 cygwin* | mingw* | pw32* | cegcc*)
14011 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14012 # as there is no search path for DLLs.
14013 hardcode_libdir_flag_spec_CXX='-L$libdir'
14014 allow_undefined_flag_CXX=unsupported
14015 always_export_symbols_CXX=no
14016 enable_shared_with_static_runtimes_CXX=yes
14017
14018 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14019 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'
14020 # If the export-symbols file already is a .def file (1st line
14021 # is EXPORTS), use it as is; otherwise, prepend...
14022 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14023 cp $export_symbols $output_objdir/$soname.def;
14024 else
14025 echo EXPORTS > $output_objdir/$soname.def;
14026 cat $export_symbols >> $output_objdir/$soname.def;
14027 fi~
14028 $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'
14029 else
14030 ld_shlibs_CXX=no
14031 fi
14032 ;;
14033 darwin* | rhapsody*)
14034
14035
14036 archive_cmds_need_lc_CXX=no
14037 hardcode_direct_CXX=no
14038 hardcode_automatic_CXX=yes
14039 hardcode_shlibpath_var_CXX=unsupported
14040 whole_archive_flag_spec_CXX=''
14041 link_all_deplibs_CXX=yes
14042 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14043 case $cc_basename in
14044 ifort*) _lt_dar_can_shared=yes ;;
14045 *) _lt_dar_can_shared=$GCC ;;
14046 esac
14047 if test "$_lt_dar_can_shared" = "yes"; then
14048 output_verbose_link_cmd=echo
14049 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}"
14050 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14051 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}"
14052 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}"
14053 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14054 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}"
14055 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}"
14056 fi
14057
14058 else
14059 ld_shlibs_CXX=no
14060 fi
14061
14062 ;;
14063
14064 dgux*)
14065 case $cc_basename in
14066 ec++*)
14067 # FIXME: insert proper C++ library support
14068 ld_shlibs_CXX=no
14069 ;;
14070 ghcx*)
14071 # Green Hills C++ Compiler
14072 # FIXME: insert proper C++ library support
14073 ld_shlibs_CXX=no
14074 ;;
14075 *)
14076 # FIXME: insert proper C++ library support
14077 ld_shlibs_CXX=no
14078 ;;
14079 esac
14080 ;;
14081
14082 freebsd[12]*)
14083 # C++ shared libraries reported to be fairly broken before
14084 # switch to ELF
14085 ld_shlibs_CXX=no
14086 ;;
14087
14088 freebsd-elf*)
14089 archive_cmds_need_lc_CXX=no
14090 ;;
14091
14092 freebsd* | dragonfly*)
14093 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14094 # conventions
14095 ld_shlibs_CXX=yes
14096 ;;
14097
14098 gnu*)
14099 ;;
14100
14101 hpux9*)
14102 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14103 hardcode_libdir_separator_CXX=:
14104 export_dynamic_flag_spec_CXX='${wl}-E'
14105 hardcode_direct_CXX=yes
14106 hardcode_minus_L_CXX=yes # Not in the search PATH,
14107 # but as the default
14108 # location of the library.
14109
14110 case $cc_basename in
14111 CC*)
14112 # FIXME: insert proper C++ library support
14113 ld_shlibs_CXX=no
14114 ;;
14115 aCC*)
14116 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'
14117 # Commands to make compiler produce verbose output that lists
14118 # what "hidden" libraries, object files and flags are used when
14119 # linking a shared library.
14120 #
14121 # There doesn't appear to be a way to prevent this compiler from
14122 # explicitly linking system object files so we need to strip them
14123 # from the output so that they don't get included in the library
14124 # dependencies.
14125 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'
14126 ;;
14127 *)
14128 if test "$GXX" = yes; then
14129 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'
14130 else
14131 # FIXME: insert proper C++ library support
14132 ld_shlibs_CXX=no
14133 fi
14134 ;;
14135 esac
14136 ;;
14137
14138 hpux10*|hpux11*)
14139 if test $with_gnu_ld = no; then
14140 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14141 hardcode_libdir_separator_CXX=:
14142
14143 case $host_cpu in
14144 hppa*64*|ia64*)
14145 ;;
14146 *)
14147 export_dynamic_flag_spec_CXX='${wl}-E'
14148 ;;
14149 esac
14150 fi
14151 case $host_cpu in
14152 hppa*64*|ia64*)
14153 hardcode_direct_CXX=no
14154 hardcode_shlibpath_var_CXX=no
14155 ;;
14156 *)
14157 hardcode_direct_CXX=yes
14158 hardcode_direct_absolute_CXX=yes
14159 hardcode_minus_L_CXX=yes # Not in the search PATH,
14160 # but as the default
14161 # location of the library.
14162 ;;
14163 esac
14164
14165 case $cc_basename in
14166 CC*)
14167 # FIXME: insert proper C++ library support
14168 ld_shlibs_CXX=no
14169 ;;
14170 aCC*)
14171 case $host_cpu in
14172 hppa*64*)
14173 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14174 ;;
14175 ia64*)
14176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14177 ;;
14178 *)
14179 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14180 ;;
14181 esac
14182 # Commands to make compiler produce verbose output that lists
14183 # what "hidden" libraries, object files and flags are used when
14184 # linking a shared library.
14185 #
14186 # There doesn't appear to be a way to prevent this compiler from
14187 # explicitly linking system object files so we need to strip them
14188 # from the output so that they don't get included in the library
14189 # dependencies.
14190 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'
14191 ;;
14192 *)
14193 if test "$GXX" = yes; then
14194 if test $with_gnu_ld = no; then
14195 case $host_cpu in
14196 hppa*64*)
14197 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14198 ;;
14199 ia64*)
14200 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14201 ;;
14202 *)
14203 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'
14204 ;;
14205 esac
14206 fi
14207 else
14208 # FIXME: insert proper C++ library support
14209 ld_shlibs_CXX=no
14210 fi
14211 ;;
14212 esac
14213 ;;
14214
14215 interix[3-9]*)
14216 hardcode_direct_CXX=no
14217 hardcode_shlibpath_var_CXX=no
14218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14219 export_dynamic_flag_spec_CXX='${wl}-E'
14220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14221 # Instead, shared libraries are loaded at an image base (0x10000000 by
14222 # default) and relocated if they conflict, which is a slow very memory
14223 # consuming and fragmenting process. To avoid this, we pick a random,
14224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14225 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14226 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'
14227 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'
14228 ;;
14229 irix5* | irix6*)
14230 case $cc_basename in
14231 CC*)
14232 # SGI C++
14233 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'
14234
14235 # Archives containing C++ object files must be created using
14236 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14237 # necessary to make sure instantiated templates are included
14238 # in the archive.
14239 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14240 ;;
14241 *)
14242 if test "$GXX" = yes; then
14243 if test "$with_gnu_ld" = no; then
14244 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'
14245 else
14246 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'
14247 fi
14248 fi
14249 link_all_deplibs_CXX=yes
14250 ;;
14251 esac
14252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14253 hardcode_libdir_separator_CXX=:
14254 inherit_rpath_CXX=yes
14255 ;;
14256
14257 linux* | k*bsd*-gnu)
14258 case $cc_basename in
14259 KCC*)
14260 # Kuck and Associates, Inc. (KAI) C++ Compiler
14261
14262 # KCC will only create a shared library if the output file
14263 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14264 # to its proper name (with version) after linking.
14265 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'
14266 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'
14267 # Commands to make compiler produce verbose output that lists
14268 # what "hidden" libraries, object files and flags are used when
14269 # linking a shared library.
14270 #
14271 # There doesn't appear to be a way to prevent this compiler from
14272 # explicitly linking system object files so we need to strip them
14273 # from the output so that they don't get included in the library
14274 # dependencies.
14275 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'
14276
14277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14278 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14279
14280 # Archives containing C++ object files must be created using
14281 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14282 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14283 ;;
14284 icpc* | ecpc* )
14285 # Intel C++
14286 with_gnu_ld=yes
14287 # version 8.0 and above of icpc choke on multiply defined symbols
14288 # if we add $predep_objects and $postdep_objects, however 7.1 and
14289 # earlier do not add the objects themselves.
14290 case `$CC -V 2>&1` in
14291 *"Version 7."*)
14292 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14293 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'
14294 ;;
14295 *) # Version 8.0 or newer
14296 tmp_idyn=
14297 case $host_cpu in
14298 ia64*) tmp_idyn=' -i_dynamic';;
14299 esac
14300 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301 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'
14302 ;;
14303 esac
14304 archive_cmds_need_lc_CXX=no
14305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14306 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14307 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14308 ;;
14309 pgCC* | pgcpp*)
14310 # Portland Group C++ compiler
14311 case `$CC -V` in
14312 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14313 prelink_cmds_CXX='tpldir=Template.dir~
14314 rm -rf $tpldir~
14315 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14316 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14317 old_archive_cmds_CXX='tpldir=Template.dir~
14318 rm -rf $tpldir~
14319 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14320 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14321 $RANLIB $oldlib'
14322 archive_cmds_CXX='tpldir=Template.dir~
14323 rm -rf $tpldir~
14324 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14325 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14326 archive_expsym_cmds_CXX='tpldir=Template.dir~
14327 rm -rf $tpldir~
14328 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14329 $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'
14330 ;;
14331 *) # Version 6 will use weak symbols
14332 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14333 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'
14334 ;;
14335 esac
14336
14337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14339 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'
14340 ;;
14341 cxx*)
14342 # Compaq C++
14343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14344 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'
14345
14346 runpath_var=LD_RUN_PATH
14347 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14348 hardcode_libdir_separator_CXX=:
14349
14350 # Commands to make compiler produce verbose output that lists
14351 # what "hidden" libraries, object files and flags are used when
14352 # linking a shared library.
14353 #
14354 # There doesn't appear to be a way to prevent this compiler from
14355 # explicitly linking system object files so we need to strip them
14356 # from the output so that they don't get included in the library
14357 # dependencies.
14358 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'
14359 ;;
14360 xl*)
14361 # IBM XL 8.0 on PPC, with GNU ld
14362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14364 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14365 if test "x$supports_anon_versioning" = xyes; then
14366 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14368 echo "local: *; };" >> $output_objdir/$libname.ver~
14369 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14370 fi
14371 ;;
14372 *)
14373 case `$CC -V 2>&1 | sed 5q` in
14374 *Sun\ C*)
14375 # Sun C++ 5.9
14376 no_undefined_flag_CXX=' -zdefs'
14377 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14378 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'
14379 hardcode_libdir_flag_spec_CXX='-R$libdir'
14380 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'
14381 compiler_needs_object_CXX=yes
14382
14383 # Not sure whether something based on
14384 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14385 # would be better.
14386 output_verbose_link_cmd='echo'
14387
14388 # Archives containing C++ object files must be created using
14389 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14390 # necessary to make sure instantiated templates are included
14391 # in the archive.
14392 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14393 ;;
14394 esac
14395 ;;
14396 esac
14397 ;;
14398
14399 lynxos*)
14400 # FIXME: insert proper C++ library support
14401 ld_shlibs_CXX=no
14402 ;;
14403
14404 m88k*)
14405 # FIXME: insert proper C++ library support
14406 ld_shlibs_CXX=no
14407 ;;
14408
14409 mvs*)
14410 case $cc_basename in
14411 cxx*)
14412 # FIXME: insert proper C++ library support
14413 ld_shlibs_CXX=no
14414 ;;
14415 *)
14416 # FIXME: insert proper C++ library support
14417 ld_shlibs_CXX=no
14418 ;;
14419 esac
14420 ;;
14421
14422 netbsd*)
14423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14424 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14425 wlarc=
14426 hardcode_libdir_flag_spec_CXX='-R$libdir'
14427 hardcode_direct_CXX=yes
14428 hardcode_shlibpath_var_CXX=no
14429 fi
14430 # Workaround some broken pre-1.5 toolchains
14431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14432 ;;
14433
14434 *nto* | *qnx*)
14435 ld_shlibs_CXX=yes
14436 ;;
14437
14438 openbsd2*)
14439 # C++ shared libraries are fairly broken
14440 ld_shlibs_CXX=no
14441 ;;
14442
14443 openbsd*)
14444 if test -f /usr/libexec/ld.so; then
14445 hardcode_direct_CXX=yes
14446 hardcode_shlibpath_var_CXX=no
14447 hardcode_direct_absolute_CXX=yes
14448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14451 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14452 export_dynamic_flag_spec_CXX='${wl}-E'
14453 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14454 fi
14455 output_verbose_link_cmd=echo
14456 else
14457 ld_shlibs_CXX=no
14458 fi
14459 ;;
14460
14461 osf3* | osf4* | osf5*)
14462 case $cc_basename in
14463 KCC*)
14464 # Kuck and Associates, Inc. (KAI) C++ Compiler
14465
14466 # KCC will only create a shared library if the output file
14467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14468 # to its proper name (with version) after linking.
14469 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'
14470
14471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14472 hardcode_libdir_separator_CXX=:
14473
14474 # Archives containing C++ object files must be created using
14475 # the KAI C++ compiler.
14476 case $host in
14477 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14478 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14479 esac
14480 ;;
14481 RCC*)
14482 # Rational C++ 2.4.1
14483 # FIXME: insert proper C++ library support
14484 ld_shlibs_CXX=no
14485 ;;
14486 cxx*)
14487 case $host in
14488 osf3*)
14489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14490 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'
14491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14492 ;;
14493 *)
14494 allow_undefined_flag_CXX=' -expect_unresolved \*'
14495 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'
14496 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14497 echo "-hidden">> $lib.exp~
14498 $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~
14499 $RM $lib.exp'
14500 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14501 ;;
14502 esac
14503
14504 hardcode_libdir_separator_CXX=:
14505
14506 # Commands to make compiler produce verbose output that lists
14507 # what "hidden" libraries, object files and flags are used when
14508 # linking a shared library.
14509 #
14510 # There doesn't appear to be a way to prevent this compiler from
14511 # explicitly linking system object files so we need to strip them
14512 # from the output so that they don't get included in the library
14513 # dependencies.
14514 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'
14515 ;;
14516 *)
14517 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14518 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14519 case $host in
14520 osf3*)
14521 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'
14522 ;;
14523 *)
14524 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'
14525 ;;
14526 esac
14527
14528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14529 hardcode_libdir_separator_CXX=:
14530
14531 # Commands to make compiler produce verbose output that lists
14532 # what "hidden" libraries, object files and flags are used when
14533 # linking a shared library.
14534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14535
14536 else
14537 # FIXME: insert proper C++ library support
14538 ld_shlibs_CXX=no
14539 fi
14540 ;;
14541 esac
14542 ;;
14543
14544 psos*)
14545 # FIXME: insert proper C++ library support
14546 ld_shlibs_CXX=no
14547 ;;
14548
14549 sunos4*)
14550 case $cc_basename in
14551 CC*)
14552 # Sun C++ 4.x
14553 # FIXME: insert proper C++ library support
14554 ld_shlibs_CXX=no
14555 ;;
14556 lcc*)
14557 # Lucid
14558 # FIXME: insert proper C++ library support
14559 ld_shlibs_CXX=no
14560 ;;
14561 *)
14562 # FIXME: insert proper C++ library support
14563 ld_shlibs_CXX=no
14564 ;;
14565 esac
14566 ;;
14567
14568 solaris*)
14569 case $cc_basename in
14570 CC*)
14571 # Sun C++ 4.2, 5.x and Centerline C++
14572 archive_cmds_need_lc_CXX=yes
14573 no_undefined_flag_CXX=' -zdefs'
14574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14575 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14576 $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'
14577
14578 hardcode_libdir_flag_spec_CXX='-R$libdir'
14579 hardcode_shlibpath_var_CXX=no
14580 case $host_os in
14581 solaris2.[0-5] | solaris2.[0-5].*) ;;
14582 *)
14583 # The compiler driver will combine and reorder linker options,
14584 # but understands `-z linker_flag'.
14585 # Supported since Solaris 2.6 (maybe 2.5.1?)
14586 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14587 ;;
14588 esac
14589 link_all_deplibs_CXX=yes
14590
14591 output_verbose_link_cmd='echo'
14592
14593 # Archives containing C++ object files must be created using
14594 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14595 # necessary to make sure instantiated templates are included
14596 # in the archive.
14597 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14598 ;;
14599 gcx*)
14600 # Green Hills C++ Compiler
14601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14602
14603 # The C++ compiler must be used to create the archive.
14604 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14605 ;;
14606 *)
14607 # GNU C++ compiler with Solaris linker
14608 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14609 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14610 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14611 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14612 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14613 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14614
14615 # Commands to make compiler produce verbose output that lists
14616 # what "hidden" libraries, object files and flags are used when
14617 # linking a shared library.
14618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14619 else
14620 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14621 # platform.
14622 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14624 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14625
14626 # Commands to make compiler produce verbose output that lists
14627 # what "hidden" libraries, object files and flags are used when
14628 # linking a shared library.
14629 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14630 fi
14631
14632 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14633 case $host_os in
14634 solaris2.[0-5] | solaris2.[0-5].*) ;;
14635 *)
14636 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14637 ;;
14638 esac
14639 fi
14640 ;;
14641 esac
14642 ;;
14643
14644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14645 no_undefined_flag_CXX='${wl}-z,text'
14646 archive_cmds_need_lc_CXX=no
14647 hardcode_shlibpath_var_CXX=no
14648 runpath_var='LD_RUN_PATH'
14649
14650 case $cc_basename in
14651 CC*)
14652 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 ;;
14655 *)
14656 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14658 ;;
14659 esac
14660 ;;
14661
14662 sysv5* | sco3.2v5* | sco5v6*)
14663 # Note: We can NOT use -z defs as we might desire, because we do not
14664 # link with -lc, and that would cause any symbols used from libc to
14665 # always be unresolved, which means just about no library would
14666 # ever link correctly. If we're not using GNU ld we use -z text
14667 # though, which does catch some bad symbols but isn't as heavy-handed
14668 # as -z defs.
14669 no_undefined_flag_CXX='${wl}-z,text'
14670 allow_undefined_flag_CXX='${wl}-z,nodefs'
14671 archive_cmds_need_lc_CXX=no
14672 hardcode_shlibpath_var_CXX=no
14673 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14674 hardcode_libdir_separator_CXX=':'
14675 link_all_deplibs_CXX=yes
14676 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14677 runpath_var='LD_RUN_PATH'
14678
14679 case $cc_basename in
14680 CC*)
14681 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14682 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 ;;
14684 *)
14685 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14687 ;;
14688 esac
14689 ;;
14690
14691 tandem*)
14692 case $cc_basename in
14693 NCC*)
14694 # NonStop-UX NCC 3.20
14695 # FIXME: insert proper C++ library support
14696 ld_shlibs_CXX=no
14697 ;;
14698 *)
14699 # FIXME: insert proper C++ library support
14700 ld_shlibs_CXX=no
14701 ;;
14702 esac
14703 ;;
14704
14705 vxworks*)
14706 # FIXME: insert proper C++ library support
14707 ld_shlibs_CXX=no
14708 ;;
14709
14710 *)
14711 # FIXME: insert proper C++ library support
14712 ld_shlibs_CXX=no
14713 ;;
14714 esac
14715
14716 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14717 $as_echo "$ld_shlibs_CXX" >&6; }
14718 test "$ld_shlibs_CXX" = no && can_build_shared=no
14719
14720 GCC_CXX="$GXX"
14721 LD_CXX="$LD"
14722
14723 ## CAVEAT EMPTOR:
14724 ## There is no encapsulation within the following macros, do not change
14725 ## the running order or otherwise move them around unless you know exactly
14726 ## what you are doing...
14727 # Dependencies to place before and after the object being linked:
14728 predep_objects_CXX=
14729 postdep_objects_CXX=
14730 predeps_CXX=
14731 postdeps_CXX=
14732 compiler_lib_search_path_CXX=
14733
14734 cat > conftest.$ac_ext <<_LT_EOF
14735 class Foo
14736 {
14737 public:
14738 Foo (void) { a = 0; }
14739 private:
14740 int a;
14741 };
14742 _LT_EOF
14743
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>&5
14746 ac_status=$?
14747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; then
14749 # Parse the compiler output and extract the necessary
14750 # objects, libraries and library flags.
14751
14752 # Sentinel used to keep track of whether or not we are before
14753 # the conftest object file.
14754 pre_test_object_deps_done=no
14755
14756 for p in `eval "$output_verbose_link_cmd"`; do
14757 case $p in
14758
14759 -L* | -R* | -l*)
14760 # Some compilers place space between "-{L,R}" and the path.
14761 # Remove the space.
14762 if test $p = "-L" ||
14763 test $p = "-R"; then
14764 prev=$p
14765 continue
14766 else
14767 prev=
14768 fi
14769
14770 if test "$pre_test_object_deps_done" = no; then
14771 case $p in
14772 -L* | -R*)
14773 # Internal compiler library paths should come after those
14774 # provided the user. The postdeps already come after the
14775 # user supplied libs so there is no need to process them.
14776 if test -z "$compiler_lib_search_path_CXX"; then
14777 compiler_lib_search_path_CXX="${prev}${p}"
14778 else
14779 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14780 fi
14781 ;;
14782 # The "-l" case would never come before the object being
14783 # linked, so don't bother handling this case.
14784 esac
14785 else
14786 if test -z "$postdeps_CXX"; then
14787 postdeps_CXX="${prev}${p}"
14788 else
14789 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14790 fi
14791 fi
14792 ;;
14793
14794 *.$objext)
14795 # This assumes that the test object file only shows up
14796 # once in the compiler output.
14797 if test "$p" = "conftest.$objext"; then
14798 pre_test_object_deps_done=yes
14799 continue
14800 fi
14801
14802 if test "$pre_test_object_deps_done" = no; then
14803 if test -z "$predep_objects_CXX"; then
14804 predep_objects_CXX="$p"
14805 else
14806 predep_objects_CXX="$predep_objects_CXX $p"
14807 fi
14808 else
14809 if test -z "$postdep_objects_CXX"; then
14810 postdep_objects_CXX="$p"
14811 else
14812 postdep_objects_CXX="$postdep_objects_CXX $p"
14813 fi
14814 fi
14815 ;;
14816
14817 *) ;; # Ignore the rest.
14818
14819 esac
14820 done
14821
14822 # Clean up.
14823 rm -f a.out a.exe
14824 else
14825 echo "libtool.m4: error: problem compiling CXX test program"
14826 fi
14827
14828 $RM -f confest.$objext
14829
14830 # PORTME: override above test on systems where it is broken
14831 case $host_os in
14832 interix[3-9]*)
14833 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14834 # hack all around it, let's just trust "g++" to DTRT.
14835 predep_objects_CXX=
14836 postdep_objects_CXX=
14837 postdeps_CXX=
14838 ;;
14839
14840 linux*)
14841 case `$CC -V 2>&1 | sed 5q` in
14842 *Sun\ C*)
14843 # Sun C++ 5.9
14844
14845 # The more standards-conforming stlport4 library is
14846 # incompatible with the Cstd library. Avoid specifying
14847 # it if it's in CXXFLAGS. Ignore libCrun as
14848 # -library=stlport4 depends on it.
14849 case " $CXX $CXXFLAGS " in
14850 *" -library=stlport4 "*)
14851 solaris_use_stlport4=yes
14852 ;;
14853 esac
14854
14855 if test "$solaris_use_stlport4" != yes; then
14856 postdeps_CXX='-library=Cstd -library=Crun'
14857 fi
14858 ;;
14859 esac
14860 ;;
14861
14862 solaris*)
14863 case $cc_basename in
14864 CC*)
14865 # The more standards-conforming stlport4 library is
14866 # incompatible with the Cstd library. Avoid specifying
14867 # it if it's in CXXFLAGS. Ignore libCrun as
14868 # -library=stlport4 depends on it.
14869 case " $CXX $CXXFLAGS " in
14870 *" -library=stlport4 "*)
14871 solaris_use_stlport4=yes
14872 ;;
14873 esac
14874
14875 # Adding this requires a known-good setup of shared libraries for
14876 # Sun compiler versions before 5.6, else PIC objects from an old
14877 # archive will be linked into the output, leading to subtle bugs.
14878 if test "$solaris_use_stlport4" != yes; then
14879 postdeps_CXX='-library=Cstd -library=Crun'
14880 fi
14881 ;;
14882 esac
14883 ;;
14884 esac
14885
14886
14887 case " $postdeps_CXX " in
14888 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14889 esac
14890 compiler_lib_search_dirs_CXX=
14891 if test -n "${compiler_lib_search_path_CXX}"; then
14892 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14893 fi
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925 lt_prog_compiler_wl_CXX=
14926 lt_prog_compiler_pic_CXX=
14927 lt_prog_compiler_static_CXX=
14928
14929 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14930 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14931
14932 # C++ specific cases for pic, static, wl, etc.
14933 if test "$GXX" = yes; then
14934 lt_prog_compiler_wl_CXX='-Wl,'
14935 lt_prog_compiler_static_CXX='-static'
14936
14937 case $host_os in
14938 aix*)
14939 # All AIX code is PIC.
14940 if test "$host_cpu" = ia64; then
14941 # AIX 5 now supports IA64 processor
14942 lt_prog_compiler_static_CXX='-Bstatic'
14943 fi
14944 ;;
14945
14946 amigaos*)
14947 case $host_cpu in
14948 powerpc)
14949 # see comment about AmigaOS4 .so support
14950 lt_prog_compiler_pic_CXX='-fPIC'
14951 ;;
14952 m68k)
14953 # FIXME: we need at least 68020 code to build shared libraries, but
14954 # adding the `-m68020' flag to GCC prevents building anything better,
14955 # like `-m68040'.
14956 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14957 ;;
14958 esac
14959 ;;
14960
14961 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14962 # PIC is the default for these OSes.
14963 ;;
14964 mingw* | cygwin* | os2* | pw32* | cegcc*)
14965 # This hack is so that the source file can tell whether it is being
14966 # built for inclusion in a dll (and should export symbols for example).
14967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14968 # (--disable-auto-import) libraries
14969 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14970 ;;
14971 darwin* | rhapsody*)
14972 # PIC is the default on this platform
14973 # Common symbols not allowed in MH_DYLIB files
14974 lt_prog_compiler_pic_CXX='-fno-common'
14975 ;;
14976 *djgpp*)
14977 # DJGPP does not support shared libraries at all
14978 lt_prog_compiler_pic_CXX=
14979 ;;
14980 interix[3-9]*)
14981 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14982 # Instead, we relocate shared libraries at runtime.
14983 ;;
14984 sysv4*MP*)
14985 if test -d /usr/nec; then
14986 lt_prog_compiler_pic_CXX=-Kconform_pic
14987 fi
14988 ;;
14989 hpux*)
14990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14992 # sets the default TLS model and affects inlining.
14993 case $host_cpu in
14994 hppa*64*)
14995 ;;
14996 *)
14997 lt_prog_compiler_pic_CXX='-fPIC'
14998 ;;
14999 esac
15000 ;;
15001 *qnx* | *nto*)
15002 # QNX uses GNU C++, but need to define -shared option too, otherwise
15003 # it will coredump.
15004 lt_prog_compiler_pic_CXX='-fPIC -shared'
15005 ;;
15006 *)
15007 lt_prog_compiler_pic_CXX='-fPIC'
15008 ;;
15009 esac
15010 else
15011 case $host_os in
15012 aix[4-9]*)
15013 # All AIX code is PIC.
15014 if test "$host_cpu" = ia64; then
15015 # AIX 5 now supports IA64 processor
15016 lt_prog_compiler_static_CXX='-Bstatic'
15017 else
15018 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15019 fi
15020 ;;
15021 chorus*)
15022 case $cc_basename in
15023 cxch68*)
15024 # Green Hills C++ Compiler
15025 # _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"
15026 ;;
15027 esac
15028 ;;
15029 dgux*)
15030 case $cc_basename in
15031 ec++*)
15032 lt_prog_compiler_pic_CXX='-KPIC'
15033 ;;
15034 ghcx*)
15035 # Green Hills C++ Compiler
15036 lt_prog_compiler_pic_CXX='-pic'
15037 ;;
15038 *)
15039 ;;
15040 esac
15041 ;;
15042 freebsd* | dragonfly*)
15043 # FreeBSD uses GNU C++
15044 ;;
15045 hpux9* | hpux10* | hpux11*)
15046 case $cc_basename in
15047 CC*)
15048 lt_prog_compiler_wl_CXX='-Wl,'
15049 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15050 if test "$host_cpu" != ia64; then
15051 lt_prog_compiler_pic_CXX='+Z'
15052 fi
15053 ;;
15054 aCC*)
15055 lt_prog_compiler_wl_CXX='-Wl,'
15056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15057 case $host_cpu in
15058 hppa*64*|ia64*)
15059 # +Z the default
15060 ;;
15061 *)
15062 lt_prog_compiler_pic_CXX='+Z'
15063 ;;
15064 esac
15065 ;;
15066 *)
15067 ;;
15068 esac
15069 ;;
15070 interix*)
15071 # This is c89, which is MS Visual C++ (no shared libs)
15072 # Anyone wants to do a port?
15073 ;;
15074 irix5* | irix6* | nonstopux*)
15075 case $cc_basename in
15076 CC*)
15077 lt_prog_compiler_wl_CXX='-Wl,'
15078 lt_prog_compiler_static_CXX='-non_shared'
15079 # CC pic flag -KPIC is the default.
15080 ;;
15081 *)
15082 ;;
15083 esac
15084 ;;
15085 linux* | k*bsd*-gnu)
15086 case $cc_basename in
15087 KCC*)
15088 # KAI C++ Compiler
15089 lt_prog_compiler_wl_CXX='--backend -Wl,'
15090 lt_prog_compiler_pic_CXX='-fPIC'
15091 ;;
15092 ecpc* )
15093 # old Intel C++ for x86_64 which still supported -KPIC.
15094 lt_prog_compiler_wl_CXX='-Wl,'
15095 lt_prog_compiler_pic_CXX='-KPIC'
15096 lt_prog_compiler_static_CXX='-static'
15097 ;;
15098 icpc* )
15099 # Intel C++, used to be incompatible with GCC.
15100 # ICC 10 doesn't accept -KPIC any more.
15101 lt_prog_compiler_wl_CXX='-Wl,'
15102 lt_prog_compiler_pic_CXX='-fPIC'
15103 lt_prog_compiler_static_CXX='-static'
15104 ;;
15105 pgCC* | pgcpp*)
15106 # Portland Group C++ compiler
15107 lt_prog_compiler_wl_CXX='-Wl,'
15108 lt_prog_compiler_pic_CXX='-fpic'
15109 lt_prog_compiler_static_CXX='-Bstatic'
15110 ;;
15111 cxx*)
15112 # Compaq C++
15113 # Make sure the PIC flag is empty. It appears that all Alpha
15114 # Linux and Compaq Tru64 Unix objects are PIC.
15115 lt_prog_compiler_pic_CXX=
15116 lt_prog_compiler_static_CXX='-non_shared'
15117 ;;
15118 xlc* | xlC*)
15119 # IBM XL 8.0 on PPC
15120 lt_prog_compiler_wl_CXX='-Wl,'
15121 lt_prog_compiler_pic_CXX='-qpic'
15122 lt_prog_compiler_static_CXX='-qstaticlink'
15123 ;;
15124 *)
15125 case `$CC -V 2>&1 | sed 5q` in
15126 *Sun\ C*)
15127 # Sun C++ 5.9
15128 lt_prog_compiler_pic_CXX='-KPIC'
15129 lt_prog_compiler_static_CXX='-Bstatic'
15130 lt_prog_compiler_wl_CXX='-Qoption ld '
15131 ;;
15132 esac
15133 ;;
15134 esac
15135 ;;
15136 lynxos*)
15137 ;;
15138 m88k*)
15139 ;;
15140 mvs*)
15141 case $cc_basename in
15142 cxx*)
15143 lt_prog_compiler_pic_CXX='-W c,exportall'
15144 ;;
15145 *)
15146 ;;
15147 esac
15148 ;;
15149 netbsd*)
15150 ;;
15151 *qnx* | *nto*)
15152 # QNX uses GNU C++, but need to define -shared option too, otherwise
15153 # it will coredump.
15154 lt_prog_compiler_pic_CXX='-fPIC -shared'
15155 ;;
15156 osf3* | osf4* | osf5*)
15157 case $cc_basename in
15158 KCC*)
15159 lt_prog_compiler_wl_CXX='--backend -Wl,'
15160 ;;
15161 RCC*)
15162 # Rational C++ 2.4.1
15163 lt_prog_compiler_pic_CXX='-pic'
15164 ;;
15165 cxx*)
15166 # Digital/Compaq C++
15167 lt_prog_compiler_wl_CXX='-Wl,'
15168 # Make sure the PIC flag is empty. It appears that all Alpha
15169 # Linux and Compaq Tru64 Unix objects are PIC.
15170 lt_prog_compiler_pic_CXX=
15171 lt_prog_compiler_static_CXX='-non_shared'
15172 ;;
15173 *)
15174 ;;
15175 esac
15176 ;;
15177 psos*)
15178 ;;
15179 solaris*)
15180 case $cc_basename in
15181 CC*)
15182 # Sun C++ 4.2, 5.x and Centerline C++
15183 lt_prog_compiler_pic_CXX='-KPIC'
15184 lt_prog_compiler_static_CXX='-Bstatic'
15185 lt_prog_compiler_wl_CXX='-Qoption ld '
15186 ;;
15187 gcx*)
15188 # Green Hills C++ Compiler
15189 lt_prog_compiler_pic_CXX='-PIC'
15190 ;;
15191 *)
15192 ;;
15193 esac
15194 ;;
15195 sunos4*)
15196 case $cc_basename in
15197 CC*)
15198 # Sun C++ 4.x
15199 lt_prog_compiler_pic_CXX='-pic'
15200 lt_prog_compiler_static_CXX='-Bstatic'
15201 ;;
15202 lcc*)
15203 # Lucid
15204 lt_prog_compiler_pic_CXX='-pic'
15205 ;;
15206 *)
15207 ;;
15208 esac
15209 ;;
15210 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15211 case $cc_basename in
15212 CC*)
15213 lt_prog_compiler_wl_CXX='-Wl,'
15214 lt_prog_compiler_pic_CXX='-KPIC'
15215 lt_prog_compiler_static_CXX='-Bstatic'
15216 ;;
15217 esac
15218 ;;
15219 tandem*)
15220 case $cc_basename in
15221 NCC*)
15222 # NonStop-UX NCC 3.20
15223 lt_prog_compiler_pic_CXX='-KPIC'
15224 ;;
15225 *)
15226 ;;
15227 esac
15228 ;;
15229 vxworks*)
15230 ;;
15231 *)
15232 lt_prog_compiler_can_build_shared_CXX=no
15233 ;;
15234 esac
15235 fi
15236
15237 case $host_os in
15238 # For platforms which do not support PIC, -DPIC is meaningless:
15239 *djgpp*)
15240 lt_prog_compiler_pic_CXX=
15241 ;;
15242 *)
15243 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15244 ;;
15245 esac
15246 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15247 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15248
15249
15250
15251 #
15252 # Check to make sure the PIC flag actually works.
15253 #
15254 if test -n "$lt_prog_compiler_pic_CXX"; then
15255 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15257 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15258 $as_echo_n "(cached) " >&6
15259 else
15260 lt_cv_prog_compiler_pic_works_CXX=no
15261 ac_outfile=conftest.$ac_objext
15262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15264 # Insert the option either (1) after the last *FLAGS variable, or
15265 # (2) before a word containing "conftest.", or (3) at the end.
15266 # Note that $ac_compile itself does not contain backslashes and begins
15267 # with a dollar sign (not a hyphen), so the echo should work correctly.
15268 # The option is referenced via a variable to avoid confusing sed.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\$as_me:15273: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>conftest.err)
15275 ac_status=$?
15276 cat conftest.err >&5
15277 echo "$as_me:15277: \$? = $ac_status" >&5
15278 if (exit $ac_status) && test -s "$ac_outfile"; then
15279 # The compiler can only warn and ignore the option if not recognized
15280 # So say no if there are warnings other than the usual output.
15281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15284 lt_cv_prog_compiler_pic_works_CXX=yes
15285 fi
15286 fi
15287 $RM conftest*
15288
15289 fi
15290 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15291 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15292
15293 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15294 case $lt_prog_compiler_pic_CXX in
15295 "" | " "*) ;;
15296 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15297 esac
15298 else
15299 lt_prog_compiler_pic_CXX=
15300 lt_prog_compiler_can_build_shared_CXX=no
15301 fi
15302
15303 fi
15304
15305
15306
15307 #
15308 # Check to make sure the static flag actually works.
15309 #
15310 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15311 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15313 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15314 $as_echo_n "(cached) " >&6
15315 else
15316 lt_cv_prog_compiler_static_works_CXX=no
15317 save_LDFLAGS="$LDFLAGS"
15318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15321 # The linker can only warn and ignore the option if not recognized
15322 # So say no if there are warnings
15323 if test -s conftest.err; then
15324 # Append any errors to the config.log.
15325 cat conftest.err 1>&5
15326 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15328 if diff conftest.exp conftest.er2 >/dev/null; then
15329 lt_cv_prog_compiler_static_works_CXX=yes
15330 fi
15331 else
15332 lt_cv_prog_compiler_static_works_CXX=yes
15333 fi
15334 fi
15335 $RM -r conftest*
15336 LDFLAGS="$save_LDFLAGS"
15337
15338 fi
15339 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15340 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15341
15342 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15343 :
15344 else
15345 lt_prog_compiler_static_CXX=
15346 fi
15347
15348
15349
15350
15351 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15353 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15354 $as_echo_n "(cached) " >&6
15355 else
15356 lt_cv_prog_compiler_c_o_CXX=no
15357 $RM -r conftest 2>/dev/null
15358 mkdir conftest
15359 cd conftest
15360 mkdir out
15361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15362
15363 lt_compiler_flag="-o out/conftest2.$ac_objext"
15364 # Insert the option either (1) after the last *FLAGS variable, or
15365 # (2) before a word containing "conftest.", or (3) at the end.
15366 # Note that $ac_compile itself does not contain backslashes and begins
15367 # with a dollar sign (not a hyphen), so the echo should work correctly.
15368 lt_compile=`echo "$ac_compile" | $SED \
15369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15371 -e 's:$: $lt_compiler_flag:'`
15372 (eval echo "\"\$as_me:15372: $lt_compile\"" >&5)
15373 (eval "$lt_compile" 2>out/conftest.err)
15374 ac_status=$?
15375 cat out/conftest.err >&5
15376 echo "$as_me:15376: \$? = $ac_status" >&5
15377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15378 then
15379 # The compiler can only warn and ignore the option if not recognized
15380 # So say no if there are warnings
15381 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15384 lt_cv_prog_compiler_c_o_CXX=yes
15385 fi
15386 fi
15387 chmod u+w . 2>&5
15388 $RM conftest*
15389 # SGI C++ compiler will create directory out/ii_files/ for
15390 # template instantiation
15391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15392 $RM out/* && rmdir out
15393 cd ..
15394 $RM -r conftest
15395 $RM conftest*
15396
15397 fi
15398 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15400
15401
15402
15403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15405 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15406 $as_echo_n "(cached) " >&6
15407 else
15408 lt_cv_prog_compiler_c_o_CXX=no
15409 $RM -r conftest 2>/dev/null
15410 mkdir conftest
15411 cd conftest
15412 mkdir out
15413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15414
15415 lt_compiler_flag="-o out/conftest2.$ac_objext"
15416 # Insert the option either (1) after the last *FLAGS variable, or
15417 # (2) before a word containing "conftest.", or (3) at the end.
15418 # Note that $ac_compile itself does not contain backslashes and begins
15419 # with a dollar sign (not a hyphen), so the echo should work correctly.
15420 lt_compile=`echo "$ac_compile" | $SED \
15421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423 -e 's:$: $lt_compiler_flag:'`
15424 (eval echo "\"\$as_me:15424: $lt_compile\"" >&5)
15425 (eval "$lt_compile" 2>out/conftest.err)
15426 ac_status=$?
15427 cat out/conftest.err >&5
15428 echo "$as_me:15428: \$? = $ac_status" >&5
15429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15430 then
15431 # The compiler can only warn and ignore the option if not recognized
15432 # So say no if there are warnings
15433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15436 lt_cv_prog_compiler_c_o_CXX=yes
15437 fi
15438 fi
15439 chmod u+w . 2>&5
15440 $RM conftest*
15441 # SGI C++ compiler will create directory out/ii_files/ for
15442 # template instantiation
15443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15444 $RM out/* && rmdir out
15445 cd ..
15446 $RM -r conftest
15447 $RM conftest*
15448
15449 fi
15450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15451 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15452
15453
15454
15455
15456 hard_links="nottested"
15457 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15458 # do not overwrite the value of need_locks provided by the user
15459 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15460 $as_echo_n "checking if we can lock with hard links... " >&6; }
15461 hard_links=yes
15462 $RM conftest*
15463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15464 touch conftest.a
15465 ln conftest.a conftest.b 2>&5 || hard_links=no
15466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15467 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15468 $as_echo "$hard_links" >&6; }
15469 if test "$hard_links" = no; then
15470 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15472 need_locks=warn
15473 fi
15474 else
15475 need_locks=no
15476 fi
15477
15478
15479
15480 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15482
15483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15484 case $host_os in
15485 aix[4-9]*)
15486 # If we're using GNU nm, then we don't want the "-C" option.
15487 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15489 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'
15490 else
15491 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'
15492 fi
15493 ;;
15494 pw32*)
15495 export_symbols_cmds_CXX="$ltdll_cmds"
15496 ;;
15497 cygwin* | mingw* | cegcc*)
15498 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'
15499 ;;
15500 *)
15501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15502 ;;
15503 esac
15504 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15505
15506 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15507 $as_echo "$ld_shlibs_CXX" >&6; }
15508 test "$ld_shlibs_CXX" = no && can_build_shared=no
15509
15510 with_gnu_ld_CXX=$with_gnu_ld
15511
15512
15513
15514
15515
15516
15517 #
15518 # Do we need to explicitly link libc?
15519 #
15520 case "x$archive_cmds_need_lc_CXX" in
15521 x|xyes)
15522 # Assume -lc should be added
15523 archive_cmds_need_lc_CXX=yes
15524
15525 if test "$enable_shared" = yes && test "$GCC" = yes; then
15526 case $archive_cmds_CXX in
15527 *'~'*)
15528 # FIXME: we may have to deal with multi-command sequences.
15529 ;;
15530 '$CC '*)
15531 # Test whether the compiler implicitly links with -lc since on some
15532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15533 # to ld, don't add -lc before -lgcc.
15534 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15535 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15536 $RM conftest*
15537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15538
15539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15540 (eval $ac_compile) 2>&5
15541 ac_status=$?
15542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } 2>conftest.err; then
15544 soname=conftest
15545 lib=conftest
15546 libobjs=conftest.$ac_objext
15547 deplibs=
15548 wl=$lt_prog_compiler_wl_CXX
15549 pic_flag=$lt_prog_compiler_pic_CXX
15550 compiler_flags=-v
15551 linker_flags=-v
15552 verstring=
15553 output_objdir=.
15554 libname=conftest
15555 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15556 allow_undefined_flag_CXX=
15557 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15558 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15559 ac_status=$?
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }
15562 then
15563 archive_cmds_need_lc_CXX=no
15564 else
15565 archive_cmds_need_lc_CXX=yes
15566 fi
15567 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15568 else
15569 cat conftest.err 1>&5
15570 fi
15571 $RM conftest*
15572 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15573 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15574 ;;
15575 esac
15576 fi
15577 ;;
15578 esac
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15645
15646 library_names_spec=
15647 libname_spec='lib$name'
15648 soname_spec=
15649 shrext_cmds=".so"
15650 postinstall_cmds=
15651 postuninstall_cmds=
15652 finish_cmds=
15653 finish_eval=
15654 shlibpath_var=
15655 shlibpath_overrides_runpath=unknown
15656 version_type=none
15657 dynamic_linker="$host_os ld.so"
15658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15659 need_lib_prefix=unknown
15660 hardcode_into_libs=no
15661
15662 # when you set need_version to no, make sure it does not cause -set_version
15663 # flags to be left without arguments
15664 need_version=unknown
15665
15666 case $host_os in
15667 aix3*)
15668 version_type=linux
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15670 shlibpath_var=LIBPATH
15671
15672 # AIX 3 has no versioning support, so we append a major version to the name.
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 ;;
15675
15676 aix[4-9]*)
15677 version_type=linux
15678 need_lib_prefix=no
15679 need_version=no
15680 hardcode_into_libs=yes
15681 if test "$host_cpu" = ia64; then
15682 # AIX 5 supports IA64
15683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 else
15686 # With GCC up to 2.95.x, collect2 would create an import file
15687 # for dependence libraries. The import file would start with
15688 # the line `#! .'. This would cause the generated library to
15689 # depend on `.', always an invalid library. This was fixed in
15690 # development snapshots of GCC prior to 3.0.
15691 case $host_os in
15692 aix4 | aix4.[01] | aix4.[01].*)
15693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15694 echo ' yes '
15695 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15696 :
15697 else
15698 can_build_shared=no
15699 fi
15700 ;;
15701 esac
15702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15703 # soname into executable. Probably we can add versioning support to
15704 # collect2, so additional links can be useful in future.
15705 if test "$aix_use_runtimelinking" = yes; then
15706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15707 # instead of lib<name>.a to let people know that these are not
15708 # typical AIX shared libraries.
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 else
15711 # We preserve .a as extension for shared libraries through AIX4.2
15712 # and later when we are not doing run time linking.
15713 library_names_spec='${libname}${release}.a $libname.a'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 fi
15716 shlibpath_var=LIBPATH
15717 fi
15718 ;;
15719
15720 amigaos*)
15721 case $host_cpu in
15722 powerpc)
15723 # Since July 2007 AmigaOS4 officially supports .so libraries.
15724 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726 ;;
15727 m68k)
15728 library_names_spec='$libname.ixlibrary $libname.a'
15729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15730 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'
15731 ;;
15732 esac
15733 ;;
15734
15735 beos*)
15736 library_names_spec='${libname}${shared_ext}'
15737 dynamic_linker="$host_os ld.so"
15738 shlibpath_var=LIBRARY_PATH
15739 ;;
15740
15741 bsdi[45]*)
15742 version_type=linux
15743 need_version=no
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15750 # the default ld.so.conf also contains /usr/contrib/lib and
15751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15752 # libtool to hard-code these into programs
15753 ;;
15754
15755 cygwin* | mingw* | pw32* | cegcc*)
15756 version_type=windows
15757 shrext_cmds=".dll"
15758 need_version=no
15759 need_lib_prefix=no
15760
15761 case $GCC,$host_os in
15762 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15763 library_names_spec='$libname.dll.a'
15764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15765 postinstall_cmds='base_file=`basename \${file}`~
15766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15767 dldir=$destdir/`dirname \$dlpath`~
15768 test -d \$dldir || mkdir -p \$dldir~
15769 $install_prog $dir/$dlname \$dldir/$dlname~
15770 chmod a+x \$dldir/$dlname~
15771 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15772 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15773 fi'
15774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15775 dlpath=$dir/\$dldll~
15776 $RM \$dlpath'
15777 shlibpath_overrides_runpath=yes
15778
15779 case $host_os in
15780 cygwin*)
15781 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15782 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15783 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15784 ;;
15785 mingw* | cegcc*)
15786 # MinGW DLLs use traditional 'lib' prefix
15787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15788 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15789 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15790 # It is most probably a Windows format PATH printed by
15791 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15792 # path with ; separators, and with drive letters. We can handle the
15793 # drive letters (cygwin fileutils understands them), so leave them,
15794 # especially as we might pass files found there to a mingw objdump,
15795 # which wouldn't understand a cygwinified path. Ahh.
15796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15797 else
15798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15799 fi
15800 ;;
15801 pw32*)
15802 # pw32 DLLs use 'pw' prefix rather than 'lib'
15803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15804 ;;
15805 esac
15806 ;;
15807
15808 *)
15809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15810 ;;
15811 esac
15812 dynamic_linker='Win32 ld.exe'
15813 # FIXME: first we should search . and the directory the executable is in
15814 shlibpath_var=PATH
15815 ;;
15816
15817 darwin* | rhapsody*)
15818 dynamic_linker="$host_os dyld"
15819 version_type=darwin
15820 need_lib_prefix=no
15821 need_version=no
15822 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15823 soname_spec='${libname}${release}${major}$shared_ext'
15824 shlibpath_overrides_runpath=yes
15825 shlibpath_var=DYLD_LIBRARY_PATH
15826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15827
15828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15829 ;;
15830
15831 dgux*)
15832 version_type=linux
15833 need_lib_prefix=no
15834 need_version=no
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 ;;
15839
15840 freebsd1*)
15841 dynamic_linker=no
15842 ;;
15843
15844 freebsd* | dragonfly*)
15845 # DragonFly does not have aout. When/if they implement a new
15846 # versioning mechanism, adjust this.
15847 if test -x /usr/bin/objformat; then
15848 objformat=`/usr/bin/objformat`
15849 else
15850 case $host_os in
15851 freebsd[123]*) objformat=aout ;;
15852 *) objformat=elf ;;
15853 esac
15854 fi
15855 version_type=freebsd-$objformat
15856 case $version_type in
15857 freebsd-elf*)
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15859 need_version=no
15860 need_lib_prefix=no
15861 ;;
15862 freebsd-*)
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15864 need_version=yes
15865 ;;
15866 esac
15867 shlibpath_var=LD_LIBRARY_PATH
15868 case $host_os in
15869 freebsd2*)
15870 shlibpath_overrides_runpath=yes
15871 ;;
15872 freebsd3.[01]* | freebsdelf3.[01]*)
15873 shlibpath_overrides_runpath=yes
15874 hardcode_into_libs=yes
15875 ;;
15876 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15877 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15878 shlibpath_overrides_runpath=no
15879 hardcode_into_libs=yes
15880 ;;
15881 *) # from 4.6 on, and DragonFly
15882 shlibpath_overrides_runpath=yes
15883 hardcode_into_libs=yes
15884 ;;
15885 esac
15886 ;;
15887
15888 gnu*)
15889 version_type=linux
15890 need_lib_prefix=no
15891 need_version=no
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 hardcode_into_libs=yes
15896 ;;
15897
15898 hpux9* | hpux10* | hpux11*)
15899 # Give a soname corresponding to the major version so that dld.sl refuses to
15900 # link against other versions.
15901 version_type=sunos
15902 need_lib_prefix=no
15903 need_version=no
15904 case $host_cpu in
15905 ia64*)
15906 shrext_cmds='.so'
15907 hardcode_into_libs=yes
15908 dynamic_linker="$host_os dld.so"
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 if test "X$HPUX_IA64_MODE" = X32; then
15914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15915 else
15916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15917 fi
15918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919 ;;
15920 hppa*64*)
15921 shrext_cmds='.sl'
15922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.sl"
15924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15930 ;;
15931 *)
15932 shrext_cmds='.sl'
15933 dynamic_linker="$host_os dld.sl"
15934 shlibpath_var=SHLIB_PATH
15935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 ;;
15939 esac
15940 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15941 postinstall_cmds='chmod 555 $lib'
15942 ;;
15943
15944 interix[3-9]*)
15945 version_type=linux
15946 need_lib_prefix=no
15947 need_version=no
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15951 shlibpath_var=LD_LIBRARY_PATH
15952 shlibpath_overrides_runpath=no
15953 hardcode_into_libs=yes
15954 ;;
15955
15956 irix5* | irix6* | nonstopux*)
15957 case $host_os in
15958 nonstopux*) version_type=nonstopux ;;
15959 *)
15960 if test "$lt_cv_prog_gnu_ld" = yes; then
15961 version_type=linux
15962 else
15963 version_type=irix
15964 fi ;;
15965 esac
15966 need_lib_prefix=no
15967 need_version=no
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15970 case $host_os in
15971 irix5* | nonstopux*)
15972 libsuff= shlibsuff=
15973 ;;
15974 *)
15975 case $LD in # libtool.m4 will add one of these switches to LD
15976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15977 libsuff= shlibsuff= libmagic=32-bit;;
15978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15979 libsuff=32 shlibsuff=N32 libmagic=N32;;
15980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15982 *) libsuff= shlibsuff= libmagic=never-match;;
15983 esac
15984 ;;
15985 esac
15986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15987 shlibpath_overrides_runpath=no
15988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15990 hardcode_into_libs=yes
15991 ;;
15992
15993 # No shared lib support for Linux oldld, aout, or coff.
15994 linux*oldld* | linux*aout* | linux*coff*)
15995 dynamic_linker=no
15996 ;;
15997
15998 # This must be Linux ELF.
15999 linux* | k*bsd*-gnu)
16000 version_type=linux
16001 need_lib_prefix=no
16002 need_version=no
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=no
16008 # Some binutils ld are patched to set DT_RUNPATH
16009 save_LDFLAGS=$LDFLAGS
16010 save_libdir=$libdir
16011 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16012 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h. */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019
16020 int
16021 main ()
16022 {
16023
16024 ;
16025 return 0;
16026 }
16027 _ACEOF
16028 rm -f conftest.$ac_objext conftest$ac_exeext
16029 if { (ac_try="$ac_link"
16030 case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033 esac
16034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_link") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_cxx_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest$ac_exeext && {
16046 test "$cross_compiling" = yes ||
16047 $as_test_x conftest$ac_exeext
16048 }; then
16049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16050 shlibpath_overrides_runpath=yes
16051 fi
16052
16053 else
16054 $as_echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057
16058 fi
16059
16060 rm -rf conftest.dSYM
16061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16062 conftest$ac_exeext conftest.$ac_ext
16063 LDFLAGS=$save_LDFLAGS
16064 libdir=$save_libdir
16065
16066 # This implies no fast_install, which is unacceptable.
16067 # Some rework will be needed to allow for fast_install
16068 # before this can be enabled.
16069 hardcode_into_libs=yes
16070
16071 # Add ABI-specific directories to the system library path.
16072 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16073
16074 # Append ld.so.conf contents to the search path
16075 if test -f /etc/ld.so.conf; then
16076 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' ' '`
16077 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16078 fi
16079
16080 # We used to test for /lib/ld.so.1 and disable shared libraries on
16081 # powerpc, because MkLinux only supported shared libraries with the
16082 # GNU dynamic linker. Since this was broken with cross compilers,
16083 # most powerpc-linux boxes support dynamic linking these days and
16084 # people can always --disable-shared, the test was removed, and we
16085 # assume the GNU/Linux dynamic linker is in use.
16086 dynamic_linker='GNU/Linux ld.so'
16087 ;;
16088
16089 netbsd*)
16090 version_type=sunos
16091 need_lib_prefix=no
16092 need_version=no
16093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16096 dynamic_linker='NetBSD (a.out) ld.so'
16097 else
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 dynamic_linker='NetBSD ld.elf_so'
16101 fi
16102 shlibpath_var=LD_LIBRARY_PATH
16103 shlibpath_overrides_runpath=yes
16104 hardcode_into_libs=yes
16105 ;;
16106
16107 newsos6)
16108 version_type=linux
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=yes
16112 ;;
16113
16114 *nto* | *qnx*)
16115 version_type=qnx
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 shlibpath_overrides_runpath=no
16122 hardcode_into_libs=yes
16123 dynamic_linker='ldqnx.so'
16124 ;;
16125
16126 openbsd*)
16127 version_type=sunos
16128 sys_lib_dlsearch_path_spec="/usr/lib"
16129 need_lib_prefix=no
16130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16131 case $host_os in
16132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16133 *) need_version=no ;;
16134 esac
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16139 case $host_os in
16140 openbsd2.[89] | openbsd2.[89].*)
16141 shlibpath_overrides_runpath=no
16142 ;;
16143 *)
16144 shlibpath_overrides_runpath=yes
16145 ;;
16146 esac
16147 else
16148 shlibpath_overrides_runpath=yes
16149 fi
16150 ;;
16151
16152 os2*)
16153 libname_spec='$name'
16154 shrext_cmds=".dll"
16155 need_lib_prefix=no
16156 library_names_spec='$libname${shared_ext} $libname.a'
16157 dynamic_linker='OS/2 ld.exe'
16158 shlibpath_var=LIBPATH
16159 ;;
16160
16161 osf3* | osf4* | osf5*)
16162 version_type=osf
16163 need_lib_prefix=no
16164 need_version=no
16165 soname_spec='${libname}${release}${shared_ext}$major'
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16170 ;;
16171
16172 rdos*)
16173 dynamic_linker=no
16174 ;;
16175
16176 solaris*)
16177 version_type=linux
16178 need_lib_prefix=no
16179 need_version=no
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181 soname_spec='${libname}${release}${shared_ext}$major'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16185 # ldd complains unless libraries are executable
16186 postinstall_cmds='chmod +x $lib'
16187 ;;
16188
16189 sunos4*)
16190 version_type=sunos
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 shlibpath_overrides_runpath=yes
16195 if test "$with_gnu_ld" = yes; then
16196 need_lib_prefix=no
16197 fi
16198 need_version=yes
16199 ;;
16200
16201 sysv4 | sysv4.3*)
16202 version_type=linux
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 case $host_vendor in
16207 sni)
16208 shlibpath_overrides_runpath=no
16209 need_lib_prefix=no
16210 runpath_var=LD_RUN_PATH
16211 ;;
16212 siemens)
16213 need_lib_prefix=no
16214 ;;
16215 motorola)
16216 need_lib_prefix=no
16217 need_version=no
16218 shlibpath_overrides_runpath=no
16219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16220 ;;
16221 esac
16222 ;;
16223
16224 sysv4*MP*)
16225 if test -d /usr/nec ;then
16226 version_type=linux
16227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16228 soname_spec='$libname${shared_ext}.$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 fi
16231 ;;
16232
16233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16234 version_type=freebsd-elf
16235 need_lib_prefix=no
16236 need_version=no
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=yes
16241 hardcode_into_libs=yes
16242 if test "$with_gnu_ld" = yes; then
16243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16244 else
16245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16246 case $host_os in
16247 sco3.2v5*)
16248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16249 ;;
16250 esac
16251 fi
16252 sys_lib_dlsearch_path_spec='/usr/lib'
16253 ;;
16254
16255 tpf*)
16256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16257 version_type=linux
16258 need_lib_prefix=no
16259 need_version=no
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=no
16263 hardcode_into_libs=yes
16264 ;;
16265
16266 uts4*)
16267 version_type=linux
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269 soname_spec='${libname}${release}${shared_ext}$major'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 ;;
16272
16273 *)
16274 dynamic_linker=no
16275 ;;
16276 esac
16277 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16278 $as_echo "$dynamic_linker" >&6; }
16279 test "$dynamic_linker" = no && can_build_shared=no
16280
16281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16282 if test "$GCC" = yes; then
16283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16284 fi
16285
16286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16288 fi
16289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16291 fi
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16330 hardcode_action_CXX=
16331 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16332 test -n "$runpath_var_CXX" ||
16333 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16334
16335 # We can hardcode non-existent directories.
16336 if test "$hardcode_direct_CXX" != no &&
16337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16338 # have to relink, otherwise we might link with an installed library
16339 # when we should be linking with a yet-to-be-installed one
16340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16341 test "$hardcode_minus_L_CXX" != no; then
16342 # Linking always hardcodes the temporary library directory.
16343 hardcode_action_CXX=relink
16344 else
16345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16346 hardcode_action_CXX=immediate
16347 fi
16348 else
16349 # We cannot hardcode anything, or else we can only hardcode existing
16350 # directories.
16351 hardcode_action_CXX=unsupported
16352 fi
16353 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16354 $as_echo "$hardcode_action_CXX" >&6; }
16355
16356 if test "$hardcode_action_CXX" = relink ||
16357 test "$inherit_rpath_CXX" = yes; then
16358 # Fast installation is not supported
16359 enable_fast_install=no
16360 elif test "$shlibpath_overrides_runpath" = yes ||
16361 test "$enable_shared" = no; then
16362 # Fast installation is not necessary
16363 enable_fast_install=needless
16364 fi
16365
16366
16367
16368
16369
16370
16371
16372 fi # test -n "$compiler"
16373
16374 CC=$lt_save_CC
16375 LDCXX=$LD
16376 LD=$lt_save_LD
16377 GCC=$lt_save_GCC
16378 with_gnu_ld=$lt_save_with_gnu_ld
16379 lt_cv_path_LDCXX=$lt_cv_path_LD
16380 lt_cv_path_LD=$lt_save_path_LD
16381 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16382 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16383 fi # test "$_lt_caught_CXX_error" != yes
16384
16385 ac_ext=c
16386 ac_cpp='$CPP $CPPFLAGS'
16387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403 ac_config_commands="$ac_config_commands libtool"
16404
16405
16406
16407
16408 # Only expand once:
16409
16410
16411
16412
16413 saveLIBS="$LIBS"
16414 { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
16415 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
16416 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
16417 $as_echo_n "(cached) " >&6
16418 else
16419 ac_check_lib_save_LIBS=$LIBS
16420 LIBS="-lgdbm $LIBS"
16421 cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h. */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16427
16428 /* Override any GCC internal prototype to avoid an error.
16429 Use char because int might match the return type of a GCC
16430 builtin and then its argument prototype would still apply. */
16431 #ifdef __cplusplus
16432 extern "C"
16433 #endif
16434 char gdbm_open ();
16435 int
16436 main ()
16437 {
16438 return gdbm_open ();
16439 ;
16440 return 0;
16441 }
16442 _ACEOF
16443 rm -f conftest.$ac_objext conftest$ac_exeext
16444 if { (ac_try="$ac_link"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448 esac
16449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16450 $as_echo "$ac_try_echo") >&5
16451 (eval "$ac_link") 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest$ac_exeext && {
16461 test "$cross_compiling" = yes ||
16462 $as_test_x conftest$ac_exeext
16463 }; then
16464 ac_cv_lib_gdbm_gdbm_open=yes
16465 else
16466 $as_echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16468
16469 ac_cv_lib_gdbm_gdbm_open=no
16470 fi
16471
16472 rm -rf conftest.dSYM
16473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16474 conftest$ac_exeext conftest.$ac_ext
16475 LIBS=$ac_check_lib_save_LIBS
16476 fi
16477 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
16478 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
16479 if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
16480 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
16481 fi
16482
16483
16484 { $as_echo "$as_me:$LINENO: checking for gdbm_open" >&5
16485 $as_echo_n "checking for gdbm_open... " >&6; }
16486 if test "${ac_cv_func_gdbm_open+set}" = set; then
16487 $as_echo_n "(cached) " >&6
16488 else
16489 cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
16496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16497 #define gdbm_open innocuous_gdbm_open
16498
16499 /* System header to define __stub macros and hopefully few prototypes,
16500 which can conflict with char gdbm_open (); below.
16501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16502 <limits.h> exists even on freestanding compilers. */
16503
16504 #ifdef __STDC__
16505 # include <limits.h>
16506 #else
16507 # include <assert.h>
16508 #endif
16509
16510 #undef gdbm_open
16511
16512 /* Override any GCC internal prototype to avoid an error.
16513 Use char because int might match the return type of a GCC
16514 builtin and then its argument prototype would still apply. */
16515 #ifdef __cplusplus
16516 extern "C"
16517 #endif
16518 char gdbm_open ();
16519 /* The GNU C library defines this for functions which it implements
16520 to always fail with ENOSYS. Some functions are actually named
16521 something starting with __ and the normal name is an alias. */
16522 #if defined __stub_gdbm_open || defined __stub___gdbm_open
16523 choke me
16524 #endif
16525
16526 int
16527 main ()
16528 {
16529 return gdbm_open ();
16530 ;
16531 return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (ac_try="$ac_link"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539 esac
16540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16541 $as_echo "$ac_try_echo") >&5
16542 (eval "$ac_link") 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest$ac_exeext && {
16552 test "$cross_compiling" = yes ||
16553 $as_test_x conftest$ac_exeext
16554 }; then
16555 ac_cv_func_gdbm_open=yes
16556 else
16557 $as_echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 ac_cv_func_gdbm_open=no
16561 fi
16562
16563 rm -rf conftest.dSYM
16564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16565 conftest$ac_exeext conftest.$ac_ext
16566 fi
16567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
16568 $as_echo "$ac_cv_func_gdbm_open" >&6; }
16569 if test "x$ac_cv_func_gdbm_open" = x""yes; then
16570 FOUND_GDBM=1
16571 else
16572 FOUND_GDBM=0
16573 fi
16574
16575
16576 if test "$FOUND_GDBM" = 1
16577 then
16578
16579 for ac_func in gdbm_fdesc
16580 do
16581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16583 $as_echo_n "checking for $ac_func... " >&6; }
16584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16585 $as_echo_n "(cached) " >&6
16586 else
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h. */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595 #define $ac_func innocuous_$ac_func
16596
16597 /* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char $ac_func (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16601
16602 #ifdef __STDC__
16603 # include <limits.h>
16604 #else
16605 # include <assert.h>
16606 #endif
16607
16608 #undef $ac_func
16609
16610 /* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16613 #ifdef __cplusplus
16614 extern "C"
16615 #endif
16616 char $ac_func ();
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined __stub_$ac_func || defined __stub___$ac_func
16621 choke me
16622 #endif
16623
16624 int
16625 main ()
16626 {
16627 return $ac_func ();
16628 ;
16629 return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639 $as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext && {
16650 test "$cross_compiling" = yes ||
16651 $as_test_x conftest$ac_exeext
16652 }; then
16653 eval "$as_ac_var=yes"
16654 else
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 eval "$as_ac_var=no"
16659 fi
16660
16661 rm -rf conftest.dSYM
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
16664 fi
16665 ac_res=`eval 'as_val=${'$as_ac_var'}
16666 $as_echo "$as_val"'`
16667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16668 $as_echo "$ac_res" >&6; }
16669 as_val=`eval 'as_val=${'$as_ac_var'}
16670 $as_echo "$as_val"'`
16671 if test "x$as_val" = x""yes; then
16672 cat >>confdefs.h <<_ACEOF
16673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16674 _ACEOF
16675
16676 fi
16677 done
16678
16679 fi
16680
16681
16682 for ac_header in unistd.h fcntl.h
16683 do
16684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16687 $as_echo_n "checking for $ac_header... " >&6; }
16688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16689 $as_echo_n "(cached) " >&6
16690 fi
16691 ac_res=`eval 'as_val=${'$as_ac_Header'}
16692 $as_echo "$as_val"'`
16693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16694 $as_echo "$ac_res" >&6; }
16695 else
16696 # Is the header compilable?
16697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16698 $as_echo_n "checking $ac_header usability... " >&6; }
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 $ac_includes_default
16706 #include <$ac_header>
16707 _ACEOF
16708 rm -f conftest.$ac_objext
16709 if { (ac_try="$ac_compile"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713 esac
16714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16715 $as_echo "$ac_try_echo") >&5
16716 (eval "$ac_compile") 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && {
16723 test -z "$ac_c_werror_flag" ||
16724 test ! -s conftest.err
16725 } && test -s conftest.$ac_objext; then
16726 ac_header_compiler=yes
16727 else
16728 $as_echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_header_compiler=no
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16736 $as_echo "$ac_header_compiler" >&6; }
16737
16738 # Is the header present?
16739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16740 $as_echo_n "checking $ac_header presence... " >&6; }
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 #include <$ac_header>
16748 _ACEOF
16749 if { (ac_try="$ac_cpp conftest.$ac_ext"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16753 esac
16754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16755 $as_echo "$ac_try_echo") >&5
16756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16757 ac_status=$?
16758 grep -v '^ *+' conftest.er1 >conftest.err
16759 rm -f conftest.er1
16760 cat conftest.err >&5
16761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } >/dev/null && {
16763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16764 test ! -s conftest.err
16765 }; then
16766 ac_header_preproc=yes
16767 else
16768 $as_echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16770
16771 ac_header_preproc=no
16772 fi
16773
16774 rm -f conftest.err conftest.$ac_ext
16775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16776 $as_echo "$ac_header_preproc" >&6; }
16777
16778 # So? What about this header?
16779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16780 yes:no: )
16781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16785 ac_header_preproc=yes
16786 ;;
16787 no:yes:* )
16788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16791 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16795 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16800 ( cat <<\_ASBOX
16801 ## -------------------------------------------------- ##
16802 ## Report this to courier-users@lists.sourceforge.net ##
16803 ## -------------------------------------------------- ##
16804 _ASBOX
16805 ) | sed "s/^/$as_me: WARNING: /" >&2
16806 ;;
16807 esac
16808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16809 $as_echo_n "checking for $ac_header... " >&6; }
16810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16811 $as_echo_n "(cached) " >&6
16812 else
16813 eval "$as_ac_Header=\$ac_header_preproc"
16814 fi
16815 ac_res=`eval 'as_val=${'$as_ac_Header'}
16816 $as_echo "$as_val"'`
16817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16818 $as_echo "$ac_res" >&6; }
16819
16820 fi
16821 as_val=`eval 'as_val=${'$as_ac_Header'}
16822 $as_echo "$as_val"'`
16823 if test "x$as_val" = x""yes; then
16824 cat >>confdefs.h <<_ACEOF
16825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826 _ACEOF
16827
16828 fi
16829
16830 done
16831
16832
16833 LIBS="$saveLIBS"
16834
16835
16836
16837 if test "$FOUND_GDBM" = 1; then
16838 FOUND_GDBM_TRUE=
16839 FOUND_GDBM_FALSE='#'
16840 else
16841 FOUND_GDBM_TRUE='#'
16842 FOUND_GDBM_FALSE=
16843 fi
16844
16845
16846
16847 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16848 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16849 if test "${ac_cv_c_const+set}" = set; then
16850 $as_echo_n "(cached) " >&6
16851 else
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858
16859 int
16860 main ()
16861 {
16862 /* FIXME: Include the comments suggested by Paul. */
16863 #ifndef __cplusplus
16864 /* Ultrix mips cc rejects this. */
16865 typedef int charset[2];
16866 const charset cs;
16867 /* SunOS 4.1.1 cc rejects this. */
16868 char const *const *pcpcc;
16869 char **ppc;
16870 /* NEC SVR4.0.2 mips cc rejects this. */
16871 struct point {int x, y;};
16872 static struct point const zero = {0,0};
16873 /* AIX XL C 1.02.0.0 rejects this.
16874 It does not let you subtract one const X* pointer from another in
16875 an arm of an if-expression whose if-part is not a constant
16876 expression */
16877 const char *g = "string";
16878 pcpcc = &g + (g ? g-g : 0);
16879 /* HPUX 7.0 cc rejects these. */
16880 ++pcpcc;
16881 ppc = (char**) pcpcc;
16882 pcpcc = (char const *const *) ppc;
16883 { /* SCO 3.2v4 cc rejects this. */
16884 char *t;
16885 char const *s = 0 ? (char *) 0 : (char const *) 0;
16886
16887 *t++ = 0;
16888 if (s) return 0;
16889 }
16890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16891 int x[] = {25, 17};
16892 const int *foo = &x[0];
16893 ++foo;
16894 }
16895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16896 typedef const int *iptr;
16897 iptr p = 0;
16898 ++p;
16899 }
16900 { /* AIX XL C 1.02.0.0 rejects this saying
16901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16902 struct s { int j; const int *ap[3]; };
16903 struct s *b; b->j = 5;
16904 }
16905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16906 const int foo = 10;
16907 if (!foo) return 0;
16908 }
16909 return !cs[0] && !zero.x;
16910 #endif
16911
16912 ;
16913 return 0;
16914 }
16915 _ACEOF
16916 rm -f conftest.$ac_objext
16917 if { (ac_try="$ac_compile"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921 esac
16922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923 $as_echo "$ac_try_echo") >&5
16924 (eval "$ac_compile") 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest.$ac_objext; then
16934 ac_cv_c_const=yes
16935 else
16936 $as_echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_cv_c_const=no
16940 fi
16941
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16943 fi
16944 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16945 $as_echo "$ac_cv_c_const" >&6; }
16946 if test $ac_cv_c_const = no; then
16947
16948 cat >>confdefs.h <<\_ACEOF
16949 #define const /**/
16950 _ACEOF
16951
16952 fi
16953
16954 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
16955 $as_echo_n "checking for size_t... " >&6; }
16956 if test "${ac_cv_type_size_t+set}" = set; then
16957 $as_echo_n "(cached) " >&6
16958 else
16959 ac_cv_type_size_t=no
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 $ac_includes_default
16967 int
16968 main ()
16969 {
16970 if (sizeof (size_t))
16971 return 0;
16972 ;
16973 return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext
16977 if { (ac_try="$ac_compile"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981 esac
16982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983 $as_echo "$ac_try_echo") >&5
16984 (eval "$ac_compile") 2>conftest.er1
16985 ac_status=$?
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
16989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest.$ac_objext; then
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 $ac_includes_default
17001 int
17002 main ()
17003 {
17004 if (sizeof ((size_t)))
17005 return 0;
17006 ;
17007 return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest.$ac_objext
17011 if { (ac_try="$ac_compile"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015 esac
17016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17017 $as_echo "$ac_try_echo") >&5
17018 (eval "$ac_compile") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest.$ac_objext; then
17028 :
17029 else
17030 $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17032
17033 ac_cv_type_size_t=yes
17034 fi
17035
17036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037 else
17038 $as_echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041
17042 fi
17043
17044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17045 fi
17046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17047 $as_echo "$ac_cv_type_size_t" >&6; }
17048 if test "x$ac_cv_type_size_t" = x""yes; then
17049 :
17050 else
17051
17052 cat >>confdefs.h <<_ACEOF
17053 #define size_t unsigned int
17054 _ACEOF
17055
17056 fi
17057
17058
17059
17060 ac_ext=cpp
17061 ac_cpp='$CXXCPP $CPPFLAGS'
17062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17065
17066 { $as_echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
17067 $as_echo_n "checking if the C++ compiler needs -fhandle-exceptions... " >&6; }
17068 if test "${ac_cv_need_handlexceptions+set}" = set; then
17069 $as_echo_n "(cached) " >&6
17070 else
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077
17078 int
17079 main ()
17080 {
17081
17082 throw;
17083
17084 ;
17085 return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext
17089 if { (ac_try="$ac_compile"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095 $as_echo "$ac_try_echo") >&5
17096 (eval "$ac_compile") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_cxx_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest.$ac_objext; then
17106 ac_cv_need_handlexceptions=no
17107 else
17108 $as_echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111 ac_cv_need_handlexceptions=yes
17112 fi
17113
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115
17116 fi
17117 { $as_echo "$as_me:$LINENO: result: $ac_cv_need_handlexceptions" >&5
17118 $as_echo "$ac_cv_need_handlexceptions" >&6; }
17119
17120 if test "$ac_cv_need_handlexceptions" = "yes"
17121 then
17122 case "$CXXFLAGS" in
17123 *handle-exceptions*)
17124 ;;
17125 *)
17126 CXXFLAGS="-fhandle-exceptions $CXXFLAGS"
17127 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'`
17128 ;;
17129 esac
17130 fi
17131
17132 ac_config_files="$ac_config_files Makefile"
17133
17134 cat >confcache <<\_ACEOF
17135 # This file is a shell script that caches the results of configure
17136 # tests run on this system so they can be shared between configure
17137 # scripts and configure runs, see configure's option --config-cache.
17138 # It is not useful on other systems. If it contains results you don't
17139 # want to keep, you may remove or edit it.
17140 #
17141 # config.status only pays attention to the cache file if you give it
17142 # the --recheck option to rerun configure.
17143 #
17144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17146 # following values.
17147
17148 _ACEOF
17149
17150 # The following way of writing the cache mishandles newlines in values,
17151 # but we know of no workaround that is simple, portable, and efficient.
17152 # So, we kill variables containing newlines.
17153 # Ultrix sh set writes to stderr and can't be redirected directly,
17154 # and sets the high bit in the cache file unless we assign to the vars.
17155 (
17156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17157 eval ac_val=\$$ac_var
17158 case $ac_val in #(
17159 *${as_nl}*)
17160 case $ac_var in #(
17161 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17163 esac
17164 case $ac_var in #(
17165 _ | IFS | as_nl) ;; #(
17166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17167 *) $as_unset $ac_var ;;
17168 esac ;;
17169 esac
17170 done
17171
17172 (set) 2>&1 |
17173 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17174 *${as_nl}ac_space=\ *)
17175 # `set' does not quote correctly, so add quotes (double-quote
17176 # substitution turns \\\\ into \\, and sed turns \\ into \).
17177 sed -n \
17178 "s/'/'\\\\''/g;
17179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17180 ;; #(
17181 *)
17182 # `set' quotes correctly as required by POSIX, so do not add quotes.
17183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17184 ;;
17185 esac |
17186 sort
17187 ) |
17188 sed '
17189 /^ac_cv_env_/b end
17190 t clear
17191 :clear
17192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17193 t end
17194 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17195 :end' >>confcache
17196 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17197 if test -w "$cache_file"; then
17198 test "x$cache_file" != "x/dev/null" &&
17199 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17200 $as_echo "$as_me: updating cache $cache_file" >&6;}
17201 cat confcache >$cache_file
17202 else
17203 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17204 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17205 fi
17206 fi
17207 rm -f confcache
17208
17209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17210 # Let make expand exec_prefix.
17211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17212
17213 DEFS=-DHAVE_CONFIG_H
17214
17215 ac_libobjs=
17216 ac_ltlibobjs=
17217 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17218 # 1. Remove the extension, and $U if already installed.
17219 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17220 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17221 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17222 # will be set to the directory where LIBOBJS objects are built.
17223 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17224 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17225 done
17226 LIBOBJS=$ac_libobjs
17227
17228 LTLIBOBJS=$ac_ltlibobjs
17229
17230
17231 if test -n "$EXEEXT"; then
17232 am__EXEEXT_TRUE=
17233 am__EXEEXT_FALSE='#'
17234 else
17235 am__EXEEXT_TRUE='#'
17236 am__EXEEXT_FALSE=
17237 fi
17238
17239 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17240 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17241 Usually this means the macro was only invoked conditionally." >&5
17242 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17243 Usually this means the macro was only invoked conditionally." >&2;}
17244 { (exit 1); exit 1; }; }
17245 fi
17246 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17247 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17248 Usually this means the macro was only invoked conditionally." >&5
17249 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17250 Usually this means the macro was only invoked conditionally." >&2;}
17251 { (exit 1); exit 1; }; }
17252 fi
17253 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17254 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17255 Usually this means the macro was only invoked conditionally." >&5
17256 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17257 Usually this means the macro was only invoked conditionally." >&2;}
17258 { (exit 1); exit 1; }; }
17259 fi
17260 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17261 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17262 Usually this means the macro was only invoked conditionally." >&5
17263 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17264 Usually this means the macro was only invoked conditionally." >&2;}
17265 { (exit 1); exit 1; }; }
17266 fi
17267 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17268 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17269 Usually this means the macro was only invoked conditionally." >&5
17270 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17271 Usually this means the macro was only invoked conditionally." >&2;}
17272 { (exit 1); exit 1; }; }
17273 fi
17274 if test -z "${FOUND_GDBM_TRUE}" && test -z "${FOUND_GDBM_FALSE}"; then
17275 { { $as_echo "$as_me:$LINENO: error: conditional \"FOUND_GDBM\" was never defined.
17276 Usually this means the macro was only invoked conditionally." >&5
17277 $as_echo "$as_me: error: conditional \"FOUND_GDBM\" was never defined.
17278 Usually this means the macro was only invoked conditionally." >&2;}
17279 { (exit 1); exit 1; }; }
17280 fi
17281
17282 : ${CONFIG_STATUS=./config.status}
17283 ac_write_fail=0
17284 ac_clean_files_save=$ac_clean_files
17285 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17286 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17287 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17288 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17289 #! $SHELL
17290 # Generated by $as_me.
17291 # Run this file to recreate the current configuration.
17292 # Compiler output produced by configure, useful for debugging
17293 # configure, is in config.log if it exists.
17294
17295 debug=false
17296 ac_cs_recheck=false
17297 ac_cs_silent=false
17298 SHELL=\${CONFIG_SHELL-$SHELL}
17299 _ACEOF
17300
17301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17302 ## --------------------- ##
17303 ## M4sh Initialization. ##
17304 ## --------------------- ##
17305
17306 # Be more Bourne compatible
17307 DUALCASE=1; export DUALCASE # for MKS sh
17308 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17309 emulate sh
17310 NULLCMD=:
17311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17312 # is contrary to our usage. Disable this feature.
17313 alias -g '${1+"$@"}'='"$@"'
17314 setopt NO_GLOB_SUBST
17315 else
17316 case `(set -o) 2>/dev/null` in
17317 *posix*) set -o posix ;;
17318 esac
17319
17320 fi
17321
17322
17323
17324
17325 # PATH needs CR
17326 # Avoid depending upon Character Ranges.
17327 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17328 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17329 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17330 as_cr_digits='0123456789'
17331 as_cr_alnum=$as_cr_Letters$as_cr_digits
17332
17333 as_nl='
17334 '
17335 export as_nl
17336 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17337 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17339 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17340 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17341 as_echo='printf %s\n'
17342 as_echo_n='printf %s'
17343 else
17344 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17345 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17346 as_echo_n='/usr/ucb/echo -n'
17347 else
17348 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17349 as_echo_n_body='eval
17350 arg=$1;
17351 case $arg in
17352 *"$as_nl"*)
17353 expr "X$arg" : "X\\(.*\\)$as_nl";
17354 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17355 esac;
17356 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17357 '
17358 export as_echo_n_body
17359 as_echo_n='sh -c $as_echo_n_body as_echo'
17360 fi
17361 export as_echo_body
17362 as_echo='sh -c $as_echo_body as_echo'
17363 fi
17364
17365 # The user is always right.
17366 if test "${PATH_SEPARATOR+set}" != set; then
17367 PATH_SEPARATOR=:
17368 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17369 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17370 PATH_SEPARATOR=';'
17371 }
17372 fi
17373
17374 # Support unset when possible.
17375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17376 as_unset=unset
17377 else
17378 as_unset=false
17379 fi
17380
17381
17382 # IFS
17383 # We need space, tab and new line, in precisely that order. Quoting is
17384 # there to prevent editors from complaining about space-tab.
17385 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17386 # splitting by setting IFS to empty value.)
17387 IFS=" "" $as_nl"
17388
17389 # Find who we are. Look in the path if we contain no directory separator.
17390 case $0 in
17391 *[\\/]* ) as_myself=$0 ;;
17392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17394 do
17395 IFS=$as_save_IFS
17396 test -z "$as_dir" && as_dir=.
17397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17398 done
17399 IFS=$as_save_IFS
17400
17401 ;;
17402 esac
17403 # We did not find ourselves, most probably we were run as `sh COMMAND'
17404 # in which case we are not to be found in the path.
17405 if test "x$as_myself" = x; then
17406 as_myself=$0
17407 fi
17408 if test ! -f "$as_myself"; then
17409 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17410 { (exit 1); exit 1; }
17411 fi
17412
17413 # Work around bugs in pre-3.0 UWIN ksh.
17414 for as_var in ENV MAIL MAILPATH
17415 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17416 done
17417 PS1='$ '
17418 PS2='> '
17419 PS4='+ '
17420
17421 # NLS nuisances.
17422 LC_ALL=C
17423 export LC_ALL
17424 LANGUAGE=C
17425 export LANGUAGE
17426
17427 # Required to use basename.
17428 if expr a : '\(a\)' >/dev/null 2>&1 &&
17429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17430 as_expr=expr
17431 else
17432 as_expr=false
17433 fi
17434
17435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17436 as_basename=basename
17437 else
17438 as_basename=false
17439 fi
17440
17441
17442 # Name of the executable.
17443 as_me=`$as_basename -- "$0" ||
17444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17445 X"$0" : 'X\(//\)$' \| \
17446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17447 $as_echo X/"$0" |
17448 sed '/^.*\/\([^/][^/]*\)\/*$/{
17449 s//\1/
17450 q
17451 }
17452 /^X\/\(\/\/\)$/{
17453 s//\1/
17454 q
17455 }
17456 /^X\/\(\/\).*/{
17457 s//\1/
17458 q
17459 }
17460 s/.*/./; q'`
17461
17462 # CDPATH.
17463 $as_unset CDPATH
17464
17465
17466
17467 as_lineno_1=$LINENO
17468 as_lineno_2=$LINENO
17469 test "x$as_lineno_1" != "x$as_lineno_2" &&
17470 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17471
17472 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17473 # uniformly replaced by the line number. The first 'sed' inserts a
17474 # line-number line after each line using $LINENO; the second 'sed'
17475 # does the real work. The second script uses 'N' to pair each
17476 # line-number line with the line containing $LINENO, and appends
17477 # trailing '-' during substitution so that $LINENO is not a special
17478 # case at line end.
17479 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17480 # scripts with optimization help from Paolo Bonzini. Blame Lee
17481 # E. McMahon (1931-1989) for sed's syntax. :-)
17482 sed -n '
17483 p
17484 /[$]LINENO/=
17485 ' <$as_myself |
17486 sed '
17487 s/[$]LINENO.*/&-/
17488 t lineno
17489 b
17490 :lineno
17491 N
17492 :loop
17493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17494 t loop
17495 s/-\n.*//
17496 ' >$as_me.lineno &&
17497 chmod +x "$as_me.lineno" ||
17498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17499 { (exit 1); exit 1; }; }
17500
17501 # Don't try to exec as it changes $[0], causing all sort of problems
17502 # (the dirname of $[0] is not the place where we might find the
17503 # original and so on. Autoconf is especially sensitive to this).
17504 . "./$as_me.lineno"
17505 # Exit status is that of the last command.
17506 exit
17507 }
17508
17509
17510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17511 as_dirname=dirname
17512 else
17513 as_dirname=false
17514 fi
17515
17516 ECHO_C= ECHO_N= ECHO_T=
17517 case `echo -n x` in
17518 -n*)
17519 case `echo 'x\c'` in
17520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17521 *) ECHO_C='\c';;
17522 esac;;
17523 *)
17524 ECHO_N='-n';;
17525 esac
17526 if expr a : '\(a\)' >/dev/null 2>&1 &&
17527 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17528 as_expr=expr
17529 else
17530 as_expr=false
17531 fi
17532
17533 rm -f conf$$ conf$$.exe conf$$.file
17534 if test -d conf$$.dir; then
17535 rm -f conf$$.dir/conf$$.file
17536 else
17537 rm -f conf$$.dir
17538 mkdir conf$$.dir 2>/dev/null
17539 fi
17540 if (echo >conf$$.file) 2>/dev/null; then
17541 if ln -s conf$$.file conf$$ 2>/dev/null; then
17542 as_ln_s='ln -s'
17543 # ... but there are two gotchas:
17544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17546 # In both cases, we have to default to `cp -p'.
17547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17548 as_ln_s='cp -p'
17549 elif ln conf$$.file conf$$ 2>/dev/null; then
17550 as_ln_s=ln
17551 else
17552 as_ln_s='cp -p'
17553 fi
17554 else
17555 as_ln_s='cp -p'
17556 fi
17557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17558 rmdir conf$$.dir 2>/dev/null
17559
17560 if mkdir -p . 2>/dev/null; then
17561 as_mkdir_p=:
17562 else
17563 test -d ./-p && rmdir ./-p
17564 as_mkdir_p=false
17565 fi
17566
17567 if test -x / >/dev/null 2>&1; then
17568 as_test_x='test -x'
17569 else
17570 if ls -dL / >/dev/null 2>&1; then
17571 as_ls_L_option=L
17572 else
17573 as_ls_L_option=
17574 fi
17575 as_test_x='
17576 eval sh -c '\''
17577 if test -d "$1"; then
17578 test -d "$1/.";
17579 else
17580 case $1 in
17581 -*)set "./$1";;
17582 esac;
17583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17584 ???[sx]*):;;*)false;;esac;fi
17585 '\'' sh
17586 '
17587 fi
17588 as_executable_p=$as_test_x
17589
17590 # Sed expression to map a string onto a valid CPP name.
17591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17592
17593 # Sed expression to map a string onto a valid variable name.
17594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17595
17596
17597 exec 6>&1
17598
17599 # Save the log message, to keep $[0] and so on meaningful, and to
17600 # report actual input values of CONFIG_FILES etc. instead of their
17601 # values after options handling.
17602 ac_log="
17603 This file was extended by gdbmobj $as_me 0.10, which was
17604 generated by GNU Autoconf 2.63. Invocation command line was
17605
17606 CONFIG_FILES = $CONFIG_FILES
17607 CONFIG_HEADERS = $CONFIG_HEADERS
17608 CONFIG_LINKS = $CONFIG_LINKS
17609 CONFIG_COMMANDS = $CONFIG_COMMANDS
17610 $ $0 $@
17611
17612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17613 "
17614
17615 _ACEOF
17616
17617 case $ac_config_files in *"
17618 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17619 esac
17620
17621 case $ac_config_headers in *"
17622 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17623 esac
17624
17625
17626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17627 # Files that config.status was made for.
17628 config_files="$ac_config_files"
17629 config_headers="$ac_config_headers"
17630 config_commands="$ac_config_commands"
17631
17632 _ACEOF
17633
17634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635 ac_cs_usage="\
17636 \`$as_me' instantiates files from templates according to the
17637 current configuration.
17638
17639 Usage: $0 [OPTION]... [FILE]...
17640
17641 -h, --help print this help, then exit
17642 -V, --version print version number and configuration settings, then exit
17643 -q, --quiet, --silent
17644 do not print progress messages
17645 -d, --debug don't remove temporary files
17646 --recheck update $as_me by reconfiguring in the same conditions
17647 --file=FILE[:TEMPLATE]
17648 instantiate the configuration file FILE
17649 --header=FILE[:TEMPLATE]
17650 instantiate the configuration header FILE
17651
17652 Configuration files:
17653 $config_files
17654
17655 Configuration headers:
17656 $config_headers
17657
17658 Configuration commands:
17659 $config_commands
17660
17661 Report bugs to <bug-autoconf@gnu.org>."
17662
17663 _ACEOF
17664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17665 ac_cs_version="\\
17666 gdbmobj config.status 0.10
17667 configured by $0, generated by GNU Autoconf 2.63,
17668 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17669
17670 Copyright (C) 2008 Free Software Foundation, Inc.
17671 This config.status script is free software; the Free Software Foundation
17672 gives unlimited permission to copy, distribute and modify it."
17673
17674 ac_pwd='$ac_pwd'
17675 srcdir='$srcdir'
17676 INSTALL='$INSTALL'
17677 MKDIR_P='$MKDIR_P'
17678 AWK='$AWK'
17679 test -n "\$AWK" || AWK=awk
17680 _ACEOF
17681
17682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17683 # The default lists apply if the user does not specify any file.
17684 ac_need_defaults=:
17685 while test $# != 0
17686 do
17687 case $1 in
17688 --*=*)
17689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17691 ac_shift=:
17692 ;;
17693 *)
17694 ac_option=$1
17695 ac_optarg=$2
17696 ac_shift=shift
17697 ;;
17698 esac
17699
17700 case $ac_option in
17701 # Handling of the options.
17702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17703 ac_cs_recheck=: ;;
17704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17705 $as_echo "$ac_cs_version"; exit ;;
17706 --debug | --debu | --deb | --de | --d | -d )
17707 debug=: ;;
17708 --file | --fil | --fi | --f )
17709 $ac_shift
17710 case $ac_optarg in
17711 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17712 esac
17713 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17714 ac_need_defaults=false;;
17715 --header | --heade | --head | --hea )
17716 $ac_shift
17717 case $ac_optarg in
17718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17719 esac
17720 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17721 ac_need_defaults=false;;
17722 --he | --h)
17723 # Conflict between --help and --header
17724 { $as_echo "$as_me: error: ambiguous option: $1
17725 Try \`$0 --help' for more information." >&2
17726 { (exit 1); exit 1; }; };;
17727 --help | --hel | -h )
17728 $as_echo "$ac_cs_usage"; exit ;;
17729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17731 ac_cs_silent=: ;;
17732
17733 # This is an error.
17734 -*) { $as_echo "$as_me: error: unrecognized option: $1
17735 Try \`$0 --help' for more information." >&2
17736 { (exit 1); exit 1; }; } ;;
17737
17738 *) ac_config_targets="$ac_config_targets $1"
17739 ac_need_defaults=false ;;
17740
17741 esac
17742 shift
17743 done
17744
17745 ac_configure_extra_args=
17746
17747 if $ac_cs_silent; then
17748 exec 6>/dev/null
17749 ac_configure_extra_args="$ac_configure_extra_args --silent"
17750 fi
17751
17752 _ACEOF
17753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17754 if \$ac_cs_recheck; then
17755 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17756 shift
17757 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17758 CONFIG_SHELL='$SHELL'
17759 export CONFIG_SHELL
17760 exec "\$@"
17761 fi
17762
17763 _ACEOF
17764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765 exec 5>>config.log
17766 {
17767 echo
17768 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17769 ## Running $as_me. ##
17770 _ASBOX
17771 $as_echo "$ac_log"
17772 } >&5
17773
17774 _ACEOF
17775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776 #
17777 # INIT-COMMANDS
17778 #
17779 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17780
17781
17782 # The HP-UX ksh and POSIX shell print the target directory to stdout
17783 # if CDPATH is set.
17784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17785
17786 sed_quote_subst='$sed_quote_subst'
17787 double_quote_subst='$double_quote_subst'
17788 delay_variable_subst='$delay_variable_subst'
17789 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17790 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17791 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17792 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17793 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17794 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17795 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17796 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17797 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17798 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17799 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17800 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17801 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17802 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17803 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17804 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17805 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17806 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17807 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17808 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17809 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17810 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17811 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17812 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17813 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17814 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17815 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17816 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17817 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17818 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17819 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17820 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17821 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17822 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17823 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17824 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17825 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17826 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17827 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17828 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17829 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17830 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17831 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17832 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17833 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"`'
17834 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"`'
17835 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17836 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17837 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17838 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17839 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17840 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17841 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17842 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17843 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17844 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17845 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17846 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17847 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17848 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17849 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17850 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17851 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17852 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17853 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17854 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17855 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17856 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17857 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17858 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17859 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17860 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17861 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17862 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17863 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17864 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17865 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17866 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17867 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17868 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17869 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17870 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17871 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17872 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17873 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17874 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17875 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17876 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17877 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17878 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17879 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17880 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17881 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17882 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17883 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17884 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17885 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17886 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17887 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17888 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17889 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17890 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17891 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17892 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17893 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17894 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17895 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17896 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17897 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17898 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17899 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17900 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17901 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17902 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17903 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17904 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17905 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17906 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17907 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17908 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17909 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17910 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17911 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17912 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17913 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17914 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17915 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17916 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17917 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17918 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17919 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17920 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17921 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17922 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17923 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17924 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17925 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17926 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17927 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17928 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17929 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17930 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17931 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17932 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17933 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17934 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17935 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17936 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17937 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17938 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17939 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17940 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17941 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17942 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17943 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17944 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17945 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17946 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17947 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17948 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17949 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17950 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17951 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17952 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17953 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17954 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17955 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17956 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17957 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17958 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17959 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17960
17961 LTCC='$LTCC'
17962 LTCFLAGS='$LTCFLAGS'
17963 compiler='$compiler_DEFAULT'
17964
17965 # Quote evaled strings.
17966 for var in SED \
17967 GREP \
17968 EGREP \
17969 FGREP \
17970 LD \
17971 NM \
17972 LN_S \
17973 lt_SP2NL \
17974 lt_NL2SP \
17975 reload_flag \
17976 OBJDUMP \
17977 deplibs_check_method \
17978 file_magic_cmd \
17979 AR \
17980 AR_FLAGS \
17981 STRIP \
17982 RANLIB \
17983 CC \
17984 CFLAGS \
17985 compiler \
17986 lt_cv_sys_global_symbol_pipe \
17987 lt_cv_sys_global_symbol_to_cdecl \
17988 lt_cv_sys_global_symbol_to_c_name_address \
17989 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17990 SHELL \
17991 ECHO \
17992 lt_prog_compiler_no_builtin_flag \
17993 lt_prog_compiler_wl \
17994 lt_prog_compiler_pic \
17995 lt_prog_compiler_static \
17996 lt_cv_prog_compiler_c_o \
17997 need_locks \
17998 DSYMUTIL \
17999 NMEDIT \
18000 LIPO \
18001 OTOOL \
18002 OTOOL64 \
18003 shrext_cmds \
18004 export_dynamic_flag_spec \
18005 whole_archive_flag_spec \
18006 compiler_needs_object \
18007 with_gnu_ld \
18008 allow_undefined_flag \
18009 no_undefined_flag \
18010 hardcode_libdir_flag_spec \
18011 hardcode_libdir_flag_spec_ld \
18012 hardcode_libdir_separator \
18013 fix_srcfile_path \
18014 exclude_expsyms \
18015 include_expsyms \
18016 file_list_spec \
18017 variables_saved_for_relink \
18018 libname_spec \
18019 library_names_spec \
18020 soname_spec \
18021 finish_eval \
18022 old_striplib \
18023 striplib \
18024 compiler_lib_search_dirs \
18025 predep_objects \
18026 postdep_objects \
18027 predeps \
18028 postdeps \
18029 compiler_lib_search_path \
18030 LD_CXX \
18031 compiler_CXX \
18032 lt_prog_compiler_no_builtin_flag_CXX \
18033 lt_prog_compiler_wl_CXX \
18034 lt_prog_compiler_pic_CXX \
18035 lt_prog_compiler_static_CXX \
18036 lt_cv_prog_compiler_c_o_CXX \
18037 export_dynamic_flag_spec_CXX \
18038 whole_archive_flag_spec_CXX \
18039 compiler_needs_object_CXX \
18040 with_gnu_ld_CXX \
18041 allow_undefined_flag_CXX \
18042 no_undefined_flag_CXX \
18043 hardcode_libdir_flag_spec_CXX \
18044 hardcode_libdir_flag_spec_ld_CXX \
18045 hardcode_libdir_separator_CXX \
18046 fix_srcfile_path_CXX \
18047 exclude_expsyms_CXX \
18048 include_expsyms_CXX \
18049 file_list_spec_CXX \
18050 compiler_lib_search_dirs_CXX \
18051 predep_objects_CXX \
18052 postdep_objects_CXX \
18053 predeps_CXX \
18054 postdeps_CXX \
18055 compiler_lib_search_path_CXX; do
18056 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18057 *[\\\\\\\`\\"\\\$]*)
18058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18059 ;;
18060 *)
18061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18062 ;;
18063 esac
18064 done
18065
18066 # Double-quote double-evaled strings.
18067 for var in reload_cmds \
18068 old_postinstall_cmds \
18069 old_postuninstall_cmds \
18070 old_archive_cmds \
18071 extract_expsyms_cmds \
18072 old_archive_from_new_cmds \
18073 old_archive_from_expsyms_cmds \
18074 archive_cmds \
18075 archive_expsym_cmds \
18076 module_cmds \
18077 module_expsym_cmds \
18078 export_symbols_cmds \
18079 prelink_cmds \
18080 postinstall_cmds \
18081 postuninstall_cmds \
18082 finish_cmds \
18083 sys_lib_search_path_spec \
18084 sys_lib_dlsearch_path_spec \
18085 old_archive_cmds_CXX \
18086 old_archive_from_new_cmds_CXX \
18087 old_archive_from_expsyms_cmds_CXX \
18088 archive_cmds_CXX \
18089 archive_expsym_cmds_CXX \
18090 module_cmds_CXX \
18091 module_expsym_cmds_CXX \
18092 export_symbols_cmds_CXX \
18093 prelink_cmds_CXX; do
18094 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18095 *[\\\\\\\`\\"\\\$]*)
18096 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18097 ;;
18098 *)
18099 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18100 ;;
18101 esac
18102 done
18103
18104 # Fix-up fallback echo if it was mangled by the above quoting rules.
18105 case \$lt_ECHO in
18106 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18107 ;;
18108 esac
18109
18110 ac_aux_dir='$ac_aux_dir'
18111 xsi_shell='$xsi_shell'
18112 lt_shell_append='$lt_shell_append'
18113
18114 # See if we are running on zsh, and set the options which allow our
18115 # commands through without removal of \ escapes INIT.
18116 if test -n "\${ZSH_VERSION+set}" ; then
18117 setopt NO_GLOB_SUBST
18118 fi
18119
18120
18121 PACKAGE='$PACKAGE'
18122 VERSION='$VERSION'
18123 TIMESTAMP='$TIMESTAMP'
18124 RM='$RM'
18125 ofile='$ofile'
18126
18127
18128
18129
18130
18131
18132 _ACEOF
18133
18134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18135
18136 # Handling of arguments.
18137 for ac_config_target in $ac_config_targets
18138 do
18139 case $ac_config_target in
18140 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18141 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18142 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18143 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18144
18145 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18146 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18147 { (exit 1); exit 1; }; };;
18148 esac
18149 done
18150
18151
18152 # If the user did not use the arguments to specify the items to instantiate,
18153 # then the envvar interface is used. Set only those that are not.
18154 # We use the long form for the default assignment because of an extremely
18155 # bizarre bug on SunOS 4.1.3.
18156 if $ac_need_defaults; then
18157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18160 fi
18161
18162 # Have a temporary directory for convenience. Make it in the build tree
18163 # simply because there is no reason against having it here, and in addition,
18164 # creating and moving files from /tmp can sometimes cause problems.
18165 # Hook for its removal unless debugging.
18166 # Note that there is a small window in which the directory will not be cleaned:
18167 # after its creation but before its name has been assigned to `$tmp'.
18168 $debug ||
18169 {
18170 tmp=
18171 trap 'exit_status=$?
18172 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18173 ' 0
18174 trap '{ (exit 1); exit 1; }' 1 2 13 15
18175 }
18176 # Create a (secure) tmp directory for tmp files.
18177
18178 {
18179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18180 test -n "$tmp" && test -d "$tmp"
18181 } ||
18182 {
18183 tmp=./conf$$-$RANDOM
18184 (umask 077 && mkdir "$tmp")
18185 } ||
18186 {
18187 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18188 { (exit 1); exit 1; }
18189 }
18190
18191 # Set up the scripts for CONFIG_FILES section.
18192 # No need to generate them if there are no CONFIG_FILES.
18193 # This happens for instance with `./config.status config.h'.
18194 if test -n "$CONFIG_FILES"; then
18195
18196
18197 ac_cr=' '
18198 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18199 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18200 ac_cs_awk_cr='\\r'
18201 else
18202 ac_cs_awk_cr=$ac_cr
18203 fi
18204
18205 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18206 _ACEOF
18207
18208
18209 {
18210 echo "cat >conf$$subs.awk <<_ACEOF" &&
18211 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18212 echo "_ACEOF"
18213 } >conf$$subs.sh ||
18214 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18215 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18216 { (exit 1); exit 1; }; }
18217 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18218 ac_delim='%!_!# '
18219 for ac_last_try in false false false false false :; do
18220 . ./conf$$subs.sh ||
18221 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18222 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18223 { (exit 1); exit 1; }; }
18224
18225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18226 if test $ac_delim_n = $ac_delim_num; then
18227 break
18228 elif $ac_last_try; then
18229 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18230 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18231 { (exit 1); exit 1; }; }
18232 else
18233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18234 fi
18235 done
18236 rm -f conf$$subs.sh
18237
18238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18239 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18240 _ACEOF
18241 sed -n '
18242 h
18243 s/^/S["/; s/!.*/"]=/
18244 p
18245 g
18246 s/^[^!]*!//
18247 :repl
18248 t repl
18249 s/'"$ac_delim"'$//
18250 t delim
18251 :nl
18252 h
18253 s/\(.\{148\}\).*/\1/
18254 t more1
18255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18256 p
18257 n
18258 b repl
18259 :more1
18260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18261 p
18262 g
18263 s/.\{148\}//
18264 t nl
18265 :delim
18266 h
18267 s/\(.\{148\}\).*/\1/
18268 t more2
18269 s/["\\]/\\&/g; s/^/"/; s/$/"/
18270 p
18271 b
18272 :more2
18273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18274 p
18275 g
18276 s/.\{148\}//
18277 t delim
18278 ' <conf$$subs.awk | sed '
18279 /^[^""]/{
18280 N
18281 s/\n//
18282 }
18283 ' >>$CONFIG_STATUS || ac_write_fail=1
18284 rm -f conf$$subs.awk
18285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18286 _ACAWK
18287 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18288 for (key in S) S_is_set[key] = 1
18289 FS = "\a"
18290
18291 }
18292 {
18293 line = $ 0
18294 nfields = split(line, field, "@")
18295 substed = 0
18296 len = length(field[1])
18297 for (i = 2; i < nfields; i++) {
18298 key = field[i]
18299 keylen = length(key)
18300 if (S_is_set[key]) {
18301 value = S[key]
18302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18303 len += length(value) + length(field[++i])
18304 substed = 1
18305 } else
18306 len += 1 + keylen
18307 }
18308
18309 print line
18310 }
18311
18312 _ACAWK
18313 _ACEOF
18314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18315 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18316 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18317 else
18318 cat
18319 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18320 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18321 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18322 { (exit 1); exit 1; }; }
18323 _ACEOF
18324
18325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18327 # trailing colons and then remove the whole line if VPATH becomes empty
18328 # (actually we leave an empty line to preserve line numbers).
18329 if test "x$srcdir" = x.; then
18330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18331 s/:*\$(srcdir):*/:/
18332 s/:*\${srcdir}:*/:/
18333 s/:*@srcdir@:*/:/
18334 s/^\([^=]*=[ ]*\):*/\1/
18335 s/:*$//
18336 s/^[^=]*=[ ]*$//
18337 }'
18338 fi
18339
18340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18341 fi # test -n "$CONFIG_FILES"
18342
18343 # Set up the scripts for CONFIG_HEADERS section.
18344 # No need to generate them if there are no CONFIG_HEADERS.
18345 # This happens for instance with `./config.status Makefile'.
18346 if test -n "$CONFIG_HEADERS"; then
18347 cat >"$tmp/defines.awk" <<\_ACAWK ||
18348 BEGIN {
18349 _ACEOF
18350
18351 # Transform confdefs.h into an awk script `defines.awk', embedded as
18352 # here-document in config.status, that substitutes the proper values into
18353 # config.h.in to produce config.h.
18354
18355 # Create a delimiter string that does not exist in confdefs.h, to ease
18356 # handling of long lines.
18357 ac_delim='%!_!# '
18358 for ac_last_try in false false :; do
18359 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18360 if test -z "$ac_t"; then
18361 break
18362 elif $ac_last_try; then
18363 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18364 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18365 { (exit 1); exit 1; }; }
18366 else
18367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18368 fi
18369 done
18370
18371 # For the awk script, D is an array of macro values keyed by name,
18372 # likewise P contains macro parameters if any. Preserve backslash
18373 # newline sequences.
18374
18375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18376 sed -n '
18377 s/.\{148\}/&'"$ac_delim"'/g
18378 t rset
18379 :rset
18380 s/^[ ]*#[ ]*define[ ][ ]*/ /
18381 t def
18382 d
18383 :def
18384 s/\\$//
18385 t bsnl
18386 s/["\\]/\\&/g
18387 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18388 D["\1"]=" \3"/p
18389 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18390 d
18391 :bsnl
18392 s/["\\]/\\&/g
18393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18394 D["\1"]=" \3\\\\\\n"\\/p
18395 t cont
18396 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18397 t cont
18398 d
18399 :cont
18400 n
18401 s/.\{148\}/&'"$ac_delim"'/g
18402 t clear
18403 :clear
18404 s/\\$//
18405 t bsnlc
18406 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18407 d
18408 :bsnlc
18409 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18410 b cont
18411 ' <confdefs.h | sed '
18412 s/'"$ac_delim"'/"\\\
18413 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18414
18415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18416 for (key in D) D_is_set[key] = 1
18417 FS = "\a"
18418 }
18419 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18420 line = \$ 0
18421 split(line, arg, " ")
18422 if (arg[1] == "#") {
18423 defundef = arg[2]
18424 mac1 = arg[3]
18425 } else {
18426 defundef = substr(arg[1], 2)
18427 mac1 = arg[2]
18428 }
18429 split(mac1, mac2, "(") #)
18430 macro = mac2[1]
18431 prefix = substr(line, 1, index(line, defundef) - 1)
18432 if (D_is_set[macro]) {
18433 # Preserve the white space surrounding the "#".
18434 print prefix "define", macro P[macro] D[macro]
18435 next
18436 } else {
18437 # Replace #undef with comments. This is necessary, for example,
18438 # in the case of _POSIX_SOURCE, which is predefined and required
18439 # on some systems where configure will not decide to define it.
18440 if (defundef == "undef") {
18441 print "/*", prefix defundef, macro, "*/"
18442 next
18443 }
18444 }
18445 }
18446 { print }
18447 _ACAWK
18448 _ACEOF
18449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18450 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18451 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18452 { (exit 1); exit 1; }; }
18453 fi # test -n "$CONFIG_HEADERS"
18454
18455
18456 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18457 shift
18458 for ac_tag
18459 do
18460 case $ac_tag in
18461 :[FHLC]) ac_mode=$ac_tag; continue;;
18462 esac
18463 case $ac_mode$ac_tag in
18464 :[FHL]*:*);;
18465 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18466 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18467 { (exit 1); exit 1; }; };;
18468 :[FH]-) ac_tag=-:-;;
18469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18470 esac
18471 ac_save_IFS=$IFS
18472 IFS=:
18473 set x $ac_tag
18474 IFS=$ac_save_IFS
18475 shift
18476 ac_file=$1
18477 shift
18478
18479 case $ac_mode in
18480 :L) ac_source=$1;;
18481 :[FH])
18482 ac_file_inputs=
18483 for ac_f
18484 do
18485 case $ac_f in
18486 -) ac_f="$tmp/stdin";;
18487 *) # Look for the file first in the build tree, then in the source tree
18488 # (if the path is not absolute). The absolute path cannot be DOS-style,
18489 # because $ac_f cannot contain `:'.
18490 test -f "$ac_f" ||
18491 case $ac_f in
18492 [\\/$]*) false;;
18493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18494 esac ||
18495 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18496 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18497 { (exit 1); exit 1; }; };;
18498 esac
18499 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18500 ac_file_inputs="$ac_file_inputs '$ac_f'"
18501 done
18502
18503 # Let's still pretend it is `configure' which instantiates (i.e., don't
18504 # use $as_me), people would be surprised to read:
18505 # /* config.h. Generated by config.status. */
18506 configure_input='Generated from '`
18507 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18508 `' by configure.'
18509 if test x"$ac_file" != x-; then
18510 configure_input="$ac_file. $configure_input"
18511 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18512 $as_echo "$as_me: creating $ac_file" >&6;}
18513 fi
18514 # Neutralize special characters interpreted by sed in replacement strings.
18515 case $configure_input in #(
18516 *\&* | *\|* | *\\* )
18517 ac_sed_conf_input=`$as_echo "$configure_input" |
18518 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18519 *) ac_sed_conf_input=$configure_input;;
18520 esac
18521
18522 case $ac_tag in
18523 *:-:* | *:-) cat >"$tmp/stdin" \
18524 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18525 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18526 { (exit 1); exit 1; }; } ;;
18527 esac
18528 ;;
18529 esac
18530
18531 ac_dir=`$as_dirname -- "$ac_file" ||
18532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533 X"$ac_file" : 'X\(//\)[^/]' \| \
18534 X"$ac_file" : 'X\(//\)$' \| \
18535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18536 $as_echo X"$ac_file" |
18537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18538 s//\1/
18539 q
18540 }
18541 /^X\(\/\/\)[^/].*/{
18542 s//\1/
18543 q
18544 }
18545 /^X\(\/\/\)$/{
18546 s//\1/
18547 q
18548 }
18549 /^X\(\/\).*/{
18550 s//\1/
18551 q
18552 }
18553 s/.*/./; q'`
18554 { as_dir="$ac_dir"
18555 case $as_dir in #(
18556 -*) as_dir=./$as_dir;;
18557 esac
18558 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18559 as_dirs=
18560 while :; do
18561 case $as_dir in #(
18562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18563 *) as_qdir=$as_dir;;
18564 esac
18565 as_dirs="'$as_qdir' $as_dirs"
18566 as_dir=`$as_dirname -- "$as_dir" ||
18567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18568 X"$as_dir" : 'X\(//\)[^/]' \| \
18569 X"$as_dir" : 'X\(//\)$' \| \
18570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18571 $as_echo X"$as_dir" |
18572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18573 s//\1/
18574 q
18575 }
18576 /^X\(\/\/\)[^/].*/{
18577 s//\1/
18578 q
18579 }
18580 /^X\(\/\/\)$/{
18581 s//\1/
18582 q
18583 }
18584 /^X\(\/\).*/{
18585 s//\1/
18586 q
18587 }
18588 s/.*/./; q'`
18589 test -d "$as_dir" && break
18590 done
18591 test -z "$as_dirs" || eval "mkdir $as_dirs"
18592 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18593 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18594 { (exit 1); exit 1; }; }; }
18595 ac_builddir=.
18596
18597 case "$ac_dir" in
18598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18599 *)
18600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18601 # A ".." for each directory in $ac_dir_suffix.
18602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18603 case $ac_top_builddir_sub in
18604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18606 esac ;;
18607 esac
18608 ac_abs_top_builddir=$ac_pwd
18609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18610 # for backward compatibility:
18611 ac_top_builddir=$ac_top_build_prefix
18612
18613 case $srcdir in
18614 .) # We are building in place.
18615 ac_srcdir=.
18616 ac_top_srcdir=$ac_top_builddir_sub
18617 ac_abs_top_srcdir=$ac_pwd ;;
18618 [\\/]* | ?:[\\/]* ) # Absolute name.
18619 ac_srcdir=$srcdir$ac_dir_suffix;
18620 ac_top_srcdir=$srcdir
18621 ac_abs_top_srcdir=$srcdir ;;
18622 *) # Relative name.
18623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18624 ac_top_srcdir=$ac_top_build_prefix$srcdir
18625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18626 esac
18627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18628
18629
18630 case $ac_mode in
18631 :F)
18632 #
18633 # CONFIG_FILE
18634 #
18635
18636 case $INSTALL in
18637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18638 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18639 esac
18640 ac_MKDIR_P=$MKDIR_P
18641 case $MKDIR_P in
18642 [\\/$]* | ?:[\\/]* ) ;;
18643 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18644 esac
18645 _ACEOF
18646
18647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18648 # If the template does not know about datarootdir, expand it.
18649 # FIXME: This hack should be removed a few years after 2.60.
18650 ac_datarootdir_hack=; ac_datarootdir_seen=
18651
18652 ac_sed_dataroot='
18653 /datarootdir/ {
18654 p
18655 q
18656 }
18657 /@datadir@/p
18658 /@docdir@/p
18659 /@infodir@/p
18660 /@localedir@/p
18661 /@mandir@/p
18662 '
18663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18664 *datarootdir*) ac_datarootdir_seen=yes;;
18665 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18666 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18667 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18668 _ACEOF
18669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 ac_datarootdir_hack='
18671 s&@datadir@&$datadir&g
18672 s&@docdir@&$docdir&g
18673 s&@infodir@&$infodir&g
18674 s&@localedir@&$localedir&g
18675 s&@mandir@&$mandir&g
18676 s&\\\${datarootdir}&$datarootdir&g' ;;
18677 esac
18678 _ACEOF
18679
18680 # Neutralize VPATH when `$srcdir' = `.'.
18681 # Shell code in configure.ac might set extrasub.
18682 # FIXME: do we really want to maintain this feature?
18683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18684 ac_sed_extra="$ac_vpsub
18685 $extrasub
18686 _ACEOF
18687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18688 :t
18689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18690 s|@configure_input@|$ac_sed_conf_input|;t t
18691 s&@top_builddir@&$ac_top_builddir_sub&;t t
18692 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18693 s&@srcdir@&$ac_srcdir&;t t
18694 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18695 s&@top_srcdir@&$ac_top_srcdir&;t t
18696 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18697 s&@builddir@&$ac_builddir&;t t
18698 s&@abs_builddir@&$ac_abs_builddir&;t t
18699 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18700 s&@INSTALL@&$ac_INSTALL&;t t
18701 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18702 $ac_datarootdir_hack
18703 "
18704 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18705 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18706 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18707 { (exit 1); exit 1; }; }
18708
18709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18710 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18712 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18713 which seems to be undefined. Please make sure it is defined." >&5
18714 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18715 which seems to be undefined. Please make sure it is defined." >&2;}
18716
18717 rm -f "$tmp/stdin"
18718 case $ac_file in
18719 -) cat "$tmp/out" && rm -f "$tmp/out";;
18720 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18721 esac \
18722 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18723 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18724 { (exit 1); exit 1; }; }
18725 ;;
18726 :H)
18727 #
18728 # CONFIG_HEADER
18729 #
18730 if test x"$ac_file" != x-; then
18731 {
18732 $as_echo "/* $configure_input */" \
18733 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18734 } >"$tmp/config.h" \
18735 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18736 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18737 { (exit 1); exit 1; }; }
18738 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18739 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18740 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18741 else
18742 rm -f "$ac_file"
18743 mv "$tmp/config.h" "$ac_file" \
18744 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18745 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18746 { (exit 1); exit 1; }; }
18747 fi
18748 else
18749 $as_echo "/* $configure_input */" \
18750 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18751 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18752 $as_echo "$as_me: error: could not create -" >&2;}
18753 { (exit 1); exit 1; }; }
18754 fi
18755 # Compute "$ac_file"'s index in $config_headers.
18756 _am_arg="$ac_file"
18757 _am_stamp_count=1
18758 for _am_header in $config_headers :; do
18759 case $_am_header in
18760 $_am_arg | $_am_arg:* )
18761 break ;;
18762 * )
18763 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18764 esac
18765 done
18766 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18767 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18768 X"$_am_arg" : 'X\(//\)[^/]' \| \
18769 X"$_am_arg" : 'X\(//\)$' \| \
18770 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18771 $as_echo X"$_am_arg" |
18772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18773 s//\1/
18774 q
18775 }
18776 /^X\(\/\/\)[^/].*/{
18777 s//\1/
18778 q
18779 }
18780 /^X\(\/\/\)$/{
18781 s//\1/
18782 q
18783 }
18784 /^X\(\/\).*/{
18785 s//\1/
18786 q
18787 }
18788 s/.*/./; q'`/stamp-h$_am_stamp_count
18789 ;;
18790
18791 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18792 $as_echo "$as_me: executing $ac_file commands" >&6;}
18793 ;;
18794 esac
18795
18796
18797 case $ac_file$ac_mode in
18798 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18799 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18800 # are listed without --file. Let's play safe and only enable the eval
18801 # if we detect the quoting.
18802 case $CONFIG_FILES in
18803 *\'*) eval set x "$CONFIG_FILES" ;;
18804 *) set x $CONFIG_FILES ;;
18805 esac
18806 shift
18807 for mf
18808 do
18809 # Strip MF so we end up with the name of the file.
18810 mf=`echo "$mf" | sed -e 's/:.*$//'`
18811 # Check whether this is an Automake generated Makefile or not.
18812 # We used to match only the files named `Makefile.in', but
18813 # some people rename them; so instead we look at the file content.
18814 # Grep'ing the first line is not enough: some people post-process
18815 # each Makefile.in and add a new line on top of each file to say so.
18816 # Grep'ing the whole file is not good either: AIX grep has a line
18817 # limit of 2048, but all sed's we know have understand at least 4000.
18818 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18819 dirpart=`$as_dirname -- "$mf" ||
18820 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18821 X"$mf" : 'X\(//\)[^/]' \| \
18822 X"$mf" : 'X\(//\)$' \| \
18823 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18824 $as_echo X"$mf" |
18825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18826 s//\1/
18827 q
18828 }
18829 /^X\(\/\/\)[^/].*/{
18830 s//\1/
18831 q
18832 }
18833 /^X\(\/\/\)$/{
18834 s//\1/
18835 q
18836 }
18837 /^X\(\/\).*/{
18838 s//\1/
18839 q
18840 }
18841 s/.*/./; q'`
18842 else
18843 continue
18844 fi
18845 # Extract the definition of DEPDIR, am__include, and am__quote
18846 # from the Makefile without running `make'.
18847 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18848 test -z "$DEPDIR" && continue
18849 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18850 test -z "am__include" && continue
18851 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18852 # When using ansi2knr, U may be empty or an underscore; expand it
18853 U=`sed -n 's/^U = //p' < "$mf"`
18854 # Find all dependency output files, they are included files with
18855 # $(DEPDIR) in their names. We invoke sed twice because it is the
18856 # simplest approach to changing $(DEPDIR) to its actual value in the
18857 # expansion.
18858 for file in `sed -n "
18859 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18860 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18861 # Make sure the directory exists.
18862 test -f "$dirpart/$file" && continue
18863 fdir=`$as_dirname -- "$file" ||
18864 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18865 X"$file" : 'X\(//\)[^/]' \| \
18866 X"$file" : 'X\(//\)$' \| \
18867 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18868 $as_echo X"$file" |
18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18870 s//\1/
18871 q
18872 }
18873 /^X\(\/\/\)[^/].*/{
18874 s//\1/
18875 q
18876 }
18877 /^X\(\/\/\)$/{
18878 s//\1/
18879 q
18880 }
18881 /^X\(\/\).*/{
18882 s//\1/
18883 q
18884 }
18885 s/.*/./; q'`
18886 { as_dir=$dirpart/$fdir
18887 case $as_dir in #(
18888 -*) as_dir=./$as_dir;;
18889 esac
18890 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18891 as_dirs=
18892 while :; do
18893 case $as_dir in #(
18894 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18895 *) as_qdir=$as_dir;;
18896 esac
18897 as_dirs="'$as_qdir' $as_dirs"
18898 as_dir=`$as_dirname -- "$as_dir" ||
18899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18900 X"$as_dir" : 'X\(//\)[^/]' \| \
18901 X"$as_dir" : 'X\(//\)$' \| \
18902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18903 $as_echo X"$as_dir" |
18904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18905 s//\1/
18906 q
18907 }
18908 /^X\(\/\/\)[^/].*/{
18909 s//\1/
18910 q
18911 }
18912 /^X\(\/\/\)$/{
18913 s//\1/
18914 q
18915 }
18916 /^X\(\/\).*/{
18917 s//\1/
18918 q
18919 }
18920 s/.*/./; q'`
18921 test -d "$as_dir" && break
18922 done
18923 test -z "$as_dirs" || eval "mkdir $as_dirs"
18924 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18925 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18926 { (exit 1); exit 1; }; }; }
18927 # echo "creating $dirpart/$file"
18928 echo '# dummy' > "$dirpart/$file"
18929 done
18930 done
18931 }
18932 ;;
18933 "libtool":C)
18934
18935 # See if we are running on zsh, and set the options which allow our
18936 # commands through without removal of \ escapes.
18937 if test -n "${ZSH_VERSION+set}" ; then
18938 setopt NO_GLOB_SUBST
18939 fi
18940
18941 cfgfile="${ofile}T"
18942 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18943 $RM "$cfgfile"
18944
18945 cat <<_LT_EOF >> "$cfgfile"
18946 #! $SHELL
18947
18948 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18949 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18951 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18952 #
18953 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18954 # 2006, 2007, 2008 Free Software Foundation, Inc.
18955 # Written by Gordon Matzigkeit, 1996
18956 #
18957 # This file is part of GNU Libtool.
18958 #
18959 # GNU Libtool is free software; you can redistribute it and/or
18960 # modify it under the terms of the GNU General Public License as
18961 # published by the Free Software Foundation; either version 2 of
18962 # the License, or (at your option) any later version.
18963 #
18964 # As a special exception to the GNU General Public License,
18965 # if you distribute this file as part of a program or library that
18966 # is built using GNU Libtool, you may include this file under the
18967 # same distribution terms that you use for the rest of that program.
18968 #
18969 # GNU Libtool is distributed in the hope that it will be useful,
18970 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18972 # GNU General Public License for more details.
18973 #
18974 # You should have received a copy of the GNU General Public License
18975 # along with GNU Libtool; see the file COPYING. If not, a copy
18976 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18977 # obtained by writing to the Free Software Foundation, Inc.,
18978 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18979
18980
18981 # The names of the tagged configurations supported by this script.
18982 available_tags="CXX "
18983
18984 # ### BEGIN LIBTOOL CONFIG
18985
18986 # Which release of libtool.m4 was used?
18987 macro_version=$macro_version
18988 macro_revision=$macro_revision
18989
18990 # Whether or not to build shared libraries.
18991 build_libtool_libs=$enable_shared
18992
18993 # Whether or not to build static libraries.
18994 build_old_libs=$enable_static
18995
18996 # What type of objects to build.
18997 pic_mode=$pic_mode
18998
18999 # Whether or not to optimize for fast installation.
19000 fast_install=$enable_fast_install
19001
19002 # The host system.
19003 host_alias=$host_alias
19004 host=$host
19005 host_os=$host_os
19006
19007 # The build system.
19008 build_alias=$build_alias
19009 build=$build
19010 build_os=$build_os
19011
19012 # A sed program that does not truncate output.
19013 SED=$lt_SED
19014
19015 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19016 Xsed="\$SED -e 1s/^X//"
19017
19018 # A grep program that handles long lines.
19019 GREP=$lt_GREP
19020
19021 # An ERE matcher.
19022 EGREP=$lt_EGREP
19023
19024 # A literal string matcher.
19025 FGREP=$lt_FGREP
19026
19027 # A BSD- or MS-compatible name lister.
19028 NM=$lt_NM
19029
19030 # Whether we need soft or hard links.
19031 LN_S=$lt_LN_S
19032
19033 # What is the maximum length of a command?
19034 max_cmd_len=$max_cmd_len
19035
19036 # Object file suffix (normally "o").
19037 objext=$ac_objext
19038
19039 # Executable file suffix (normally "").
19040 exeext=$exeext
19041
19042 # whether the shell understands "unset".
19043 lt_unset=$lt_unset
19044
19045 # turn spaces into newlines.
19046 SP2NL=$lt_lt_SP2NL
19047
19048 # turn newlines into spaces.
19049 NL2SP=$lt_lt_NL2SP
19050
19051 # How to create reloadable object files.
19052 reload_flag=$lt_reload_flag
19053 reload_cmds=$lt_reload_cmds
19054
19055 # An object symbol dumper.
19056 OBJDUMP=$lt_OBJDUMP
19057
19058 # Method to check whether dependent libraries are shared objects.
19059 deplibs_check_method=$lt_deplibs_check_method
19060
19061 # Command to use when deplibs_check_method == "file_magic".
19062 file_magic_cmd=$lt_file_magic_cmd
19063
19064 # The archiver.
19065 AR=$lt_AR
19066 AR_FLAGS=$lt_AR_FLAGS
19067
19068 # A symbol stripping program.
19069 STRIP=$lt_STRIP
19070
19071 # Commands used to install an old-style archive.
19072 RANLIB=$lt_RANLIB
19073 old_postinstall_cmds=$lt_old_postinstall_cmds
19074 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19075
19076 # A C compiler.
19077 LTCC=$lt_CC
19078
19079 # LTCC compiler flags.
19080 LTCFLAGS=$lt_CFLAGS
19081
19082 # Take the output of nm and produce a listing of raw symbols and C names.
19083 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19084
19085 # Transform the output of nm in a proper C declaration.
19086 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19087
19088 # Transform the output of nm in a C name address pair.
19089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19090
19091 # Transform the output of nm in a C name address pair when lib prefix is needed.
19092 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19093
19094 # The name of the directory that contains temporary libtool files.
19095 objdir=$objdir
19096
19097 # Shell to use when invoking shell scripts.
19098 SHELL=$lt_SHELL
19099
19100 # An echo program that does not interpret backslashes.
19101 ECHO=$lt_ECHO
19102
19103 # Used to examine libraries when file_magic_cmd begins with "file".
19104 MAGIC_CMD=$MAGIC_CMD
19105
19106 # Must we lock files when doing compilation?
19107 need_locks=$lt_need_locks
19108
19109 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19110 DSYMUTIL=$lt_DSYMUTIL
19111
19112 # Tool to change global to local symbols on Mac OS X.
19113 NMEDIT=$lt_NMEDIT
19114
19115 # Tool to manipulate fat objects and archives on Mac OS X.
19116 LIPO=$lt_LIPO
19117
19118 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19119 OTOOL=$lt_OTOOL
19120
19121 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19122 OTOOL64=$lt_OTOOL64
19123
19124 # Old archive suffix (normally "a").
19125 libext=$libext
19126
19127 # Shared library suffix (normally ".so").
19128 shrext_cmds=$lt_shrext_cmds
19129
19130 # The commands to extract the exported symbol list from a shared archive.
19131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19132
19133 # Variables whose values should be saved in libtool wrapper scripts and
19134 # restored at link time.
19135 variables_saved_for_relink=$lt_variables_saved_for_relink
19136
19137 # Do we need the "lib" prefix for modules?
19138 need_lib_prefix=$need_lib_prefix
19139
19140 # Do we need a version for libraries?
19141 need_version=$need_version
19142
19143 # Library versioning type.
19144 version_type=$version_type
19145
19146 # Shared library runtime path variable.
19147 runpath_var=$runpath_var
19148
19149 # Shared library path variable.
19150 shlibpath_var=$shlibpath_var
19151
19152 # Is shlibpath searched before the hard-coded library search path?
19153 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19154
19155 # Format of library name prefix.
19156 libname_spec=$lt_libname_spec
19157
19158 # List of archive names. First name is the real one, the rest are links.
19159 # The last name is the one that the linker finds with -lNAME
19160 library_names_spec=$lt_library_names_spec
19161
19162 # The coded name of the library, if different from the real name.
19163 soname_spec=$lt_soname_spec
19164
19165 # Command to use after installation of a shared archive.
19166 postinstall_cmds=$lt_postinstall_cmds
19167
19168 # Command to use after uninstallation of a shared archive.
19169 postuninstall_cmds=$lt_postuninstall_cmds
19170
19171 # Commands used to finish a libtool library installation in a directory.
19172 finish_cmds=$lt_finish_cmds
19173
19174 # As "finish_cmds", except a single script fragment to be evaled but
19175 # not shown.
19176 finish_eval=$lt_finish_eval
19177
19178 # Whether we should hardcode library paths into libraries.
19179 hardcode_into_libs=$hardcode_into_libs
19180
19181 # Compile-time system search path for libraries.
19182 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19183
19184 # Run-time system search path for libraries.
19185 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19186
19187 # Whether dlopen is supported.
19188 dlopen_support=$enable_dlopen
19189
19190 # Whether dlopen of programs is supported.
19191 dlopen_self=$enable_dlopen_self
19192
19193 # Whether dlopen of statically linked programs is supported.
19194 dlopen_self_static=$enable_dlopen_self_static
19195
19196 # Commands to strip libraries.
19197 old_striplib=$lt_old_striplib
19198 striplib=$lt_striplib
19199
19200
19201 # The linker used to build libraries.
19202 LD=$lt_LD
19203
19204 # Commands used to build an old-style archive.
19205 old_archive_cmds=$lt_old_archive_cmds
19206
19207 # A language specific compiler.
19208 CC=$lt_compiler
19209
19210 # Is the compiler the GNU compiler?
19211 with_gcc=$GCC
19212
19213 # Compiler flag to turn off builtin functions.
19214 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19215
19216 # How to pass a linker flag through the compiler.
19217 wl=$lt_lt_prog_compiler_wl
19218
19219 # Additional compiler flags for building library objects.
19220 pic_flag=$lt_lt_prog_compiler_pic
19221
19222 # Compiler flag to prevent dynamic linking.
19223 link_static_flag=$lt_lt_prog_compiler_static
19224
19225 # Does compiler simultaneously support -c and -o options?
19226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19227
19228 # Whether or not to add -lc for building shared libraries.
19229 build_libtool_need_lc=$archive_cmds_need_lc
19230
19231 # Whether or not to disallow shared libs when runtime libs are static.
19232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19233
19234 # Compiler flag to allow reflexive dlopens.
19235 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19236
19237 # Compiler flag to generate shared objects directly from archives.
19238 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19239
19240 # Whether the compiler copes with passing no objects directly.
19241 compiler_needs_object=$lt_compiler_needs_object
19242
19243 # Create an old-style archive from a shared archive.
19244 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19245
19246 # Create a temporary old-style archive to link instead of a shared archive.
19247 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19248
19249 # Commands used to build a shared archive.
19250 archive_cmds=$lt_archive_cmds
19251 archive_expsym_cmds=$lt_archive_expsym_cmds
19252
19253 # Commands used to build a loadable module if different from building
19254 # a shared archive.
19255 module_cmds=$lt_module_cmds
19256 module_expsym_cmds=$lt_module_expsym_cmds
19257
19258 # Whether we are building with GNU ld or not.
19259 with_gnu_ld=$lt_with_gnu_ld
19260
19261 # Flag that allows shared libraries with undefined symbols to be built.
19262 allow_undefined_flag=$lt_allow_undefined_flag
19263
19264 # Flag that enforces no undefined symbols.
19265 no_undefined_flag=$lt_no_undefined_flag
19266
19267 # Flag to hardcode \$libdir into a binary during linking.
19268 # This must work even if \$libdir does not exist
19269 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19270
19271 # If ld is used when linking, flag to hardcode \$libdir into a binary
19272 # during linking. This must work even if \$libdir does not exist.
19273 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19274
19275 # Whether we need a single "-rpath" flag with a separated argument.
19276 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19277
19278 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19279 # DIR into the resulting binary.
19280 hardcode_direct=$hardcode_direct
19281
19282 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19283 # DIR into the resulting binary and the resulting library dependency is
19284 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19285 # library is relocated.
19286 hardcode_direct_absolute=$hardcode_direct_absolute
19287
19288 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19289 # into the resulting binary.
19290 hardcode_minus_L=$hardcode_minus_L
19291
19292 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19293 # into the resulting binary.
19294 hardcode_shlibpath_var=$hardcode_shlibpath_var
19295
19296 # Set to "yes" if building a shared library automatically hardcodes DIR
19297 # into the library and all subsequent libraries and executables linked
19298 # against it.
19299 hardcode_automatic=$hardcode_automatic
19300
19301 # Set to yes if linker adds runtime paths of dependent libraries
19302 # to runtime path list.
19303 inherit_rpath=$inherit_rpath
19304
19305 # Whether libtool must link a program against all its dependency libraries.
19306 link_all_deplibs=$link_all_deplibs
19307
19308 # Fix the shell variable \$srcfile for the compiler.
19309 fix_srcfile_path=$lt_fix_srcfile_path
19310
19311 # Set to "yes" if exported symbols are required.
19312 always_export_symbols=$always_export_symbols
19313
19314 # The commands to list exported symbols.
19315 export_symbols_cmds=$lt_export_symbols_cmds
19316
19317 # Symbols that should not be listed in the preloaded symbols.
19318 exclude_expsyms=$lt_exclude_expsyms
19319
19320 # Symbols that must always be exported.
19321 include_expsyms=$lt_include_expsyms
19322
19323 # Commands necessary for linking programs (against libraries) with templates.
19324 prelink_cmds=$lt_prelink_cmds
19325
19326 # Specify filename containing input files.
19327 file_list_spec=$lt_file_list_spec
19328
19329 # How to hardcode a shared library path into an executable.
19330 hardcode_action=$hardcode_action
19331
19332 # The directories searched by this compiler when creating a shared library.
19333 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19334
19335 # Dependencies to place before and after the objects being linked to
19336 # create a shared library.
19337 predep_objects=$lt_predep_objects
19338 postdep_objects=$lt_postdep_objects
19339 predeps=$lt_predeps
19340 postdeps=$lt_postdeps
19341
19342 # The library search path used internally by the compiler when linking
19343 # a shared library.
19344 compiler_lib_search_path=$lt_compiler_lib_search_path
19345
19346 # ### END LIBTOOL CONFIG
19347
19348 _LT_EOF
19349
19350 case $host_os in
19351 aix3*)
19352 cat <<\_LT_EOF >> "$cfgfile"
19353 # AIX sometimes has problems with the GCC collect2 program. For some
19354 # reason, if we set the COLLECT_NAMES environment variable, the problems
19355 # vanish in a puff of smoke.
19356 if test "X${COLLECT_NAMES+set}" != Xset; then
19357 COLLECT_NAMES=
19358 export COLLECT_NAMES
19359 fi
19360 _LT_EOF
19361 ;;
19362 esac
19363
19364
19365 ltmain="$ac_aux_dir/ltmain.sh"
19366
19367
19368 # We use sed instead of cat because bash on DJGPP gets confused if
19369 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19370 # text mode, it properly converts lines to CR/LF. This bash problem
19371 # is reportedly fixed, but why not run on old versions too?
19372 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19373 || (rm -f "$cfgfile"; exit 1)
19374
19375 case $xsi_shell in
19376 yes)
19377 cat << \_LT_EOF >> "$cfgfile"
19378
19379 # func_dirname file append nondir_replacement
19380 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19381 # otherwise set result to NONDIR_REPLACEMENT.
19382 func_dirname ()
19383 {
19384 case ${1} in
19385 */*) func_dirname_result="${1%/*}${2}" ;;
19386 * ) func_dirname_result="${3}" ;;
19387 esac
19388 }
19389
19390 # func_basename file
19391 func_basename ()
19392 {
19393 func_basename_result="${1##*/}"
19394 }
19395
19396 # func_dirname_and_basename file append nondir_replacement
19397 # perform func_basename and func_dirname in a single function
19398 # call:
19399 # dirname: Compute the dirname of FILE. If nonempty,
19400 # add APPEND to the result, otherwise set result
19401 # to NONDIR_REPLACEMENT.
19402 # value returned in "$func_dirname_result"
19403 # basename: Compute filename of FILE.
19404 # value retuned in "$func_basename_result"
19405 # Implementation must be kept synchronized with func_dirname
19406 # and func_basename. For efficiency, we do not delegate to
19407 # those functions but instead duplicate the functionality here.
19408 func_dirname_and_basename ()
19409 {
19410 case ${1} in
19411 */*) func_dirname_result="${1%/*}${2}" ;;
19412 * ) func_dirname_result="${3}" ;;
19413 esac
19414 func_basename_result="${1##*/}"
19415 }
19416
19417 # func_stripname prefix suffix name
19418 # strip PREFIX and SUFFIX off of NAME.
19419 # PREFIX and SUFFIX must not contain globbing or regex special
19420 # characters, hashes, percent signs, but SUFFIX may contain a leading
19421 # dot (in which case that matches only a dot).
19422 func_stripname ()
19423 {
19424 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19425 # positional parameters, so assign one to ordinary parameter first.
19426 func_stripname_result=${3}
19427 func_stripname_result=${func_stripname_result#"${1}"}
19428 func_stripname_result=${func_stripname_result%"${2}"}
19429 }
19430
19431 # func_opt_split
19432 func_opt_split ()
19433 {
19434 func_opt_split_opt=${1%%=*}
19435 func_opt_split_arg=${1#*=}
19436 }
19437
19438 # func_lo2o object
19439 func_lo2o ()
19440 {
19441 case ${1} in
19442 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19443 *) func_lo2o_result=${1} ;;
19444 esac
19445 }
19446
19447 # func_xform libobj-or-source
19448 func_xform ()
19449 {
19450 func_xform_result=${1%.*}.lo
19451 }
19452
19453 # func_arith arithmetic-term...
19454 func_arith ()
19455 {
19456 func_arith_result=$(( $* ))
19457 }
19458
19459 # func_len string
19460 # STRING may not start with a hyphen.
19461 func_len ()
19462 {
19463 func_len_result=${#1}
19464 }
19465
19466 _LT_EOF
19467 ;;
19468 *) # Bourne compatible functions.
19469 cat << \_LT_EOF >> "$cfgfile"
19470
19471 # func_dirname file append nondir_replacement
19472 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19473 # otherwise set result to NONDIR_REPLACEMENT.
19474 func_dirname ()
19475 {
19476 # Extract subdirectory from the argument.
19477 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19478 if test "X$func_dirname_result" = "X${1}"; then
19479 func_dirname_result="${3}"
19480 else
19481 func_dirname_result="$func_dirname_result${2}"
19482 fi
19483 }
19484
19485 # func_basename file
19486 func_basename ()
19487 {
19488 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19489 }
19490
19491
19492 # func_stripname prefix suffix name
19493 # strip PREFIX and SUFFIX off of NAME.
19494 # PREFIX and SUFFIX must not contain globbing or regex special
19495 # characters, hashes, percent signs, but SUFFIX may contain a leading
19496 # dot (in which case that matches only a dot).
19497 # func_strip_suffix prefix name
19498 func_stripname ()
19499 {
19500 case ${2} in
19501 .*) func_stripname_result=`$ECHO "X${3}" \
19502 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19503 *) func_stripname_result=`$ECHO "X${3}" \
19504 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19505 esac
19506 }
19507
19508 # sed scripts:
19509 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19510 my_sed_long_arg='1s/^-[^=]*=//'
19511
19512 # func_opt_split
19513 func_opt_split ()
19514 {
19515 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19516 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19517 }
19518
19519 # func_lo2o object
19520 func_lo2o ()
19521 {
19522 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19523 }
19524
19525 # func_xform libobj-or-source
19526 func_xform ()
19527 {
19528 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19529 }
19530
19531 # func_arith arithmetic-term...
19532 func_arith ()
19533 {
19534 func_arith_result=`expr "$@"`
19535 }
19536
19537 # func_len string
19538 # STRING may not start with a hyphen.
19539 func_len ()
19540 {
19541 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19542 }
19543
19544 _LT_EOF
19545 esac
19546
19547 case $lt_shell_append in
19548 yes)
19549 cat << \_LT_EOF >> "$cfgfile"
19550
19551 # func_append var value
19552 # Append VALUE to the end of shell variable VAR.
19553 func_append ()
19554 {
19555 eval "$1+=\$2"
19556 }
19557 _LT_EOF
19558 ;;
19559 *)
19560 cat << \_LT_EOF >> "$cfgfile"
19561
19562 # func_append var value
19563 # Append VALUE to the end of shell variable VAR.
19564 func_append ()
19565 {
19566 eval "$1=\$$1\$2"
19567 }
19568
19569 _LT_EOF
19570 ;;
19571 esac
19572
19573
19574 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19575 || (rm -f "$cfgfile"; exit 1)
19576
19577 mv -f "$cfgfile" "$ofile" ||
19578 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19579 chmod +x "$ofile"
19580
19581
19582 cat <<_LT_EOF >> "$ofile"
19583
19584 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19585
19586 # The linker used to build libraries.
19587 LD=$lt_LD_CXX
19588
19589 # Commands used to build an old-style archive.
19590 old_archive_cmds=$lt_old_archive_cmds_CXX
19591
19592 # A language specific compiler.
19593 CC=$lt_compiler_CXX
19594
19595 # Is the compiler the GNU compiler?
19596 with_gcc=$GCC_CXX
19597
19598 # Compiler flag to turn off builtin functions.
19599 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19600
19601 # How to pass a linker flag through the compiler.
19602 wl=$lt_lt_prog_compiler_wl_CXX
19603
19604 # Additional compiler flags for building library objects.
19605 pic_flag=$lt_lt_prog_compiler_pic_CXX
19606
19607 # Compiler flag to prevent dynamic linking.
19608 link_static_flag=$lt_lt_prog_compiler_static_CXX
19609
19610 # Does compiler simultaneously support -c and -o options?
19611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19612
19613 # Whether or not to add -lc for building shared libraries.
19614 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19615
19616 # Whether or not to disallow shared libs when runtime libs are static.
19617 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19618
19619 # Compiler flag to allow reflexive dlopens.
19620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19621
19622 # Compiler flag to generate shared objects directly from archives.
19623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19624
19625 # Whether the compiler copes with passing no objects directly.
19626 compiler_needs_object=$lt_compiler_needs_object_CXX
19627
19628 # Create an old-style archive from a shared archive.
19629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19630
19631 # Create a temporary old-style archive to link instead of a shared archive.
19632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19633
19634 # Commands used to build a shared archive.
19635 archive_cmds=$lt_archive_cmds_CXX
19636 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19637
19638 # Commands used to build a loadable module if different from building
19639 # a shared archive.
19640 module_cmds=$lt_module_cmds_CXX
19641 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19642
19643 # Whether we are building with GNU ld or not.
19644 with_gnu_ld=$lt_with_gnu_ld_CXX
19645
19646 # Flag that allows shared libraries with undefined symbols to be built.
19647 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19648
19649 # Flag that enforces no undefined symbols.
19650 no_undefined_flag=$lt_no_undefined_flag_CXX
19651
19652 # Flag to hardcode \$libdir into a binary during linking.
19653 # This must work even if \$libdir does not exist
19654 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19655
19656 # If ld is used when linking, flag to hardcode \$libdir into a binary
19657 # during linking. This must work even if \$libdir does not exist.
19658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19659
19660 # Whether we need a single "-rpath" flag with a separated argument.
19661 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19662
19663 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19664 # DIR into the resulting binary.
19665 hardcode_direct=$hardcode_direct_CXX
19666
19667 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19668 # DIR into the resulting binary and the resulting library dependency is
19669 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19670 # library is relocated.
19671 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19672
19673 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19674 # into the resulting binary.
19675 hardcode_minus_L=$hardcode_minus_L_CXX
19676
19677 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19678 # into the resulting binary.
19679 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19680
19681 # Set to "yes" if building a shared library automatically hardcodes DIR
19682 # into the library and all subsequent libraries and executables linked
19683 # against it.
19684 hardcode_automatic=$hardcode_automatic_CXX
19685
19686 # Set to yes if linker adds runtime paths of dependent libraries
19687 # to runtime path list.
19688 inherit_rpath=$inherit_rpath_CXX
19689
19690 # Whether libtool must link a program against all its dependency libraries.
19691 link_all_deplibs=$link_all_deplibs_CXX
19692
19693 # Fix the shell variable \$srcfile for the compiler.
19694 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19695
19696 # Set to "yes" if exported symbols are required.
19697 always_export_symbols=$always_export_symbols_CXX
19698
19699 # The commands to list exported symbols.
19700 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19701
19702 # Symbols that should not be listed in the preloaded symbols.
19703 exclude_expsyms=$lt_exclude_expsyms_CXX
19704
19705 # Symbols that must always be exported.
19706 include_expsyms=$lt_include_expsyms_CXX
19707
19708 # Commands necessary for linking programs (against libraries) with templates.
19709 prelink_cmds=$lt_prelink_cmds_CXX
19710
19711 # Specify filename containing input files.
19712 file_list_spec=$lt_file_list_spec_CXX
19713
19714 # How to hardcode a shared library path into an executable.
19715 hardcode_action=$hardcode_action_CXX
19716
19717 # The directories searched by this compiler when creating a shared library.
19718 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19719
19720 # Dependencies to place before and after the objects being linked to
19721 # create a shared library.
19722 predep_objects=$lt_predep_objects_CXX
19723 postdep_objects=$lt_postdep_objects_CXX
19724 predeps=$lt_predeps_CXX
19725 postdeps=$lt_postdeps_CXX
19726
19727 # The library search path used internally by the compiler when linking
19728 # a shared library.
19729 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19730
19731 # ### END LIBTOOL TAG CONFIG: CXX
19732 _LT_EOF
19733
19734 ;;
19735
19736 esac
19737 done # for ac_tag
19738
19739
19740 { (exit 0); exit 0; }
19741 _ACEOF
19742 chmod +x $CONFIG_STATUS
19743 ac_clean_files=$ac_clean_files_save
19744
19745 test $ac_write_fail = 0 ||
19746 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19747 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19748 { (exit 1); exit 1; }; }
19749
19750
19751 # configure is writing to config.log, and then calls config.status.
19752 # config.status does its own redirection, appending to config.log.
19753 # Unfortunately, on DOS this fails, as config.log is still kept open
19754 # by configure, so config.status won't be able to write to it; its
19755 # output is simply discarded. So we exec the FD to /dev/null,
19756 # effectively closing config.log, so it can be properly (re)opened and
19757 # appended to by config.status. When coming back to configure, we
19758 # need to make the FD available again.
19759 if test "$no_create" != yes; then
19760 ac_cs_success=:
19761 ac_config_status_args=
19762 test "$silent" = yes &&
19763 ac_config_status_args="$ac_config_status_args --quiet"
19764 exec 5>/dev/null
19765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19766 exec 5>>config.log
19767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19768 # would make configure fail if this is the last instruction.
19769 $ac_cs_success || { (exit 1); exit 1; }
19770 fi
19771 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19772 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19773 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19774 fi
19775