Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for g15daemon 1.9.5.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='g15daemon'
730 PACKAGE_TARNAME='g15daemon'
731 PACKAGE_VERSION='1.9.5.3'
732 PACKAGE_STRING='g15daemon 1.9.5.3'
733 PACKAGE_BUGREPORT='[email protected]'
734
735 ac_default_prefix=/usr
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 SED
860 GREP
861 EGREP
862 LN_S
863 ECHO
864 AR
865 RANLIB
866 CPP
867 CXX
868 CXXFLAGS
869 ac_ct_CXX
870 CXXDEPMODE
871 am__fastdepCXX_TRUE
872 am__fastdepCXX_FALSE
873 CXXCPP
874 F77
875 FFLAGS
876 ac_ct_F77
877 LIBTOOL
878 KEXT_LOCATION
879 KEXT_INSTALL_TRUE
880 KEXT_INSTALL_FALSE
881 UINPUT_INTERFACE_PLUGIN_TRUE
882 UINPUT_INTERFACE_PLUGIN_FALSE
883 G15DAEMON_PLUGIN_DIR
884 LIBOBJS
885 LTLIBOBJS'
886 ac_subst_files=''
887 ac_precious_vars='build_alias
888 host_alias
889 target_alias
890 CC
891 CFLAGS
892 LDFLAGS
893 LIBS
894 CPPFLAGS
895 CPP
896 CXX
897 CXXFLAGS
898 CCC
899 CXXCPP
900 F77
901 FFLAGS'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
957 ac_prev=
958 continue
959 fi
960
961 case $ac_option in
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
1004 -disable-* | --disable-*)
1005 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011 eval enable_$ac_feature=no ;;
1012
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1017
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1022
1023 -enable-* | --enable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030 eval enable_$ac_feature=\$ac_optarg ;;
1031
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1040
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1044
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1051
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1056
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1062
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1069
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1074
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1079
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1086
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1091
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1098
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1103
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1107
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1111
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1115
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1124
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1129
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1136
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1143
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1160
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1165
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1170
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1174
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1180
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1191
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1196
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1201
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1208
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1213
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1216
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1219
1220 -with-* | --with-*)
1221 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=no ;;
1237
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1241
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1248
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1255
1256 -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258 { (exit 1); exit 1; }; }
1259 ;;
1260
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266 { (exit 1); exit 1; }; }
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1269
1270 *)
1271 # FIXME: should be removed in autoconf 3.0.
1272 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 ;;
1277
1278 esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 { echo "$as_me: error: missing argument to $ac_option" >&2
1284 { (exit 1); exit 1; }; }
1285 fi
1286
1287 # Be sure to have absolute directory names.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1292 do
1293 eval ac_val=\$$ac_var
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$0" : 'X\(//\)[^/]' \| \
1343 X"$0" : 'X\(//\)$' \| \
1344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 echo X"$0" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures g15daemon 1.9.5.3 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/g15daemon]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of g15daemon 1.9.5.3:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --disable-uinput do not build linux uinput plugin (default: autodetect)
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-tags[=TAGS] include additional configurations [automatic]
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CPP C preprocessor
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1510 CXXCPP C++ preprocessor
1511 F77 Fortran 77 compiler command
1512 FFLAGS Fortran 77 compiler flags
1513
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1516
1517 Report bugs to <[email protected]>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" || continue
1526 ac_builddir=.
1527
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *)
1531 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1543
1544 case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 g15daemon configure 1.9.5.3
1579 generated by GNU Autoconf 2.61
1580
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586 exit
1587 fi
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1591
1592 It was created by g15daemon $as_me 1.9.5.3, which was
1593 generated by GNU Autoconf 2.61. Invocation command line was
1594
1595 $ $0 $@
1596
1597 _ACEOF
1598 exec 5>>config.log
1599 {
1600 cat <<_ASUNAME
1601 ## --------- ##
1602 ## Platform. ##
1603 ## --------- ##
1604
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1610
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1613
1614 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1615 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1618 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1619 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1620 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1621
1622 _ASUNAME
1623
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1632
1633 } >&5
1634
1635 cat >&5 <<_ACEOF
1636
1637
1638 ## ----------- ##
1639 ## Core tests. ##
1640 ## ----------- ##
1641
1642 _ACEOF
1643
1644
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1655 do
1656 for ac_arg
1657 do
1658 case $ac_arg in
1659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1662 continue ;;
1663 *\'*)
1664 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665 esac
1666 case $ac_pass in
1667 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668 2)
1669 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670 if test $ac_must_keep_next = true; then
1671 ac_must_keep_next=false # Got value, back to normal.
1672 else
1673 case $ac_arg in
1674 *=* | --config-cache | -C | -disable-* | --disable-* \
1675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677 | -with-* | --with-* | -without-* | --without-* | --x)
1678 case "$ac_configure_args0 " in
1679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680 esac
1681 ;;
1682 -* ) ac_must_keep_next=true ;;
1683 esac
1684 fi
1685 ac_configure_args="$ac_configure_args '$ac_arg'"
1686 ;;
1687 esac
1688 done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1692
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log. We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699 # Save into config.log some information that might help in debugging.
1700 {
1701 echo
1702
1703 cat <<\_ASBOX
1704 ## ---------------- ##
1705 ## Cache variables. ##
1706 ## ---------------- ##
1707 _ASBOX
1708 echo
1709 # The following way of writing the cache mishandles newlines in values,
1710 (
1711 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712 eval ac_val=\$$ac_var
1713 case $ac_val in #(
1714 *${as_nl}*)
1715 case $ac_var in #(
1716 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718 esac
1719 case $ac_var in #(
1720 _ | IFS | as_nl) ;; #(
1721 *) $as_unset $ac_var ;;
1722 esac ;;
1723 esac
1724 done
1725 (set) 2>&1 |
1726 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727 *${as_nl}ac_space=\ *)
1728 sed -n \
1729 "s/'\''/'\''\\\\'\'''\''/g;
1730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 ;; #(
1732 *)
1733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734 ;;
1735 esac |
1736 sort
1737 )
1738 echo
1739
1740 cat <<\_ASBOX
1741 ## ----------------- ##
1742 ## Output variables. ##
1743 ## ----------------- ##
1744 _ASBOX
1745 echo
1746 for ac_var in $ac_subst_vars
1747 do
1748 eval ac_val=\$$ac_var
1749 case $ac_val in
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 esac
1752 echo "$ac_var='\''$ac_val'\''"
1753 done | sort
1754 echo
1755
1756 if test -n "$ac_subst_files"; then
1757 cat <<\_ASBOX
1758 ## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##
1761 _ASBOX
1762 echo
1763 for ac_var in $ac_subst_files
1764 do
1765 eval ac_val=\$$ac_var
1766 case $ac_val in
1767 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 esac
1769 echo "$ac_var='\''$ac_val'\''"
1770 done | sort
1771 echo
1772 fi
1773
1774 if test -s confdefs.h; then
1775 cat <<\_ASBOX
1776 ## ----------- ##
1777 ## confdefs.h. ##
1778 ## ----------- ##
1779 _ASBOX
1780 echo
1781 cat confdefs.h
1782 echo
1783 fi
1784 test "$ac_signal" != 0 &&
1785 echo "$as_me: caught signal $ac_signal"
1786 echo "$as_me: exit $exit_status"
1787 } >&5
1788 rm -f core *.core core.conftest.* &&
1789 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 exit $exit_status
1791 ' 0
1792 for ac_signal in 1 2 13 15; do
1793 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 done
1795 ac_signal=0
1796
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1799
1800 # Predefined preprocessor variables.
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_NAME "$PACKAGE_NAME"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_STRING "$PACKAGE_STRING"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1825
1826
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 else
1834 set x "$ac_default_prefix/share/config.site" \
1835 "$ac_default_prefix/etc/config.site"
1836 fi
1837 shift
1838 for ac_site_file
1839 do
1840 if test -r "$ac_site_file"; then
1841 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843 sed 's/^/| /' "$ac_site_file" >&5
1844 . "$ac_site_file"
1845 fi
1846 done
1847
1848 if test -r "$cache_file"; then
1849 # Some versions of bash will fail to source /dev/null (special
1850 # files actually), so we avoid doing that.
1851 if test -f "$cache_file"; then
1852 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1854 case $cache_file in
1855 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856 *) . "./$cache_file";;
1857 esac
1858 fi
1859 else
1860 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1862 >$cache_file
1863 fi
1864
1865 # Check that the precious variables saved in the cache have kept the same
1866 # value.
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870 eval ac_new_set=\$ac_env_${ac_var}_set
1871 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872 eval ac_new_val=\$ac_env_${ac_var}_value
1873 case $ac_old_set,$ac_new_set in
1874 set,)
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1878 ,set)
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1882 ,);;
1883 *)
1884 if test "x$ac_old_val" != "x$ac_new_val"; then
1885 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1888 echo "$as_me: former value: $ac_old_val" >&2;}
1889 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1890 echo "$as_me: current value: $ac_new_val" >&2;}
1891 ac_cache_corrupted=:
1892 fi;;
1893 esac
1894 # Pass precious variables to config.status.
1895 if test "$ac_new_set" = set; then
1896 case $ac_new_val in
1897 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 *) ac_arg=$ac_var=$ac_new_val ;;
1899 esac
1900 case " $ac_configure_args " in
1901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903 esac
1904 fi
1905 done
1906 if $ac_cache_corrupted; then
1907 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911 { (exit 1); exit 1; }; }
1912 fi
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938 ac_ext=c
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943
1944
1945
1946 ac_aux_dir=
1947 for ac_dir in config "$srcdir"/config; do
1948 if test -f "$ac_dir/install-sh"; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install-sh -c"
1951 break
1952 elif test -f "$ac_dir/install.sh"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install.sh -c"
1955 break
1956 elif test -f "$ac_dir/shtool"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 break
1960 fi
1961 done
1962 if test -z "$ac_aux_dir"; then
1963 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1964 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1965 { (exit 1); exit 1; }; }
1966 fi
1967
1968 # These three variables are undocumented and unsupported,
1969 # and are intended to be withdrawn in a future Autoconf release.
1970 # They can cause serious problems if a builder's source tree is in a directory
1971 # whose full name contains unusual characters.
1972 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1973 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1974 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975
1976
1977 # Make sure we can run config.sub.
1978 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1979 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1980 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1981 { (exit 1); exit 1; }; }
1982
1983 { echo "$as_me:$LINENO: checking build system type" >&5
1984 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1985 if test "${ac_cv_build+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 ac_build_alias=$build_alias
1989 test "x$ac_build_alias" = x &&
1990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1991 test "x$ac_build_alias" = x &&
1992 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1993 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1994 { (exit 1); exit 1; }; }
1995 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1996 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1998 { (exit 1); exit 1; }; }
1999
2000 fi
2001 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2002 echo "${ECHO_T}$ac_cv_build" >&6; }
2003 case $ac_cv_build in
2004 *-*-*) ;;
2005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2006 echo "$as_me: error: invalid value of canonical build" >&2;}
2007 { (exit 1); exit 1; }; };;
2008 esac
2009 build=$ac_cv_build
2010 ac_save_IFS=$IFS; IFS='-'
2011 set x $ac_cv_build
2012 shift
2013 build_cpu=$1
2014 build_vendor=$2
2015 shift; shift
2016 # Remember, the first character of IFS is used to create $*,
2017 # except with old shells:
2018 build_os=$*
2019 IFS=$ac_save_IFS
2020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2021
2022
2023 { echo "$as_me:$LINENO: checking host system type" >&5
2024 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_host+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test "x$host_alias" = x; then
2029 ac_cv_host=$ac_cv_build
2030 else
2031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2032 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2033 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2034 { (exit 1); exit 1; }; }
2035 fi
2036
2037 fi
2038 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2039 echo "${ECHO_T}$ac_cv_host" >&6; }
2040 case $ac_cv_host in
2041 *-*-*) ;;
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2043 echo "$as_me: error: invalid value of canonical host" >&2;}
2044 { (exit 1); exit 1; }; };;
2045 esac
2046 host=$ac_cv_host
2047 ac_save_IFS=$IFS; IFS='-'
2048 set x $ac_cv_host
2049 shift
2050 host_cpu=$1
2051 host_vendor=$2
2052 shift; shift
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2055 host_os=$*
2056 IFS=$ac_save_IFS
2057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2058
2059
2060 { echo "$as_me:$LINENO: checking target system type" >&5
2061 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_target+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 if test "x$target_alias" = x; then
2066 ac_cv_target=$ac_cv_host
2067 else
2068 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
2072 fi
2073
2074 fi
2075 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2076 echo "${ECHO_T}$ac_cv_target" >&6; }
2077 case $ac_cv_target in
2078 *-*-*) ;;
2079 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2080 echo "$as_me: error: invalid value of canonical target" >&2;}
2081 { (exit 1); exit 1; }; };;
2082 esac
2083 target=$ac_cv_target
2084 ac_save_IFS=$IFS; IFS='-'
2085 set x $ac_cv_target
2086 shift
2087 target_cpu=$1
2088 target_vendor=$2
2089 shift; shift
2090 # Remember, the first character of IFS is used to create $*,
2091 # except with old shells:
2092 target_os=$*
2093 IFS=$ac_save_IFS
2094 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2095
2096
2097 # The aliases save the names the user supplied, while $host etc.
2098 # will get canonicalized.
2099 test -n "$target_alias" &&
2100 test "$program_prefix$program_suffix$program_transform_name" = \
2101 NONENONEs,x,x, &&
2102 program_prefix=${target_alias}-
2103
2104 am__api_version='1.10'
2105
2106 # Find a good install program. We prefer a C program (faster),
2107 # so one script is as good as another. But avoid the broken or
2108 # incompatible versions:
2109 # SysV /etc/install, /usr/sbin/install
2110 # SunOS /usr/etc/install
2111 # IRIX /sbin/install
2112 # AIX /bin/install
2113 # AmigaOS /C/install, which installs bootblocks on floppy discs
2114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117 # OS/2's system install, which has a completely different semantic
2118 # ./install, which can be erroneously created by make from ./install.sh.
2119 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2121 if test -z "$INSTALL"; then
2122 if test "${ac_cv_path_install+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2127 do
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 # Account for people who put trailing slashes in PATH elements.
2131 case $as_dir/ in
2132 ./ | .// | /cC/* | \
2133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2134 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2135 /usr/ucb/* ) ;;
2136 *)
2137 # OSF1 and SCO ODT 3.0 have their own names for install.
2138 # Don't use installbsd from OSF since it installs stuff as root
2139 # by default.
2140 for ac_prog in ginstall scoinst install; do
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2143 if test $ac_prog = install &&
2144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2145 # AIX install. It has an incompatible calling convention.
2146 :
2147 elif test $ac_prog = install &&
2148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2149 # program-specific install script used by HP pwplus--don't use.
2150 :
2151 else
2152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2153 break 3
2154 fi
2155 fi
2156 done
2157 done
2158 ;;
2159 esac
2160 done
2161 IFS=$as_save_IFS
2162
2163
2164 fi
2165 if test "${ac_cv_path_install+set}" = set; then
2166 INSTALL=$ac_cv_path_install
2167 else
2168 # As a last resort, use the slow shell script. Don't cache a
2169 # value for INSTALL within a source directory, because that will
2170 # break other packages using the cache if that directory is
2171 # removed, or if the value is a relative name.
2172 INSTALL=$ac_install_sh
2173 fi
2174 fi
2175 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2176 echo "${ECHO_T}$INSTALL" >&6; }
2177
2178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2179 # It thinks the first close brace ends the variable substitution.
2180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2181
2182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2183
2184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2185
2186 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2187 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2188 # Just in case
2189 sleep 1
2190 echo timestamp > conftest.file
2191 # Do `set' in a subshell so we don't clobber the current shell's
2192 # arguments. Must try -L first in case configure is actually a
2193 # symlink; some systems play weird games with the mod time of symlinks
2194 # (eg FreeBSD returns the mod time of the symlink's containing
2195 # directory).
2196 if (
2197 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2198 if test "$*" = "X"; then
2199 # -L didn't work.
2200 set X `ls -t $srcdir/configure conftest.file`
2201 fi
2202 rm -f conftest.file
2203 if test "$*" != "X $srcdir/configure conftest.file" \
2204 && test "$*" != "X conftest.file $srcdir/configure"; then
2205
2206 # If neither matched, then we have a broken ls. This can happen
2207 # if, for instance, CONFIG_SHELL is bash and it inherits a
2208 # broken ls alias from the environment. This has actually
2209 # happened. Such a system could not be considered "sane".
2210 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2211 alias in your environment" >&5
2212 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2213 alias in your environment" >&2;}
2214 { (exit 1); exit 1; }; }
2215 fi
2216
2217 test "$2" = conftest.file
2218 )
2219 then
2220 # Ok.
2221 :
2222 else
2223 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2224 Check your system clock" >&5
2225 echo "$as_me: error: newly created file is older than distributed files!
2226 Check your system clock" >&2;}
2227 { (exit 1); exit 1; }; }
2228 fi
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2231 test "$program_prefix" != NONE &&
2232 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2233 # Use a double $ so make ignores it.
2234 test "$program_suffix" != NONE &&
2235 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2236 # Double any \ or $. echo might interpret backslashes.
2237 # By default was `s,x,x', remove it if useless.
2238 cat <<\_ACEOF >conftest.sed
2239 s/[\\$]/&&/g;s/;s,x,x,$//
2240 _ACEOF
2241 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2242 rm -f conftest.sed
2243
2244 # expand $ac_aux_dir to an absolute path
2245 am_aux_dir=`cd $ac_aux_dir && pwd`
2246
2247 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2248 # Use eval to expand $SHELL
2249 if eval "$MISSING --run true"; then
2250 am_missing_run="$MISSING --run "
2251 else
2252 am_missing_run=
2253 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2254 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2255 fi
2256
2257 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2258 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2259 if test -z "$MKDIR_P"; then
2260 if test "${ac_cv_path_mkdir+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2265 do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_prog in mkdir gmkdir; do
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2271 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2272 'mkdir (GNU coreutils) '* | \
2273 'mkdir (coreutils) '* | \
2274 'mkdir (fileutils) '4.1*)
2275 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2276 break 3;;
2277 esac
2278 done
2279 done
2280 done
2281 IFS=$as_save_IFS
2282
2283 fi
2284
2285 if test "${ac_cv_path_mkdir+set}" = set; then
2286 MKDIR_P="$ac_cv_path_mkdir -p"
2287 else
2288 # As a last resort, use the slow shell script. Don't cache a
2289 # value for MKDIR_P within a source directory, because that will
2290 # break other packages using the cache if that directory is
2291 # removed, or if the value is a relative name.
2292 test -d ./--version && rmdir ./--version
2293 MKDIR_P="$ac_install_sh -d"
2294 fi
2295 fi
2296 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2297 echo "${ECHO_T}$MKDIR_P" >&6; }
2298
2299 mkdir_p="$MKDIR_P"
2300 case $mkdir_p in
2301 [\\/$]* | ?:[\\/]*) ;;
2302 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2303 esac
2304
2305 for ac_prog in gawk mawk nawk awk
2306 do
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_AWK+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$AWK"; then
2315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_AWK="$ac_prog"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 AWK=$ac_cv_prog_AWK
2335 if test -n "$AWK"; then
2336 { echo "$as_me:$LINENO: result: $AWK" >&5
2337 echo "${ECHO_T}$AWK" >&6; }
2338 else
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344 test -n "$AWK" && break
2345 done
2346
2347 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2348 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2349 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2350 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 cat >conftest.make <<\_ACEOF
2354 SHELL = /bin/sh
2355 all:
2356 @echo '@@@%%%=$(MAKE)=@@@%%%'
2357 _ACEOF
2358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2360 *@@@%%%=?*=@@@%%%*)
2361 eval ac_cv_prog_make_${ac_make}_set=yes;;
2362 *)
2363 eval ac_cv_prog_make_${ac_make}_set=no;;
2364 esac
2365 rm -f conftest.make
2366 fi
2367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2368 { echo "$as_me:$LINENO: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6; }
2370 SET_MAKE=
2371 else
2372 { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2374 SET_MAKE="MAKE=${MAKE-make}"
2375 fi
2376
2377 rm -rf .tst 2>/dev/null
2378 mkdir .tst 2>/dev/null
2379 if test -d .tst; then
2380 am__leading_dot=.
2381 else
2382 am__leading_dot=_
2383 fi
2384 rmdir .tst 2>/dev/null
2385
2386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2388 # is not polluted with repeated "-I."
2389 am__isrc=' -I$(srcdir)'
2390 # test to see if srcdir already configured
2391 if test -f $srcdir/config.status; then
2392 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394 { (exit 1); exit 1; }; }
2395 fi
2396 fi
2397
2398 # test whether we have cygpath
2399 if test -z "$CYGPATH_W"; then
2400 if (cygpath --version) >/dev/null 2>/dev/null; then
2401 CYGPATH_W='cygpath -w'
2402 else
2403 CYGPATH_W=echo
2404 fi
2405 fi
2406
2407
2408 # Define the identity of the package.
2409 PACKAGE='g15daemon'
2410 VERSION='1.9.5.3'
2411
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE "$PACKAGE"
2415 _ACEOF
2416
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define VERSION "$VERSION"
2420 _ACEOF
2421
2422 # Some tools Automake needs.
2423
2424 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2425
2426
2427 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2428
2429
2430 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2431
2432
2433 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2434
2435
2436 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2437
2438 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2439
2440 # Installed binaries are usually stripped using `strip' when the user
2441 # run `make install-strip'. However `strip' might not be the right
2442 # tool to use in cross-compilation environments, therefore Automake
2443 # will honor the `STRIP' environment variable to overrule this program.
2444 if test "$cross_compiling" != no; then
2445 if test -n "$ac_tool_prefix"; then
2446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2447 set dummy ${ac_tool_prefix}strip; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_STRIP+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 if test -n "$STRIP"; then
2454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467 done
2468 done
2469 IFS=$as_save_IFS
2470
2471 fi
2472 fi
2473 STRIP=$ac_cv_prog_STRIP
2474 if test -n "$STRIP"; then
2475 { echo "$as_me:$LINENO: result: $STRIP" >&5
2476 echo "${ECHO_T}$STRIP" >&6; }
2477 else
2478 { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2480 fi
2481
2482
2483 fi
2484 if test -z "$ac_cv_prog_STRIP"; then
2485 ac_ct_STRIP=$STRIP
2486 # Extract the first word of "strip", so it can be a program name with args.
2487 set dummy strip; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493 if test -n "$ac_ct_STRIP"; then
2494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_ac_ct_STRIP="strip"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507 done
2508 done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2514 if test -n "$ac_ct_STRIP"; then
2515 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2516 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2517 else
2518 { echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6; }
2520 fi
2521
2522 if test "x$ac_ct_STRIP" = x; then
2523 STRIP=":"
2524 else
2525 case $cross_compiling:$ac_tool_warned in
2526 yes:)
2527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet. If you think this
2529 configuration is useful to you, please write to [email protected]." >&5
2530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2531 whose name does not start with the host triplet. If you think this
2532 configuration is useful to you, please write to [email protected]." >&2;}
2533 ac_tool_warned=yes ;;
2534 esac
2535 STRIP=$ac_ct_STRIP
2536 fi
2537 else
2538 STRIP="$ac_cv_prog_STRIP"
2539 fi
2540
2541 fi
2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544 # We need awk for the "check" target. The system "awk" is bad on
2545 # some platforms.
2546 # Always define AMTAR for backward compatibility.
2547
2548 AMTAR=${AMTAR-"${am_missing_run}tar"}
2549
2550 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2551
2552
2553
2554
2555
2556 ac_config_headers="$ac_config_headers config.h"
2557
2558
2559
2560
2561
2562 # Checks for programs.
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 CC=$ac_cv_prog_CC
2597 if test -n "$CC"; then
2598 { echo "$as_me:$LINENO: result: $CC" >&5
2599 echo "${ECHO_T}$CC" >&6; }
2600 else
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2603 fi
2604
2605
2606 fi
2607 if test -z "$ac_cv_prog_CC"; then
2608 ac_ct_CC=$CC
2609 # Extract the first word of "gcc", so it can be a program name with args.
2610 set dummy gcc; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="gcc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639 echo "${ECHO_T}$ac_ct_CC" >&6; }
2640 else
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2643 fi
2644
2645 if test "x$ac_ct_CC" = x; then
2646 CC=""
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to [email protected]." >&5
2653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet. If you think this
2655 configuration is useful to you, please write to [email protected]." >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658 CC=$ac_ct_CC
2659 fi
2660 else
2661 CC="$ac_cv_prog_CC"
2662 fi
2663
2664 if test -z "$CC"; then
2665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2667 set dummy ${ac_tool_prefix}cc; ac_word=$2
2668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2683 ac_cv_prog_CC="${ac_tool_prefix}cc"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687 done
2688 done
2689 IFS=$as_save_IFS
2690
2691 fi
2692 fi
2693 CC=$ac_cv_prog_CC
2694 if test -n "$CC"; then
2695 { echo "$as_me:$LINENO: result: $CC" >&5
2696 echo "${ECHO_T}$CC" >&6; }
2697 else
2698 { echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6; }
2700 fi
2701
2702
2703 fi
2704 fi
2705 if test -z "$CC"; then
2706 # Extract the first word of "cc", so it can be a program name with args.
2707 set dummy cc; ac_word=$2
2708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC="$CC" # Let the user override the test.
2715 else
2716 ac_prog_rejected=no
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2725 ac_prog_rejected=yes
2726 continue
2727 fi
2728 ac_cv_prog_CC="cc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 if test $ac_prog_rejected = yes; then
2737 # We found a bogon in the path, so make sure we never use it.
2738 set dummy $ac_cv_prog_CC
2739 shift
2740 if test $# != 0; then
2741 # We chose a different compiler from the bogus one.
2742 # However, it has the same basename, so the bogon will be chosen
2743 # first if we set CC to just the basename; use the full file name.
2744 shift
2745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2746 fi
2747 fi
2748 fi
2749 fi
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 { echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6; }
2754 else
2755 { echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6; }
2757 fi
2758
2759
2760 fi
2761 if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 for ac_prog in cl.exe
2764 do
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { echo "$as_me:$LINENO: result: $CC" >&5
2795 echo "${ECHO_T}$CC" >&6; }
2796 else
2797 { echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6; }
2799 fi
2800
2801
2802 test -n "$CC" && break
2803 done
2804 fi
2805 if test -z "$CC"; then
2806 ac_ct_CC=$CC
2807 for ac_prog in cl.exe
2808 do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_ac_ct_CC="$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2839 echo "${ECHO_T}$ac_ct_CC" >&6; }
2840 else
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846 test -n "$ac_ct_CC" && break
2847 done
2848
2849 if test "x$ac_ct_CC" = x; then
2850 CC=""
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2855 whose name does not start with the host triplet. If you think this
2856 configuration is useful to you, please write to [email protected]." >&5
2857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet. If you think this
2859 configuration is useful to you, please write to [email protected]." >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 CC=$ac_ct_CC
2863 fi
2864 fi
2865
2866 fi
2867
2868
2869 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: no acceptable C compiler found in \$PATH
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2874
2875 # Provide some information about the compiler.
2876 echo "$as_me:$LINENO: checking for C compiler version" >&5
2877 ac_compiler=`set X $ac_compile; echo $2`
2878 { (ac_try="$ac_compiler --version >&5"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_compiler --version >&5") 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2888 { (ac_try="$ac_compiler -v >&5"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler -v >&5") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898 { (ac_try="$ac_compiler -V >&5"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -V >&5") 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915
2916 int
2917 main ()
2918 {
2919
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 ac_clean_files_save=$ac_clean_files
2925 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2926 # Try to create an executable without -o first, disregard a.out.
2927 # It will help us diagnose broken compilers, and finding out an intuition
2928 # of exeext.
2929 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2930 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2931 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2932 #
2933 # List of possible output files, starting from the most likely.
2934 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2935 # only as a last resort. b.out is created by i960 compilers.
2936 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2937 #
2938 # The IRIX 6 linker writes into existing files which may not be
2939 # executable, retaining their permissions. Remove them first so a
2940 # subsequent execution test works.
2941 ac_rmfiles=
2942 for ac_file in $ac_files
2943 do
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2946 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2947 esac
2948 done
2949 rm -f $ac_rmfiles
2950
2951 if { (ac_try="$ac_link_default"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_link_default") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; then
2961 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2962 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2963 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2964 # so that the user can short-circuit this test for compilers unknown to
2965 # Autoconf.
2966 for ac_file in $ac_files ''
2967 do
2968 test -f "$ac_file" || continue
2969 case $ac_file in
2970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2971 ;;
2972 [ab].out )
2973 # We found the default executable, but exeext='' is most
2974 # certainly right.
2975 break;;
2976 *.* )
2977 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2978 then :; else
2979 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2980 fi
2981 # We set ac_cv_exeext here because the later test for it is not
2982 # safe: cross compilers may not add the suffix if given an `-o'
2983 # argument, so we may need to know it at that point already.
2984 # Even if this section looks crufty: it has the advantage of
2985 # actually working.
2986 break;;
2987 * )
2988 break;;
2989 esac
2990 done
2991 test "$ac_cv_exeext" = no && ac_cv_exeext=
2992
2993 else
2994 ac_file=''
2995 fi
2996
2997 { echo "$as_me:$LINENO: result: $ac_file" >&5
2998 echo "${ECHO_T}$ac_file" >&6; }
2999 if test -z "$ac_file"; then
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: C compiler cannot create executables
3006 See \`config.log' for more details." >&2;}
3007 { (exit 77); exit 77; }; }
3008 fi
3009
3010 ac_exeext=$ac_cv_exeext
3011
3012 # Check that the compiler produces executables we can run. If not, either
3013 # the compiler is broken, or we cross compile.
3014 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3017 # If not cross compiling, check that we can run a simple program.
3018 if test "$cross_compiling" != yes; then
3019 if { ac_try='./$ac_file'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 cross_compiling=no
3030 else
3031 if test "$cross_compiling" = maybe; then
3032 cross_compiling=yes
3033 else
3034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: cannot run C compiled programs.
3038 If you meant to cross compile, use \`--host'.
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }
3041 fi
3042 fi
3043 fi
3044 { echo "$as_me:$LINENO: result: yes" >&5
3045 echo "${ECHO_T}yes" >&6; }
3046
3047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3048 ac_clean_files=$ac_clean_files_save
3049 # Check that the compiler produces executables we can run. If not, either
3050 # the compiler is broken, or we cross compile.
3051 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3053 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3054 echo "${ECHO_T}$cross_compiling" >&6; }
3055
3056 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3058 if { (ac_try="$ac_link"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_link") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3069 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3070 # work properly (i.e., refer to `conftest.exe'), while it won't with
3071 # `rm'.
3072 for ac_file in conftest.exe conftest conftest.*; do
3073 test -f "$ac_file" || continue
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3076 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 break;;
3078 * ) break;;
3079 esac
3080 done
3081 else
3082 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3083 See \`config.log' for more details." >&5
3084 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&2;}
3086 { (exit 1); exit 1; }; }
3087 fi
3088
3089 rm -f conftest$ac_cv_exeext
3090 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3091 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3092
3093 rm -f conftest.$ac_ext
3094 EXEEXT=$ac_cv_exeext
3095 ac_exeext=$EXEEXT
3096 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3097 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3098 if test "${ac_cv_objext+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3107
3108 int
3109 main ()
3110 {
3111
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.o conftest.obj
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; then
3127 for ac_file in conftest.o conftest.obj 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 ) ;;
3131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3132 break;;
3133 esac
3134 done
3135 else
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details." >&5
3141 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&2;}
3143 { (exit 1); exit 1; }; }
3144 fi
3145
3146 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147 fi
3148 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3149 echo "${ECHO_T}$ac_cv_objext" >&6; }
3150 OBJEXT=$ac_cv_objext
3151 ac_objext=$OBJEXT
3152 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3153 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3154 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3163
3164 int
3165 main ()
3166 {
3167 #ifndef __GNUC__
3168 choke me
3169 #endif
3170
3171 ;
3172 return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3192 ac_compiler_gnu=yes
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 ac_compiler_gnu=no
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3202
3203 fi
3204 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3205 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3206 GCC=`test $ac_compiler_gnu = yes && echo yes`
3207 ac_test_CFLAGS=${CFLAGS+set}
3208 ac_save_CFLAGS=$CFLAGS
3209 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3210 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3211 if test "${ac_cv_prog_cc_g+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 ac_save_c_werror_flag=$ac_c_werror_flag
3215 ac_c_werror_flag=yes
3216 ac_cv_prog_cc_g=no
3217 CFLAGS="-g"
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3250 ac_cv_prog_cc_g=yes
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 CFLAGS=""
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262
3263 int
3264 main ()
3265 {
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
3288 :
3289 else
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3294 CFLAGS="-g"
3295 cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h. */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301
3302 int
3303 main ()
3304 {
3305
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } && {
3324 test -z "$ac_c_werror_flag" ||
3325 test ! -s conftest.err
3326 } && test -s conftest.$ac_objext; then
3327 ac_cv_prog_cc_g=yes
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 fi
3340
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 ac_c_werror_flag=$ac_save_c_werror_flag
3343 fi
3344 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3345 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3346 if test "$ac_test_CFLAGS" = set; then
3347 CFLAGS=$ac_save_CFLAGS
3348 elif test $ac_cv_prog_cc_g = yes; then
3349 if test "$GCC" = yes; then
3350 CFLAGS="-g -O2"
3351 else
3352 CFLAGS="-g"
3353 fi
3354 else
3355 if test "$GCC" = yes; then
3356 CFLAGS="-O2"
3357 else
3358 CFLAGS=
3359 fi
3360 fi
3361 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3362 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3363 if test "${ac_cv_prog_cc_c89+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 ac_cv_prog_cc_c89=no
3367 ac_save_CC=$CC
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <stdarg.h>
3375 #include <stdio.h>
3376 #include <sys/types.h>
3377 #include <sys/stat.h>
3378 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3379 struct buf { int x; };
3380 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3381 static char *e (p, i)
3382 char **p;
3383 int i;
3384 {
3385 return p[i];
3386 }
3387 static char *f (char * (*g) (char **, int), char **p, ...)
3388 {
3389 char *s;
3390 va_list v;
3391 va_start (v,p);
3392 s = g (p, va_arg (v,int));
3393 va_end (v);
3394 return s;
3395 }
3396
3397 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3398 function prototypes and stuff, but not '\xHH' hex character constants.
3399 These don't provoke an error unfortunately, instead are silently treated
3400 as 'x'. The following induces an error, until -std is added to get
3401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3402 array size at least. It's necessary to write '\x00'==0 to get something
3403 that's true only with -std. */
3404 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405
3406 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3407 inside strings and character constants. */
3408 #define FOO(x) 'x'
3409 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3410
3411 int test (int i, double x);
3412 struct s1 {int (*f) (int a);};
3413 struct s2 {int (*f) (double a);};
3414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 int argc;
3416 char **argv;
3417 int
3418 main ()
3419 {
3420 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3426 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427 do
3428 CC="$ac_save_CC $ac_arg"
3429 rm -f conftest.$ac_objext
3430 if { (ac_try="$ac_compile"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_compile") 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } && {
3443 test -z "$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3445 } && test -s conftest.$ac_objext; then
3446 ac_cv_prog_cc_c89=$ac_arg
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451
3452 fi
3453
3454 rm -f core conftest.err conftest.$ac_objext
3455 test "x$ac_cv_prog_cc_c89" != "xno" && break
3456 done
3457 rm -f conftest.$ac_ext
3458 CC=$ac_save_CC
3459
3460 fi
3461 # AC_CACHE_VAL
3462 case "x$ac_cv_prog_cc_c89" in
3463 x)
3464 { echo "$as_me:$LINENO: result: none needed" >&5
3465 echo "${ECHO_T}none needed" >&6; } ;;
3466 xno)
3467 { echo "$as_me:$LINENO: result: unsupported" >&5
3468 echo "${ECHO_T}unsupported" >&6; } ;;
3469 *)
3470 CC="$CC $ac_cv_prog_cc_c89"
3471 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3472 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3473 esac
3474
3475
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 DEPDIR="${am__leading_dot}deps"
3482
3483 ac_config_commands="$ac_config_commands depfiles"
3484
3485
3486 am_make=${MAKE-make}
3487 cat > confinc << 'END'
3488 am__doit:
3489 @echo done
3490 .PHONY: am__doit
3491 END
3492 # If we don't find an include directive, just comment out the code.
3493 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3494 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3495 am__include="#"
3496 am__quote=
3497 _am_result=none
3498 # First try GNU make style include.
3499 echo "include confinc" > confmf
3500 # We grep out `Entering directory' and `Leaving directory'
3501 # messages which can occur if `w' ends up in MAKEFLAGS.
3502 # In particular we don't look at `^make:' because GNU make might
3503 # be invoked under some other name (usually "gmake"), in which
3504 # case it prints its new name instead of `make'.
3505 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3506 am__include=include
3507 am__quote=
3508 _am_result=GNU
3509 fi
3510 # Now try BSD make style include.
3511 if test "$am__include" = "#"; then
3512 echo '.include "confinc"' > confmf
3513 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3514 am__include=.include
3515 am__quote="\""
3516 _am_result=BSD
3517 fi
3518 fi
3519
3520
3521 { echo "$as_me:$LINENO: result: $_am_result" >&5
3522 echo "${ECHO_T}$_am_result" >&6; }
3523 rm -f confinc confmf
3524
3525 # Check whether --enable-dependency-tracking was given.
3526 if test "${enable_dependency_tracking+set}" = set; then
3527 enableval=$enable_dependency_tracking;
3528 fi
3529
3530 if test "x$enable_dependency_tracking" != xno; then
3531 am_depcomp="$ac_aux_dir/depcomp"
3532 AMDEPBACKSLASH='\'
3533 fi
3534 if test "x$enable_dependency_tracking" != xno; then
3535 AMDEP_TRUE=
3536 AMDEP_FALSE='#'
3537 else
3538 AMDEP_TRUE='#'
3539 AMDEP_FALSE=
3540 fi
3541
3542
3543
3544 depcc="$CC" am_compiler_list=
3545
3546 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3547 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3548 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3552 # We make a subdir and do the tests there. Otherwise we can end up
3553 # making bogus files that we don't know about and never remove. For
3554 # instance it was reported that on HP-UX the gcc test will end up
3555 # making a dummy file named `D' -- because `-MD' means `put the output
3556 # in D'.
3557 mkdir conftest.dir
3558 # Copy depcomp to subdir because otherwise we won't find it if we're
3559 # using a relative directory.
3560 cp "$am_depcomp" conftest.dir
3561 cd conftest.dir
3562 # We will build objects and dependencies in a subdirectory because
3563 # it helps to detect inapplicable dependency modes. For instance
3564 # both Tru64's cc and ICC support -MD to output dependencies as a
3565 # side effect of compilation, but ICC will put the dependencies in
3566 # the current directory while Tru64 will put them in the object
3567 # directory.
3568 mkdir sub
3569
3570 am_cv_CC_dependencies_compiler_type=none
3571 if test "$am_compiler_list" = ""; then
3572 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3573 fi
3574 for depmode in $am_compiler_list; do
3575 # Setup a source with many dependencies, because some compilers
3576 # like to wrap large dependency lists on column 80 (with \), and
3577 # we should not choose a depcomp mode which is confused by this.
3578 #
3579 # We need to recreate these files for each test, as the compiler may
3580 # overwrite some of them when testing with obscure command lines.
3581 # This happens at least with the AIX C compiler.
3582 : > sub/conftest.c
3583 for i in 1 2 3 4 5 6; do
3584 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3585 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3586 # Solaris 8's {/usr,}/bin/sh.
3587 touch sub/conftst$i.h
3588 done
3589 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3590
3591 case $depmode in
3592 nosideeffect)
3593 # after this tag, mechanisms are not by side-effect, so they'll
3594 # only be used when explicitly requested
3595 if test "x$enable_dependency_tracking" = xyes; then
3596 continue
3597 else
3598 break
3599 fi
3600 ;;
3601 none) break ;;
3602 esac
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.
3606 if depmode=$depmode \
3607 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3609 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3610 >/dev/null 2>conftest.err &&
3611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3613 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3615 # icc doesn't choke on unknown options, it will just issue warnings
3616 # or remarks (even with -Werror). So we grep stderr for any message
3617 # that says an option was ignored or not supported.
3618 # When given -MP, icc 7.0 and 7.1 complain thusly:
3619 # icc: Command line warning: ignoring option '-M'; no argument required
3620 # The diagnosis changed in icc 8.0:
3621 # icc: Command line remark: option '-MP' not supported
3622 if (grep 'ignoring option' conftest.err ||
3623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3624 am_cv_CC_dependencies_compiler_type=$depmode
3625 break
3626 fi
3627 fi
3628 done
3629
3630 cd ..
3631 rm -rf conftest.dir
3632 else
3633 am_cv_CC_dependencies_compiler_type=none
3634 fi
3635
3636 fi
3637 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3640
3641 if
3642 test "x$enable_dependency_tracking" != xno \
3643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3644 am__fastdepCC_TRUE=
3645 am__fastdepCC_FALSE='#'
3646 else
3647 am__fastdepCC_TRUE='#'
3648 am__fastdepCC_FALSE=
3649 fi
3650
3651
3652 # Check whether --enable-shared was given.
3653 if test "${enable_shared+set}" = set; then
3654 enableval=$enable_shared; p=${PACKAGE-default}
3655 case $enableval in
3656 yes) enable_shared=yes ;;
3657 no) enable_shared=no ;;
3658 *)
3659 enable_shared=no
3660 # Look at the argument we got. We use all the common list separators.
3661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3662 for pkg in $enableval; do
3663 IFS="$lt_save_ifs"
3664 if test "X$pkg" = "X$p"; then
3665 enable_shared=yes
3666 fi
3667 done
3668 IFS="$lt_save_ifs"
3669 ;;
3670 esac
3671 else
3672 enable_shared=yes
3673 fi
3674
3675
3676 # Check whether --enable-static was given.
3677 if test "${enable_static+set}" = set; then
3678 enableval=$enable_static; p=${PACKAGE-default}
3679 case $enableval in
3680 yes) enable_static=yes ;;
3681 no) enable_static=no ;;
3682 *)
3683 enable_static=no
3684 # Look at the argument we got. We use all the common list separators.
3685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3686 for pkg in $enableval; do
3687 IFS="$lt_save_ifs"
3688 if test "X$pkg" = "X$p"; then
3689 enable_static=yes
3690 fi
3691 done
3692 IFS="$lt_save_ifs"
3693 ;;
3694 esac
3695 else
3696 enable_static=yes
3697 fi
3698
3699
3700 # Check whether --enable-fast-install was given.
3701 if test "${enable_fast_install+set}" = set; then
3702 enableval=$enable_fast_install; p=${PACKAGE-default}
3703 case $enableval in
3704 yes) enable_fast_install=yes ;;
3705 no) enable_fast_install=no ;;
3706 *)
3707 enable_fast_install=no
3708 # Look at the argument we got. We use all the common list separators.
3709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3710 for pkg in $enableval; do
3711 IFS="$lt_save_ifs"
3712 if test "X$pkg" = "X$p"; then
3713 enable_fast_install=yes
3714 fi
3715 done
3716 IFS="$lt_save_ifs"
3717 ;;
3718 esac
3719 else
3720 enable_fast_install=yes
3721 fi
3722
3723
3724 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3725 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3726 if test "${lt_cv_path_SED+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 # Loop through the user's path and test for sed and gsed.
3730 # Then use that list of sed's as ones to test for truncation.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for lt_ac_prog in sed gsed; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3739 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3740 fi
3741 done
3742 done
3743 done
3744 IFS=$as_save_IFS
3745 lt_ac_max=0
3746 lt_ac_count=0
3747 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3748 # along with /bin/sed that truncates output.
3749 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3750 test ! -f $lt_ac_sed && continue
3751 cat /dev/null > conftest.in
3752 lt_ac_count=0
3753 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3754 # Check for GNU sed and select it if it is found.
3755 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3756 lt_cv_path_SED=$lt_ac_sed
3757 break
3758 fi
3759 while true; do
3760 cat conftest.in conftest.in >conftest.tmp
3761 mv conftest.tmp conftest.in
3762 cp conftest.in conftest.nl
3763 echo >>conftest.nl
3764 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3765 cmp -s conftest.out conftest.nl || break
3766 # 10000 chars as input seems more than enough
3767 test $lt_ac_count -gt 10 && break
3768 lt_ac_count=`expr $lt_ac_count + 1`
3769 if test $lt_ac_count -gt $lt_ac_max; then
3770 lt_ac_max=$lt_ac_count
3771 lt_cv_path_SED=$lt_ac_sed
3772 fi
3773 done
3774 done
3775
3776 fi
3777
3778 SED=$lt_cv_path_SED
3779
3780 { echo "$as_me:$LINENO: result: $SED" >&5
3781 echo "${ECHO_T}$SED" >&6; }
3782
3783 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3784 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3785 if test "${ac_cv_path_GREP+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 # Extract the first word of "grep ggrep" to use in msg output
3789 if test -z "$GREP"; then
3790 set dummy grep ggrep; ac_prog_name=$2
3791 if test "${ac_cv_path_GREP+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 ac_path_GREP_found=false
3795 # Loop through the user's path and test for each of PROGNAME-LIST
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3798 do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_prog in grep ggrep; do
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3804 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3805 # Check for GNU ac_path_GREP and select it if it is found.
3806 # Check for GNU $ac_path_GREP
3807 case `"$ac_path_GREP" --version 2>&1` in
3808 *GNU*)
3809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3810 *)
3811 ac_count=0
3812 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3813 while :
3814 do
3815 cat "conftest.in" "conftest.in" >"conftest.tmp"
3816 mv "conftest.tmp" "conftest.in"
3817 cp "conftest.in" "conftest.nl"
3818 echo 'GREP' >> "conftest.nl"
3819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3821 ac_count=`expr $ac_count + 1`
3822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3823 # Best one so far, save it but keep looking for a better one
3824 ac_cv_path_GREP="$ac_path_GREP"
3825 ac_path_GREP_max=$ac_count
3826 fi
3827 # 10*(2^10) chars as input seems more than enough
3828 test $ac_count -gt 10 && break
3829 done
3830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3831 esac
3832
3833
3834 $ac_path_GREP_found && break 3
3835 done
3836 done
3837
3838 done
3839 IFS=$as_save_IFS
3840
3841
3842 fi
3843
3844 GREP="$ac_cv_path_GREP"
3845 if test -z "$GREP"; then
3846 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3847 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3848 { (exit 1); exit 1; }; }
3849 fi
3850
3851 else
3852 ac_cv_path_GREP=$GREP
3853 fi
3854
3855
3856 fi
3857 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3858 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3859 GREP="$ac_cv_path_GREP"
3860
3861
3862 { echo "$as_me:$LINENO: checking for egrep" >&5
3863 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3864 if test "${ac_cv_path_EGREP+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3868 then ac_cv_path_EGREP="$GREP -E"
3869 else
3870 # Extract the first word of "egrep" to use in msg output
3871 if test -z "$EGREP"; then
3872 set dummy egrep; ac_prog_name=$2
3873 if test "${ac_cv_path_EGREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 ac_path_EGREP_found=false
3877 # Loop through the user's path and test for each of PROGNAME-LIST
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880 do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in egrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3887 # Check for GNU ac_path_EGREP and select it if it is found.
3888 # Check for GNU $ac_path_EGREP
3889 case `"$ac_path_EGREP" --version 2>&1` in
3890 *GNU*)
3891 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3892 *)
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'EGREP' >> "conftest.nl"
3901 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_EGREP="$ac_path_EGREP"
3907 ac_path_EGREP_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 esac
3914
3915
3916 $ac_path_EGREP_found && break 3
3917 done
3918 done
3919
3920 done
3921 IFS=$as_save_IFS
3922
3923
3924 fi
3925
3926 EGREP="$ac_cv_path_EGREP"
3927 if test -z "$EGREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931 fi
3932
3933 else
3934 ac_cv_path_EGREP=$EGREP
3935 fi
3936
3937
3938 fi
3939 fi
3940 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3941 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3942 EGREP="$ac_cv_path_EGREP"
3943
3944
3945
3946 # Check whether --with-gnu-ld was given.
3947 if test "${with_gnu_ld+set}" = set; then
3948 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3949 else
3950 with_gnu_ld=no
3951 fi
3952
3953 ac_prog=ld
3954 if test "$GCC" = yes; then
3955 # Check if gcc -print-prog-name=ld gives a path.
3956 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3957 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3958 case $host in
3959 *-*-mingw*)
3960 # gcc leaves a trailing carriage return which upsets mingw
3961 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3962 *)
3963 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3964 esac
3965 case $ac_prog in
3966 # Accept absolute paths.
3967 [\\/]* | ?:[\\/]*)
3968 re_direlt='/[^/][^/]*/\.\./'
3969 # Canonicalize the pathname of ld
3970 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3971 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3972 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3973 done
3974 test -z "$LD" && LD="$ac_prog"
3975 ;;
3976 "")
3977 # If it fails, then pretend we aren't using GCC.
3978 ac_prog=ld
3979 ;;
3980 *)
3981 # If it is relative, then search for the first ld in PATH.
3982 with_gnu_ld=unknown
3983 ;;
3984 esac
3985 elif test "$with_gnu_ld" = yes; then
3986 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3987 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3988 else
3989 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3990 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3991 fi
3992 if test "${lt_cv_path_LD+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 if test -z "$LD"; then
3996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3997 for ac_dir in $PATH; do
3998 IFS="$lt_save_ifs"
3999 test -z "$ac_dir" && ac_dir=.
4000 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4001 lt_cv_path_LD="$ac_dir/$ac_prog"
4002 # Check to see if the program is GNU ld. I'd rather use --version,
4003 # but apparently some variants of GNU ld only accept -v.
4004 # Break only if it was the GNU/non-GNU ld that we prefer.
4005 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4006 *GNU* | *'with BFD'*)
4007 test "$with_gnu_ld" != no && break
4008 ;;
4009 *)
4010 test "$with_gnu_ld" != yes && break
4011 ;;
4012 esac
4013 fi
4014 done
4015 IFS="$lt_save_ifs"
4016 else
4017 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4018 fi
4019 fi
4020
4021 LD="$lt_cv_path_LD"
4022 if test -n "$LD"; then
4023 { echo "$as_me:$LINENO: result: $LD" >&5
4024 echo "${ECHO_T}$LD" >&6; }
4025 else
4026 { echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6; }
4028 fi
4029 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4030 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4031 { (exit 1); exit 1; }; }
4032 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4033 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4034 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4038 case `$LD -v 2>&1 </dev/null` in
4039 *GNU* | *'with BFD'*)
4040 lt_cv_prog_gnu_ld=yes
4041 ;;
4042 *)
4043 lt_cv_prog_gnu_ld=no
4044 ;;
4045 esac
4046 fi
4047 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4048 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4049 with_gnu_ld=$lt_cv_prog_gnu_ld
4050
4051
4052 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4053 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4054 if test "${lt_cv_ld_reload_flag+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 lt_cv_ld_reload_flag='-r'
4058 fi
4059 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4060 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4061 reload_flag=$lt_cv_ld_reload_flag
4062 case $reload_flag in
4063 "" | " "*) ;;
4064 *) reload_flag=" $reload_flag" ;;
4065 esac
4066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4067 case $host_os in
4068 darwin*)
4069 if test "$GCC" = yes; then
4070 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4071 else
4072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4073 fi
4074 ;;
4075 esac
4076
4077 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4078 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4079 if test "${lt_cv_path_NM+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if test -n "$NM"; then
4083 # Let the user override the test.
4084 lt_cv_path_NM="$NM"
4085 else
4086 lt_nm_to_check="${ac_tool_prefix}nm"
4087 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4088 lt_nm_to_check="$lt_nm_to_check nm"
4089 fi
4090 for lt_tmp_nm in $lt_nm_to_check; do
4091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4093 IFS="$lt_save_ifs"
4094 test -z "$ac_dir" && ac_dir=.
4095 tmp_nm="$ac_dir/$lt_tmp_nm"
4096 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4097 # Check to see if the nm accepts a BSD-compat flag.
4098 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4099 # nm: unknown option "B" ignored
4100 # Tru64's nm complains that /dev/null is an invalid object file
4101 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4102 */dev/null* | *'Invalid file or object type'*)
4103 lt_cv_path_NM="$tmp_nm -B"
4104 break
4105 ;;
4106 *)
4107 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4108 */dev/null*)
4109 lt_cv_path_NM="$tmp_nm -p"
4110 break
4111 ;;
4112 *)
4113 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4114 continue # so that we can try to find one that supports BSD flags
4115 ;;
4116 esac
4117 ;;
4118 esac
4119 fi
4120 done
4121 IFS="$lt_save_ifs"
4122 done
4123 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4124 fi
4125 fi
4126 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4127 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4128 NM="$lt_cv_path_NM"
4129
4130 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4131 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4132 LN_S=$as_ln_s
4133 if test "$LN_S" = "ln -s"; then
4134 { echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6; }
4136 else
4137 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4138 echo "${ECHO_T}no, using $LN_S" >&6; }
4139 fi
4140
4141 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4142 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4143 if test "${lt_cv_deplibs_check_method+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 lt_cv_file_magic_cmd='$MAGIC_CMD'
4147 lt_cv_file_magic_test_file=
4148 lt_cv_deplibs_check_method='unknown'
4149 # Need to set the preceding variable on all platforms that support
4150 # interlibrary dependencies.
4151 # 'none' -- dependencies not supported.
4152 # `unknown' -- same as none, but documents that we really don't know.
4153 # 'pass_all' -- all dependencies passed with no checks.
4154 # 'test_compile' -- check by making test program.
4155 # 'file_magic [[regex]]' -- check by looking for files in library path
4156 # which responds to the $file_magic_cmd with a given extended regex.
4157 # If you have `file' or equivalent on your system and you're not sure
4158 # whether `pass_all' will *always* work, you probably want this one.
4159
4160 case $host_os in
4161 aix4* | aix5*)
4162 lt_cv_deplibs_check_method=pass_all
4163 ;;
4164
4165 beos*)
4166 lt_cv_deplibs_check_method=pass_all
4167 ;;
4168
4169 bsdi[45]*)
4170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4171 lt_cv_file_magic_cmd='/usr/bin/file -L'
4172 lt_cv_file_magic_test_file=/shlib/libc.so
4173 ;;
4174
4175 cygwin*)
4176 # func_win32_libid is a shell function defined in ltmain.sh
4177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4178 lt_cv_file_magic_cmd='func_win32_libid'
4179 ;;
4180
4181 mingw* | pw32*)
4182 # Base MSYS/MinGW do not provide the 'file' command needed by
4183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4184 # unless we find 'file', for example because we are cross-compiling.
4185 if ( file / ) >/dev/null 2>&1; then
4186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4187 lt_cv_file_magic_cmd='func_win32_libid'
4188 else
4189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4190 lt_cv_file_magic_cmd='$OBJDUMP -f'
4191 fi
4192 ;;
4193
4194 darwin* | rhapsody*)
4195 lt_cv_deplibs_check_method=pass_all
4196 ;;
4197
4198 freebsd* | dragonfly*)
4199 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4200 case $host_cpu in
4201 i*86 )
4202 # Not sure whether the presence of OpenBSD here was a mistake.
4203 # Let's accept both of them until this is cleared up.
4204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4205 lt_cv_file_magic_cmd=/usr/bin/file
4206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4207 ;;
4208 esac
4209 else
4210 lt_cv_deplibs_check_method=pass_all
4211 fi
4212 ;;
4213
4214 gnu*)
4215 lt_cv_deplibs_check_method=pass_all
4216 ;;
4217
4218 hpux10.20* | hpux11*)
4219 lt_cv_file_magic_cmd=/usr/bin/file
4220 case $host_cpu in
4221 ia64*)
4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4223 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4224 ;;
4225 hppa*64*)
4226 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]'
4227 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4228 ;;
4229 *)
4230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4231 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4232 ;;
4233 esac
4234 ;;
4235
4236 interix[3-9]*)
4237 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4239 ;;
4240
4241 irix5* | irix6* | nonstopux*)
4242 case $LD in
4243 *-32|*"-32 ") libmagic=32-bit;;
4244 *-n32|*"-n32 ") libmagic=N32;;
4245 *-64|*"-64 ") libmagic=64-bit;;
4246 *) libmagic=never-match;;
4247 esac
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250
4251 # This must be Linux ELF.
4252 linux* | k*bsd*-gnu)
4253 lt_cv_deplibs_check_method=pass_all
4254 ;;
4255
4256 netbsd*)
4257 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4259 else
4260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4261 fi
4262 ;;
4263
4264 newos6*)
4265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4266 lt_cv_file_magic_cmd=/usr/bin/file
4267 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4268 ;;
4269
4270 nto-qnx*)
4271 lt_cv_deplibs_check_method=unknown
4272 ;;
4273
4274 openbsd*)
4275 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4277 else
4278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4279 fi
4280 ;;
4281
4282 osf3* | osf4* | osf5*)
4283 lt_cv_deplibs_check_method=pass_all
4284 ;;
4285
4286 rdos*)
4287 lt_cv_deplibs_check_method=pass_all
4288 ;;
4289
4290 solaris*)
4291 lt_cv_deplibs_check_method=pass_all
4292 ;;
4293
4294 sysv4 | sysv4.3*)
4295 case $host_vendor in
4296 motorola)
4297 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]'
4298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4299 ;;
4300 ncr)
4301 lt_cv_deplibs_check_method=pass_all
4302 ;;
4303 sequent)
4304 lt_cv_file_magic_cmd='/bin/file'
4305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4306 ;;
4307 sni)
4308 lt_cv_file_magic_cmd='/bin/file'
4309 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4310 lt_cv_file_magic_test_file=/lib/libc.so
4311 ;;
4312 siemens)
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315 pc)
4316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318 esac
4319 ;;
4320
4321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4322 lt_cv_deplibs_check_method=pass_all
4323 ;;
4324 esac
4325
4326 fi
4327 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4328 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4329 file_magic_cmd=$lt_cv_file_magic_cmd
4330 deplibs_check_method=$lt_cv_deplibs_check_method
4331 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4332
4333
4334
4335
4336 # If no C compiler was specified, use CC.
4337 LTCC=${LTCC-"$CC"}
4338
4339 # If no C compiler flags were specified, use CFLAGS.
4340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4341
4342 # Allow CC to be a program name with arguments.
4343 compiler=$CC
4344
4345
4346 # Check whether --enable-libtool-lock was given.
4347 if test "${enable_libtool_lock+set}" = set; then
4348 enableval=$enable_libtool_lock;
4349 fi
4350
4351 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4352
4353 # Some flags need to be propagated to the compiler or linker for good
4354 # libtool support.
4355 case $host in
4356 ia64-*-hpux*)
4357 # Find out which ABI we are using.
4358 echo 'int i;' > conftest.$ac_ext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; then
4364 case `/usr/bin/file conftest.$ac_objext` in
4365 *ELF-32*)
4366 HPUX_IA64_MODE="32"
4367 ;;
4368 *ELF-64*)
4369 HPUX_IA64_MODE="64"
4370 ;;
4371 esac
4372 fi
4373 rm -rf conftest*
4374 ;;
4375 *-*-irix6*)
4376 # Find out which ABI we are using.
4377 echo '#line 4377 "configure"' > conftest.$ac_ext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; then
4383 if test "$lt_cv_prog_gnu_ld" = yes; then
4384 case `/usr/bin/file conftest.$ac_objext` in
4385 *32-bit*)
4386 LD="${LD-ld} -melf32bsmip"
4387 ;;
4388 *N32*)
4389 LD="${LD-ld} -melf32bmipn32"
4390 ;;
4391 *64-bit*)
4392 LD="${LD-ld} -melf64bmip"
4393 ;;
4394 esac
4395 else
4396 case `/usr/bin/file conftest.$ac_objext` in
4397 *32-bit*)
4398 LD="${LD-ld} -32"
4399 ;;
4400 *N32*)
4401 LD="${LD-ld} -n32"
4402 ;;
4403 *64-bit*)
4404 LD="${LD-ld} -64"
4405 ;;
4406 esac
4407 fi
4408 fi
4409 rm -rf conftest*
4410 ;;
4411
4412 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4413 s390*-*linux*|sparc*-*linux*)
4414 # Find out which ABI we are using.
4415 echo 'int i;' > conftest.$ac_ext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; then
4421 case `/usr/bin/file conftest.o` in
4422 *32-bit*)
4423 case $host in
4424 x86_64-*kfreebsd*-gnu)
4425 LD="${LD-ld} -m elf_i386_fbsd"
4426 ;;
4427 x86_64-*linux*)
4428 LD="${LD-ld} -m elf_i386"
4429 ;;
4430 ppc64-*linux*|powerpc64-*linux*)
4431 LD="${LD-ld} -m elf32ppclinux"
4432 ;;
4433 s390x-*linux*)
4434 LD="${LD-ld} -m elf_s390"
4435 ;;
4436 sparc64-*linux*)
4437 LD="${LD-ld} -m elf32_sparc"
4438 ;;
4439 esac
4440 ;;
4441 *64-bit*)
4442 case $host in
4443 x86_64-*kfreebsd*-gnu)
4444 LD="${LD-ld} -m elf_x86_64_fbsd"
4445 ;;
4446 x86_64-*linux*)
4447 LD="${LD-ld} -m elf_x86_64"
4448 ;;
4449 ppc*-*linux*|powerpc*-*linux*)
4450 LD="${LD-ld} -m elf64ppc"
4451 ;;
4452 s390*-*linux*)
4453 LD="${LD-ld} -m elf64_s390"
4454 ;;
4455 sparc*-*linux*)
4456 LD="${LD-ld} -m elf64_sparc"
4457 ;;
4458 esac
4459 ;;
4460 esac
4461 fi
4462 rm -rf conftest*
4463 ;;
4464
4465 *-*-sco3.2v5*)
4466 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4467 SAVE_CFLAGS="$CFLAGS"
4468 CFLAGS="$CFLAGS -belf"
4469 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4470 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4471 if test "${lt_cv_cc_needs_belf+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 rm -f conftest.$ac_objext conftest$ac_exeext
4496 if { (ac_try="$ac_link"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } && {
4509 test -z "$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4511 } && test -s conftest$ac_exeext &&
4512 $as_test_x conftest$ac_exeext; then
4513 lt_cv_cc_needs_belf=yes
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518 lt_cv_cc_needs_belf=no
4519 fi
4520
4521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4522 conftest$ac_exeext conftest.$ac_ext
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529 fi
4530 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4531 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4532 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4533 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4534 CFLAGS="$SAVE_CFLAGS"
4535 fi
4536 ;;
4537 sparc*-*solaris*)
4538 # Find out which ABI we are using.
4539 echo 'int i;' > conftest.$ac_ext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 case `/usr/bin/file conftest.o` in
4546 *64-bit*)
4547 case $lt_cv_prog_gnu_ld in
4548 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4549 *) LD="${LD-ld} -64" ;;
4550 esac
4551 ;;
4552 esac
4553 fi
4554 rm -rf conftest*
4555 ;;
4556
4557
4558 esac
4559
4560 need_locks="$enable_libtool_lock"
4561
4562
4563 ac_ext=c
4564 ac_cpp='$CPP $CPPFLAGS'
4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4570 # On Suns, sometimes $CPP names a directory.
4571 if test -n "$CPP" && test -d "$CPP"; then
4572 CPP=
4573 fi
4574 if test -z "$CPP"; then
4575 if test "${ac_cv_prog_CPP+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 # Double quotes because CPP needs to be expanded
4579 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4580 do
4581 ac_preproc_ok=false
4582 for ac_c_preproc_warn_flag in '' yes
4583 do
4584 # Use a header file that comes with gcc, so configuring glibc
4585 # with a fresh cross-compiler works.
4586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4587 # <limits.h> exists even on freestanding compilers.
4588 # On the NeXT, cc -E runs the code through the compiler's parser,
4589 # not just through cpp. "Syntax error" is here to catch this case.
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #ifdef __STDC__
4597 # include <limits.h>
4598 #else
4599 # include <assert.h>
4600 #endif
4601 Syntax error
4602 _ACEOF
4603 if { (ac_try="$ac_cpp conftest.$ac_ext"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } >/dev/null && {
4616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 }; then
4619 :
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 # Broken: fails on valid input.
4625 continue
4626 fi
4627
4628 rm -f conftest.err conftest.$ac_ext
4629
4630 # OK, works on sane cases. Now check whether nonexistent headers
4631 # can be detected and how.
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <ac_nonexistent.h>
4639 _ACEOF
4640 if { (ac_try="$ac_cpp conftest.$ac_ext"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null && {
4653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 }; then
4656 # Broken: success on invalid input.
4657 continue
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 # Passes both tests.
4663 ac_preproc_ok=:
4664 break
4665 fi
4666
4667 rm -f conftest.err conftest.$ac_ext
4668
4669 done
4670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4671 rm -f conftest.err conftest.$ac_ext
4672 if $ac_preproc_ok; then
4673 break
4674 fi
4675
4676 done
4677 ac_cv_prog_CPP=$CPP
4678
4679 fi
4680 CPP=$ac_cv_prog_CPP
4681 else
4682 ac_cv_prog_CPP=$CPP
4683 fi
4684 { echo "$as_me:$LINENO: result: $CPP" >&5
4685 echo "${ECHO_T}$CPP" >&6; }
4686 ac_preproc_ok=false
4687 for ac_c_preproc_warn_flag in '' yes
4688 do
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #ifdef __STDC__
4702 # include <limits.h>
4703 #else
4704 # include <assert.h>
4705 #endif
4706 Syntax error
4707 _ACEOF
4708 if { (ac_try="$ac_cpp conftest.$ac_ext"
4709 case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null && {
4721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 }; then
4724 :
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 # Broken: fails on valid input.
4730 continue
4731 fi
4732
4733 rm -f conftest.err conftest.$ac_ext
4734
4735 # OK, works on sane cases. Now check whether nonexistent headers
4736 # can be detected and how.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <ac_nonexistent.h>
4744 _ACEOF
4745 if { (ac_try="$ac_cpp conftest.$ac_ext"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752 ac_status=$?
4753 grep -v '^ *+' conftest.er1 >conftest.err
4754 rm -f conftest.er1
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null && {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 }; then
4761 # Broken: success on invalid input.
4762 continue
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 # Passes both tests.
4768 ac_preproc_ok=:
4769 break
4770 fi
4771
4772 rm -f conftest.err conftest.$ac_ext
4773
4774 done
4775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4776 rm -f conftest.err conftest.$ac_ext
4777 if $ac_preproc_ok; then
4778 :
4779 else
4780 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4783 See \`config.log' for more details." >&2;}
4784 { (exit 1); exit 1; }; }
4785 fi
4786
4787 ac_ext=c
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792
4793
4794 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4796 if test "${ac_cv_header_stdc+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <stdlib.h>
4806 #include <stdarg.h>
4807 #include <string.h>
4808 #include <float.h>
4809
4810 int
4811 main ()
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (ac_try="$ac_compile"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_compile") 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && {
4832 test -z "$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 } && test -s conftest.$ac_objext; then
4835 ac_cv_header_stdc=yes
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840 ac_cv_header_stdc=no
4841 fi
4842
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844
4845 if test $ac_cv_header_stdc = yes; then
4846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 #include <string.h>
4854
4855 _ACEOF
4856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "memchr" >/dev/null 2>&1; then
4858 :
4859 else
4860 ac_cv_header_stdc=no
4861 fi
4862 rm -f conftest*
4863
4864 fi
4865
4866 if test $ac_cv_header_stdc = yes; then
4867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <stdlib.h>
4875
4876 _ACEOF
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 $EGREP "free" >/dev/null 2>&1; then
4879 :
4880 else
4881 ac_cv_header_stdc=no
4882 fi
4883 rm -f conftest*
4884
4885 fi
4886
4887 if test $ac_cv_header_stdc = yes; then
4888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4889 if test "$cross_compiling" = yes; then
4890 :
4891 else
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #include <ctype.h>
4899 #include <stdlib.h>
4900 #if ((' ' & 0x0FF) == 0x020)
4901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4903 #else
4904 # define ISLOWER(c) \
4905 (('a' <= (c) && (c) <= 'i') \
4906 || ('j' <= (c) && (c) <= 'r') \
4907 || ('s' <= (c) && (c) <= 'z'))
4908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4909 #endif
4910
4911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4912 int
4913 main ()
4914 {
4915 int i;
4916 for (i = 0; i < 256; i++)
4917 if (XOR (islower (i), ISLOWER (i))
4918 || toupper (i) != TOUPPER (i))
4919 return 2;
4920 return 0;
4921 }
4922 _ACEOF
4923 rm -f conftest$ac_exeext
4924 if { (ac_try="$ac_link"
4925 case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928 esac
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_link") 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4934 { (case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937 esac
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_try") 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 :
4944 else
4945 echo "$as_me: program exited with status $ac_status" >&5
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ( exit $ac_status )
4950 ac_cv_header_stdc=no
4951 fi
4952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4953 fi
4954
4955
4956 fi
4957 fi
4958 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4959 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4960 if test $ac_cv_header_stdc = yes; then
4961
4962 cat >>confdefs.h <<\_ACEOF
4963 #define STDC_HEADERS 1
4964 _ACEOF
4965
4966 fi
4967
4968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4979 inttypes.h stdint.h unistd.h
4980 do
4981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h. */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 $ac_includes_default
4994
4995 #include <$ac_header>
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (ac_try="$ac_compile"
4999 case "(($ac_try" in
5000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001 *) ac_try_echo=$ac_try;;
5002 esac
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 eval "$as_ac_Header=yes"
5015 else
5016 echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 eval "$as_ac_Header=no"
5020 fi
5021
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 fi
5024 ac_res=`eval echo '${'$as_ac_Header'}'`
5025 { echo "$as_me:$LINENO: result: $ac_res" >&5
5026 echo "${ECHO_T}$ac_res" >&6; }
5027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5030 _ACEOF
5031
5032 fi
5033
5034 done
5035
5036
5037
5038 for ac_header in dlfcn.h
5039 do
5040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 fi
5047 ac_res=`eval echo '${'$as_ac_Header'}'`
5048 { echo "$as_me:$LINENO: result: $ac_res" >&5
5049 echo "${ECHO_T}$ac_res" >&6; }
5050 else
5051 # Is the header compilable?
5052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 #include <$ac_header>
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_compile") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } && {
5077 test -z "$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 } && test -s conftest.$ac_objext; then
5080 ac_header_compiler=yes
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 ac_header_compiler=no
5086 fi
5087
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5090 echo "${ECHO_T}$ac_header_compiler" >&6; }
5091
5092 # Is the header present?
5093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <$ac_header>
5102 _ACEOF
5103 if { (ac_try="$ac_cpp conftest.$ac_ext"
5104 case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107 esac
5108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null && {
5116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5117 test ! -s conftest.err
5118 }; then
5119 ac_header_preproc=yes
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_header_preproc=no
5125 fi
5126
5127 rm -f conftest.err conftest.$ac_ext
5128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5129 echo "${ECHO_T}$ac_header_preproc" >&6; }
5130
5131 # So? What about this header?
5132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5133 yes:no: )
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5138 ac_header_preproc=yes
5139 ;;
5140 no:yes:* )
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5153 ( cat <<\_ASBOX
5154 ## ------------------------------------ ##
5155 ## Report this to [email protected] ##
5156 ## ------------------------------------ ##
5157 _ASBOX
5158 ) | sed "s/^/$as_me: WARNING: /" >&2
5159 ;;
5160 esac
5161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 eval "$as_ac_Header=\$ac_header_preproc"
5167 fi
5168 ac_res=`eval echo '${'$as_ac_Header'}'`
5169 { echo "$as_me:$LINENO: result: $ac_res" >&5
5170 echo "${ECHO_T}$ac_res" >&6; }
5171
5172 fi
5173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5174 cat >>confdefs.h <<_ACEOF
5175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176 _ACEOF
5177
5178 fi
5179
5180 done
5181
5182 ac_ext=cpp
5183 ac_cpp='$CXXCPP $CPPFLAGS'
5184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5187 if test -z "$CXX"; then
5188 if test -n "$CCC"; then
5189 CXX=$CCC
5190 else
5191 if test -n "$ac_tool_prefix"; then
5192 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5193 do
5194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5198 if test "${ac_cv_prog_CXX+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 if test -n "$CXX"; then
5202 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 CXX=$ac_cv_prog_CXX
5222 if test -n "$CXX"; then
5223 { echo "$as_me:$LINENO: result: $CXX" >&5
5224 echo "${ECHO_T}$CXX" >&6; }
5225 else
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5228 fi
5229
5230
5231 test -n "$CXX" && break
5232 done
5233 fi
5234 if test -z "$CXX"; then
5235 ac_ct_CXX=$CXX
5236 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5237 do
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239 set dummy $ac_prog; ac_word=$2
5240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5242 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 if test -n "$ac_ct_CXX"; then
5246 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_ac_ct_CXX="$ac_prog"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5266 if test -n "$ac_ct_CXX"; then
5267 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5268 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5269 else
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273
5274
5275 test -n "$ac_ct_CXX" && break
5276 done
5277
5278 if test "x$ac_ct_CXX" = x; then
5279 CXX="g++"
5280 else
5281 case $cross_compiling:$ac_tool_warned in
5282 yes:)
5283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5284 whose name does not start with the host triplet. If you think this
5285 configuration is useful to you, please write to [email protected]." >&5
5286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5287 whose name does not start with the host triplet. If you think this
5288 configuration is useful to you, please write to [email protected]." >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 CXX=$ac_ct_CXX
5292 fi
5293 fi
5294
5295 fi
5296 fi
5297 # Provide some information about the compiler.
5298 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5299 ac_compiler=`set X $ac_compile; echo $2`
5300 { (ac_try="$ac_compiler --version >&5"
5301 case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304 esac
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compiler --version >&5") 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5310 { (ac_try="$ac_compiler -v >&5"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compiler -v >&5") 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
5320 { (ac_try="$ac_compiler -V >&5"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compiler -V >&5") 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }
5330
5331 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5332 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5333 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h. */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342
5343 int
5344 main ()
5345 {
5346 #ifndef __GNUC__
5347 choke me
5348 #endif
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5356 case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_cxx_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_compiler_gnu=yes
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_compiler_gnu=no
5377 fi
5378
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5381
5382 fi
5383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5384 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5385 GXX=`test $ac_compiler_gnu = yes && echo yes`
5386 ac_test_CXXFLAGS=${CXXFLAGS+set}
5387 ac_save_CXXFLAGS=$CXXFLAGS
5388 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5389 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5390 if test "${ac_cv_prog_cxx_g+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5394 ac_cxx_werror_flag=yes
5395 ac_cv_prog_cxx_g=no
5396 CXXFLAGS="-g"
5397 cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h. */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403
5404 int
5405 main ()
5406 {
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext
5413 if { (ac_try="$ac_compile"
5414 case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417 esac
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_compile") 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && {
5426 test -z "$ac_cxx_werror_flag" ||
5427 test ! -s conftest.err
5428 } && test -s conftest.$ac_objext; then
5429 ac_cv_prog_cxx_g=yes
5430 else
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 CXXFLAGS=""
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441
5442 int
5443 main ()
5444 {
5445
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (ac_try="$ac_compile"
5452 case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_compile") 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && {
5464 test -z "$ac_cxx_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest.$ac_objext; then
5467 :
5468 else
5469 echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5471
5472 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5473 CXXFLAGS="-g"
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480
5481 int
5482 main ()
5483 {
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_cxx_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 ac_cv_prog_cxx_g=yes
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511
5512 fi
5513
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 fi
5516
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 fi
5519
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5522 fi
5523 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5524 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5525 if test "$ac_test_CXXFLAGS" = set; then
5526 CXXFLAGS=$ac_save_CXXFLAGS
5527 elif test $ac_cv_prog_cxx_g = yes; then
5528 if test "$GXX" = yes; then
5529 CXXFLAGS="-g -O2"
5530 else
5531 CXXFLAGS="-g"
5532 fi
5533 else
5534 if test "$GXX" = yes; then
5535 CXXFLAGS="-O2"
5536 else
5537 CXXFLAGS=
5538 fi
5539 fi
5540 ac_ext=cpp
5541 ac_cpp='$CXXCPP $CPPFLAGS'
5542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5545
5546 depcc="$CXX" am_compiler_list=
5547
5548 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5549 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5550 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5554 # We make a subdir and do the tests there. Otherwise we can end up
5555 # making bogus files that we don't know about and never remove. For
5556 # instance it was reported that on HP-UX the gcc test will end up
5557 # making a dummy file named `D' -- because `-MD' means `put the output
5558 # in D'.
5559 mkdir conftest.dir
5560 # Copy depcomp to subdir because otherwise we won't find it if we're
5561 # using a relative directory.
5562 cp "$am_depcomp" conftest.dir
5563 cd conftest.dir
5564 # We will build objects and dependencies in a subdirectory because
5565 # it helps to detect inapplicable dependency modes. For instance
5566 # both Tru64's cc and ICC support -MD to output dependencies as a
5567 # side effect of compilation, but ICC will put the dependencies in
5568 # the current directory while Tru64 will put them in the object
5569 # directory.
5570 mkdir sub
5571
5572 am_cv_CXX_dependencies_compiler_type=none
5573 if test "$am_compiler_list" = ""; then
5574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5575 fi
5576 for depmode in $am_compiler_list; do
5577 # Setup a source with many dependencies, because some compilers
5578 # like to wrap large dependency lists on column 80 (with \), and
5579 # we should not choose a depcomp mode which is confused by this.
5580 #
5581 # We need to recreate these files for each test, as the compiler may
5582 # overwrite some of them when testing with obscure command lines.
5583 # This happens at least with the AIX C compiler.
5584 : > sub/conftest.c
5585 for i in 1 2 3 4 5 6; do
5586 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5587 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5588 # Solaris 8's {/usr,}/bin/sh.
5589 touch sub/conftst$i.h
5590 done
5591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5592
5593 case $depmode in
5594 nosideeffect)
5595 # after this tag, mechanisms are not by side-effect, so they'll
5596 # only be used when explicitly requested
5597 if test "x$enable_dependency_tracking" = xyes; then
5598 continue
5599 else
5600 break
5601 fi
5602 ;;
5603 none) break ;;
5604 esac
5605 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5606 # mode. It turns out that the SunPro C++ compiler does not properly
5607 # handle `-M -o', and we need to detect this.
5608 if depmode=$depmode \
5609 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5611 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5612 >/dev/null 2>conftest.err &&
5613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5615 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5617 # icc doesn't choke on unknown options, it will just issue warnings
5618 # or remarks (even with -Werror). So we grep stderr for any message
5619 # that says an option was ignored or not supported.
5620 # When given -MP, icc 7.0 and 7.1 complain thusly:
5621 # icc: Command line warning: ignoring option '-M'; no argument required
5622 # The diagnosis changed in icc 8.0:
5623 # icc: Command line remark: option '-MP' not supported
5624 if (grep 'ignoring option' conftest.err ||
5625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5626 am_cv_CXX_dependencies_compiler_type=$depmode
5627 break
5628 fi
5629 fi
5630 done
5631
5632 cd ..
5633 rm -rf conftest.dir
5634 else
5635 am_cv_CXX_dependencies_compiler_type=none
5636 fi
5637
5638 fi
5639 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5640 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5641 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5642
5643 if
5644 test "x$enable_dependency_tracking" != xno \
5645 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5646 am__fastdepCXX_TRUE=
5647 am__fastdepCXX_FALSE='#'
5648 else
5649 am__fastdepCXX_TRUE='#'
5650 am__fastdepCXX_FALSE=
5651 fi
5652
5653
5654
5655
5656 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5657 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5658 (test "X$CXX" != "Xg++"))) ; then
5659 ac_ext=cpp
5660 ac_cpp='$CXXCPP $CPPFLAGS'
5661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5665 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5666 if test -z "$CXXCPP"; then
5667 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 # Double quotes because CXXCPP needs to be expanded
5671 for CXXCPP in "$CXX -E" "/lib/cpp"
5672 do
5673 ac_preproc_ok=false
5674 for ac_cxx_preproc_warn_flag in '' yes
5675 do
5676 # Use a header file that comes with gcc, so configuring glibc
5677 # with a fresh cross-compiler works.
5678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679 # <limits.h> exists even on freestanding compilers.
5680 # On the NeXT, cc -E runs the code through the compiler's parser,
5681 # not just through cpp. "Syntax error" is here to catch this case.
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #ifdef __STDC__
5689 # include <limits.h>
5690 #else
5691 # include <assert.h>
5692 #endif
5693 Syntax error
5694 _ACEOF
5695 if { (ac_try="$ac_cpp conftest.$ac_ext"
5696 case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } >/dev/null && {
5708 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5709 test ! -s conftest.err
5710 }; then
5711 :
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 # Broken: fails on valid input.
5717 continue
5718 fi
5719
5720 rm -f conftest.err conftest.$ac_ext
5721
5722 # OK, works on sane cases. Now check whether nonexistent headers
5723 # can be detected and how.
5724 cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #include <ac_nonexistent.h>
5731 _ACEOF
5732 if { (ac_try="$ac_cpp conftest.$ac_ext"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null && {
5745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5746 test ! -s conftest.err
5747 }; then
5748 # Broken: success on invalid input.
5749 continue
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 # Passes both tests.
5755 ac_preproc_ok=:
5756 break
5757 fi
5758
5759 rm -f conftest.err conftest.$ac_ext
5760
5761 done
5762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5763 rm -f conftest.err conftest.$ac_ext
5764 if $ac_preproc_ok; then
5765 break
5766 fi
5767
5768 done
5769 ac_cv_prog_CXXCPP=$CXXCPP
5770
5771 fi
5772 CXXCPP=$ac_cv_prog_CXXCPP
5773 else
5774 ac_cv_prog_CXXCPP=$CXXCPP
5775 fi
5776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5777 echo "${ECHO_T}$CXXCPP" >&6; }
5778 ac_preproc_ok=false
5779 for ac_cxx_preproc_warn_flag in '' yes
5780 do
5781 # Use a header file that comes with gcc, so configuring glibc
5782 # with a fresh cross-compiler works.
5783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5784 # <limits.h> exists even on freestanding compilers.
5785 # On the NeXT, cc -E runs the code through the compiler's parser,
5786 # not just through cpp. "Syntax error" is here to catch this case.
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #ifdef __STDC__
5794 # include <limits.h>
5795 #else
5796 # include <assert.h>
5797 #endif
5798 Syntax error
5799 _ACEOF
5800 if { (ac_try="$ac_cpp conftest.$ac_ext"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null && {
5813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5814 test ! -s conftest.err
5815 }; then
5816 :
5817 else
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 # Broken: fails on valid input.
5822 continue
5823 fi
5824
5825 rm -f conftest.err conftest.$ac_ext
5826
5827 # OK, works on sane cases. Now check whether nonexistent headers
5828 # can be detected and how.
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5836 _ACEOF
5837 if { (ac_try="$ac_cpp conftest.$ac_ext"
5838 case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } >/dev/null && {
5850 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5851 test ! -s conftest.err
5852 }; then
5853 # Broken: success on invalid input.
5854 continue
5855 else
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 # Passes both tests.
5860 ac_preproc_ok=:
5861 break
5862 fi
5863
5864 rm -f conftest.err conftest.$ac_ext
5865
5866 done
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok; then
5870 :
5871 else
5872 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5873 See \`config.log' for more details." >&5
5874 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&2;}
5876 { (exit 1); exit 1; }; }
5877 fi
5878
5879 ac_ext=cpp
5880 ac_cpp='$CXXCPP $CPPFLAGS'
5881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5884
5885 fi
5886
5887
5888 ac_ext=f
5889 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5890 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5892 if test -n "$ac_tool_prefix"; then
5893 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5894 do
5895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_F77+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 if test -n "$F77"; then
5903 ac_cv_prog_F77="$F77" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 F77=$ac_cv_prog_F77
5923 if test -n "$F77"; then
5924 { echo "$as_me:$LINENO: result: $F77" >&5
5925 echo "${ECHO_T}$F77" >&6; }
5926 else
5927 { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932 test -n "$F77" && break
5933 done
5934 fi
5935 if test -z "$F77"; then
5936 ac_ct_F77=$F77
5937 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5938 do
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 if test -n "$ac_ct_F77"; then
5947 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_F77="$ac_prog"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5967 if test -n "$ac_ct_F77"; then
5968 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5969 echo "${ECHO_T}$ac_ct_F77" >&6; }
5970 else
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973 fi
5974
5975
5976 test -n "$ac_ct_F77" && break
5977 done
5978
5979 if test "x$ac_ct_F77" = x; then
5980 F77=""
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet. If you think this
5986 configuration is useful to you, please write to [email protected]." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to [email protected]." >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 F77=$ac_ct_F77
5993 fi
5994 fi
5995
5996
5997 # Provide some information about the compiler.
5998 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5999 ac_compiler=`set X $ac_compile; echo $2`
6000 { (ac_try="$ac_compiler --version >&5"
6001 case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_compiler --version >&5") 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }
6010 { (ac_try="$ac_compiler -v >&5"
6011 case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compiler -v >&5") 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }
6020 { (ac_try="$ac_compiler -V >&5"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compiler -V >&5") 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }
6030 rm -f a.out
6031
6032 # If we don't use `.F' as extension, the preprocessor is not run on the
6033 # input file. (Note that this only needs to work for GNU compilers.)
6034 ac_save_ext=$ac_ext
6035 ac_ext=F
6036 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6037 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6038 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 cat >conftest.$ac_ext <<_ACEOF
6042 program main
6043 #ifndef __GNUC__
6044 choke me
6045 #endif
6046
6047 end
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (ac_try="$ac_compile"
6051 case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_f77_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6066 ac_compiler_gnu=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071 ac_compiler_gnu=no
6072 fi
6073
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6076
6077 fi
6078 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6079 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6080 ac_ext=$ac_save_ext
6081 ac_test_FFLAGS=${FFLAGS+set}
6082 ac_save_FFLAGS=$FFLAGS
6083 FFLAGS=
6084 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6085 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_f77_g+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 FFLAGS=-g
6090 cat >conftest.$ac_ext <<_ACEOF
6091 program main
6092
6093 end
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6097 case "(($ac_try" in
6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_compile") 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && {
6109 test -z "$ac_f77_werror_flag" ||
6110 test ! -s conftest.err
6111 } && test -s conftest.$ac_objext; then
6112 ac_cv_prog_f77_g=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_cv_prog_f77_g=no
6118 fi
6119
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121
6122 fi
6123 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6124 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6125 if test "$ac_test_FFLAGS" = set; then
6126 FFLAGS=$ac_save_FFLAGS
6127 elif test $ac_cv_prog_f77_g = yes; then
6128 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6129 FFLAGS="-g -O2"
6130 else
6131 FFLAGS="-g"
6132 fi
6133 else
6134 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135 FFLAGS="-O2"
6136 else
6137 FFLAGS=
6138 fi
6139 fi
6140
6141 G77=`test $ac_compiler_gnu = yes && echo yes`
6142 ac_ext=c
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148
6149
6150 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6151
6152 # find the maximum length of command line arguments
6153 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6154 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6155 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 i=0
6159 teststring="ABCD"
6160
6161 case $build_os in
6162 msdosdjgpp*)
6163 # On DJGPP, this test can blow up pretty badly due to problems in libc
6164 # (any single argument exceeding 2000 bytes causes a buffer overrun
6165 # during glob expansion). Even if it were fixed, the result of this
6166 # check would be larger than it should be.
6167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6168 ;;
6169
6170 gnu*)
6171 # Under GNU Hurd, this test is not required because there is
6172 # no limit to the length of command line arguments.
6173 # Libtool will interpret -1 as no limit whatsoever
6174 lt_cv_sys_max_cmd_len=-1;
6175 ;;
6176
6177 cygwin* | mingw*)
6178 # On Win9x/ME, this test blows up -- it succeeds, but takes
6179 # about 5 minutes as the teststring grows exponentially.
6180 # Worse, since 9x/ME are not pre-emptively multitasking,
6181 # you end up with a "frozen" computer, even though with patience
6182 # the test eventually succeeds (with a max line length of 256k).
6183 # Instead, let's just punt: use the minimum linelength reported by
6184 # all of the supported platforms: 8192 (on NT/2K/XP).
6185 lt_cv_sys_max_cmd_len=8192;
6186 ;;
6187
6188 amigaos*)
6189 # On AmigaOS with pdksh, this test takes hours, literally.
6190 # So we just punt and use a minimum line length of 8192.
6191 lt_cv_sys_max_cmd_len=8192;
6192 ;;
6193
6194 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6195 # This has been around since 386BSD, at least. Likely further.
6196 if test -x /sbin/sysctl; then
6197 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6198 elif test -x /usr/sbin/sysctl; then
6199 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6200 else
6201 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6202 fi
6203 # And add a safety zone
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6206 ;;
6207
6208 interix*)
6209 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6210 lt_cv_sys_max_cmd_len=196608
6211 ;;
6212
6213 osf*)
6214 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6215 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6216 # nice to cause kernel panics so lets avoid the loop below.
6217 # First set a reasonable default.
6218 lt_cv_sys_max_cmd_len=16384
6219 #
6220 if test -x /sbin/sysconfig; then
6221 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6222 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6223 esac
6224 fi
6225 ;;
6226 sco3.2v5*)
6227 lt_cv_sys_max_cmd_len=102400
6228 ;;
6229 sysv5* | sco5v6* | sysv4.2uw2*)
6230 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6231 if test -n "$kargmax"; then
6232 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6233 else
6234 lt_cv_sys_max_cmd_len=32768
6235 fi
6236 ;;
6237 *)
6238 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6239 if test -n "$lt_cv_sys_max_cmd_len"; then
6240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6242 else
6243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6244 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6245 = "XX$teststring") >/dev/null 2>&1 &&
6246 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6247 lt_cv_sys_max_cmd_len=$new_result &&
6248 test $i != 17 # 1/2 MB should be enough
6249 do
6250 i=`expr $i + 1`
6251 teststring=$teststring$teststring
6252 done
6253 teststring=
6254 # Add a significant safety factor because C++ compilers can tack on massive
6255 # amounts of additional arguments before passing them to the linker.
6256 # It appears as though 1/2 is a usable value.
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6258 fi
6259 ;;
6260 esac
6261
6262 fi
6263
6264 if test -n $lt_cv_sys_max_cmd_len ; then
6265 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6266 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6267 else
6268 { echo "$as_me:$LINENO: result: none" >&5
6269 echo "${ECHO_T}none" >&6; }
6270 fi
6271
6272
6273
6274
6275
6276 # Check for command to grab the raw symbol name followed by C symbol from nm.
6277 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6278 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6279 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282
6283 # These are sane defaults that work on at least a few old systems.
6284 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6285
6286 # Character class describing NM global symbol codes.
6287 symcode='[BCDEGRST]'
6288
6289 # Regexp to match symbols that can be accessed directly from C.
6290 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6291
6292 # Transform an extracted symbol line into a proper C declaration
6293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6294
6295 # Transform an extracted symbol line into symbol name and symbol address
6296 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6297
6298 # Define system-specific variables.
6299 case $host_os in
6300 aix*)
6301 symcode='[BCDT]'
6302 ;;
6303 cygwin* | mingw* | pw32*)
6304 symcode='[ABCDGISTW]'
6305 ;;
6306 hpux*) # Its linker distinguishes data from code symbols
6307 if test "$host_cpu" = ia64; then
6308 symcode='[ABCDEGRST]'
6309 fi
6310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6312 ;;
6313 linux* | k*bsd*-gnu)
6314 if test "$host_cpu" = ia64; then
6315 symcode='[ABCDGIRSTW]'
6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6318 fi
6319 ;;
6320 irix* | nonstopux*)
6321 symcode='[BCDEGRST]'
6322 ;;
6323 osf*)
6324 symcode='[BCDEGQRST]'
6325 ;;
6326 solaris*)
6327 symcode='[BDRT]'
6328 ;;
6329 sco3.2v5*)
6330 symcode='[DT]'
6331 ;;
6332 sysv4.2uw2*)
6333 symcode='[DT]'
6334 ;;
6335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6336 symcode='[ABDT]'
6337 ;;
6338 sysv4)
6339 symcode='[DFNSTU]'
6340 ;;
6341 esac
6342
6343 # Handle CRLF in mingw tool chain
6344 opt_cr=
6345 case $build_os in
6346 mingw*)
6347 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6348 ;;
6349 esac
6350
6351 # If we're using GNU nm, then use its standard symbol codes.
6352 case `$NM -V 2>&1` in
6353 *GNU* | *'with BFD'*)
6354 symcode='[ABCDGIRSTW]' ;;
6355 esac
6356
6357 # Try without a prefix undercore, then with it.
6358 for ac_symprfx in "" "_"; do
6359
6360 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6361 symxfrm="\\1 $ac_symprfx\\2 \\2"
6362
6363 # Write the raw and C identifiers.
6364 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6365
6366 # Check to see that the pipe works correctly.
6367 pipe_works=no
6368
6369 rm -f conftest*
6370 cat > conftest.$ac_ext <<EOF
6371 #ifdef __cplusplus
6372 extern "C" {
6373 #endif
6374 char nm_test_var;
6375 void nm_test_func(){}
6376 #ifdef __cplusplus
6377 }
6378 #endif
6379 int main(){nm_test_var='a';nm_test_func();return(0);}
6380 EOF
6381
6382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6383 (eval $ac_compile) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; then
6387 # Now try to grab the symbols.
6388 nlist=conftest.nm
6389 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6390 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && test -s "$nlist"; then
6394 # Try sorting and uniquifying the output.
6395 if sort "$nlist" | uniq > "$nlist"T; then
6396 mv -f "$nlist"T "$nlist"
6397 else
6398 rm -f "$nlist"T
6399 fi
6400
6401 # Make sure that we snagged all the symbols we need.
6402 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6403 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6404 cat <<EOF > conftest.$ac_ext
6405 #ifdef __cplusplus
6406 extern "C" {
6407 #endif
6408
6409 EOF
6410 # Now generate the symbol file.
6411 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6412
6413 cat <<EOF >> conftest.$ac_ext
6414 #if defined (__STDC__) && __STDC__
6415 # define lt_ptr_t void *
6416 #else
6417 # define lt_ptr_t char *
6418 # define const
6419 #endif
6420
6421 /* The mapping between symbol names and symbols. */
6422 const struct {
6423 const char *name;
6424 lt_ptr_t address;
6425 }
6426 lt_preloaded_symbols[] =
6427 {
6428 EOF
6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6430 cat <<\EOF >> conftest.$ac_ext
6431 {0, (lt_ptr_t) 0}
6432 };
6433
6434 #ifdef __cplusplus
6435 }
6436 #endif
6437 EOF
6438 # Now try linking the two files.
6439 mv conftest.$ac_objext conftstm.$ac_objext
6440 lt_save_LIBS="$LIBS"
6441 lt_save_CFLAGS="$CFLAGS"
6442 LIBS="conftstm.$ac_objext"
6443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6449 pipe_works=yes
6450 fi
6451 LIBS="$lt_save_LIBS"
6452 CFLAGS="$lt_save_CFLAGS"
6453 else
6454 echo "cannot find nm_test_func in $nlist" >&5
6455 fi
6456 else
6457 echo "cannot find nm_test_var in $nlist" >&5
6458 fi
6459 else
6460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6461 fi
6462 else
6463 echo "$progname: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6465 fi
6466 rm -f conftest* conftst*
6467
6468 # Do not use the global_symbol_pipe unless it works.
6469 if test "$pipe_works" = yes; then
6470 break
6471 else
6472 lt_cv_sys_global_symbol_pipe=
6473 fi
6474 done
6475
6476 fi
6477
6478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6479 lt_cv_sys_global_symbol_to_cdecl=
6480 fi
6481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6482 { echo "$as_me:$LINENO: result: failed" >&5
6483 echo "${ECHO_T}failed" >&6; }
6484 else
6485 { echo "$as_me:$LINENO: result: ok" >&5
6486 echo "${ECHO_T}ok" >&6; }
6487 fi
6488
6489 { echo "$as_me:$LINENO: checking for objdir" >&5
6490 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6491 if test "${lt_cv_objdir+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 rm -f .libs 2>/dev/null
6495 mkdir .libs 2>/dev/null
6496 if test -d .libs; then
6497 lt_cv_objdir=.libs
6498 else
6499 # MS-DOS does not allow filenames that begin with a dot.
6500 lt_cv_objdir=_libs
6501 fi
6502 rmdir .libs 2>/dev/null
6503 fi
6504 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6505 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6506 objdir=$lt_cv_objdir
6507
6508
6509
6510
6511
6512 case $host_os in
6513 aix3*)
6514 # AIX sometimes has problems with the GCC collect2 program. For some
6515 # reason, if we set the COLLECT_NAMES environment variable, the problems
6516 # vanish in a puff of smoke.
6517 if test "X${COLLECT_NAMES+set}" != Xset; then
6518 COLLECT_NAMES=
6519 export COLLECT_NAMES
6520 fi
6521 ;;
6522 esac
6523
6524 # Sed substitution that helps us do robust quoting. It backslashifies
6525 # metacharacters that are still active within double-quoted strings.
6526 Xsed='sed -e 1s/^X//'
6527 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6528
6529 # Same as above, but do not quote variable references.
6530 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6531
6532 # Sed substitution to delay expansion of an escaped shell variable in a
6533 # double_quote_subst'ed string.
6534 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6535
6536 # Sed substitution to avoid accidental globbing in evaled expressions
6537 no_glob_subst='s/\*/\\\*/g'
6538
6539 # Constants:
6540 rm="rm -f"
6541
6542 # Global variables:
6543 default_ofile=libtool
6544 can_build_shared=yes
6545
6546 # All known linkers require a `.a' archive for static linking (except MSVC,
6547 # which needs '.lib').
6548 libext=a
6549 ltmain="$ac_aux_dir/ltmain.sh"
6550 ofile="$default_ofile"
6551 with_gnu_ld="$lt_cv_prog_gnu_ld"
6552
6553 if test -n "$ac_tool_prefix"; then
6554 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}ar; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_prog_AR+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561 if test -n "$AR"; then
6562 ac_cv_prog_AR="$AR" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_AR="${ac_tool_prefix}ar"
6572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 AR=$ac_cv_prog_AR
6582 if test -n "$AR"; then
6583 { echo "$as_me:$LINENO: result: $AR" >&5
6584 echo "${ECHO_T}$AR" >&6; }
6585 else
6586 { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6588 fi
6589
6590
6591 fi
6592 if test -z "$ac_cv_prog_AR"; then
6593 ac_ct_AR=$AR
6594 # Extract the first word of "ar", so it can be a program name with args.
6595 set dummy ar; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 if test -n "$ac_ct_AR"; then
6602 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_ac_ct_AR="ar"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6622 if test -n "$ac_ct_AR"; then
6623 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6624 echo "${ECHO_T}$ac_ct_AR" >&6; }
6625 else
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630 if test "x$ac_ct_AR" = x; then
6631 AR="false"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6636 whose name does not start with the host triplet. If you think this
6637 configuration is useful to you, please write to [email protected]." >&5
6638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6639 whose name does not start with the host triplet. If you think this
6640 configuration is useful to you, please write to [email protected]." >&2;}
6641 ac_tool_warned=yes ;;
6642 esac
6643 AR=$ac_ct_AR
6644 fi
6645 else
6646 AR="$ac_cv_prog_AR"
6647 fi
6648
6649 if test -n "$ac_tool_prefix"; then
6650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_prog_RANLIB+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 if test -n "$RANLIB"; then
6658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 RANLIB=$ac_cv_prog_RANLIB
6678 if test -n "$RANLIB"; then
6679 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6680 echo "${ECHO_T}$RANLIB" >&6; }
6681 else
6682 { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6684 fi
6685
6686
6687 fi
6688 if test -z "$ac_cv_prog_RANLIB"; then
6689 ac_ct_RANLIB=$RANLIB
6690 # Extract the first word of "ranlib", so it can be a program name with args.
6691 set dummy ranlib; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 if test -n "$ac_ct_RANLIB"; then
6698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_ac_ct_RANLIB="ranlib"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6718 if test -n "$ac_ct_RANLIB"; then
6719 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6720 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6721 else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726 if test "x$ac_ct_RANLIB" = x; then
6727 RANLIB=":"
6728 else
6729 case $cross_compiling:$ac_tool_warned in
6730 yes:)
6731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6732 whose name does not start with the host triplet. If you think this
6733 configuration is useful to you, please write to [email protected]." >&5
6734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6735 whose name does not start with the host triplet. If you think this
6736 configuration is useful to you, please write to [email protected]." >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739 RANLIB=$ac_ct_RANLIB
6740 fi
6741 else
6742 RANLIB="$ac_cv_prog_RANLIB"
6743 fi
6744
6745 if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}strip; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_STRIP+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 if test -n "$STRIP"; then
6754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 STRIP=$ac_cv_prog_STRIP
6774 if test -n "$STRIP"; then
6775 { echo "$as_me:$LINENO: result: $STRIP" >&5
6776 echo "${ECHO_T}$STRIP" >&6; }
6777 else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6780 fi
6781
6782
6783 fi
6784 if test -z "$ac_cv_prog_STRIP"; then
6785 ac_ct_STRIP=$STRIP
6786 # Extract the first word of "strip", so it can be a program name with args.
6787 set dummy strip; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 if test -n "$ac_ct_STRIP"; then
6794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_ac_ct_STRIP="strip"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6814 if test -n "$ac_ct_STRIP"; then
6815 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6816 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6817 else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822 if test "x$ac_ct_STRIP" = x; then
6823 STRIP=":"
6824 else
6825 case $cross_compiling:$ac_tool_warned in
6826 yes:)
6827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6828 whose name does not start with the host triplet. If you think this
6829 configuration is useful to you, please write to [email protected]." >&5
6830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet. If you think this
6832 configuration is useful to you, please write to [email protected]." >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835 STRIP=$ac_ct_STRIP
6836 fi
6837 else
6838 STRIP="$ac_cv_prog_STRIP"
6839 fi
6840
6841
6842 old_CC="$CC"
6843 old_CFLAGS="$CFLAGS"
6844
6845 # Set sane defaults for various variables
6846 test -z "$AR" && AR=ar
6847 test -z "$AR_FLAGS" && AR_FLAGS=cru
6848 test -z "$AS" && AS=as
6849 test -z "$CC" && CC=cc
6850 test -z "$LTCC" && LTCC=$CC
6851 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6852 test -z "$DLLTOOL" && DLLTOOL=dlltool
6853 test -z "$LD" && LD=ld
6854 test -z "$LN_S" && LN_S="ln -s"
6855 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6856 test -z "$NM" && NM=nm
6857 test -z "$SED" && SED=sed
6858 test -z "$OBJDUMP" && OBJDUMP=objdump
6859 test -z "$RANLIB" && RANLIB=:
6860 test -z "$STRIP" && STRIP=:
6861 test -z "$ac_objext" && ac_objext=o
6862
6863 # Determine commands to create old-style static archives.
6864 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6865 old_postinstall_cmds='chmod 644 $oldlib'
6866 old_postuninstall_cmds=
6867
6868 if test -n "$RANLIB"; then
6869 case $host_os in
6870 openbsd*)
6871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6872 ;;
6873 *)
6874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6875 ;;
6876 esac
6877 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6878 fi
6879
6880 for cc_temp in $compiler""; do
6881 case $cc_temp in
6882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6884 \-*) ;;
6885 *) break;;
6886 esac
6887 done
6888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6889
6890
6891 # Only perform the check for file, if the check method requires it
6892 case $deplibs_check_method in
6893 file_magic*)
6894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6895 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6896 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6897 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 case $MAGIC_CMD in
6901 [\\/*] | ?:[\\/]*)
6902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6903 ;;
6904 *)
6905 lt_save_MAGIC_CMD="$MAGIC_CMD"
6906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6908 for ac_dir in $ac_dummy; do
6909 IFS="$lt_save_ifs"
6910 test -z "$ac_dir" && ac_dir=.
6911 if test -f $ac_dir/${ac_tool_prefix}file; then
6912 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6913 if test -n "$file_magic_test_file"; then
6914 case $deplibs_check_method in
6915 "file_magic "*)
6916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6919 $EGREP "$file_magic_regex" > /dev/null; then
6920 :
6921 else
6922 cat <<EOF 1>&2
6923
6924 *** Warning: the command libtool uses to detect shared libraries,
6925 *** $file_magic_cmd, produces output that libtool cannot recognize.
6926 *** The result is that libtool may fail to recognize shared libraries
6927 *** as such. This will affect the creation of libtool libraries that
6928 *** depend on shared libraries, but programs linked with such libtool
6929 *** libraries will work regardless of this problem. Nevertheless, you
6930 *** may want to report the problem to your system manager and/or to
6931 *** [email protected]
6932
6933 EOF
6934 fi ;;
6935 esac
6936 fi
6937 break
6938 fi
6939 done
6940 IFS="$lt_save_ifs"
6941 MAGIC_CMD="$lt_save_MAGIC_CMD"
6942 ;;
6943 esac
6944 fi
6945
6946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6947 if test -n "$MAGIC_CMD"; then
6948 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6949 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6950 else
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6953 fi
6954
6955 if test -z "$lt_cv_path_MAGIC_CMD"; then
6956 if test -n "$ac_tool_prefix"; then
6957 { echo "$as_me:$LINENO: checking for file" >&5
6958 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 case $MAGIC_CMD in
6963 [\\/*] | ?:[\\/]*)
6964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6965 ;;
6966 *)
6967 lt_save_MAGIC_CMD="$MAGIC_CMD"
6968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6970 for ac_dir in $ac_dummy; do
6971 IFS="$lt_save_ifs"
6972 test -z "$ac_dir" && ac_dir=.
6973 if test -f $ac_dir/file; then
6974 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6975 if test -n "$file_magic_test_file"; then
6976 case $deplibs_check_method in
6977 "file_magic "*)
6978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6981 $EGREP "$file_magic_regex" > /dev/null; then
6982 :
6983 else
6984 cat <<EOF 1>&2
6985
6986 *** Warning: the command libtool uses to detect shared libraries,
6987 *** $file_magic_cmd, produces output that libtool cannot recognize.
6988 *** The result is that libtool may fail to recognize shared libraries
6989 *** as such. This will affect the creation of libtool libraries that
6990 *** depend on shared libraries, but programs linked with such libtool
6991 *** libraries will work regardless of this problem. Nevertheless, you
6992 *** may want to report the problem to your system manager and/or to
6993 *** [email protected]
6994
6995 EOF
6996 fi ;;
6997 esac
6998 fi
6999 break
7000 fi
7001 done
7002 IFS="$lt_save_ifs"
7003 MAGIC_CMD="$lt_save_MAGIC_CMD"
7004 ;;
7005 esac
7006 fi
7007
7008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7009 if test -n "$MAGIC_CMD"; then
7010 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7011 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7012 else
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7015 fi
7016
7017 else
7018 MAGIC_CMD=:
7019 fi
7020 fi
7021
7022 fi
7023 ;;
7024 esac
7025
7026 enable_dlopen=yes
7027 enable_win32_dll=no
7028
7029 # Check whether --enable-libtool-lock was given.
7030 if test "${enable_libtool_lock+set}" = set; then
7031 enableval=$enable_libtool_lock;
7032 fi
7033
7034 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7035
7036
7037 # Check whether --with-pic was given.
7038 if test "${with_pic+set}" = set; then
7039 withval=$with_pic; pic_mode="$withval"
7040 else
7041 pic_mode=default
7042 fi
7043
7044 test -z "$pic_mode" && pic_mode=default
7045
7046 # Use C for the default configuration in the libtool script
7047 tagname=
7048 lt_save_CC="$CC"
7049 ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054
7055
7056 # Source file extension for C test sources.
7057 ac_ext=c
7058
7059 # Object file extension for compiled C test sources.
7060 objext=o
7061 objext=$objext
7062
7063 # Code to be used in simple compile tests
7064 lt_simple_compile_test_code="int some_variable = 0;"
7065
7066 # Code to be used in simple link tests
7067 lt_simple_link_test_code='int main(){return(0);}'
7068
7069
7070 # If no C compiler was specified, use CC.
7071 LTCC=${LTCC-"$CC"}
7072
7073 # If no C compiler flags were specified, use CFLAGS.
7074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7075
7076 # Allow CC to be a program name with arguments.
7077 compiler=$CC
7078
7079
7080 # save warnings/boilerplate of simple test code
7081 ac_outfile=conftest.$ac_objext
7082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7084 _lt_compiler_boilerplate=`cat conftest.err`
7085 $rm conftest*
7086
7087 ac_outfile=conftest.$ac_objext
7088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7090 _lt_linker_boilerplate=`cat conftest.err`
7091 $rm conftest*
7092
7093
7094
7095 lt_prog_compiler_no_builtin_flag=
7096
7097 if test "$GCC" = yes; then
7098 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7099
7100
7101 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7102 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7103 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 lt_cv_prog_compiler_rtti_exceptions=no
7107 ac_outfile=conftest.$ac_objext
7108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7109 lt_compiler_flag="-fno-rtti -fno-exceptions"
7110 # Insert the option either (1) after the last *FLAGS variable, or
7111 # (2) before a word containing "conftest.", or (3) at the end.
7112 # Note that $ac_compile itself does not contain backslashes and begins
7113 # with a dollar sign (not a hyphen), so the echo should work correctly.
7114 # The option is referenced via a variable to avoid confusing sed.
7115 lt_compile=`echo "$ac_compile" | $SED \
7116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7118 -e 's:$: $lt_compiler_flag:'`
7119 (eval echo "\"\$as_me:7119: $lt_compile\"" >&5)
7120 (eval "$lt_compile" 2>conftest.err)
7121 ac_status=$?
7122 cat conftest.err >&5
7123 echo "$as_me:7123: \$? = $ac_status" >&5
7124 if (exit $ac_status) && test -s "$ac_outfile"; then
7125 # The compiler can only warn and ignore the option if not recognized
7126 # So say no if there are warnings other than the usual output.
7127 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7129 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7130 lt_cv_prog_compiler_rtti_exceptions=yes
7131 fi
7132 fi
7133 $rm conftest*
7134
7135 fi
7136 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7137 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7138
7139 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7140 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7141 else
7142 :
7143 fi
7144
7145 fi
7146
7147 lt_prog_compiler_wl=
7148 lt_prog_compiler_pic=
7149 lt_prog_compiler_static=
7150
7151 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7152 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7153
7154 if test "$GCC" = yes; then
7155 lt_prog_compiler_wl='-Wl,'
7156 lt_prog_compiler_static='-static'
7157
7158 case $host_os in
7159 aix*)
7160 # All AIX code is PIC.
7161 if test "$host_cpu" = ia64; then
7162 # AIX 5 now supports IA64 processor
7163 lt_prog_compiler_static='-Bstatic'
7164 fi
7165 ;;
7166
7167 amigaos*)
7168 # FIXME: we need at least 68020 code to build shared libraries, but
7169 # adding the `-m68020' flag to GCC prevents building anything better,
7170 # like `-m68040'.
7171 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7172 ;;
7173
7174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7175 # PIC is the default for these OSes.
7176 ;;
7177
7178 mingw* | cygwin* | pw32* | os2*)
7179 # This hack is so that the source file can tell whether it is being
7180 # built for inclusion in a dll (and should export symbols for example).
7181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7182 # (--disable-auto-import) libraries
7183 lt_prog_compiler_pic='-DDLL_EXPORT'
7184 ;;
7185
7186 darwin* | rhapsody*)
7187 # PIC is the default on this platform
7188 # Common symbols not allowed in MH_DYLIB files
7189 lt_prog_compiler_pic='-fno-common'
7190 ;;
7191
7192 interix[3-9]*)
7193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7194 # Instead, we relocate shared libraries at runtime.
7195 ;;
7196
7197 msdosdjgpp*)
7198 # Just because we use GCC doesn't mean we suddenly get shared libraries
7199 # on systems that don't support them.
7200 lt_prog_compiler_can_build_shared=no
7201 enable_shared=no
7202 ;;
7203
7204 sysv4*MP*)
7205 if test -d /usr/nec; then
7206 lt_prog_compiler_pic=-Kconform_pic
7207 fi
7208 ;;
7209
7210 hpux*)
7211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7212 # not for PA HP-UX.
7213 case $host_cpu in
7214 hppa*64*|ia64*)
7215 # +Z the default
7216 ;;
7217 *)
7218 lt_prog_compiler_pic='-fPIC'
7219 ;;
7220 esac
7221 ;;
7222
7223 *)
7224 lt_prog_compiler_pic='-fPIC'
7225 ;;
7226 esac
7227 else
7228 # PORTME Check for flag to pass linker flags through the system compiler.
7229 case $host_os in
7230 aix*)
7231 lt_prog_compiler_wl='-Wl,'
7232 if test "$host_cpu" = ia64; then
7233 # AIX 5 now supports IA64 processor
7234 lt_prog_compiler_static='-Bstatic'
7235 else
7236 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7237 fi
7238 ;;
7239 darwin*)
7240 # PIC is the default on this platform
7241 # Common symbols not allowed in MH_DYLIB files
7242 case $cc_basename in
7243 xlc*)
7244 lt_prog_compiler_pic='-qnocommon'
7245 lt_prog_compiler_wl='-Wl,'
7246 ;;
7247 esac
7248 ;;
7249
7250 mingw* | cygwin* | pw32* | os2*)
7251 # This hack is so that the source file can tell whether it is being
7252 # built for inclusion in a dll (and should export symbols for example).
7253 lt_prog_compiler_pic='-DDLL_EXPORT'
7254 ;;
7255
7256 hpux9* | hpux10* | hpux11*)
7257 lt_prog_compiler_wl='-Wl,'
7258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7259 # not for PA HP-UX.
7260 case $host_cpu in
7261 hppa*64*|ia64*)
7262 # +Z the default
7263 ;;
7264 *)
7265 lt_prog_compiler_pic='+Z'
7266 ;;
7267 esac
7268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7269 lt_prog_compiler_static='${wl}-a ${wl}archive'
7270 ;;
7271
7272 irix5* | irix6* | nonstopux*)
7273 lt_prog_compiler_wl='-Wl,'
7274 # PIC (with -KPIC) is the default.
7275 lt_prog_compiler_static='-non_shared'
7276 ;;
7277
7278 newsos6)
7279 lt_prog_compiler_pic='-KPIC'
7280 lt_prog_compiler_static='-Bstatic'
7281 ;;
7282
7283 linux* | k*bsd*-gnu)
7284 case $cc_basename in
7285 icc* | ecc*)
7286 lt_prog_compiler_wl='-Wl,'
7287 lt_prog_compiler_pic='-KPIC'
7288 lt_prog_compiler_static='-static'
7289 ;;
7290 pgcc* | pgf77* | pgf90* | pgf95*)
7291 # Portland Group compilers (*not* the Pentium gcc compiler,
7292 # which looks to be a dead project)
7293 lt_prog_compiler_wl='-Wl,'
7294 lt_prog_compiler_pic='-fpic'
7295 lt_prog_compiler_static='-Bstatic'
7296 ;;
7297 ccc*)
7298 lt_prog_compiler_wl='-Wl,'
7299 # All Alpha code is PIC.
7300 lt_prog_compiler_static='-non_shared'
7301 ;;
7302 *)
7303 case `$CC -V 2>&1 | sed 5q` in
7304 *Sun\ C*)
7305 # Sun C 5.9
7306 lt_prog_compiler_pic='-KPIC'
7307 lt_prog_compiler_static='-Bstatic'
7308 lt_prog_compiler_wl='-Wl,'
7309 ;;
7310 *Sun\ F*)
7311 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7312 lt_prog_compiler_pic='-KPIC'
7313 lt_prog_compiler_static='-Bstatic'
7314 lt_prog_compiler_wl=''
7315 ;;
7316 esac
7317 ;;
7318 esac
7319 ;;
7320
7321 osf3* | osf4* | osf5*)
7322 lt_prog_compiler_wl='-Wl,'
7323 # All OSF/1 code is PIC.
7324 lt_prog_compiler_static='-non_shared'
7325 ;;
7326
7327 rdos*)
7328 lt_prog_compiler_static='-non_shared'
7329 ;;
7330
7331 solaris*)
7332 lt_prog_compiler_pic='-KPIC'
7333 lt_prog_compiler_static='-Bstatic'
7334 case $cc_basename in
7335 f77* | f90* | f95*)
7336 lt_prog_compiler_wl='-Qoption ld ';;
7337 *)
7338 lt_prog_compiler_wl='-Wl,';;
7339 esac
7340 ;;
7341
7342 sunos4*)
7343 lt_prog_compiler_wl='-Qoption ld '
7344 lt_prog_compiler_pic='-PIC'
7345 lt_prog_compiler_static='-Bstatic'
7346 ;;
7347
7348 sysv4 | sysv4.2uw2* | sysv4.3*)
7349 lt_prog_compiler_wl='-Wl,'
7350 lt_prog_compiler_pic='-KPIC'
7351 lt_prog_compiler_static='-Bstatic'
7352 ;;
7353
7354 sysv4*MP*)
7355 if test -d /usr/nec ;then
7356 lt_prog_compiler_pic='-Kconform_pic'
7357 lt_prog_compiler_static='-Bstatic'
7358 fi
7359 ;;
7360
7361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7362 lt_prog_compiler_wl='-Wl,'
7363 lt_prog_compiler_pic='-KPIC'
7364 lt_prog_compiler_static='-Bstatic'
7365 ;;
7366
7367 unicos*)
7368 lt_prog_compiler_wl='-Wl,'
7369 lt_prog_compiler_can_build_shared=no
7370 ;;
7371
7372 uts4*)
7373 lt_prog_compiler_pic='-pic'
7374 lt_prog_compiler_static='-Bstatic'
7375 ;;
7376
7377 *)
7378 lt_prog_compiler_can_build_shared=no
7379 ;;
7380 esac
7381 fi
7382
7383 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7384 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7385
7386 #
7387 # Check to make sure the PIC flag actually works.
7388 #
7389 if test -n "$lt_prog_compiler_pic"; then
7390
7391 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7392 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7393 if test "${lt_prog_compiler_pic_works+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396 lt_prog_compiler_pic_works=no
7397 ac_outfile=conftest.$ac_objext
7398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7399 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7400 # Insert the option either (1) after the last *FLAGS variable, or
7401 # (2) before a word containing "conftest.", or (3) at the end.
7402 # Note that $ac_compile itself does not contain backslashes and begins
7403 # with a dollar sign (not a hyphen), so the echo should work correctly.
7404 # The option is referenced via a variable to avoid confusing sed.
7405 lt_compile=`echo "$ac_compile" | $SED \
7406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7408 -e 's:$: $lt_compiler_flag:'`
7409 (eval echo "\"\$as_me:7409: $lt_compile\"" >&5)
7410 (eval "$lt_compile" 2>conftest.err)
7411 ac_status=$?
7412 cat conftest.err >&5
7413 echo "$as_me:7413: \$? = $ac_status" >&5
7414 if (exit $ac_status) && test -s "$ac_outfile"; then
7415 # The compiler can only warn and ignore the option if not recognized
7416 # So say no if there are warnings other than the usual output.
7417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7420 lt_prog_compiler_pic_works=yes
7421 fi
7422 fi
7423 $rm conftest*
7424
7425 fi
7426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7427 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7428
7429 if test x"$lt_prog_compiler_pic_works" = xyes; then
7430 case $lt_prog_compiler_pic in
7431 "" | " "*) ;;
7432 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7433 esac
7434 else
7435 lt_prog_compiler_pic=
7436 lt_prog_compiler_can_build_shared=no
7437 fi
7438
7439 fi
7440 case $host_os in
7441 # For platforms which do not support PIC, -DPIC is meaningless:
7442 *djgpp*)
7443 lt_prog_compiler_pic=
7444 ;;
7445 *)
7446 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7447 ;;
7448 esac
7449
7450 #
7451 # Check to make sure the static flag actually works.
7452 #
7453 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7454 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7455 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7456 if test "${lt_prog_compiler_static_works+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 else
7459 lt_prog_compiler_static_works=no
7460 save_LDFLAGS="$LDFLAGS"
7461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7464 # The linker can only warn and ignore the option if not recognized
7465 # So say no if there are warnings
7466 if test -s conftest.err; then
7467 # Append any errors to the config.log.
7468 cat conftest.err 1>&5
7469 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7471 if diff conftest.exp conftest.er2 >/dev/null; then
7472 lt_prog_compiler_static_works=yes
7473 fi
7474 else
7475 lt_prog_compiler_static_works=yes
7476 fi
7477 fi
7478 $rm conftest*
7479 LDFLAGS="$save_LDFLAGS"
7480
7481 fi
7482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7483 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7484
7485 if test x"$lt_prog_compiler_static_works" = xyes; then
7486 :
7487 else
7488 lt_prog_compiler_static=
7489 fi
7490
7491
7492 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7493 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7494 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497 lt_cv_prog_compiler_c_o=no
7498 $rm -r conftest 2>/dev/null
7499 mkdir conftest
7500 cd conftest
7501 mkdir out
7502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7503
7504 lt_compiler_flag="-o out/conftest2.$ac_objext"
7505 # Insert the option either (1) after the last *FLAGS variable, or
7506 # (2) before a word containing "conftest.", or (3) at the end.
7507 # Note that $ac_compile itself does not contain backslashes and begins
7508 # with a dollar sign (not a hyphen), so the echo should work correctly.
7509 lt_compile=`echo "$ac_compile" | $SED \
7510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7512 -e 's:$: $lt_compiler_flag:'`
7513 (eval echo "\"\$as_me:7513: $lt_compile\"" >&5)
7514 (eval "$lt_compile" 2>out/conftest.err)
7515 ac_status=$?
7516 cat out/conftest.err >&5
7517 echo "$as_me:7517: \$? = $ac_status" >&5
7518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7519 then
7520 # The compiler can only warn and ignore the option if not recognized
7521 # So say no if there are warnings
7522 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7525 lt_cv_prog_compiler_c_o=yes
7526 fi
7527 fi
7528 chmod u+w . 2>&5
7529 $rm conftest*
7530 # SGI C++ compiler will create directory out/ii_files/ for
7531 # template instantiation
7532 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7533 $rm out/* && rmdir out
7534 cd ..
7535 rmdir conftest
7536 $rm conftest*
7537
7538 fi
7539 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7540 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7541
7542
7543 hard_links="nottested"
7544 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7545 # do not overwrite the value of need_locks provided by the user
7546 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7547 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7548 hard_links=yes
7549 $rm conftest*
7550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7551 touch conftest.a
7552 ln conftest.a conftest.b 2>&5 || hard_links=no
7553 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7554 { echo "$as_me:$LINENO: result: $hard_links" >&5
7555 echo "${ECHO_T}$hard_links" >&6; }
7556 if test "$hard_links" = no; then
7557 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7558 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7559 need_locks=warn
7560 fi
7561 else
7562 need_locks=no
7563 fi
7564
7565 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7566 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7567
7568 runpath_var=
7569 allow_undefined_flag=
7570 enable_shared_with_static_runtimes=no
7571 archive_cmds=
7572 archive_expsym_cmds=
7573 old_archive_From_new_cmds=
7574 old_archive_from_expsyms_cmds=
7575 export_dynamic_flag_spec=
7576 whole_archive_flag_spec=
7577 thread_safe_flag_spec=
7578 hardcode_libdir_flag_spec=
7579 hardcode_libdir_flag_spec_ld=
7580 hardcode_libdir_separator=
7581 hardcode_direct=no
7582 hardcode_minus_L=no
7583 hardcode_shlibpath_var=unsupported
7584 link_all_deplibs=unknown
7585 hardcode_automatic=no
7586 module_cmds=
7587 module_expsym_cmds=
7588 always_export_symbols=no
7589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7590 # include_expsyms should be a list of space-separated symbols to be *always*
7591 # included in the symbol list
7592 include_expsyms=
7593 # exclude_expsyms can be an extended regexp of symbols to exclude
7594 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7595 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7596 # as well as any symbol that contains `d'.
7597 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7598 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7599 # platforms (ab)use it in PIC code, but their linkers get confused if
7600 # the symbol is explicitly referenced. Since portable code cannot
7601 # rely on this symbol name, it's probably fine to never include it in
7602 # preloaded symbol tables.
7603 extract_expsyms_cmds=
7604 # Just being paranoid about ensuring that cc_basename is set.
7605 for cc_temp in $compiler""; do
7606 case $cc_temp in
7607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7609 \-*) ;;
7610 *) break;;
7611 esac
7612 done
7613 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7614
7615 case $host_os in
7616 cygwin* | mingw* | pw32*)
7617 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7618 # When not using gcc, we currently assume that we are using
7619 # Microsoft Visual C++.
7620 if test "$GCC" != yes; then
7621 with_gnu_ld=no
7622 fi
7623 ;;
7624 interix*)
7625 # we just hope/assume this is gcc and not c89 (= MSVC++)
7626 with_gnu_ld=yes
7627 ;;
7628 openbsd*)
7629 with_gnu_ld=no
7630 ;;
7631 esac
7632
7633 ld_shlibs=yes
7634 if test "$with_gnu_ld" = yes; then
7635 # If archive_cmds runs LD, not CC, wlarc should be empty
7636 wlarc='${wl}'
7637
7638 # Set some defaults for GNU ld with shared library support. These
7639 # are reset later if shared libraries are not supported. Putting them
7640 # here allows them to be overridden if necessary.
7641 runpath_var=LD_RUN_PATH
7642 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7643 export_dynamic_flag_spec='${wl}--export-dynamic'
7644 # ancient GNU ld didn't support --whole-archive et. al.
7645 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7646 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7647 else
7648 whole_archive_flag_spec=
7649 fi
7650 supports_anon_versioning=no
7651 case `$LD -v 2>/dev/null` in
7652 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7655 *\ 2.11.*) ;; # other 2.11 versions
7656 *) supports_anon_versioning=yes ;;
7657 esac
7658
7659 # See if GNU ld supports shared libraries.
7660 case $host_os in
7661 aix3* | aix4* | aix5*)
7662 # On AIX/PPC, the GNU linker is very broken
7663 if test "$host_cpu" != ia64; then
7664 ld_shlibs=no
7665 cat <<EOF 1>&2
7666
7667 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7668 *** to be unable to reliably create shared libraries on AIX.
7669 *** Therefore, libtool is disabling shared libraries support. If you
7670 *** really care for shared libraries, you may want to modify your PATH
7671 *** so that a non-GNU linker is found, and then restart.
7672
7673 EOF
7674 fi
7675 ;;
7676
7677 amigaos*)
7678 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)'
7679 hardcode_libdir_flag_spec='-L$libdir'
7680 hardcode_minus_L=yes
7681
7682 # Samuel A. Falvo II <[email protected]> reports
7683 # that the semantics of dynamic libraries on AmigaOS, at least up
7684 # to version 4, is to share data among multiple programs linked
7685 # with the same dynamic library. Since this doesn't match the
7686 # behavior of shared libraries on other platforms, we can't use
7687 # them.
7688 ld_shlibs=no
7689 ;;
7690
7691 beos*)
7692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7693 allow_undefined_flag=unsupported
7694 # Joseph Beckenbach <[email protected]> says some releases of gcc
7695 # support --undefined. This deserves some investigation. FIXME
7696 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7697 else
7698 ld_shlibs=no
7699 fi
7700 ;;
7701
7702 cygwin* | mingw* | pw32*)
7703 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7704 # as there is no search path for DLLs.
7705 hardcode_libdir_flag_spec='-L$libdir'
7706 allow_undefined_flag=unsupported
7707 always_export_symbols=no
7708 enable_shared_with_static_runtimes=yes
7709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7710
7711 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7713 # If the export-symbols file already is a .def file (1st line
7714 # is EXPORTS), use it as is; otherwise, prepend...
7715 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7716 cp $export_symbols $output_objdir/$soname.def;
7717 else
7718 echo EXPORTS > $output_objdir/$soname.def;
7719 cat $export_symbols >> $output_objdir/$soname.def;
7720 fi~
7721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7722 else
7723 ld_shlibs=no
7724 fi
7725 ;;
7726
7727 interix[3-9]*)
7728 hardcode_direct=no
7729 hardcode_shlibpath_var=no
7730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7731 export_dynamic_flag_spec='${wl}-E'
7732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7733 # Instead, shared libraries are loaded at an image base (0x10000000 by
7734 # default) and relocated if they conflict, which is a slow very memory
7735 # consuming and fragmenting process. To avoid this, we pick a random,
7736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7737 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7739 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'
7740 ;;
7741
7742 gnu* | linux* | k*bsd*-gnu)
7743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7744 tmp_addflag=
7745 case $cc_basename,$host_cpu in
7746 pgcc*) # Portland Group C compiler
7747 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'
7748 tmp_addflag=' $pic_flag'
7749 ;;
7750 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7751 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'
7752 tmp_addflag=' $pic_flag -Mnomain' ;;
7753 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7754 tmp_addflag=' -i_dynamic' ;;
7755 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7756 tmp_addflag=' -i_dynamic -nofor_main' ;;
7757 ifc* | ifort*) # Intel Fortran compiler
7758 tmp_addflag=' -nofor_main' ;;
7759 esac
7760 case `$CC -V 2>&1 | sed 5q` in
7761 *Sun\ C*) # Sun C 5.9
7762 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'
7763 tmp_sharedflag='-G' ;;
7764 *Sun\ F*) # Sun Fortran 8.3
7765 tmp_sharedflag='-G' ;;
7766 *)
7767 tmp_sharedflag='-shared' ;;
7768 esac
7769 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7770
7771 if test $supports_anon_versioning = yes; then
7772 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7774 $echo "local: *; };" >> $output_objdir/$libname.ver~
7775 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7776 fi
7777 else
7778 ld_shlibs=no
7779 fi
7780 ;;
7781
7782 netbsd*)
7783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7784 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7785 wlarc=
7786 else
7787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7789 fi
7790 ;;
7791
7792 solaris*)
7793 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7794 ld_shlibs=no
7795 cat <<EOF 1>&2
7796
7797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7798 *** create shared libraries on Solaris systems. Therefore, libtool
7799 *** is disabling shared libraries support. We urge you to upgrade GNU
7800 *** binutils to release 2.9.1 or newer. Another option is to modify
7801 *** your PATH or compiler configuration so that the native linker is
7802 *** used, and then restart.
7803
7804 EOF
7805 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7808 else
7809 ld_shlibs=no
7810 fi
7811 ;;
7812
7813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7814 case `$LD -v 2>&1` in
7815 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7816 ld_shlibs=no
7817 cat <<_LT_EOF 1>&2
7818
7819 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7820 *** reliably create shared libraries on SCO systems. Therefore, libtool
7821 *** is disabling shared libraries support. We urge you to upgrade GNU
7822 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7823 *** your PATH or compiler configuration so that the native linker is
7824 *** used, and then restart.
7825
7826 _LT_EOF
7827 ;;
7828 *)
7829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7830 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7833 else
7834 ld_shlibs=no
7835 fi
7836 ;;
7837 esac
7838 ;;
7839
7840 sunos4*)
7841 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7842 wlarc=
7843 hardcode_direct=yes
7844 hardcode_shlibpath_var=no
7845 ;;
7846
7847 *)
7848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7851 else
7852 ld_shlibs=no
7853 fi
7854 ;;
7855 esac
7856
7857 if test "$ld_shlibs" = no; then
7858 runpath_var=
7859 hardcode_libdir_flag_spec=
7860 export_dynamic_flag_spec=
7861 whole_archive_flag_spec=
7862 fi
7863 else
7864 # PORTME fill in a description of your system's linker (not GNU ld)
7865 case $host_os in
7866 aix3*)
7867 allow_undefined_flag=unsupported
7868 always_export_symbols=yes
7869 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'
7870 # Note: this linker hardcodes the directories in LIBPATH if there
7871 # are no directories specified by -L.
7872 hardcode_minus_L=yes
7873 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7874 # Neither direct hardcoding nor static linking is supported with a
7875 # broken collect2.
7876 hardcode_direct=unsupported
7877 fi
7878 ;;
7879
7880 aix4* | aix5*)
7881 if test "$host_cpu" = ia64; then
7882 # On IA64, the linker does run time linking by default, so we don't
7883 # have to do anything special.
7884 aix_use_runtimelinking=no
7885 exp_sym_flag='-Bexport'
7886 no_entry_flag=""
7887 else
7888 # If we're using GNU nm, then we don't want the "-C" option.
7889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7890 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7891 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'
7892 else
7893 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'
7894 fi
7895 aix_use_runtimelinking=no
7896
7897 # Test if we are trying to use run time linking or normal
7898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7899 # need to do runtime linking.
7900 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7901 for ld_flag in $LDFLAGS; do
7902 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7903 aix_use_runtimelinking=yes
7904 break
7905 fi
7906 done
7907 ;;
7908 esac
7909
7910 exp_sym_flag='-bexport'
7911 no_entry_flag='-bnoentry'
7912 fi
7913
7914 # When large executables or shared objects are built, AIX ld can
7915 # have problems creating the table of contents. If linking a library
7916 # or program results in "error TOC overflow" add -mminimal-toc to
7917 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7918 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7919
7920 archive_cmds=''
7921 hardcode_direct=yes
7922 hardcode_libdir_separator=':'
7923 link_all_deplibs=yes
7924
7925 if test "$GCC" = yes; then
7926 case $host_os in aix4.[012]|aix4.[012].*)
7927 # We only want to do this on AIX 4.2 and lower, the check
7928 # below for broken collect2 doesn't work under 4.3+
7929 collect2name=`${CC} -print-prog-name=collect2`
7930 if test -f "$collect2name" && \
7931 strings "$collect2name" | grep resolve_lib_name >/dev/null
7932 then
7933 # We have reworked collect2
7934 :
7935 else
7936 # We have old collect2
7937 hardcode_direct=unsupported
7938 # It fails to find uninstalled libraries when the uninstalled
7939 # path is not listed in the libpath. Setting hardcode_minus_L
7940 # to unsupported forces relinking
7941 hardcode_minus_L=yes
7942 hardcode_libdir_flag_spec='-L$libdir'
7943 hardcode_libdir_separator=
7944 fi
7945 ;;
7946 esac
7947 shared_flag='-shared'
7948 if test "$aix_use_runtimelinking" = yes; then
7949 shared_flag="$shared_flag "'${wl}-G'
7950 fi
7951 else
7952 # not using gcc
7953 if test "$host_cpu" = ia64; then
7954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7955 # chokes on -Wl,-G. The following line is correct:
7956 shared_flag='-G'
7957 else
7958 if test "$aix_use_runtimelinking" = yes; then
7959 shared_flag='${wl}-G'
7960 else
7961 shared_flag='${wl}-bM:SRE'
7962 fi
7963 fi
7964 fi
7965
7966 # It seems that -bexpall does not export symbols beginning with
7967 # underscore (_), so it is better to generate a list of symbols to export.
7968 always_export_symbols=yes
7969 if test "$aix_use_runtimelinking" = yes; then
7970 # Warning - without using the other runtime loading flags (-brtl),
7971 # -berok will link without error, but may produce a broken library.
7972 allow_undefined_flag='-berok'
7973 # Determine the default libpath from the value encoded in an empty executable.
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980
7981 int
7982 main ()
7983 {
7984
7985 ;
7986 return 0;
7987 }
7988 _ACEOF
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (ac_try="$ac_link"
7991 case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994 esac
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_link") 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } && {
8003 test -z "$ac_c_werror_flag" ||
8004 test ! -s conftest.err
8005 } && test -s conftest$ac_exeext &&
8006 $as_test_x conftest$ac_exeext; then
8007
8008 lt_aix_libpath_sed='
8009 /Import File Strings/,/^$/ {
8010 /^0/ {
8011 s/^0 *\(.*\)$/\1/
8012 p
8013 }
8014 }'
8015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8016 # Check for a 64-bit object if we didn't find anything.
8017 if test -z "$aix_libpath"; then
8018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8019 fi
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8028 conftest$ac_exeext conftest.$ac_ext
8029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8030
8031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8032 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8033 else
8034 if test "$host_cpu" = ia64; then
8035 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8036 allow_undefined_flag="-z nodefs"
8037 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"
8038 else
8039 # Determine the default libpath from the value encoded in an empty executable.
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h. */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8046
8047 int
8048 main ()
8049 {
8050
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 rm -f conftest.$ac_objext conftest$ac_exeext
8056 if { (ac_try="$ac_link"
8057 case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_link") 2>conftest.er1
8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } && {
8069 test -z "$ac_c_werror_flag" ||
8070 test ! -s conftest.err
8071 } && test -s conftest$ac_exeext &&
8072 $as_test_x conftest$ac_exeext; then
8073
8074 lt_aix_libpath_sed='
8075 /Import File Strings/,/^$/ {
8076 /^0/ {
8077 s/^0 *\(.*\)$/\1/
8078 p
8079 }
8080 }'
8081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8082 # Check for a 64-bit object if we didn't find anything.
8083 if test -z "$aix_libpath"; then
8084 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8085 fi
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090
8091 fi
8092
8093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8094 conftest$ac_exeext conftest.$ac_ext
8095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8096
8097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8098 # Warning - without using the other run time loading flags,
8099 # -berok will link without error, but may produce a broken library.
8100 no_undefined_flag=' ${wl}-bernotok'
8101 allow_undefined_flag=' ${wl}-berok'
8102 # Exported symbols can be pulled into shared objects from archives
8103 whole_archive_flag_spec='$convenience'
8104 archive_cmds_need_lc=yes
8105 # This is similar to how AIX traditionally builds its shared libraries.
8106 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'
8107 fi
8108 fi
8109 ;;
8110
8111 amigaos*)
8112 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)'
8113 hardcode_libdir_flag_spec='-L$libdir'
8114 hardcode_minus_L=yes
8115 # see comment about different semantics on the GNU ld section
8116 ld_shlibs=no
8117 ;;
8118
8119 bsdi[45]*)
8120 export_dynamic_flag_spec=-rdynamic
8121 ;;
8122
8123 cygwin* | mingw* | pw32*)
8124 # When not using gcc, we currently assume that we are using
8125 # Microsoft Visual C++.
8126 # hardcode_libdir_flag_spec is actually meaningless, as there is
8127 # no search path for DLLs.
8128 hardcode_libdir_flag_spec=' '
8129 allow_undefined_flag=unsupported
8130 # Tell ltmain to make .lib files, not .a files.
8131 libext=lib
8132 # Tell ltmain to make .dll files, not .so files.
8133 shrext_cmds=".dll"
8134 # FIXME: Setting linknames here is a bad hack.
8135 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8136 # The linker will automatically build a .lib file if we build a DLL.
8137 old_archive_From_new_cmds='true'
8138 # FIXME: Should let the user specify the lib program.
8139 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8140 fix_srcfile_path='`cygpath -w "$srcfile"`'
8141 enable_shared_with_static_runtimes=yes
8142 ;;
8143
8144 darwin* | rhapsody*)
8145 case $host_os in
8146 rhapsody* | darwin1.[012])
8147 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8148 ;;
8149 *) # Darwin 1.3 on
8150 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8151 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8152 else
8153 case ${MACOSX_DEPLOYMENT_TARGET} in
8154 10.[012])
8155 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8156 ;;
8157 10.*)
8158 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8159 ;;
8160 esac
8161 fi
8162 ;;
8163 esac
8164 archive_cmds_need_lc=no
8165 hardcode_direct=no
8166 hardcode_automatic=yes
8167 hardcode_shlibpath_var=unsupported
8168 whole_archive_flag_spec=''
8169 link_all_deplibs=yes
8170 if test "$GCC" = yes ; then
8171 output_verbose_link_cmd='echo'
8172 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8173 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8175 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8176 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8177 else
8178 case $cc_basename in
8179 xlc*)
8180 output_verbose_link_cmd='echo'
8181 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8182 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8184 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8185 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8186 ;;
8187 *)
8188 ld_shlibs=no
8189 ;;
8190 esac
8191 fi
8192 ;;
8193
8194 dgux*)
8195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_shlibpath_var=no
8198 ;;
8199
8200 freebsd1*)
8201 ld_shlibs=no
8202 ;;
8203
8204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8205 # support. Future versions do this automatically, but an explicit c++rt0.o
8206 # does not break anything, and helps significantly (at the cost of a little
8207 # extra space).
8208 freebsd2.2*)
8209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8210 hardcode_libdir_flag_spec='-R$libdir'
8211 hardcode_direct=yes
8212 hardcode_shlibpath_var=no
8213 ;;
8214
8215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8216 freebsd2*)
8217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_direct=yes
8219 hardcode_minus_L=yes
8220 hardcode_shlibpath_var=no
8221 ;;
8222
8223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8224 freebsd* | dragonfly*)
8225 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8226 hardcode_libdir_flag_spec='-R$libdir'
8227 hardcode_direct=yes
8228 hardcode_shlibpath_var=no
8229 ;;
8230
8231 hpux9*)
8232 if test "$GCC" = yes; then
8233 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'
8234 else
8235 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'
8236 fi
8237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8238 hardcode_libdir_separator=:
8239 hardcode_direct=yes
8240
8241 # hardcode_minus_L: Not really in the search PATH,
8242 # but as the default location of the library.
8243 hardcode_minus_L=yes
8244 export_dynamic_flag_spec='${wl}-E'
8245 ;;
8246
8247 hpux10*)
8248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8250 else
8251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8252 fi
8253 if test "$with_gnu_ld" = no; then
8254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8255 hardcode_libdir_separator=:
8256
8257 hardcode_direct=yes
8258 export_dynamic_flag_spec='${wl}-E'
8259
8260 # hardcode_minus_L: Not really in the search PATH,
8261 # but as the default location of the library.
8262 hardcode_minus_L=yes
8263 fi
8264 ;;
8265
8266 hpux11*)
8267 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8268 case $host_cpu in
8269 hppa*64*)
8270 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8271 ;;
8272 ia64*)
8273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8274 ;;
8275 *)
8276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8277 ;;
8278 esac
8279 else
8280 case $host_cpu in
8281 hppa*64*)
8282 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 ;;
8284 ia64*)
8285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8286 ;;
8287 *)
8288 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8289 ;;
8290 esac
8291 fi
8292 if test "$with_gnu_ld" = no; then
8293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8294 hardcode_libdir_separator=:
8295
8296 case $host_cpu in
8297 hppa*64*|ia64*)
8298 hardcode_libdir_flag_spec_ld='+b $libdir'
8299 hardcode_direct=no
8300 hardcode_shlibpath_var=no
8301 ;;
8302 *)
8303 hardcode_direct=yes
8304 export_dynamic_flag_spec='${wl}-E'
8305
8306 # hardcode_minus_L: Not really in the search PATH,
8307 # but as the default location of the library.
8308 hardcode_minus_L=yes
8309 ;;
8310 esac
8311 fi
8312 ;;
8313
8314 irix5* | irix6* | nonstopux*)
8315 if test "$GCC" = yes; then
8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8317 else
8318 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8319 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8320 fi
8321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8322 hardcode_libdir_separator=:
8323 link_all_deplibs=yes
8324 ;;
8325
8326 netbsd*)
8327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8329 else
8330 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8331 fi
8332 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_direct=yes
8334 hardcode_shlibpath_var=no
8335 ;;
8336
8337 newsos6)
8338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339 hardcode_direct=yes
8340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341 hardcode_libdir_separator=:
8342 hardcode_shlibpath_var=no
8343 ;;
8344
8345 openbsd*)
8346 if test -f /usr/libexec/ld.so; then
8347 hardcode_direct=yes
8348 hardcode_shlibpath_var=no
8349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8351 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8353 export_dynamic_flag_spec='${wl}-E'
8354 else
8355 case $host_os in
8356 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8358 hardcode_libdir_flag_spec='-R$libdir'
8359 ;;
8360 *)
8361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8363 ;;
8364 esac
8365 fi
8366 else
8367 ld_shlibs=no
8368 fi
8369 ;;
8370
8371 os2*)
8372 hardcode_libdir_flag_spec='-L$libdir'
8373 hardcode_minus_L=yes
8374 allow_undefined_flag=unsupported
8375 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'
8376 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8377 ;;
8378
8379 osf3*)
8380 if test "$GCC" = yes; then
8381 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8382 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8383 else
8384 allow_undefined_flag=' -expect_unresolved \*'
8385 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8386 fi
8387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8388 hardcode_libdir_separator=:
8389 ;;
8390
8391 osf4* | osf5*) # as osf3* with the addition of -msym flag
8392 if test "$GCC" = yes; then
8393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8394 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8396 else
8397 allow_undefined_flag=' -expect_unresolved \*'
8398 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8399 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8400 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8401
8402 # Both c and cxx compiler support -rpath directly
8403 hardcode_libdir_flag_spec='-rpath $libdir'
8404 fi
8405 hardcode_libdir_separator=:
8406 ;;
8407
8408 solaris*)
8409 no_undefined_flag=' -z text'
8410 if test "$GCC" = yes; then
8411 wlarc='${wl}'
8412 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8414 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8415 else
8416 wlarc=''
8417 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8418 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8420 fi
8421 hardcode_libdir_flag_spec='-R$libdir'
8422 hardcode_shlibpath_var=no
8423 case $host_os in
8424 solaris2.[0-5] | solaris2.[0-5].*) ;;
8425 *)
8426 # The compiler driver will combine and reorder linker options,
8427 # but understands `-z linker_flag'. GCC discards it without `$wl',
8428 # but is careful enough not to reorder.
8429 # Supported since Solaris 2.6 (maybe 2.5.1?)
8430 if test "$GCC" = yes; then
8431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8432 else
8433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8434 fi
8435 ;;
8436 esac
8437 link_all_deplibs=yes
8438 ;;
8439
8440 sunos4*)
8441 if test "x$host_vendor" = xsequent; then
8442 # Use $CC to link under sequent, because it throws in some extra .o
8443 # files that make .init and .fini sections work.
8444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8445 else
8446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8447 fi
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_direct=yes
8450 hardcode_minus_L=yes
8451 hardcode_shlibpath_var=no
8452 ;;
8453
8454 sysv4)
8455 case $host_vendor in
8456 sni)
8457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8458 hardcode_direct=yes # is this really true???
8459 ;;
8460 siemens)
8461 ## LD is ld it makes a PLAMLIB
8462 ## CC just makes a GrossModule.
8463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8464 reload_cmds='$CC -r -o $output$reload_objs'
8465 hardcode_direct=no
8466 ;;
8467 motorola)
8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8470 ;;
8471 esac
8472 runpath_var='LD_RUN_PATH'
8473 hardcode_shlibpath_var=no
8474 ;;
8475
8476 sysv4.3*)
8477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_shlibpath_var=no
8479 export_dynamic_flag_spec='-Bexport'
8480 ;;
8481
8482 sysv4*MP*)
8483 if test -d /usr/nec; then
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_shlibpath_var=no
8486 runpath_var=LD_RUN_PATH
8487 hardcode_runpath_var=yes
8488 ld_shlibs=yes
8489 fi
8490 ;;
8491
8492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8493 no_undefined_flag='${wl}-z,text'
8494 archive_cmds_need_lc=no
8495 hardcode_shlibpath_var=no
8496 runpath_var='LD_RUN_PATH'
8497
8498 if test "$GCC" = yes; then
8499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8501 else
8502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8504 fi
8505 ;;
8506
8507 sysv5* | sco3.2v5* | sco5v6*)
8508 # Note: We can NOT use -z defs as we might desire, because we do not
8509 # link with -lc, and that would cause any symbols used from libc to
8510 # always be unresolved, which means just about no library would
8511 # ever link correctly. If we're not using GNU ld we use -z text
8512 # though, which does catch some bad symbols but isn't as heavy-handed
8513 # as -z defs.
8514 no_undefined_flag='${wl}-z,text'
8515 allow_undefined_flag='${wl}-z,nodefs'
8516 archive_cmds_need_lc=no
8517 hardcode_shlibpath_var=no
8518 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8519 hardcode_libdir_separator=':'
8520 link_all_deplibs=yes
8521 export_dynamic_flag_spec='${wl}-Bexport'
8522 runpath_var='LD_RUN_PATH'
8523
8524 if test "$GCC" = yes; then
8525 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 else
8528 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 fi
8531 ;;
8532
8533 uts4*)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 hardcode_shlibpath_var=no
8537 ;;
8538
8539 *)
8540 ld_shlibs=no
8541 ;;
8542 esac
8543 fi
8544
8545 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8546 echo "${ECHO_T}$ld_shlibs" >&6; }
8547 test "$ld_shlibs" = no && can_build_shared=no
8548
8549 #
8550 # Do we need to explicitly link libc?
8551 #
8552 case "x$archive_cmds_need_lc" in
8553 x|xyes)
8554 # Assume -lc should be added
8555 archive_cmds_need_lc=yes
8556
8557 if test "$enable_shared" = yes && test "$GCC" = yes; then
8558 case $archive_cmds in
8559 *'~'*)
8560 # FIXME: we may have to deal with multi-command sequences.
8561 ;;
8562 '$CC '*)
8563 # Test whether the compiler implicitly links with -lc since on some
8564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8565 # to ld, don't add -lc before -lgcc.
8566 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8567 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8568 $rm conftest*
8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8572 (eval $ac_compile) 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } 2>conftest.err; then
8576 soname=conftest
8577 lib=conftest
8578 libobjs=conftest.$ac_objext
8579 deplibs=
8580 wl=$lt_prog_compiler_wl
8581 pic_flag=$lt_prog_compiler_pic
8582 compiler_flags=-v
8583 linker_flags=-v
8584 verstring=
8585 output_objdir=.
8586 libname=conftest
8587 lt_save_allow_undefined_flag=$allow_undefined_flag
8588 allow_undefined_flag=
8589 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8590 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }
8594 then
8595 archive_cmds_need_lc=no
8596 else
8597 archive_cmds_need_lc=yes
8598 fi
8599 allow_undefined_flag=$lt_save_allow_undefined_flag
8600 else
8601 cat conftest.err 1>&5
8602 fi
8603 $rm conftest*
8604 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8605 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8606 ;;
8607 esac
8608 fi
8609 ;;
8610 esac
8611
8612 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8613 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8614 library_names_spec=
8615 libname_spec='lib$name'
8616 soname_spec=
8617 shrext_cmds=".so"
8618 postinstall_cmds=
8619 postuninstall_cmds=
8620 finish_cmds=
8621 finish_eval=
8622 shlibpath_var=
8623 shlibpath_overrides_runpath=unknown
8624 version_type=none
8625 dynamic_linker="$host_os ld.so"
8626 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8627
8628 if test "$GCC" = yes; then
8629 case $host_os in
8630 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8631 *) lt_awk_arg="/^libraries:/" ;;
8632 esac
8633 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8634 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8635 # if the path contains ";" then we assume it to be the separator
8636 # otherwise default to the standard path separator (i.e. ":") - it is
8637 # assumed that no part of a normal pathname contains ";" but that should
8638 # okay in the real world where ";" in dirpaths is itself problematic.
8639 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8640 else
8641 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8642 fi
8643 # Ok, now we have the path, separated by spaces, we can step through it
8644 # and add multilib dir if necessary.
8645 lt_tmp_lt_search_path_spec=
8646 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8647 for lt_sys_path in $lt_search_path_spec; do
8648 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8649 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8650 else
8651 test -d "$lt_sys_path" && \
8652 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8653 fi
8654 done
8655 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8656 BEGIN {RS=" "; FS="/|\n";} {
8657 lt_foo="";
8658 lt_count=0;
8659 for (lt_i = NF; lt_i > 0; lt_i--) {
8660 if ($lt_i != "" && $lt_i != ".") {
8661 if ($lt_i == "..") {
8662 lt_count++;
8663 } else {
8664 if (lt_count == 0) {
8665 lt_foo="/" $lt_i lt_foo;
8666 } else {
8667 lt_count--;
8668 }
8669 }
8670 }
8671 }
8672 if (lt_foo != "") { lt_freq[lt_foo]++; }
8673 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8674 }'`
8675 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8676 else
8677 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8678 fi
8679 need_lib_prefix=unknown
8680 hardcode_into_libs=no
8681
8682 # when you set need_version to no, make sure it does not cause -set_version
8683 # flags to be left without arguments
8684 need_version=unknown
8685
8686 case $host_os in
8687 aix3*)
8688 version_type=linux
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8690 shlibpath_var=LIBPATH
8691
8692 # AIX 3 has no versioning support, so we append a major version to the name.
8693 soname_spec='${libname}${release}${shared_ext}$major'
8694 ;;
8695
8696 aix4* | aix5*)
8697 version_type=linux
8698 need_lib_prefix=no
8699 need_version=no
8700 hardcode_into_libs=yes
8701 if test "$host_cpu" = ia64; then
8702 # AIX 5 supports IA64
8703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8704 shlibpath_var=LD_LIBRARY_PATH
8705 else
8706 # With GCC up to 2.95.x, collect2 would create an import file
8707 # for dependence libraries. The import file would start with
8708 # the line `#! .'. This would cause the generated library to
8709 # depend on `.', always an invalid library. This was fixed in
8710 # development snapshots of GCC prior to 3.0.
8711 case $host_os in
8712 aix4 | aix4.[01] | aix4.[01].*)
8713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8714 echo ' yes '
8715 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8716 :
8717 else
8718 can_build_shared=no
8719 fi
8720 ;;
8721 esac
8722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8723 # soname into executable. Probably we can add versioning support to
8724 # collect2, so additional links can be useful in future.
8725 if test "$aix_use_runtimelinking" = yes; then
8726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8727 # instead of lib<name>.a to let people know that these are not
8728 # typical AIX shared libraries.
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8730 else
8731 # We preserve .a as extension for shared libraries through AIX4.2
8732 # and later when we are not doing run time linking.
8733 library_names_spec='${libname}${release}.a $libname.a'
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 fi
8736 shlibpath_var=LIBPATH
8737 fi
8738 ;;
8739
8740 amigaos*)
8741 library_names_spec='$libname.ixlibrary $libname.a'
8742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8743 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'
8744 ;;
8745
8746 beos*)
8747 library_names_spec='${libname}${shared_ext}'
8748 dynamic_linker="$host_os ld.so"
8749 shlibpath_var=LIBRARY_PATH
8750 ;;
8751
8752 bsdi[45]*)
8753 version_type=linux
8754 need_version=no
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8761 # the default ld.so.conf also contains /usr/contrib/lib and
8762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8763 # libtool to hard-code these into programs
8764 ;;
8765
8766 cygwin* | mingw* | pw32*)
8767 version_type=windows
8768 shrext_cmds=".dll"
8769 need_version=no
8770 need_lib_prefix=no
8771
8772 case $GCC,$host_os in
8773 yes,cygwin* | yes,mingw* | yes,pw32*)
8774 library_names_spec='$libname.dll.a'
8775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8776 postinstall_cmds='base_file=`basename \${file}`~
8777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8778 dldir=$destdir/`dirname \$dlpath`~
8779 test -d \$dldir || mkdir -p \$dldir~
8780 $install_prog $dir/$dlname \$dldir/$dlname~
8781 chmod a+x \$dldir/$dlname'
8782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8783 dlpath=$dir/\$dldll~
8784 $rm \$dlpath'
8785 shlibpath_overrides_runpath=yes
8786
8787 case $host_os in
8788 cygwin*)
8789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8791 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8792 ;;
8793 mingw*)
8794 # MinGW DLLs use traditional 'lib' prefix
8795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8797 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8798 # It is most probably a Windows format PATH printed by
8799 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8800 # path with ; separators, and with drive letters. We can handle the
8801 # drive letters (cygwin fileutils understands them), so leave them,
8802 # especially as we might pass files found there to a mingw objdump,
8803 # which wouldn't understand a cygwinified path. Ahh.
8804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8805 else
8806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8807 fi
8808 ;;
8809 pw32*)
8810 # pw32 DLLs use 'pw' prefix rather than 'lib'
8811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8812 ;;
8813 esac
8814 ;;
8815
8816 *)
8817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8818 ;;
8819 esac
8820 dynamic_linker='Win32 ld.exe'
8821 # FIXME: first we should search . and the directory the executable is in
8822 shlibpath_var=PATH
8823 ;;
8824
8825 darwin* | rhapsody*)
8826 dynamic_linker="$host_os dyld"
8827 version_type=darwin
8828 need_lib_prefix=no
8829 need_version=no
8830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8831 soname_spec='${libname}${release}${major}$shared_ext'
8832 shlibpath_overrides_runpath=yes
8833 shlibpath_var=DYLD_LIBRARY_PATH
8834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8835
8836 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8838 ;;
8839
8840 dgux*)
8841 version_type=linux
8842 need_lib_prefix=no
8843 need_version=no
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 ;;
8848
8849 freebsd1*)
8850 dynamic_linker=no
8851 ;;
8852
8853 freebsd* | dragonfly*)
8854 # DragonFly does not have aout. When/if they implement a new
8855 # versioning mechanism, adjust this.
8856 if test -x /usr/bin/objformat; then
8857 objformat=`/usr/bin/objformat`
8858 else
8859 case $host_os in
8860 freebsd[123]*) objformat=aout ;;
8861 *) objformat=elf ;;
8862 esac
8863 fi
8864 version_type=freebsd-$objformat
8865 case $version_type in
8866 freebsd-elf*)
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8868 need_version=no
8869 need_lib_prefix=no
8870 ;;
8871 freebsd-*)
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8873 need_version=yes
8874 ;;
8875 esac
8876 shlibpath_var=LD_LIBRARY_PATH
8877 case $host_os in
8878 freebsd2*)
8879 shlibpath_overrides_runpath=yes
8880 ;;
8881 freebsd3.[01]* | freebsdelf3.[01]*)
8882 shlibpath_overrides_runpath=yes
8883 hardcode_into_libs=yes
8884 ;;
8885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8887 shlibpath_overrides_runpath=no
8888 hardcode_into_libs=yes
8889 ;;
8890 *) # from 4.6 on, and DragonFly
8891 shlibpath_overrides_runpath=yes
8892 hardcode_into_libs=yes
8893 ;;
8894 esac
8895 ;;
8896
8897 gnu*)
8898 version_type=linux
8899 need_lib_prefix=no
8900 need_version=no
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 hardcode_into_libs=yes
8905 ;;
8906
8907 hpux9* | hpux10* | hpux11*)
8908 # Give a soname corresponding to the major version so that dld.sl refuses to
8909 # link against other versions.
8910 version_type=sunos
8911 need_lib_prefix=no
8912 need_version=no
8913 case $host_cpu in
8914 ia64*)
8915 shrext_cmds='.so'
8916 hardcode_into_libs=yes
8917 dynamic_linker="$host_os dld.so"
8918 shlibpath_var=LD_LIBRARY_PATH
8919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 if test "X$HPUX_IA64_MODE" = X32; then
8923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8924 else
8925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8926 fi
8927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8928 ;;
8929 hppa*64*)
8930 shrext_cmds='.sl'
8931 hardcode_into_libs=yes
8932 dynamic_linker="$host_os dld.sl"
8933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8939 ;;
8940 *)
8941 shrext_cmds='.sl'
8942 dynamic_linker="$host_os dld.sl"
8943 shlibpath_var=SHLIB_PATH
8944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 ;;
8948 esac
8949 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8950 postinstall_cmds='chmod 555 $lib'
8951 ;;
8952
8953 interix[3-9]*)
8954 version_type=linux
8955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=no
8962 hardcode_into_libs=yes
8963 ;;
8964
8965 irix5* | irix6* | nonstopux*)
8966 case $host_os in
8967 nonstopux*) version_type=nonstopux ;;
8968 *)
8969 if test "$lt_cv_prog_gnu_ld" = yes; then
8970 version_type=linux
8971 else
8972 version_type=irix
8973 fi ;;
8974 esac
8975 need_lib_prefix=no
8976 need_version=no
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8979 case $host_os in
8980 irix5* | nonstopux*)
8981 libsuff= shlibsuff=
8982 ;;
8983 *)
8984 case $LD in # libtool.m4 will add one of these switches to LD
8985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8986 libsuff= shlibsuff= libmagic=32-bit;;
8987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8988 libsuff=32 shlibsuff=N32 libmagic=N32;;
8989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8991 *) libsuff= shlibsuff= libmagic=never-match;;
8992 esac
8993 ;;
8994 esac
8995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8996 shlibpath_overrides_runpath=no
8997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8999 hardcode_into_libs=yes
9000 ;;
9001
9002 # No shared lib support for Linux oldld, aout, or coff.
9003 linux*oldld* | linux*aout* | linux*coff*)
9004 dynamic_linker=no
9005 ;;
9006
9007 # This must be Linux ELF.
9008 linux* | k*bsd*-gnu)
9009 version_type=linux
9010 need_lib_prefix=no
9011 need_version=no
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=no
9017 # This implies no fast_install, which is unacceptable.
9018 # Some rework will be needed to allow for fast_install
9019 # before this can be enabled.
9020 hardcode_into_libs=yes
9021
9022 # find out which ABI we are using
9023 libsuff=
9024 case "$host_cpu" in
9025 x86_64*|s390x*|powerpc64*)
9026 echo '#line 9026 "configure"' > conftest.$ac_ext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; then
9032 case `/usr/bin/file conftest.$ac_objext` in
9033 *64-bit*)
9034 libsuff=64
9035 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9036 ;;
9037 esac
9038 fi
9039 rm -rf conftest*
9040 ;;
9041 esac
9042
9043 # Append ld.so.conf contents to the search path
9044 if test -f /etc/ld.so.conf; then
9045 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' ' '`
9046 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9047 fi
9048
9049 # We used to test for /lib/ld.so.1 and disable shared libraries on
9050 # powerpc, because MkLinux only supported shared libraries with the
9051 # GNU dynamic linker. Since this was broken with cross compilers,
9052 # most powerpc-linux boxes support dynamic linking these days and
9053 # people can always --disable-shared, the test was removed, and we
9054 # assume the GNU/Linux dynamic linker is in use.
9055 dynamic_linker='GNU/Linux ld.so'
9056 ;;
9057
9058 netbsd*)
9059 version_type=sunos
9060 need_lib_prefix=no
9061 need_version=no
9062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9065 dynamic_linker='NetBSD (a.out) ld.so'
9066 else
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 dynamic_linker='NetBSD ld.elf_so'
9070 fi
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 hardcode_into_libs=yes
9074 ;;
9075
9076 newsos6)
9077 version_type=linux
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 ;;
9082
9083 nto-qnx*)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=yes
9091 ;;
9092
9093 openbsd*)
9094 version_type=sunos
9095 sys_lib_dlsearch_path_spec="/usr/lib"
9096 need_lib_prefix=no
9097 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9098 case $host_os in
9099 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9100 *) need_version=no ;;
9101 esac
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9106 case $host_os in
9107 openbsd2.[89] | openbsd2.[89].*)
9108 shlibpath_overrides_runpath=no
9109 ;;
9110 *)
9111 shlibpath_overrides_runpath=yes
9112 ;;
9113 esac
9114 else
9115 shlibpath_overrides_runpath=yes
9116 fi
9117 ;;
9118
9119 os2*)
9120 libname_spec='$name'
9121 shrext_cmds=".dll"
9122 need_lib_prefix=no
9123 library_names_spec='$libname${shared_ext} $libname.a'
9124 dynamic_linker='OS/2 ld.exe'
9125 shlibpath_var=LIBPATH
9126 ;;
9127
9128 osf3* | osf4* | osf5*)
9129 version_type=osf
9130 need_lib_prefix=no
9131 need_version=no
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9136 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9137 ;;
9138
9139 rdos*)
9140 dynamic_linker=no
9141 ;;
9142
9143 solaris*)
9144 version_type=linux
9145 need_lib_prefix=no
9146 need_version=no
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=yes
9151 hardcode_into_libs=yes
9152 # ldd complains unless libraries are executable
9153 postinstall_cmds='chmod +x $lib'
9154 ;;
9155
9156 sunos4*)
9157 version_type=sunos
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9162 if test "$with_gnu_ld" = yes; then
9163 need_lib_prefix=no
9164 fi
9165 need_version=yes
9166 ;;
9167
9168 sysv4 | sysv4.3*)
9169 version_type=linux
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 case $host_vendor in
9174 sni)
9175 shlibpath_overrides_runpath=no
9176 need_lib_prefix=no
9177 export_dynamic_flag_spec='${wl}-Blargedynsym'
9178 runpath_var=LD_RUN_PATH
9179 ;;
9180 siemens)
9181 need_lib_prefix=no
9182 ;;
9183 motorola)
9184 need_lib_prefix=no
9185 need_version=no
9186 shlibpath_overrides_runpath=no
9187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9188 ;;
9189 esac
9190 ;;
9191
9192 sysv4*MP*)
9193 if test -d /usr/nec ;then
9194 version_type=linux
9195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9196 soname_spec='$libname${shared_ext}.$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 fi
9199 ;;
9200
9201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9202 version_type=freebsd-elf
9203 need_lib_prefix=no
9204 need_version=no
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 hardcode_into_libs=yes
9209 if test "$with_gnu_ld" = yes; then
9210 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9211 shlibpath_overrides_runpath=no
9212 else
9213 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9214 shlibpath_overrides_runpath=yes
9215 case $host_os in
9216 sco3.2v5*)
9217 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9218 ;;
9219 esac
9220 fi
9221 sys_lib_dlsearch_path_spec='/usr/lib'
9222 ;;
9223
9224 uts4*)
9225 version_type=linux
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 ;;
9230
9231 *)
9232 dynamic_linker=no
9233 ;;
9234 esac
9235 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9236 echo "${ECHO_T}$dynamic_linker" >&6; }
9237 test "$dynamic_linker" = no && can_build_shared=no
9238
9239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240 if test "$GCC" = yes; then
9241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9242 fi
9243
9244 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9245 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9246 hardcode_action=
9247 if test -n "$hardcode_libdir_flag_spec" || \
9248 test -n "$runpath_var" || \
9249 test "X$hardcode_automatic" = "Xyes" ; then
9250
9251 # We can hardcode non-existant directories.
9252 if test "$hardcode_direct" != no &&
9253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9254 # have to relink, otherwise we might link with an installed library
9255 # when we should be linking with a yet-to-be-installed one
9256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9257 test "$hardcode_minus_L" != no; then
9258 # Linking always hardcodes the temporary library directory.
9259 hardcode_action=relink
9260 else
9261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9262 hardcode_action=immediate
9263 fi
9264 else
9265 # We cannot hardcode anything, or else we can only hardcode existing
9266 # directories.
9267 hardcode_action=unsupported
9268 fi
9269 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9270 echo "${ECHO_T}$hardcode_action" >&6; }
9271
9272 if test "$hardcode_action" = relink; then
9273 # Fast installation is not supported
9274 enable_fast_install=no
9275 elif test "$shlibpath_overrides_runpath" = yes ||
9276 test "$enable_shared" = no; then
9277 # Fast installation is not necessary
9278 enable_fast_install=needless
9279 fi
9280
9281 striplib=
9282 old_striplib=
9283 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9284 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9285 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9287 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9288 { echo "$as_me:$LINENO: result: yes" >&5
9289 echo "${ECHO_T}yes" >&6; }
9290 else
9291 # FIXME - insert some real tests, host_os isn't really good enough
9292 case $host_os in
9293 darwin*)
9294 if test -n "$STRIP" ; then
9295 striplib="$STRIP -x"
9296 old_striplib="$STRIP -S"
9297 { echo "$as_me:$LINENO: result: yes" >&5
9298 echo "${ECHO_T}yes" >&6; }
9299 else
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9302 fi
9303 ;;
9304 *)
9305 { echo "$as_me:$LINENO: result: no" >&5
9306 echo "${ECHO_T}no" >&6; }
9307 ;;
9308 esac
9309 fi
9310
9311 if test "x$enable_dlopen" != xyes; then
9312 enable_dlopen=unknown
9313 enable_dlopen_self=unknown
9314 enable_dlopen_self_static=unknown
9315 else
9316 lt_cv_dlopen=no
9317 lt_cv_dlopen_libs=
9318
9319 case $host_os in
9320 beos*)
9321 lt_cv_dlopen="load_add_on"
9322 lt_cv_dlopen_libs=
9323 lt_cv_dlopen_self=yes
9324 ;;
9325
9326 mingw* | pw32*)
9327 lt_cv_dlopen="LoadLibrary"
9328 lt_cv_dlopen_libs=
9329 ;;
9330
9331 cygwin*)
9332 lt_cv_dlopen="dlopen"
9333 lt_cv_dlopen_libs=
9334 ;;
9335
9336 darwin*)
9337 # if libdl is installed we need to link against it
9338 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9339 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 ac_check_lib_save_LIBS=$LIBS
9344 LIBS="-ldl $LIBS"
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h. */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char dlopen ();
9359 int
9360 main ()
9361 {
9362 return dlopen ();
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (ac_try="$ac_link"
9369 case "(($ac_try" in
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_link") 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest$ac_exeext &&
9384 $as_test_x conftest$ac_exeext; then
9385 ac_cv_lib_dl_dlopen=yes
9386 else
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 ac_cv_lib_dl_dlopen=no
9391 fi
9392
9393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9394 conftest$ac_exeext conftest.$ac_ext
9395 LIBS=$ac_check_lib_save_LIBS
9396 fi
9397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9399 if test $ac_cv_lib_dl_dlopen = yes; then
9400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9401 else
9402
9403 lt_cv_dlopen="dyld"
9404 lt_cv_dlopen_libs=
9405 lt_cv_dlopen_self=yes
9406
9407 fi
9408
9409 ;;
9410
9411 *)
9412 { echo "$as_me:$LINENO: checking for shl_load" >&5
9413 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9414 if test "${ac_cv_func_shl_load+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h. */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9423 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9425 #define shl_load innocuous_shl_load
9426
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char shl_load (); below.
9429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9430 <limits.h> exists even on freestanding compilers. */
9431
9432 #ifdef __STDC__
9433 # include <limits.h>
9434 #else
9435 # include <assert.h>
9436 #endif
9437
9438 #undef shl_load
9439
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char shl_load ();
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined __stub_shl_load || defined __stub___shl_load
9451 choke me
9452 #endif
9453
9454 int
9455 main ()
9456 {
9457 return shl_load ();
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (ac_try="$ac_link"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_link") 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest$ac_exeext &&
9479 $as_test_x conftest$ac_exeext; then
9480 ac_cv_func_shl_load=yes
9481 else
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_func_shl_load=no
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9489 conftest$ac_exeext conftest.$ac_ext
9490 fi
9491 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9492 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9493 if test $ac_cv_func_shl_load = yes; then
9494 lt_cv_dlopen="shl_load"
9495 else
9496 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9497 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9498 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 ac_check_lib_save_LIBS=$LIBS
9502 LIBS="-ldld $LIBS"
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 char shl_load ();
9517 int
9518 main ()
9519 {
9520 return shl_load ();
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_lib_dld_shl_load=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_cv_lib_dld_shl_load=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9554 fi
9555 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9556 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9557 if test $ac_cv_lib_dld_shl_load = yes; then
9558 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9559 else
9560 { echo "$as_me:$LINENO: checking for dlopen" >&5
9561 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9562 if test "${ac_cv_func_dlopen+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h. */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9573 #define dlopen innocuous_dlopen
9574
9575 /* System header to define __stub macros and hopefully few prototypes,
9576 which can conflict with char dlopen (); below.
9577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9578 <limits.h> exists even on freestanding compilers. */
9579
9580 #ifdef __STDC__
9581 # include <limits.h>
9582 #else
9583 # include <assert.h>
9584 #endif
9585
9586 #undef dlopen
9587
9588 /* Override any GCC internal prototype to avoid an error.
9589 Use char because int might match the return type of a GCC
9590 builtin and then its argument prototype would still apply. */
9591 #ifdef __cplusplus
9592 extern "C"
9593 #endif
9594 char dlopen ();
9595 /* The GNU C library defines this for functions which it implements
9596 to always fail with ENOSYS. Some functions are actually named
9597 something starting with __ and the normal name is an alias. */
9598 #if defined __stub_dlopen || defined __stub___dlopen
9599 choke me
9600 #endif
9601
9602 int
9603 main ()
9604 {
9605 return dlopen ();
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext &&
9627 $as_test_x conftest$ac_exeext; then
9628 ac_cv_func_dlopen=yes
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 ac_cv_func_dlopen=no
9634 fi
9635
9636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638 fi
9639 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9640 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9641 if test $ac_cv_func_dlopen = yes; then
9642 lt_cv_dlopen="dlopen"
9643 else
9644 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-ldl $LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657
9658 /* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 char dlopen ();
9665 int
9666 main ()
9667 {
9668 return dlopen ();
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_lib_dl_dlopen=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_cv_lib_dl_dlopen=no
9697 fi
9698
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9702 fi
9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9705 if test $ac_cv_lib_dl_dlopen = yes; then
9706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9707 else
9708 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9709 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lsvld $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char dlopen ();
9729 int
9730 main ()
9731 {
9732 return dlopen ();
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
9755 ac_cv_lib_svld_dlopen=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_cv_lib_svld_dlopen=no
9761 fi
9762
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9766 fi
9767 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9768 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9769 if test $ac_cv_lib_svld_dlopen = yes; then
9770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9771 else
9772 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9773 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9774 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 ac_check_lib_save_LIBS=$LIBS
9778 LIBS="-ldld $LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char dld_link ();
9793 int
9794 main ()
9795 {
9796 return dld_link ();
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9803 case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } && {
9815 test -z "$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 } && test -s conftest$ac_exeext &&
9818 $as_test_x conftest$ac_exeext; then
9819 ac_cv_lib_dld_dld_link=yes
9820 else
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_cv_lib_dld_dld_link=no
9825 fi
9826
9827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9828 conftest$ac_exeext conftest.$ac_ext
9829 LIBS=$ac_check_lib_save_LIBS
9830 fi
9831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9832 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9833 if test $ac_cv_lib_dld_dld_link = yes; then
9834 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9835 fi
9836
9837
9838 fi
9839
9840
9841 fi
9842
9843
9844 fi
9845
9846
9847 fi
9848
9849
9850 fi
9851
9852 ;;
9853 esac
9854
9855 if test "x$lt_cv_dlopen" != xno; then
9856 enable_dlopen=yes
9857 else
9858 enable_dlopen=no
9859 fi
9860
9861 case $lt_cv_dlopen in
9862 dlopen)
9863 save_CPPFLAGS="$CPPFLAGS"
9864 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9865
9866 save_LDFLAGS="$LDFLAGS"
9867 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9868
9869 save_LIBS="$LIBS"
9870 LIBS="$lt_cv_dlopen_libs $LIBS"
9871
9872 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9873 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9874 if test "${lt_cv_dlopen_self+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877 if test "$cross_compiling" = yes; then :
9878 lt_cv_dlopen_self=cross
9879 else
9880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9881 lt_status=$lt_dlunknown
9882 cat > conftest.$ac_ext <<EOF
9883 #line 9883 "configure"
9884 #include "confdefs.h"
9885
9886 #if HAVE_DLFCN_H
9887 #include <dlfcn.h>
9888 #endif
9889
9890 #include <stdio.h>
9891
9892 #ifdef RTLD_GLOBAL
9893 # define LT_DLGLOBAL RTLD_GLOBAL
9894 #else
9895 # ifdef DL_GLOBAL
9896 # define LT_DLGLOBAL DL_GLOBAL
9897 # else
9898 # define LT_DLGLOBAL 0
9899 # endif
9900 #endif
9901
9902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9903 find out it does not work in some platform. */
9904 #ifndef LT_DLLAZY_OR_NOW
9905 # ifdef RTLD_LAZY
9906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9907 # else
9908 # ifdef DL_LAZY
9909 # define LT_DLLAZY_OR_NOW DL_LAZY
9910 # else
9911 # ifdef RTLD_NOW
9912 # define LT_DLLAZY_OR_NOW RTLD_NOW
9913 # else
9914 # ifdef DL_NOW
9915 # define LT_DLLAZY_OR_NOW DL_NOW
9916 # else
9917 # define LT_DLLAZY_OR_NOW 0
9918 # endif
9919 # endif
9920 # endif
9921 # endif
9922 #endif
9923
9924 #ifdef __cplusplus
9925 extern "C" void exit (int);
9926 #endif
9927
9928 void fnord() { int i=42;}
9929 int main ()
9930 {
9931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9932 int status = $lt_dlunknown;
9933
9934 if (self)
9935 {
9936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9937 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9938 /* dlclose (self); */
9939 }
9940 else
9941 puts (dlerror ());
9942
9943 exit (status);
9944 }
9945 EOF
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9951 (./conftest; exit; ) >&5 2>/dev/null
9952 lt_status=$?
9953 case x$lt_status in
9954 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9955 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9956 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9957 esac
9958 else :
9959 # compilation failed
9960 lt_cv_dlopen_self=no
9961 fi
9962 fi
9963 rm -fr conftest*
9964
9965
9966 fi
9967 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9968 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9969
9970 if test "x$lt_cv_dlopen_self" = xyes; then
9971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9972 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9973 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9974 if test "${lt_cv_dlopen_self_static+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 if test "$cross_compiling" = yes; then :
9978 lt_cv_dlopen_self_static=cross
9979 else
9980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9981 lt_status=$lt_dlunknown
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9983 "configure"
9984 #include "confdefs.h"
9985
9986 #if HAVE_DLFCN_H
9987 #include <dlfcn.h>
9988 #endif
9989
9990 #include <stdio.h>
9991
9992 #ifdef RTLD_GLOBAL
9993 # define LT_DLGLOBAL RTLD_GLOBAL
9994 #else
9995 # ifdef DL_GLOBAL
9996 # define LT_DLGLOBAL DL_GLOBAL
9997 # else
9998 # define LT_DLGLOBAL 0
9999 # endif
10000 #endif
10001
10002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10003 find out it does not work in some platform. */
10004 #ifndef LT_DLLAZY_OR_NOW
10005 # ifdef RTLD_LAZY
10006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10007 # else
10008 # ifdef DL_LAZY
10009 # define LT_DLLAZY_OR_NOW DL_LAZY
10010 # else
10011 # ifdef RTLD_NOW
10012 # define LT_DLLAZY_OR_NOW RTLD_NOW
10013 # else
10014 # ifdef DL_NOW
10015 # define LT_DLLAZY_OR_NOW DL_NOW
10016 # else
10017 # define LT_DLLAZY_OR_NOW 0
10018 # endif
10019 # endif
10020 # endif
10021 # endif
10022 #endif
10023
10024 #ifdef __cplusplus
10025 extern "C" void exit (int);
10026 #endif
10027
10028 void fnord() { int i=42;}
10029 int main ()
10030 {
10031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10032 int status = $lt_dlunknown;
10033
10034 if (self)
10035 {
10036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10038 /* dlclose (self); */
10039 }
10040 else
10041 puts (dlerror ());
10042
10043 exit (status);
10044 }
10045 EOF
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10051 (./conftest; exit; ) >&5 2>/dev/null
10052 lt_status=$?
10053 case x$lt_status in
10054 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10055 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10056 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10057 esac
10058 else :
10059 # compilation failed
10060 lt_cv_dlopen_self_static=no
10061 fi
10062 fi
10063 rm -fr conftest*
10064
10065
10066 fi
10067 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10068 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10069 fi
10070
10071 CPPFLAGS="$save_CPPFLAGS"
10072 LDFLAGS="$save_LDFLAGS"
10073 LIBS="$save_LIBS"
10074 ;;
10075 esac
10076
10077 case $lt_cv_dlopen_self in
10078 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10079 *) enable_dlopen_self=unknown ;;
10080 esac
10081
10082 case $lt_cv_dlopen_self_static in
10083 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10084 *) enable_dlopen_self_static=unknown ;;
10085 esac
10086 fi
10087
10088
10089 # Report which library types will actually be built
10090 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10091 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10092 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10093 echo "${ECHO_T}$can_build_shared" >&6; }
10094
10095 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10096 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10097 test "$can_build_shared" = "no" && enable_shared=no
10098
10099 # On AIX, shared libraries and static libraries use the same namespace, and
10100 # are all built from PIC.
10101 case $host_os in
10102 aix3*)
10103 test "$enable_shared" = yes && enable_static=no
10104 if test -n "$RANLIB"; then
10105 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10106 postinstall_cmds='$RANLIB $lib'
10107 fi
10108 ;;
10109
10110 aix4* | aix5*)
10111 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10112 test "$enable_shared" = yes && enable_static=no
10113 fi
10114 ;;
10115 esac
10116 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10117 echo "${ECHO_T}$enable_shared" >&6; }
10118
10119 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10120 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10121 # Make sure either enable_shared or enable_static is yes.
10122 test "$enable_shared" = yes || enable_static=yes
10123 { echo "$as_me:$LINENO: result: $enable_static" >&5
10124 echo "${ECHO_T}$enable_static" >&6; }
10125
10126 # The else clause should only fire when bootstrapping the
10127 # libtool distribution, otherwise you forgot to ship ltmain.sh
10128 # with your package, and you will get complaints that there are
10129 # no rules to generate ltmain.sh.
10130 if test -f "$ltmain"; then
10131 # See if we are running on zsh, and set the options which allow our commands through
10132 # without removal of \ escapes.
10133 if test -n "${ZSH_VERSION+set}" ; then
10134 setopt NO_GLOB_SUBST
10135 fi
10136 # Now quote all the things that may contain metacharacters while being
10137 # careful not to overquote the AC_SUBSTed values. We take copies of the
10138 # variables and quote the copies for generation of the libtool script.
10139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10140 SED SHELL STRIP \
10141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10143 deplibs_check_method reload_flag reload_cmds need_locks \
10144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10145 lt_cv_sys_global_symbol_to_c_name_address \
10146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10147 old_postinstall_cmds old_postuninstall_cmds \
10148 compiler \
10149 CC \
10150 LD \
10151 lt_prog_compiler_wl \
10152 lt_prog_compiler_pic \
10153 lt_prog_compiler_static \
10154 lt_prog_compiler_no_builtin_flag \
10155 export_dynamic_flag_spec \
10156 thread_safe_flag_spec \
10157 whole_archive_flag_spec \
10158 enable_shared_with_static_runtimes \
10159 old_archive_cmds \
10160 old_archive_from_new_cmds \
10161 predep_objects \
10162 postdep_objects \
10163 predeps \
10164 postdeps \
10165 compiler_lib_search_path \
10166 archive_cmds \
10167 archive_expsym_cmds \
10168 postinstall_cmds \
10169 postuninstall_cmds \
10170 old_archive_from_expsyms_cmds \
10171 allow_undefined_flag \
10172 no_undefined_flag \
10173 export_symbols_cmds \
10174 hardcode_libdir_flag_spec \
10175 hardcode_libdir_flag_spec_ld \
10176 hardcode_libdir_separator \
10177 hardcode_automatic \
10178 module_cmds \
10179 module_expsym_cmds \
10180 lt_cv_prog_compiler_c_o \
10181 fix_srcfile_path \
10182 exclude_expsyms \
10183 include_expsyms; do
10184
10185 case $var in
10186 old_archive_cmds | \
10187 old_archive_from_new_cmds | \
10188 archive_cmds | \
10189 archive_expsym_cmds | \
10190 module_cmds | \
10191 module_expsym_cmds | \
10192 old_archive_from_expsyms_cmds | \
10193 export_symbols_cmds | \
10194 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10195 postinstall_cmds | postuninstall_cmds | \
10196 old_postinstall_cmds | old_postuninstall_cmds | \
10197 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10198 # Double-quote double-evaled strings.
10199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10200 ;;
10201 *)
10202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10203 ;;
10204 esac
10205 done
10206
10207 case $lt_echo in
10208 *'\$0 --fallback-echo"')
10209 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10210 ;;
10211 esac
10212
10213 cfgfile="${ofile}T"
10214 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10215 $rm -f "$cfgfile"
10216 { echo "$as_me:$LINENO: creating $ofile" >&5
10217 echo "$as_me: creating $ofile" >&6;}
10218
10219 cat <<__EOF__ >> "$cfgfile"
10220 #! $SHELL
10221
10222 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10223 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10224 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10225 #
10226 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10227 # Free Software Foundation, Inc.
10228 #
10229 # This file is part of GNU Libtool:
10230 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10231 #
10232 # This program is free software; you can redistribute it and/or modify
10233 # it under the terms of the GNU General Public License as published by
10234 # the Free Software Foundation; either version 2 of the License, or
10235 # (at your option) any later version.
10236 #
10237 # This program is distributed in the hope that it will be useful, but
10238 # WITHOUT ANY WARRANTY; without even the implied warranty of
10239 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10240 # General Public License for more details.
10241 #
10242 # You should have received a copy of the GNU General Public License
10243 # along with this program; if not, write to the Free Software
10244 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10245 #
10246 # As a special exception to the GNU General Public License, if you
10247 # distribute this file as part of a program that contains a
10248 # configuration script generated by Autoconf, you may include it under
10249 # the same distribution terms that you use for the rest of that program.
10250
10251 # A sed program that does not truncate output.
10252 SED=$lt_SED
10253
10254 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10255 Xsed="$SED -e 1s/^X//"
10256
10257 # The HP-UX ksh and POSIX shell print the target directory to stdout
10258 # if CDPATH is set.
10259 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10260
10261 # The names of the tagged configurations supported by this script.
10262 available_tags=
10263
10264 # ### BEGIN LIBTOOL CONFIG
10265
10266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10267
10268 # Shell to use when invoking shell scripts.
10269 SHELL=$lt_SHELL
10270
10271 # Whether or not to build shared libraries.
10272 build_libtool_libs=$enable_shared
10273
10274 # Whether or not to build static libraries.
10275 build_old_libs=$enable_static
10276
10277 # Whether or not to add -lc for building shared libraries.
10278 build_libtool_need_lc=$archive_cmds_need_lc
10279
10280 # Whether or not to disallow shared libs when runtime libs are static
10281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10282
10283 # Whether or not to optimize for fast installation.
10284 fast_install=$enable_fast_install
10285
10286 # The host system.
10287 host_alias=$host_alias
10288 host=$host
10289 host_os=$host_os
10290
10291 # The build system.
10292 build_alias=$build_alias
10293 build=$build
10294 build_os=$build_os
10295
10296 # An echo program that does not interpret backslashes.
10297 echo=$lt_echo
10298
10299 # The archiver.
10300 AR=$lt_AR
10301 AR_FLAGS=$lt_AR_FLAGS
10302
10303 # A C compiler.
10304 LTCC=$lt_LTCC
10305
10306 # LTCC compiler flags.
10307 LTCFLAGS=$lt_LTCFLAGS
10308
10309 # A language-specific compiler.
10310 CC=$lt_compiler
10311
10312 # Is the compiler the GNU C compiler?
10313 with_gcc=$GCC
10314
10315 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10316 gcc_ver=\`gcc -dumpversion\`
10317
10318 # An ERE matcher.
10319 EGREP=$lt_EGREP
10320
10321 # The linker used to build libraries.
10322 LD=$lt_LD
10323
10324 # Whether we need hard or soft links.
10325 LN_S=$lt_LN_S
10326
10327 # A BSD-compatible nm program.
10328 NM=$lt_NM
10329
10330 # A symbol stripping program
10331 STRIP=$lt_STRIP
10332
10333 # Used to examine libraries when file_magic_cmd begins "file"
10334 MAGIC_CMD=$MAGIC_CMD
10335
10336 # Used on cygwin: DLL creation program.
10337 DLLTOOL="$DLLTOOL"
10338
10339 # Used on cygwin: object dumper.
10340 OBJDUMP="$OBJDUMP"
10341
10342 # Used on cygwin: assembler.
10343 AS="$AS"
10344
10345 # The name of the directory that contains temporary libtool files.
10346 objdir=$objdir
10347
10348 # How to create reloadable object files.
10349 reload_flag=$lt_reload_flag
10350 reload_cmds=$lt_reload_cmds
10351
10352 # How to pass a linker flag through the compiler.
10353 wl=$lt_lt_prog_compiler_wl
10354
10355 # Object file suffix (normally "o").
10356 objext="$ac_objext"
10357
10358 # Old archive suffix (normally "a").
10359 libext="$libext"
10360
10361 # Shared library suffix (normally ".so").
10362 shrext_cmds='$shrext_cmds'
10363
10364 # Executable file suffix (normally "").
10365 exeext="$exeext"
10366
10367 # Additional compiler flags for building library objects.
10368 pic_flag=$lt_lt_prog_compiler_pic
10369 pic_mode=$pic_mode
10370
10371 # What is the maximum length of a command?
10372 max_cmd_len=$lt_cv_sys_max_cmd_len
10373
10374 # Does compiler simultaneously support -c and -o options?
10375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10376
10377 # Must we lock files when doing compilation?
10378 need_locks=$lt_need_locks
10379
10380 # Do we need the lib prefix for modules?
10381 need_lib_prefix=$need_lib_prefix
10382
10383 # Do we need a version for libraries?
10384 need_version=$need_version
10385
10386 # Whether dlopen is supported.
10387 dlopen_support=$enable_dlopen
10388
10389 # Whether dlopen of programs is supported.
10390 dlopen_self=$enable_dlopen_self
10391
10392 # Whether dlopen of statically linked programs is supported.
10393 dlopen_self_static=$enable_dlopen_self_static
10394
10395 # Compiler flag to prevent dynamic linking.
10396 link_static_flag=$lt_lt_prog_compiler_static
10397
10398 # Compiler flag to turn off builtin functions.
10399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10400
10401 # Compiler flag to allow reflexive dlopens.
10402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10403
10404 # Compiler flag to generate shared objects directly from archives.
10405 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10406
10407 # Compiler flag to generate thread-safe objects.
10408 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10409
10410 # Library versioning type.
10411 version_type=$version_type
10412
10413 # Format of library name prefix.
10414 libname_spec=$lt_libname_spec
10415
10416 # List of archive names. First name is the real one, the rest are links.
10417 # The last name is the one that the linker finds with -lNAME.
10418 library_names_spec=$lt_library_names_spec
10419
10420 # The coded name of the library, if different from the real name.
10421 soname_spec=$lt_soname_spec
10422
10423 # Commands used to build and install an old-style archive.
10424 RANLIB=$lt_RANLIB
10425 old_archive_cmds=$lt_old_archive_cmds
10426 old_postinstall_cmds=$lt_old_postinstall_cmds
10427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10428
10429 # Create an old-style archive from a shared archive.
10430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10431
10432 # Create a temporary old-style archive to link instead of a shared archive.
10433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10434
10435 # Commands used to build and install a shared archive.
10436 archive_cmds=$lt_archive_cmds
10437 archive_expsym_cmds=$lt_archive_expsym_cmds
10438 postinstall_cmds=$lt_postinstall_cmds
10439 postuninstall_cmds=$lt_postuninstall_cmds
10440
10441 # Commands used to build a loadable module (assumed same as above if empty)
10442 module_cmds=$lt_module_cmds
10443 module_expsym_cmds=$lt_module_expsym_cmds
10444
10445 # Commands to strip libraries.
10446 old_striplib=$lt_old_striplib
10447 striplib=$lt_striplib
10448
10449 # Dependencies to place before the objects being linked to create a
10450 # shared library.
10451 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10452
10453 # Dependencies to place after the objects being linked to create a
10454 # shared library.
10455 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10456
10457 # Dependencies to place before the objects being linked to create a
10458 # shared library.
10459 predeps=$lt_predeps
10460
10461 # Dependencies to place after the objects being linked to create a
10462 # shared library.
10463 postdeps=$lt_postdeps
10464
10465 # The library search path used internally by the compiler when linking
10466 # a shared library.
10467 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10468
10469 # Method to check whether dependent libraries are shared objects.
10470 deplibs_check_method=$lt_deplibs_check_method
10471
10472 # Command to use when deplibs_check_method == file_magic.
10473 file_magic_cmd=$lt_file_magic_cmd
10474
10475 # Flag that allows shared libraries with undefined symbols to be built.
10476 allow_undefined_flag=$lt_allow_undefined_flag
10477
10478 # Flag that forces no undefined symbols.
10479 no_undefined_flag=$lt_no_undefined_flag
10480
10481 # Commands used to finish a libtool library installation in a directory.
10482 finish_cmds=$lt_finish_cmds
10483
10484 # Same as above, but a single script fragment to be evaled but not shown.
10485 finish_eval=$lt_finish_eval
10486
10487 # Take the output of nm and produce a listing of raw symbols and C names.
10488 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10489
10490 # Transform the output of nm in a proper C declaration
10491 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10492
10493 # Transform the output of nm in a C name address pair
10494 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10495
10496 # This is the shared library runtime path variable.
10497 runpath_var=$runpath_var
10498
10499 # This is the shared library path variable.
10500 shlibpath_var=$shlibpath_var
10501
10502 # Is shlibpath searched before the hard-coded library search path?
10503 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10504
10505 # How to hardcode a shared library path into an executable.
10506 hardcode_action=$hardcode_action
10507
10508 # Whether we should hardcode library paths into libraries.
10509 hardcode_into_libs=$hardcode_into_libs
10510
10511 # Flag to hardcode \$libdir into a binary during linking.
10512 # This must work even if \$libdir does not exist.
10513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10514
10515 # If ld is used when linking, flag to hardcode \$libdir into
10516 # a binary during linking. This must work even if \$libdir does
10517 # not exist.
10518 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10519
10520 # Whether we need a single -rpath flag with a separated argument.
10521 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10522
10523 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10524 # resulting binary.
10525 hardcode_direct=$hardcode_direct
10526
10527 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10528 # resulting binary.
10529 hardcode_minus_L=$hardcode_minus_L
10530
10531 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10532 # the resulting binary.
10533 hardcode_shlibpath_var=$hardcode_shlibpath_var
10534
10535 # Set to yes if building a shared library automatically hardcodes DIR into the library
10536 # and all subsequent libraries and executables linked against it.
10537 hardcode_automatic=$hardcode_automatic
10538
10539 # Variables whose values should be saved in libtool wrapper scripts and
10540 # restored at relink time.
10541 variables_saved_for_relink="$variables_saved_for_relink"
10542
10543 # Whether libtool must link a program against all its dependency libraries.
10544 link_all_deplibs=$link_all_deplibs
10545
10546 # Compile-time system search path for libraries
10547 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10548
10549 # Run-time system search path for libraries
10550 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10551
10552 # Fix the shell variable \$srcfile for the compiler.
10553 fix_srcfile_path=$lt_fix_srcfile_path
10554
10555 # Set to yes if exported symbols are required.
10556 always_export_symbols=$always_export_symbols
10557
10558 # The commands to list exported symbols.
10559 export_symbols_cmds=$lt_export_symbols_cmds
10560
10561 # The commands to extract the exported symbol list from a shared archive.
10562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10563
10564 # Symbols that should not be listed in the preloaded symbols.
10565 exclude_expsyms=$lt_exclude_expsyms
10566
10567 # Symbols that must always be exported.
10568 include_expsyms=$lt_include_expsyms
10569
10570 # ### END LIBTOOL CONFIG
10571
10572 __EOF__
10573
10574
10575 case $host_os in
10576 aix3*)
10577 cat <<\EOF >> "$cfgfile"
10578
10579 # AIX sometimes has problems with the GCC collect2 program. For some
10580 # reason, if we set the COLLECT_NAMES environment variable, the problems
10581 # vanish in a puff of smoke.
10582 if test "X${COLLECT_NAMES+set}" != Xset; then
10583 COLLECT_NAMES=
10584 export COLLECT_NAMES
10585 fi
10586 EOF
10587 ;;
10588 esac
10589
10590 # We use sed instead of cat because bash on DJGPP gets confused if
10591 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10592 # text mode, it properly converts lines to CR/LF. This bash problem
10593 # is reportedly fixed, but why not run on old versions too?
10594 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10595
10596 mv -f "$cfgfile" "$ofile" || \
10597 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10598 chmod +x "$ofile"
10599
10600 else
10601 # If there is no Makefile yet, we rely on a make rule to execute
10602 # `config.status --recheck' to rerun these tests and create the
10603 # libtool script then.
10604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10605 if test -f "$ltmain_in"; then
10606 test -f Makefile && make "$ltmain"
10607 fi
10608 fi
10609
10610
10611 ac_ext=c
10612 ac_cpp='$CPP $CPPFLAGS'
10613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10616
10617 CC="$lt_save_CC"
10618
10619
10620 # Check whether --with-tags was given.
10621 if test "${with_tags+set}" = set; then
10622 withval=$with_tags; tagnames="$withval"
10623 fi
10624
10625
10626 if test -f "$ltmain" && test -n "$tagnames"; then
10627 if test ! -f "${ofile}"; then
10628 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10629 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10630 fi
10631
10632 if test -z "$LTCC"; then
10633 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10634 if test -z "$LTCC"; then
10635 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10636 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10637 else
10638 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10639 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10640 fi
10641 fi
10642 if test -z "$LTCFLAGS"; then
10643 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10644 fi
10645
10646 # Extract list of available tagged configurations in $ofile.
10647 # Note that this assumes the entire list is on one line.
10648 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10649
10650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10651 for tagname in $tagnames; do
10652 IFS="$lt_save_ifs"
10653 # Check whether tagname contains only valid characters
10654 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10655 "") ;;
10656 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10657 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10658 { (exit 1); exit 1; }; }
10659 ;;
10660 esac
10661
10662 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10663 then
10664 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10665 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10666 { (exit 1); exit 1; }; }
10667 fi
10668
10669 # Update the list of available tags.
10670 if test -n "$tagname"; then
10671 echo appending configuration tag \"$tagname\" to $ofile
10672
10673 case $tagname in
10674 CXX)
10675 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10676 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10677 (test "X$CXX" != "Xg++"))) ; then
10678 ac_ext=cpp
10679 ac_cpp='$CXXCPP $CPPFLAGS'
10680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10683
10684
10685
10686
10687 archive_cmds_need_lc_CXX=no
10688 allow_undefined_flag_CXX=
10689 always_export_symbols_CXX=no
10690 archive_expsym_cmds_CXX=
10691 export_dynamic_flag_spec_CXX=
10692 hardcode_direct_CXX=no
10693 hardcode_libdir_flag_spec_CXX=
10694 hardcode_libdir_flag_spec_ld_CXX=
10695 hardcode_libdir_separator_CXX=
10696 hardcode_minus_L_CXX=no
10697 hardcode_shlibpath_var_CXX=unsupported
10698 hardcode_automatic_CXX=no
10699 module_cmds_CXX=
10700 module_expsym_cmds_CXX=
10701 link_all_deplibs_CXX=unknown
10702 old_archive_cmds_CXX=$old_archive_cmds
10703 no_undefined_flag_CXX=
10704 whole_archive_flag_spec_CXX=
10705 enable_shared_with_static_runtimes_CXX=no
10706
10707 # Dependencies to place before and after the object being linked:
10708 predep_objects_CXX=
10709 postdep_objects_CXX=
10710 predeps_CXX=
10711 postdeps_CXX=
10712 compiler_lib_search_path_CXX=
10713
10714 # Source file extension for C++ test sources.
10715 ac_ext=cpp
10716
10717 # Object file extension for compiled C++ test sources.
10718 objext=o
10719 objext_CXX=$objext
10720
10721 # Code to be used in simple compile tests
10722 lt_simple_compile_test_code="int some_variable = 0;"
10723
10724 # Code to be used in simple link tests
10725 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10726
10727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10728
10729 # If no C compiler was specified, use CC.
10730 LTCC=${LTCC-"$CC"}
10731
10732 # If no C compiler flags were specified, use CFLAGS.
10733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10734
10735 # Allow CC to be a program name with arguments.
10736 compiler=$CC
10737
10738
10739 # save warnings/boilerplate of simple test code
10740 ac_outfile=conftest.$ac_objext
10741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10743 _lt_compiler_boilerplate=`cat conftest.err`
10744 $rm conftest*
10745
10746 ac_outfile=conftest.$ac_objext
10747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10749 _lt_linker_boilerplate=`cat conftest.err`
10750 $rm conftest*
10751
10752
10753 # Allow CC to be a program name with arguments.
10754 lt_save_CC=$CC
10755 lt_save_LD=$LD
10756 lt_save_GCC=$GCC
10757 GCC=$GXX
10758 lt_save_with_gnu_ld=$with_gnu_ld
10759 lt_save_path_LD=$lt_cv_path_LD
10760 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10761 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10762 else
10763 $as_unset lt_cv_prog_gnu_ld
10764 fi
10765 if test -n "${lt_cv_path_LDCXX+set}"; then
10766 lt_cv_path_LD=$lt_cv_path_LDCXX
10767 else
10768 $as_unset lt_cv_path_LD
10769 fi
10770 test -z "${LDCXX+set}" || LD=$LDCXX
10771 CC=${CXX-"c++"}
10772 compiler=$CC
10773 compiler_CXX=$CC
10774 for cc_temp in $compiler""; do
10775 case $cc_temp in
10776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10778 \-*) ;;
10779 *) break;;
10780 esac
10781 done
10782 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10783
10784
10785 # We don't want -fno-exception wen compiling C++ code, so set the
10786 # no_builtin_flag separately
10787 if test "$GXX" = yes; then
10788 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10789 else
10790 lt_prog_compiler_no_builtin_flag_CXX=
10791 fi
10792
10793 if test "$GXX" = yes; then
10794 # Set up default GNU C++ configuration
10795
10796
10797 # Check whether --with-gnu-ld was given.
10798 if test "${with_gnu_ld+set}" = set; then
10799 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10800 else
10801 with_gnu_ld=no
10802 fi
10803
10804 ac_prog=ld
10805 if test "$GCC" = yes; then
10806 # Check if gcc -print-prog-name=ld gives a path.
10807 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10808 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10809 case $host in
10810 *-*-mingw*)
10811 # gcc leaves a trailing carriage return which upsets mingw
10812 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10813 *)
10814 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10815 esac
10816 case $ac_prog in
10817 # Accept absolute paths.
10818 [\\/]* | ?:[\\/]*)
10819 re_direlt='/[^/][^/]*/\.\./'
10820 # Canonicalize the pathname of ld
10821 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10822 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10823 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10824 done
10825 test -z "$LD" && LD="$ac_prog"
10826 ;;
10827 "")
10828 # If it fails, then pretend we aren't using GCC.
10829 ac_prog=ld
10830 ;;
10831 *)
10832 # If it is relative, then search for the first ld in PATH.
10833 with_gnu_ld=unknown
10834 ;;
10835 esac
10836 elif test "$with_gnu_ld" = yes; then
10837 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10838 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10839 else
10840 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10841 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10842 fi
10843 if test "${lt_cv_path_LD+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 if test -z "$LD"; then
10847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10848 for ac_dir in $PATH; do
10849 IFS="$lt_save_ifs"
10850 test -z "$ac_dir" && ac_dir=.
10851 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10852 lt_cv_path_LD="$ac_dir/$ac_prog"
10853 # Check to see if the program is GNU ld. I'd rather use --version,
10854 # but apparently some variants of GNU ld only accept -v.
10855 # Break only if it was the GNU/non-GNU ld that we prefer.
10856 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10857 *GNU* | *'with BFD'*)
10858 test "$with_gnu_ld" != no && break
10859 ;;
10860 *)
10861 test "$with_gnu_ld" != yes && break
10862 ;;
10863 esac
10864 fi
10865 done
10866 IFS="$lt_save_ifs"
10867 else
10868 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10869 fi
10870 fi
10871
10872 LD="$lt_cv_path_LD"
10873 if test -n "$LD"; then
10874 { echo "$as_me:$LINENO: result: $LD" >&5
10875 echo "${ECHO_T}$LD" >&6; }
10876 else
10877 { echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6; }
10879 fi
10880 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10881 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10882 { (exit 1); exit 1; }; }
10883 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10884 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10885 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10889 case `$LD -v 2>&1 </dev/null` in
10890 *GNU* | *'with BFD'*)
10891 lt_cv_prog_gnu_ld=yes
10892 ;;
10893 *)
10894 lt_cv_prog_gnu_ld=no
10895 ;;
10896 esac
10897 fi
10898 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10899 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10900 with_gnu_ld=$lt_cv_prog_gnu_ld
10901
10902
10903
10904 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10905 # archiving commands below assume that GNU ld is being used.
10906 if test "$with_gnu_ld" = yes; then
10907 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10908 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'
10909
10910 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10912
10913 # If archive_cmds runs LD, not CC, wlarc should be empty
10914 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10915 # investigate it a little bit more. (MM)
10916 wlarc='${wl}'
10917
10918 # ancient GNU ld didn't support --whole-archive et. al.
10919 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10920 grep 'no-whole-archive' > /dev/null; then
10921 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10922 else
10923 whole_archive_flag_spec_CXX=
10924 fi
10925 else
10926 with_gnu_ld=no
10927 wlarc=
10928
10929 # A generic and very simple default shared library creation
10930 # command for GNU C++ for the case where it uses the native
10931 # linker, instead of GNU ld. If possible, this setting should
10932 # overridden to take advantage of the native linker features on
10933 # the platform it is being used on.
10934 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10935 fi
10936
10937 # Commands to make compiler produce verbose output that lists
10938 # what "hidden" libraries, object files and flags are used when
10939 # linking a shared library.
10940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10941
10942 else
10943 GXX=no
10944 with_gnu_ld=no
10945 wlarc=
10946 fi
10947
10948 # PORTME: fill in a description of your system's C++ link characteristics
10949 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10950 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10951 ld_shlibs_CXX=yes
10952 case $host_os in
10953 aix3*)
10954 # FIXME: insert proper C++ library support
10955 ld_shlibs_CXX=no
10956 ;;
10957 aix4* | aix5*)
10958 if test "$host_cpu" = ia64; then
10959 # On IA64, the linker does run time linking by default, so we don't
10960 # have to do anything special.
10961 aix_use_runtimelinking=no
10962 exp_sym_flag='-Bexport'
10963 no_entry_flag=""
10964 else
10965 aix_use_runtimelinking=no
10966
10967 # Test if we are trying to use run time linking or normal
10968 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10969 # need to do runtime linking.
10970 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10971 for ld_flag in $LDFLAGS; do
10972 case $ld_flag in
10973 *-brtl*)
10974 aix_use_runtimelinking=yes
10975 break
10976 ;;
10977 esac
10978 done
10979 ;;
10980 esac
10981
10982 exp_sym_flag='-bexport'
10983 no_entry_flag='-bnoentry'
10984 fi
10985
10986 # When large executables or shared objects are built, AIX ld can
10987 # have problems creating the table of contents. If linking a library
10988 # or program results in "error TOC overflow" add -mminimal-toc to
10989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10991
10992 archive_cmds_CXX=''
10993 hardcode_direct_CXX=yes
10994 hardcode_libdir_separator_CXX=':'
10995 link_all_deplibs_CXX=yes
10996
10997 if test "$GXX" = yes; then
10998 case $host_os in aix4.[012]|aix4.[012].*)
10999 # We only want to do this on AIX 4.2 and lower, the check
11000 # below for broken collect2 doesn't work under 4.3+
11001 collect2name=`${CC} -print-prog-name=collect2`
11002 if test -f "$collect2name" && \
11003 strings "$collect2name" | grep resolve_lib_name >/dev/null
11004 then
11005 # We have reworked collect2
11006 :
11007 else
11008 # We have old collect2
11009 hardcode_direct_CXX=unsupported
11010 # It fails to find uninstalled libraries when the uninstalled
11011 # path is not listed in the libpath. Setting hardcode_minus_L
11012 # to unsupported forces relinking
11013 hardcode_minus_L_CXX=yes
11014 hardcode_libdir_flag_spec_CXX='-L$libdir'
11015 hardcode_libdir_separator_CXX=
11016 fi
11017 ;;
11018 esac
11019 shared_flag='-shared'
11020 if test "$aix_use_runtimelinking" = yes; then
11021 shared_flag="$shared_flag "'${wl}-G'
11022 fi
11023 else
11024 # not using gcc
11025 if test "$host_cpu" = ia64; then
11026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11027 # chokes on -Wl,-G. The following line is correct:
11028 shared_flag='-G'
11029 else
11030 if test "$aix_use_runtimelinking" = yes; then
11031 shared_flag='${wl}-G'
11032 else
11033 shared_flag='${wl}-bM:SRE'
11034 fi
11035 fi
11036 fi
11037
11038 # It seems that -bexpall does not export symbols beginning with
11039 # underscore (_), so it is better to generate a list of symbols to export.
11040 always_export_symbols_CXX=yes
11041 if test "$aix_use_runtimelinking" = yes; then
11042 # Warning - without using the other runtime loading flags (-brtl),
11043 # -berok will link without error, but may produce a broken library.
11044 allow_undefined_flag_CXX='-berok'
11045 # Determine the default libpath from the value encoded in an empty executable.
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052
11053 int
11054 main ()
11055 {
11056
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_cxx_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext &&
11078 $as_test_x conftest$ac_exeext; then
11079
11080 lt_aix_libpath_sed='
11081 /Import File Strings/,/^$/ {
11082 /^0/ {
11083 s/^0 *\(.*\)$/\1/
11084 p
11085 }
11086 }'
11087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11088 # Check for a 64-bit object if we didn't find anything.
11089 if test -z "$aix_libpath"; then
11090 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11091 fi
11092 else
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096
11097 fi
11098
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11102
11103 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11104
11105 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11106 else
11107 if test "$host_cpu" = ia64; then
11108 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11109 allow_undefined_flag_CXX="-z nodefs"
11110 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"
11111 else
11112 # Determine the default libpath from the value encoded in an empty executable.
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119
11120 int
11121 main ()
11122 {
11123
11124 ;
11125 return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_cxx_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest$ac_exeext &&
11145 $as_test_x conftest$ac_exeext; then
11146
11147 lt_aix_libpath_sed='
11148 /Import File Strings/,/^$/ {
11149 /^0/ {
11150 s/^0 *\(.*\)$/\1/
11151 p
11152 }
11153 }'
11154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11155 # Check for a 64-bit object if we didn't find anything.
11156 if test -z "$aix_libpath"; then
11157 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11158 fi
11159 else
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163
11164 fi
11165
11166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11167 conftest$ac_exeext conftest.$ac_ext
11168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11169
11170 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11171 # Warning - without using the other run time loading flags,
11172 # -berok will link without error, but may produce a broken library.
11173 no_undefined_flag_CXX=' ${wl}-bernotok'
11174 allow_undefined_flag_CXX=' ${wl}-berok'
11175 # Exported symbols can be pulled into shared objects from archives
11176 whole_archive_flag_spec_CXX='$convenience'
11177 archive_cmds_need_lc_CXX=yes
11178 # This is similar to how AIX traditionally builds its shared libraries.
11179 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'
11180 fi
11181 fi
11182 ;;
11183
11184 beos*)
11185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11186 allow_undefined_flag_CXX=unsupported
11187 # Joseph Beckenbach <[email protected]> says some releases of gcc
11188 # support --undefined. This deserves some investigation. FIXME
11189 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11190 else
11191 ld_shlibs_CXX=no
11192 fi
11193 ;;
11194
11195 chorus*)
11196 case $cc_basename in
11197 *)
11198 # FIXME: insert proper C++ library support
11199 ld_shlibs_CXX=no
11200 ;;
11201 esac
11202 ;;
11203
11204 cygwin* | mingw* | pw32*)
11205 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11206 # as there is no search path for DLLs.
11207 hardcode_libdir_flag_spec_CXX='-L$libdir'
11208 allow_undefined_flag_CXX=unsupported
11209 always_export_symbols_CXX=no
11210 enable_shared_with_static_runtimes_CXX=yes
11211
11212 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11213 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'
11214 # If the export-symbols file already is a .def file (1st line
11215 # is EXPORTS), use it as is; otherwise, prepend...
11216 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11217 cp $export_symbols $output_objdir/$soname.def;
11218 else
11219 echo EXPORTS > $output_objdir/$soname.def;
11220 cat $export_symbols >> $output_objdir/$soname.def;
11221 fi~
11222 $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'
11223 else
11224 ld_shlibs_CXX=no
11225 fi
11226 ;;
11227 darwin* | rhapsody*)
11228 case $host_os in
11229 rhapsody* | darwin1.[012])
11230 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11231 ;;
11232 *) # Darwin 1.3 on
11233 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11234 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11235 else
11236 case ${MACOSX_DEPLOYMENT_TARGET} in
11237 10.[012])
11238 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11239 ;;
11240 10.*)
11241 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11242 ;;
11243 esac
11244 fi
11245 ;;
11246 esac
11247 archive_cmds_need_lc_CXX=no
11248 hardcode_direct_CXX=no
11249 hardcode_automatic_CXX=yes
11250 hardcode_shlibpath_var_CXX=unsupported
11251 whole_archive_flag_spec_CXX=''
11252 link_all_deplibs_CXX=yes
11253
11254 if test "$GXX" = yes ; then
11255 lt_int_apple_cc_single_mod=no
11256 output_verbose_link_cmd='echo'
11257 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11258 lt_int_apple_cc_single_mod=yes
11259 fi
11260 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11261 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11262 else
11263 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'
11264 fi
11265 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11267 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11268 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11269 else
11270 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11271 fi
11272 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273 else
11274 case $cc_basename in
11275 xlc*)
11276 output_verbose_link_cmd='echo'
11277 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11278 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11279 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11280 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11281 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11282 ;;
11283 *)
11284 ld_shlibs_CXX=no
11285 ;;
11286 esac
11287 fi
11288 ;;
11289
11290 dgux*)
11291 case $cc_basename in
11292 ec++*)
11293 # FIXME: insert proper C++ library support
11294 ld_shlibs_CXX=no
11295 ;;
11296 ghcx*)
11297 # Green Hills C++ Compiler
11298 # FIXME: insert proper C++ library support
11299 ld_shlibs_CXX=no
11300 ;;
11301 *)
11302 # FIXME: insert proper C++ library support
11303 ld_shlibs_CXX=no
11304 ;;
11305 esac
11306 ;;
11307 freebsd[12]*)
11308 # C++ shared libraries reported to be fairly broken before switch to ELF
11309 ld_shlibs_CXX=no
11310 ;;
11311 freebsd-elf*)
11312 archive_cmds_need_lc_CXX=no
11313 ;;
11314 freebsd* | dragonfly*)
11315 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11316 # conventions
11317 ld_shlibs_CXX=yes
11318 ;;
11319 gnu*)
11320 ;;
11321 hpux9*)
11322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11323 hardcode_libdir_separator_CXX=:
11324 export_dynamic_flag_spec_CXX='${wl}-E'
11325 hardcode_direct_CXX=yes
11326 hardcode_minus_L_CXX=yes # Not in the search PATH,
11327 # but as the default
11328 # location of the library.
11329
11330 case $cc_basename in
11331 CC*)
11332 # FIXME: insert proper C++ library support
11333 ld_shlibs_CXX=no
11334 ;;
11335 aCC*)
11336 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'
11337 # Commands to make compiler produce verbose output that lists
11338 # what "hidden" libraries, object files and flags are used when
11339 # linking a shared library.
11340 #
11341 # There doesn't appear to be a way to prevent this compiler from
11342 # explicitly linking system object files so we need to strip them
11343 # from the output so that they don't get included in the library
11344 # dependencies.
11345 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 $list'
11346 ;;
11347 *)
11348 if test "$GXX" = yes; then
11349 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'
11350 else
11351 # FIXME: insert proper C++ library support
11352 ld_shlibs_CXX=no
11353 fi
11354 ;;
11355 esac
11356 ;;
11357 hpux10*|hpux11*)
11358 if test $with_gnu_ld = no; then
11359 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11360 hardcode_libdir_separator_CXX=:
11361
11362 case $host_cpu in
11363 hppa*64*|ia64*) ;;
11364 *)
11365 export_dynamic_flag_spec_CXX='${wl}-E'
11366 ;;
11367 esac
11368 fi
11369 case $host_cpu in
11370 hppa*64*|ia64*)
11371 hardcode_direct_CXX=no
11372 hardcode_shlibpath_var_CXX=no
11373 ;;
11374 *)
11375 hardcode_direct_CXX=yes
11376 hardcode_minus_L_CXX=yes # Not in the search PATH,
11377 # but as the default
11378 # location of the library.
11379 ;;
11380 esac
11381
11382 case $cc_basename in
11383 CC*)
11384 # FIXME: insert proper C++ library support
11385 ld_shlibs_CXX=no
11386 ;;
11387 aCC*)
11388 case $host_cpu in
11389 hppa*64*)
11390 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11391 ;;
11392 ia64*)
11393 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11394 ;;
11395 *)
11396 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11397 ;;
11398 esac
11399 # Commands to make compiler produce verbose output that lists
11400 # what "hidden" libraries, object files and flags are used when
11401 # linking a shared library.
11402 #
11403 # There doesn't appear to be a way to prevent this compiler from
11404 # explicitly linking system object files so we need to strip them
11405 # from the output so that they don't get included in the library
11406 # dependencies.
11407 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 $list'
11408 ;;
11409 *)
11410 if test "$GXX" = yes; then
11411 if test $with_gnu_ld = no; then
11412 case $host_cpu in
11413 hppa*64*)
11414 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11415 ;;
11416 ia64*)
11417 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11418 ;;
11419 *)
11420 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'
11421 ;;
11422 esac
11423 fi
11424 else
11425 # FIXME: insert proper C++ library support
11426 ld_shlibs_CXX=no
11427 fi
11428 ;;
11429 esac
11430 ;;
11431 interix[3-9]*)
11432 hardcode_direct_CXX=no
11433 hardcode_shlibpath_var_CXX=no
11434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11435 export_dynamic_flag_spec_CXX='${wl}-E'
11436 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11437 # Instead, shared libraries are loaded at an image base (0x10000000 by
11438 # default) and relocated if they conflict, which is a slow very memory
11439 # consuming and fragmenting process. To avoid this, we pick a random,
11440 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11441 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11442 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'
11443 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'
11444 ;;
11445 irix5* | irix6*)
11446 case $cc_basename in
11447 CC*)
11448 # SGI C++
11449 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11450
11451 # Archives containing C++ object files must be created using
11452 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11453 # necessary to make sure instantiated templates are included
11454 # in the archive.
11455 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11456 ;;
11457 *)
11458 if test "$GXX" = yes; then
11459 if test "$with_gnu_ld" = no; then
11460 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11461 else
11462 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11463 fi
11464 fi
11465 link_all_deplibs_CXX=yes
11466 ;;
11467 esac
11468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11469 hardcode_libdir_separator_CXX=:
11470 ;;
11471 linux* | k*bsd*-gnu)
11472 case $cc_basename in
11473 KCC*)
11474 # Kuck and Associates, Inc. (KAI) C++ Compiler
11475
11476 # KCC will only create a shared library if the output file
11477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11478 # to its proper name (with version) after linking.
11479 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'
11480 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'
11481 # Commands to make compiler produce verbose output that lists
11482 # what "hidden" libraries, object files and flags are used when
11483 # linking a shared library.
11484 #
11485 # There doesn't appear to be a way to prevent this compiler from
11486 # explicitly linking system object files so we need to strip them
11487 # from the output so that they don't get included in the library
11488 # dependencies.
11489 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 $list'
11490
11491 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11492 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11493
11494 # Archives containing C++ object files must be created using
11495 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11496 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11497 ;;
11498 icpc*)
11499 # Intel C++
11500 with_gnu_ld=yes
11501 # version 8.0 and above of icpc choke on multiply defined symbols
11502 # if we add $predep_objects and $postdep_objects, however 7.1 and
11503 # earlier do not add the objects themselves.
11504 case `$CC -V 2>&1` in
11505 *"Version 7."*)
11506 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507 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'
11508 ;;
11509 *) # Version 8.0 or newer
11510 tmp_idyn=
11511 case $host_cpu in
11512 ia64*) tmp_idyn=' -i_dynamic';;
11513 esac
11514 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11515 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'
11516 ;;
11517 esac
11518 archive_cmds_need_lc_CXX=no
11519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11520 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11521 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11522 ;;
11523 pgCC*)
11524 # Portland Group C++ compiler
11525 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11526 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'
11527
11528 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11530 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'
11531 ;;
11532 cxx*)
11533 # Compaq C++
11534 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11535 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'
11536
11537 runpath_var=LD_RUN_PATH
11538 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11539 hardcode_libdir_separator_CXX=:
11540
11541 # Commands to make compiler produce verbose output that lists
11542 # what "hidden" libraries, object files and flags are used when
11543 # linking a shared library.
11544 #
11545 # There doesn't appear to be a way to prevent this compiler from
11546 # explicitly linking system object files so we need to strip them
11547 # from the output so that they don't get included in the library
11548 # dependencies.
11549 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
11550 ;;
11551 *)
11552 case `$CC -V 2>&1 | sed 5q` in
11553 *Sun\ C*)
11554 # Sun C++ 5.9
11555 no_undefined_flag_CXX=' -zdefs'
11556 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11557 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'
11558 hardcode_libdir_flag_spec_CXX='-R$libdir'
11559 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'
11560
11561 # Not sure whether something based on
11562 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11563 # would be better.
11564 output_verbose_link_cmd='echo'
11565
11566 # Archives containing C++ object files must be created using
11567 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11568 # necessary to make sure instantiated templates are included
11569 # in the archive.
11570 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11571 ;;
11572 esac
11573 ;;
11574 esac
11575 ;;
11576 lynxos*)
11577 # FIXME: insert proper C++ library support
11578 ld_shlibs_CXX=no
11579 ;;
11580 m88k*)
11581 # FIXME: insert proper C++ library support
11582 ld_shlibs_CXX=no
11583 ;;
11584 mvs*)
11585 case $cc_basename in
11586 cxx*)
11587 # FIXME: insert proper C++ library support
11588 ld_shlibs_CXX=no
11589 ;;
11590 *)
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 esac
11595 ;;
11596 netbsd*)
11597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11598 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11599 wlarc=
11600 hardcode_libdir_flag_spec_CXX='-R$libdir'
11601 hardcode_direct_CXX=yes
11602 hardcode_shlibpath_var_CXX=no
11603 fi
11604 # Workaround some broken pre-1.5 toolchains
11605 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11606 ;;
11607 openbsd2*)
11608 # C++ shared libraries are fairly broken
11609 ld_shlibs_CXX=no
11610 ;;
11611 openbsd*)
11612 if test -f /usr/libexec/ld.so; then
11613 hardcode_direct_CXX=yes
11614 hardcode_shlibpath_var_CXX=no
11615 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11617 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11618 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11619 export_dynamic_flag_spec_CXX='${wl}-E'
11620 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11621 fi
11622 output_verbose_link_cmd='echo'
11623 else
11624 ld_shlibs_CXX=no
11625 fi
11626 ;;
11627 osf3*)
11628 case $cc_basename in
11629 KCC*)
11630 # Kuck and Associates, Inc. (KAI) C++ Compiler
11631
11632 # KCC will only create a shared library if the output file
11633 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11634 # to its proper name (with version) after linking.
11635 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'
11636
11637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11638 hardcode_libdir_separator_CXX=:
11639
11640 # Archives containing C++ object files must be created using
11641 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11642 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11643
11644 ;;
11645 RCC*)
11646 # Rational C++ 2.4.1
11647 # FIXME: insert proper C++ library support
11648 ld_shlibs_CXX=no
11649 ;;
11650 cxx*)
11651 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11652 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11653
11654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11655 hardcode_libdir_separator_CXX=:
11656
11657 # Commands to make compiler produce verbose output that lists
11658 # what "hidden" libraries, object files and flags are used when
11659 # linking a shared library.
11660 #
11661 # There doesn't appear to be a way to prevent this compiler from
11662 # explicitly linking system object files so we need to strip them
11663 # from the output so that they don't get included in the library
11664 # dependencies.
11665 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
11666 ;;
11667 *)
11668 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11669 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11670 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11671
11672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11673 hardcode_libdir_separator_CXX=:
11674
11675 # Commands to make compiler produce verbose output that lists
11676 # what "hidden" libraries, object files and flags are used when
11677 # linking a shared library.
11678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11679
11680 else
11681 # FIXME: insert proper C++ library support
11682 ld_shlibs_CXX=no
11683 fi
11684 ;;
11685 esac
11686 ;;
11687 osf4* | osf5*)
11688 case $cc_basename in
11689 KCC*)
11690 # Kuck and Associates, Inc. (KAI) C++ Compiler
11691
11692 # KCC will only create a shared library if the output file
11693 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11694 # to its proper name (with version) after linking.
11695 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'
11696
11697 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11698 hardcode_libdir_separator_CXX=:
11699
11700 # Archives containing C++ object files must be created using
11701 # the KAI C++ compiler.
11702 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11703 ;;
11704 RCC*)
11705 # Rational C++ 2.4.1
11706 # FIXME: insert proper C++ library support
11707 ld_shlibs_CXX=no
11708 ;;
11709 cxx*)
11710 allow_undefined_flag_CXX=' -expect_unresolved \*'
11711 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11712 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11713 echo "-hidden">> $lib.exp~
11714 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11715 $rm $lib.exp'
11716
11717 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11718 hardcode_libdir_separator_CXX=:
11719
11720 # Commands to make compiler produce verbose output that lists
11721 # what "hidden" libraries, object files and flags are used when
11722 # linking a shared library.
11723 #
11724 # There doesn't appear to be a way to prevent this compiler from
11725 # explicitly linking system object files so we need to strip them
11726 # from the output so that they don't get included in the library
11727 # dependencies.
11728 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
11729 ;;
11730 *)
11731 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11732 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11733 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11734
11735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11736 hardcode_libdir_separator_CXX=:
11737
11738 # Commands to make compiler produce verbose output that lists
11739 # what "hidden" libraries, object files and flags are used when
11740 # linking a shared library.
11741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11742
11743 else
11744 # FIXME: insert proper C++ library support
11745 ld_shlibs_CXX=no
11746 fi
11747 ;;
11748 esac
11749 ;;
11750 psos*)
11751 # FIXME: insert proper C++ library support
11752 ld_shlibs_CXX=no
11753 ;;
11754 sunos4*)
11755 case $cc_basename in
11756 CC*)
11757 # Sun C++ 4.x
11758 # FIXME: insert proper C++ library support
11759 ld_shlibs_CXX=no
11760 ;;
11761 lcc*)
11762 # Lucid
11763 # FIXME: insert proper C++ library support
11764 ld_shlibs_CXX=no
11765 ;;
11766 *)
11767 # FIXME: insert proper C++ library support
11768 ld_shlibs_CXX=no
11769 ;;
11770 esac
11771 ;;
11772 solaris*)
11773 case $cc_basename in
11774 CC*)
11775 # Sun C++ 4.2, 5.x and Centerline C++
11776 archive_cmds_need_lc_CXX=yes
11777 no_undefined_flag_CXX=' -zdefs'
11778 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11779 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11780 $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'
11781
11782 hardcode_libdir_flag_spec_CXX='-R$libdir'
11783 hardcode_shlibpath_var_CXX=no
11784 case $host_os in
11785 solaris2.[0-5] | solaris2.[0-5].*) ;;
11786 *)
11787 # The compiler driver will combine and reorder linker options,
11788 # but understands `-z linker_flag'.
11789 # Supported since Solaris 2.6 (maybe 2.5.1?)
11790 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11791 ;;
11792 esac
11793 link_all_deplibs_CXX=yes
11794
11795 output_verbose_link_cmd='echo'
11796
11797 # Archives containing C++ object files must be created using
11798 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11799 # necessary to make sure instantiated templates are included
11800 # in the archive.
11801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11802 ;;
11803 gcx*)
11804 # Green Hills C++ Compiler
11805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11806
11807 # The C++ compiler must be used to create the archive.
11808 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11809 ;;
11810 *)
11811 # GNU C++ compiler with Solaris linker
11812 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11813 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11814 if $CC --version | grep -v '^2\.7' > /dev/null; then
11815 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11816 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11817 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11818
11819 # Commands to make compiler produce verbose output that lists
11820 # what "hidden" libraries, object files and flags are used when
11821 # linking a shared library.
11822 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11823 else
11824 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11825 # platform.
11826 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11827 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11828 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11829
11830 # Commands to make compiler produce verbose output that lists
11831 # what "hidden" libraries, object files and flags are used when
11832 # linking a shared library.
11833 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11834 fi
11835
11836 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11837 case $host_os in
11838 solaris2.[0-5] | solaris2.[0-5].*) ;;
11839 *)
11840 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11841 ;;
11842 esac
11843 fi
11844 ;;
11845 esac
11846 ;;
11847 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11848 no_undefined_flag_CXX='${wl}-z,text'
11849 archive_cmds_need_lc_CXX=no
11850 hardcode_shlibpath_var_CXX=no
11851 runpath_var='LD_RUN_PATH'
11852
11853 case $cc_basename in
11854 CC*)
11855 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11856 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11857 ;;
11858 *)
11859 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11860 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11861 ;;
11862 esac
11863 ;;
11864 sysv5* | sco3.2v5* | sco5v6*)
11865 # Note: We can NOT use -z defs as we might desire, because we do not
11866 # link with -lc, and that would cause any symbols used from libc to
11867 # always be unresolved, which means just about no library would
11868 # ever link correctly. If we're not using GNU ld we use -z text
11869 # though, which does catch some bad symbols but isn't as heavy-handed
11870 # as -z defs.
11871 # For security reasons, it is highly recommended that you always
11872 # use absolute paths for naming shared libraries, and exclude the
11873 # DT_RUNPATH tag from executables and libraries. But doing so
11874 # requires that you compile everything twice, which is a pain.
11875 # So that behaviour is only enabled if SCOABSPATH is set to a
11876 # non-empty value in the environment. Most likely only useful for
11877 # creating official distributions of packages.
11878 # This is a hack until libtool officially supports absolute path
11879 # names for shared libraries.
11880 no_undefined_flag_CXX='${wl}-z,text'
11881 allow_undefined_flag_CXX='${wl}-z,nodefs'
11882 archive_cmds_need_lc_CXX=no
11883 hardcode_shlibpath_var_CXX=no
11884 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11885 hardcode_libdir_separator_CXX=':'
11886 link_all_deplibs_CXX=yes
11887 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11888 runpath_var='LD_RUN_PATH'
11889
11890 case $cc_basename in
11891 CC*)
11892 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11893 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11894 ;;
11895 *)
11896 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11897 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11898 ;;
11899 esac
11900 ;;
11901 tandem*)
11902 case $cc_basename in
11903 NCC*)
11904 # NonStop-UX NCC 3.20
11905 # FIXME: insert proper C++ library support
11906 ld_shlibs_CXX=no
11907 ;;
11908 *)
11909 # FIXME: insert proper C++ library support
11910 ld_shlibs_CXX=no
11911 ;;
11912 esac
11913 ;;
11914 vxworks*)
11915 # FIXME: insert proper C++ library support
11916 ld_shlibs_CXX=no
11917 ;;
11918 *)
11919 # FIXME: insert proper C++ library support
11920 ld_shlibs_CXX=no
11921 ;;
11922 esac
11923 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11924 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11925 test "$ld_shlibs_CXX" = no && can_build_shared=no
11926
11927 GCC_CXX="$GXX"
11928 LD_CXX="$LD"
11929
11930
11931 cat > conftest.$ac_ext <<EOF
11932 class Foo
11933 {
11934 public:
11935 Foo (void) { a = 0; }
11936 private:
11937 int a;
11938 };
11939 EOF
11940
11941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; then
11946 # Parse the compiler output and extract the necessary
11947 # objects, libraries and library flags.
11948
11949 # Sentinel used to keep track of whether or not we are before
11950 # the conftest object file.
11951 pre_test_object_deps_done=no
11952
11953 # The `*' in the case matches for architectures that use `case' in
11954 # $output_verbose_cmd can trigger glob expansion during the loop
11955 # eval without this substitution.
11956 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11957
11958 for p in `eval $output_verbose_link_cmd`; do
11959 case $p in
11960
11961 -L* | -R* | -l*)
11962 # Some compilers place space between "-{L,R}" and the path.
11963 # Remove the space.
11964 if test $p = "-L" \
11965 || test $p = "-R"; then
11966 prev=$p
11967 continue
11968 else
11969 prev=
11970 fi
11971
11972 if test "$pre_test_object_deps_done" = no; then
11973 case $p in
11974 -L* | -R*)
11975 # Internal compiler library paths should come after those
11976 # provided the user. The postdeps already come after the
11977 # user supplied libs so there is no need to process them.
11978 if test -z "$compiler_lib_search_path_CXX"; then
11979 compiler_lib_search_path_CXX="${prev}${p}"
11980 else
11981 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11982 fi
11983 ;;
11984 # The "-l" case would never come before the object being
11985 # linked, so don't bother handling this case.
11986 esac
11987 else
11988 if test -z "$postdeps_CXX"; then
11989 postdeps_CXX="${prev}${p}"
11990 else
11991 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11992 fi
11993 fi
11994 ;;
11995
11996 *.$objext)
11997 # This assumes that the test object file only shows up
11998 # once in the compiler output.
11999 if test "$p" = "conftest.$objext"; then
12000 pre_test_object_deps_done=yes
12001 continue
12002 fi
12003
12004 if test "$pre_test_object_deps_done" = no; then
12005 if test -z "$predep_objects_CXX"; then
12006 predep_objects_CXX="$p"
12007 else
12008 predep_objects_CXX="$predep_objects_CXX $p"
12009 fi
12010 else
12011 if test -z "$postdep_objects_CXX"; then
12012 postdep_objects_CXX="$p"
12013 else
12014 postdep_objects_CXX="$postdep_objects_CXX $p"
12015 fi
12016 fi
12017 ;;
12018
12019 *) ;; # Ignore the rest.
12020
12021 esac
12022 done
12023
12024 # Clean up.
12025 rm -f a.out a.exe
12026 else
12027 echo "libtool.m4: error: problem compiling CXX test program"
12028 fi
12029
12030 $rm -f confest.$objext
12031
12032 # PORTME: override above test on systems where it is broken
12033 case $host_os in
12034 interix[3-9]*)
12035 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12036 # hack all around it, let's just trust "g++" to DTRT.
12037 predep_objects_CXX=
12038 postdep_objects_CXX=
12039 postdeps_CXX=
12040 ;;
12041
12042 linux*)
12043 case `$CC -V 2>&1 | sed 5q` in
12044 *Sun\ C*)
12045 # Sun C++ 5.9
12046 #
12047 # The more standards-conforming stlport4 library is
12048 # incompatible with the Cstd library. Avoid specifying
12049 # it if it's in CXXFLAGS. Ignore libCrun as
12050 # -library=stlport4 depends on it.
12051 case " $CXX $CXXFLAGS " in
12052 *" -library=stlport4 "*)
12053 solaris_use_stlport4=yes
12054 ;;
12055 esac
12056 if test "$solaris_use_stlport4" != yes; then
12057 postdeps_CXX='-library=Cstd -library=Crun'
12058 fi
12059 ;;
12060 esac
12061 ;;
12062
12063 solaris*)
12064 case $cc_basename in
12065 CC*)
12066 # The more standards-conforming stlport4 library is
12067 # incompatible with the Cstd library. Avoid specifying
12068 # it if it's in CXXFLAGS. Ignore libCrun as
12069 # -library=stlport4 depends on it.
12070 case " $CXX $CXXFLAGS " in
12071 *" -library=stlport4 "*)
12072 solaris_use_stlport4=yes
12073 ;;
12074 esac
12075
12076 # Adding this requires a known-good setup of shared libraries for
12077 # Sun compiler versions before 5.6, else PIC objects from an old
12078 # archive will be linked into the output, leading to subtle bugs.
12079 if test "$solaris_use_stlport4" != yes; then
12080 postdeps_CXX='-library=Cstd -library=Crun'
12081 fi
12082 ;;
12083 esac
12084 ;;
12085 esac
12086
12087
12088 case " $postdeps_CXX " in
12089 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12090 esac
12091
12092 lt_prog_compiler_wl_CXX=
12093 lt_prog_compiler_pic_CXX=
12094 lt_prog_compiler_static_CXX=
12095
12096 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12097 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12098
12099 # C++ specific cases for pic, static, wl, etc.
12100 if test "$GXX" = yes; then
12101 lt_prog_compiler_wl_CXX='-Wl,'
12102 lt_prog_compiler_static_CXX='-static'
12103
12104 case $host_os in
12105 aix*)
12106 # All AIX code is PIC.
12107 if test "$host_cpu" = ia64; then
12108 # AIX 5 now supports IA64 processor
12109 lt_prog_compiler_static_CXX='-Bstatic'
12110 fi
12111 ;;
12112 amigaos*)
12113 # FIXME: we need at least 68020 code to build shared libraries, but
12114 # adding the `-m68020' flag to GCC prevents building anything better,
12115 # like `-m68040'.
12116 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12117 ;;
12118 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12119 # PIC is the default for these OSes.
12120 ;;
12121 mingw* | cygwin* | os2* | pw32*)
12122 # This hack is so that the source file can tell whether it is being
12123 # built for inclusion in a dll (and should export symbols for example).
12124 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12125 # (--disable-auto-import) libraries
12126 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12127 ;;
12128 darwin* | rhapsody*)
12129 # PIC is the default on this platform
12130 # Common symbols not allowed in MH_DYLIB files
12131 lt_prog_compiler_pic_CXX='-fno-common'
12132 ;;
12133 *djgpp*)
12134 # DJGPP does not support shared libraries at all
12135 lt_prog_compiler_pic_CXX=
12136 ;;
12137 interix[3-9]*)
12138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12139 # Instead, we relocate shared libraries at runtime.
12140 ;;
12141 sysv4*MP*)
12142 if test -d /usr/nec; then
12143 lt_prog_compiler_pic_CXX=-Kconform_pic
12144 fi
12145 ;;
12146 hpux*)
12147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12148 # not for PA HP-UX.
12149 case $host_cpu in
12150 hppa*64*|ia64*)
12151 ;;
12152 *)
12153 lt_prog_compiler_pic_CXX='-fPIC'
12154 ;;
12155 esac
12156 ;;
12157 *)
12158 lt_prog_compiler_pic_CXX='-fPIC'
12159 ;;
12160 esac
12161 else
12162 case $host_os in
12163 aix4* | aix5*)
12164 # All AIX code is PIC.
12165 if test "$host_cpu" = ia64; then
12166 # AIX 5 now supports IA64 processor
12167 lt_prog_compiler_static_CXX='-Bstatic'
12168 else
12169 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12170 fi
12171 ;;
12172 chorus*)
12173 case $cc_basename in
12174 cxch68*)
12175 # Green Hills C++ Compiler
12176 # _LT_AC_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"
12177 ;;
12178 esac
12179 ;;
12180 darwin*)
12181 # PIC is the default on this platform
12182 # Common symbols not allowed in MH_DYLIB files
12183 case $cc_basename in
12184 xlc*)
12185 lt_prog_compiler_pic_CXX='-qnocommon'
12186 lt_prog_compiler_wl_CXX='-Wl,'
12187 ;;
12188 esac
12189 ;;
12190 dgux*)
12191 case $cc_basename in
12192 ec++*)
12193 lt_prog_compiler_pic_CXX='-KPIC'
12194 ;;
12195 ghcx*)
12196 # Green Hills C++ Compiler
12197 lt_prog_compiler_pic_CXX='-pic'
12198 ;;
12199 *)
12200 ;;
12201 esac
12202 ;;
12203 freebsd* | dragonfly*)
12204 # FreeBSD uses GNU C++
12205 ;;
12206 hpux9* | hpux10* | hpux11*)
12207 case $cc_basename in
12208 CC*)
12209 lt_prog_compiler_wl_CXX='-Wl,'
12210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12211 if test "$host_cpu" != ia64; then
12212 lt_prog_compiler_pic_CXX='+Z'
12213 fi
12214 ;;
12215 aCC*)
12216 lt_prog_compiler_wl_CXX='-Wl,'
12217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12218 case $host_cpu in
12219 hppa*64*|ia64*)
12220 # +Z the default
12221 ;;
12222 *)
12223 lt_prog_compiler_pic_CXX='+Z'
12224 ;;
12225 esac
12226 ;;
12227 *)
12228 ;;
12229 esac
12230 ;;
12231 interix*)
12232 # This is c89, which is MS Visual C++ (no shared libs)
12233 # Anyone wants to do a port?
12234 ;;
12235 irix5* | irix6* | nonstopux*)
12236 case $cc_basename in
12237 CC*)
12238 lt_prog_compiler_wl_CXX='-Wl,'
12239 lt_prog_compiler_static_CXX='-non_shared'
12240 # CC pic flag -KPIC is the default.
12241 ;;
12242 *)
12243 ;;
12244 esac
12245 ;;
12246 linux* | k*bsd*-gnu)
12247 case $cc_basename in
12248 KCC*)
12249 # KAI C++ Compiler
12250 lt_prog_compiler_wl_CXX='--backend -Wl,'
12251 lt_prog_compiler_pic_CXX='-fPIC'
12252 ;;
12253 icpc* | ecpc*)
12254 # Intel C++
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 lt_prog_compiler_pic_CXX='-KPIC'
12257 lt_prog_compiler_static_CXX='-static'
12258 ;;
12259 pgCC*)
12260 # Portland Group C++ compiler.
12261 lt_prog_compiler_wl_CXX='-Wl,'
12262 lt_prog_compiler_pic_CXX='-fpic'
12263 lt_prog_compiler_static_CXX='-Bstatic'
12264 ;;
12265 cxx*)
12266 # Compaq C++
12267 # Make sure the PIC flag is empty. It appears that all Alpha
12268 # Linux and Compaq Tru64 Unix objects are PIC.
12269 lt_prog_compiler_pic_CXX=
12270 lt_prog_compiler_static_CXX='-non_shared'
12271 ;;
12272 *)
12273 case `$CC -V 2>&1 | sed 5q` in
12274 *Sun\ C*)
12275 # Sun C++ 5.9
12276 lt_prog_compiler_pic_CXX='-KPIC'
12277 lt_prog_compiler_static_CXX='-Bstatic'
12278 lt_prog_compiler_wl_CXX='-Qoption ld '
12279 ;;
12280 esac
12281 ;;
12282 esac
12283 ;;
12284 lynxos*)
12285 ;;
12286 m88k*)
12287 ;;
12288 mvs*)
12289 case $cc_basename in
12290 cxx*)
12291 lt_prog_compiler_pic_CXX='-W c,exportall'
12292 ;;
12293 *)
12294 ;;
12295 esac
12296 ;;
12297 netbsd*)
12298 ;;
12299 osf3* | osf4* | osf5*)
12300 case $cc_basename in
12301 KCC*)
12302 lt_prog_compiler_wl_CXX='--backend -Wl,'
12303 ;;
12304 RCC*)
12305 # Rational C++ 2.4.1
12306 lt_prog_compiler_pic_CXX='-pic'
12307 ;;
12308 cxx*)
12309 # Digital/Compaq C++
12310 lt_prog_compiler_wl_CXX='-Wl,'
12311 # Make sure the PIC flag is empty. It appears that all Alpha
12312 # Linux and Compaq Tru64 Unix objects are PIC.
12313 lt_prog_compiler_pic_CXX=
12314 lt_prog_compiler_static_CXX='-non_shared'
12315 ;;
12316 *)
12317 ;;
12318 esac
12319 ;;
12320 psos*)
12321 ;;
12322 solaris*)
12323 case $cc_basename in
12324 CC*)
12325 # Sun C++ 4.2, 5.x and Centerline C++
12326 lt_prog_compiler_pic_CXX='-KPIC'
12327 lt_prog_compiler_static_CXX='-Bstatic'
12328 lt_prog_compiler_wl_CXX='-Qoption ld '
12329 ;;
12330 gcx*)
12331 # Green Hills C++ Compiler
12332 lt_prog_compiler_pic_CXX='-PIC'
12333 ;;
12334 *)
12335 ;;
12336 esac
12337 ;;
12338 sunos4*)
12339 case $cc_basename in
12340 CC*)
12341 # Sun C++ 4.x
12342 lt_prog_compiler_pic_CXX='-pic'
12343 lt_prog_compiler_static_CXX='-Bstatic'
12344 ;;
12345 lcc*)
12346 # Lucid
12347 lt_prog_compiler_pic_CXX='-pic'
12348 ;;
12349 *)
12350 ;;
12351 esac
12352 ;;
12353 tandem*)
12354 case $cc_basename in
12355 NCC*)
12356 # NonStop-UX NCC 3.20
12357 lt_prog_compiler_pic_CXX='-KPIC'
12358 ;;
12359 *)
12360 ;;
12361 esac
12362 ;;
12363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12364 case $cc_basename in
12365 CC*)
12366 lt_prog_compiler_wl_CXX='-Wl,'
12367 lt_prog_compiler_pic_CXX='-KPIC'
12368 lt_prog_compiler_static_CXX='-Bstatic'
12369 ;;
12370 esac
12371 ;;
12372 vxworks*)
12373 ;;
12374 *)
12375 lt_prog_compiler_can_build_shared_CXX=no
12376 ;;
12377 esac
12378 fi
12379
12380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12381 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12382
12383 #
12384 # Check to make sure the PIC flag actually works.
12385 #
12386 if test -n "$lt_prog_compiler_pic_CXX"; then
12387
12388 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12390 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 lt_prog_compiler_pic_works_CXX=no
12394 ac_outfile=conftest.$ac_objext
12395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12396 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12397 # Insert the option either (1) after the last *FLAGS variable, or
12398 # (2) before a word containing "conftest.", or (3) at the end.
12399 # Note that $ac_compile itself does not contain backslashes and begins
12400 # with a dollar sign (not a hyphen), so the echo should work correctly.
12401 # The option is referenced via a variable to avoid confusing sed.
12402 lt_compile=`echo "$ac_compile" | $SED \
12403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12405 -e 's:$: $lt_compiler_flag:'`
12406 (eval echo "\"\$as_me:12406: $lt_compile\"" >&5)
12407 (eval "$lt_compile" 2>conftest.err)
12408 ac_status=$?
12409 cat conftest.err >&5
12410 echo "$as_me:12410: \$? = $ac_status" >&5
12411 if (exit $ac_status) && test -s "$ac_outfile"; then
12412 # The compiler can only warn and ignore the option if not recognized
12413 # So say no if there are warnings other than the usual output.
12414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12417 lt_prog_compiler_pic_works_CXX=yes
12418 fi
12419 fi
12420 $rm conftest*
12421
12422 fi
12423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12424 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12425
12426 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12427 case $lt_prog_compiler_pic_CXX in
12428 "" | " "*) ;;
12429 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12430 esac
12431 else
12432 lt_prog_compiler_pic_CXX=
12433 lt_prog_compiler_can_build_shared_CXX=no
12434 fi
12435
12436 fi
12437 case $host_os in
12438 # For platforms which do not support PIC, -DPIC is meaningless:
12439 *djgpp*)
12440 lt_prog_compiler_pic_CXX=
12441 ;;
12442 *)
12443 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12444 ;;
12445 esac
12446
12447 #
12448 # Check to make sure the static flag actually works.
12449 #
12450 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12451 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12452 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12453 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456 lt_prog_compiler_static_works_CXX=no
12457 save_LDFLAGS="$LDFLAGS"
12458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12461 # The linker can only warn and ignore the option if not recognized
12462 # So say no if there are warnings
12463 if test -s conftest.err; then
12464 # Append any errors to the config.log.
12465 cat conftest.err 1>&5
12466 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12468 if diff conftest.exp conftest.er2 >/dev/null; then
12469 lt_prog_compiler_static_works_CXX=yes
12470 fi
12471 else
12472 lt_prog_compiler_static_works_CXX=yes
12473 fi
12474 fi
12475 $rm conftest*
12476 LDFLAGS="$save_LDFLAGS"
12477
12478 fi
12479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12480 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12481
12482 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12483 :
12484 else
12485 lt_prog_compiler_static_CXX=
12486 fi
12487
12488
12489 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12490 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12491 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 lt_cv_prog_compiler_c_o_CXX=no
12495 $rm -r conftest 2>/dev/null
12496 mkdir conftest
12497 cd conftest
12498 mkdir out
12499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12500
12501 lt_compiler_flag="-o out/conftest2.$ac_objext"
12502 # Insert the option either (1) after the last *FLAGS variable, or
12503 # (2) before a word containing "conftest.", or (3) at the end.
12504 # Note that $ac_compile itself does not contain backslashes and begins
12505 # with a dollar sign (not a hyphen), so the echo should work correctly.
12506 lt_compile=`echo "$ac_compile" | $SED \
12507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12509 -e 's:$: $lt_compiler_flag:'`
12510 (eval echo "\"\$as_me:12510: $lt_compile\"" >&5)
12511 (eval "$lt_compile" 2>out/conftest.err)
12512 ac_status=$?
12513 cat out/conftest.err >&5
12514 echo "$as_me:12514: \$? = $ac_status" >&5
12515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12516 then
12517 # The compiler can only warn and ignore the option if not recognized
12518 # So say no if there are warnings
12519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12522 lt_cv_prog_compiler_c_o_CXX=yes
12523 fi
12524 fi
12525 chmod u+w . 2>&5
12526 $rm conftest*
12527 # SGI C++ compiler will create directory out/ii_files/ for
12528 # template instantiation
12529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12530 $rm out/* && rmdir out
12531 cd ..
12532 rmdir conftest
12533 $rm conftest*
12534
12535 fi
12536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12538
12539
12540 hard_links="nottested"
12541 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12542 # do not overwrite the value of need_locks provided by the user
12543 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12545 hard_links=yes
12546 $rm conftest*
12547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12548 touch conftest.a
12549 ln conftest.a conftest.b 2>&5 || hard_links=no
12550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12551 { echo "$as_me:$LINENO: result: $hard_links" >&5
12552 echo "${ECHO_T}$hard_links" >&6; }
12553 if test "$hard_links" = no; then
12554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12556 need_locks=warn
12557 fi
12558 else
12559 need_locks=no
12560 fi
12561
12562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12564
12565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12566 case $host_os in
12567 aix4* | aix5*)
12568 # If we're using GNU nm, then we don't want the "-C" option.
12569 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12570 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12571 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'
12572 else
12573 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'
12574 fi
12575 ;;
12576 pw32*)
12577 export_symbols_cmds_CXX="$ltdll_cmds"
12578 ;;
12579 cygwin* | mingw*)
12580 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'
12581 ;;
12582 *)
12583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12584 ;;
12585 esac
12586
12587 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12588 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12589 test "$ld_shlibs_CXX" = no && can_build_shared=no
12590
12591 #
12592 # Do we need to explicitly link libc?
12593 #
12594 case "x$archive_cmds_need_lc_CXX" in
12595 x|xyes)
12596 # Assume -lc should be added
12597 archive_cmds_need_lc_CXX=yes
12598
12599 if test "$enable_shared" = yes && test "$GCC" = yes; then
12600 case $archive_cmds_CXX in
12601 *'~'*)
12602 # FIXME: we may have to deal with multi-command sequences.
12603 ;;
12604 '$CC '*)
12605 # Test whether the compiler implicitly links with -lc since on some
12606 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12607 # to ld, don't add -lc before -lgcc.
12608 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12609 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12610 $rm conftest*
12611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12612
12613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12614 (eval $ac_compile) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } 2>conftest.err; then
12618 soname=conftest
12619 lib=conftest
12620 libobjs=conftest.$ac_objext
12621 deplibs=
12622 wl=$lt_prog_compiler_wl_CXX
12623 pic_flag=$lt_prog_compiler_pic_CXX
12624 compiler_flags=-v
12625 linker_flags=-v
12626 verstring=
12627 output_objdir=.
12628 libname=conftest
12629 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12630 allow_undefined_flag_CXX=
12631 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12632 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }
12636 then
12637 archive_cmds_need_lc_CXX=no
12638 else
12639 archive_cmds_need_lc_CXX=yes
12640 fi
12641 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12642 else
12643 cat conftest.err 1>&5
12644 fi
12645 $rm conftest*
12646 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12647 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12648 ;;
12649 esac
12650 fi
12651 ;;
12652 esac
12653
12654 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12655 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12656 library_names_spec=
12657 libname_spec='lib$name'
12658 soname_spec=
12659 shrext_cmds=".so"
12660 postinstall_cmds=
12661 postuninstall_cmds=
12662 finish_cmds=
12663 finish_eval=
12664 shlibpath_var=
12665 shlibpath_overrides_runpath=unknown
12666 version_type=none
12667 dynamic_linker="$host_os ld.so"
12668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12669
12670 need_lib_prefix=unknown
12671 hardcode_into_libs=no
12672
12673 # when you set need_version to no, make sure it does not cause -set_version
12674 # flags to be left without arguments
12675 need_version=unknown
12676
12677 case $host_os in
12678 aix3*)
12679 version_type=linux
12680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12681 shlibpath_var=LIBPATH
12682
12683 # AIX 3 has no versioning support, so we append a major version to the name.
12684 soname_spec='${libname}${release}${shared_ext}$major'
12685 ;;
12686
12687 aix4* | aix5*)
12688 version_type=linux
12689 need_lib_prefix=no
12690 need_version=no
12691 hardcode_into_libs=yes
12692 if test "$host_cpu" = ia64; then
12693 # AIX 5 supports IA64
12694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 else
12697 # With GCC up to 2.95.x, collect2 would create an import file
12698 # for dependence libraries. The import file would start with
12699 # the line `#! .'. This would cause the generated library to
12700 # depend on `.', always an invalid library. This was fixed in
12701 # development snapshots of GCC prior to 3.0.
12702 case $host_os in
12703 aix4 | aix4.[01] | aix4.[01].*)
12704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12705 echo ' yes '
12706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12707 :
12708 else
12709 can_build_shared=no
12710 fi
12711 ;;
12712 esac
12713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12714 # soname into executable. Probably we can add versioning support to
12715 # collect2, so additional links can be useful in future.
12716 if test "$aix_use_runtimelinking" = yes; then
12717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12718 # instead of lib<name>.a to let people know that these are not
12719 # typical AIX shared libraries.
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721 else
12722 # We preserve .a as extension for shared libraries through AIX4.2
12723 # and later when we are not doing run time linking.
12724 library_names_spec='${libname}${release}.a $libname.a'
12725 soname_spec='${libname}${release}${shared_ext}$major'
12726 fi
12727 shlibpath_var=LIBPATH
12728 fi
12729 ;;
12730
12731 amigaos*)
12732 library_names_spec='$libname.ixlibrary $libname.a'
12733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12734 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'
12735 ;;
12736
12737 beos*)
12738 library_names_spec='${libname}${shared_ext}'
12739 dynamic_linker="$host_os ld.so"
12740 shlibpath_var=LIBRARY_PATH
12741 ;;
12742
12743 bsdi[45]*)
12744 version_type=linux
12745 need_version=no
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12752 # the default ld.so.conf also contains /usr/contrib/lib and
12753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12754 # libtool to hard-code these into programs
12755 ;;
12756
12757 cygwin* | mingw* | pw32*)
12758 version_type=windows
12759 shrext_cmds=".dll"
12760 need_version=no
12761 need_lib_prefix=no
12762
12763 case $GCC,$host_os in
12764 yes,cygwin* | yes,mingw* | yes,pw32*)
12765 library_names_spec='$libname.dll.a'
12766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12767 postinstall_cmds='base_file=`basename \${file}`~
12768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12769 dldir=$destdir/`dirname \$dlpath`~
12770 test -d \$dldir || mkdir -p \$dldir~
12771 $install_prog $dir/$dlname \$dldir/$dlname~
12772 chmod a+x \$dldir/$dlname'
12773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12774 dlpath=$dir/\$dldll~
12775 $rm \$dlpath'
12776 shlibpath_overrides_runpath=yes
12777
12778 case $host_os in
12779 cygwin*)
12780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12781 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12783 ;;
12784 mingw*)
12785 # MinGW DLLs use traditional 'lib' prefix
12786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12789 # It is most probably a Windows format PATH printed by
12790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12791 # path with ; separators, and with drive letters. We can handle the
12792 # drive letters (cygwin fileutils understands them), so leave them,
12793 # especially as we might pass files found there to a mingw objdump,
12794 # which wouldn't understand a cygwinified path. Ahh.
12795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12796 else
12797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12798 fi
12799 ;;
12800 pw32*)
12801 # pw32 DLLs use 'pw' prefix rather than 'lib'
12802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12803 ;;
12804 esac
12805 ;;
12806
12807 *)
12808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12809 ;;
12810 esac
12811 dynamic_linker='Win32 ld.exe'
12812 # FIXME: first we should search . and the directory the executable is in
12813 shlibpath_var=PATH
12814 ;;
12815
12816 darwin* | rhapsody*)
12817 dynamic_linker="$host_os dyld"
12818 version_type=darwin
12819 need_lib_prefix=no
12820 need_version=no
12821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12822 soname_spec='${libname}${release}${major}$shared_ext'
12823 shlibpath_overrides_runpath=yes
12824 shlibpath_var=DYLD_LIBRARY_PATH
12825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12826
12827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12828 ;;
12829
12830 dgux*)
12831 version_type=linux
12832 need_lib_prefix=no
12833 need_version=no
12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12835 soname_spec='${libname}${release}${shared_ext}$major'
12836 shlibpath_var=LD_LIBRARY_PATH
12837 ;;
12838
12839 freebsd1*)
12840 dynamic_linker=no
12841 ;;
12842
12843 freebsd* | dragonfly*)
12844 # DragonFly does not have aout. When/if they implement a new
12845 # versioning mechanism, adjust this.
12846 if test -x /usr/bin/objformat; then
12847 objformat=`/usr/bin/objformat`
12848 else
12849 case $host_os in
12850 freebsd[123]*) objformat=aout ;;
12851 *) objformat=elf ;;
12852 esac
12853 fi
12854 version_type=freebsd-$objformat
12855 case $version_type in
12856 freebsd-elf*)
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12858 need_version=no
12859 need_lib_prefix=no
12860 ;;
12861 freebsd-*)
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12863 need_version=yes
12864 ;;
12865 esac
12866 shlibpath_var=LD_LIBRARY_PATH
12867 case $host_os in
12868 freebsd2*)
12869 shlibpath_overrides_runpath=yes
12870 ;;
12871 freebsd3.[01]* | freebsdelf3.[01]*)
12872 shlibpath_overrides_runpath=yes
12873 hardcode_into_libs=yes
12874 ;;
12875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12877 shlibpath_overrides_runpath=no
12878 hardcode_into_libs=yes
12879 ;;
12880 *) # from 4.6 on, and DragonFly
12881 shlibpath_overrides_runpath=yes
12882 hardcode_into_libs=yes
12883 ;;
12884 esac
12885 ;;
12886
12887 gnu*)
12888 version_type=linux
12889 need_lib_prefix=no
12890 need_version=no
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 hardcode_into_libs=yes
12895 ;;
12896
12897 hpux9* | hpux10* | hpux11*)
12898 # Give a soname corresponding to the major version so that dld.sl refuses to
12899 # link against other versions.
12900 version_type=sunos
12901 need_lib_prefix=no
12902 need_version=no
12903 case $host_cpu in
12904 ia64*)
12905 shrext_cmds='.so'
12906 hardcode_into_libs=yes
12907 dynamic_linker="$host_os dld.so"
12908 shlibpath_var=LD_LIBRARY_PATH
12909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 if test "X$HPUX_IA64_MODE" = X32; then
12913 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12914 else
12915 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12916 fi
12917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12918 ;;
12919 hppa*64*)
12920 shrext_cmds='.sl'
12921 hardcode_into_libs=yes
12922 dynamic_linker="$host_os dld.sl"
12923 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 soname_spec='${libname}${release}${shared_ext}$major'
12927 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12929 ;;
12930 *)
12931 shrext_cmds='.sl'
12932 dynamic_linker="$host_os dld.sl"
12933 shlibpath_var=SHLIB_PATH
12934 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 ;;
12938 esac
12939 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12940 postinstall_cmds='chmod 555 $lib'
12941 ;;
12942
12943 interix[3-9]*)
12944 version_type=linux
12945 need_lib_prefix=no
12946 need_version=no
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12949 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12950 shlibpath_var=LD_LIBRARY_PATH
12951 shlibpath_overrides_runpath=no
12952 hardcode_into_libs=yes
12953 ;;
12954
12955 irix5* | irix6* | nonstopux*)
12956 case $host_os in
12957 nonstopux*) version_type=nonstopux ;;
12958 *)
12959 if test "$lt_cv_prog_gnu_ld" = yes; then
12960 version_type=linux
12961 else
12962 version_type=irix
12963 fi ;;
12964 esac
12965 need_lib_prefix=no
12966 need_version=no
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12969 case $host_os in
12970 irix5* | nonstopux*)
12971 libsuff= shlibsuff=
12972 ;;
12973 *)
12974 case $LD in # libtool.m4 will add one of these switches to LD
12975 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12976 libsuff= shlibsuff= libmagic=32-bit;;
12977 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12978 libsuff=32 shlibsuff=N32 libmagic=N32;;
12979 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12980 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12981 *) libsuff= shlibsuff= libmagic=never-match;;
12982 esac
12983 ;;
12984 esac
12985 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12986 shlibpath_overrides_runpath=no
12987 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12988 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12989 hardcode_into_libs=yes
12990 ;;
12991
12992 # No shared lib support for Linux oldld, aout, or coff.
12993 linux*oldld* | linux*aout* | linux*coff*)
12994 dynamic_linker=no
12995 ;;
12996
12997 # This must be Linux ELF.
12998 linux* | k*bsd*-gnu)
12999 version_type=linux
13000 need_lib_prefix=no
13001 need_version=no
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13003 soname_spec='${libname}${release}${shared_ext}$major'
13004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=no
13007 # This implies no fast_install, which is unacceptable.
13008 # Some rework will be needed to allow for fast_install
13009 # before this can be enabled.
13010 hardcode_into_libs=yes
13011
13012 # find out which ABI we are using
13013 libsuff=
13014 case "$host_cpu" in
13015 x86_64*|s390x*|powerpc64*)
13016 echo '#line 13016 "configure"' > conftest.$ac_ext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; then
13022 case `/usr/bin/file conftest.$ac_objext` in
13023 *64-bit*)
13024 libsuff=64
13025 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13026 ;;
13027 esac
13028 fi
13029 rm -rf conftest*
13030 ;;
13031 esac
13032
13033 # Append ld.so.conf contents to the search path
13034 if test -f /etc/ld.so.conf; then
13035 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' ' '`
13036 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13037 fi
13038
13039 # We used to test for /lib/ld.so.1 and disable shared libraries on
13040 # powerpc, because MkLinux only supported shared libraries with the
13041 # GNU dynamic linker. Since this was broken with cross compilers,
13042 # most powerpc-linux boxes support dynamic linking these days and
13043 # people can always --disable-shared, the test was removed, and we
13044 # assume the GNU/Linux dynamic linker is in use.
13045 dynamic_linker='GNU/Linux ld.so'
13046 ;;
13047
13048 netbsd*)
13049 version_type=sunos
13050 need_lib_prefix=no
13051 need_version=no
13052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13055 dynamic_linker='NetBSD (a.out) ld.so'
13056 else
13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13058 soname_spec='${libname}${release}${shared_ext}$major'
13059 dynamic_linker='NetBSD ld.elf_so'
13060 fi
13061 shlibpath_var=LD_LIBRARY_PATH
13062 shlibpath_overrides_runpath=yes
13063 hardcode_into_libs=yes
13064 ;;
13065
13066 newsos6)
13067 version_type=linux
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069 shlibpath_var=LD_LIBRARY_PATH
13070 shlibpath_overrides_runpath=yes
13071 ;;
13072
13073 nto-qnx*)
13074 version_type=linux
13075 need_lib_prefix=no
13076 need_version=no
13077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 soname_spec='${libname}${release}${shared_ext}$major'
13079 shlibpath_var=LD_LIBRARY_PATH
13080 shlibpath_overrides_runpath=yes
13081 ;;
13082
13083 openbsd*)
13084 version_type=sunos
13085 sys_lib_dlsearch_path_spec="/usr/lib"
13086 need_lib_prefix=no
13087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13088 case $host_os in
13089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13090 *) need_version=no ;;
13091 esac
13092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13096 case $host_os in
13097 openbsd2.[89] | openbsd2.[89].*)
13098 shlibpath_overrides_runpath=no
13099 ;;
13100 *)
13101 shlibpath_overrides_runpath=yes
13102 ;;
13103 esac
13104 else
13105 shlibpath_overrides_runpath=yes
13106 fi
13107 ;;
13108
13109 os2*)
13110 libname_spec='$name'
13111 shrext_cmds=".dll"
13112 need_lib_prefix=no
13113 library_names_spec='$libname${shared_ext} $libname.a'
13114 dynamic_linker='OS/2 ld.exe'
13115 shlibpath_var=LIBPATH
13116 ;;
13117
13118 osf3* | osf4* | osf5*)
13119 version_type=osf
13120 need_lib_prefix=no
13121 need_version=no
13122 soname_spec='${libname}${release}${shared_ext}$major'
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13127 ;;
13128
13129 rdos*)
13130 dynamic_linker=no
13131 ;;
13132
13133 solaris*)
13134 version_type=linux
13135 need_lib_prefix=no
13136 need_version=no
13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138 soname_spec='${libname}${release}${shared_ext}$major'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=yes
13141 hardcode_into_libs=yes
13142 # ldd complains unless libraries are executable
13143 postinstall_cmds='chmod +x $lib'
13144 ;;
13145
13146 sunos4*)
13147 version_type=sunos
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 shlibpath_overrides_runpath=yes
13152 if test "$with_gnu_ld" = yes; then
13153 need_lib_prefix=no
13154 fi
13155 need_version=yes
13156 ;;
13157
13158 sysv4 | sysv4.3*)
13159 version_type=linux
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 shlibpath_var=LD_LIBRARY_PATH
13163 case $host_vendor in
13164 sni)
13165 shlibpath_overrides_runpath=no
13166 need_lib_prefix=no
13167 export_dynamic_flag_spec='${wl}-Blargedynsym'
13168 runpath_var=LD_RUN_PATH
13169 ;;
13170 siemens)
13171 need_lib_prefix=no
13172 ;;
13173 motorola)
13174 need_lib_prefix=no
13175 need_version=no
13176 shlibpath_overrides_runpath=no
13177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13178 ;;
13179 esac
13180 ;;
13181
13182 sysv4*MP*)
13183 if test -d /usr/nec ;then
13184 version_type=linux
13185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13186 soname_spec='$libname${shared_ext}.$major'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 fi
13189 ;;
13190
13191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13192 version_type=freebsd-elf
13193 need_lib_prefix=no
13194 need_version=no
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
13198 hardcode_into_libs=yes
13199 if test "$with_gnu_ld" = yes; then
13200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13201 shlibpath_overrides_runpath=no
13202 else
13203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13204 shlibpath_overrides_runpath=yes
13205 case $host_os in
13206 sco3.2v5*)
13207 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13208 ;;
13209 esac
13210 fi
13211 sys_lib_dlsearch_path_spec='/usr/lib'
13212 ;;
13213
13214 uts4*)
13215 version_type=linux
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13217 soname_spec='${libname}${release}${shared_ext}$major'
13218 shlibpath_var=LD_LIBRARY_PATH
13219 ;;
13220
13221 *)
13222 dynamic_linker=no
13223 ;;
13224 esac
13225 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13226 echo "${ECHO_T}$dynamic_linker" >&6; }
13227 test "$dynamic_linker" = no && can_build_shared=no
13228
13229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13230 if test "$GCC" = yes; then
13231 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13232 fi
13233
13234 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13235 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13236 hardcode_action_CXX=
13237 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13238 test -n "$runpath_var_CXX" || \
13239 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13240
13241 # We can hardcode non-existant directories.
13242 if test "$hardcode_direct_CXX" != no &&
13243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13244 # have to relink, otherwise we might link with an installed library
13245 # when we should be linking with a yet-to-be-installed one
13246 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13247 test "$hardcode_minus_L_CXX" != no; then
13248 # Linking always hardcodes the temporary library directory.
13249 hardcode_action_CXX=relink
13250 else
13251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13252 hardcode_action_CXX=immediate
13253 fi
13254 else
13255 # We cannot hardcode anything, or else we can only hardcode existing
13256 # directories.
13257 hardcode_action_CXX=unsupported
13258 fi
13259 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13260 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13261
13262 if test "$hardcode_action_CXX" = relink; then
13263 # Fast installation is not supported
13264 enable_fast_install=no
13265 elif test "$shlibpath_overrides_runpath" = yes ||
13266 test "$enable_shared" = no; then
13267 # Fast installation is not necessary
13268 enable_fast_install=needless
13269 fi
13270
13271
13272 # The else clause should only fire when bootstrapping the
13273 # libtool distribution, otherwise you forgot to ship ltmain.sh
13274 # with your package, and you will get complaints that there are
13275 # no rules to generate ltmain.sh.
13276 if test -f "$ltmain"; then
13277 # See if we are running on zsh, and set the options which allow our commands through
13278 # without removal of \ escapes.
13279 if test -n "${ZSH_VERSION+set}" ; then
13280 setopt NO_GLOB_SUBST
13281 fi
13282 # Now quote all the things that may contain metacharacters while being
13283 # careful not to overquote the AC_SUBSTed values. We take copies of the
13284 # variables and quote the copies for generation of the libtool script.
13285 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13286 SED SHELL STRIP \
13287 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13288 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13289 deplibs_check_method reload_flag reload_cmds need_locks \
13290 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13291 lt_cv_sys_global_symbol_to_c_name_address \
13292 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13293 old_postinstall_cmds old_postuninstall_cmds \
13294 compiler_CXX \
13295 CC_CXX \
13296 LD_CXX \
13297 lt_prog_compiler_wl_CXX \
13298 lt_prog_compiler_pic_CXX \
13299 lt_prog_compiler_static_CXX \
13300 lt_prog_compiler_no_builtin_flag_CXX \
13301 export_dynamic_flag_spec_CXX \
13302 thread_safe_flag_spec_CXX \
13303 whole_archive_flag_spec_CXX \
13304 enable_shared_with_static_runtimes_CXX \
13305 old_archive_cmds_CXX \
13306 old_archive_from_new_cmds_CXX \
13307 predep_objects_CXX \
13308 postdep_objects_CXX \
13309 predeps_CXX \
13310 postdeps_CXX \
13311 compiler_lib_search_path_CXX \
13312 archive_cmds_CXX \
13313 archive_expsym_cmds_CXX \
13314 postinstall_cmds_CXX \
13315 postuninstall_cmds_CXX \
13316 old_archive_from_expsyms_cmds_CXX \
13317 allow_undefined_flag_CXX \
13318 no_undefined_flag_CXX \
13319 export_symbols_cmds_CXX \
13320 hardcode_libdir_flag_spec_CXX \
13321 hardcode_libdir_flag_spec_ld_CXX \
13322 hardcode_libdir_separator_CXX \
13323 hardcode_automatic_CXX \
13324 module_cmds_CXX \
13325 module_expsym_cmds_CXX \
13326 lt_cv_prog_compiler_c_o_CXX \
13327 fix_srcfile_path_CXX \
13328 exclude_expsyms_CXX \
13329 include_expsyms_CXX; do
13330
13331 case $var in
13332 old_archive_cmds_CXX | \
13333 old_archive_from_new_cmds_CXX | \
13334 archive_cmds_CXX | \
13335 archive_expsym_cmds_CXX | \
13336 module_cmds_CXX | \
13337 module_expsym_cmds_CXX | \
13338 old_archive_from_expsyms_cmds_CXX | \
13339 export_symbols_cmds_CXX | \
13340 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13341 postinstall_cmds | postuninstall_cmds | \
13342 old_postinstall_cmds | old_postuninstall_cmds | \
13343 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13344 # Double-quote double-evaled strings.
13345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13346 ;;
13347 *)
13348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13349 ;;
13350 esac
13351 done
13352
13353 case $lt_echo in
13354 *'\$0 --fallback-echo"')
13355 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13356 ;;
13357 esac
13358
13359 cfgfile="$ofile"
13360
13361 cat <<__EOF__ >> "$cfgfile"
13362 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13363
13364 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13365
13366 # Shell to use when invoking shell scripts.
13367 SHELL=$lt_SHELL
13368
13369 # Whether or not to build shared libraries.
13370 build_libtool_libs=$enable_shared
13371
13372 # Whether or not to build static libraries.
13373 build_old_libs=$enable_static
13374
13375 # Whether or not to add -lc for building shared libraries.
13376 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13377
13378 # Whether or not to disallow shared libs when runtime libs are static
13379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13380
13381 # Whether or not to optimize for fast installation.
13382 fast_install=$enable_fast_install
13383
13384 # The host system.
13385 host_alias=$host_alias
13386 host=$host
13387 host_os=$host_os
13388
13389 # The build system.
13390 build_alias=$build_alias
13391 build=$build
13392 build_os=$build_os
13393
13394 # An echo program that does not interpret backslashes.
13395 echo=$lt_echo
13396
13397 # The archiver.
13398 AR=$lt_AR
13399 AR_FLAGS=$lt_AR_FLAGS
13400
13401 # A C compiler.
13402 LTCC=$lt_LTCC
13403
13404 # LTCC compiler flags.
13405 LTCFLAGS=$lt_LTCFLAGS
13406
13407 # A language-specific compiler.
13408 CC=$lt_compiler_CXX
13409
13410 # Is the compiler the GNU C compiler?
13411 with_gcc=$GCC_CXX
13412
13413 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13414 gcc_ver=\`gcc -dumpversion\`
13415
13416 # An ERE matcher.
13417 EGREP=$lt_EGREP
13418
13419 # The linker used to build libraries.
13420 LD=$lt_LD_CXX
13421
13422 # Whether we need hard or soft links.
13423 LN_S=$lt_LN_S
13424
13425 # A BSD-compatible nm program.
13426 NM=$lt_NM
13427
13428 # A symbol stripping program
13429 STRIP=$lt_STRIP
13430
13431 # Used to examine libraries when file_magic_cmd begins "file"
13432 MAGIC_CMD=$MAGIC_CMD
13433
13434 # Used on cygwin: DLL creation program.
13435 DLLTOOL="$DLLTOOL"
13436
13437 # Used on cygwin: object dumper.
13438 OBJDUMP="$OBJDUMP"
13439
13440 # Used on cygwin: assembler.
13441 AS="$AS"
13442
13443 # The name of the directory that contains temporary libtool files.
13444 objdir=$objdir
13445
13446 # How to create reloadable object files.
13447 reload_flag=$lt_reload_flag
13448 reload_cmds=$lt_reload_cmds
13449
13450 # How to pass a linker flag through the compiler.
13451 wl=$lt_lt_prog_compiler_wl_CXX
13452
13453 # Object file suffix (normally "o").
13454 objext="$ac_objext"
13455
13456 # Old archive suffix (normally "a").
13457 libext="$libext"
13458
13459 # Shared library suffix (normally ".so").
13460 shrext_cmds='$shrext_cmds'
13461
13462 # Executable file suffix (normally "").
13463 exeext="$exeext"
13464
13465 # Additional compiler flags for building library objects.
13466 pic_flag=$lt_lt_prog_compiler_pic_CXX
13467 pic_mode=$pic_mode
13468
13469 # What is the maximum length of a command?
13470 max_cmd_len=$lt_cv_sys_max_cmd_len
13471
13472 # Does compiler simultaneously support -c and -o options?
13473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13474
13475 # Must we lock files when doing compilation?
13476 need_locks=$lt_need_locks
13477
13478 # Do we need the lib prefix for modules?
13479 need_lib_prefix=$need_lib_prefix
13480
13481 # Do we need a version for libraries?
13482 need_version=$need_version
13483
13484 # Whether dlopen is supported.
13485 dlopen_support=$enable_dlopen
13486
13487 # Whether dlopen of programs is supported.
13488 dlopen_self=$enable_dlopen_self
13489
13490 # Whether dlopen of statically linked programs is supported.
13491 dlopen_self_static=$enable_dlopen_self_static
13492
13493 # Compiler flag to prevent dynamic linking.
13494 link_static_flag=$lt_lt_prog_compiler_static_CXX
13495
13496 # Compiler flag to turn off builtin functions.
13497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13498
13499 # Compiler flag to allow reflexive dlopens.
13500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13501
13502 # Compiler flag to generate shared objects directly from archives.
13503 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13504
13505 # Compiler flag to generate thread-safe objects.
13506 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13507
13508 # Library versioning type.
13509 version_type=$version_type
13510
13511 # Format of library name prefix.
13512 libname_spec=$lt_libname_spec
13513
13514 # List of archive names. First name is the real one, the rest are links.
13515 # The last name is the one that the linker finds with -lNAME.
13516 library_names_spec=$lt_library_names_spec
13517
13518 # The coded name of the library, if different from the real name.
13519 soname_spec=$lt_soname_spec
13520
13521 # Commands used to build and install an old-style archive.
13522 RANLIB=$lt_RANLIB
13523 old_archive_cmds=$lt_old_archive_cmds_CXX
13524 old_postinstall_cmds=$lt_old_postinstall_cmds
13525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13526
13527 # Create an old-style archive from a shared archive.
13528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13529
13530 # Create a temporary old-style archive to link instead of a shared archive.
13531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13532
13533 # Commands used to build and install a shared archive.
13534 archive_cmds=$lt_archive_cmds_CXX
13535 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13536 postinstall_cmds=$lt_postinstall_cmds
13537 postuninstall_cmds=$lt_postuninstall_cmds
13538
13539 # Commands used to build a loadable module (assumed same as above if empty)
13540 module_cmds=$lt_module_cmds_CXX
13541 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13542
13543 # Commands to strip libraries.
13544 old_striplib=$lt_old_striplib
13545 striplib=$lt_striplib
13546
13547 # Dependencies to place before the objects being linked to create a
13548 # shared library.
13549 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13550
13551 # Dependencies to place after the objects being linked to create a
13552 # shared library.
13553 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13554
13555 # Dependencies to place before the objects being linked to create a
13556 # shared library.
13557 predeps=$lt_predeps_CXX
13558
13559 # Dependencies to place after the objects being linked to create a
13560 # shared library.
13561 postdeps=$lt_postdeps_CXX
13562
13563 # The library search path used internally by the compiler when linking
13564 # a shared library.
13565 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13566
13567 # Method to check whether dependent libraries are shared objects.
13568 deplibs_check_method=$lt_deplibs_check_method
13569
13570 # Command to use when deplibs_check_method == file_magic.
13571 file_magic_cmd=$lt_file_magic_cmd
13572
13573 # Flag that allows shared libraries with undefined symbols to be built.
13574 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13575
13576 # Flag that forces no undefined symbols.
13577 no_undefined_flag=$lt_no_undefined_flag_CXX
13578
13579 # Commands used to finish a libtool library installation in a directory.
13580 finish_cmds=$lt_finish_cmds
13581
13582 # Same as above, but a single script fragment to be evaled but not shown.
13583 finish_eval=$lt_finish_eval
13584
13585 # Take the output of nm and produce a listing of raw symbols and C names.
13586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13587
13588 # Transform the output of nm in a proper C declaration
13589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13590
13591 # Transform the output of nm in a C name address pair
13592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13593
13594 # This is the shared library runtime path variable.
13595 runpath_var=$runpath_var
13596
13597 # This is the shared library path variable.
13598 shlibpath_var=$shlibpath_var
13599
13600 # Is shlibpath searched before the hard-coded library search path?
13601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13602
13603 # How to hardcode a shared library path into an executable.
13604 hardcode_action=$hardcode_action_CXX
13605
13606 # Whether we should hardcode library paths into libraries.
13607 hardcode_into_libs=$hardcode_into_libs
13608
13609 # Flag to hardcode \$libdir into a binary during linking.
13610 # This must work even if \$libdir does not exist.
13611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13612
13613 # If ld is used when linking, flag to hardcode \$libdir into
13614 # a binary during linking. This must work even if \$libdir does
13615 # not exist.
13616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13617
13618 # Whether we need a single -rpath flag with a separated argument.
13619 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13620
13621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13622 # resulting binary.
13623 hardcode_direct=$hardcode_direct_CXX
13624
13625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13626 # resulting binary.
13627 hardcode_minus_L=$hardcode_minus_L_CXX
13628
13629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13630 # the resulting binary.
13631 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13632
13633 # Set to yes if building a shared library automatically hardcodes DIR into the library
13634 # and all subsequent libraries and executables linked against it.
13635 hardcode_automatic=$hardcode_automatic_CXX
13636
13637 # Variables whose values should be saved in libtool wrapper scripts and
13638 # restored at relink time.
13639 variables_saved_for_relink="$variables_saved_for_relink"
13640
13641 # Whether libtool must link a program against all its dependency libraries.
13642 link_all_deplibs=$link_all_deplibs_CXX
13643
13644 # Compile-time system search path for libraries
13645 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13646
13647 # Run-time system search path for libraries
13648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13649
13650 # Fix the shell variable \$srcfile for the compiler.
13651 fix_srcfile_path=$lt_fix_srcfile_path
13652
13653 # Set to yes if exported symbols are required.
13654 always_export_symbols=$always_export_symbols_CXX
13655
13656 # The commands to list exported symbols.
13657 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13658
13659 # The commands to extract the exported symbol list from a shared archive.
13660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13661
13662 # Symbols that should not be listed in the preloaded symbols.
13663 exclude_expsyms=$lt_exclude_expsyms_CXX
13664
13665 # Symbols that must always be exported.
13666 include_expsyms=$lt_include_expsyms_CXX
13667
13668 # ### END LIBTOOL TAG CONFIG: $tagname
13669
13670 __EOF__
13671
13672
13673 else
13674 # If there is no Makefile yet, we rely on a make rule to execute
13675 # `config.status --recheck' to rerun these tests and create the
13676 # libtool script then.
13677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13678 if test -f "$ltmain_in"; then
13679 test -f Makefile && make "$ltmain"
13680 fi
13681 fi
13682
13683
13684 ac_ext=c
13685 ac_cpp='$CPP $CPPFLAGS'
13686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13689
13690 CC=$lt_save_CC
13691 LDCXX=$LD
13692 LD=$lt_save_LD
13693 GCC=$lt_save_GCC
13694 with_gnu_ldcxx=$with_gnu_ld
13695 with_gnu_ld=$lt_save_with_gnu_ld
13696 lt_cv_path_LDCXX=$lt_cv_path_LD
13697 lt_cv_path_LD=$lt_save_path_LD
13698 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13699 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13700
13701 else
13702 tagname=""
13703 fi
13704 ;;
13705
13706 F77)
13707 if test -n "$F77" && test "X$F77" != "Xno"; then
13708
13709 ac_ext=f
13710 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13711 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13713
13714
13715 archive_cmds_need_lc_F77=no
13716 allow_undefined_flag_F77=
13717 always_export_symbols_F77=no
13718 archive_expsym_cmds_F77=
13719 export_dynamic_flag_spec_F77=
13720 hardcode_direct_F77=no
13721 hardcode_libdir_flag_spec_F77=
13722 hardcode_libdir_flag_spec_ld_F77=
13723 hardcode_libdir_separator_F77=
13724 hardcode_minus_L_F77=no
13725 hardcode_automatic_F77=no
13726 module_cmds_F77=
13727 module_expsym_cmds_F77=
13728 link_all_deplibs_F77=unknown
13729 old_archive_cmds_F77=$old_archive_cmds
13730 no_undefined_flag_F77=
13731 whole_archive_flag_spec_F77=
13732 enable_shared_with_static_runtimes_F77=no
13733
13734 # Source file extension for f77 test sources.
13735 ac_ext=f
13736
13737 # Object file extension for compiled f77 test sources.
13738 objext=o
13739 objext_F77=$objext
13740
13741 # Code to be used in simple compile tests
13742 lt_simple_compile_test_code="\
13743 subroutine t
13744 return
13745 end
13746 "
13747
13748 # Code to be used in simple link tests
13749 lt_simple_link_test_code="\
13750 program t
13751 end
13752 "
13753
13754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13755
13756 # If no C compiler was specified, use CC.
13757 LTCC=${LTCC-"$CC"}
13758
13759 # If no C compiler flags were specified, use CFLAGS.
13760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13761
13762 # Allow CC to be a program name with arguments.
13763 compiler=$CC
13764
13765
13766 # save warnings/boilerplate of simple test code
13767 ac_outfile=conftest.$ac_objext
13768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13770 _lt_compiler_boilerplate=`cat conftest.err`
13771 $rm conftest*
13772
13773 ac_outfile=conftest.$ac_objext
13774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13776 _lt_linker_boilerplate=`cat conftest.err`
13777 $rm conftest*
13778
13779
13780 # Allow CC to be a program name with arguments.
13781 lt_save_CC="$CC"
13782 CC=${F77-"f77"}
13783 compiler=$CC
13784 compiler_F77=$CC
13785 for cc_temp in $compiler""; do
13786 case $cc_temp in
13787 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13788 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13789 \-*) ;;
13790 *) break;;
13791 esac
13792 done
13793 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13794
13795
13796 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13797 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13798 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13799 echo "${ECHO_T}$can_build_shared" >&6; }
13800
13801 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13802 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13803 test "$can_build_shared" = "no" && enable_shared=no
13804
13805 # On AIX, shared libraries and static libraries use the same namespace, and
13806 # are all built from PIC.
13807 case $host_os in
13808 aix3*)
13809 test "$enable_shared" = yes && enable_static=no
13810 if test -n "$RANLIB"; then
13811 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13812 postinstall_cmds='$RANLIB $lib'
13813 fi
13814 ;;
13815 aix4* | aix5*)
13816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13817 test "$enable_shared" = yes && enable_static=no
13818 fi
13819 ;;
13820 esac
13821 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13822 echo "${ECHO_T}$enable_shared" >&6; }
13823
13824 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13825 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13826 # Make sure either enable_shared or enable_static is yes.
13827 test "$enable_shared" = yes || enable_static=yes
13828 { echo "$as_me:$LINENO: result: $enable_static" >&5
13829 echo "${ECHO_T}$enable_static" >&6; }
13830
13831 GCC_F77="$G77"
13832 LD_F77="$LD"
13833
13834 lt_prog_compiler_wl_F77=
13835 lt_prog_compiler_pic_F77=
13836 lt_prog_compiler_static_F77=
13837
13838 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13839 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13840
13841 if test "$GCC" = yes; then
13842 lt_prog_compiler_wl_F77='-Wl,'
13843 lt_prog_compiler_static_F77='-static'
13844
13845 case $host_os in
13846 aix*)
13847 # All AIX code is PIC.
13848 if test "$host_cpu" = ia64; then
13849 # AIX 5 now supports IA64 processor
13850 lt_prog_compiler_static_F77='-Bstatic'
13851 fi
13852 ;;
13853
13854 amigaos*)
13855 # FIXME: we need at least 68020 code to build shared libraries, but
13856 # adding the `-m68020' flag to GCC prevents building anything better,
13857 # like `-m68040'.
13858 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13859 ;;
13860
13861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13862 # PIC is the default for these OSes.
13863 ;;
13864
13865 mingw* | cygwin* | pw32* | os2*)
13866 # This hack is so that the source file can tell whether it is being
13867 # built for inclusion in a dll (and should export symbols for example).
13868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13869 # (--disable-auto-import) libraries
13870 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13871 ;;
13872
13873 darwin* | rhapsody*)
13874 # PIC is the default on this platform
13875 # Common symbols not allowed in MH_DYLIB files
13876 lt_prog_compiler_pic_F77='-fno-common'
13877 ;;
13878
13879 interix[3-9]*)
13880 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13881 # Instead, we relocate shared libraries at runtime.
13882 ;;
13883
13884 msdosdjgpp*)
13885 # Just because we use GCC doesn't mean we suddenly get shared libraries
13886 # on systems that don't support them.
13887 lt_prog_compiler_can_build_shared_F77=no
13888 enable_shared=no
13889 ;;
13890
13891 sysv4*MP*)
13892 if test -d /usr/nec; then
13893 lt_prog_compiler_pic_F77=-Kconform_pic
13894 fi
13895 ;;
13896
13897 hpux*)
13898 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13899 # not for PA HP-UX.
13900 case $host_cpu in
13901 hppa*64*|ia64*)
13902 # +Z the default
13903 ;;
13904 *)
13905 lt_prog_compiler_pic_F77='-fPIC'
13906 ;;
13907 esac
13908 ;;
13909
13910 *)
13911 lt_prog_compiler_pic_F77='-fPIC'
13912 ;;
13913 esac
13914 else
13915 # PORTME Check for flag to pass linker flags through the system compiler.
13916 case $host_os in
13917 aix*)
13918 lt_prog_compiler_wl_F77='-Wl,'
13919 if test "$host_cpu" = ia64; then
13920 # AIX 5 now supports IA64 processor
13921 lt_prog_compiler_static_F77='-Bstatic'
13922 else
13923 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13924 fi
13925 ;;
13926 darwin*)
13927 # PIC is the default on this platform
13928 # Common symbols not allowed in MH_DYLIB files
13929 case $cc_basename in
13930 xlc*)
13931 lt_prog_compiler_pic_F77='-qnocommon'
13932 lt_prog_compiler_wl_F77='-Wl,'
13933 ;;
13934 esac
13935 ;;
13936
13937 mingw* | cygwin* | pw32* | os2*)
13938 # This hack is so that the source file can tell whether it is being
13939 # built for inclusion in a dll (and should export symbols for example).
13940 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13941 ;;
13942
13943 hpux9* | hpux10* | hpux11*)
13944 lt_prog_compiler_wl_F77='-Wl,'
13945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946 # not for PA HP-UX.
13947 case $host_cpu in
13948 hppa*64*|ia64*)
13949 # +Z the default
13950 ;;
13951 *)
13952 lt_prog_compiler_pic_F77='+Z'
13953 ;;
13954 esac
13955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13956 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13957 ;;
13958
13959 irix5* | irix6* | nonstopux*)
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 # PIC (with -KPIC) is the default.
13962 lt_prog_compiler_static_F77='-non_shared'
13963 ;;
13964
13965 newsos6)
13966 lt_prog_compiler_pic_F77='-KPIC'
13967 lt_prog_compiler_static_F77='-Bstatic'
13968 ;;
13969
13970 linux* | k*bsd*-gnu)
13971 case $cc_basename in
13972 icc* | ecc*)
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 lt_prog_compiler_pic_F77='-KPIC'
13975 lt_prog_compiler_static_F77='-static'
13976 ;;
13977 pgcc* | pgf77* | pgf90* | pgf95*)
13978 # Portland Group compilers (*not* the Pentium gcc compiler,
13979 # which looks to be a dead project)
13980 lt_prog_compiler_wl_F77='-Wl,'
13981 lt_prog_compiler_pic_F77='-fpic'
13982 lt_prog_compiler_static_F77='-Bstatic'
13983 ;;
13984 ccc*)
13985 lt_prog_compiler_wl_F77='-Wl,'
13986 # All Alpha code is PIC.
13987 lt_prog_compiler_static_F77='-non_shared'
13988 ;;
13989 *)
13990 case `$CC -V 2>&1 | sed 5q` in
13991 *Sun\ C*)
13992 # Sun C 5.9
13993 lt_prog_compiler_pic_F77='-KPIC'
13994 lt_prog_compiler_static_F77='-Bstatic'
13995 lt_prog_compiler_wl_F77='-Wl,'
13996 ;;
13997 *Sun\ F*)
13998 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13999 lt_prog_compiler_pic_F77='-KPIC'
14000 lt_prog_compiler_static_F77='-Bstatic'
14001 lt_prog_compiler_wl_F77=''
14002 ;;
14003 esac
14004 ;;
14005 esac
14006 ;;
14007
14008 osf3* | osf4* | osf5*)
14009 lt_prog_compiler_wl_F77='-Wl,'
14010 # All OSF/1 code is PIC.
14011 lt_prog_compiler_static_F77='-non_shared'
14012 ;;
14013
14014 rdos*)
14015 lt_prog_compiler_static_F77='-non_shared'
14016 ;;
14017
14018 solaris*)
14019 lt_prog_compiler_pic_F77='-KPIC'
14020 lt_prog_compiler_static_F77='-Bstatic'
14021 case $cc_basename in
14022 f77* | f90* | f95*)
14023 lt_prog_compiler_wl_F77='-Qoption ld ';;
14024 *)
14025 lt_prog_compiler_wl_F77='-Wl,';;
14026 esac
14027 ;;
14028
14029 sunos4*)
14030 lt_prog_compiler_wl_F77='-Qoption ld '
14031 lt_prog_compiler_pic_F77='-PIC'
14032 lt_prog_compiler_static_F77='-Bstatic'
14033 ;;
14034
14035 sysv4 | sysv4.2uw2* | sysv4.3*)
14036 lt_prog_compiler_wl_F77='-Wl,'
14037 lt_prog_compiler_pic_F77='-KPIC'
14038 lt_prog_compiler_static_F77='-Bstatic'
14039 ;;
14040
14041 sysv4*MP*)
14042 if test -d /usr/nec ;then
14043 lt_prog_compiler_pic_F77='-Kconform_pic'
14044 lt_prog_compiler_static_F77='-Bstatic'
14045 fi
14046 ;;
14047
14048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14049 lt_prog_compiler_wl_F77='-Wl,'
14050 lt_prog_compiler_pic_F77='-KPIC'
14051 lt_prog_compiler_static_F77='-Bstatic'
14052 ;;
14053
14054 unicos*)
14055 lt_prog_compiler_wl_F77='-Wl,'
14056 lt_prog_compiler_can_build_shared_F77=no
14057 ;;
14058
14059 uts4*)
14060 lt_prog_compiler_pic_F77='-pic'
14061 lt_prog_compiler_static_F77='-Bstatic'
14062 ;;
14063
14064 *)
14065 lt_prog_compiler_can_build_shared_F77=no
14066 ;;
14067 esac
14068 fi
14069
14070 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14071 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14072
14073 #
14074 # Check to make sure the PIC flag actually works.
14075 #
14076 if test -n "$lt_prog_compiler_pic_F77"; then
14077
14078 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14079 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14080 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083 lt_prog_compiler_pic_works_F77=no
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14086 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14087 # Insert the option either (1) after the last *FLAGS variable, or
14088 # (2) before a word containing "conftest.", or (3) at the end.
14089 # Note that $ac_compile itself does not contain backslashes and begins
14090 # with a dollar sign (not a hyphen), so the echo should work correctly.
14091 # The option is referenced via a variable to avoid confusing sed.
14092 lt_compile=`echo "$ac_compile" | $SED \
14093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14095 -e 's:$: $lt_compiler_flag:'`
14096 (eval echo "\"\$as_me:14096: $lt_compile\"" >&5)
14097 (eval "$lt_compile" 2>conftest.err)
14098 ac_status=$?
14099 cat conftest.err >&5
14100 echo "$as_me:14100: \$? = $ac_status" >&5
14101 if (exit $ac_status) && test -s "$ac_outfile"; then
14102 # The compiler can only warn and ignore the option if not recognized
14103 # So say no if there are warnings other than the usual output.
14104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14107 lt_prog_compiler_pic_works_F77=yes
14108 fi
14109 fi
14110 $rm conftest*
14111
14112 fi
14113 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14114 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14115
14116 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14117 case $lt_prog_compiler_pic_F77 in
14118 "" | " "*) ;;
14119 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14120 esac
14121 else
14122 lt_prog_compiler_pic_F77=
14123 lt_prog_compiler_can_build_shared_F77=no
14124 fi
14125
14126 fi
14127 case $host_os in
14128 # For platforms which do not support PIC, -DPIC is meaningless:
14129 *djgpp*)
14130 lt_prog_compiler_pic_F77=
14131 ;;
14132 *)
14133 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14134 ;;
14135 esac
14136
14137 #
14138 # Check to make sure the static flag actually works.
14139 #
14140 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14141 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14142 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14143 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 lt_prog_compiler_static_works_F77=no
14147 save_LDFLAGS="$LDFLAGS"
14148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14151 # The linker can only warn and ignore the option if not recognized
14152 # So say no if there are warnings
14153 if test -s conftest.err; then
14154 # Append any errors to the config.log.
14155 cat conftest.err 1>&5
14156 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14158 if diff conftest.exp conftest.er2 >/dev/null; then
14159 lt_prog_compiler_static_works_F77=yes
14160 fi
14161 else
14162 lt_prog_compiler_static_works_F77=yes
14163 fi
14164 fi
14165 $rm conftest*
14166 LDFLAGS="$save_LDFLAGS"
14167
14168 fi
14169 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14170 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14171
14172 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14173 :
14174 else
14175 lt_prog_compiler_static_F77=
14176 fi
14177
14178
14179 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14180 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14181 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184 lt_cv_prog_compiler_c_o_F77=no
14185 $rm -r conftest 2>/dev/null
14186 mkdir conftest
14187 cd conftest
14188 mkdir out
14189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14190
14191 lt_compiler_flag="-o out/conftest2.$ac_objext"
14192 # Insert the option either (1) after the last *FLAGS variable, or
14193 # (2) before a word containing "conftest.", or (3) at the end.
14194 # Note that $ac_compile itself does not contain backslashes and begins
14195 # with a dollar sign (not a hyphen), so the echo should work correctly.
14196 lt_compile=`echo "$ac_compile" | $SED \
14197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14199 -e 's:$: $lt_compiler_flag:'`
14200 (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
14201 (eval "$lt_compile" 2>out/conftest.err)
14202 ac_status=$?
14203 cat out/conftest.err >&5
14204 echo "$as_me:14204: \$? = $ac_status" >&5
14205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14206 then
14207 # The compiler can only warn and ignore the option if not recognized
14208 # So say no if there are warnings
14209 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14212 lt_cv_prog_compiler_c_o_F77=yes
14213 fi
14214 fi
14215 chmod u+w . 2>&5
14216 $rm conftest*
14217 # SGI C++ compiler will create directory out/ii_files/ for
14218 # template instantiation
14219 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14220 $rm out/* && rmdir out
14221 cd ..
14222 rmdir conftest
14223 $rm conftest*
14224
14225 fi
14226 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14227 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14228
14229
14230 hard_links="nottested"
14231 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14232 # do not overwrite the value of need_locks provided by the user
14233 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14234 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14235 hard_links=yes
14236 $rm conftest*
14237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14238 touch conftest.a
14239 ln conftest.a conftest.b 2>&5 || hard_links=no
14240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14241 { echo "$as_me:$LINENO: result: $hard_links" >&5
14242 echo "${ECHO_T}$hard_links" >&6; }
14243 if test "$hard_links" = no; then
14244 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14245 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14246 need_locks=warn
14247 fi
14248 else
14249 need_locks=no
14250 fi
14251
14252 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14253 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14254
14255 runpath_var=
14256 allow_undefined_flag_F77=
14257 enable_shared_with_static_runtimes_F77=no
14258 archive_cmds_F77=
14259 archive_expsym_cmds_F77=
14260 old_archive_From_new_cmds_F77=
14261 old_archive_from_expsyms_cmds_F77=
14262 export_dynamic_flag_spec_F77=
14263 whole_archive_flag_spec_F77=
14264 thread_safe_flag_spec_F77=
14265 hardcode_libdir_flag_spec_F77=
14266 hardcode_libdir_flag_spec_ld_F77=
14267 hardcode_libdir_separator_F77=
14268 hardcode_direct_F77=no
14269 hardcode_minus_L_F77=no
14270 hardcode_shlibpath_var_F77=unsupported
14271 link_all_deplibs_F77=unknown
14272 hardcode_automatic_F77=no
14273 module_cmds_F77=
14274 module_expsym_cmds_F77=
14275 always_export_symbols_F77=no
14276 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14277 # include_expsyms should be a list of space-separated symbols to be *always*
14278 # included in the symbol list
14279 include_expsyms_F77=
14280 # exclude_expsyms can be an extended regexp of symbols to exclude
14281 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14282 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14283 # as well as any symbol that contains `d'.
14284 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14285 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14286 # platforms (ab)use it in PIC code, but their linkers get confused if
14287 # the symbol is explicitly referenced. Since portable code cannot
14288 # rely on this symbol name, it's probably fine to never include it in
14289 # preloaded symbol tables.
14290 extract_expsyms_cmds=
14291 # Just being paranoid about ensuring that cc_basename is set.
14292 for cc_temp in $compiler""; do
14293 case $cc_temp in
14294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14296 \-*) ;;
14297 *) break;;
14298 esac
14299 done
14300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14301
14302 case $host_os in
14303 cygwin* | mingw* | pw32*)
14304 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14305 # When not using gcc, we currently assume that we are using
14306 # Microsoft Visual C++.
14307 if test "$GCC" != yes; then
14308 with_gnu_ld=no
14309 fi
14310 ;;
14311 interix*)
14312 # we just hope/assume this is gcc and not c89 (= MSVC++)
14313 with_gnu_ld=yes
14314 ;;
14315 openbsd*)
14316 with_gnu_ld=no
14317 ;;
14318 esac
14319
14320 ld_shlibs_F77=yes
14321 if test "$with_gnu_ld" = yes; then
14322 # If archive_cmds runs LD, not CC, wlarc should be empty
14323 wlarc='${wl}'
14324
14325 # Set some defaults for GNU ld with shared library support. These
14326 # are reset later if shared libraries are not supported. Putting them
14327 # here allows them to be overridden if necessary.
14328 runpath_var=LD_RUN_PATH
14329 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14330 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14331 # ancient GNU ld didn't support --whole-archive et. al.
14332 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14333 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14334 else
14335 whole_archive_flag_spec_F77=
14336 fi
14337 supports_anon_versioning=no
14338 case `$LD -v 2>/dev/null` in
14339 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14342 *\ 2.11.*) ;; # other 2.11 versions
14343 *) supports_anon_versioning=yes ;;
14344 esac
14345
14346 # See if GNU ld supports shared libraries.
14347 case $host_os in
14348 aix3* | aix4* | aix5*)
14349 # On AIX/PPC, the GNU linker is very broken
14350 if test "$host_cpu" != ia64; then
14351 ld_shlibs_F77=no
14352 cat <<EOF 1>&2
14353
14354 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14355 *** to be unable to reliably create shared libraries on AIX.
14356 *** Therefore, libtool is disabling shared libraries support. If you
14357 *** really care for shared libraries, you may want to modify your PATH
14358 *** so that a non-GNU linker is found, and then restart.
14359
14360 EOF
14361 fi
14362 ;;
14363
14364 amigaos*)
14365 archive_cmds_F77='$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)'
14366 hardcode_libdir_flag_spec_F77='-L$libdir'
14367 hardcode_minus_L_F77=yes
14368
14369 # Samuel A. Falvo II <[email protected]> reports
14370 # that the semantics of dynamic libraries on AmigaOS, at least up
14371 # to version 4, is to share data among multiple programs linked
14372 # with the same dynamic library. Since this doesn't match the
14373 # behavior of shared libraries on other platforms, we can't use
14374 # them.
14375 ld_shlibs_F77=no
14376 ;;
14377
14378 beos*)
14379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14380 allow_undefined_flag_F77=unsupported
14381 # Joseph Beckenbach <[email protected]> says some releases of gcc
14382 # support --undefined. This deserves some investigation. FIXME
14383 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14384 else
14385 ld_shlibs_F77=no
14386 fi
14387 ;;
14388
14389 cygwin* | mingw* | pw32*)
14390 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14391 # as there is no search path for DLLs.
14392 hardcode_libdir_flag_spec_F77='-L$libdir'
14393 allow_undefined_flag_F77=unsupported
14394 always_export_symbols_F77=no
14395 enable_shared_with_static_runtimes_F77=yes
14396 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14397
14398 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14399 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14400 # If the export-symbols file already is a .def file (1st line
14401 # is EXPORTS), use it as is; otherwise, prepend...
14402 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14403 cp $export_symbols $output_objdir/$soname.def;
14404 else
14405 echo EXPORTS > $output_objdir/$soname.def;
14406 cat $export_symbols >> $output_objdir/$soname.def;
14407 fi~
14408 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14409 else
14410 ld_shlibs_F77=no
14411 fi
14412 ;;
14413
14414 interix[3-9]*)
14415 hardcode_direct_F77=no
14416 hardcode_shlibpath_var_F77=no
14417 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14418 export_dynamic_flag_spec_F77='${wl}-E'
14419 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14420 # Instead, shared libraries are loaded at an image base (0x10000000 by
14421 # default) and relocated if they conflict, which is a slow very memory
14422 # consuming and fragmenting process. To avoid this, we pick a random,
14423 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14424 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14425 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14426 archive_expsym_cmds_F77='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'
14427 ;;
14428
14429 gnu* | linux* | k*bsd*-gnu)
14430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14431 tmp_addflag=
14432 case $cc_basename,$host_cpu in
14433 pgcc*) # Portland Group C compiler
14434 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14435 tmp_addflag=' $pic_flag'
14436 ;;
14437 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14438 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14439 tmp_addflag=' $pic_flag -Mnomain' ;;
14440 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14441 tmp_addflag=' -i_dynamic' ;;
14442 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14443 tmp_addflag=' -i_dynamic -nofor_main' ;;
14444 ifc* | ifort*) # Intel Fortran compiler
14445 tmp_addflag=' -nofor_main' ;;
14446 esac
14447 case `$CC -V 2>&1 | sed 5q` in
14448 *Sun\ C*) # Sun C 5.9
14449 whole_archive_flag_spec_F77='${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'
14450 tmp_sharedflag='-G' ;;
14451 *Sun\ F*) # Sun Fortran 8.3
14452 tmp_sharedflag='-G' ;;
14453 *)
14454 tmp_sharedflag='-shared' ;;
14455 esac
14456 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14457
14458 if test $supports_anon_versioning = yes; then
14459 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14461 $echo "local: *; };" >> $output_objdir/$libname.ver~
14462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14463 fi
14464 else
14465 ld_shlibs_F77=no
14466 fi
14467 ;;
14468
14469 netbsd*)
14470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14471 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14472 wlarc=
14473 else
14474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14476 fi
14477 ;;
14478
14479 solaris*)
14480 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14481 ld_shlibs_F77=no
14482 cat <<EOF 1>&2
14483
14484 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14485 *** create shared libraries on Solaris systems. Therefore, libtool
14486 *** is disabling shared libraries support. We urge you to upgrade GNU
14487 *** binutils to release 2.9.1 or newer. Another option is to modify
14488 *** your PATH or compiler configuration so that the native linker is
14489 *** used, and then restart.
14490
14491 EOF
14492 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14493 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14495 else
14496 ld_shlibs_F77=no
14497 fi
14498 ;;
14499
14500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14501 case `$LD -v 2>&1` in
14502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14503 ld_shlibs_F77=no
14504 cat <<_LT_EOF 1>&2
14505
14506 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14507 *** reliably create shared libraries on SCO systems. Therefore, libtool
14508 *** is disabling shared libraries support. We urge you to upgrade GNU
14509 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14510 *** your PATH or compiler configuration so that the native linker is
14511 *** used, and then restart.
14512
14513 _LT_EOF
14514 ;;
14515 *)
14516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14517 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14519 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14520 else
14521 ld_shlibs_F77=no
14522 fi
14523 ;;
14524 esac
14525 ;;
14526
14527 sunos4*)
14528 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14529 wlarc=
14530 hardcode_direct_F77=yes
14531 hardcode_shlibpath_var_F77=no
14532 ;;
14533
14534 *)
14535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14536 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14537 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14538 else
14539 ld_shlibs_F77=no
14540 fi
14541 ;;
14542 esac
14543
14544 if test "$ld_shlibs_F77" = no; then
14545 runpath_var=
14546 hardcode_libdir_flag_spec_F77=
14547 export_dynamic_flag_spec_F77=
14548 whole_archive_flag_spec_F77=
14549 fi
14550 else
14551 # PORTME fill in a description of your system's linker (not GNU ld)
14552 case $host_os in
14553 aix3*)
14554 allow_undefined_flag_F77=unsupported
14555 always_export_symbols_F77=yes
14556 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14557 # Note: this linker hardcodes the directories in LIBPATH if there
14558 # are no directories specified by -L.
14559 hardcode_minus_L_F77=yes
14560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14561 # Neither direct hardcoding nor static linking is supported with a
14562 # broken collect2.
14563 hardcode_direct_F77=unsupported
14564 fi
14565 ;;
14566
14567 aix4* | aix5*)
14568 if test "$host_cpu" = ia64; then
14569 # On IA64, the linker does run time linking by default, so we don't
14570 # have to do anything special.
14571 aix_use_runtimelinking=no
14572 exp_sym_flag='-Bexport'
14573 no_entry_flag=""
14574 else
14575 # If we're using GNU nm, then we don't want the "-C" option.
14576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14578 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14579 else
14580 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14581 fi
14582 aix_use_runtimelinking=no
14583
14584 # Test if we are trying to use run time linking or normal
14585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14586 # need to do runtime linking.
14587 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14588 for ld_flag in $LDFLAGS; do
14589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14590 aix_use_runtimelinking=yes
14591 break
14592 fi
14593 done
14594 ;;
14595 esac
14596
14597 exp_sym_flag='-bexport'
14598 no_entry_flag='-bnoentry'
14599 fi
14600
14601 # When large executables or shared objects are built, AIX ld can
14602 # have problems creating the table of contents. If linking a library
14603 # or program results in "error TOC overflow" add -mminimal-toc to
14604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14606
14607 archive_cmds_F77=''
14608 hardcode_direct_F77=yes
14609 hardcode_libdir_separator_F77=':'
14610 link_all_deplibs_F77=yes
14611
14612 if test "$GCC" = yes; then
14613 case $host_os in aix4.[012]|aix4.[012].*)
14614 # We only want to do this on AIX 4.2 and lower, the check
14615 # below for broken collect2 doesn't work under 4.3+
14616 collect2name=`${CC} -print-prog-name=collect2`
14617 if test -f "$collect2name" && \
14618 strings "$collect2name" | grep resolve_lib_name >/dev/null
14619 then
14620 # We have reworked collect2
14621 :
14622 else
14623 # We have old collect2
14624 hardcode_direct_F77=unsupported
14625 # It fails to find uninstalled libraries when the uninstalled
14626 # path is not listed in the libpath. Setting hardcode_minus_L
14627 # to unsupported forces relinking
14628 hardcode_minus_L_F77=yes
14629 hardcode_libdir_flag_spec_F77='-L$libdir'
14630 hardcode_libdir_separator_F77=
14631 fi
14632 ;;
14633 esac
14634 shared_flag='-shared'
14635 if test "$aix_use_runtimelinking" = yes; then
14636 shared_flag="$shared_flag "'${wl}-G'
14637 fi
14638 else
14639 # not using gcc
14640 if test "$host_cpu" = ia64; then
14641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14642 # chokes on -Wl,-G. The following line is correct:
14643 shared_flag='-G'
14644 else
14645 if test "$aix_use_runtimelinking" = yes; then
14646 shared_flag='${wl}-G'
14647 else
14648 shared_flag='${wl}-bM:SRE'
14649 fi
14650 fi
14651 fi
14652
14653 # It seems that -bexpall does not export symbols beginning with
14654 # underscore (_), so it is better to generate a list of symbols to export.
14655 always_export_symbols_F77=yes
14656 if test "$aix_use_runtimelinking" = yes; then
14657 # Warning - without using the other runtime loading flags (-brtl),
14658 # -berok will link without error, but may produce a broken library.
14659 allow_undefined_flag_F77='-berok'
14660 # Determine the default libpath from the value encoded in an empty executable.
14661 cat >conftest.$ac_ext <<_ACEOF
14662 program main
14663
14664 end
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_f77_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext &&
14683 $as_test_x conftest$ac_exeext; then
14684
14685 lt_aix_libpath_sed='
14686 /Import File Strings/,/^$/ {
14687 /^0/ {
14688 s/^0 *\(.*\)$/\1/
14689 p
14690 }
14691 }'
14692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14693 # Check for a 64-bit object if we didn't find anything.
14694 if test -z "$aix_libpath"; then
14695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14696 fi
14697 else
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701
14702 fi
14703
14704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14705 conftest$ac_exeext conftest.$ac_ext
14706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14707
14708 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14709 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14710 else
14711 if test "$host_cpu" = ia64; then
14712 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14713 allow_undefined_flag_F77="-z nodefs"
14714 archive_expsym_cmds_F77="\$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"
14715 else
14716 # Determine the default libpath from the value encoded in an empty executable.
14717 cat >conftest.$ac_ext <<_ACEOF
14718 program main
14719
14720 end
14721 _ACEOF
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (ac_try="$ac_link"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_link") 2>conftest.er1
14730 ac_status=$?
14731 grep -v '^ *+' conftest.er1 >conftest.err
14732 rm -f conftest.er1
14733 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } && {
14736 test -z "$ac_f77_werror_flag" ||
14737 test ! -s conftest.err
14738 } && test -s conftest$ac_exeext &&
14739 $as_test_x conftest$ac_exeext; then
14740
14741 lt_aix_libpath_sed='
14742 /Import File Strings/,/^$/ {
14743 /^0/ {
14744 s/^0 *\(.*\)$/\1/
14745 p
14746 }
14747 }'
14748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14749 # Check for a 64-bit object if we didn't find anything.
14750 if test -z "$aix_libpath"; then
14751 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14752 fi
14753 else
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757
14758 fi
14759
14760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14761 conftest$ac_exeext conftest.$ac_ext
14762 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14763
14764 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14765 # Warning - without using the other run time loading flags,
14766 # -berok will link without error, but may produce a broken library.
14767 no_undefined_flag_F77=' ${wl}-bernotok'
14768 allow_undefined_flag_F77=' ${wl}-berok'
14769 # Exported symbols can be pulled into shared objects from archives
14770 whole_archive_flag_spec_F77='$convenience'
14771 archive_cmds_need_lc_F77=yes
14772 # This is similar to how AIX traditionally builds its shared libraries.
14773 archive_expsym_cmds_F77="\$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'
14774 fi
14775 fi
14776 ;;
14777
14778 amigaos*)
14779 archive_cmds_F77='$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)'
14780 hardcode_libdir_flag_spec_F77='-L$libdir'
14781 hardcode_minus_L_F77=yes
14782 # see comment about different semantics on the GNU ld section
14783 ld_shlibs_F77=no
14784 ;;
14785
14786 bsdi[45]*)
14787 export_dynamic_flag_spec_F77=-rdynamic
14788 ;;
14789
14790 cygwin* | mingw* | pw32*)
14791 # When not using gcc, we currently assume that we are using
14792 # Microsoft Visual C++.
14793 # hardcode_libdir_flag_spec is actually meaningless, as there is
14794 # no search path for DLLs.
14795 hardcode_libdir_flag_spec_F77=' '
14796 allow_undefined_flag_F77=unsupported
14797 # Tell ltmain to make .lib files, not .a files.
14798 libext=lib
14799 # Tell ltmain to make .dll files, not .so files.
14800 shrext_cmds=".dll"
14801 # FIXME: Setting linknames here is a bad hack.
14802 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14803 # The linker will automatically build a .lib file if we build a DLL.
14804 old_archive_From_new_cmds_F77='true'
14805 # FIXME: Should let the user specify the lib program.
14806 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14807 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14808 enable_shared_with_static_runtimes_F77=yes
14809 ;;
14810
14811 darwin* | rhapsody*)
14812 case $host_os in
14813 rhapsody* | darwin1.[012])
14814 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14815 ;;
14816 *) # Darwin 1.3 on
14817 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14818 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14819 else
14820 case ${MACOSX_DEPLOYMENT_TARGET} in
14821 10.[012])
14822 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14823 ;;
14824 10.*)
14825 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14826 ;;
14827 esac
14828 fi
14829 ;;
14830 esac
14831 archive_cmds_need_lc_F77=no
14832 hardcode_direct_F77=no
14833 hardcode_automatic_F77=yes
14834 hardcode_shlibpath_var_F77=unsupported
14835 whole_archive_flag_spec_F77=''
14836 link_all_deplibs_F77=yes
14837 if test "$GCC" = yes ; then
14838 output_verbose_link_cmd='echo'
14839 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14840 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14842 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14843 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14844 else
14845 case $cc_basename in
14846 xlc*)
14847 output_verbose_link_cmd='echo'
14848 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14849 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14850 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14851 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14852 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14853 ;;
14854 *)
14855 ld_shlibs_F77=no
14856 ;;
14857 esac
14858 fi
14859 ;;
14860
14861 dgux*)
14862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_libdir_flag_spec_F77='-L$libdir'
14864 hardcode_shlibpath_var_F77=no
14865 ;;
14866
14867 freebsd1*)
14868 ld_shlibs_F77=no
14869 ;;
14870
14871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14872 # support. Future versions do this automatically, but an explicit c++rt0.o
14873 # does not break anything, and helps significantly (at the cost of a little
14874 # extra space).
14875 freebsd2.2*)
14876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14877 hardcode_libdir_flag_spec_F77='-R$libdir'
14878 hardcode_direct_F77=yes
14879 hardcode_shlibpath_var_F77=no
14880 ;;
14881
14882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14883 freebsd2*)
14884 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_direct_F77=yes
14886 hardcode_minus_L_F77=yes
14887 hardcode_shlibpath_var_F77=no
14888 ;;
14889
14890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14891 freebsd* | dragonfly*)
14892 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14893 hardcode_libdir_flag_spec_F77='-R$libdir'
14894 hardcode_direct_F77=yes
14895 hardcode_shlibpath_var_F77=no
14896 ;;
14897
14898 hpux9*)
14899 if test "$GCC" = yes; then
14900 archive_cmds_F77='$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'
14901 else
14902 archive_cmds_F77='$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'
14903 fi
14904 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14905 hardcode_libdir_separator_F77=:
14906 hardcode_direct_F77=yes
14907
14908 # hardcode_minus_L: Not really in the search PATH,
14909 # but as the default location of the library.
14910 hardcode_minus_L_F77=yes
14911 export_dynamic_flag_spec_F77='${wl}-E'
14912 ;;
14913
14914 hpux10*)
14915 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14916 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14917 else
14918 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14919 fi
14920 if test "$with_gnu_ld" = no; then
14921 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14922 hardcode_libdir_separator_F77=:
14923
14924 hardcode_direct_F77=yes
14925 export_dynamic_flag_spec_F77='${wl}-E'
14926
14927 # hardcode_minus_L: Not really in the search PATH,
14928 # but as the default location of the library.
14929 hardcode_minus_L_F77=yes
14930 fi
14931 ;;
14932
14933 hpux11*)
14934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14935 case $host_cpu in
14936 hppa*64*)
14937 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14938 ;;
14939 ia64*)
14940 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14941 ;;
14942 *)
14943 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14944 ;;
14945 esac
14946 else
14947 case $host_cpu in
14948 hppa*64*)
14949 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14950 ;;
14951 ia64*)
14952 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14953 ;;
14954 *)
14955 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14956 ;;
14957 esac
14958 fi
14959 if test "$with_gnu_ld" = no; then
14960 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14961 hardcode_libdir_separator_F77=:
14962
14963 case $host_cpu in
14964 hppa*64*|ia64*)
14965 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14966 hardcode_direct_F77=no
14967 hardcode_shlibpath_var_F77=no
14968 ;;
14969 *)
14970 hardcode_direct_F77=yes
14971 export_dynamic_flag_spec_F77='${wl}-E'
14972
14973 # hardcode_minus_L: Not really in the search PATH,
14974 # but as the default location of the library.
14975 hardcode_minus_L_F77=yes
14976 ;;
14977 esac
14978 fi
14979 ;;
14980
14981 irix5* | irix6* | nonstopux*)
14982 if test "$GCC" = yes; then
14983 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14984 else
14985 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14986 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14987 fi
14988 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14989 hardcode_libdir_separator_F77=:
14990 link_all_deplibs_F77=yes
14991 ;;
14992
14993 netbsd*)
14994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14995 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14996 else
14997 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14998 fi
14999 hardcode_libdir_flag_spec_F77='-R$libdir'
15000 hardcode_direct_F77=yes
15001 hardcode_shlibpath_var_F77=no
15002 ;;
15003
15004 newsos6)
15005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15006 hardcode_direct_F77=yes
15007 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15008 hardcode_libdir_separator_F77=:
15009 hardcode_shlibpath_var_F77=no
15010 ;;
15011
15012 openbsd*)
15013 if test -f /usr/libexec/ld.so; then
15014 hardcode_direct_F77=yes
15015 hardcode_shlibpath_var_F77=no
15016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15017 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15018 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15019 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15020 export_dynamic_flag_spec_F77='${wl}-E'
15021 else
15022 case $host_os in
15023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15025 hardcode_libdir_flag_spec_F77='-R$libdir'
15026 ;;
15027 *)
15028 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15029 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15030 ;;
15031 esac
15032 fi
15033 else
15034 ld_shlibs_F77=no
15035 fi
15036 ;;
15037
15038 os2*)
15039 hardcode_libdir_flag_spec_F77='-L$libdir'
15040 hardcode_minus_L_F77=yes
15041 allow_undefined_flag_F77=unsupported
15042 archive_cmds_F77='$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'
15043 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15044 ;;
15045
15046 osf3*)
15047 if test "$GCC" = yes; then
15048 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15049 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15050 else
15051 allow_undefined_flag_F77=' -expect_unresolved \*'
15052 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15053 fi
15054 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15055 hardcode_libdir_separator_F77=:
15056 ;;
15057
15058 osf4* | osf5*) # as osf3* with the addition of -msym flag
15059 if test "$GCC" = yes; then
15060 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15061 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15062 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15063 else
15064 allow_undefined_flag_F77=' -expect_unresolved \*'
15065 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15066 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15067 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15068
15069 # Both c and cxx compiler support -rpath directly
15070 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15071 fi
15072 hardcode_libdir_separator_F77=:
15073 ;;
15074
15075 solaris*)
15076 no_undefined_flag_F77=' -z text'
15077 if test "$GCC" = yes; then
15078 wlarc='${wl}'
15079 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15080 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15081 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15082 else
15083 wlarc=''
15084 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15085 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15086 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15087 fi
15088 hardcode_libdir_flag_spec_F77='-R$libdir'
15089 hardcode_shlibpath_var_F77=no
15090 case $host_os in
15091 solaris2.[0-5] | solaris2.[0-5].*) ;;
15092 *)
15093 # The compiler driver will combine and reorder linker options,
15094 # but understands `-z linker_flag'. GCC discards it without `$wl',
15095 # but is careful enough not to reorder.
15096 # Supported since Solaris 2.6 (maybe 2.5.1?)
15097 if test "$GCC" = yes; then
15098 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15099 else
15100 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15101 fi
15102 ;;
15103 esac
15104 link_all_deplibs_F77=yes
15105 ;;
15106
15107 sunos4*)
15108 if test "x$host_vendor" = xsequent; then
15109 # Use $CC to link under sequent, because it throws in some extra .o
15110 # files that make .init and .fini sections work.
15111 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15112 else
15113 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15114 fi
15115 hardcode_libdir_flag_spec_F77='-L$libdir'
15116 hardcode_direct_F77=yes
15117 hardcode_minus_L_F77=yes
15118 hardcode_shlibpath_var_F77=no
15119 ;;
15120
15121 sysv4)
15122 case $host_vendor in
15123 sni)
15124 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15125 hardcode_direct_F77=yes # is this really true???
15126 ;;
15127 siemens)
15128 ## LD is ld it makes a PLAMLIB
15129 ## CC just makes a GrossModule.
15130 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15131 reload_cmds_F77='$CC -r -o $output$reload_objs'
15132 hardcode_direct_F77=no
15133 ;;
15134 motorola)
15135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15137 ;;
15138 esac
15139 runpath_var='LD_RUN_PATH'
15140 hardcode_shlibpath_var_F77=no
15141 ;;
15142
15143 sysv4.3*)
15144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_shlibpath_var_F77=no
15146 export_dynamic_flag_spec_F77='-Bexport'
15147 ;;
15148
15149 sysv4*MP*)
15150 if test -d /usr/nec; then
15151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152 hardcode_shlibpath_var_F77=no
15153 runpath_var=LD_RUN_PATH
15154 hardcode_runpath_var=yes
15155 ld_shlibs_F77=yes
15156 fi
15157 ;;
15158
15159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15160 no_undefined_flag_F77='${wl}-z,text'
15161 archive_cmds_need_lc_F77=no
15162 hardcode_shlibpath_var_F77=no
15163 runpath_var='LD_RUN_PATH'
15164
15165 if test "$GCC" = yes; then
15166 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168 else
15169 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171 fi
15172 ;;
15173
15174 sysv5* | sco3.2v5* | sco5v6*)
15175 # Note: We can NOT use -z defs as we might desire, because we do not
15176 # link with -lc, and that would cause any symbols used from libc to
15177 # always be unresolved, which means just about no library would
15178 # ever link correctly. If we're not using GNU ld we use -z text
15179 # though, which does catch some bad symbols but isn't as heavy-handed
15180 # as -z defs.
15181 no_undefined_flag_F77='${wl}-z,text'
15182 allow_undefined_flag_F77='${wl}-z,nodefs'
15183 archive_cmds_need_lc_F77=no
15184 hardcode_shlibpath_var_F77=no
15185 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15186 hardcode_libdir_separator_F77=':'
15187 link_all_deplibs_F77=yes
15188 export_dynamic_flag_spec_F77='${wl}-Bexport'
15189 runpath_var='LD_RUN_PATH'
15190
15191 if test "$GCC" = yes; then
15192 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 else
15195 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 fi
15198 ;;
15199
15200 uts4*)
15201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_libdir_flag_spec_F77='-L$libdir'
15203 hardcode_shlibpath_var_F77=no
15204 ;;
15205
15206 *)
15207 ld_shlibs_F77=no
15208 ;;
15209 esac
15210 fi
15211
15212 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15213 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15214 test "$ld_shlibs_F77" = no && can_build_shared=no
15215
15216 #
15217 # Do we need to explicitly link libc?
15218 #
15219 case "x$archive_cmds_need_lc_F77" in
15220 x|xyes)
15221 # Assume -lc should be added
15222 archive_cmds_need_lc_F77=yes
15223
15224 if test "$enable_shared" = yes && test "$GCC" = yes; then
15225 case $archive_cmds_F77 in
15226 *'~'*)
15227 # FIXME: we may have to deal with multi-command sequences.
15228 ;;
15229 '$CC '*)
15230 # Test whether the compiler implicitly links with -lc since on some
15231 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15232 # to ld, don't add -lc before -lgcc.
15233 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15235 $rm conftest*
15236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15237
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } 2>conftest.err; then
15243 soname=conftest
15244 lib=conftest
15245 libobjs=conftest.$ac_objext
15246 deplibs=
15247 wl=$lt_prog_compiler_wl_F77
15248 pic_flag=$lt_prog_compiler_pic_F77
15249 compiler_flags=-v
15250 linker_flags=-v
15251 verstring=
15252 output_objdir=.
15253 libname=conftest
15254 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15255 allow_undefined_flag_F77=
15256 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15257 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }
15261 then
15262 archive_cmds_need_lc_F77=no
15263 else
15264 archive_cmds_need_lc_F77=yes
15265 fi
15266 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15267 else
15268 cat conftest.err 1>&5
15269 fi
15270 $rm conftest*
15271 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15272 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15273 ;;
15274 esac
15275 fi
15276 ;;
15277 esac
15278
15279 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15281 library_names_spec=
15282 libname_spec='lib$name'
15283 soname_spec=
15284 shrext_cmds=".so"
15285 postinstall_cmds=
15286 postuninstall_cmds=
15287 finish_cmds=
15288 finish_eval=
15289 shlibpath_var=
15290 shlibpath_overrides_runpath=unknown
15291 version_type=none
15292 dynamic_linker="$host_os ld.so"
15293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15294
15295 need_lib_prefix=unknown
15296 hardcode_into_libs=no
15297
15298 # when you set need_version to no, make sure it does not cause -set_version
15299 # flags to be left without arguments
15300 need_version=unknown
15301
15302 case $host_os in
15303 aix3*)
15304 version_type=linux
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15306 shlibpath_var=LIBPATH
15307
15308 # AIX 3 has no versioning support, so we append a major version to the name.
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 ;;
15311
15312 aix4* | aix5*)
15313 version_type=linux
15314 need_lib_prefix=no
15315 need_version=no
15316 hardcode_into_libs=yes
15317 if test "$host_cpu" = ia64; then
15318 # AIX 5 supports IA64
15319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 else
15322 # With GCC up to 2.95.x, collect2 would create an import file
15323 # for dependence libraries. The import file would start with
15324 # the line `#! .'. This would cause the generated library to
15325 # depend on `.', always an invalid library. This was fixed in
15326 # development snapshots of GCC prior to 3.0.
15327 case $host_os in
15328 aix4 | aix4.[01] | aix4.[01].*)
15329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15330 echo ' yes '
15331 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15332 :
15333 else
15334 can_build_shared=no
15335 fi
15336 ;;
15337 esac
15338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15339 # soname into executable. Probably we can add versioning support to
15340 # collect2, so additional links can be useful in future.
15341 if test "$aix_use_runtimelinking" = yes; then
15342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15343 # instead of lib<name>.a to let people know that these are not
15344 # typical AIX shared libraries.
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346 else
15347 # We preserve .a as extension for shared libraries through AIX4.2
15348 # and later when we are not doing run time linking.
15349 library_names_spec='${libname}${release}.a $libname.a'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 fi
15352 shlibpath_var=LIBPATH
15353 fi
15354 ;;
15355
15356 amigaos*)
15357 library_names_spec='$libname.ixlibrary $libname.a'
15358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15359 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'
15360 ;;
15361
15362 beos*)
15363 library_names_spec='${libname}${shared_ext}'
15364 dynamic_linker="$host_os ld.so"
15365 shlibpath_var=LIBRARY_PATH
15366 ;;
15367
15368 bsdi[45]*)
15369 version_type=linux
15370 need_version=no
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15377 # the default ld.so.conf also contains /usr/contrib/lib and
15378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15379 # libtool to hard-code these into programs
15380 ;;
15381
15382 cygwin* | mingw* | pw32*)
15383 version_type=windows
15384 shrext_cmds=".dll"
15385 need_version=no
15386 need_lib_prefix=no
15387
15388 case $GCC,$host_os in
15389 yes,cygwin* | yes,mingw* | yes,pw32*)
15390 library_names_spec='$libname.dll.a'
15391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15392 postinstall_cmds='base_file=`basename \${file}`~
15393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15394 dldir=$destdir/`dirname \$dlpath`~
15395 test -d \$dldir || mkdir -p \$dldir~
15396 $install_prog $dir/$dlname \$dldir/$dlname~
15397 chmod a+x \$dldir/$dlname'
15398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15399 dlpath=$dir/\$dldll~
15400 $rm \$dlpath'
15401 shlibpath_overrides_runpath=yes
15402
15403 case $host_os in
15404 cygwin*)
15405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15406 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15407 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15408 ;;
15409 mingw*)
15410 # MinGW DLLs use traditional 'lib' prefix
15411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15413 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15414 # It is most probably a Windows format PATH printed by
15415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15416 # path with ; separators, and with drive letters. We can handle the
15417 # drive letters (cygwin fileutils understands them), so leave them,
15418 # especially as we might pass files found there to a mingw objdump,
15419 # which wouldn't understand a cygwinified path. Ahh.
15420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15421 else
15422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15423 fi
15424 ;;
15425 pw32*)
15426 # pw32 DLLs use 'pw' prefix rather than 'lib'
15427 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15428 ;;
15429 esac
15430 ;;
15431
15432 *)
15433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15434 ;;
15435 esac
15436 dynamic_linker='Win32 ld.exe'
15437 # FIXME: first we should search . and the directory the executable is in
15438 shlibpath_var=PATH
15439 ;;
15440
15441 darwin* | rhapsody*)
15442 dynamic_linker="$host_os dyld"
15443 version_type=darwin
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15447 soname_spec='${libname}${release}${major}$shared_ext'
15448 shlibpath_overrides_runpath=yes
15449 shlibpath_var=DYLD_LIBRARY_PATH
15450 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15451
15452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15453 ;;
15454
15455 dgux*)
15456 version_type=linux
15457 need_lib_prefix=no
15458 need_version=no
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 shlibpath_var=LD_LIBRARY_PATH
15462 ;;
15463
15464 freebsd1*)
15465 dynamic_linker=no
15466 ;;
15467
15468 freebsd* | dragonfly*)
15469 # DragonFly does not have aout. When/if they implement a new
15470 # versioning mechanism, adjust this.
15471 if test -x /usr/bin/objformat; then
15472 objformat=`/usr/bin/objformat`
15473 else
15474 case $host_os in
15475 freebsd[123]*) objformat=aout ;;
15476 *) objformat=elf ;;
15477 esac
15478 fi
15479 version_type=freebsd-$objformat
15480 case $version_type in
15481 freebsd-elf*)
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15483 need_version=no
15484 need_lib_prefix=no
15485 ;;
15486 freebsd-*)
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15488 need_version=yes
15489 ;;
15490 esac
15491 shlibpath_var=LD_LIBRARY_PATH
15492 case $host_os in
15493 freebsd2*)
15494 shlibpath_overrides_runpath=yes
15495 ;;
15496 freebsd3.[01]* | freebsdelf3.[01]*)
15497 shlibpath_overrides_runpath=yes
15498 hardcode_into_libs=yes
15499 ;;
15500 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15501 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15502 shlibpath_overrides_runpath=no
15503 hardcode_into_libs=yes
15504 ;;
15505 *) # from 4.6 on, and DragonFly
15506 shlibpath_overrides_runpath=yes
15507 hardcode_into_libs=yes
15508 ;;
15509 esac
15510 ;;
15511
15512 gnu*)
15513 version_type=linux
15514 need_lib_prefix=no
15515 need_version=no
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 hardcode_into_libs=yes
15520 ;;
15521
15522 hpux9* | hpux10* | hpux11*)
15523 # Give a soname corresponding to the major version so that dld.sl refuses to
15524 # link against other versions.
15525 version_type=sunos
15526 need_lib_prefix=no
15527 need_version=no
15528 case $host_cpu in
15529 ia64*)
15530 shrext_cmds='.so'
15531 hardcode_into_libs=yes
15532 dynamic_linker="$host_os dld.so"
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 if test "X$HPUX_IA64_MODE" = X32; then
15538 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15539 else
15540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15541 fi
15542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15543 ;;
15544 hppa*64*)
15545 shrext_cmds='.sl'
15546 hardcode_into_libs=yes
15547 dynamic_linker="$host_os dld.sl"
15548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15554 ;;
15555 *)
15556 shrext_cmds='.sl'
15557 dynamic_linker="$host_os dld.sl"
15558 shlibpath_var=SHLIB_PATH
15559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 ;;
15563 esac
15564 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15565 postinstall_cmds='chmod 555 $lib'
15566 ;;
15567
15568 interix[3-9]*)
15569 version_type=linux
15570 need_lib_prefix=no
15571 need_version=no
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=no
15577 hardcode_into_libs=yes
15578 ;;
15579
15580 irix5* | irix6* | nonstopux*)
15581 case $host_os in
15582 nonstopux*) version_type=nonstopux ;;
15583 *)
15584 if test "$lt_cv_prog_gnu_ld" = yes; then
15585 version_type=linux
15586 else
15587 version_type=irix
15588 fi ;;
15589 esac
15590 need_lib_prefix=no
15591 need_version=no
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15594 case $host_os in
15595 irix5* | nonstopux*)
15596 libsuff= shlibsuff=
15597 ;;
15598 *)
15599 case $LD in # libtool.m4 will add one of these switches to LD
15600 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15601 libsuff= shlibsuff= libmagic=32-bit;;
15602 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15603 libsuff=32 shlibsuff=N32 libmagic=N32;;
15604 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15605 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15606 *) libsuff= shlibsuff= libmagic=never-match;;
15607 esac
15608 ;;
15609 esac
15610 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15611 shlibpath_overrides_runpath=no
15612 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15613 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15614 hardcode_into_libs=yes
15615 ;;
15616
15617 # No shared lib support for Linux oldld, aout, or coff.
15618 linux*oldld* | linux*aout* | linux*coff*)
15619 dynamic_linker=no
15620 ;;
15621
15622 # This must be Linux ELF.
15623 linux* | k*bsd*-gnu)
15624 version_type=linux
15625 need_lib_prefix=no
15626 need_version=no
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 shlibpath_overrides_runpath=no
15632 # This implies no fast_install, which is unacceptable.
15633 # Some rework will be needed to allow for fast_install
15634 # before this can be enabled.
15635 hardcode_into_libs=yes
15636
15637 # find out which ABI we are using
15638 libsuff=
15639 case "$host_cpu" in
15640 x86_64*|s390x*|powerpc64*)
15641 echo '#line 15641 "configure"' > conftest.$ac_ext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643 (eval $ac_compile) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; then
15647 case `/usr/bin/file conftest.$ac_objext` in
15648 *64-bit*)
15649 libsuff=64
15650 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15651 ;;
15652 esac
15653 fi
15654 rm -rf conftest*
15655 ;;
15656 esac
15657
15658 # Append ld.so.conf contents to the search path
15659 if test -f /etc/ld.so.conf; then
15660 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' ' '`
15661 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15662 fi
15663
15664 # We used to test for /lib/ld.so.1 and disable shared libraries on
15665 # powerpc, because MkLinux only supported shared libraries with the
15666 # GNU dynamic linker. Since this was broken with cross compilers,
15667 # most powerpc-linux boxes support dynamic linking these days and
15668 # people can always --disable-shared, the test was removed, and we
15669 # assume the GNU/Linux dynamic linker is in use.
15670 dynamic_linker='GNU/Linux ld.so'
15671 ;;
15672
15673 netbsd*)
15674 version_type=sunos
15675 need_lib_prefix=no
15676 need_version=no
15677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15680 dynamic_linker='NetBSD (a.out) ld.so'
15681 else
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 dynamic_linker='NetBSD ld.elf_so'
15685 fi
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=yes
15688 hardcode_into_libs=yes
15689 ;;
15690
15691 newsos6)
15692 version_type=linux
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 shlibpath_overrides_runpath=yes
15696 ;;
15697
15698 nto-qnx*)
15699 version_type=linux
15700 need_lib_prefix=no
15701 need_version=no
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 ;;
15707
15708 openbsd*)
15709 version_type=sunos
15710 sys_lib_dlsearch_path_spec="/usr/lib"
15711 need_lib_prefix=no
15712 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15713 case $host_os in
15714 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15715 *) need_version=no ;;
15716 esac
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15721 case $host_os in
15722 openbsd2.[89] | openbsd2.[89].*)
15723 shlibpath_overrides_runpath=no
15724 ;;
15725 *)
15726 shlibpath_overrides_runpath=yes
15727 ;;
15728 esac
15729 else
15730 shlibpath_overrides_runpath=yes
15731 fi
15732 ;;
15733
15734 os2*)
15735 libname_spec='$name'
15736 shrext_cmds=".dll"
15737 need_lib_prefix=no
15738 library_names_spec='$libname${shared_ext} $libname.a'
15739 dynamic_linker='OS/2 ld.exe'
15740 shlibpath_var=LIBPATH
15741 ;;
15742
15743 osf3* | osf4* | osf5*)
15744 version_type=osf
15745 need_lib_prefix=no
15746 need_version=no
15747 soname_spec='${libname}${release}${shared_ext}$major'
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749 shlibpath_var=LD_LIBRARY_PATH
15750 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15751 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15752 ;;
15753
15754 rdos*)
15755 dynamic_linker=no
15756 ;;
15757
15758 solaris*)
15759 version_type=linux
15760 need_lib_prefix=no
15761 need_version=no
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 soname_spec='${libname}${release}${shared_ext}$major'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 shlibpath_overrides_runpath=yes
15766 hardcode_into_libs=yes
15767 # ldd complains unless libraries are executable
15768 postinstall_cmds='chmod +x $lib'
15769 ;;
15770
15771 sunos4*)
15772 version_type=sunos
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15774 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 shlibpath_overrides_runpath=yes
15777 if test "$with_gnu_ld" = yes; then
15778 need_lib_prefix=no
15779 fi
15780 need_version=yes
15781 ;;
15782
15783 sysv4 | sysv4.3*)
15784 version_type=linux
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 case $host_vendor in
15789 sni)
15790 shlibpath_overrides_runpath=no
15791 need_lib_prefix=no
15792 export_dynamic_flag_spec='${wl}-Blargedynsym'
15793 runpath_var=LD_RUN_PATH
15794 ;;
15795 siemens)
15796 need_lib_prefix=no
15797 ;;
15798 motorola)
15799 need_lib_prefix=no
15800 need_version=no
15801 shlibpath_overrides_runpath=no
15802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15803 ;;
15804 esac
15805 ;;
15806
15807 sysv4*MP*)
15808 if test -d /usr/nec ;then
15809 version_type=linux
15810 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15811 soname_spec='$libname${shared_ext}.$major'
15812 shlibpath_var=LD_LIBRARY_PATH
15813 fi
15814 ;;
15815
15816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15817 version_type=freebsd-elf
15818 need_lib_prefix=no
15819 need_version=no
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15821 soname_spec='${libname}${release}${shared_ext}$major'
15822 shlibpath_var=LD_LIBRARY_PATH
15823 hardcode_into_libs=yes
15824 if test "$with_gnu_ld" = yes; then
15825 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15826 shlibpath_overrides_runpath=no
15827 else
15828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15829 shlibpath_overrides_runpath=yes
15830 case $host_os in
15831 sco3.2v5*)
15832 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15833 ;;
15834 esac
15835 fi
15836 sys_lib_dlsearch_path_spec='/usr/lib'
15837 ;;
15838
15839 uts4*)
15840 version_type=linux
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 ;;
15845
15846 *)
15847 dynamic_linker=no
15848 ;;
15849 esac
15850 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15851 echo "${ECHO_T}$dynamic_linker" >&6; }
15852 test "$dynamic_linker" = no && can_build_shared=no
15853
15854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15855 if test "$GCC" = yes; then
15856 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15857 fi
15858
15859 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15860 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15861 hardcode_action_F77=
15862 if test -n "$hardcode_libdir_flag_spec_F77" || \
15863 test -n "$runpath_var_F77" || \
15864 test "X$hardcode_automatic_F77" = "Xyes" ; then
15865
15866 # We can hardcode non-existant directories.
15867 if test "$hardcode_direct_F77" != no &&
15868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15869 # have to relink, otherwise we might link with an installed library
15870 # when we should be linking with a yet-to-be-installed one
15871 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15872 test "$hardcode_minus_L_F77" != no; then
15873 # Linking always hardcodes the temporary library directory.
15874 hardcode_action_F77=relink
15875 else
15876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15877 hardcode_action_F77=immediate
15878 fi
15879 else
15880 # We cannot hardcode anything, or else we can only hardcode existing
15881 # directories.
15882 hardcode_action_F77=unsupported
15883 fi
15884 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15885 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15886
15887 if test "$hardcode_action_F77" = relink; then
15888 # Fast installation is not supported
15889 enable_fast_install=no
15890 elif test "$shlibpath_overrides_runpath" = yes ||
15891 test "$enable_shared" = no; then
15892 # Fast installation is not necessary
15893 enable_fast_install=needless
15894 fi
15895
15896
15897 # The else clause should only fire when bootstrapping the
15898 # libtool distribution, otherwise you forgot to ship ltmain.sh
15899 # with your package, and you will get complaints that there are
15900 # no rules to generate ltmain.sh.
15901 if test -f "$ltmain"; then
15902 # See if we are running on zsh, and set the options which allow our commands through
15903 # without removal of \ escapes.
15904 if test -n "${ZSH_VERSION+set}" ; then
15905 setopt NO_GLOB_SUBST
15906 fi
15907 # Now quote all the things that may contain metacharacters while being
15908 # careful not to overquote the AC_SUBSTed values. We take copies of the
15909 # variables and quote the copies for generation of the libtool script.
15910 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15911 SED SHELL STRIP \
15912 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15913 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15914 deplibs_check_method reload_flag reload_cmds need_locks \
15915 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15916 lt_cv_sys_global_symbol_to_c_name_address \
15917 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15918 old_postinstall_cmds old_postuninstall_cmds \
15919 compiler_F77 \
15920 CC_F77 \
15921 LD_F77 \
15922 lt_prog_compiler_wl_F77 \
15923 lt_prog_compiler_pic_F77 \
15924 lt_prog_compiler_static_F77 \
15925 lt_prog_compiler_no_builtin_flag_F77 \
15926 export_dynamic_flag_spec_F77 \
15927 thread_safe_flag_spec_F77 \
15928 whole_archive_flag_spec_F77 \
15929 enable_shared_with_static_runtimes_F77 \
15930 old_archive_cmds_F77 \
15931 old_archive_from_new_cmds_F77 \
15932 predep_objects_F77 \
15933 postdep_objects_F77 \
15934 predeps_F77 \
15935 postdeps_F77 \
15936 compiler_lib_search_path_F77 \
15937 archive_cmds_F77 \
15938 archive_expsym_cmds_F77 \
15939 postinstall_cmds_F77 \
15940 postuninstall_cmds_F77 \
15941 old_archive_from_expsyms_cmds_F77 \
15942 allow_undefined_flag_F77 \
15943 no_undefined_flag_F77 \
15944 export_symbols_cmds_F77 \
15945 hardcode_libdir_flag_spec_F77 \
15946 hardcode_libdir_flag_spec_ld_F77 \
15947 hardcode_libdir_separator_F77 \
15948 hardcode_automatic_F77 \
15949 module_cmds_F77 \
15950 module_expsym_cmds_F77 \
15951 lt_cv_prog_compiler_c_o_F77 \
15952 fix_srcfile_path_F77 \
15953 exclude_expsyms_F77 \
15954 include_expsyms_F77; do
15955
15956 case $var in
15957 old_archive_cmds_F77 | \
15958 old_archive_from_new_cmds_F77 | \
15959 archive_cmds_F77 | \
15960 archive_expsym_cmds_F77 | \
15961 module_cmds_F77 | \
15962 module_expsym_cmds_F77 | \
15963 old_archive_from_expsyms_cmds_F77 | \
15964 export_symbols_cmds_F77 | \
15965 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15966 postinstall_cmds | postuninstall_cmds | \
15967 old_postinstall_cmds | old_postuninstall_cmds | \
15968 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15969 # Double-quote double-evaled strings.
15970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15971 ;;
15972 *)
15973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15974 ;;
15975 esac
15976 done
15977
15978 case $lt_echo in
15979 *'\$0 --fallback-echo"')
15980 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15981 ;;
15982 esac
15983
15984 cfgfile="$ofile"
15985
15986 cat <<__EOF__ >> "$cfgfile"
15987 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15988
15989 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15990
15991 # Shell to use when invoking shell scripts.
15992 SHELL=$lt_SHELL
15993
15994 # Whether or not to build shared libraries.
15995 build_libtool_libs=$enable_shared
15996
15997 # Whether or not to build static libraries.
15998 build_old_libs=$enable_static
15999
16000 # Whether or not to add -lc for building shared libraries.
16001 build_libtool_need_lc=$archive_cmds_need_lc_F77
16002
16003 # Whether or not to disallow shared libs when runtime libs are static
16004 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16005
16006 # Whether or not to optimize for fast installation.
16007 fast_install=$enable_fast_install
16008
16009 # The host system.
16010 host_alias=$host_alias
16011 host=$host
16012 host_os=$host_os
16013
16014 # The build system.
16015 build_alias=$build_alias
16016 build=$build
16017 build_os=$build_os
16018
16019 # An echo program that does not interpret backslashes.
16020 echo=$lt_echo
16021
16022 # The archiver.
16023 AR=$lt_AR
16024 AR_FLAGS=$lt_AR_FLAGS
16025
16026 # A C compiler.
16027 LTCC=$lt_LTCC
16028
16029 # LTCC compiler flags.
16030 LTCFLAGS=$lt_LTCFLAGS
16031
16032 # A language-specific compiler.
16033 CC=$lt_compiler_F77
16034
16035 # Is the compiler the GNU C compiler?
16036 with_gcc=$GCC_F77
16037
16038 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16039 gcc_ver=\`gcc -dumpversion\`
16040
16041 # An ERE matcher.
16042 EGREP=$lt_EGREP
16043
16044 # The linker used to build libraries.
16045 LD=$lt_LD_F77
16046
16047 # Whether we need hard or soft links.
16048 LN_S=$lt_LN_S
16049
16050 # A BSD-compatible nm program.
16051 NM=$lt_NM
16052
16053 # A symbol stripping program
16054 STRIP=$lt_STRIP
16055
16056 # Used to examine libraries when file_magic_cmd begins "file"
16057 MAGIC_CMD=$MAGIC_CMD
16058
16059 # Used on cygwin: DLL creation program.
16060 DLLTOOL="$DLLTOOL"
16061
16062 # Used on cygwin: object dumper.
16063 OBJDUMP="$OBJDUMP"
16064
16065 # Used on cygwin: assembler.
16066 AS="$AS"
16067
16068 # The name of the directory that contains temporary libtool files.
16069 objdir=$objdir
16070
16071 # How to create reloadable object files.
16072 reload_flag=$lt_reload_flag
16073 reload_cmds=$lt_reload_cmds
16074
16075 # How to pass a linker flag through the compiler.
16076 wl=$lt_lt_prog_compiler_wl_F77
16077
16078 # Object file suffix (normally "o").
16079 objext="$ac_objext"
16080
16081 # Old archive suffix (normally "a").
16082 libext="$libext"
16083
16084 # Shared library suffix (normally ".so").
16085 shrext_cmds='$shrext_cmds'
16086
16087 # Executable file suffix (normally "").
16088 exeext="$exeext"
16089
16090 # Additional compiler flags for building library objects.
16091 pic_flag=$lt_lt_prog_compiler_pic_F77
16092 pic_mode=$pic_mode
16093
16094 # What is the maximum length of a command?
16095 max_cmd_len=$lt_cv_sys_max_cmd_len
16096
16097 # Does compiler simultaneously support -c and -o options?
16098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16099
16100 # Must we lock files when doing compilation?
16101 need_locks=$lt_need_locks
16102
16103 # Do we need the lib prefix for modules?
16104 need_lib_prefix=$need_lib_prefix
16105
16106 # Do we need a version for libraries?
16107 need_version=$need_version
16108
16109 # Whether dlopen is supported.
16110 dlopen_support=$enable_dlopen
16111
16112 # Whether dlopen of programs is supported.
16113 dlopen_self=$enable_dlopen_self
16114
16115 # Whether dlopen of statically linked programs is supported.
16116 dlopen_self_static=$enable_dlopen_self_static
16117
16118 # Compiler flag to prevent dynamic linking.
16119 link_static_flag=$lt_lt_prog_compiler_static_F77
16120
16121 # Compiler flag to turn off builtin functions.
16122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16123
16124 # Compiler flag to allow reflexive dlopens.
16125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16126
16127 # Compiler flag to generate shared objects directly from archives.
16128 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16129
16130 # Compiler flag to generate thread-safe objects.
16131 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16132
16133 # Library versioning type.
16134 version_type=$version_type
16135
16136 # Format of library name prefix.
16137 libname_spec=$lt_libname_spec
16138
16139 # List of archive names. First name is the real one, the rest are links.
16140 # The last name is the one that the linker finds with -lNAME.
16141 library_names_spec=$lt_library_names_spec
16142
16143 # The coded name of the library, if different from the real name.
16144 soname_spec=$lt_soname_spec
16145
16146 # Commands used to build and install an old-style archive.
16147 RANLIB=$lt_RANLIB
16148 old_archive_cmds=$lt_old_archive_cmds_F77
16149 old_postinstall_cmds=$lt_old_postinstall_cmds
16150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16151
16152 # Create an old-style archive from a shared archive.
16153 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16154
16155 # Create a temporary old-style archive to link instead of a shared archive.
16156 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16157
16158 # Commands used to build and install a shared archive.
16159 archive_cmds=$lt_archive_cmds_F77
16160 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16161 postinstall_cmds=$lt_postinstall_cmds
16162 postuninstall_cmds=$lt_postuninstall_cmds
16163
16164 # Commands used to build a loadable module (assumed same as above if empty)
16165 module_cmds=$lt_module_cmds_F77
16166 module_expsym_cmds=$lt_module_expsym_cmds_F77
16167
16168 # Commands to strip libraries.
16169 old_striplib=$lt_old_striplib
16170 striplib=$lt_striplib
16171
16172 # Dependencies to place before the objects being linked to create a
16173 # shared library.
16174 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16175
16176 # Dependencies to place after the objects being linked to create a
16177 # shared library.
16178 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16179
16180 # Dependencies to place before the objects being linked to create a
16181 # shared library.
16182 predeps=$lt_predeps_F77
16183
16184 # Dependencies to place after the objects being linked to create a
16185 # shared library.
16186 postdeps=$lt_postdeps_F77
16187
16188 # The library search path used internally by the compiler when linking
16189 # a shared library.
16190 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16191
16192 # Method to check whether dependent libraries are shared objects.
16193 deplibs_check_method=$lt_deplibs_check_method
16194
16195 # Command to use when deplibs_check_method == file_magic.
16196 file_magic_cmd=$lt_file_magic_cmd
16197
16198 # Flag that allows shared libraries with undefined symbols to be built.
16199 allow_undefined_flag=$lt_allow_undefined_flag_F77
16200
16201 # Flag that forces no undefined symbols.
16202 no_undefined_flag=$lt_no_undefined_flag_F77
16203
16204 # Commands used to finish a libtool library installation in a directory.
16205 finish_cmds=$lt_finish_cmds
16206
16207 # Same as above, but a single script fragment to be evaled but not shown.
16208 finish_eval=$lt_finish_eval
16209
16210 # Take the output of nm and produce a listing of raw symbols and C names.
16211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16212
16213 # Transform the output of nm in a proper C declaration
16214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16215
16216 # Transform the output of nm in a C name address pair
16217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16218
16219 # This is the shared library runtime path variable.
16220 runpath_var=$runpath_var
16221
16222 # This is the shared library path variable.
16223 shlibpath_var=$shlibpath_var
16224
16225 # Is shlibpath searched before the hard-coded library search path?
16226 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16227
16228 # How to hardcode a shared library path into an executable.
16229 hardcode_action=$hardcode_action_F77
16230
16231 # Whether we should hardcode library paths into libraries.
16232 hardcode_into_libs=$hardcode_into_libs
16233
16234 # Flag to hardcode \$libdir into a binary during linking.
16235 # This must work even if \$libdir does not exist.
16236 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16237
16238 # If ld is used when linking, flag to hardcode \$libdir into
16239 # a binary during linking. This must work even if \$libdir does
16240 # not exist.
16241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16242
16243 # Whether we need a single -rpath flag with a separated argument.
16244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16245
16246 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16247 # resulting binary.
16248 hardcode_direct=$hardcode_direct_F77
16249
16250 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16251 # resulting binary.
16252 hardcode_minus_L=$hardcode_minus_L_F77
16253
16254 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16255 # the resulting binary.
16256 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16257
16258 # Set to yes if building a shared library automatically hardcodes DIR into the library
16259 # and all subsequent libraries and executables linked against it.
16260 hardcode_automatic=$hardcode_automatic_F77
16261
16262 # Variables whose values should be saved in libtool wrapper scripts and
16263 # restored at relink time.
16264 variables_saved_for_relink="$variables_saved_for_relink"
16265
16266 # Whether libtool must link a program against all its dependency libraries.
16267 link_all_deplibs=$link_all_deplibs_F77
16268
16269 # Compile-time system search path for libraries
16270 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16271
16272 # Run-time system search path for libraries
16273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16274
16275 # Fix the shell variable \$srcfile for the compiler.
16276 fix_srcfile_path=$lt_fix_srcfile_path
16277
16278 # Set to yes if exported symbols are required.
16279 always_export_symbols=$always_export_symbols_F77
16280
16281 # The commands to list exported symbols.
16282 export_symbols_cmds=$lt_export_symbols_cmds_F77
16283
16284 # The commands to extract the exported symbol list from a shared archive.
16285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16286
16287 # Symbols that should not be listed in the preloaded symbols.
16288 exclude_expsyms=$lt_exclude_expsyms_F77
16289
16290 # Symbols that must always be exported.
16291 include_expsyms=$lt_include_expsyms_F77
16292
16293 # ### END LIBTOOL TAG CONFIG: $tagname
16294
16295 __EOF__
16296
16297
16298 else
16299 # If there is no Makefile yet, we rely on a make rule to execute
16300 # `config.status --recheck' to rerun these tests and create the
16301 # libtool script then.
16302 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16303 if test -f "$ltmain_in"; then
16304 test -f Makefile && make "$ltmain"
16305 fi
16306 fi
16307
16308
16309 ac_ext=c
16310 ac_cpp='$CPP $CPPFLAGS'
16311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16314
16315 CC="$lt_save_CC"
16316
16317 else
16318 tagname=""
16319 fi
16320 ;;
16321
16322 GCJ)
16323 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16324
16325
16326 # Source file extension for Java test sources.
16327 ac_ext=java
16328
16329 # Object file extension for compiled Java test sources.
16330 objext=o
16331 objext_GCJ=$objext
16332
16333 # Code to be used in simple compile tests
16334 lt_simple_compile_test_code="class foo {}"
16335
16336 # Code to be used in simple link tests
16337 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16338
16339 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16340
16341 # If no C compiler was specified, use CC.
16342 LTCC=${LTCC-"$CC"}
16343
16344 # If no C compiler flags were specified, use CFLAGS.
16345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16346
16347 # Allow CC to be a program name with arguments.
16348 compiler=$CC
16349
16350
16351 # save warnings/boilerplate of simple test code
16352 ac_outfile=conftest.$ac_objext
16353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16355 _lt_compiler_boilerplate=`cat conftest.err`
16356 $rm conftest*
16357
16358 ac_outfile=conftest.$ac_objext
16359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16361 _lt_linker_boilerplate=`cat conftest.err`
16362 $rm conftest*
16363
16364
16365 # Allow CC to be a program name with arguments.
16366 lt_save_CC="$CC"
16367 CC=${GCJ-"gcj"}
16368 compiler=$CC
16369 compiler_GCJ=$CC
16370 for cc_temp in $compiler""; do
16371 case $cc_temp in
16372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16374 \-*) ;;
16375 *) break;;
16376 esac
16377 done
16378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16379
16380 LD_GCJ="$LD"
16381
16382 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16383 archive_cmds_need_lc_GCJ=no
16384
16385 old_archive_cmds_GCJ=$old_archive_cmds
16386
16387
16388 lt_prog_compiler_no_builtin_flag_GCJ=
16389
16390 if test "$GCC" = yes; then
16391 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16392
16393
16394 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16395 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16396 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16397 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399 lt_cv_prog_compiler_rtti_exceptions=no
16400 ac_outfile=conftest.$ac_objext
16401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16402 lt_compiler_flag="-fno-rtti -fno-exceptions"
16403 # Insert the option either (1) after the last *FLAGS variable, or
16404 # (2) before a word containing "conftest.", or (3) at the end.
16405 # Note that $ac_compile itself does not contain backslashes and begins
16406 # with a dollar sign (not a hyphen), so the echo should work correctly.
16407 # The option is referenced via a variable to avoid confusing sed.
16408 lt_compile=`echo "$ac_compile" | $SED \
16409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16411 -e 's:$: $lt_compiler_flag:'`
16412 (eval echo "\"\$as_me:16412: $lt_compile\"" >&5)
16413 (eval "$lt_compile" 2>conftest.err)
16414 ac_status=$?
16415 cat conftest.err >&5
16416 echo "$as_me:16416: \$? = $ac_status" >&5
16417 if (exit $ac_status) && test -s "$ac_outfile"; then
16418 # The compiler can only warn and ignore the option if not recognized
16419 # So say no if there are warnings other than the usual output.
16420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16423 lt_cv_prog_compiler_rtti_exceptions=yes
16424 fi
16425 fi
16426 $rm conftest*
16427
16428 fi
16429 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16430 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16431
16432 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16433 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16434 else
16435 :
16436 fi
16437
16438 fi
16439
16440 lt_prog_compiler_wl_GCJ=
16441 lt_prog_compiler_pic_GCJ=
16442 lt_prog_compiler_static_GCJ=
16443
16444 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16446
16447 if test "$GCC" = yes; then
16448 lt_prog_compiler_wl_GCJ='-Wl,'
16449 lt_prog_compiler_static_GCJ='-static'
16450
16451 case $host_os in
16452 aix*)
16453 # All AIX code is PIC.
16454 if test "$host_cpu" = ia64; then
16455 # AIX 5 now supports IA64 processor
16456 lt_prog_compiler_static_GCJ='-Bstatic'
16457 fi
16458 ;;
16459
16460 amigaos*)
16461 # FIXME: we need at least 68020 code to build shared libraries, but
16462 # adding the `-m68020' flag to GCC prevents building anything better,
16463 # like `-m68040'.
16464 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16465 ;;
16466
16467 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16468 # PIC is the default for these OSes.
16469 ;;
16470
16471 mingw* | cygwin* | pw32* | os2*)
16472 # This hack is so that the source file can tell whether it is being
16473 # built for inclusion in a dll (and should export symbols for example).
16474 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16475 # (--disable-auto-import) libraries
16476 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16477 ;;
16478
16479 darwin* | rhapsody*)
16480 # PIC is the default on this platform
16481 # Common symbols not allowed in MH_DYLIB files
16482 lt_prog_compiler_pic_GCJ='-fno-common'
16483 ;;
16484
16485 interix[3-9]*)
16486 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16487 # Instead, we relocate shared libraries at runtime.
16488 ;;
16489
16490 msdosdjgpp*)
16491 # Just because we use GCC doesn't mean we suddenly get shared libraries
16492 # on systems that don't support them.
16493 lt_prog_compiler_can_build_shared_GCJ=no
16494 enable_shared=no
16495 ;;
16496
16497 sysv4*MP*)
16498 if test -d /usr/nec; then
16499 lt_prog_compiler_pic_GCJ=-Kconform_pic
16500 fi
16501 ;;
16502
16503 hpux*)
16504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16505 # not for PA HP-UX.
16506 case $host_cpu in
16507 hppa*64*|ia64*)
16508 # +Z the default
16509 ;;
16510 *)
16511 lt_prog_compiler_pic_GCJ='-fPIC'
16512 ;;
16513 esac
16514 ;;
16515
16516 *)
16517 lt_prog_compiler_pic_GCJ='-fPIC'
16518 ;;
16519 esac
16520 else
16521 # PORTME Check for flag to pass linker flags through the system compiler.
16522 case $host_os in
16523 aix*)
16524 lt_prog_compiler_wl_GCJ='-Wl,'
16525 if test "$host_cpu" = ia64; then
16526 # AIX 5 now supports IA64 processor
16527 lt_prog_compiler_static_GCJ='-Bstatic'
16528 else
16529 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16530 fi
16531 ;;
16532 darwin*)
16533 # PIC is the default on this platform
16534 # Common symbols not allowed in MH_DYLIB files
16535 case $cc_basename in
16536 xlc*)
16537 lt_prog_compiler_pic_GCJ='-qnocommon'
16538 lt_prog_compiler_wl_GCJ='-Wl,'
16539 ;;
16540 esac
16541 ;;
16542
16543 mingw* | cygwin* | pw32* | os2*)
16544 # This hack is so that the source file can tell whether it is being
16545 # built for inclusion in a dll (and should export symbols for example).
16546 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16547 ;;
16548
16549 hpux9* | hpux10* | hpux11*)
16550 lt_prog_compiler_wl_GCJ='-Wl,'
16551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16552 # not for PA HP-UX.
16553 case $host_cpu in
16554 hppa*64*|ia64*)
16555 # +Z the default
16556 ;;
16557 *)
16558 lt_prog_compiler_pic_GCJ='+Z'
16559 ;;
16560 esac
16561 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16562 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16563 ;;
16564
16565 irix5* | irix6* | nonstopux*)
16566 lt_prog_compiler_wl_GCJ='-Wl,'
16567 # PIC (with -KPIC) is the default.
16568 lt_prog_compiler_static_GCJ='-non_shared'
16569 ;;
16570
16571 newsos6)
16572 lt_prog_compiler_pic_GCJ='-KPIC'
16573 lt_prog_compiler_static_GCJ='-Bstatic'
16574 ;;
16575
16576 linux* | k*bsd*-gnu)
16577 case $cc_basename in
16578 icc* | ecc*)
16579 lt_prog_compiler_wl_GCJ='-Wl,'
16580 lt_prog_compiler_pic_GCJ='-KPIC'
16581 lt_prog_compiler_static_GCJ='-static'
16582 ;;
16583 pgcc* | pgf77* | pgf90* | pgf95*)
16584 # Portland Group compilers (*not* the Pentium gcc compiler,
16585 # which looks to be a dead project)
16586 lt_prog_compiler_wl_GCJ='-Wl,'
16587 lt_prog_compiler_pic_GCJ='-fpic'
16588 lt_prog_compiler_static_GCJ='-Bstatic'
16589 ;;
16590 ccc*)
16591 lt_prog_compiler_wl_GCJ='-Wl,'
16592 # All Alpha code is PIC.
16593 lt_prog_compiler_static_GCJ='-non_shared'
16594 ;;
16595 *)
16596 case `$CC -V 2>&1 | sed 5q` in
16597 *Sun\ C*)
16598 # Sun C 5.9
16599 lt_prog_compiler_pic_GCJ='-KPIC'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16601 lt_prog_compiler_wl_GCJ='-Wl,'
16602 ;;
16603 *Sun\ F*)
16604 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16605 lt_prog_compiler_pic_GCJ='-KPIC'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16607 lt_prog_compiler_wl_GCJ=''
16608 ;;
16609 esac
16610 ;;
16611 esac
16612 ;;
16613
16614 osf3* | osf4* | osf5*)
16615 lt_prog_compiler_wl_GCJ='-Wl,'
16616 # All OSF/1 code is PIC.
16617 lt_prog_compiler_static_GCJ='-non_shared'
16618 ;;
16619
16620 rdos*)
16621 lt_prog_compiler_static_GCJ='-non_shared'
16622 ;;
16623
16624 solaris*)
16625 lt_prog_compiler_pic_GCJ='-KPIC'
16626 lt_prog_compiler_static_GCJ='-Bstatic'
16627 case $cc_basename in
16628 f77* | f90* | f95*)
16629 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16630 *)
16631 lt_prog_compiler_wl_GCJ='-Wl,';;
16632 esac
16633 ;;
16634
16635 sunos4*)
16636 lt_prog_compiler_wl_GCJ='-Qoption ld '
16637 lt_prog_compiler_pic_GCJ='-PIC'
16638 lt_prog_compiler_static_GCJ='-Bstatic'
16639 ;;
16640
16641 sysv4 | sysv4.2uw2* | sysv4.3*)
16642 lt_prog_compiler_wl_GCJ='-Wl,'
16643 lt_prog_compiler_pic_GCJ='-KPIC'
16644 lt_prog_compiler_static_GCJ='-Bstatic'
16645 ;;
16646
16647 sysv4*MP*)
16648 if test -d /usr/nec ;then
16649 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16650 lt_prog_compiler_static_GCJ='-Bstatic'
16651 fi
16652 ;;
16653
16654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16655 lt_prog_compiler_wl_GCJ='-Wl,'
16656 lt_prog_compiler_pic_GCJ='-KPIC'
16657 lt_prog_compiler_static_GCJ='-Bstatic'
16658 ;;
16659
16660 unicos*)
16661 lt_prog_compiler_wl_GCJ='-Wl,'
16662 lt_prog_compiler_can_build_shared_GCJ=no
16663 ;;
16664
16665 uts4*)
16666 lt_prog_compiler_pic_GCJ='-pic'
16667 lt_prog_compiler_static_GCJ='-Bstatic'
16668 ;;
16669
16670 *)
16671 lt_prog_compiler_can_build_shared_GCJ=no
16672 ;;
16673 esac
16674 fi
16675
16676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16677 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16678
16679 #
16680 # Check to make sure the PIC flag actually works.
16681 #
16682 if test -n "$lt_prog_compiler_pic_GCJ"; then
16683
16684 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16686 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689 lt_prog_compiler_pic_works_GCJ=no
16690 ac_outfile=conftest.$ac_objext
16691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16692 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16693 # Insert the option either (1) after the last *FLAGS variable, or
16694 # (2) before a word containing "conftest.", or (3) at the end.
16695 # Note that $ac_compile itself does not contain backslashes and begins
16696 # with a dollar sign (not a hyphen), so the echo should work correctly.
16697 # The option is referenced via a variable to avoid confusing sed.
16698 lt_compile=`echo "$ac_compile" | $SED \
16699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16701 -e 's:$: $lt_compiler_flag:'`
16702 (eval echo "\"\$as_me:16702: $lt_compile\"" >&5)
16703 (eval "$lt_compile" 2>conftest.err)
16704 ac_status=$?
16705 cat conftest.err >&5
16706 echo "$as_me:16706: \$? = $ac_status" >&5
16707 if (exit $ac_status) && test -s "$ac_outfile"; then
16708 # The compiler can only warn and ignore the option if not recognized
16709 # So say no if there are warnings other than the usual output.
16710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16713 lt_prog_compiler_pic_works_GCJ=yes
16714 fi
16715 fi
16716 $rm conftest*
16717
16718 fi
16719 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16720 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16721
16722 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16723 case $lt_prog_compiler_pic_GCJ in
16724 "" | " "*) ;;
16725 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16726 esac
16727 else
16728 lt_prog_compiler_pic_GCJ=
16729 lt_prog_compiler_can_build_shared_GCJ=no
16730 fi
16731
16732 fi
16733 case $host_os in
16734 # For platforms which do not support PIC, -DPIC is meaningless:
16735 *djgpp*)
16736 lt_prog_compiler_pic_GCJ=
16737 ;;
16738 *)
16739 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16740 ;;
16741 esac
16742
16743 #
16744 # Check to make sure the static flag actually works.
16745 #
16746 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16747 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16749 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 lt_prog_compiler_static_works_GCJ=no
16753 save_LDFLAGS="$LDFLAGS"
16754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16757 # The linker can only warn and ignore the option if not recognized
16758 # So say no if there are warnings
16759 if test -s conftest.err; then
16760 # Append any errors to the config.log.
16761 cat conftest.err 1>&5
16762 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16764 if diff conftest.exp conftest.er2 >/dev/null; then
16765 lt_prog_compiler_static_works_GCJ=yes
16766 fi
16767 else
16768 lt_prog_compiler_static_works_GCJ=yes
16769 fi
16770 fi
16771 $rm conftest*
16772 LDFLAGS="$save_LDFLAGS"
16773
16774 fi
16775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16776 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16777
16778 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16779 :
16780 else
16781 lt_prog_compiler_static_GCJ=
16782 fi
16783
16784
16785 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16786 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16787 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 else
16790 lt_cv_prog_compiler_c_o_GCJ=no
16791 $rm -r conftest 2>/dev/null
16792 mkdir conftest
16793 cd conftest
16794 mkdir out
16795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16796
16797 lt_compiler_flag="-o out/conftest2.$ac_objext"
16798 # Insert the option either (1) after the last *FLAGS variable, or
16799 # (2) before a word containing "conftest.", or (3) at the end.
16800 # Note that $ac_compile itself does not contain backslashes and begins
16801 # with a dollar sign (not a hyphen), so the echo should work correctly.
16802 lt_compile=`echo "$ac_compile" | $SED \
16803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16805 -e 's:$: $lt_compiler_flag:'`
16806 (eval echo "\"\$as_me:16806: $lt_compile\"" >&5)
16807 (eval "$lt_compile" 2>out/conftest.err)
16808 ac_status=$?
16809 cat out/conftest.err >&5
16810 echo "$as_me:16810: \$? = $ac_status" >&5
16811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16812 then
16813 # The compiler can only warn and ignore the option if not recognized
16814 # So say no if there are warnings
16815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16818 lt_cv_prog_compiler_c_o_GCJ=yes
16819 fi
16820 fi
16821 chmod u+w . 2>&5
16822 $rm conftest*
16823 # SGI C++ compiler will create directory out/ii_files/ for
16824 # template instantiation
16825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16826 $rm out/* && rmdir out
16827 cd ..
16828 rmdir conftest
16829 $rm conftest*
16830
16831 fi
16832 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16833 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16834
16835
16836 hard_links="nottested"
16837 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16838 # do not overwrite the value of need_locks provided by the user
16839 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16840 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16841 hard_links=yes
16842 $rm conftest*
16843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16844 touch conftest.a
16845 ln conftest.a conftest.b 2>&5 || hard_links=no
16846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16847 { echo "$as_me:$LINENO: result: $hard_links" >&5
16848 echo "${ECHO_T}$hard_links" >&6; }
16849 if test "$hard_links" = no; then
16850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16851 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16852 need_locks=warn
16853 fi
16854 else
16855 need_locks=no
16856 fi
16857
16858 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16859 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16860
16861 runpath_var=
16862 allow_undefined_flag_GCJ=
16863 enable_shared_with_static_runtimes_GCJ=no
16864 archive_cmds_GCJ=
16865 archive_expsym_cmds_GCJ=
16866 old_archive_From_new_cmds_GCJ=
16867 old_archive_from_expsyms_cmds_GCJ=
16868 export_dynamic_flag_spec_GCJ=
16869 whole_archive_flag_spec_GCJ=
16870 thread_safe_flag_spec_GCJ=
16871 hardcode_libdir_flag_spec_GCJ=
16872 hardcode_libdir_flag_spec_ld_GCJ=
16873 hardcode_libdir_separator_GCJ=
16874 hardcode_direct_GCJ=no
16875 hardcode_minus_L_GCJ=no
16876 hardcode_shlibpath_var_GCJ=unsupported
16877 link_all_deplibs_GCJ=unknown
16878 hardcode_automatic_GCJ=no
16879 module_cmds_GCJ=
16880 module_expsym_cmds_GCJ=
16881 always_export_symbols_GCJ=no
16882 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16883 # include_expsyms should be a list of space-separated symbols to be *always*
16884 # included in the symbol list
16885 include_expsyms_GCJ=
16886 # exclude_expsyms can be an extended regexp of symbols to exclude
16887 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16888 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16889 # as well as any symbol that contains `d'.
16890 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16892 # platforms (ab)use it in PIC code, but their linkers get confused if
16893 # the symbol is explicitly referenced. Since portable code cannot
16894 # rely on this symbol name, it's probably fine to never include it in
16895 # preloaded symbol tables.
16896 extract_expsyms_cmds=
16897 # Just being paranoid about ensuring that cc_basename is set.
16898 for cc_temp in $compiler""; do
16899 case $cc_temp in
16900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16902 \-*) ;;
16903 *) break;;
16904 esac
16905 done
16906 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16907
16908 case $host_os in
16909 cygwin* | mingw* | pw32*)
16910 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16911 # When not using gcc, we currently assume that we are using
16912 # Microsoft Visual C++.
16913 if test "$GCC" != yes; then
16914 with_gnu_ld=no
16915 fi
16916 ;;
16917 interix*)
16918 # we just hope/assume this is gcc and not c89 (= MSVC++)
16919 with_gnu_ld=yes
16920 ;;
16921 openbsd*)
16922 with_gnu_ld=no
16923 ;;
16924 esac
16925
16926 ld_shlibs_GCJ=yes
16927 if test "$with_gnu_ld" = yes; then
16928 # If archive_cmds runs LD, not CC, wlarc should be empty
16929 wlarc='${wl}'
16930
16931 # Set some defaults for GNU ld with shared library support. These
16932 # are reset later if shared libraries are not supported. Putting them
16933 # here allows them to be overridden if necessary.
16934 runpath_var=LD_RUN_PATH
16935 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16936 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16937 # ancient GNU ld didn't support --whole-archive et. al.
16938 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16939 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16940 else
16941 whole_archive_flag_spec_GCJ=
16942 fi
16943 supports_anon_versioning=no
16944 case `$LD -v 2>/dev/null` in
16945 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16946 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16947 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16948 *\ 2.11.*) ;; # other 2.11 versions
16949 *) supports_anon_versioning=yes ;;
16950 esac
16951
16952 # See if GNU ld supports shared libraries.
16953 case $host_os in
16954 aix3* | aix4* | aix5*)
16955 # On AIX/PPC, the GNU linker is very broken
16956 if test "$host_cpu" != ia64; then
16957 ld_shlibs_GCJ=no
16958 cat <<EOF 1>&2
16959
16960 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16961 *** to be unable to reliably create shared libraries on AIX.
16962 *** Therefore, libtool is disabling shared libraries support. If you
16963 *** really care for shared libraries, you may want to modify your PATH
16964 *** so that a non-GNU linker is found, and then restart.
16965
16966 EOF
16967 fi
16968 ;;
16969
16970 amigaos*)
16971 archive_cmds_GCJ='$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)'
16972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16973 hardcode_minus_L_GCJ=yes
16974
16975 # Samuel A. Falvo II <[email protected]> reports
16976 # that the semantics of dynamic libraries on AmigaOS, at least up
16977 # to version 4, is to share data among multiple programs linked
16978 # with the same dynamic library. Since this doesn't match the
16979 # behavior of shared libraries on other platforms, we can't use
16980 # them.
16981 ld_shlibs_GCJ=no
16982 ;;
16983
16984 beos*)
16985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16986 allow_undefined_flag_GCJ=unsupported
16987 # Joseph Beckenbach <[email protected]> says some releases of gcc
16988 # support --undefined. This deserves some investigation. FIXME
16989 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16990 else
16991 ld_shlibs_GCJ=no
16992 fi
16993 ;;
16994
16995 cygwin* | mingw* | pw32*)
16996 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16997 # as there is no search path for DLLs.
16998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16999 allow_undefined_flag_GCJ=unsupported
17000 always_export_symbols_GCJ=no
17001 enable_shared_with_static_runtimes_GCJ=yes
17002 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17003
17004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17005 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17006 # If the export-symbols file already is a .def file (1st line
17007 # is EXPORTS), use it as is; otherwise, prepend...
17008 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17009 cp $export_symbols $output_objdir/$soname.def;
17010 else
17011 echo EXPORTS > $output_objdir/$soname.def;
17012 cat $export_symbols >> $output_objdir/$soname.def;
17013 fi~
17014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17015 else
17016 ld_shlibs_GCJ=no
17017 fi
17018 ;;
17019
17020 interix[3-9]*)
17021 hardcode_direct_GCJ=no
17022 hardcode_shlibpath_var_GCJ=no
17023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17024 export_dynamic_flag_spec_GCJ='${wl}-E'
17025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17026 # Instead, shared libraries are loaded at an image base (0x10000000 by
17027 # default) and relocated if they conflict, which is a slow very memory
17028 # consuming and fragmenting process. To avoid this, we pick a random,
17029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17030 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17031 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17032 archive_expsym_cmds_GCJ='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'
17033 ;;
17034
17035 gnu* | linux* | k*bsd*-gnu)
17036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17037 tmp_addflag=
17038 case $cc_basename,$host_cpu in
17039 pgcc*) # Portland Group C compiler
17040 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17041 tmp_addflag=' $pic_flag'
17042 ;;
17043 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17044 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17045 tmp_addflag=' $pic_flag -Mnomain' ;;
17046 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17047 tmp_addflag=' -i_dynamic' ;;
17048 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17049 tmp_addflag=' -i_dynamic -nofor_main' ;;
17050 ifc* | ifort*) # Intel Fortran compiler
17051 tmp_addflag=' -nofor_main' ;;
17052 esac
17053 case `$CC -V 2>&1 | sed 5q` in
17054 *Sun\ C*) # Sun C 5.9
17055 whole_archive_flag_spec_GCJ='${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'
17056 tmp_sharedflag='-G' ;;
17057 *Sun\ F*) # Sun Fortran 8.3
17058 tmp_sharedflag='-G' ;;
17059 *)
17060 tmp_sharedflag='-shared' ;;
17061 esac
17062 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17063
17064 if test $supports_anon_versioning = yes; then
17065 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17067 $echo "local: *; };" >> $output_objdir/$libname.ver~
17068 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17069 fi
17070 else
17071 ld_shlibs_GCJ=no
17072 fi
17073 ;;
17074
17075 netbsd*)
17076 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17077 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17078 wlarc=
17079 else
17080 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17081 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17082 fi
17083 ;;
17084
17085 solaris*)
17086 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17087 ld_shlibs_GCJ=no
17088 cat <<EOF 1>&2
17089
17090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17091 *** create shared libraries on Solaris systems. Therefore, libtool
17092 *** is disabling shared libraries support. We urge you to upgrade GNU
17093 *** binutils to release 2.9.1 or newer. Another option is to modify
17094 *** your PATH or compiler configuration so that the native linker is
17095 *** used, and then restart.
17096
17097 EOF
17098 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17099 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17100 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17101 else
17102 ld_shlibs_GCJ=no
17103 fi
17104 ;;
17105
17106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17107 case `$LD -v 2>&1` in
17108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17109 ld_shlibs_GCJ=no
17110 cat <<_LT_EOF 1>&2
17111
17112 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17113 *** reliably create shared libraries on SCO systems. Therefore, libtool
17114 *** is disabling shared libraries support. We urge you to upgrade GNU
17115 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17116 *** your PATH or compiler configuration so that the native linker is
17117 *** used, and then restart.
17118
17119 _LT_EOF
17120 ;;
17121 *)
17122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17123 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17124 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17125 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17126 else
17127 ld_shlibs_GCJ=no
17128 fi
17129 ;;
17130 esac
17131 ;;
17132
17133 sunos4*)
17134 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17135 wlarc=
17136 hardcode_direct_GCJ=yes
17137 hardcode_shlibpath_var_GCJ=no
17138 ;;
17139
17140 *)
17141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17143 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17144 else
17145 ld_shlibs_GCJ=no
17146 fi
17147 ;;
17148 esac
17149
17150 if test "$ld_shlibs_GCJ" = no; then
17151 runpath_var=
17152 hardcode_libdir_flag_spec_GCJ=
17153 export_dynamic_flag_spec_GCJ=
17154 whole_archive_flag_spec_GCJ=
17155 fi
17156 else
17157 # PORTME fill in a description of your system's linker (not GNU ld)
17158 case $host_os in
17159 aix3*)
17160 allow_undefined_flag_GCJ=unsupported
17161 always_export_symbols_GCJ=yes
17162 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17163 # Note: this linker hardcodes the directories in LIBPATH if there
17164 # are no directories specified by -L.
17165 hardcode_minus_L_GCJ=yes
17166 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17167 # Neither direct hardcoding nor static linking is supported with a
17168 # broken collect2.
17169 hardcode_direct_GCJ=unsupported
17170 fi
17171 ;;
17172
17173 aix4* | aix5*)
17174 if test "$host_cpu" = ia64; then
17175 # On IA64, the linker does run time linking by default, so we don't
17176 # have to do anything special.
17177 aix_use_runtimelinking=no
17178 exp_sym_flag='-Bexport'
17179 no_entry_flag=""
17180 else
17181 # If we're using GNU nm, then we don't want the "-C" option.
17182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17183 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17184 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17185 else
17186 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17187 fi
17188 aix_use_runtimelinking=no
17189
17190 # Test if we are trying to use run time linking or normal
17191 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17192 # need to do runtime linking.
17193 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17194 for ld_flag in $LDFLAGS; do
17195 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17196 aix_use_runtimelinking=yes
17197 break
17198 fi
17199 done
17200 ;;
17201 esac
17202
17203 exp_sym_flag='-bexport'
17204 no_entry_flag='-bnoentry'
17205 fi
17206
17207 # When large executables or shared objects are built, AIX ld can
17208 # have problems creating the table of contents. If linking a library
17209 # or program results in "error TOC overflow" add -mminimal-toc to
17210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17212
17213 archive_cmds_GCJ=''
17214 hardcode_direct_GCJ=yes
17215 hardcode_libdir_separator_GCJ=':'
17216 link_all_deplibs_GCJ=yes
17217
17218 if test "$GCC" = yes; then
17219 case $host_os in aix4.[012]|aix4.[012].*)
17220 # We only want to do this on AIX 4.2 and lower, the check
17221 # below for broken collect2 doesn't work under 4.3+
17222 collect2name=`${CC} -print-prog-name=collect2`
17223 if test -f "$collect2name" && \
17224 strings "$collect2name" | grep resolve_lib_name >/dev/null
17225 then
17226 # We have reworked collect2
17227 :
17228 else
17229 # We have old collect2
17230 hardcode_direct_GCJ=unsupported
17231 # It fails to find uninstalled libraries when the uninstalled
17232 # path is not listed in the libpath. Setting hardcode_minus_L
17233 # to unsupported forces relinking
17234 hardcode_minus_L_GCJ=yes
17235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236 hardcode_libdir_separator_GCJ=
17237 fi
17238 ;;
17239 esac
17240 shared_flag='-shared'
17241 if test "$aix_use_runtimelinking" = yes; then
17242 shared_flag="$shared_flag "'${wl}-G'
17243 fi
17244 else
17245 # not using gcc
17246 if test "$host_cpu" = ia64; then
17247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17248 # chokes on -Wl,-G. The following line is correct:
17249 shared_flag='-G'
17250 else
17251 if test "$aix_use_runtimelinking" = yes; then
17252 shared_flag='${wl}-G'
17253 else
17254 shared_flag='${wl}-bM:SRE'
17255 fi
17256 fi
17257 fi
17258
17259 # It seems that -bexpall does not export symbols beginning with
17260 # underscore (_), so it is better to generate a list of symbols to export.
17261 always_export_symbols_GCJ=yes
17262 if test "$aix_use_runtimelinking" = yes; then
17263 # Warning - without using the other runtime loading flags (-brtl),
17264 # -berok will link without error, but may produce a broken library.
17265 allow_undefined_flag_GCJ='-berok'
17266 # Determine the default libpath from the value encoded in an empty executable.
17267 cat >conftest.$ac_ext <<_ACEOF
17268 /* confdefs.h. */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17273
17274 int
17275 main ()
17276 {
17277
17278 ;
17279 return 0;
17280 }
17281 _ACEOF
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (ac_try="$ac_link"
17284 case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_link") 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } && {
17296 test -z "$ac_c_werror_flag" ||
17297 test ! -s conftest.err
17298 } && test -s conftest$ac_exeext &&
17299 $as_test_x conftest$ac_exeext; then
17300
17301 lt_aix_libpath_sed='
17302 /Import File Strings/,/^$/ {
17303 /^0/ {
17304 s/^0 *\(.*\)$/\1/
17305 p
17306 }
17307 }'
17308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17309 # Check for a 64-bit object if we didn't find anything.
17310 if test -z "$aix_libpath"; then
17311 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17312 fi
17313 else
17314 echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317
17318 fi
17319
17320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17321 conftest$ac_exeext conftest.$ac_ext
17322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17323
17324 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17325 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17326 else
17327 if test "$host_cpu" = ia64; then
17328 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17329 allow_undefined_flag_GCJ="-z nodefs"
17330 archive_expsym_cmds_GCJ="\$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"
17331 else
17332 # Determine the default libpath from the value encoded in an empty executable.
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339
17340 int
17341 main ()
17342 {
17343
17344 ;
17345 return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (ac_try="$ac_link"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17353 esac
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355 (eval "$ac_link") 2>conftest.er1
17356 ac_status=$?
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } && {
17362 test -z "$ac_c_werror_flag" ||
17363 test ! -s conftest.err
17364 } && test -s conftest$ac_exeext &&
17365 $as_test_x conftest$ac_exeext; then
17366
17367 lt_aix_libpath_sed='
17368 /Import File Strings/,/^$/ {
17369 /^0/ {
17370 s/^0 *\(.*\)$/\1/
17371 p
17372 }
17373 }'
17374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17375 # Check for a 64-bit object if we didn't find anything.
17376 if test -z "$aix_libpath"; then
17377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17378 fi
17379 else
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383
17384 fi
17385
17386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17387 conftest$ac_exeext conftest.$ac_ext
17388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17389
17390 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17391 # Warning - without using the other run time loading flags,
17392 # -berok will link without error, but may produce a broken library.
17393 no_undefined_flag_GCJ=' ${wl}-bernotok'
17394 allow_undefined_flag_GCJ=' ${wl}-berok'
17395 # Exported symbols can be pulled into shared objects from archives
17396 whole_archive_flag_spec_GCJ='$convenience'
17397 archive_cmds_need_lc_GCJ=yes
17398 # This is similar to how AIX traditionally builds its shared libraries.
17399 archive_expsym_cmds_GCJ="\$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'
17400 fi
17401 fi
17402 ;;
17403
17404 amigaos*)
17405 archive_cmds_GCJ='$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)'
17406 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17407 hardcode_minus_L_GCJ=yes
17408 # see comment about different semantics on the GNU ld section
17409 ld_shlibs_GCJ=no
17410 ;;
17411
17412 bsdi[45]*)
17413 export_dynamic_flag_spec_GCJ=-rdynamic
17414 ;;
17415
17416 cygwin* | mingw* | pw32*)
17417 # When not using gcc, we currently assume that we are using
17418 # Microsoft Visual C++.
17419 # hardcode_libdir_flag_spec is actually meaningless, as there is
17420 # no search path for DLLs.
17421 hardcode_libdir_flag_spec_GCJ=' '
17422 allow_undefined_flag_GCJ=unsupported
17423 # Tell ltmain to make .lib files, not .a files.
17424 libext=lib
17425 # Tell ltmain to make .dll files, not .so files.
17426 shrext_cmds=".dll"
17427 # FIXME: Setting linknames here is a bad hack.
17428 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17429 # The linker will automatically build a .lib file if we build a DLL.
17430 old_archive_From_new_cmds_GCJ='true'
17431 # FIXME: Should let the user specify the lib program.
17432 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17433 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17434 enable_shared_with_static_runtimes_GCJ=yes
17435 ;;
17436
17437 darwin* | rhapsody*)
17438 case $host_os in
17439 rhapsody* | darwin1.[012])
17440 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17441 ;;
17442 *) # Darwin 1.3 on
17443 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17444 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17445 else
17446 case ${MACOSX_DEPLOYMENT_TARGET} in
17447 10.[012])
17448 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17449 ;;
17450 10.*)
17451 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17452 ;;
17453 esac
17454 fi
17455 ;;
17456 esac
17457 archive_cmds_need_lc_GCJ=no
17458 hardcode_direct_GCJ=no
17459 hardcode_automatic_GCJ=yes
17460 hardcode_shlibpath_var_GCJ=unsupported
17461 whole_archive_flag_spec_GCJ=''
17462 link_all_deplibs_GCJ=yes
17463 if test "$GCC" = yes ; then
17464 output_verbose_link_cmd='echo'
17465 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17466 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17467 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17468 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17469 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17470 else
17471 case $cc_basename in
17472 xlc*)
17473 output_verbose_link_cmd='echo'
17474 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17475 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17477 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17478 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17479 ;;
17480 *)
17481 ld_shlibs_GCJ=no
17482 ;;
17483 esac
17484 fi
17485 ;;
17486
17487 dgux*)
17488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17490 hardcode_shlibpath_var_GCJ=no
17491 ;;
17492
17493 freebsd1*)
17494 ld_shlibs_GCJ=no
17495 ;;
17496
17497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17498 # support. Future versions do this automatically, but an explicit c++rt0.o
17499 # does not break anything, and helps significantly (at the cost of a little
17500 # extra space).
17501 freebsd2.2*)
17502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17503 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17504 hardcode_direct_GCJ=yes
17505 hardcode_shlibpath_var_GCJ=no
17506 ;;
17507
17508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17509 freebsd2*)
17510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17511 hardcode_direct_GCJ=yes
17512 hardcode_minus_L_GCJ=yes
17513 hardcode_shlibpath_var_GCJ=no
17514 ;;
17515
17516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17517 freebsd* | dragonfly*)
17518 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17519 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17520 hardcode_direct_GCJ=yes
17521 hardcode_shlibpath_var_GCJ=no
17522 ;;
17523
17524 hpux9*)
17525 if test "$GCC" = yes; then
17526 archive_cmds_GCJ='$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'
17527 else
17528 archive_cmds_GCJ='$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'
17529 fi
17530 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17531 hardcode_libdir_separator_GCJ=:
17532 hardcode_direct_GCJ=yes
17533
17534 # hardcode_minus_L: Not really in the search PATH,
17535 # but as the default location of the library.
17536 hardcode_minus_L_GCJ=yes
17537 export_dynamic_flag_spec_GCJ='${wl}-E'
17538 ;;
17539
17540 hpux10*)
17541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17542 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17543 else
17544 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17545 fi
17546 if test "$with_gnu_ld" = no; then
17547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17548 hardcode_libdir_separator_GCJ=:
17549
17550 hardcode_direct_GCJ=yes
17551 export_dynamic_flag_spec_GCJ='${wl}-E'
17552
17553 # hardcode_minus_L: Not really in the search PATH,
17554 # but as the default location of the library.
17555 hardcode_minus_L_GCJ=yes
17556 fi
17557 ;;
17558
17559 hpux11*)
17560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17561 case $host_cpu in
17562 hppa*64*)
17563 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17564 ;;
17565 ia64*)
17566 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17567 ;;
17568 *)
17569 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17570 ;;
17571 esac
17572 else
17573 case $host_cpu in
17574 hppa*64*)
17575 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17576 ;;
17577 ia64*)
17578 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17579 ;;
17580 *)
17581 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17582 ;;
17583 esac
17584 fi
17585 if test "$with_gnu_ld" = no; then
17586 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17587 hardcode_libdir_separator_GCJ=:
17588
17589 case $host_cpu in
17590 hppa*64*|ia64*)
17591 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17592 hardcode_direct_GCJ=no
17593 hardcode_shlibpath_var_GCJ=no
17594 ;;
17595 *)
17596 hardcode_direct_GCJ=yes
17597 export_dynamic_flag_spec_GCJ='${wl}-E'
17598
17599 # hardcode_minus_L: Not really in the search PATH,
17600 # but as the default location of the library.
17601 hardcode_minus_L_GCJ=yes
17602 ;;
17603 esac
17604 fi
17605 ;;
17606
17607 irix5* | irix6* | nonstopux*)
17608 if test "$GCC" = yes; then
17609 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17610 else
17611 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17612 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17613 fi
17614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17615 hardcode_libdir_separator_GCJ=:
17616 link_all_deplibs_GCJ=yes
17617 ;;
17618
17619 netbsd*)
17620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17622 else
17623 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17624 fi
17625 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17626 hardcode_direct_GCJ=yes
17627 hardcode_shlibpath_var_GCJ=no
17628 ;;
17629
17630 newsos6)
17631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632 hardcode_direct_GCJ=yes
17633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634 hardcode_libdir_separator_GCJ=:
17635 hardcode_shlibpath_var_GCJ=no
17636 ;;
17637
17638 openbsd*)
17639 if test -f /usr/libexec/ld.so; then
17640 hardcode_direct_GCJ=yes
17641 hardcode_shlibpath_var_GCJ=no
17642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17643 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17644 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17646 export_dynamic_flag_spec_GCJ='${wl}-E'
17647 else
17648 case $host_os in
17649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17652 ;;
17653 *)
17654 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17656 ;;
17657 esac
17658 fi
17659 else
17660 ld_shlibs_GCJ=no
17661 fi
17662 ;;
17663
17664 os2*)
17665 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17666 hardcode_minus_L_GCJ=yes
17667 allow_undefined_flag_GCJ=unsupported
17668 archive_cmds_GCJ='$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'
17669 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17670 ;;
17671
17672 osf3*)
17673 if test "$GCC" = yes; then
17674 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17675 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17676 else
17677 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17678 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17679 fi
17680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17681 hardcode_libdir_separator_GCJ=:
17682 ;;
17683
17684 osf4* | osf5*) # as osf3* with the addition of -msym flag
17685 if test "$GCC" = yes; then
17686 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17687 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17689 else
17690 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17691 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17692 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17693 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17694
17695 # Both c and cxx compiler support -rpath directly
17696 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17697 fi
17698 hardcode_libdir_separator_GCJ=:
17699 ;;
17700
17701 solaris*)
17702 no_undefined_flag_GCJ=' -z text'
17703 if test "$GCC" = yes; then
17704 wlarc='${wl}'
17705 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17708 else
17709 wlarc=''
17710 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17713 fi
17714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17715 hardcode_shlibpath_var_GCJ=no
17716 case $host_os in
17717 solaris2.[0-5] | solaris2.[0-5].*) ;;
17718 *)
17719 # The compiler driver will combine and reorder linker options,
17720 # but understands `-z linker_flag'. GCC discards it without `$wl',
17721 # but is careful enough not to reorder.
17722 # Supported since Solaris 2.6 (maybe 2.5.1?)
17723 if test "$GCC" = yes; then
17724 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17725 else
17726 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17727 fi
17728 ;;
17729 esac
17730 link_all_deplibs_GCJ=yes
17731 ;;
17732
17733 sunos4*)
17734 if test "x$host_vendor" = xsequent; then
17735 # Use $CC to link under sequent, because it throws in some extra .o
17736 # files that make .init and .fini sections work.
17737 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17738 else
17739 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17740 fi
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_direct_GCJ=yes
17743 hardcode_minus_L_GCJ=yes
17744 hardcode_shlibpath_var_GCJ=no
17745 ;;
17746
17747 sysv4)
17748 case $host_vendor in
17749 sni)
17750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17751 hardcode_direct_GCJ=yes # is this really true???
17752 ;;
17753 siemens)
17754 ## LD is ld it makes a PLAMLIB
17755 ## CC just makes a GrossModule.
17756 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17757 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17758 hardcode_direct_GCJ=no
17759 ;;
17760 motorola)
17761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17762 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17763 ;;
17764 esac
17765 runpath_var='LD_RUN_PATH'
17766 hardcode_shlibpath_var_GCJ=no
17767 ;;
17768
17769 sysv4.3*)
17770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17771 hardcode_shlibpath_var_GCJ=no
17772 export_dynamic_flag_spec_GCJ='-Bexport'
17773 ;;
17774
17775 sysv4*MP*)
17776 if test -d /usr/nec; then
17777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778 hardcode_shlibpath_var_GCJ=no
17779 runpath_var=LD_RUN_PATH
17780 hardcode_runpath_var=yes
17781 ld_shlibs_GCJ=yes
17782 fi
17783 ;;
17784
17785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17786 no_undefined_flag_GCJ='${wl}-z,text'
17787 archive_cmds_need_lc_GCJ=no
17788 hardcode_shlibpath_var_GCJ=no
17789 runpath_var='LD_RUN_PATH'
17790
17791 if test "$GCC" = yes; then
17792 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17793 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17794 else
17795 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17796 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17797 fi
17798 ;;
17799
17800 sysv5* | sco3.2v5* | sco5v6*)
17801 # Note: We can NOT use -z defs as we might desire, because we do not
17802 # link with -lc, and that would cause any symbols used from libc to
17803 # always be unresolved, which means just about no library would
17804 # ever link correctly. If we're not using GNU ld we use -z text
17805 # though, which does catch some bad symbols but isn't as heavy-handed
17806 # as -z defs.
17807 no_undefined_flag_GCJ='${wl}-z,text'
17808 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17809 archive_cmds_need_lc_GCJ=no
17810 hardcode_shlibpath_var_GCJ=no
17811 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17812 hardcode_libdir_separator_GCJ=':'
17813 link_all_deplibs_GCJ=yes
17814 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17815 runpath_var='LD_RUN_PATH'
17816
17817 if test "$GCC" = yes; then
17818 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17819 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17820 else
17821 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17823 fi
17824 ;;
17825
17826 uts4*)
17827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17829 hardcode_shlibpath_var_GCJ=no
17830 ;;
17831
17832 *)
17833 ld_shlibs_GCJ=no
17834 ;;
17835 esac
17836 fi
17837
17838 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17839 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17840 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17841
17842 #
17843 # Do we need to explicitly link libc?
17844 #
17845 case "x$archive_cmds_need_lc_GCJ" in
17846 x|xyes)
17847 # Assume -lc should be added
17848 archive_cmds_need_lc_GCJ=yes
17849
17850 if test "$enable_shared" = yes && test "$GCC" = yes; then
17851 case $archive_cmds_GCJ in
17852 *'~'*)
17853 # FIXME: we may have to deal with multi-command sequences.
17854 ;;
17855 '$CC '*)
17856 # Test whether the compiler implicitly links with -lc since on some
17857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17858 # to ld, don't add -lc before -lgcc.
17859 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17860 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17861 $rm conftest*
17862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17863
17864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17865 (eval $ac_compile) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } 2>conftest.err; then
17869 soname=conftest
17870 lib=conftest
17871 libobjs=conftest.$ac_objext
17872 deplibs=
17873 wl=$lt_prog_compiler_wl_GCJ
17874 pic_flag=$lt_prog_compiler_pic_GCJ
17875 compiler_flags=-v
17876 linker_flags=-v
17877 verstring=
17878 output_objdir=.
17879 libname=conftest
17880 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17881 allow_undefined_flag_GCJ=
17882 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17883 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }
17887 then
17888 archive_cmds_need_lc_GCJ=no
17889 else
17890 archive_cmds_need_lc_GCJ=yes
17891 fi
17892 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17893 else
17894 cat conftest.err 1>&5
17895 fi
17896 $rm conftest*
17897 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17898 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17899 ;;
17900 esac
17901 fi
17902 ;;
17903 esac
17904
17905 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17906 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17907 library_names_spec=
17908 libname_spec='lib$name'
17909 soname_spec=
17910 shrext_cmds=".so"
17911 postinstall_cmds=
17912 postuninstall_cmds=
17913 finish_cmds=
17914 finish_eval=
17915 shlibpath_var=
17916 shlibpath_overrides_runpath=unknown
17917 version_type=none
17918 dynamic_linker="$host_os ld.so"
17919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17920
17921 need_lib_prefix=unknown
17922 hardcode_into_libs=no
17923
17924 # when you set need_version to no, make sure it does not cause -set_version
17925 # flags to be left without arguments
17926 need_version=unknown
17927
17928 case $host_os in
17929 aix3*)
17930 version_type=linux
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17932 shlibpath_var=LIBPATH
17933
17934 # AIX 3 has no versioning support, so we append a major version to the name.
17935 soname_spec='${libname}${release}${shared_ext}$major'
17936 ;;
17937
17938 aix4* | aix5*)
17939 version_type=linux
17940 need_lib_prefix=no
17941 need_version=no
17942 hardcode_into_libs=yes
17943 if test "$host_cpu" = ia64; then
17944 # AIX 5 supports IA64
17945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17946 shlibpath_var=LD_LIBRARY_PATH
17947 else
17948 # With GCC up to 2.95.x, collect2 would create an import file
17949 # for dependence libraries. The import file would start with
17950 # the line `#! .'. This would cause the generated library to
17951 # depend on `.', always an invalid library. This was fixed in
17952 # development snapshots of GCC prior to 3.0.
17953 case $host_os in
17954 aix4 | aix4.[01] | aix4.[01].*)
17955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17956 echo ' yes '
17957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17958 :
17959 else
17960 can_build_shared=no
17961 fi
17962 ;;
17963 esac
17964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17965 # soname into executable. Probably we can add versioning support to
17966 # collect2, so additional links can be useful in future.
17967 if test "$aix_use_runtimelinking" = yes; then
17968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17969 # instead of lib<name>.a to let people know that these are not
17970 # typical AIX shared libraries.
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 else
17973 # We preserve .a as extension for shared libraries through AIX4.2
17974 # and later when we are not doing run time linking.
17975 library_names_spec='${libname}${release}.a $libname.a'
17976 soname_spec='${libname}${release}${shared_ext}$major'
17977 fi
17978 shlibpath_var=LIBPATH
17979 fi
17980 ;;
17981
17982 amigaos*)
17983 library_names_spec='$libname.ixlibrary $libname.a'
17984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17985 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'
17986 ;;
17987
17988 beos*)
17989 library_names_spec='${libname}${shared_ext}'
17990 dynamic_linker="$host_os ld.so"
17991 shlibpath_var=LIBRARY_PATH
17992 ;;
17993
17994 bsdi[45]*)
17995 version_type=linux
17996 need_version=no
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18000 shlibpath_var=LD_LIBRARY_PATH
18001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18003 # the default ld.so.conf also contains /usr/contrib/lib and
18004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18005 # libtool to hard-code these into programs
18006 ;;
18007
18008 cygwin* | mingw* | pw32*)
18009 version_type=windows
18010 shrext_cmds=".dll"
18011 need_version=no
18012 need_lib_prefix=no
18013
18014 case $GCC,$host_os in
18015 yes,cygwin* | yes,mingw* | yes,pw32*)
18016 library_names_spec='$libname.dll.a'
18017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18018 postinstall_cmds='base_file=`basename \${file}`~
18019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18020 dldir=$destdir/`dirname \$dlpath`~
18021 test -d \$dldir || mkdir -p \$dldir~
18022 $install_prog $dir/$dlname \$dldir/$dlname~
18023 chmod a+x \$dldir/$dlname'
18024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18025 dlpath=$dir/\$dldll~
18026 $rm \$dlpath'
18027 shlibpath_overrides_runpath=yes
18028
18029 case $host_os in
18030 cygwin*)
18031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18033 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18034 ;;
18035 mingw*)
18036 # MinGW DLLs use traditional 'lib' prefix
18037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18039 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18040 # It is most probably a Windows format PATH printed by
18041 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18042 # path with ; separators, and with drive letters. We can handle the
18043 # drive letters (cygwin fileutils understands them), so leave them,
18044 # especially as we might pass files found there to a mingw objdump,
18045 # which wouldn't understand a cygwinified path. Ahh.
18046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18047 else
18048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18049 fi
18050 ;;
18051 pw32*)
18052 # pw32 DLLs use 'pw' prefix rather than 'lib'
18053 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18054 ;;
18055 esac
18056 ;;
18057
18058 *)
18059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18060 ;;
18061 esac
18062 dynamic_linker='Win32 ld.exe'
18063 # FIXME: first we should search . and the directory the executable is in
18064 shlibpath_var=PATH
18065 ;;
18066
18067 darwin* | rhapsody*)
18068 dynamic_linker="$host_os dyld"
18069 version_type=darwin
18070 need_lib_prefix=no
18071 need_version=no
18072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18073 soname_spec='${libname}${release}${major}$shared_ext'
18074 shlibpath_overrides_runpath=yes
18075 shlibpath_var=DYLD_LIBRARY_PATH
18076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18077
18078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18079 ;;
18080
18081 dgux*)
18082 version_type=linux
18083 need_lib_prefix=no
18084 need_version=no
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18086 soname_spec='${libname}${release}${shared_ext}$major'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 ;;
18089
18090 freebsd1*)
18091 dynamic_linker=no
18092 ;;
18093
18094 freebsd* | dragonfly*)
18095 # DragonFly does not have aout. When/if they implement a new
18096 # versioning mechanism, adjust this.
18097 if test -x /usr/bin/objformat; then
18098 objformat=`/usr/bin/objformat`
18099 else
18100 case $host_os in
18101 freebsd[123]*) objformat=aout ;;
18102 *) objformat=elf ;;
18103 esac
18104 fi
18105 version_type=freebsd-$objformat
18106 case $version_type in
18107 freebsd-elf*)
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18109 need_version=no
18110 need_lib_prefix=no
18111 ;;
18112 freebsd-*)
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18114 need_version=yes
18115 ;;
18116 esac
18117 shlibpath_var=LD_LIBRARY_PATH
18118 case $host_os in
18119 freebsd2*)
18120 shlibpath_overrides_runpath=yes
18121 ;;
18122 freebsd3.[01]* | freebsdelf3.[01]*)
18123 shlibpath_overrides_runpath=yes
18124 hardcode_into_libs=yes
18125 ;;
18126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18128 shlibpath_overrides_runpath=no
18129 hardcode_into_libs=yes
18130 ;;
18131 *) # from 4.6 on, and DragonFly
18132 shlibpath_overrides_runpath=yes
18133 hardcode_into_libs=yes
18134 ;;
18135 esac
18136 ;;
18137
18138 gnu*)
18139 version_type=linux
18140 need_lib_prefix=no
18141 need_version=no
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18143 soname_spec='${libname}${release}${shared_ext}$major'
18144 shlibpath_var=LD_LIBRARY_PATH
18145 hardcode_into_libs=yes
18146 ;;
18147
18148 hpux9* | hpux10* | hpux11*)
18149 # Give a soname corresponding to the major version so that dld.sl refuses to
18150 # link against other versions.
18151 version_type=sunos
18152 need_lib_prefix=no
18153 need_version=no
18154 case $host_cpu in
18155 ia64*)
18156 shrext_cmds='.so'
18157 hardcode_into_libs=yes
18158 dynamic_linker="$host_os dld.so"
18159 shlibpath_var=LD_LIBRARY_PATH
18160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 if test "X$HPUX_IA64_MODE" = X32; then
18164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18165 else
18166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18167 fi
18168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18169 ;;
18170 hppa*64*)
18171 shrext_cmds='.sl'
18172 hardcode_into_libs=yes
18173 dynamic_linker="$host_os dld.sl"
18174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18180 ;;
18181 *)
18182 shrext_cmds='.sl'
18183 dynamic_linker="$host_os dld.sl"
18184 shlibpath_var=SHLIB_PATH
18185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18187 soname_spec='${libname}${release}${shared_ext}$major'
18188 ;;
18189 esac
18190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18191 postinstall_cmds='chmod 555 $lib'
18192 ;;
18193
18194 interix[3-9]*)
18195 version_type=linux
18196 need_lib_prefix=no
18197 need_version=no
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 shlibpath_overrides_runpath=no
18203 hardcode_into_libs=yes
18204 ;;
18205
18206 irix5* | irix6* | nonstopux*)
18207 case $host_os in
18208 nonstopux*) version_type=nonstopux ;;
18209 *)
18210 if test "$lt_cv_prog_gnu_ld" = yes; then
18211 version_type=linux
18212 else
18213 version_type=irix
18214 fi ;;
18215 esac
18216 need_lib_prefix=no
18217 need_version=no
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18220 case $host_os in
18221 irix5* | nonstopux*)
18222 libsuff= shlibsuff=
18223 ;;
18224 *)
18225 case $LD in # libtool.m4 will add one of these switches to LD
18226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18227 libsuff= shlibsuff= libmagic=32-bit;;
18228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18229 libsuff=32 shlibsuff=N32 libmagic=N32;;
18230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18232 *) libsuff= shlibsuff= libmagic=never-match;;
18233 esac
18234 ;;
18235 esac
18236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18237 shlibpath_overrides_runpath=no
18238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18240 hardcode_into_libs=yes
18241 ;;
18242
18243 # No shared lib support for Linux oldld, aout, or coff.
18244 linux*oldld* | linux*aout* | linux*coff*)
18245 dynamic_linker=no
18246 ;;
18247
18248 # This must be Linux ELF.
18249 linux* | k*bsd*-gnu)
18250 version_type=linux
18251 need_lib_prefix=no
18252 need_version=no
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18254 soname_spec='${libname}${release}${shared_ext}$major'
18255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18256 shlibpath_var=LD_LIBRARY_PATH
18257 shlibpath_overrides_runpath=no
18258 # This implies no fast_install, which is unacceptable.
18259 # Some rework will be needed to allow for fast_install
18260 # before this can be enabled.
18261 hardcode_into_libs=yes
18262
18263 # find out which ABI we are using
18264 libsuff=
18265 case "$host_cpu" in
18266 x86_64*|s390x*|powerpc64*)
18267 echo '#line 18267 "configure"' > conftest.$ac_ext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; then
18273 case `/usr/bin/file conftest.$ac_objext` in
18274 *64-bit*)
18275 libsuff=64
18276 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18277 ;;
18278 esac
18279 fi
18280 rm -rf conftest*
18281 ;;
18282 esac
18283
18284 # Append ld.so.conf contents to the search path
18285 if test -f /etc/ld.so.conf; then
18286 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' ' '`
18287 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18288 fi
18289
18290 # We used to test for /lib/ld.so.1 and disable shared libraries on
18291 # powerpc, because MkLinux only supported shared libraries with the
18292 # GNU dynamic linker. Since this was broken with cross compilers,
18293 # most powerpc-linux boxes support dynamic linking these days and
18294 # people can always --disable-shared, the test was removed, and we
18295 # assume the GNU/Linux dynamic linker is in use.
18296 dynamic_linker='GNU/Linux ld.so'
18297 ;;
18298
18299 netbsd*)
18300 version_type=sunos
18301 need_lib_prefix=no
18302 need_version=no
18303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18306 dynamic_linker='NetBSD (a.out) ld.so'
18307 else
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18309 soname_spec='${libname}${release}${shared_ext}$major'
18310 dynamic_linker='NetBSD ld.elf_so'
18311 fi
18312 shlibpath_var=LD_LIBRARY_PATH
18313 shlibpath_overrides_runpath=yes
18314 hardcode_into_libs=yes
18315 ;;
18316
18317 newsos6)
18318 version_type=linux
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320 shlibpath_var=LD_LIBRARY_PATH
18321 shlibpath_overrides_runpath=yes
18322 ;;
18323
18324 nto-qnx*)
18325 version_type=linux
18326 need_lib_prefix=no
18327 need_version=no
18328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18329 soname_spec='${libname}${release}${shared_ext}$major'
18330 shlibpath_var=LD_LIBRARY_PATH
18331 shlibpath_overrides_runpath=yes
18332 ;;
18333
18334 openbsd*)
18335 version_type=sunos
18336 sys_lib_dlsearch_path_spec="/usr/lib"
18337 need_lib_prefix=no
18338 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18339 case $host_os in
18340 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18341 *) need_version=no ;;
18342 esac
18343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18345 shlibpath_var=LD_LIBRARY_PATH
18346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18347 case $host_os in
18348 openbsd2.[89] | openbsd2.[89].*)
18349 shlibpath_overrides_runpath=no
18350 ;;
18351 *)
18352 shlibpath_overrides_runpath=yes
18353 ;;
18354 esac
18355 else
18356 shlibpath_overrides_runpath=yes
18357 fi
18358 ;;
18359
18360 os2*)
18361 libname_spec='$name'
18362 shrext_cmds=".dll"
18363 need_lib_prefix=no
18364 library_names_spec='$libname${shared_ext} $libname.a'
18365 dynamic_linker='OS/2 ld.exe'
18366 shlibpath_var=LIBPATH
18367 ;;
18368
18369 osf3* | osf4* | osf5*)
18370 version_type=osf
18371 need_lib_prefix=no
18372 need_version=no
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18375 shlibpath_var=LD_LIBRARY_PATH
18376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18378 ;;
18379
18380 rdos*)
18381 dynamic_linker=no
18382 ;;
18383
18384 solaris*)
18385 version_type=linux
18386 need_lib_prefix=no
18387 need_version=no
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389 soname_spec='${libname}${release}${shared_ext}$major'
18390 shlibpath_var=LD_LIBRARY_PATH
18391 shlibpath_overrides_runpath=yes
18392 hardcode_into_libs=yes
18393 # ldd complains unless libraries are executable
18394 postinstall_cmds='chmod +x $lib'
18395 ;;
18396
18397 sunos4*)
18398 version_type=sunos
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 shlibpath_overrides_runpath=yes
18403 if test "$with_gnu_ld" = yes; then
18404 need_lib_prefix=no
18405 fi
18406 need_version=yes
18407 ;;
18408
18409 sysv4 | sysv4.3*)
18410 version_type=linux
18411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412 soname_spec='${libname}${release}${shared_ext}$major'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 case $host_vendor in
18415 sni)
18416 shlibpath_overrides_runpath=no
18417 need_lib_prefix=no
18418 export_dynamic_flag_spec='${wl}-Blargedynsym'
18419 runpath_var=LD_RUN_PATH
18420 ;;
18421 siemens)
18422 need_lib_prefix=no
18423 ;;
18424 motorola)
18425 need_lib_prefix=no
18426 need_version=no
18427 shlibpath_overrides_runpath=no
18428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18429 ;;
18430 esac
18431 ;;
18432
18433 sysv4*MP*)
18434 if test -d /usr/nec ;then
18435 version_type=linux
18436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18437 soname_spec='$libname${shared_ext}.$major'
18438 shlibpath_var=LD_LIBRARY_PATH
18439 fi
18440 ;;
18441
18442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18443 version_type=freebsd-elf
18444 need_lib_prefix=no
18445 need_version=no
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18447 soname_spec='${libname}${release}${shared_ext}$major'
18448 shlibpath_var=LD_LIBRARY_PATH
18449 hardcode_into_libs=yes
18450 if test "$with_gnu_ld" = yes; then
18451 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18452 shlibpath_overrides_runpath=no
18453 else
18454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18455 shlibpath_overrides_runpath=yes
18456 case $host_os in
18457 sco3.2v5*)
18458 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18459 ;;
18460 esac
18461 fi
18462 sys_lib_dlsearch_path_spec='/usr/lib'
18463 ;;
18464
18465 uts4*)
18466 version_type=linux
18467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18468 soname_spec='${libname}${release}${shared_ext}$major'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 ;;
18471
18472 *)
18473 dynamic_linker=no
18474 ;;
18475 esac
18476 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18477 echo "${ECHO_T}$dynamic_linker" >&6; }
18478 test "$dynamic_linker" = no && can_build_shared=no
18479
18480 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18481 if test "$GCC" = yes; then
18482 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18483 fi
18484
18485 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18486 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18487 hardcode_action_GCJ=
18488 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18489 test -n "$runpath_var_GCJ" || \
18490 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18491
18492 # We can hardcode non-existant directories.
18493 if test "$hardcode_direct_GCJ" != no &&
18494 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18495 # have to relink, otherwise we might link with an installed library
18496 # when we should be linking with a yet-to-be-installed one
18497 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18498 test "$hardcode_minus_L_GCJ" != no; then
18499 # Linking always hardcodes the temporary library directory.
18500 hardcode_action_GCJ=relink
18501 else
18502 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18503 hardcode_action_GCJ=immediate
18504 fi
18505 else
18506 # We cannot hardcode anything, or else we can only hardcode existing
18507 # directories.
18508 hardcode_action_GCJ=unsupported
18509 fi
18510 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18511 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18512
18513 if test "$hardcode_action_GCJ" = relink; then
18514 # Fast installation is not supported
18515 enable_fast_install=no
18516 elif test "$shlibpath_overrides_runpath" = yes ||
18517 test "$enable_shared" = no; then
18518 # Fast installation is not necessary
18519 enable_fast_install=needless
18520 fi
18521
18522
18523 # The else clause should only fire when bootstrapping the
18524 # libtool distribution, otherwise you forgot to ship ltmain.sh
18525 # with your package, and you will get complaints that there are
18526 # no rules to generate ltmain.sh.
18527 if test -f "$ltmain"; then
18528 # See if we are running on zsh, and set the options which allow our commands through
18529 # without removal of \ escapes.
18530 if test -n "${ZSH_VERSION+set}" ; then
18531 setopt NO_GLOB_SUBST
18532 fi
18533 # Now quote all the things that may contain metacharacters while being
18534 # careful not to overquote the AC_SUBSTed values. We take copies of the
18535 # variables and quote the copies for generation of the libtool script.
18536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18537 SED SHELL STRIP \
18538 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18539 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18540 deplibs_check_method reload_flag reload_cmds need_locks \
18541 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18542 lt_cv_sys_global_symbol_to_c_name_address \
18543 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18544 old_postinstall_cmds old_postuninstall_cmds \
18545 compiler_GCJ \
18546 CC_GCJ \
18547 LD_GCJ \
18548 lt_prog_compiler_wl_GCJ \
18549 lt_prog_compiler_pic_GCJ \
18550 lt_prog_compiler_static_GCJ \
18551 lt_prog_compiler_no_builtin_flag_GCJ \
18552 export_dynamic_flag_spec_GCJ \
18553 thread_safe_flag_spec_GCJ \
18554 whole_archive_flag_spec_GCJ \
18555 enable_shared_with_static_runtimes_GCJ \
18556 old_archive_cmds_GCJ \
18557 old_archive_from_new_cmds_GCJ \
18558 predep_objects_GCJ \
18559 postdep_objects_GCJ \
18560 predeps_GCJ \
18561 postdeps_GCJ \
18562 compiler_lib_search_path_GCJ \
18563 archive_cmds_GCJ \
18564 archive_expsym_cmds_GCJ \
18565 postinstall_cmds_GCJ \
18566 postuninstall_cmds_GCJ \
18567 old_archive_from_expsyms_cmds_GCJ \
18568 allow_undefined_flag_GCJ \
18569 no_undefined_flag_GCJ \
18570 export_symbols_cmds_GCJ \
18571 hardcode_libdir_flag_spec_GCJ \
18572 hardcode_libdir_flag_spec_ld_GCJ \
18573 hardcode_libdir_separator_GCJ \
18574 hardcode_automatic_GCJ \
18575 module_cmds_GCJ \
18576 module_expsym_cmds_GCJ \
18577 lt_cv_prog_compiler_c_o_GCJ \
18578 fix_srcfile_path_GCJ \
18579 exclude_expsyms_GCJ \
18580 include_expsyms_GCJ; do
18581
18582 case $var in
18583 old_archive_cmds_GCJ | \
18584 old_archive_from_new_cmds_GCJ | \
18585 archive_cmds_GCJ | \
18586 archive_expsym_cmds_GCJ | \
18587 module_cmds_GCJ | \
18588 module_expsym_cmds_GCJ | \
18589 old_archive_from_expsyms_cmds_GCJ | \
18590 export_symbols_cmds_GCJ | \
18591 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18592 postinstall_cmds | postuninstall_cmds | \
18593 old_postinstall_cmds | old_postuninstall_cmds | \
18594 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18595 # Double-quote double-evaled strings.
18596 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18597 ;;
18598 *)
18599 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18600 ;;
18601 esac
18602 done
18603
18604 case $lt_echo in
18605 *'\$0 --fallback-echo"')
18606 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18607 ;;
18608 esac
18609
18610 cfgfile="$ofile"
18611
18612 cat <<__EOF__ >> "$cfgfile"
18613 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18614
18615 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18616
18617 # Shell to use when invoking shell scripts.
18618 SHELL=$lt_SHELL
18619
18620 # Whether or not to build shared libraries.
18621 build_libtool_libs=$enable_shared
18622
18623 # Whether or not to build static libraries.
18624 build_old_libs=$enable_static
18625
18626 # Whether or not to add -lc for building shared libraries.
18627 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18628
18629 # Whether or not to disallow shared libs when runtime libs are static
18630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18631
18632 # Whether or not to optimize for fast installation.
18633 fast_install=$enable_fast_install
18634
18635 # The host system.
18636 host_alias=$host_alias
18637 host=$host
18638 host_os=$host_os
18639
18640 # The build system.
18641 build_alias=$build_alias
18642 build=$build
18643 build_os=$build_os
18644
18645 # An echo program that does not interpret backslashes.
18646 echo=$lt_echo
18647
18648 # The archiver.
18649 AR=$lt_AR
18650 AR_FLAGS=$lt_AR_FLAGS
18651
18652 # A C compiler.
18653 LTCC=$lt_LTCC
18654
18655 # LTCC compiler flags.
18656 LTCFLAGS=$lt_LTCFLAGS
18657
18658 # A language-specific compiler.
18659 CC=$lt_compiler_GCJ
18660
18661 # Is the compiler the GNU C compiler?
18662 with_gcc=$GCC_GCJ
18663
18664 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18665 gcc_ver=\`gcc -dumpversion\`
18666
18667 # An ERE matcher.
18668 EGREP=$lt_EGREP
18669
18670 # The linker used to build libraries.
18671 LD=$lt_LD_GCJ
18672
18673 # Whether we need hard or soft links.
18674 LN_S=$lt_LN_S
18675
18676 # A BSD-compatible nm program.
18677 NM=$lt_NM
18678
18679 # A symbol stripping program
18680 STRIP=$lt_STRIP
18681
18682 # Used to examine libraries when file_magic_cmd begins "file"
18683 MAGIC_CMD=$MAGIC_CMD
18684
18685 # Used on cygwin: DLL creation program.
18686 DLLTOOL="$DLLTOOL"
18687
18688 # Used on cygwin: object dumper.
18689 OBJDUMP="$OBJDUMP"
18690
18691 # Used on cygwin: assembler.
18692 AS="$AS"
18693
18694 # The name of the directory that contains temporary libtool files.
18695 objdir=$objdir
18696
18697 # How to create reloadable object files.
18698 reload_flag=$lt_reload_flag
18699 reload_cmds=$lt_reload_cmds
18700
18701 # How to pass a linker flag through the compiler.
18702 wl=$lt_lt_prog_compiler_wl_GCJ
18703
18704 # Object file suffix (normally "o").
18705 objext="$ac_objext"
18706
18707 # Old archive suffix (normally "a").
18708 libext="$libext"
18709
18710 # Shared library suffix (normally ".so").
18711 shrext_cmds='$shrext_cmds'
18712
18713 # Executable file suffix (normally "").
18714 exeext="$exeext"
18715
18716 # Additional compiler flags for building library objects.
18717 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18718 pic_mode=$pic_mode
18719
18720 # What is the maximum length of a command?
18721 max_cmd_len=$lt_cv_sys_max_cmd_len
18722
18723 # Does compiler simultaneously support -c and -o options?
18724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18725
18726 # Must we lock files when doing compilation?
18727 need_locks=$lt_need_locks
18728
18729 # Do we need the lib prefix for modules?
18730 need_lib_prefix=$need_lib_prefix
18731
18732 # Do we need a version for libraries?
18733 need_version=$need_version
18734
18735 # Whether dlopen is supported.
18736 dlopen_support=$enable_dlopen
18737
18738 # Whether dlopen of programs is supported.
18739 dlopen_self=$enable_dlopen_self
18740
18741 # Whether dlopen of statically linked programs is supported.
18742 dlopen_self_static=$enable_dlopen_self_static
18743
18744 # Compiler flag to prevent dynamic linking.
18745 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18746
18747 # Compiler flag to turn off builtin functions.
18748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18749
18750 # Compiler flag to allow reflexive dlopens.
18751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18752
18753 # Compiler flag to generate shared objects directly from archives.
18754 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18755
18756 # Compiler flag to generate thread-safe objects.
18757 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18758
18759 # Library versioning type.
18760 version_type=$version_type
18761
18762 # Format of library name prefix.
18763 libname_spec=$lt_libname_spec
18764
18765 # List of archive names. First name is the real one, the rest are links.
18766 # The last name is the one that the linker finds with -lNAME.
18767 library_names_spec=$lt_library_names_spec
18768
18769 # The coded name of the library, if different from the real name.
18770 soname_spec=$lt_soname_spec
18771
18772 # Commands used to build and install an old-style archive.
18773 RANLIB=$lt_RANLIB
18774 old_archive_cmds=$lt_old_archive_cmds_GCJ
18775 old_postinstall_cmds=$lt_old_postinstall_cmds
18776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18777
18778 # Create an old-style archive from a shared archive.
18779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18780
18781 # Create a temporary old-style archive to link instead of a shared archive.
18782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18783
18784 # Commands used to build and install a shared archive.
18785 archive_cmds=$lt_archive_cmds_GCJ
18786 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18787 postinstall_cmds=$lt_postinstall_cmds
18788 postuninstall_cmds=$lt_postuninstall_cmds
18789
18790 # Commands used to build a loadable module (assumed same as above if empty)
18791 module_cmds=$lt_module_cmds_GCJ
18792 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18793
18794 # Commands to strip libraries.
18795 old_striplib=$lt_old_striplib
18796 striplib=$lt_striplib
18797
18798 # Dependencies to place before the objects being linked to create a
18799 # shared library.
18800 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18801
18802 # Dependencies to place after the objects being linked to create a
18803 # shared library.
18804 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18805
18806 # Dependencies to place before the objects being linked to create a
18807 # shared library.
18808 predeps=$lt_predeps_GCJ
18809
18810 # Dependencies to place after the objects being linked to create a
18811 # shared library.
18812 postdeps=$lt_postdeps_GCJ
18813
18814 # The library search path used internally by the compiler when linking
18815 # a shared library.
18816 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18817
18818 # Method to check whether dependent libraries are shared objects.
18819 deplibs_check_method=$lt_deplibs_check_method
18820
18821 # Command to use when deplibs_check_method == file_magic.
18822 file_magic_cmd=$lt_file_magic_cmd
18823
18824 # Flag that allows shared libraries with undefined symbols to be built.
18825 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18826
18827 # Flag that forces no undefined symbols.
18828 no_undefined_flag=$lt_no_undefined_flag_GCJ
18829
18830 # Commands used to finish a libtool library installation in a directory.
18831 finish_cmds=$lt_finish_cmds
18832
18833 # Same as above, but a single script fragment to be evaled but not shown.
18834 finish_eval=$lt_finish_eval
18835
18836 # Take the output of nm and produce a listing of raw symbols and C names.
18837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18838
18839 # Transform the output of nm in a proper C declaration
18840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18841
18842 # Transform the output of nm in a C name address pair
18843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18844
18845 # This is the shared library runtime path variable.
18846 runpath_var=$runpath_var
18847
18848 # This is the shared library path variable.
18849 shlibpath_var=$shlibpath_var
18850
18851 # Is shlibpath searched before the hard-coded library search path?
18852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18853
18854 # How to hardcode a shared library path into an executable.
18855 hardcode_action=$hardcode_action_GCJ
18856
18857 # Whether we should hardcode library paths into libraries.
18858 hardcode_into_libs=$hardcode_into_libs
18859
18860 # Flag to hardcode \$libdir into a binary during linking.
18861 # This must work even if \$libdir does not exist.
18862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18863
18864 # If ld is used when linking, flag to hardcode \$libdir into
18865 # a binary during linking. This must work even if \$libdir does
18866 # not exist.
18867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18868
18869 # Whether we need a single -rpath flag with a separated argument.
18870 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18871
18872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18873 # resulting binary.
18874 hardcode_direct=$hardcode_direct_GCJ
18875
18876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18877 # resulting binary.
18878 hardcode_minus_L=$hardcode_minus_L_GCJ
18879
18880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18881 # the resulting binary.
18882 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18883
18884 # Set to yes if building a shared library automatically hardcodes DIR into the library
18885 # and all subsequent libraries and executables linked against it.
18886 hardcode_automatic=$hardcode_automatic_GCJ
18887
18888 # Variables whose values should be saved in libtool wrapper scripts and
18889 # restored at relink time.
18890 variables_saved_for_relink="$variables_saved_for_relink"
18891
18892 # Whether libtool must link a program against all its dependency libraries.
18893 link_all_deplibs=$link_all_deplibs_GCJ
18894
18895 # Compile-time system search path for libraries
18896 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18897
18898 # Run-time system search path for libraries
18899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18900
18901 # Fix the shell variable \$srcfile for the compiler.
18902 fix_srcfile_path=$lt_fix_srcfile_path
18903
18904 # Set to yes if exported symbols are required.
18905 always_export_symbols=$always_export_symbols_GCJ
18906
18907 # The commands to list exported symbols.
18908 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18909
18910 # The commands to extract the exported symbol list from a shared archive.
18911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18912
18913 # Symbols that should not be listed in the preloaded symbols.
18914 exclude_expsyms=$lt_exclude_expsyms_GCJ
18915
18916 # Symbols that must always be exported.
18917 include_expsyms=$lt_include_expsyms_GCJ
18918
18919 # ### END LIBTOOL TAG CONFIG: $tagname
18920
18921 __EOF__
18922
18923
18924 else
18925 # If there is no Makefile yet, we rely on a make rule to execute
18926 # `config.status --recheck' to rerun these tests and create the
18927 # libtool script then.
18928 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18929 if test -f "$ltmain_in"; then
18930 test -f Makefile && make "$ltmain"
18931 fi
18932 fi
18933
18934
18935 ac_ext=c
18936 ac_cpp='$CPP $CPPFLAGS'
18937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18940
18941 CC="$lt_save_CC"
18942
18943 else
18944 tagname=""
18945 fi
18946 ;;
18947
18948 RC)
18949
18950
18951 # Source file extension for RC test sources.
18952 ac_ext=rc
18953
18954 # Object file extension for compiled RC test sources.
18955 objext=o
18956 objext_RC=$objext
18957
18958 # Code to be used in simple compile tests
18959 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18960
18961 # Code to be used in simple link tests
18962 lt_simple_link_test_code="$lt_simple_compile_test_code"
18963
18964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18965
18966 # If no C compiler was specified, use CC.
18967 LTCC=${LTCC-"$CC"}
18968
18969 # If no C compiler flags were specified, use CFLAGS.
18970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18971
18972 # Allow CC to be a program name with arguments.
18973 compiler=$CC
18974
18975
18976 # save warnings/boilerplate of simple test code
18977 ac_outfile=conftest.$ac_objext
18978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18980 _lt_compiler_boilerplate=`cat conftest.err`
18981 $rm conftest*
18982
18983 ac_outfile=conftest.$ac_objext
18984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18986 _lt_linker_boilerplate=`cat conftest.err`
18987 $rm conftest*
18988
18989
18990 # Allow CC to be a program name with arguments.
18991 lt_save_CC="$CC"
18992 CC=${RC-"windres"}
18993 compiler=$CC
18994 compiler_RC=$CC
18995 for cc_temp in $compiler""; do
18996 case $cc_temp in
18997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18999 \-*) ;;
19000 *) break;;
19001 esac
19002 done
19003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19004
19005 lt_cv_prog_compiler_c_o_RC=yes
19006
19007 # The else clause should only fire when bootstrapping the
19008 # libtool distribution, otherwise you forgot to ship ltmain.sh
19009 # with your package, and you will get complaints that there are
19010 # no rules to generate ltmain.sh.
19011 if test -f "$ltmain"; then
19012 # See if we are running on zsh, and set the options which allow our commands through
19013 # without removal of \ escapes.
19014 if test -n "${ZSH_VERSION+set}" ; then
19015 setopt NO_GLOB_SUBST
19016 fi
19017 # Now quote all the things that may contain metacharacters while being
19018 # careful not to overquote the AC_SUBSTed values. We take copies of the
19019 # variables and quote the copies for generation of the libtool script.
19020 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19021 SED SHELL STRIP \
19022 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19023 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19024 deplibs_check_method reload_flag reload_cmds need_locks \
19025 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19026 lt_cv_sys_global_symbol_to_c_name_address \
19027 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19028 old_postinstall_cmds old_postuninstall_cmds \
19029 compiler_RC \
19030 CC_RC \
19031 LD_RC \
19032 lt_prog_compiler_wl_RC \
19033 lt_prog_compiler_pic_RC \
19034 lt_prog_compiler_static_RC \
19035 lt_prog_compiler_no_builtin_flag_RC \
19036 export_dynamic_flag_spec_RC \
19037 thread_safe_flag_spec_RC \
19038 whole_archive_flag_spec_RC \
19039 enable_shared_with_static_runtimes_RC \
19040 old_archive_cmds_RC \
19041 old_archive_from_new_cmds_RC \
19042 predep_objects_RC \
19043 postdep_objects_RC \
19044 predeps_RC \
19045 postdeps_RC \
19046 compiler_lib_search_path_RC \
19047 archive_cmds_RC \
19048 archive_expsym_cmds_RC \
19049 postinstall_cmds_RC \
19050 postuninstall_cmds_RC \
19051 old_archive_from_expsyms_cmds_RC \
19052 allow_undefined_flag_RC \
19053 no_undefined_flag_RC \
19054 export_symbols_cmds_RC \
19055 hardcode_libdir_flag_spec_RC \
19056 hardcode_libdir_flag_spec_ld_RC \
19057 hardcode_libdir_separator_RC \
19058 hardcode_automatic_RC \
19059 module_cmds_RC \
19060 module_expsym_cmds_RC \
19061 lt_cv_prog_compiler_c_o_RC \
19062 fix_srcfile_path_RC \
19063 exclude_expsyms_RC \
19064 include_expsyms_RC; do
19065
19066 case $var in
19067 old_archive_cmds_RC | \
19068 old_archive_from_new_cmds_RC | \
19069 archive_cmds_RC | \
19070 archive_expsym_cmds_RC | \
19071 module_cmds_RC | \
19072 module_expsym_cmds_RC | \
19073 old_archive_from_expsyms_cmds_RC | \
19074 export_symbols_cmds_RC | \
19075 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19076 postinstall_cmds | postuninstall_cmds | \
19077 old_postinstall_cmds | old_postuninstall_cmds | \
19078 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19079 # Double-quote double-evaled strings.
19080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19081 ;;
19082 *)
19083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19084 ;;
19085 esac
19086 done
19087
19088 case $lt_echo in
19089 *'\$0 --fallback-echo"')
19090 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19091 ;;
19092 esac
19093
19094 cfgfile="$ofile"
19095
19096 cat <<__EOF__ >> "$cfgfile"
19097 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19098
19099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19100
19101 # Shell to use when invoking shell scripts.
19102 SHELL=$lt_SHELL
19103
19104 # Whether or not to build shared libraries.
19105 build_libtool_libs=$enable_shared
19106
19107 # Whether or not to build static libraries.
19108 build_old_libs=$enable_static
19109
19110 # Whether or not to add -lc for building shared libraries.
19111 build_libtool_need_lc=$archive_cmds_need_lc_RC
19112
19113 # Whether or not to disallow shared libs when runtime libs are static
19114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19115
19116 # Whether or not to optimize for fast installation.
19117 fast_install=$enable_fast_install
19118
19119 # The host system.
19120 host_alias=$host_alias
19121 host=$host
19122 host_os=$host_os
19123
19124 # The build system.
19125 build_alias=$build_alias
19126 build=$build
19127 build_os=$build_os
19128
19129 # An echo program that does not interpret backslashes.
19130 echo=$lt_echo
19131
19132 # The archiver.
19133 AR=$lt_AR
19134 AR_FLAGS=$lt_AR_FLAGS
19135
19136 # A C compiler.
19137 LTCC=$lt_LTCC
19138
19139 # LTCC compiler flags.
19140 LTCFLAGS=$lt_LTCFLAGS
19141
19142 # A language-specific compiler.
19143 CC=$lt_compiler_RC
19144
19145 # Is the compiler the GNU C compiler?
19146 with_gcc=$GCC_RC
19147
19148 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19149 gcc_ver=\`gcc -dumpversion\`
19150
19151 # An ERE matcher.
19152 EGREP=$lt_EGREP
19153
19154 # The linker used to build libraries.
19155 LD=$lt_LD_RC
19156
19157 # Whether we need hard or soft links.
19158 LN_S=$lt_LN_S
19159
19160 # A BSD-compatible nm program.
19161 NM=$lt_NM
19162
19163 # A symbol stripping program
19164 STRIP=$lt_STRIP
19165
19166 # Used to examine libraries when file_magic_cmd begins "file"
19167 MAGIC_CMD=$MAGIC_CMD
19168
19169 # Used on cygwin: DLL creation program.
19170 DLLTOOL="$DLLTOOL"
19171
19172 # Used on cygwin: object dumper.
19173 OBJDUMP="$OBJDUMP"
19174
19175 # Used on cygwin: assembler.
19176 AS="$AS"
19177
19178 # The name of the directory that contains temporary libtool files.
19179 objdir=$objdir
19180
19181 # How to create reloadable object files.
19182 reload_flag=$lt_reload_flag
19183 reload_cmds=$lt_reload_cmds
19184
19185 # How to pass a linker flag through the compiler.
19186 wl=$lt_lt_prog_compiler_wl_RC
19187
19188 # Object file suffix (normally "o").
19189 objext="$ac_objext"
19190
19191 # Old archive suffix (normally "a").
19192 libext="$libext"
19193
19194 # Shared library suffix (normally ".so").
19195 shrext_cmds='$shrext_cmds'
19196
19197 # Executable file suffix (normally "").
19198 exeext="$exeext"
19199
19200 # Additional compiler flags for building library objects.
19201 pic_flag=$lt_lt_prog_compiler_pic_RC
19202 pic_mode=$pic_mode
19203
19204 # What is the maximum length of a command?
19205 max_cmd_len=$lt_cv_sys_max_cmd_len
19206
19207 # Does compiler simultaneously support -c and -o options?
19208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19209
19210 # Must we lock files when doing compilation?
19211 need_locks=$lt_need_locks
19212
19213 # Do we need the lib prefix for modules?
19214 need_lib_prefix=$need_lib_prefix
19215
19216 # Do we need a version for libraries?
19217 need_version=$need_version
19218
19219 # Whether dlopen is supported.
19220 dlopen_support=$enable_dlopen
19221
19222 # Whether dlopen of programs is supported.
19223 dlopen_self=$enable_dlopen_self
19224
19225 # Whether dlopen of statically linked programs is supported.
19226 dlopen_self_static=$enable_dlopen_self_static
19227
19228 # Compiler flag to prevent dynamic linking.
19229 link_static_flag=$lt_lt_prog_compiler_static_RC
19230
19231 # Compiler flag to turn off builtin functions.
19232 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19233
19234 # Compiler flag to allow reflexive dlopens.
19235 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19236
19237 # Compiler flag to generate shared objects directly from archives.
19238 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19239
19240 # Compiler flag to generate thread-safe objects.
19241 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19242
19243 # Library versioning type.
19244 version_type=$version_type
19245
19246 # Format of library name prefix.
19247 libname_spec=$lt_libname_spec
19248
19249 # List of archive names. First name is the real one, the rest are links.
19250 # The last name is the one that the linker finds with -lNAME.
19251 library_names_spec=$lt_library_names_spec
19252
19253 # The coded name of the library, if different from the real name.
19254 soname_spec=$lt_soname_spec
19255
19256 # Commands used to build and install an old-style archive.
19257 RANLIB=$lt_RANLIB
19258 old_archive_cmds=$lt_old_archive_cmds_RC
19259 old_postinstall_cmds=$lt_old_postinstall_cmds
19260 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19261
19262 # Create an old-style archive from a shared archive.
19263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19264
19265 # Create a temporary old-style archive to link instead of a shared archive.
19266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19267
19268 # Commands used to build and install a shared archive.
19269 archive_cmds=$lt_archive_cmds_RC
19270 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19271 postinstall_cmds=$lt_postinstall_cmds
19272 postuninstall_cmds=$lt_postuninstall_cmds
19273
19274 # Commands used to build a loadable module (assumed same as above if empty)
19275 module_cmds=$lt_module_cmds_RC
19276 module_expsym_cmds=$lt_module_expsym_cmds_RC
19277
19278 # Commands to strip libraries.
19279 old_striplib=$lt_old_striplib
19280 striplib=$lt_striplib
19281
19282 # Dependencies to place before the objects being linked to create a
19283 # shared library.
19284 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19285
19286 # Dependencies to place after the objects being linked to create a
19287 # shared library.
19288 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19289
19290 # Dependencies to place before the objects being linked to create a
19291 # shared library.
19292 predeps=$lt_predeps_RC
19293
19294 # Dependencies to place after the objects being linked to create a
19295 # shared library.
19296 postdeps=$lt_postdeps_RC
19297
19298 # The library search path used internally by the compiler when linking
19299 # a shared library.
19300 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19301
19302 # Method to check whether dependent libraries are shared objects.
19303 deplibs_check_method=$lt_deplibs_check_method
19304
19305 # Command to use when deplibs_check_method == file_magic.
19306 file_magic_cmd=$lt_file_magic_cmd
19307
19308 # Flag that allows shared libraries with undefined symbols to be built.
19309 allow_undefined_flag=$lt_allow_undefined_flag_RC
19310
19311 # Flag that forces no undefined symbols.
19312 no_undefined_flag=$lt_no_undefined_flag_RC
19313
19314 # Commands used to finish a libtool library installation in a directory.
19315 finish_cmds=$lt_finish_cmds
19316
19317 # Same as above, but a single script fragment to be evaled but not shown.
19318 finish_eval=$lt_finish_eval
19319
19320 # Take the output of nm and produce a listing of raw symbols and C names.
19321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19322
19323 # Transform the output of nm in a proper C declaration
19324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19325
19326 # Transform the output of nm in a C name address pair
19327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19328
19329 # This is the shared library runtime path variable.
19330 runpath_var=$runpath_var
19331
19332 # This is the shared library path variable.
19333 shlibpath_var=$shlibpath_var
19334
19335 # Is shlibpath searched before the hard-coded library search path?
19336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19337
19338 # How to hardcode a shared library path into an executable.
19339 hardcode_action=$hardcode_action_RC
19340
19341 # Whether we should hardcode library paths into libraries.
19342 hardcode_into_libs=$hardcode_into_libs
19343
19344 # Flag to hardcode \$libdir into a binary during linking.
19345 # This must work even if \$libdir does not exist.
19346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19347
19348 # If ld is used when linking, flag to hardcode \$libdir into
19349 # a binary during linking. This must work even if \$libdir does
19350 # not exist.
19351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19352
19353 # Whether we need a single -rpath flag with a separated argument.
19354 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19355
19356 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19357 # resulting binary.
19358 hardcode_direct=$hardcode_direct_RC
19359
19360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19361 # resulting binary.
19362 hardcode_minus_L=$hardcode_minus_L_RC
19363
19364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19365 # the resulting binary.
19366 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19367
19368 # Set to yes if building a shared library automatically hardcodes DIR into the library
19369 # and all subsequent libraries and executables linked against it.
19370 hardcode_automatic=$hardcode_automatic_RC
19371
19372 # Variables whose values should be saved in libtool wrapper scripts and
19373 # restored at relink time.
19374 variables_saved_for_relink="$variables_saved_for_relink"
19375
19376 # Whether libtool must link a program against all its dependency libraries.
19377 link_all_deplibs=$link_all_deplibs_RC
19378
19379 # Compile-time system search path for libraries
19380 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19381
19382 # Run-time system search path for libraries
19383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19384
19385 # Fix the shell variable \$srcfile for the compiler.
19386 fix_srcfile_path=$lt_fix_srcfile_path
19387
19388 # Set to yes if exported symbols are required.
19389 always_export_symbols=$always_export_symbols_RC
19390
19391 # The commands to list exported symbols.
19392 export_symbols_cmds=$lt_export_symbols_cmds_RC
19393
19394 # The commands to extract the exported symbol list from a shared archive.
19395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19396
19397 # Symbols that should not be listed in the preloaded symbols.
19398 exclude_expsyms=$lt_exclude_expsyms_RC
19399
19400 # Symbols that must always be exported.
19401 include_expsyms=$lt_include_expsyms_RC
19402
19403 # ### END LIBTOOL TAG CONFIG: $tagname
19404
19405 __EOF__
19406
19407
19408 else
19409 # If there is no Makefile yet, we rely on a make rule to execute
19410 # `config.status --recheck' to rerun these tests and create the
19411 # libtool script then.
19412 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19413 if test -f "$ltmain_in"; then
19414 test -f Makefile && make "$ltmain"
19415 fi
19416 fi
19417
19418
19419 ac_ext=c
19420 ac_cpp='$CPP $CPPFLAGS'
19421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19424
19425 CC="$lt_save_CC"
19426
19427 ;;
19428
19429 *)
19430 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19431 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19432 { (exit 1); exit 1; }; }
19433 ;;
19434 esac
19435
19436 # Append the new tag name to the list of available tags.
19437 if test -n "$tagname" ; then
19438 available_tags="$available_tags $tagname"
19439 fi
19440 fi
19441 done
19442 IFS="$lt_save_ifs"
19443
19444 # Now substitute the updated list of available tags.
19445 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19446 mv "${ofile}T" "$ofile"
19447 chmod +x "$ofile"
19448 else
19449 rm -f "${ofile}T"
19450 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19451 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19452 { (exit 1); exit 1; }; }
19453 fi
19454 fi
19455
19456
19457
19458 # This can be used to rebuild libtool when needed
19459 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19460
19461 # Always use our own libtool.
19462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19463
19464 # Prevent multiple expansion
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486 # Checks for libraries.
19487
19488 { echo "$as_me:$LINENO: checking for initLibG15 in -lg15" >&5
19489 echo $ECHO_N "checking for initLibG15 in -lg15... $ECHO_C" >&6; }
19490 if test "${ac_cv_lib_g15_initLibG15+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493 ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lg15 $LIBS"
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501
19502 /* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19505 #ifdef __cplusplus
19506 extern "C"
19507 #endif
19508 char initLibG15 ();
19509 int
19510 main ()
19511 {
19512 return initLibG15 ();
19513 ;
19514 return 0;
19515 }
19516 _ACEOF
19517 rm -f conftest.$ac_objext conftest$ac_exeext
19518 if { (ac_try="$ac_link"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest$ac_exeext &&
19534 $as_test_x conftest$ac_exeext; then
19535 ac_cv_lib_g15_initLibG15=yes
19536 else
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19539
19540 ac_cv_lib_g15_initLibG15=no
19541 fi
19542
19543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19544 conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19546 fi
19547 { echo "$as_me:$LINENO: result: $ac_cv_lib_g15_initLibG15" >&5
19548 echo "${ECHO_T}$ac_cv_lib_g15_initLibG15" >&6; }
19549 if test $ac_cv_lib_g15_initLibG15 = yes; then
19550 cat >>confdefs.h <<_ACEOF
19551 #define HAVE_LIBG15 1
19552 _ACEOF
19553
19554 LIBS="-lg15 $LIBS"
19555
19556 else
19557 { { echo "$as_me:$LINENO: error: \"libg15 (or its devel package) not found. please install it\"" >&5
19558 echo "$as_me: error: \"libg15 (or its devel package) not found. please install it\"" >&2;}
19559 { (exit 1); exit 1; }; }
19560 fi
19561
19562
19563 { echo "$as_me:$LINENO: checking for g15r_loadWbmpSplash in -lg15render" >&5
19564 echo $ECHO_N "checking for g15r_loadWbmpSplash in -lg15render... $ECHO_C" >&6; }
19565 if test "${ac_cv_lib_g15render_g15r_loadWbmpSplash+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568 ac_check_lib_save_LIBS=$LIBS
19569 LIBS="-lg15render $LIBS"
19570 cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h. */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19580 #ifdef __cplusplus
19581 extern "C"
19582 #endif
19583 char g15r_loadWbmpSplash ();
19584 int
19585 main ()
19586 {
19587 return g15r_loadWbmpSplash ();
19588 ;
19589 return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (ac_try="$ac_link"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_link") 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest$ac_exeext &&
19609 $as_test_x conftest$ac_exeext; then
19610 ac_cv_lib_g15render_g15r_loadWbmpSplash=yes
19611 else
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615 ac_cv_lib_g15render_g15r_loadWbmpSplash=no
19616 fi
19617
19618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19621 fi
19622 { echo "$as_me:$LINENO: result: $ac_cv_lib_g15render_g15r_loadWbmpSplash" >&5
19623 echo "${ECHO_T}$ac_cv_lib_g15render_g15r_loadWbmpSplash" >&6; }
19624 if test $ac_cv_lib_g15render_g15r_loadWbmpSplash = yes; then
19625 cat >>confdefs.h <<_ACEOF
19626 #define HAVE_LIBG15RENDER 1
19627 _ACEOF
19628
19629 LIBS="-lg15render $LIBS"
19630
19631 else
19632 { { echo "$as_me:$LINENO: error: \">=libg15render-1.2 (or its devel package) not found. please install it\"" >&5
19633 echo "$as_me: error: \">=libg15render-1.2 (or its devel package) not found. please install it\"" >&2;}
19634 { (exit 1); exit 1; }; }
19635 fi
19636
19637
19638 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
19639 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
19640 if test "${ac_cv_lib_m_sin+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643 ac_check_lib_save_LIBS=$LIBS
19644 LIBS="-lm $LIBS"
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651
19652 /* Override any GCC internal prototype to avoid an error.
19653 Use char because int might match the return type of a GCC
19654 builtin and then its argument prototype would still apply. */
19655 #ifdef __cplusplus
19656 extern "C"
19657 #endif
19658 char sin ();
19659 int
19660 main ()
19661 {
19662 return sin ();
19663 ;
19664 return 0;
19665 }
19666 _ACEOF
19667 rm -f conftest.$ac_objext conftest$ac_exeext
19668 if { (ac_try="$ac_link"
19669 case "(($ac_try" in
19670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19672 esac
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_link") 2>conftest.er1
19675 ac_status=$?
19676 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } && {
19681 test -z "$ac_c_werror_flag" ||
19682 test ! -s conftest.err
19683 } && test -s conftest$ac_exeext &&
19684 $as_test_x conftest$ac_exeext; then
19685 ac_cv_lib_m_sin=yes
19686 else
19687 echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 ac_cv_lib_m_sin=no
19691 fi
19692
19693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19694 conftest$ac_exeext conftest.$ac_ext
19695 LIBS=$ac_check_lib_save_LIBS
19696 fi
19697 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19698 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
19699 if test $ac_cv_lib_m_sin = yes; then
19700 cat >>confdefs.h <<_ACEOF
19701 #define HAVE_LIBM 1
19702 _ACEOF
19703
19704 LIBS="-lm $LIBS"
19705
19706 fi
19707
19708
19709 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
19710 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
19711 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lpthread $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 char pthread_mutex_init ();
19730 int
19731 main ()
19732 {
19733 return pthread_mutex_init ();
19734 ;
19735 return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_link") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest$ac_exeext &&
19755 $as_test_x conftest$ac_exeext; then
19756 ac_cv_lib_pthread_pthread_mutex_init=yes
19757 else
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761 ac_cv_lib_pthread_pthread_mutex_init=no
19762 fi
19763
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19767 fi
19768 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
19769 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
19770 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
19771 cat >>confdefs.h <<_ACEOF
19772 #define HAVE_LIBPTHREAD 1
19773 _ACEOF
19774
19775 LIBS="-lpthread $LIBS"
19776
19777 fi
19778
19779
19780 { echo "$as_me:$LINENO: checking for daemon" >&5
19781 echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
19782 if test "${ac_cv_func_daemon+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h. */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791 /* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
19792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19793 #define daemon innocuous_daemon
19794
19795 /* System header to define __stub macros and hopefully few prototypes,
19796 which can conflict with char daemon (); below.
19797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19798 <limits.h> exists even on freestanding compilers. */
19799
19800 #ifdef __STDC__
19801 # include <limits.h>
19802 #else
19803 # include <assert.h>
19804 #endif
19805
19806 #undef daemon
19807
19808 /* Override any GCC internal prototype to avoid an error.
19809 Use char because int might match the return type of a GCC
19810 builtin and then its argument prototype would still apply. */
19811 #ifdef __cplusplus
19812 extern "C"
19813 #endif
19814 char daemon ();
19815 /* The GNU C library defines this for functions which it implements
19816 to always fail with ENOSYS. Some functions are actually named
19817 something starting with __ and the normal name is an alias. */
19818 #if defined __stub_daemon || defined __stub___daemon
19819 choke me
19820 #endif
19821
19822 int
19823 main ()
19824 {
19825 return daemon ();
19826 ;
19827 return 0;
19828 }
19829 _ACEOF
19830 rm -f conftest.$ac_objext conftest$ac_exeext
19831 if { (ac_try="$ac_link"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19835 esac
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_link") 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest$ac_exeext &&
19847 $as_test_x conftest$ac_exeext; then
19848 ac_cv_func_daemon=yes
19849 else
19850 echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19852
19853 ac_cv_func_daemon=no
19854 fi
19855
19856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19857 conftest$ac_exeext conftest.$ac_ext
19858 fi
19859 { echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
19860 echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
19861 if test $ac_cv_func_daemon = yes; then
19862
19863 cat >>confdefs.h <<\_ACEOF
19864 #define HAVE_DAEMON 1
19865 _ACEOF
19866
19867 fi
19868
19869
19870 # Checks for typedefs, structures, and compiler characteristics.
19871 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19872 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19873 if test "${ac_cv_c_const+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h. */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882
19883 int
19884 main ()
19885 {
19886 /* FIXME: Include the comments suggested by Paul. */
19887 #ifndef __cplusplus
19888 /* Ultrix mips cc rejects this. */
19889 typedef int charset[2];
19890 const charset cs;
19891 /* SunOS 4.1.1 cc rejects this. */
19892 char const *const *pcpcc;
19893 char **ppc;
19894 /* NEC SVR4.0.2 mips cc rejects this. */
19895 struct point {int x, y;};
19896 static struct point const zero = {0,0};
19897 /* AIX XL C 1.02.0.0 rejects this.
19898 It does not let you subtract one const X* pointer from another in
19899 an arm of an if-expression whose if-part is not a constant
19900 expression */
19901 const char *g = "string";
19902 pcpcc = &g + (g ? g-g : 0);
19903 /* HPUX 7.0 cc rejects these. */
19904 ++pcpcc;
19905 ppc = (char**) pcpcc;
19906 pcpcc = (char const *const *) ppc;
19907 { /* SCO 3.2v4 cc rejects this. */
19908 char *t;
19909 char const *s = 0 ? (char *) 0 : (char const *) 0;
19910
19911 *t++ = 0;
19912 if (s) return 0;
19913 }
19914 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19915 int x[] = {25, 17};
19916 const int *foo = &x[0];
19917 ++foo;
19918 }
19919 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19920 typedef const int *iptr;
19921 iptr p = 0;
19922 ++p;
19923 }
19924 { /* AIX XL C 1.02.0.0 rejects this saying
19925 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19926 struct s { int j; const int *ap[3]; };
19927 struct s *b; b->j = 5;
19928 }
19929 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19930 const int foo = 10;
19931 if (!foo) return 0;
19932 }
19933 return !cs[0] && !zero.x;
19934 #endif
19935
19936 ;
19937 return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (ac_try="$ac_compile"
19942 case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19945 esac
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_compile") 2>conftest.er1
19948 ac_status=$?
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest.$ac_objext; then
19957 ac_cv_c_const=yes
19958 else
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962 ac_cv_c_const=no
19963 fi
19964
19965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 fi
19967 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19968 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19969 if test $ac_cv_c_const = no; then
19970
19971 cat >>confdefs.h <<\_ACEOF
19972 #define const
19973 _ACEOF
19974
19975 fi
19976
19977 { echo "$as_me:$LINENO: checking for pid_t" >&5
19978 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
19979 if test "${ac_cv_type_pid_t+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19989 typedef pid_t ac__type_new_;
19990 int
19991 main ()
19992 {
19993 if ((ac__type_new_ *) 0)
19994 return 0;
19995 if (sizeof (ac__type_new_))
19996 return 0;
19997 ;
19998 return 0;
19999 }
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20006 esac
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_compile") 2>conftest.er1
20009 ac_status=$?
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } && {
20015 test -z "$ac_c_werror_flag" ||
20016 test ! -s conftest.err
20017 } && test -s conftest.$ac_objext; then
20018 ac_cv_type_pid_t=yes
20019 else
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20022
20023 ac_cv_type_pid_t=no
20024 fi
20025
20026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 fi
20028 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20029 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20030 if test $ac_cv_type_pid_t = yes; then
20031 :
20032 else
20033
20034 cat >>confdefs.h <<_ACEOF
20035 #define pid_t int
20036 _ACEOF
20037
20038 fi
20039
20040 { echo "$as_me:$LINENO: checking for size_t" >&5
20041 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20042 if test "${ac_cv_type_size_t+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 $ac_includes_default
20052 typedef size_t ac__type_new_;
20053 int
20054 main ()
20055 {
20056 if ((ac__type_new_ *) 0)
20057 return 0;
20058 if (sizeof (ac__type_new_))
20059 return 0;
20060 ;
20061 return 0;
20062 }
20063 _ACEOF
20064 rm -f conftest.$ac_objext
20065 if { (ac_try="$ac_compile"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20069 esac
20070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071 (eval "$ac_compile") 2>conftest.er1
20072 ac_status=$?
20073 grep -v '^ *+' conftest.er1 >conftest.err
20074 rm -f conftest.er1
20075 cat conftest.err >&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest.$ac_objext; then
20081 ac_cv_type_size_t=yes
20082 else
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086 ac_cv_type_size_t=no
20087 fi
20088
20089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20090 fi
20091 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20092 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20093 if test $ac_cv_type_size_t = yes; then
20094 :
20095 else
20096
20097 cat >>confdefs.h <<_ACEOF
20098 #define size_t unsigned int
20099 _ACEOF
20100
20101 fi
20102
20103
20104 # Checks for library functions.
20105 if test $ac_cv_c_compiler_gnu = yes; then
20106 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20107 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20108 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111 ac_pattern="Autoconf.*'x'"
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <sgtty.h>
20119 Autoconf TIOCGETP
20120 _ACEOF
20121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20122 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20123 ac_cv_prog_gcc_traditional=yes
20124 else
20125 ac_cv_prog_gcc_traditional=no
20126 fi
20127 rm -f conftest*
20128
20129
20130 if test $ac_cv_prog_gcc_traditional = no; then
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h. */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20137 #include <termio.h>
20138 Autoconf TCGETA
20139 _ACEOF
20140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20141 $EGREP "$ac_pattern" >/dev/null 2>&1; then
20142 ac_cv_prog_gcc_traditional=yes
20143 fi
20144 rm -f conftest*
20145
20146 fi
20147 fi
20148 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20149 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20150 if test $ac_cv_prog_gcc_traditional = yes; then
20151 CC="$CC -traditional"
20152 fi
20153 fi
20154
20155
20156
20157 for ac_header in sys/select.h sys/socket.h
20158 do
20159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 fi
20166 ac_res=`eval echo '${'$as_ac_Header'}'`
20167 { echo "$as_me:$LINENO: result: $ac_res" >&5
20168 echo "${ECHO_T}$ac_res" >&6; }
20169 else
20170 # Is the header compilable?
20171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 $ac_includes_default
20180 #include <$ac_header>
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_compile") 2>conftest.er1
20190 ac_status=$?
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && {
20196 test -z "$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 } && test -s conftest.$ac_objext; then
20199 ac_header_compiler=yes
20200 else
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204 ac_header_compiler=no
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20209 echo "${ECHO_T}$ac_header_compiler" >&6; }
20210
20211 # Is the header present?
20212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h. */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 #include <$ac_header>
20221 _ACEOF
20222 if { (ac_try="$ac_cpp conftest.$ac_ext"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20229 ac_status=$?
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } >/dev/null && {
20235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 }; then
20238 ac_header_preproc=yes
20239 else
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_header_preproc=no
20244 fi
20245
20246 rm -f conftest.err conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20248 echo "${ECHO_T}$ac_header_preproc" >&6; }
20249
20250 # So? What about this header?
20251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20252 yes:no: )
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20257 ac_header_preproc=yes
20258 ;;
20259 no:yes:* )
20260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20272 ( cat <<\_ASBOX
20273 ## ------------------------------------ ##
20274 ## Report this to [email protected] ##
20275 ## ------------------------------------ ##
20276 _ASBOX
20277 ) | sed "s/^/$as_me: WARNING: /" >&2
20278 ;;
20279 esac
20280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285 eval "$as_ac_Header=\$ac_header_preproc"
20286 fi
20287 ac_res=`eval echo '${'$as_ac_Header'}'`
20288 { echo "$as_me:$LINENO: result: $ac_res" >&5
20289 echo "${ECHO_T}$ac_res" >&6; }
20290
20291 fi
20292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20295 _ACEOF
20296
20297 fi
20298
20299 done
20300
20301 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
20302 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
20303 if test "${ac_cv_func_select_args+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20307 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20308 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 $ac_includes_default
20316 #ifdef HAVE_SYS_SELECT_H
20317 # include <sys/select.h>
20318 #endif
20319 #ifdef HAVE_SYS_SOCKET_H
20320 # include <sys/socket.h>
20321 #endif
20322
20323 int
20324 main ()
20325 {
20326 extern int select ($ac_arg1,
20327 $ac_arg234, $ac_arg234, $ac_arg234,
20328 $ac_arg5);
20329 ;
20330 return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (ac_try="$ac_compile"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_compile") 2>conftest.er1
20341 ac_status=$?
20342 grep -v '^ *+' conftest.er1 >conftest.err
20343 rm -f conftest.er1
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest.$ac_objext; then
20350 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20351 else
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355
20356 fi
20357
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 done
20360 done
20361 done
20362 # Provide a safe default value.
20363 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
20364
20365 fi
20366 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
20367 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
20368 ac_save_IFS=$IFS; IFS=','
20369 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20370 IFS=$ac_save_IFS
20371 shift
20372
20373 cat >>confdefs.h <<_ACEOF
20374 #define SELECT_TYPE_ARG1 $1
20375 _ACEOF
20376
20377
20378 cat >>confdefs.h <<_ACEOF
20379 #define SELECT_TYPE_ARG234 ($2)
20380 _ACEOF
20381
20382
20383 cat >>confdefs.h <<_ACEOF
20384 #define SELECT_TYPE_ARG5 ($3)
20385 _ACEOF
20386
20387 rm -f conftest*
20388
20389
20390 for ac_func in strftime
20391 do
20392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20406 #define $ac_func innocuous_$ac_func
20407
20408 /* System header to define __stub macros and hopefully few prototypes,
20409 which can conflict with char $ac_func (); below.
20410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20411 <limits.h> exists even on freestanding compilers. */
20412
20413 #ifdef __STDC__
20414 # include <limits.h>
20415 #else
20416 # include <assert.h>
20417 #endif
20418
20419 #undef $ac_func
20420
20421 /* Override any GCC internal prototype to avoid an error.
20422 Use char because int might match the return type of a GCC
20423 builtin and then its argument prototype would still apply. */
20424 #ifdef __cplusplus
20425 extern "C"
20426 #endif
20427 char $ac_func ();
20428 /* The GNU C library defines this for functions which it implements
20429 to always fail with ENOSYS. Some functions are actually named
20430 something starting with __ and the normal name is an alias. */
20431 #if defined __stub_$ac_func || defined __stub___$ac_func
20432 choke me
20433 #endif
20434
20435 int
20436 main ()
20437 {
20438 return $ac_func ();
20439 ;
20440 return 0;
20441 }
20442 _ACEOF
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (ac_try="$ac_link"
20445 case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20448 esac
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_link") 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest$ac_exeext &&
20460 $as_test_x conftest$ac_exeext; then
20461 eval "$as_ac_var=yes"
20462 else
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 eval "$as_ac_var=no"
20467 fi
20468
20469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470 conftest$ac_exeext conftest.$ac_ext
20471 fi
20472 ac_res=`eval echo '${'$as_ac_var'}'`
20473 { echo "$as_me:$LINENO: result: $ac_res" >&5
20474 echo "${ECHO_T}$ac_res" >&6; }
20475 if test `eval echo '${'$as_ac_var'}'` = yes; then
20476 cat >>confdefs.h <<_ACEOF
20477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20478 _ACEOF
20479
20480 else
20481 # strftime is in -lintl on SCO UNIX.
20482 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20483 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
20484 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487 ac_check_lib_save_LIBS=$LIBS
20488 LIBS="-lintl $LIBS"
20489 cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h. */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495
20496 /* Override any GCC internal prototype to avoid an error.
20497 Use char because int might match the return type of a GCC
20498 builtin and then its argument prototype would still apply. */
20499 #ifdef __cplusplus
20500 extern "C"
20501 #endif
20502 char strftime ();
20503 int
20504 main ()
20505 {
20506 return strftime ();
20507 ;
20508 return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext conftest$ac_exeext
20512 if { (ac_try="$ac_link"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20516 esac
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_link") 2>conftest.er1
20519 ac_status=$?
20520 grep -v '^ *+' conftest.er1 >conftest.err
20521 rm -f conftest.er1
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } && {
20525 test -z "$ac_c_werror_flag" ||
20526 test ! -s conftest.err
20527 } && test -s conftest$ac_exeext &&
20528 $as_test_x conftest$ac_exeext; then
20529 ac_cv_lib_intl_strftime=yes
20530 else
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20533
20534 ac_cv_lib_intl_strftime=no
20535 fi
20536
20537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20538 conftest$ac_exeext conftest.$ac_ext
20539 LIBS=$ac_check_lib_save_LIBS
20540 fi
20541 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20542 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20543 if test $ac_cv_lib_intl_strftime = yes; then
20544 cat >>confdefs.h <<\_ACEOF
20545 #define HAVE_STRFTIME 1
20546 _ACEOF
20547
20548 LIBS="-lintl $LIBS"
20549 fi
20550
20551 fi
20552 done
20553
20554
20555
20556
20557
20558
20559
20560 for ac_func in memset select socket strerror backtrace backtrace_symbols
20561 do
20562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20576 #define $ac_func innocuous_$ac_func
20577
20578 /* System header to define __stub macros and hopefully few prototypes,
20579 which can conflict with char $ac_func (); below.
20580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20581 <limits.h> exists even on freestanding compilers. */
20582
20583 #ifdef __STDC__
20584 # include <limits.h>
20585 #else
20586 # include <assert.h>
20587 #endif
20588
20589 #undef $ac_func
20590
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20594 #ifdef __cplusplus
20595 extern "C"
20596 #endif
20597 char $ac_func ();
20598 /* The GNU C library defines this for functions which it implements
20599 to always fail with ENOSYS. Some functions are actually named
20600 something starting with __ and the normal name is an alias. */
20601 #if defined __stub_$ac_func || defined __stub___$ac_func
20602 choke me
20603 #endif
20604
20605 int
20606 main ()
20607 {
20608 return $ac_func ();
20609 ;
20610 return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_link") 2>conftest.er1
20621 ac_status=$?
20622 grep -v '^ *+' conftest.er1 >conftest.err
20623 rm -f conftest.er1
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && {
20627 test -z "$ac_c_werror_flag" ||
20628 test ! -s conftest.err
20629 } && test -s conftest$ac_exeext &&
20630 $as_test_x conftest$ac_exeext; then
20631 eval "$as_ac_var=yes"
20632 else
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 eval "$as_ac_var=no"
20637 fi
20638
20639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20640 conftest$ac_exeext conftest.$ac_ext
20641 fi
20642 ac_res=`eval echo '${'$as_ac_var'}'`
20643 { echo "$as_me:$LINENO: result: $ac_res" >&5
20644 echo "${ECHO_T}$ac_res" >&6; }
20645 if test `eval echo '${'$as_ac_var'}'` = yes; then
20646 cat >>confdefs.h <<_ACEOF
20647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20648 _ACEOF
20649
20650 fi
20651 done
20652
20653
20654 # Checks for header files.
20655 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20656 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20657 if test "${ac_cv_header_stdc+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660 cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h. */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20666 #include <stdlib.h>
20667 #include <stdarg.h>
20668 #include <string.h>
20669 #include <float.h>
20670
20671 int
20672 main ()
20673 {
20674
20675 ;
20676 return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_compile") 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest.$ac_objext; then
20696 ac_cv_header_stdc=yes
20697 else
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 ac_cv_header_stdc=no
20702 fi
20703
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705
20706 if test $ac_cv_header_stdc = yes; then
20707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h. */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 #include <string.h>
20715
20716 _ACEOF
20717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20718 $EGREP "memchr" >/dev/null 2>&1; then
20719 :
20720 else
20721 ac_cv_header_stdc=no
20722 fi
20723 rm -f conftest*
20724
20725 fi
20726
20727 if test $ac_cv_header_stdc = yes; then
20728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 #include <stdlib.h>
20736
20737 _ACEOF
20738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20739 $EGREP "free" >/dev/null 2>&1; then
20740 :
20741 else
20742 ac_cv_header_stdc=no
20743 fi
20744 rm -f conftest*
20745
20746 fi
20747
20748 if test $ac_cv_header_stdc = yes; then
20749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20750 if test "$cross_compiling" = yes; then
20751 :
20752 else
20753 cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h. */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 #include <ctype.h>
20760 #include <stdlib.h>
20761 #if ((' ' & 0x0FF) == 0x020)
20762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20764 #else
20765 # define ISLOWER(c) \
20766 (('a' <= (c) && (c) <= 'i') \
20767 || ('j' <= (c) && (c) <= 'r') \
20768 || ('s' <= (c) && (c) <= 'z'))
20769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20770 #endif
20771
20772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20773 int
20774 main ()
20775 {
20776 int i;
20777 for (i = 0; i < 256; i++)
20778 if (XOR (islower (i), ISLOWER (i))
20779 || toupper (i) != TOUPPER (i))
20780 return 2;
20781 return 0;
20782 }
20783 _ACEOF
20784 rm -f conftest$ac_exeext
20785 if { (ac_try="$ac_link"
20786 case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_link") 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20795 { (case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_try") 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 :
20805 else
20806 echo "$as_me: program exited with status $ac_status" >&5
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ( exit $ac_status )
20811 ac_cv_header_stdc=no
20812 fi
20813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20814 fi
20815
20816
20817 fi
20818 fi
20819 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20820 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20821 if test $ac_cv_header_stdc = yes; then
20822
20823 cat >>confdefs.h <<\_ACEOF
20824 #define STDC_HEADERS 1
20825 _ACEOF
20826
20827 fi
20828
20829 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20830 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20831 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834 cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h. */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 #include <sys/types.h>
20841 #include <sys/wait.h>
20842 #ifndef WEXITSTATUS
20843 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20844 #endif
20845 #ifndef WIFEXITED
20846 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20847 #endif
20848
20849 int
20850 main ()
20851 {
20852 int s;
20853 wait (&s);
20854 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20855 ;
20856 return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_compile") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest.$ac_objext; then
20876 ac_cv_header_sys_wait_h=yes
20877 else
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 ac_cv_header_sys_wait_h=no
20882 fi
20883
20884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 fi
20886 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20887 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20888 if test $ac_cv_header_sys_wait_h = yes; then
20889
20890 cat >>confdefs.h <<\_ACEOF
20891 #define HAVE_SYS_WAIT_H 1
20892 _ACEOF
20893
20894 fi
20895
20896
20897 for ac_header in linux/input.h
20898 do
20899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 fi
20906 ac_res=`eval echo '${'$as_ac_Header'}'`
20907 { echo "$as_me:$LINENO: result: $ac_res" >&5
20908 echo "${ECHO_T}$ac_res" >&6; }
20909 else
20910 # Is the header compilable?
20911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20920 #include <$ac_header>
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_compile") 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest.$ac_objext; then
20939 ac_header_compiler=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944 ac_header_compiler=no
20945 fi
20946
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20949 echo "${ECHO_T}$ac_header_compiler" >&6; }
20950
20951 # Is the header present?
20952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <$ac_header>
20961 _ACEOF
20962 if { (ac_try="$ac_cpp conftest.$ac_ext"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20969 ac_status=$?
20970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } >/dev/null && {
20975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20977 }; then
20978 ac_header_preproc=yes
20979 else
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983 ac_header_preproc=no
20984 fi
20985
20986 rm -f conftest.err conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20988 echo "${ECHO_T}$ac_header_preproc" >&6; }
20989
20990 # So? What about this header?
20991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20992 yes:no: )
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20997 ac_header_preproc=yes
20998 ;;
20999 no:yes:* )
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21012 ( cat <<\_ASBOX
21013 ## ------------------------------------ ##
21014 ## Report this to [email protected] ##
21015 ## ------------------------------------ ##
21016 _ASBOX
21017 ) | sed "s/^/$as_me: WARNING: /" >&2
21018 ;;
21019 esac
21020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21023 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 else
21025 eval "$as_ac_Header=\$ac_header_preproc"
21026 fi
21027 ac_res=`eval echo '${'$as_ac_Header'}'`
21028 { echo "$as_me:$LINENO: result: $ac_res" >&5
21029 echo "${ECHO_T}$ac_res" >&6; }
21030
21031 fi
21032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21033 cat >>confdefs.h <<_ACEOF
21034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21035 _ACEOF
21036
21037 fi
21038
21039 done
21040
21041
21042 for ac_header in execinfo.h
21043 do
21044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 fi
21051 ac_res=`eval echo '${'$as_ac_Header'}'`
21052 { echo "$as_me:$LINENO: result: $ac_res" >&5
21053 echo "${ECHO_T}$ac_res" >&6; }
21054 else
21055 # Is the header compilable?
21056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21058 cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h. */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 $ac_includes_default
21065 #include <$ac_header>
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21075 ac_status=$?
21076 grep -v '^ *+' conftest.er1 >conftest.err
21077 rm -f conftest.er1
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest.$ac_objext; then
21084 ac_header_compiler=yes
21085 else
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 ac_header_compiler=no
21090 fi
21091
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21094 echo "${ECHO_T}$ac_header_compiler" >&6; }
21095
21096 # Is the header present?
21097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 #include <$ac_header>
21106 _ACEOF
21107 if { (ac_try="$ac_cpp conftest.$ac_ext"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21111 esac
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21114 ac_status=$?
21115 grep -v '^ *+' conftest.er1 >conftest.err
21116 rm -f conftest.er1
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } >/dev/null && {
21120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 }; then
21123 ac_header_preproc=yes
21124 else
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_header_preproc=no
21129 fi
21130
21131 rm -f conftest.err conftest.$ac_ext
21132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21133 echo "${ECHO_T}$ac_header_preproc" >&6; }
21134
21135 # So? What about this header?
21136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21137 yes:no: )
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21142 ac_header_preproc=yes
21143 ;;
21144 no:yes:* )
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21157 ( cat <<\_ASBOX
21158 ## ------------------------------------ ##
21159 ## Report this to [email protected] ##
21160 ## ------------------------------------ ##
21161 _ASBOX
21162 ) | sed "s/^/$as_me: WARNING: /" >&2
21163 ;;
21164 esac
21165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170 eval "$as_ac_Header=\$ac_header_preproc"
21171 fi
21172 ac_res=`eval echo '${'$as_ac_Header'}'`
21173 { echo "$as_me:$LINENO: result: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21175
21176 fi
21177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178 cat >>confdefs.h <<_ACEOF
21179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180 _ACEOF
21181
21182 fi
21183
21184 done
21185
21186
21187 for ac_header in linux/uinput.h
21188 do
21189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 fi
21196 ac_res=`eval echo '${'$as_ac_Header'}'`
21197 { echo "$as_me:$LINENO: result: $ac_res" >&5
21198 echo "${ECHO_T}$ac_res" >&6; }
21199 else
21200 # Is the header compilable?
21201 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 $ac_includes_default
21210 #include <$ac_header>
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21217 esac
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_compile") 2>conftest.er1
21220 ac_status=$?
21221 grep -v '^ *+' conftest.er1 >conftest.err
21222 rm -f conftest.er1
21223 cat conftest.err >&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest.$ac_objext; then
21229 ac_header_compiler=yes
21230 else
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 ac_header_compiler=no
21235 fi
21236
21237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21239 echo "${ECHO_T}$ac_header_compiler" >&6; }
21240
21241 # Is the header present?
21242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21244 cat >conftest.$ac_ext <<_ACEOF
21245 /* confdefs.h. */
21246 _ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 #include <$ac_header>
21251 _ACEOF
21252 if { (ac_try="$ac_cpp conftest.$ac_ext"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } >/dev/null && {
21265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 }; then
21268 ac_header_preproc=yes
21269 else
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 ac_header_preproc=no
21274 fi
21275
21276 rm -f conftest.err conftest.$ac_ext
21277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21278 echo "${ECHO_T}$ac_header_preproc" >&6; }
21279
21280 # So? What about this header?
21281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21282 yes:no: )
21283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21287 ac_header_preproc=yes
21288 ;;
21289 no:yes:* )
21290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21302 ( cat <<\_ASBOX
21303 ## ------------------------------------ ##
21304 ## Report this to [email protected] ##
21305 ## ------------------------------------ ##
21306 _ASBOX
21307 ) | sed "s/^/$as_me: WARNING: /" >&2
21308 ;;
21309 esac
21310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
21314 else
21315 eval "$as_ac_Header=\$ac_header_preproc"
21316 fi
21317 ac_res=`eval echo '${'$as_ac_Header'}'`
21318 { echo "$as_me:$LINENO: result: $ac_res" >&5
21319 echo "${ECHO_T}$ac_res" >&6; }
21320
21321 fi
21322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21323 cat >>confdefs.h <<_ACEOF
21324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21325 _ACEOF
21326 have_linux_uinput_h=yes
21327 else
21328 have_linux_uinput_h=
21329 fi
21330
21331 done
21332
21333
21334
21335
21336
21337
21338
21339
21340 for ac_header in arpa/inet.h fcntl.h stdlib.h string.h sys/socket.h unistd.h libg15.h
21341 do
21342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 #if HAVE_LINUX_INPUT_H
21355 #include <linux/input.h>
21356 #endif
21357
21358
21359 #include <$ac_header>
21360 _ACEOF
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.$ac_objext; then
21378 eval "$as_ac_Header=yes"
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383 eval "$as_ac_Header=no"
21384 fi
21385
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 fi
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21392 cat >>confdefs.h <<_ACEOF
21393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21394 _ACEOF
21395
21396 fi
21397
21398 done
21399
21400
21401 # Check whether --enable---disable-uinput was given.
21402 if test "${enable___disable_uinput+set}" = set; then
21403 enableval=$enable___disable_uinput;
21404 fi
21405
21406
21407 if test "x$enable_uinput" != "xno"; then
21408 if test "x$have_linux_uinput_h" == "xyes"; then
21409 #if HAVE_LINUX_UINPUT_H
21410 { echo "$as_me:$LINENO: checking for struct uinput_user_dev.id" >&5
21411 echo $ECHO_N "checking for struct uinput_user_dev.id... $ECHO_C" >&6; }
21412 if test "${ac_cv_member_struct_uinput_user_dev_id+set}" = set; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 else
21415 cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h. */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421
21422 #include <linux/input.h>
21423 #include <linux/uinput.h>
21424
21425
21426
21427 int
21428 main ()
21429 {
21430 static struct uinput_user_dev ac_aggr;
21431 if (ac_aggr.id)
21432 return 0;
21433 ;
21434 return 0;
21435 }
21436 _ACEOF
21437 rm -f conftest.$ac_objext
21438 if { (ac_try="$ac_compile"
21439 case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21442 esac
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444 (eval "$ac_compile") 2>conftest.er1
21445 ac_status=$?
21446 grep -v '^ *+' conftest.er1 >conftest.err
21447 rm -f conftest.er1
21448 cat conftest.err >&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } && {
21451 test -z "$ac_c_werror_flag" ||
21452 test ! -s conftest.err
21453 } && test -s conftest.$ac_objext; then
21454 ac_cv_member_struct_uinput_user_dev_id=yes
21455 else
21456 echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465
21466 #include <linux/input.h>
21467 #include <linux/uinput.h>
21468
21469
21470
21471 int
21472 main ()
21473 {
21474 static struct uinput_user_dev ac_aggr;
21475 if (sizeof ac_aggr.id)
21476 return 0;
21477 ;
21478 return 0;
21479 }
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_compile") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest.$ac_objext; then
21498 ac_cv_member_struct_uinput_user_dev_id=yes
21499 else
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21502
21503 ac_cv_member_struct_uinput_user_dev_id=no
21504 fi
21505
21506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507 fi
21508
21509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21510 fi
21511 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_uinput_user_dev_id" >&5
21512 echo "${ECHO_T}$ac_cv_member_struct_uinput_user_dev_id" >&6; }
21513 if test $ac_cv_member_struct_uinput_user_dev_id = yes; then
21514
21515 cat >>confdefs.h <<\_ACEOF
21516 #define HAVE_UINPUT_USER_DEV_ID 1
21517 _ACEOF
21518
21519 fi
21520
21521 uinput=true
21522 { echo "$as_me:$LINENO: Necessary includes exist: Compiling Uinput Plugin" >&5
21523 echo "$as_me: Necessary includes exist: Compiling Uinput Plugin" >&6;}
21524
21525 #endif
21526 else
21527 { echo "$as_me:$LINENO: Linux Specific Includes Not Found. NOT COMPILING UINPUT PLUGIN." >&5
21528 echo "$as_me: Linux Specific Includes Not Found. NOT COMPILING UINPUT PLUGIN." >&6;}
21529 fi
21530 else
21531 { echo "$as_me:$LINENO: Linux UINPUT plugin disabled by request." >&5
21532 echo "$as_me: Linux UINPUT plugin disabled by request." >&6;}
21533 uinput=false
21534 fi
21535
21536 case $host_os in
21537 *linux*)
21538
21539 cat >>confdefs.h <<\_ACEOF
21540 #define OSTYPE_LINUX 1
21541 _ACEOF
21542
21543 { echo "$as_me:$LINENO: OS is Linux, using uinput if available" >&5
21544 echo "$as_me: OS is Linux, using uinput if available" >&6;}
21545 ;;
21546 *darwin*)
21547
21548 cat >>confdefs.h <<\_ACEOF
21549 #define OSTYPE_DARWIN 1
21550 _ACEOF
21551
21552 KEXT_LOCATION="/System/Library/Extensions/"
21553
21554 { echo "$as_me:$LINENO: OS is Darwin, using OS specific workarounds" >&5
21555 echo "$as_me: OS is Darwin, using OS specific workarounds" >&6;}
21556 install_kext=true
21557 uinput=false
21558 ;;
21559 *solaris*)
21560
21561 cat >>confdefs.h <<\_ACEOF
21562 #define OSTYPE_SOLARIS 1
21563 _ACEOF
21564
21565 { echo "$as_me:$LINENO: checking for library containing connect" >&5
21566 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
21567 if test "${ac_cv_search_connect+set}" = set; then
21568 echo $ECHO_N "(cached) $ECHO_C" >&6
21569 else
21570 ac_func_search_save_LIBS=$LIBS
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577
21578 /* Override any GCC internal prototype to avoid an error.
21579 Use char because int might match the return type of a GCC
21580 builtin and then its argument prototype would still apply. */
21581 #ifdef __cplusplus
21582 extern "C"
21583 #endif
21584 char connect ();
21585 int
21586 main ()
21587 {
21588 return connect ();
21589 ;
21590 return 0;
21591 }
21592 _ACEOF
21593 for ac_lib in '' socket; do
21594 if test -z "$ac_lib"; then
21595 ac_res="none required"
21596 else
21597 ac_res=-l$ac_lib
21598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21599 fi
21600 rm -f conftest.$ac_objext conftest$ac_exeext
21601 if { (ac_try="$ac_link"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_link") 2>conftest.er1
21608 ac_status=$?
21609 grep -v '^ *+' conftest.er1 >conftest.err
21610 rm -f conftest.er1
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && {
21614 test -z "$ac_c_werror_flag" ||
21615 test ! -s conftest.err
21616 } && test -s conftest$ac_exeext &&
21617 $as_test_x conftest$ac_exeext; then
21618 ac_cv_search_connect=$ac_res
21619 else
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623
21624 fi
21625
21626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21627 conftest$ac_exeext
21628 if test "${ac_cv_search_connect+set}" = set; then
21629 break
21630 fi
21631 done
21632 if test "${ac_cv_search_connect+set}" = set; then
21633 :
21634 else
21635 ac_cv_search_connect=no
21636 fi
21637 rm conftest.$ac_ext
21638 LIBS=$ac_func_search_save_LIBS
21639 fi
21640 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
21641 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
21642 ac_res=$ac_cv_search_connect
21643 if test "$ac_res" != no; then
21644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21645
21646 fi
21647
21648 { echo "$as_me:$LINENO: checking for library containing gethostent" >&5
21649 echo $ECHO_N "checking for library containing gethostent... $ECHO_C" >&6; }
21650 if test "${ac_cv_search_gethostent+set}" = set; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653 ac_func_search_save_LIBS=$LIBS
21654 cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660
21661 /* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
21664 #ifdef __cplusplus
21665 extern "C"
21666 #endif
21667 char gethostent ();
21668 int
21669 main ()
21670 {
21671 return gethostent ();
21672 ;
21673 return 0;
21674 }
21675 _ACEOF
21676 for ac_lib in '' nsl; do
21677 if test -z "$ac_lib"; then
21678 ac_res="none required"
21679 else
21680 ac_res=-l$ac_lib
21681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21682 fi
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_link") 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest$ac_exeext &&
21700 $as_test_x conftest$ac_exeext; then
21701 ac_cv_search_gethostent=$ac_res
21702 else
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706
21707 fi
21708
21709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21710 conftest$ac_exeext
21711 if test "${ac_cv_search_gethostent+set}" = set; then
21712 break
21713 fi
21714 done
21715 if test "${ac_cv_search_gethostent+set}" = set; then
21716 :
21717 else
21718 ac_cv_search_gethostent=no
21719 fi
21720 rm conftest.$ac_ext
21721 LIBS=$ac_func_search_save_LIBS
21722 fi
21723 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostent" >&5
21724 echo "${ECHO_T}$ac_cv_search_gethostent" >&6; }
21725 ac_res=$ac_cv_search_gethostent
21726 if test "$ac_res" != no; then
21727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21728
21729 fi
21730
21731 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
21732 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
21733 if test "${ac_cv_search_inet_aton+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736 ac_func_search_save_LIBS=$LIBS
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h. */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743
21744 /* Override any GCC internal prototype to avoid an error.
21745 Use char because int might match the return type of a GCC
21746 builtin and then its argument prototype would still apply. */
21747 #ifdef __cplusplus
21748 extern "C"
21749 #endif
21750 char inet_aton ();
21751 int
21752 main ()
21753 {
21754 return inet_aton ();
21755 ;
21756 return 0;
21757 }
21758 _ACEOF
21759 for ac_lib in '' resolv; do
21760 if test -z "$ac_lib"; then
21761 ac_res="none required"
21762 else
21763 ac_res=-l$ac_lib
21764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21765 fi
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_link") 2>conftest.er1
21774 ac_status=$?
21775 grep -v '^ *+' conftest.er1 >conftest.err
21776 rm -f conftest.er1
21777 cat conftest.err >&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } && {
21780 test -z "$ac_c_werror_flag" ||
21781 test ! -s conftest.err
21782 } && test -s conftest$ac_exeext &&
21783 $as_test_x conftest$ac_exeext; then
21784 ac_cv_search_inet_aton=$ac_res
21785 else
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21788
21789
21790 fi
21791
21792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21793 conftest$ac_exeext
21794 if test "${ac_cv_search_inet_aton+set}" = set; then
21795 break
21796 fi
21797 done
21798 if test "${ac_cv_search_inet_aton+set}" = set; then
21799 :
21800 else
21801 ac_cv_search_inet_aton=no
21802 fi
21803 rm conftest.$ac_ext
21804 LIBS=$ac_func_search_save_LIBS
21805 fi
21806 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
21807 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
21808 ac_res=$ac_cv_search_inet_aton
21809 if test "$ac_res" != no; then
21810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21811
21812 fi
21813
21814 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
21815 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
21816 if test "${ac_cv_search_nanosleep+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 else
21819 ac_func_search_save_LIBS=$LIBS
21820 cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h. */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826
21827 /* Override any GCC internal prototype to avoid an error.
21828 Use char because int might match the return type of a GCC
21829 builtin and then its argument prototype would still apply. */
21830 #ifdef __cplusplus
21831 extern "C"
21832 #endif
21833 char nanosleep ();
21834 int
21835 main ()
21836 {
21837 return nanosleep ();
21838 ;
21839 return 0;
21840 }
21841 _ACEOF
21842 for ac_lib in '' rt; do
21843 if test -z "$ac_lib"; then
21844 ac_res="none required"
21845 else
21846 ac_res=-l$ac_lib
21847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21848 fi
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (ac_try="$ac_link"
21851 case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21854 esac
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_link") 2>conftest.er1
21857 ac_status=$?
21858 grep -v '^ *+' conftest.er1 >conftest.err
21859 rm -f conftest.er1
21860 cat conftest.err >&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } && {
21863 test -z "$ac_c_werror_flag" ||
21864 test ! -s conftest.err
21865 } && test -s conftest$ac_exeext &&
21866 $as_test_x conftest$ac_exeext; then
21867 ac_cv_search_nanosleep=$ac_res
21868 else
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21871
21872
21873 fi
21874
21875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21876 conftest$ac_exeext
21877 if test "${ac_cv_search_nanosleep+set}" = set; then
21878 break
21879 fi
21880 done
21881 if test "${ac_cv_search_nanosleep+set}" = set; then
21882 :
21883 else
21884 ac_cv_search_nanosleep=no
21885 fi
21886 rm conftest.$ac_ext
21887 LIBS=$ac_func_search_save_LIBS
21888 fi
21889 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
21890 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
21891 ac_res=$ac_cv_search_nanosleep
21892 if test "$ac_res" != no; then
21893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21894
21895 fi
21896
21897 { echo "$as_me:$LINENO: OS is Solaris, using OS specific workarounds" >&5
21898 echo "$as_me: OS is Solaris, using OS specific workarounds" >&6;}
21899 uinput=false
21900 libusb_blocks=true
21901 ;;
21902 *)
21903
21904 cat >>confdefs.h <<\_ACEOF
21905 #define OSTYPE_OTHER 1
21906 _ACEOF
21907
21908 { echo "$as_me:$LINENO: Unknown OS type, your milage may vary...." >&5
21909 echo "$as_me: Unknown OS type, your milage may vary...." >&6;}
21910 uinput=false
21911 ;;
21912 esac
21913
21914 if test x$install_kext = xtrue; then
21915 KEXT_INSTALL_TRUE=
21916 KEXT_INSTALL_FALSE='#'
21917 else
21918 KEXT_INSTALL_TRUE='#'
21919 KEXT_INSTALL_FALSE=
21920 fi
21921
21922 if test x$uinput = xtrue; then
21923 UINPUT_INTERFACE_PLUGIN_TRUE=
21924 UINPUT_INTERFACE_PLUGIN_FALSE='#'
21925 else
21926 UINPUT_INTERFACE_PLUGIN_TRUE='#'
21927 UINPUT_INTERFACE_PLUGIN_FALSE=
21928 fi
21929
21930
21931 if test "x$libusb_blocks" == "xtrue"; then
21932
21933 cat >>confdefs.h <<\_ACEOF
21934 #define LIBUSB_BLOCKS 1
21935 _ACEOF
21936
21937 fi
21938
21939 G15D_BUILD_CC="`$CC -v 2>&1 | tail -n 1`"
21940 G15D_BUILD_OS="`uname -s -r -m`"
21941 G15D_BUILD_DATE="`date \"+%a %d %b %Y %T\"`"
21942
21943
21944 cat >>confdefs.h <<_ACEOF
21945 #define BUILD_OS_NAME "${G15D_BUILD_OS}"
21946 _ACEOF
21947
21948
21949 cat >>confdefs.h <<_ACEOF
21950 #define BUILD_DATE "${G15D_BUILD_DATE}"
21951 _ACEOF
21952
21953
21954 cat >>confdefs.h <<_ACEOF
21955 #define COMPILER_VERSION "${G15D_BUILD_CC}"
21956 _ACEOF
21957
21958
21959 CPPFLAGS=$CPPFLAGS_save
21960 CPPFLAGS="$CPPFLAGS "'-DDATADIR="\"$(datadir)\""'
21961
21962 G15DAEMON_PLUGIN_DIR="$libdir/g15daemon/$PACKAGE_VERSION/plugins"
21963
21964 CPPFLAGS="$CPPFLAGS "'-DPLUGINDIR=\"$(G15DAEMON_PLUGIN_DIR)\"'
21965
21966 CPPFLAGS="$CPPFLAGS "'-I$(includedir)'
21967
21968 ac_config_files="$ac_config_files Makefile g15daemon/Makefile libg15daemon_client/Makefile plugins/Makefile"
21969
21970
21971 cat >confcache <<\_ACEOF
21972 # This file is a shell script that caches the results of configure
21973 # tests run on this system so they can be shared between configure
21974 # scripts and configure runs, see configure's option --config-cache.
21975 # It is not useful on other systems. If it contains results you don't
21976 # want to keep, you may remove or edit it.
21977 #
21978 # config.status only pays attention to the cache file if you give it
21979 # the --recheck option to rerun configure.
21980 #
21981 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21982 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21983 # following values.
21984
21985 _ACEOF
21986
21987 # The following way of writing the cache mishandles newlines in values,
21988 # but we know of no workaround that is simple, portable, and efficient.
21989 # So, we kill variables containing newlines.
21990 # Ultrix sh set writes to stderr and can't be redirected directly,
21991 # and sets the high bit in the cache file unless we assign to the vars.
21992 (
21993 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21994 eval ac_val=\$$ac_var
21995 case $ac_val in #(
21996 *${as_nl}*)
21997 case $ac_var in #(
21998 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21999 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22000 esac
22001 case $ac_var in #(
22002 _ | IFS | as_nl) ;; #(
22003 *) $as_unset $ac_var ;;
22004 esac ;;
22005 esac
22006 done
22007
22008 (set) 2>&1 |
22009 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22010 *${as_nl}ac_space=\ *)
22011 # `set' does not quote correctly, so add quotes (double-quote
22012 # substitution turns \\\\ into \\, and sed turns \\ into \).
22013 sed -n \
22014 "s/'/'\\\\''/g;
22015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22016 ;; #(
22017 *)
22018 # `set' quotes correctly as required by POSIX, so do not add quotes.
22019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22020 ;;
22021 esac |
22022 sort
22023 ) |
22024 sed '
22025 /^ac_cv_env_/b end
22026 t clear
22027 :clear
22028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22029 t end
22030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22031 :end' >>confcache
22032 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22033 if test -w "$cache_file"; then
22034 test "x$cache_file" != "x/dev/null" &&
22035 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22036 echo "$as_me: updating cache $cache_file" >&6;}
22037 cat confcache >$cache_file
22038 else
22039 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22040 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22041 fi
22042 fi
22043 rm -f confcache
22044
22045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22046 # Let make expand exec_prefix.
22047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22048
22049 DEFS=-DHAVE_CONFIG_H
22050
22051 ac_libobjs=
22052 ac_ltlibobjs=
22053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22054 # 1. Remove the extension, and $U if already installed.
22055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22056 ac_i=`echo "$ac_i" | sed "$ac_script"`
22057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22058 # will be set to the directory where LIBOBJS objects are built.
22059 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22060 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22061 done
22062 LIBOBJS=$ac_libobjs
22063
22064 LTLIBOBJS=$ac_ltlibobjs
22065
22066
22067 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22068 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22069 Usually this means the macro was only invoked conditionally." >&5
22070 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22071 Usually this means the macro was only invoked conditionally." >&2;}
22072 { (exit 1); exit 1; }; }
22073 fi
22074 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22075 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22076 Usually this means the macro was only invoked conditionally." >&5
22077 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22078 Usually this means the macro was only invoked conditionally." >&2;}
22079 { (exit 1); exit 1; }; }
22080 fi
22081 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22082 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22083 Usually this means the macro was only invoked conditionally." >&5
22084 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22085 Usually this means the macro was only invoked conditionally." >&2;}
22086 { (exit 1); exit 1; }; }
22087 fi
22088 if test -z "${KEXT_INSTALL_TRUE}" && test -z "${KEXT_INSTALL_FALSE}"; then
22089 { { echo "$as_me:$LINENO: error: conditional \"KEXT_INSTALL\" was never defined.
22090 Usually this means the macro was only invoked conditionally." >&5
22091 echo "$as_me: error: conditional \"KEXT_INSTALL\" was never defined.
22092 Usually this means the macro was only invoked conditionally." >&2;}
22093 { (exit 1); exit 1; }; }
22094 fi
22095 if test -z "${UINPUT_INTERFACE_PLUGIN_TRUE}" && test -z "${UINPUT_INTERFACE_PLUGIN_FALSE}"; then
22096 { { echo "$as_me:$LINENO: error: conditional \"UINPUT_INTERFACE_PLUGIN\" was never defined.
22097 Usually this means the macro was only invoked conditionally." >&5
22098 echo "$as_me: error: conditional \"UINPUT_INTERFACE_PLUGIN\" was never defined.
22099 Usually this means the macro was only invoked conditionally." >&2;}
22100 { (exit 1); exit 1; }; }
22101 fi
22102
22103 : ${CONFIG_STATUS=./config.status}
22104 ac_clean_files_save=$ac_clean_files
22105 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22106 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22107 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22108 cat >$CONFIG_STATUS <<_ACEOF
22109 #! $SHELL
22110 # Generated by $as_me.
22111 # Run this file to recreate the current configuration.
22112 # Compiler output produced by configure, useful for debugging
22113 # configure, is in config.log if it exists.
22114
22115 debug=false
22116 ac_cs_recheck=false
22117 ac_cs_silent=false
22118 SHELL=\${CONFIG_SHELL-$SHELL}
22119 _ACEOF
22120
22121 cat >>$CONFIG_STATUS <<\_ACEOF
22122 ## --------------------- ##
22123 ## M4sh Initialization. ##
22124 ## --------------------- ##
22125
22126 # Be more Bourne compatible
22127 DUALCASE=1; export DUALCASE # for MKS sh
22128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22129 emulate sh
22130 NULLCMD=:
22131 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22132 # is contrary to our usage. Disable this feature.
22133 alias -g '${1+"$@"}'='"$@"'
22134 setopt NO_GLOB_SUBST
22135 else
22136 case `(set -o) 2>/dev/null` in
22137 *posix*) set -o posix ;;
22138 esac
22139
22140 fi
22141
22142
22143
22144
22145 # PATH needs CR
22146 # Avoid depending upon Character Ranges.
22147 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22148 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22149 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22150 as_cr_digits='0123456789'
22151 as_cr_alnum=$as_cr_Letters$as_cr_digits
22152
22153 # The user is always right.
22154 if test "${PATH_SEPARATOR+set}" != set; then
22155 echo "#! /bin/sh" >conf$$.sh
22156 echo "exit 0" >>conf$$.sh
22157 chmod +x conf$$.sh
22158 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22159 PATH_SEPARATOR=';'
22160 else
22161 PATH_SEPARATOR=:
22162 fi
22163 rm -f conf$$.sh
22164 fi
22165
22166 # Support unset when possible.
22167 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22168 as_unset=unset
22169 else
22170 as_unset=false
22171 fi
22172
22173
22174 # IFS
22175 # We need space, tab and new line, in precisely that order. Quoting is
22176 # there to prevent editors from complaining about space-tab.
22177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22178 # splitting by setting IFS to empty value.)
22179 as_nl='
22180 '
22181 IFS=" "" $as_nl"
22182
22183 # Find who we are. Look in the path if we contain no directory separator.
22184 case $0 in
22185 *[\\/]* ) as_myself=$0 ;;
22186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187 for as_dir in $PATH
22188 do
22189 IFS=$as_save_IFS
22190 test -z "$as_dir" && as_dir=.
22191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22192 done
22193 IFS=$as_save_IFS
22194
22195 ;;
22196 esac
22197 # We did not find ourselves, most probably we were run as `sh COMMAND'
22198 # in which case we are not to be found in the path.
22199 if test "x$as_myself" = x; then
22200 as_myself=$0
22201 fi
22202 if test ! -f "$as_myself"; then
22203 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22204 { (exit 1); exit 1; }
22205 fi
22206
22207 # Work around bugs in pre-3.0 UWIN ksh.
22208 for as_var in ENV MAIL MAILPATH
22209 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22210 done
22211 PS1='$ '
22212 PS2='> '
22213 PS4='+ '
22214
22215 # NLS nuisances.
22216 for as_var in \
22217 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22218 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22219 LC_TELEPHONE LC_TIME
22220 do
22221 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22222 eval $as_var=C; export $as_var
22223 else
22224 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22225 fi
22226 done
22227
22228 # Required to use basename.
22229 if expr a : '\(a\)' >/dev/null 2>&1 &&
22230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22231 as_expr=expr
22232 else
22233 as_expr=false
22234 fi
22235
22236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22237 as_basename=basename
22238 else
22239 as_basename=false
22240 fi
22241
22242
22243 # Name of the executable.
22244 as_me=`$as_basename -- "$0" ||
22245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22246 X"$0" : 'X\(//\)$' \| \
22247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22248 echo X/"$0" |
22249 sed '/^.*\/\([^/][^/]*\)\/*$/{
22250 s//\1/
22251 q
22252 }
22253 /^X\/\(\/\/\)$/{
22254 s//\1/
22255 q
22256 }
22257 /^X\/\(\/\).*/{
22258 s//\1/
22259 q
22260 }
22261 s/.*/./; q'`
22262
22263 # CDPATH.
22264 $as_unset CDPATH
22265
22266
22267
22268 as_lineno_1=$LINENO
22269 as_lineno_2=$LINENO
22270 test "x$as_lineno_1" != "x$as_lineno_2" &&
22271 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22272
22273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22274 # uniformly replaced by the line number. The first 'sed' inserts a
22275 # line-number line after each line using $LINENO; the second 'sed'
22276 # does the real work. The second script uses 'N' to pair each
22277 # line-number line with the line containing $LINENO, and appends
22278 # trailing '-' during substitution so that $LINENO is not a special
22279 # case at line end.
22280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22281 # scripts with optimization help from Paolo Bonzini. Blame Lee
22282 # E. McMahon (1931-1989) for sed's syntax. :-)
22283 sed -n '
22284 p
22285 /[$]LINENO/=
22286 ' <$as_myself |
22287 sed '
22288 s/[$]LINENO.*/&-/
22289 t lineno
22290 b
22291 :lineno
22292 N
22293 :loop
22294 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22295 t loop
22296 s/-\n.*//
22297 ' >$as_me.lineno &&
22298 chmod +x "$as_me.lineno" ||
22299 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22300 { (exit 1); exit 1; }; }
22301
22302 # Don't try to exec as it changes $[0], causing all sort of problems
22303 # (the dirname of $[0] is not the place where we might find the
22304 # original and so on. Autoconf is especially sensitive to this).
22305 . "./$as_me.lineno"
22306 # Exit status is that of the last command.
22307 exit
22308 }
22309
22310
22311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22312 as_dirname=dirname
22313 else
22314 as_dirname=false
22315 fi
22316
22317 ECHO_C= ECHO_N= ECHO_T=
22318 case `echo -n x` in
22319 -n*)
22320 case `echo 'x\c'` in
22321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22322 *) ECHO_C='\c';;
22323 esac;;
22324 *)
22325 ECHO_N='-n';;
22326 esac
22327
22328 if expr a : '\(a\)' >/dev/null 2>&1 &&
22329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22330 as_expr=expr
22331 else
22332 as_expr=false
22333 fi
22334
22335 rm -f conf$$ conf$$.exe conf$$.file
22336 if test -d conf$$.dir; then
22337 rm -f conf$$.dir/conf$$.file
22338 else
22339 rm -f conf$$.dir
22340 mkdir conf$$.dir
22341 fi
22342 echo >conf$$.file
22343 if ln -s conf$$.file conf$$ 2>/dev/null; then
22344 as_ln_s='ln -s'
22345 # ... but there are two gotchas:
22346 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22347 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22348 # In both cases, we have to default to `cp -p'.
22349 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22350 as_ln_s='cp -p'
22351 elif ln conf$$.file conf$$ 2>/dev/null; then
22352 as_ln_s=ln
22353 else
22354 as_ln_s='cp -p'
22355 fi
22356 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22357 rmdir conf$$.dir 2>/dev/null
22358
22359 if mkdir -p . 2>/dev/null; then
22360 as_mkdir_p=:
22361 else
22362 test -d ./-p && rmdir ./-p
22363 as_mkdir_p=false
22364 fi
22365
22366 if test -x / >/dev/null 2>&1; then
22367 as_test_x='test -x'
22368 else
22369 if ls -dL / >/dev/null 2>&1; then
22370 as_ls_L_option=L
22371 else
22372 as_ls_L_option=
22373 fi
22374 as_test_x='
22375 eval sh -c '\''
22376 if test -d "$1"; then
22377 test -d "$1/.";
22378 else
22379 case $1 in
22380 -*)set "./$1";;
22381 esac;
22382 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22383 ???[sx]*):;;*)false;;esac;fi
22384 '\'' sh
22385 '
22386 fi
22387 as_executable_p=$as_test_x
22388
22389 # Sed expression to map a string onto a valid CPP name.
22390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22391
22392 # Sed expression to map a string onto a valid variable name.
22393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22394
22395
22396 exec 6>&1
22397
22398 # Save the log message, to keep $[0] and so on meaningful, and to
22399 # report actual input values of CONFIG_FILES etc. instead of their
22400 # values after options handling.
22401 ac_log="
22402 This file was extended by g15daemon $as_me 1.9.5.3, which was
22403 generated by GNU Autoconf 2.61. Invocation command line was
22404
22405 CONFIG_FILES = $CONFIG_FILES
22406 CONFIG_HEADERS = $CONFIG_HEADERS
22407 CONFIG_LINKS = $CONFIG_LINKS
22408 CONFIG_COMMANDS = $CONFIG_COMMANDS
22409 $ $0 $@
22410
22411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22412 "
22413
22414 _ACEOF
22415
22416 cat >>$CONFIG_STATUS <<_ACEOF
22417 # Files that config.status was made for.
22418 config_files="$ac_config_files"
22419 config_headers="$ac_config_headers"
22420 config_commands="$ac_config_commands"
22421
22422 _ACEOF
22423
22424 cat >>$CONFIG_STATUS <<\_ACEOF
22425 ac_cs_usage="\
22426 \`$as_me' instantiates files from templates according to the
22427 current configuration.
22428
22429 Usage: $0 [OPTIONS] [FILE]...
22430
22431 -h, --help print this help, then exit
22432 -V, --version print version number and configuration settings, then exit
22433 -q, --quiet do not print progress messages
22434 -d, --debug don't remove temporary files
22435 --recheck update $as_me by reconfiguring in the same conditions
22436 --file=FILE[:TEMPLATE]
22437 instantiate the configuration file FILE
22438 --header=FILE[:TEMPLATE]
22439 instantiate the configuration header FILE
22440
22441 Configuration files:
22442 $config_files
22443
22444 Configuration headers:
22445 $config_headers
22446
22447 Configuration commands:
22448 $config_commands
22449
22450 Report bugs to <[email protected]>."
22451
22452 _ACEOF
22453 cat >>$CONFIG_STATUS <<_ACEOF
22454 ac_cs_version="\\
22455 g15daemon config.status 1.9.5.3
22456 configured by $0, generated by GNU Autoconf 2.61,
22457 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22458
22459 Copyright (C) 2006 Free Software Foundation, Inc.
22460 This config.status script is free software; the Free Software Foundation
22461 gives unlimited permission to copy, distribute and modify it."
22462
22463 ac_pwd='$ac_pwd'
22464 srcdir='$srcdir'
22465 INSTALL='$INSTALL'
22466 MKDIR_P='$MKDIR_P'
22467 _ACEOF
22468
22469 cat >>$CONFIG_STATUS <<\_ACEOF
22470 # If no file are specified by the user, then we need to provide default
22471 # value. By we need to know if files were specified by the user.
22472 ac_need_defaults=:
22473 while test $# != 0
22474 do
22475 case $1 in
22476 --*=*)
22477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22478 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22479 ac_shift=:
22480 ;;
22481 *)
22482 ac_option=$1
22483 ac_optarg=$2
22484 ac_shift=shift
22485 ;;
22486 esac
22487
22488 case $ac_option in
22489 # Handling of the options.
22490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22491 ac_cs_recheck=: ;;
22492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22493 echo "$ac_cs_version"; exit ;;
22494 --debug | --debu | --deb | --de | --d | -d )
22495 debug=: ;;
22496 --file | --fil | --fi | --f )
22497 $ac_shift
22498 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22499 ac_need_defaults=false;;
22500 --header | --heade | --head | --hea )
22501 $ac_shift
22502 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22503 ac_need_defaults=false;;
22504 --he | --h)
22505 # Conflict between --help and --header
22506 { echo "$as_me: error: ambiguous option: $1
22507 Try \`$0 --help' for more information." >&2
22508 { (exit 1); exit 1; }; };;
22509 --help | --hel | -h )
22510 echo "$ac_cs_usage"; exit ;;
22511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22512 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22513 ac_cs_silent=: ;;
22514
22515 # This is an error.
22516 -*) { echo "$as_me: error: unrecognized option: $1
22517 Try \`$0 --help' for more information." >&2
22518 { (exit 1); exit 1; }; } ;;
22519
22520 *) ac_config_targets="$ac_config_targets $1"
22521 ac_need_defaults=false ;;
22522
22523 esac
22524 shift
22525 done
22526
22527 ac_configure_extra_args=
22528
22529 if $ac_cs_silent; then
22530 exec 6>/dev/null
22531 ac_configure_extra_args="$ac_configure_extra_args --silent"
22532 fi
22533
22534 _ACEOF
22535 cat >>$CONFIG_STATUS <<_ACEOF
22536 if \$ac_cs_recheck; then
22537 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22538 CONFIG_SHELL=$SHELL
22539 export CONFIG_SHELL
22540 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22541 fi
22542
22543 _ACEOF
22544 cat >>$CONFIG_STATUS <<\_ACEOF
22545 exec 5>>config.log
22546 {
22547 echo
22548 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22549 ## Running $as_me. ##
22550 _ASBOX
22551 echo "$ac_log"
22552 } >&5
22553
22554 _ACEOF
22555 cat >>$CONFIG_STATUS <<_ACEOF
22556 #
22557 # INIT-COMMANDS
22558 #
22559 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22560
22561 _ACEOF
22562
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22564
22565 # Handling of arguments.
22566 for ac_config_target in $ac_config_targets
22567 do
22568 case $ac_config_target in
22569 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22570 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22572 "g15daemon/Makefile") CONFIG_FILES="$CONFIG_FILES g15daemon/Makefile" ;;
22573 "libg15daemon_client/Makefile") CONFIG_FILES="$CONFIG_FILES libg15daemon_client/Makefile" ;;
22574 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
22575
22576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22578 { (exit 1); exit 1; }; };;
22579 esac
22580 done
22581
22582
22583 # If the user did not use the arguments to specify the items to instantiate,
22584 # then the envvar interface is used. Set only those that are not.
22585 # We use the long form for the default assignment because of an extremely
22586 # bizarre bug on SunOS 4.1.3.
22587 if $ac_need_defaults; then
22588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22591 fi
22592
22593 # Have a temporary directory for convenience. Make it in the build tree
22594 # simply because there is no reason against having it here, and in addition,
22595 # creating and moving files from /tmp can sometimes cause problems.
22596 # Hook for its removal unless debugging.
22597 # Note that there is a small window in which the directory will not be cleaned:
22598 # after its creation but before its name has been assigned to `$tmp'.
22599 $debug ||
22600 {
22601 tmp=
22602 trap 'exit_status=$?
22603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22604 ' 0
22605 trap '{ (exit 1); exit 1; }' 1 2 13 15
22606 }
22607 # Create a (secure) tmp directory for tmp files.
22608
22609 {
22610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22611 test -n "$tmp" && test -d "$tmp"
22612 } ||
22613 {
22614 tmp=./conf$$-$RANDOM
22615 (umask 077 && mkdir "$tmp")
22616 } ||
22617 {
22618 echo "$me: cannot create a temporary directory in ." >&2
22619 { (exit 1); exit 1; }
22620 }
22621
22622 #
22623 # Set up the sed scripts for CONFIG_FILES section.
22624 #
22625
22626 # No need to generate the scripts if there are no CONFIG_FILES.
22627 # This happens for instance when ./config.status config.h
22628 if test -n "$CONFIG_FILES"; then
22629
22630 _ACEOF
22631
22632
22633
22634 ac_delim='%!_!# '
22635 for ac_last_try in false false false false false :; do
22636 cat >conf$$subs.sed <<_ACEOF
22637 SHELL!$SHELL$ac_delim
22638 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22639 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22640 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22641 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22642 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22643 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22644 exec_prefix!$exec_prefix$ac_delim
22645 prefix!$prefix$ac_delim
22646 program_transform_name!$program_transform_name$ac_delim
22647 bindir!$bindir$ac_delim
22648 sbindir!$sbindir$ac_delim
22649 libexecdir!$libexecdir$ac_delim
22650 datarootdir!$datarootdir$ac_delim
22651 datadir!$datadir$ac_delim
22652 sysconfdir!$sysconfdir$ac_delim
22653 sharedstatedir!$sharedstatedir$ac_delim
22654 localstatedir!$localstatedir$ac_delim
22655 includedir!$includedir$ac_delim
22656 oldincludedir!$oldincludedir$ac_delim
22657 docdir!$docdir$ac_delim
22658 infodir!$infodir$ac_delim
22659 htmldir!$htmldir$ac_delim
22660 dvidir!$dvidir$ac_delim
22661 pdfdir!$pdfdir$ac_delim
22662 psdir!$psdir$ac_delim
22663 libdir!$libdir$ac_delim
22664 localedir!$localedir$ac_delim
22665 mandir!$mandir$ac_delim
22666 DEFS!$DEFS$ac_delim
22667 ECHO_C!$ECHO_C$ac_delim
22668 ECHO_N!$ECHO_N$ac_delim
22669 ECHO_T!$ECHO_T$ac_delim
22670 LIBS!$LIBS$ac_delim
22671 build_alias!$build_alias$ac_delim
22672 host_alias!$host_alias$ac_delim
22673 target_alias!$target_alias$ac_delim
22674 build!$build$ac_delim
22675 build_cpu!$build_cpu$ac_delim
22676 build_vendor!$build_vendor$ac_delim
22677 build_os!$build_os$ac_delim
22678 host!$host$ac_delim
22679 host_cpu!$host_cpu$ac_delim
22680 host_vendor!$host_vendor$ac_delim
22681 host_os!$host_os$ac_delim
22682 target!$target$ac_delim
22683 target_cpu!$target_cpu$ac_delim
22684 target_vendor!$target_vendor$ac_delim
22685 target_os!$target_os$ac_delim
22686 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22687 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22688 INSTALL_DATA!$INSTALL_DATA$ac_delim
22689 am__isrc!$am__isrc$ac_delim
22690 CYGPATH_W!$CYGPATH_W$ac_delim
22691 PACKAGE!$PACKAGE$ac_delim
22692 VERSION!$VERSION$ac_delim
22693 ACLOCAL!$ACLOCAL$ac_delim
22694 AUTOCONF!$AUTOCONF$ac_delim
22695 AUTOMAKE!$AUTOMAKE$ac_delim
22696 AUTOHEADER!$AUTOHEADER$ac_delim
22697 MAKEINFO!$MAKEINFO$ac_delim
22698 install_sh!$install_sh$ac_delim
22699 STRIP!$STRIP$ac_delim
22700 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22701 mkdir_p!$mkdir_p$ac_delim
22702 AWK!$AWK$ac_delim
22703 SET_MAKE!$SET_MAKE$ac_delim
22704 am__leading_dot!$am__leading_dot$ac_delim
22705 AMTAR!$AMTAR$ac_delim
22706 am__tar!$am__tar$ac_delim
22707 am__untar!$am__untar$ac_delim
22708 CC!$CC$ac_delim
22709 CFLAGS!$CFLAGS$ac_delim
22710 LDFLAGS!$LDFLAGS$ac_delim
22711 CPPFLAGS!$CPPFLAGS$ac_delim
22712 ac_ct_CC!$ac_ct_CC$ac_delim
22713 EXEEXT!$EXEEXT$ac_delim
22714 OBJEXT!$OBJEXT$ac_delim
22715 DEPDIR!$DEPDIR$ac_delim
22716 am__include!$am__include$ac_delim
22717 am__quote!$am__quote$ac_delim
22718 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22719 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22720 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22721 CCDEPMODE!$CCDEPMODE$ac_delim
22722 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22723 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22724 SED!$SED$ac_delim
22725 GREP!$GREP$ac_delim
22726 EGREP!$EGREP$ac_delim
22727 LN_S!$LN_S$ac_delim
22728 ECHO!$ECHO$ac_delim
22729 AR!$AR$ac_delim
22730 RANLIB!$RANLIB$ac_delim
22731 CPP!$CPP$ac_delim
22732 CXX!$CXX$ac_delim
22733 CXXFLAGS!$CXXFLAGS$ac_delim
22734 _ACEOF
22735
22736 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22737 break
22738 elif $ac_last_try; then
22739 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22740 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22741 { (exit 1); exit 1; }; }
22742 else
22743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22744 fi
22745 done
22746
22747 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22748 if test -n "$ac_eof"; then
22749 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22750 ac_eof=`expr $ac_eof + 1`
22751 fi
22752
22753 cat >>$CONFIG_STATUS <<_ACEOF
22754 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22755 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22756 _ACEOF
22757 sed '
22758 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22759 s/^/s,@/; s/!/@,|#_!!_#|/
22760 :n
22761 t n
22762 s/'"$ac_delim"'$/,g/; t
22763 s/$/\\/; p
22764 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22765 ' >>$CONFIG_STATUS <conf$$subs.sed
22766 rm -f conf$$subs.sed
22767 cat >>$CONFIG_STATUS <<_ACEOF
22768 CEOF$ac_eof
22769 _ACEOF
22770
22771
22772 ac_delim='%!_!# '
22773 for ac_last_try in false false false false false :; do
22774 cat >conf$$subs.sed <<_ACEOF
22775 ac_ct_CXX!$ac_ct_CXX$ac_delim
22776 CXXDEPMODE!$CXXDEPMODE$ac_delim
22777 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22778 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22779 CXXCPP!$CXXCPP$ac_delim
22780 F77!$F77$ac_delim
22781 FFLAGS!$FFLAGS$ac_delim
22782 ac_ct_F77!$ac_ct_F77$ac_delim
22783 LIBTOOL!$LIBTOOL$ac_delim
22784 KEXT_LOCATION!$KEXT_LOCATION$ac_delim
22785 KEXT_INSTALL_TRUE!$KEXT_INSTALL_TRUE$ac_delim
22786 KEXT_INSTALL_FALSE!$KEXT_INSTALL_FALSE$ac_delim
22787 UINPUT_INTERFACE_PLUGIN_TRUE!$UINPUT_INTERFACE_PLUGIN_TRUE$ac_delim
22788 UINPUT_INTERFACE_PLUGIN_FALSE!$UINPUT_INTERFACE_PLUGIN_FALSE$ac_delim
22789 G15DAEMON_PLUGIN_DIR!$G15DAEMON_PLUGIN_DIR$ac_delim
22790 LIBOBJS!$LIBOBJS$ac_delim
22791 LTLIBOBJS!$LTLIBOBJS$ac_delim
22792 _ACEOF
22793
22794 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
22795 break
22796 elif $ac_last_try; then
22797 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22798 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22799 { (exit 1); exit 1; }; }
22800 else
22801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22802 fi
22803 done
22804
22805 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22806 if test -n "$ac_eof"; then
22807 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22808 ac_eof=`expr $ac_eof + 1`
22809 fi
22810
22811 cat >>$CONFIG_STATUS <<_ACEOF
22812 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22814 _ACEOF
22815 sed '
22816 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22817 s/^/s,@/; s/!/@,|#_!!_#|/
22818 :n
22819 t n
22820 s/'"$ac_delim"'$/,g/; t
22821 s/$/\\/; p
22822 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22823 ' >>$CONFIG_STATUS <conf$$subs.sed
22824 rm -f conf$$subs.sed
22825 cat >>$CONFIG_STATUS <<_ACEOF
22826 :end
22827 s/|#_!!_#|//g
22828 CEOF$ac_eof
22829 _ACEOF
22830
22831
22832 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22833 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22834 # trailing colons and then remove the whole line if VPATH becomes empty
22835 # (actually we leave an empty line to preserve line numbers).
22836 if test "x$srcdir" = x.; then
22837 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22838 s/:*\$(srcdir):*/:/
22839 s/:*\${srcdir}:*/:/
22840 s/:*@srcdir@:*/:/
22841 s/^\([^=]*=[ ]*\):*/\1/
22842 s/:*$//
22843 s/^[^=]*=[ ]*$//
22844 }'
22845 fi
22846
22847 cat >>$CONFIG_STATUS <<\_ACEOF
22848 fi # test -n "$CONFIG_FILES"
22849
22850
22851 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22852 do
22853 case $ac_tag in
22854 :[FHLC]) ac_mode=$ac_tag; continue;;
22855 esac
22856 case $ac_mode$ac_tag in
22857 :[FHL]*:*);;
22858 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22859 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22860 { (exit 1); exit 1; }; };;
22861 :[FH]-) ac_tag=-:-;;
22862 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22863 esac
22864 ac_save_IFS=$IFS
22865 IFS=:
22866 set x $ac_tag
22867 IFS=$ac_save_IFS
22868 shift
22869 ac_file=$1
22870 shift
22871
22872 case $ac_mode in
22873 :L) ac_source=$1;;
22874 :[FH])
22875 ac_file_inputs=
22876 for ac_f
22877 do
22878 case $ac_f in
22879 -) ac_f="$tmp/stdin";;
22880 *) # Look for the file first in the build tree, then in the source tree
22881 # (if the path is not absolute). The absolute path cannot be DOS-style,
22882 # because $ac_f cannot contain `:'.
22883 test -f "$ac_f" ||
22884 case $ac_f in
22885 [\\/$]*) false;;
22886 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22887 esac ||
22888 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22889 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22890 { (exit 1); exit 1; }; };;
22891 esac
22892 ac_file_inputs="$ac_file_inputs $ac_f"
22893 done
22894
22895 # Let's still pretend it is `configure' which instantiates (i.e., don't
22896 # use $as_me), people would be surprised to read:
22897 # /* config.h. Generated by config.status. */
22898 configure_input="Generated from "`IFS=:
22899 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22900 if test x"$ac_file" != x-; then
22901 configure_input="$ac_file. $configure_input"
22902 { echo "$as_me:$LINENO: creating $ac_file" >&5
22903 echo "$as_me: creating $ac_file" >&6;}
22904 fi
22905
22906 case $ac_tag in
22907 *:-:* | *:-) cat >"$tmp/stdin";;
22908 esac
22909 ;;
22910 esac
22911
22912 ac_dir=`$as_dirname -- "$ac_file" ||
22913 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22914 X"$ac_file" : 'X\(//\)[^/]' \| \
22915 X"$ac_file" : 'X\(//\)$' \| \
22916 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22917 echo X"$ac_file" |
22918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22919 s//\1/
22920 q
22921 }
22922 /^X\(\/\/\)[^/].*/{
22923 s//\1/
22924 q
22925 }
22926 /^X\(\/\/\)$/{
22927 s//\1/
22928 q
22929 }
22930 /^X\(\/\).*/{
22931 s//\1/
22932 q
22933 }
22934 s/.*/./; q'`
22935 { as_dir="$ac_dir"
22936 case $as_dir in #(
22937 -*) as_dir=./$as_dir;;
22938 esac
22939 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22940 as_dirs=
22941 while :; do
22942 case $as_dir in #(
22943 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22944 *) as_qdir=$as_dir;;
22945 esac
22946 as_dirs="'$as_qdir' $as_dirs"
22947 as_dir=`$as_dirname -- "$as_dir" ||
22948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22949 X"$as_dir" : 'X\(//\)[^/]' \| \
22950 X"$as_dir" : 'X\(//\)$' \| \
22951 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22952 echo X"$as_dir" |
22953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22954 s//\1/
22955 q
22956 }
22957 /^X\(\/\/\)[^/].*/{
22958 s//\1/
22959 q
22960 }
22961 /^X\(\/\/\)$/{
22962 s//\1/
22963 q
22964 }
22965 /^X\(\/\).*/{
22966 s//\1/
22967 q
22968 }
22969 s/.*/./; q'`
22970 test -d "$as_dir" && break
22971 done
22972 test -z "$as_dirs" || eval "mkdir $as_dirs"
22973 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22974 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22975 { (exit 1); exit 1; }; }; }
22976 ac_builddir=.
22977
22978 case "$ac_dir" in
22979 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22980 *)
22981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22982 # A ".." for each directory in $ac_dir_suffix.
22983 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22984 case $ac_top_builddir_sub in
22985 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22986 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22987 esac ;;
22988 esac
22989 ac_abs_top_builddir=$ac_pwd
22990 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22991 # for backward compatibility:
22992 ac_top_builddir=$ac_top_build_prefix
22993
22994 case $srcdir in
22995 .) # We are building in place.
22996 ac_srcdir=.
22997 ac_top_srcdir=$ac_top_builddir_sub
22998 ac_abs_top_srcdir=$ac_pwd ;;
22999 [\\/]* | ?:[\\/]* ) # Absolute name.
23000 ac_srcdir=$srcdir$ac_dir_suffix;
23001 ac_top_srcdir=$srcdir
23002 ac_abs_top_srcdir=$srcdir ;;
23003 *) # Relative name.
23004 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23005 ac_top_srcdir=$ac_top_build_prefix$srcdir
23006 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23007 esac
23008 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23009
23010
23011 case $ac_mode in
23012 :F)
23013 #
23014 # CONFIG_FILE
23015 #
23016
23017 case $INSTALL in
23018 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23019 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23020 esac
23021 ac_MKDIR_P=$MKDIR_P
23022 case $MKDIR_P in
23023 [\\/$]* | ?:[\\/]* ) ;;
23024 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23025 esac
23026 _ACEOF
23027
23028 cat >>$CONFIG_STATUS <<\_ACEOF
23029 # If the template does not know about datarootdir, expand it.
23030 # FIXME: This hack should be removed a few years after 2.60.
23031 ac_datarootdir_hack=; ac_datarootdir_seen=
23032
23033 case `sed -n '/datarootdir/ {
23034 p
23035 q
23036 }
23037 /@datadir@/p
23038 /@docdir@/p
23039 /@infodir@/p
23040 /@localedir@/p
23041 /@mandir@/p
23042 ' $ac_file_inputs` in
23043 *datarootdir*) ac_datarootdir_seen=yes;;
23044 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23045 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23046 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23047 _ACEOF
23048 cat >>$CONFIG_STATUS <<_ACEOF
23049 ac_datarootdir_hack='
23050 s&@datadir@&$datadir&g
23051 s&@docdir@&$docdir&g
23052 s&@infodir@&$infodir&g
23053 s&@localedir@&$localedir&g
23054 s&@mandir@&$mandir&g
23055 s&\\\${datarootdir}&$datarootdir&g' ;;
23056 esac
23057 _ACEOF
23058
23059 # Neutralize VPATH when `$srcdir' = `.'.
23060 # Shell code in configure.ac might set extrasub.
23061 # FIXME: do we really want to maintain this feature?
23062 cat >>$CONFIG_STATUS <<_ACEOF
23063 sed "$ac_vpsub
23064 $extrasub
23065 _ACEOF
23066 cat >>$CONFIG_STATUS <<\_ACEOF
23067 :t
23068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23069 s&@configure_input@&$configure_input&;t t
23070 s&@top_builddir@&$ac_top_builddir_sub&;t t
23071 s&@srcdir@&$ac_srcdir&;t t
23072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23073 s&@top_srcdir@&$ac_top_srcdir&;t t
23074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23075 s&@builddir@&$ac_builddir&;t t
23076 s&@abs_builddir@&$ac_abs_builddir&;t t
23077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23078 s&@INSTALL@&$ac_INSTALL&;t t
23079 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23080 $ac_datarootdir_hack
23081 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23082
23083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23084 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23086 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23087 which seems to be undefined. Please make sure it is defined." >&5
23088 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23089 which seems to be undefined. Please make sure it is defined." >&2;}
23090
23091 rm -f "$tmp/stdin"
23092 case $ac_file in
23093 -) cat "$tmp/out"; rm -f "$tmp/out";;
23094 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23095 esac
23096 ;;
23097 :H)
23098 #
23099 # CONFIG_HEADER
23100 #
23101 _ACEOF
23102
23103 # Transform confdefs.h into a sed script `conftest.defines', that
23104 # substitutes the proper values into config.h.in to produce config.h.
23105 rm -f conftest.defines conftest.tail
23106 # First, append a space to every undef/define line, to ease matching.
23107 echo 's/$/ /' >conftest.defines
23108 # Then, protect against being on the right side of a sed subst, or in
23109 # an unquoted here document, in config.status. If some macros were
23110 # called several times there might be several #defines for the same
23111 # symbol, which is useless. But do not sort them, since the last
23112 # AC_DEFINE must be honored.
23113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23114 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23115 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23116 # PARAMS is the parameter list in the macro definition--in most cases, it's
23117 # just an empty string.
23118 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23119 ac_dB='\\)[ (].*,\\1define\\2'
23120 ac_dC=' '
23121 ac_dD=' ,'
23122
23123 uniq confdefs.h |
23124 sed -n '
23125 t rset
23126 :rset
23127 s/^[ ]*#[ ]*define[ ][ ]*//
23128 t ok
23129 d
23130 :ok
23131 s/[\\&,]/\\&/g
23132 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23133 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23134 ' >>conftest.defines
23135
23136 # Remove the space that was appended to ease matching.
23137 # Then replace #undef with comments. This is necessary, for
23138 # example, in the case of _POSIX_SOURCE, which is predefined and required
23139 # on some systems where configure will not decide to define it.
23140 # (The regexp can be short, since the line contains either #define or #undef.)
23141 echo 's/ $//
23142 s,^[ #]*u.*,/* & */,' >>conftest.defines
23143
23144 # Break up conftest.defines:
23145 ac_max_sed_lines=50
23146
23147 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23148 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23149 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23150 # et cetera.
23151 ac_in='$ac_file_inputs'
23152 ac_out='"$tmp/out1"'
23153 ac_nxt='"$tmp/out2"'
23154
23155 while :
23156 do
23157 # Write a here document:
23158 cat >>$CONFIG_STATUS <<_ACEOF
23159 # First, check the format of the line:
23160 cat >"\$tmp/defines.sed" <<\\CEOF
23161 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23162 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23163 b
23164 :def
23165 _ACEOF
23166 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23167 echo 'CEOF
23168 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23169 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23170 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23171 grep . conftest.tail >/dev/null || break
23172 rm -f conftest.defines
23173 mv conftest.tail conftest.defines
23174 done
23175 rm -f conftest.defines conftest.tail
23176
23177 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23178 cat >>$CONFIG_STATUS <<\_ACEOF
23179 if test x"$ac_file" != x-; then
23180 echo "/* $configure_input */" >"$tmp/config.h"
23181 cat "$ac_result" >>"$tmp/config.h"
23182 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23183 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23184 echo "$as_me: $ac_file is unchanged" >&6;}
23185 else
23186 rm -f $ac_file
23187 mv "$tmp/config.h" $ac_file
23188 fi
23189 else
23190 echo "/* $configure_input */"
23191 cat "$ac_result"
23192 fi
23193 rm -f "$tmp/out12"
23194 # Compute $ac_file's index in $config_headers.
23195 _am_arg=$ac_file
23196 _am_stamp_count=1
23197 for _am_header in $config_headers :; do
23198 case $_am_header in
23199 $_am_arg | $_am_arg:* )
23200 break ;;
23201 * )
23202 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23203 esac
23204 done
23205 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23206 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23207 X"$_am_arg" : 'X\(//\)[^/]' \| \
23208 X"$_am_arg" : 'X\(//\)$' \| \
23209 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23210 echo X"$_am_arg" |
23211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23212 s//\1/
23213 q
23214 }
23215 /^X\(\/\/\)[^/].*/{
23216 s//\1/
23217 q
23218 }
23219 /^X\(\/\/\)$/{
23220 s//\1/
23221 q
23222 }
23223 /^X\(\/\).*/{
23224 s//\1/
23225 q
23226 }
23227 s/.*/./; q'`/stamp-h$_am_stamp_count
23228 ;;
23229
23230 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23231 echo "$as_me: executing $ac_file commands" >&6;}
23232 ;;
23233 esac
23234
23235
23236 case $ac_file$ac_mode in
23237 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23238 # Strip MF so we end up with the name of the file.
23239 mf=`echo "$mf" | sed -e 's/:.*$//'`
23240 # Check whether this is an Automake generated Makefile or not.
23241 # We used to match only the files named `Makefile.in', but
23242 # some people rename them; so instead we look at the file content.
23243 # Grep'ing the first line is not enough: some people post-process
23244 # each Makefile.in and add a new line on top of each file to say so.
23245 # Grep'ing the whole file is not good either: AIX grep has a line
23246 # limit of 2048, but all sed's we know have understand at least 4000.
23247 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23248 dirpart=`$as_dirname -- "$mf" ||
23249 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23250 X"$mf" : 'X\(//\)[^/]' \| \
23251 X"$mf" : 'X\(//\)$' \| \
23252 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23253 echo X"$mf" |
23254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23255 s//\1/
23256 q
23257 }
23258 /^X\(\/\/\)[^/].*/{
23259 s//\1/
23260 q
23261 }
23262 /^X\(\/\/\)$/{
23263 s//\1/
23264 q
23265 }
23266 /^X\(\/\).*/{
23267 s//\1/
23268 q
23269 }
23270 s/.*/./; q'`
23271 else
23272 continue
23273 fi
23274 # Extract the definition of DEPDIR, am__include, and am__quote
23275 # from the Makefile without running `make'.
23276 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23277 test -z "$DEPDIR" && continue
23278 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23279 test -z "am__include" && continue
23280 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23281 # When using ansi2knr, U may be empty or an underscore; expand it
23282 U=`sed -n 's/^U = //p' < "$mf"`
23283 # Find all dependency output files, they are included files with
23284 # $(DEPDIR) in their names. We invoke sed twice because it is the
23285 # simplest approach to changing $(DEPDIR) to its actual value in the
23286 # expansion.
23287 for file in `sed -n "
23288 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23289 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23290 # Make sure the directory exists.
23291 test -f "$dirpart/$file" && continue
23292 fdir=`$as_dirname -- "$file" ||
23293 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23294 X"$file" : 'X\(//\)[^/]' \| \
23295 X"$file" : 'X\(//\)$' \| \
23296 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23297 echo X"$file" |
23298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23299 s//\1/
23300 q
23301 }
23302 /^X\(\/\/\)[^/].*/{
23303 s//\1/
23304 q
23305 }
23306 /^X\(\/\/\)$/{
23307 s//\1/
23308 q
23309 }
23310 /^X\(\/\).*/{
23311 s//\1/
23312 q
23313 }
23314 s/.*/./; q'`
23315 { as_dir=$dirpart/$fdir
23316 case $as_dir in #(
23317 -*) as_dir=./$as_dir;;
23318 esac
23319 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23320 as_dirs=
23321 while :; do
23322 case $as_dir in #(
23323 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23324 *) as_qdir=$as_dir;;
23325 esac
23326 as_dirs="'$as_qdir' $as_dirs"
23327 as_dir=`$as_dirname -- "$as_dir" ||
23328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23329 X"$as_dir" : 'X\(//\)[^/]' \| \
23330 X"$as_dir" : 'X\(//\)$' \| \
23331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23332 echo X"$as_dir" |
23333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23334 s//\1/
23335 q
23336 }
23337 /^X\(\/\/\)[^/].*/{
23338 s//\1/
23339 q
23340 }
23341 /^X\(\/\/\)$/{
23342 s//\1/
23343 q
23344 }
23345 /^X\(\/\).*/{
23346 s//\1/
23347 q
23348 }
23349 s/.*/./; q'`
23350 test -d "$as_dir" && break
23351 done
23352 test -z "$as_dirs" || eval "mkdir $as_dirs"
23353 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23354 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23355 { (exit 1); exit 1; }; }; }
23356 # echo "creating $dirpart/$file"
23357 echo '# dummy' > "$dirpart/$file"
23358 done
23359 done
23360 ;;
23361
23362 esac
23363 done # for ac_tag
23364
23365
23366 { (exit 0); exit 0; }
23367 _ACEOF
23368 chmod +x $CONFIG_STATUS
23369 ac_clean_files=$ac_clean_files_save
23370
23371
23372 # configure is writing to config.log, and then calls config.status.
23373 # config.status does its own redirection, appending to config.log.
23374 # Unfortunately, on DOS this fails, as config.log is still kept open
23375 # by configure, so config.status won't be able to write to it; its
23376 # output is simply discarded. So we exec the FD to /dev/null,
23377 # effectively closing config.log, so it can be properly (re)opened and
23378 # appended to by config.status. When coming back to configure, we
23379 # need to make the FD available again.
23380 if test "$no_create" != yes; then
23381 ac_cs_success=:
23382 ac_config_status_args=
23383 test "$silent" = yes &&
23384 ac_config_status_args="$ac_config_status_args --quiet"
23385 exec 5>/dev/null
23386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23387 exec 5>>config.log
23388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23389 # would make configure fail if this is the last instruction.
23390 $ac_cs_success || { (exit 1); exit 1; }
23391 fi
23392