configure revision 1.1.1.1.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-input-keyboard 1.3.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='xf86-input-keyboard'
752 PACKAGE_TARNAME='xf86-input-keyboard'
753 PACKAGE_VERSION='1.3.2'
754 PACKAGE_STRING='xf86-input-keyboard 1.3.2'
755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
757 ac_unique_file="Makefile.am"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 distcleancheck_listfiles
797 CHANGELOG_CMD
798 ADMIN_MAN_DIR
799 DRIVER_MAN_DIR
800 MISC_MAN_DIR
801 FILE_MAN_DIR
802 LIB_MAN_DIR
803 APP_MAN_DIR
804 ADMIN_MAN_SUFFIX
805 DRIVER_MAN_SUFFIX
806 MISC_MAN_SUFFIX
807 FILE_MAN_SUFFIX
808 LIB_MAN_SUFFIX
809 APP_MAN_SUFFIX
810 CWARNFLAGS
811 XORG_LIBS
812 XORG_CFLAGS
813 PKG_CONFIG
814 moduledir
815 SCO_FALSE
816 SCO_TRUE
817 HURD_FALSE
818 HURD_TRUE
819 SOLARIS_FALSE
820 SOLARIS_TRUE
821 BSD_FALSE
822 BSD_TRUE
823 LINUX_FALSE
824 LINUX_TRUE
825 LIBTOOL
826 ac_ct_F77
827 FFLAGS
828 F77
829 CXXCPP
830 am__fastdepCXX_FALSE
831 am__fastdepCXX_TRUE
832 CXXDEPMODE
833 ac_ct_CXX
834 CXXFLAGS
835 CXX
836 CPP
837 NMEDIT
838 DSYMUTIL
839 RANLIB
840 AR
841 ECHO
842 LN_S
843 EGREP
844 GREP
845 SED
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 host_os
863 host_vendor
864 host_cpu
865 host
866 build_os
867 build_vendor
868 build_cpu
869 build
870 DRIVER_NAME
871 MAINT
872 MAINTAINER_MODE_FALSE
873 MAINTAINER_MODE_TRUE
874 am__untar
875 am__tar
876 AMTAR
877 am__leading_dot
878 SET_MAKE
879 AWK
880 mkdir_p
881 MKDIR_P
882 INSTALL_STRIP_PROGRAM
883 STRIP
884 install_sh
885 MAKEINFO
886 AUTOHEADER
887 AUTOMAKE
888 AUTOCONF
889 ACLOCAL
890 VERSION
891 PACKAGE
892 CYGPATH_W
893 am__isrc
894 INSTALL_DATA
895 INSTALL_SCRIPT
896 INSTALL_PROGRAM
897 target_alias
898 host_alias
899 build_alias
900 LIBS
901 ECHO_T
902 ECHO_N
903 ECHO_C
904 DEFS
905 mandir
906 localedir
907 libdir
908 psdir
909 pdfdir
910 dvidir
911 htmldir
912 infodir
913 docdir
914 oldincludedir
915 includedir
916 localstatedir
917 sharedstatedir
918 sysconfdir
919 datadir
920 datarootdir
921 libexecdir
922 sbindir
923 bindir
924 program_transform_name
925 prefix
926 exec_prefix
927 PACKAGE_BUGREPORT
928 PACKAGE_STRING
929 PACKAGE_VERSION
930 PACKAGE_TARNAME
931 PACKAGE_NAME
932 PATH_SEPARATOR
933 SHELL'
934 ac_subst_files=''
935 ac_user_opts='
936 enable_option_checking
937 enable_maintainer_mode
938 enable_static
939 enable_shared
940 enable_fast_install
941 enable_dependency_tracking
942 with_gnu_ld
943 enable_libtool_lock
944 with_pic
945 with_tags
946 with_xorg_module_dir
947 with_release_version
948 '
949 ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CC
953 CFLAGS
954 LDFLAGS
955 LIBS
956 CPPFLAGS
957 CPP
958 CXX
959 CXXFLAGS
960 CCC
961 CXXCPP
962 F77
963 FFLAGS
964 PKG_CONFIG
965 XORG_CFLAGS
966 XORG_LIBS'
967
968
969 # Initialize some variables set by options.
970 ac_init_help=
971 ac_init_version=false
972 ac_unrecognized_opts=
973 ac_unrecognized_sep=
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
976 cache_file=/dev/null
977 exec_prefix=NONE
978 no_create=
979 no_recursion=
980 prefix=NONE
981 program_prefix=NONE
982 program_suffix=NONE
983 program_transform_name=s,x,x,
984 silent=
985 site=
986 srcdir=
987 verbose=
988 x_includes=NONE
989 x_libraries=NONE
990
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1024 ac_prev=
1025 continue
1026 fi
1027
1028 case $ac_option in
1029 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030 *) ac_optarg=yes ;;
1031 esac
1032
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035 case $ac_dashdash$ac_option in
1036 --)
1037 ac_dashdash=yes ;;
1038
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040 ac_prev=bindir ;;
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1043
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1048
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1055
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1058
1059 -datadir | --datadir | --datadi | --datad)
1060 ac_prev=datadir ;;
1061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062 datadir=$ac_optarg ;;
1063
1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1070
1071 -disable-* | --disable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=no ;;
1087
1088 -docdir | --docdir | --docdi | --doc | --do)
1089 ac_prev=docdir ;;
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1092
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094 ac_prev=dvidir ;;
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
1097
1098 -enable-* | --enable-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1123
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1127
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1134
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1139
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1145
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1152
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1157
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1162
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1169
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1174
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1181
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1186
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1190
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1194
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1198
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1207
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1212
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1219
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1226
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1243
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1248
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1253
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1257
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1263
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1274
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1279
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1284
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1291
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1296
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1299
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1302
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1308 { (exit 1); exit 1; }; }
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1312 *"
1313 "with_$ac_useropt"
1314 "*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval with_$ac_useropt=\$ac_optarg ;;
1319
1320 -without-* | --without-*)
1321 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1325 { (exit 1); exit 1; }; }
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1329 *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1336
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1340
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1347
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1354
1355 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1356 Try \`$0 --help' for more information." >&2
1357 { (exit 1); exit 1; }; }
1358 ;;
1359
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1364 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1365 { (exit 1); exit 1; }; }
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1368
1369 *)
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 ;;
1376
1377 esac
1378 done
1379
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1383 { (exit 1); exit 1; }; }
1384 fi
1385
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1390 { (exit 1); exit 1; }; } ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392 esac
1393 fi
1394
1395 # Check all directory arguments for consistency.
1396 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1400 do
1401 eval ac_val=\$$ac_var
1402 # Remove trailing slashes.
1403 case $ac_val in
1404 */ )
1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\$ac_val;;
1407 esac
1408 # Be sure to have absolute directory names.
1409 case $ac_val in
1410 [\\/$]* | ?:[\\/]* ) continue;;
1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412 esac
1413 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1414 { (exit 1); exit 1; }; }
1415 done
1416
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1420 build=$build_alias
1421 host=$host_alias
1422 target=$target_alias
1423
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x; then
1426 if test "x$build_alias" = x; then
1427 cross_compiling=maybe
1428 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1429 If a cross compiler is detected then cross compile mode will be used." >&2
1430 elif test "x$build_alias" != "x$host_alias"; then
1431 cross_compiling=yes
1432 fi
1433 fi
1434
1435 ac_tool_prefix=
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437
1438 test "$silent" = yes && exec 6>/dev/null
1439
1440
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1445 { (exit 1); exit 1; }; }
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1448 { (exit 1); exit 1; }; }
1449
1450
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453 ac_srcdir_defaulted=yes
1454 # Try the directory containing this script, then the parent directory.
1455 ac_confdir=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457 X"$as_myself" : 'X\(//\)[^/]' \| \
1458 X"$as_myself" : 'X\(//\)$' \| \
1459 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 $as_echo X"$as_myself" |
1461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)[^/].*/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)$/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\).*/{
1474 s//\1/
1475 q
1476 }
1477 s/.*/./; q'`
1478 srcdir=$ac_confdir
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480 srcdir=..
1481 fi
1482 else
1483 ac_srcdir_defaulted=no
1484 fi
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1488 { (exit 1); exit 1; }; }
1489 fi
1490 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 ac_abs_confdir=`(
1492 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1493 { (exit 1); exit 1; }; }
1494 pwd)`
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497 srcdir=.
1498 fi
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1502 case $srcdir in
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 esac
1505 for ac_var in $ac_precious_vars; do
1506 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_${ac_var}_value=\$${ac_var}
1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 done
1511
1512 #
1513 # Report the --help message.
1514 #
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1518 cat <<_ACEOF
1519 \`configure' configures xf86-input-keyboard 1.3.2 to adapt to many kinds of systems.
1520
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1525
1526 Defaults for the options are specified in brackets.
1527
1528 Configuration:
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1538
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1543 [PREFIX]
1544
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1549
1550 For better control, use the options below.
1551
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root
1568 [DATAROOTDIR/doc/xf86-input-keyboard]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1573 _ACEOF
1574
1575 cat <<\_ACEOF
1576
1577 Program names:
1578 --program-prefix=PREFIX prepend PREFIX to installed program names
1579 --program-suffix=SUFFIX append SUFFIX to installed program names
1580 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1581
1582 System types:
1583 --build=BUILD configure for building on BUILD [guessed]
1584 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1585 _ACEOF
1586 fi
1587
1588 if test -n "$ac_init_help"; then
1589 case $ac_init_help in
1590 short | recursive ) echo "Configuration of xf86-input-keyboard 1.3.2:";;
1591 esac
1592 cat <<\_ACEOF
1593
1594 Optional Features:
1595 --disable-option-checking ignore unrecognized --enable/--with options
1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1598 --enable-maintainer-mode enable make rules and dependencies not useful
1599 (and sometimes confusing) to the casual installer
1600 --enable-static[=PKGS] build static libraries [default=no]
1601 --enable-shared[=PKGS] build shared libraries [default=yes]
1602 --enable-fast-install[=PKGS]
1603 optimize for fast installation [default=yes]
1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
1606 --disable-libtool-lock avoid locking (might break parallel builds)
1607
1608 Optional Packages:
1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1611 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1612 --with-pic try to use only PIC/non-PIC objects [default=use
1613 both]
1614 --with-tags[=TAGS] include additional configurations [automatic]
1615 --with-xorg-module-dir=DIR
1616 Default xorg module directory
1617 [default=$libdir/xorg/modules]
1618 --with-release-version=STRING
1619 Use release version string in package name
1620
1621 Some influential environment variables:
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1625 nonstandard directory <lib dir>
1626 LIBS libraries to pass to the linker, e.g. -l<library>
1627 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1628 you have headers in a nonstandard directory <include dir>
1629 CPP C preprocessor
1630 CXX C++ compiler command
1631 CXXFLAGS C++ compiler flags
1632 CXXCPP C++ preprocessor
1633 F77 Fortran 77 compiler command
1634 FFLAGS Fortran 77 compiler flags
1635 PKG_CONFIG path to pkg-config utility
1636 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1637 XORG_LIBS linker flags for XORG, overriding pkg-config
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1643 _ACEOF
1644 ac_status=$?
1645 fi
1646
1647 if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650 test -d "$ac_dir" ||
1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652 continue
1653 ac_builddir=.
1654
1655 case "$ac_dir" in
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *)
1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659 # A ".." for each directory in $ac_dir_suffix.
1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661 case $ac_top_builddir_sub in
1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 esac ;;
1665 esac
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1670
1671 case $srcdir in
1672 .) # We are building in place.
1673 ac_srcdir=.
1674 ac_top_srcdir=$ac_top_builddir_sub
1675 ac_abs_top_srcdir=$ac_pwd ;;
1676 [\\/]* | ?:[\\/]* ) # Absolute name.
1677 ac_srcdir=$srcdir$ac_dir_suffix;
1678 ac_top_srcdir=$srcdir
1679 ac_abs_top_srcdir=$srcdir ;;
1680 *) # Relative name.
1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682 ac_top_srcdir=$ac_top_build_prefix$srcdir
1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 esac
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686
1687 cd "$ac_dir" || { ac_status=$?; continue; }
1688 # Check for guested configure.
1689 if test -f "$ac_srcdir/configure.gnu"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692 elif test -f "$ac_srcdir/configure"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure" --help=recursive
1695 else
1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 fi || ac_status=$?
1698 cd "$ac_pwd" || { ac_status=$?; break; }
1699 done
1700 fi
1701
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1704 cat <<\_ACEOF
1705 xf86-input-keyboard configure 1.3.2
1706 generated by GNU Autoconf 2.63
1707
1708 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1709 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713 exit
1714 fi
1715 cat >config.log <<_ACEOF
1716 This file contains any messages produced by compilers while
1717 running configure, to aid debugging if configure makes a mistake.
1718
1719 It was created by xf86-input-keyboard $as_me 1.3.2, which was
1720 generated by GNU Autoconf 2.63. Invocation command line was
1721
1722 $ $0 $@
1723
1724 _ACEOF
1725 exec 5>>config.log
1726 {
1727 cat <<_ASUNAME
1728 ## --------- ##
1729 ## Platform. ##
1730 ## --------- ##
1731
1732 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1733 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1734 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1735 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1736 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1737
1738 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1739 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1740
1741 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1742 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1743 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1744 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1745 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1746 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1747 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1748
1749 _ASUNAME
1750
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 $as_echo "PATH: $as_dir"
1757 done
1758 IFS=$as_save_IFS
1759
1760 } >&5
1761
1762 cat >&5 <<_ACEOF
1763
1764
1765 ## ----------- ##
1766 ## Core tests. ##
1767 ## ----------- ##
1768
1769 _ACEOF
1770
1771
1772 # Keep a trace of the command line.
1773 # Strip out --no-create and --no-recursion so they do not pile up.
1774 # Strip out --silent because we don't want to record it for future runs.
1775 # Also quote any args containing shell meta-characters.
1776 # Make two passes to allow for proper duplicate-argument suppression.
1777 ac_configure_args=
1778 ac_configure_args0=
1779 ac_configure_args1=
1780 ac_must_keep_next=false
1781 for ac_pass in 1 2
1782 do
1783 for ac_arg
1784 do
1785 case $ac_arg in
1786 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1788 | -silent | --silent | --silen | --sile | --sil)
1789 continue ;;
1790 *\'*)
1791 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792 esac
1793 case $ac_pass in
1794 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1795 2)
1796 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1797 if test $ac_must_keep_next = true; then
1798 ac_must_keep_next=false # Got value, back to normal.
1799 else
1800 case $ac_arg in
1801 *=* | --config-cache | -C | -disable-* | --disable-* \
1802 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1803 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1804 | -with-* | --with-* | -without-* | --without-* | --x)
1805 case "$ac_configure_args0 " in
1806 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807 esac
1808 ;;
1809 -* ) ac_must_keep_next=true ;;
1810 esac
1811 fi
1812 ac_configure_args="$ac_configure_args '$ac_arg'"
1813 ;;
1814 esac
1815 done
1816 done
1817 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1818 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1819
1820 # When interrupted or exit'd, cleanup temporary files, and complete
1821 # config.log. We remove comments because anyway the quotes in there
1822 # would cause problems or look ugly.
1823 # WARNING: Use '\'' to represent an apostrophe within the trap.
1824 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1825 trap 'exit_status=$?
1826 # Save into config.log some information that might help in debugging.
1827 {
1828 echo
1829
1830 cat <<\_ASBOX
1831 ## ---------------- ##
1832 ## Cache variables. ##
1833 ## ---------------- ##
1834 _ASBOX
1835 echo
1836 # The following way of writing the cache mishandles newlines in values,
1837 (
1838 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839 eval ac_val=\$$ac_var
1840 case $ac_val in #(
1841 *${as_nl}*)
1842 case $ac_var in #(
1843 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1844 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1845 esac
1846 case $ac_var in #(
1847 _ | IFS | as_nl) ;; #(
1848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1849 *) $as_unset $ac_var ;;
1850 esac ;;
1851 esac
1852 done
1853 (set) 2>&1 |
1854 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1855 *${as_nl}ac_space=\ *)
1856 sed -n \
1857 "s/'\''/'\''\\\\'\'''\''/g;
1858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1859 ;; #(
1860 *)
1861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1862 ;;
1863 esac |
1864 sort
1865 )
1866 echo
1867
1868 cat <<\_ASBOX
1869 ## ----------------- ##
1870 ## Output variables. ##
1871 ## ----------------- ##
1872 _ASBOX
1873 echo
1874 for ac_var in $ac_subst_vars
1875 do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 $as_echo "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1883
1884 if test -n "$ac_subst_files"; then
1885 cat <<\_ASBOX
1886 ## ------------------- ##
1887 ## File substitutions. ##
1888 ## ------------------- ##
1889 _ASBOX
1890 echo
1891 for ac_var in $ac_subst_files
1892 do
1893 eval ac_val=\$$ac_var
1894 case $ac_val in
1895 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 esac
1897 $as_echo "$ac_var='\''$ac_val'\''"
1898 done | sort
1899 echo
1900 fi
1901
1902 if test -s confdefs.h; then
1903 cat <<\_ASBOX
1904 ## ----------- ##
1905 ## confdefs.h. ##
1906 ## ----------- ##
1907 _ASBOX
1908 echo
1909 cat confdefs.h
1910 echo
1911 fi
1912 test "$ac_signal" != 0 &&
1913 $as_echo "$as_me: caught signal $ac_signal"
1914 $as_echo "$as_me: exit $exit_status"
1915 } >&5
1916 rm -f core *.core core.conftest.* &&
1917 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1918 exit $exit_status
1919 ' 0
1920 for ac_signal in 1 2 13 15; do
1921 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1922 done
1923 ac_signal=0
1924
1925 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1926 rm -f -r conftest* confdefs.h
1927
1928 # Predefined preprocessor variables.
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_NAME "$PACKAGE_NAME"
1932 _ACEOF
1933
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937 _ACEOF
1938
1939
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1942 _ACEOF
1943
1944
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_STRING "$PACKAGE_STRING"
1947 _ACEOF
1948
1949
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1952 _ACEOF
1953
1954
1955 # Let the site file select an alternate cache file if it wants to.
1956 # Prefer an explicitly selected file to automatically selected ones.
1957 ac_site_file1=NONE
1958 ac_site_file2=NONE
1959 if test -n "$CONFIG_SITE"; then
1960 ac_site_file1=$CONFIG_SITE
1961 elif test "x$prefix" != xNONE; then
1962 ac_site_file1=$prefix/share/config.site
1963 ac_site_file2=$prefix/etc/config.site
1964 else
1965 ac_site_file1=$ac_default_prefix/share/config.site
1966 ac_site_file2=$ac_default_prefix/etc/config.site
1967 fi
1968 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1969 do
1970 test "x$ac_site_file" = xNONE && continue
1971 if test -r "$ac_site_file"; then
1972 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1973 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1974 sed 's/^/| /' "$ac_site_file" >&5
1975 . "$ac_site_file"
1976 fi
1977 done
1978
1979 if test -r "$cache_file"; then
1980 # Some versions of bash will fail to source /dev/null (special
1981 # files actually), so we avoid doing that.
1982 if test -f "$cache_file"; then
1983 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1984 $as_echo "$as_me: loading cache $cache_file" >&6;}
1985 case $cache_file in
1986 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1987 *) . "./$cache_file";;
1988 esac
1989 fi
1990 else
1991 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1992 $as_echo "$as_me: creating cache $cache_file" >&6;}
1993 >$cache_file
1994 fi
1995
1996 # Check that the precious variables saved in the cache have kept the same
1997 # value.
1998 ac_cache_corrupted=false
1999 for ac_var in $ac_precious_vars; do
2000 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2001 eval ac_new_set=\$ac_env_${ac_var}_set
2002 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2003 eval ac_new_val=\$ac_env_${ac_var}_value
2004 case $ac_old_set,$ac_new_set in
2005 set,)
2006 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2007 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2008 ac_cache_corrupted=: ;;
2009 ,set)
2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,);;
2014 *)
2015 if test "x$ac_old_val" != "x$ac_new_val"; then
2016 # differences in whitespace do not lead to failure.
2017 ac_old_val_w=`echo x $ac_old_val`
2018 ac_new_val_w=`echo x $ac_new_val`
2019 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2020 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2021 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2022 ac_cache_corrupted=:
2023 else
2024 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2025 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2026 eval $ac_var=\$ac_old_val
2027 fi
2028 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2029 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2030 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2031 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2032 fi;;
2033 esac
2034 # Pass precious variables to config.status.
2035 if test "$ac_new_set" = set; then
2036 case $ac_new_val in
2037 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2038 *) ac_arg=$ac_var=$ac_new_val ;;
2039 esac
2040 case " $ac_configure_args " in
2041 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2042 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2043 esac
2044 fi
2045 done
2046 if $ac_cache_corrupted; then
2047 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2049 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2050 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2051 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2052 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2053 { (exit 1); exit 1; }; }
2054 fi
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080 ac_ext=c
2081 ac_cpp='$CPP $CPPFLAGS'
2082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085
2086
2087
2088 # Require xorg-macros version 1.2 or newer for XORG_CWARNFLAGS and
2089 # XORG_CHANGELOG macros
2090
2091
2092 XORG_MACROS_needed_version=1.2.1
2093 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2094 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2095 { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2096 $as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2097 XORG_MACROS_version=1.2.1
2098 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2099 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2100 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2101 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2102 $as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2103 { (exit 1); exit 1; }; }
2104 fi
2105 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2106 { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2107 $as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2108 { (exit 1); exit 1; }; }
2109 fi
2110 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2111 $as_echo "yes, $XORG_MACROS_version" >&6; }
2112
2113
2114
2115 ac_aux_dir=
2116 for ac_dir in . "$srcdir"/.; do
2117 if test -f "$ac_dir/install-sh"; then
2118 ac_aux_dir=$ac_dir
2119 ac_install_sh="$ac_aux_dir/install-sh -c"
2120 break
2121 elif test -f "$ac_dir/install.sh"; then
2122 ac_aux_dir=$ac_dir
2123 ac_install_sh="$ac_aux_dir/install.sh -c"
2124 break
2125 elif test -f "$ac_dir/shtool"; then
2126 ac_aux_dir=$ac_dir
2127 ac_install_sh="$ac_aux_dir/shtool install -c"
2128 break
2129 fi
2130 done
2131 if test -z "$ac_aux_dir"; then
2132 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2133 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2134 { (exit 1); exit 1; }; }
2135 fi
2136
2137 # These three variables are undocumented and unsupported,
2138 # and are intended to be withdrawn in a future Autoconf release.
2139 # They can cause serious problems if a builder's source tree is in a directory
2140 # whose full name contains unusual characters.
2141 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2142 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2143 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2144
2145
2146 am__api_version='1.10'
2147
2148 # Find a good install program. We prefer a C program (faster),
2149 # so one script is as good as another. But avoid the broken or
2150 # incompatible versions:
2151 # SysV /etc/install, /usr/sbin/install
2152 # SunOS /usr/etc/install
2153 # IRIX /sbin/install
2154 # AIX /bin/install
2155 # AmigaOS /C/install, which installs bootblocks on floppy discs
2156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2159 # OS/2's system install, which has a completely different semantic
2160 # ./install, which can be erroneously created by make from ./install.sh.
2161 # Reject install programs that cannot install multiple files.
2162 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2163 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2164 if test -z "$INSTALL"; then
2165 if test "${ac_cv_path_install+set}" = set; then
2166 $as_echo_n "(cached) " >&6
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 # Account for people who put trailing slashes in PATH elements.
2174 case $as_dir/ in
2175 ./ | .// | /cC/* | \
2176 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2177 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2178 /usr/ucb/* ) ;;
2179 *)
2180 # OSF1 and SCO ODT 3.0 have their own names for install.
2181 # Don't use installbsd from OSF since it installs stuff as root
2182 # by default.
2183 for ac_prog in ginstall scoinst install; do
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2186 if test $ac_prog = install &&
2187 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2188 # AIX install. It has an incompatible calling convention.
2189 :
2190 elif test $ac_prog = install &&
2191 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2192 # program-specific install script used by HP pwplus--don't use.
2193 :
2194 else
2195 rm -rf conftest.one conftest.two conftest.dir
2196 echo one > conftest.one
2197 echo two > conftest.two
2198 mkdir conftest.dir
2199 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2200 test -s conftest.one && test -s conftest.two &&
2201 test -s conftest.dir/conftest.one &&
2202 test -s conftest.dir/conftest.two
2203 then
2204 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2205 break 3
2206 fi
2207 fi
2208 fi
2209 done
2210 done
2211 ;;
2212 esac
2213
2214 done
2215 IFS=$as_save_IFS
2216
2217 rm -rf conftest.one conftest.two conftest.dir
2218
2219 fi
2220 if test "${ac_cv_path_install+set}" = set; then
2221 INSTALL=$ac_cv_path_install
2222 else
2223 # As a last resort, use the slow shell script. Don't cache a
2224 # value for INSTALL within a source directory, because that will
2225 # break other packages using the cache if that directory is
2226 # removed, or if the value is a relative name.
2227 INSTALL=$ac_install_sh
2228 fi
2229 fi
2230 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2231 $as_echo "$INSTALL" >&6; }
2232
2233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2234 # It thinks the first close brace ends the variable substitution.
2235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2236
2237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2238
2239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2240
2241 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2242 $as_echo_n "checking whether build environment is sane... " >&6; }
2243 # Just in case
2244 sleep 1
2245 echo timestamp > conftest.file
2246 # Do `set' in a subshell so we don't clobber the current shell's
2247 # arguments. Must try -L first in case configure is actually a
2248 # symlink; some systems play weird games with the mod time of symlinks
2249 # (eg FreeBSD returns the mod time of the symlink's containing
2250 # directory).
2251 if (
2252 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2253 if test "$*" = "X"; then
2254 # -L didn't work.
2255 set X `ls -t $srcdir/configure conftest.file`
2256 fi
2257 rm -f conftest.file
2258 if test "$*" != "X $srcdir/configure conftest.file" \
2259 && test "$*" != "X conftest.file $srcdir/configure"; then
2260
2261 # If neither matched, then we have a broken ls. This can happen
2262 # if, for instance, CONFIG_SHELL is bash and it inherits a
2263 # broken ls alias from the environment. This has actually
2264 # happened. Such a system could not be considered "sane".
2265 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2266 alias in your environment" >&5
2267 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2268 alias in your environment" >&2;}
2269 { (exit 1); exit 1; }; }
2270 fi
2271
2272 test "$2" = conftest.file
2273 )
2274 then
2275 # Ok.
2276 :
2277 else
2278 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2279 Check your system clock" >&5
2280 $as_echo "$as_me: error: newly created file is older than distributed files!
2281 Check your system clock" >&2;}
2282 { (exit 1); exit 1; }; }
2283 fi
2284 { $as_echo "$as_me:$LINENO: result: yes" >&5
2285 $as_echo "yes" >&6; }
2286 test "$program_prefix" != NONE &&
2287 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2288 # Use a double $ so make ignores it.
2289 test "$program_suffix" != NONE &&
2290 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2291 # Double any \ or $.
2292 # By default was `s,x,x', remove it if useless.
2293 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2294 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2295
2296 # expand $ac_aux_dir to an absolute path
2297 am_aux_dir=`cd $ac_aux_dir && pwd`
2298
2299 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --run true"; then
2302 am_missing_run="$MISSING --run "
2303 else
2304 am_missing_run=
2305 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2307 fi
2308
2309 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2311 if test -z "$MKDIR_P"; then
2312 if test "${ac_cv_path_mkdir+set}" = set; then
2313 $as_echo_n "(cached) " >&6
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2317 do
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_prog in mkdir gmkdir; do
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2323 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2324 'mkdir (GNU coreutils) '* | \
2325 'mkdir (coreutils) '* | \
2326 'mkdir (fileutils) '4.1*)
2327 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2328 break 3;;
2329 esac
2330 done
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336
2337 if test "${ac_cv_path_mkdir+set}" = set; then
2338 MKDIR_P="$ac_cv_path_mkdir -p"
2339 else
2340 # As a last resort, use the slow shell script. Don't cache a
2341 # value for MKDIR_P within a source directory, because that will
2342 # break other packages using the cache if that directory is
2343 # removed, or if the value is a relative name.
2344 test -d ./--version && rmdir ./--version
2345 MKDIR_P="$ac_install_sh -d"
2346 fi
2347 fi
2348 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2349 $as_echo "$MKDIR_P" >&6; }
2350
2351 mkdir_p="$MKDIR_P"
2352 case $mkdir_p in
2353 [\\/$]* | ?:[\\/]*) ;;
2354 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2355 esac
2356
2357 for ac_prog in gawk mawk nawk awk
2358 do
2359 # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy $ac_prog; ac_word=$2
2361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if test "${ac_cv_prog_AWK+set}" = set; then
2364 $as_echo_n "(cached) " >&6
2365 else
2366 if test -n "$AWK"; then
2367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_AWK="$ac_prog"
2377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2379 fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 AWK=$ac_cv_prog_AWK
2387 if test -n "$AWK"; then
2388 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2389 $as_echo "$AWK" >&6; }
2390 else
2391 { $as_echo "$as_me:$LINENO: result: no" >&5
2392 $as_echo "no" >&6; }
2393 fi
2394
2395
2396 test -n "$AWK" && break
2397 done
2398
2399 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2401 set x ${MAKE-make}
2402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2403 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2404 $as_echo_n "(cached) " >&6
2405 else
2406 cat >conftest.make <<\_ACEOF
2407 SHELL = /bin/sh
2408 all:
2409 @echo '@@@%%%=$(MAKE)=@@@%%%'
2410 _ACEOF
2411 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2413 *@@@%%%=?*=@@@%%%*)
2414 eval ac_cv_prog_make_${ac_make}_set=yes;;
2415 *)
2416 eval ac_cv_prog_make_${ac_make}_set=no;;
2417 esac
2418 rm -f conftest.make
2419 fi
2420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2421 { $as_echo "$as_me:$LINENO: result: yes" >&5
2422 $as_echo "yes" >&6; }
2423 SET_MAKE=
2424 else
2425 { $as_echo "$as_me:$LINENO: result: no" >&5
2426 $as_echo "no" >&6; }
2427 SET_MAKE="MAKE=${MAKE-make}"
2428 fi
2429
2430 rm -rf .tst 2>/dev/null
2431 mkdir .tst 2>/dev/null
2432 if test -d .tst; then
2433 am__leading_dot=.
2434 else
2435 am__leading_dot=_
2436 fi
2437 rmdir .tst 2>/dev/null
2438
2439 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2440 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2441 # is not polluted with repeated "-I."
2442 am__isrc=' -I$(srcdir)'
2443 # test to see if srcdir already configured
2444 if test -f $srcdir/config.status; then
2445 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2446 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2447 { (exit 1); exit 1; }; }
2448 fi
2449 fi
2450
2451 # test whether we have cygpath
2452 if test -z "$CYGPATH_W"; then
2453 if (cygpath --version) >/dev/null 2>/dev/null; then
2454 CYGPATH_W='cygpath -w'
2455 else
2456 CYGPATH_W=echo
2457 fi
2458 fi
2459
2460
2461 # Define the identity of the package.
2462 PACKAGE='xf86-input-keyboard'
2463 VERSION='1.3.2'
2464
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE "$PACKAGE"
2468 _ACEOF
2469
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define VERSION "$VERSION"
2473 _ACEOF
2474
2475 # Some tools Automake needs.
2476
2477 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2478
2479
2480 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2481
2482
2483 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2484
2485
2486 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2487
2488
2489 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2490
2491 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2492
2493 # Installed binaries are usually stripped using `strip' when the user
2494 # run `make install-strip'. However `strip' might not be the right
2495 # tool to use in cross-compilation environments, therefore Automake
2496 # will honor the `STRIP' environment variable to overrule this program.
2497 if test "$cross_compiling" != no; then
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}strip; ac_word=$2
2501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if test "${ac_cv_prog_STRIP+set}" = set; then
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$STRIP"; then
2507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 STRIP=$ac_cv_prog_STRIP
2527 if test -n "$STRIP"; then
2528 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2529 $as_echo "$STRIP" >&6; }
2530 else
2531 { $as_echo "$as_me:$LINENO: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2534
2535
2536 fi
2537 if test -z "$ac_cv_prog_STRIP"; then
2538 ac_ct_STRIP=$STRIP
2539 # Extract the first word of "strip", so it can be a program name with args.
2540 set dummy strip; ac_word=$2
2541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2544 $as_echo_n "(cached) " >&6
2545 else
2546 if test -n "$ac_ct_STRIP"; then
2547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2551 do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_ac_ct_STRIP="strip"
2557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 fi
2565 fi
2566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2567 if test -n "$ac_ct_STRIP"; then
2568 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2569 $as_echo "$ac_ct_STRIP" >&6; }
2570 else
2571 { $as_echo "$as_me:$LINENO: result: no" >&5
2572 $as_echo "no" >&6; }
2573 fi
2574
2575 if test "x$ac_ct_STRIP" = x; then
2576 STRIP=":"
2577 else
2578 case $cross_compiling:$ac_tool_warned in
2579 yes:)
2580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582 ac_tool_warned=yes ;;
2583 esac
2584 STRIP=$ac_ct_STRIP
2585 fi
2586 else
2587 STRIP="$ac_cv_prog_STRIP"
2588 fi
2589
2590 fi
2591 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2592
2593 # We need awk for the "check" target. The system "awk" is bad on
2594 # some platforms.
2595 # Always define AMTAR for backward compatibility.
2596
2597 AMTAR=${AMTAR-"${am_missing_run}tar"}
2598
2599 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2600
2601
2602
2603
2604
2605
2606 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2607 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2608 # Check whether --enable-maintainer-mode was given.
2609 if test "${enable_maintainer_mode+set}" = set; then
2610 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2611 else
2612 USE_MAINTAINER_MODE=no
2613 fi
2614
2615 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2616 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2617 if test $USE_MAINTAINER_MODE = yes; then
2618 MAINTAINER_MODE_TRUE=
2619 MAINTAINER_MODE_FALSE='#'
2620 else
2621 MAINTAINER_MODE_TRUE='#'
2622 MAINTAINER_MODE_FALSE=
2623 fi
2624
2625 MAINT=$MAINTAINER_MODE_TRUE
2626
2627
2628
2629 DRIVER_NAME=kbd
2630
2631
2632 ac_config_headers="$ac_config_headers config.h"
2633
2634
2635 # Checks for programs.
2636 # Check whether --enable-static was given.
2637 if test "${enable_static+set}" = set; then
2638 enableval=$enable_static; p=${PACKAGE-default}
2639 case $enableval in
2640 yes) enable_static=yes ;;
2641 no) enable_static=no ;;
2642 *)
2643 enable_static=no
2644 # Look at the argument we got. We use all the common list separators.
2645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2646 for pkg in $enableval; do
2647 IFS="$lt_save_ifs"
2648 if test "X$pkg" = "X$p"; then
2649 enable_static=yes
2650 fi
2651 done
2652 IFS="$lt_save_ifs"
2653 ;;
2654 esac
2655 else
2656 enable_static=no
2657 fi
2658
2659
2660
2661 # Check whether --enable-shared was given.
2662 if test "${enable_shared+set}" = set; then
2663 enableval=$enable_shared; p=${PACKAGE-default}
2664 case $enableval in
2665 yes) enable_shared=yes ;;
2666 no) enable_shared=no ;;
2667 *)
2668 enable_shared=no
2669 # Look at the argument we got. We use all the common list separators.
2670 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2671 for pkg in $enableval; do
2672 IFS="$lt_save_ifs"
2673 if test "X$pkg" = "X$p"; then
2674 enable_shared=yes
2675 fi
2676 done
2677 IFS="$lt_save_ifs"
2678 ;;
2679 esac
2680 else
2681 enable_shared=yes
2682 fi
2683
2684
2685 # Check whether --enable-fast-install was given.
2686 if test "${enable_fast_install+set}" = set; then
2687 enableval=$enable_fast_install; p=${PACKAGE-default}
2688 case $enableval in
2689 yes) enable_fast_install=yes ;;
2690 no) enable_fast_install=no ;;
2691 *)
2692 enable_fast_install=no
2693 # Look at the argument we got. We use all the common list separators.
2694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2695 for pkg in $enableval; do
2696 IFS="$lt_save_ifs"
2697 if test "X$pkg" = "X$p"; then
2698 enable_fast_install=yes
2699 fi
2700 done
2701 IFS="$lt_save_ifs"
2702 ;;
2703 esac
2704 else
2705 enable_fast_install=yes
2706 fi
2707
2708
2709 # Make sure we can run config.sub.
2710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2711 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2712 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2713 { (exit 1); exit 1; }; }
2714
2715 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2716 $as_echo_n "checking build system type... " >&6; }
2717 if test "${ac_cv_build+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2719 else
2720 ac_build_alias=$build_alias
2721 test "x$ac_build_alias" = x &&
2722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2723 test "x$ac_build_alias" = x &&
2724 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2725 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2726 { (exit 1); exit 1; }; }
2727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2728 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2729 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2730 { (exit 1); exit 1; }; }
2731
2732 fi
2733 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2738 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2739 { (exit 1); exit 1; }; };;
2740 esac
2741 build=$ac_cv_build
2742 ac_save_IFS=$IFS; IFS='-'
2743 set x $ac_cv_build
2744 shift
2745 build_cpu=$1
2746 build_vendor=$2
2747 shift; shift
2748 # Remember, the first character of IFS is used to create $*,
2749 # except with old shells:
2750 build_os=$*
2751 IFS=$ac_save_IFS
2752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753
2754
2755 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2756 $as_echo_n "checking host system type... " >&6; }
2757 if test "${ac_cv_host+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test "x$host_alias" = x; then
2761 ac_cv_host=$ac_cv_build
2762 else
2763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2764 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2765 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2766 { (exit 1); exit 1; }; }
2767 fi
2768
2769 fi
2770 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2771 $as_echo "$ac_cv_host" >&6; }
2772 case $ac_cv_host in
2773 *-*-*) ;;
2774 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2775 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2776 { (exit 1); exit 1; }; };;
2777 esac
2778 host=$ac_cv_host
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_host
2781 shift
2782 host_cpu=$1
2783 host_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 host_os=$*
2788 IFS=$ac_save_IFS
2789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 DEPDIR="${am__leading_dot}deps"
2793
2794 ac_config_commands="$ac_config_commands depfiles"
2795
2796
2797 am_make=${MAKE-make}
2798 cat > confinc << 'END'
2799 am__doit:
2800 @echo done
2801 .PHONY: am__doit
2802 END
2803 # If we don't find an include directive, just comment out the code.
2804 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2805 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2806 am__include="#"
2807 am__quote=
2808 _am_result=none
2809 # First try GNU make style include.
2810 echo "include confinc" > confmf
2811 # We grep out `Entering directory' and `Leaving directory'
2812 # messages which can occur if `w' ends up in MAKEFLAGS.
2813 # In particular we don't look at `^make:' because GNU make might
2814 # be invoked under some other name (usually "gmake"), in which
2815 # case it prints its new name instead of `make'.
2816 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2817 am__include=include
2818 am__quote=
2819 _am_result=GNU
2820 fi
2821 # Now try BSD make style include.
2822 if test "$am__include" = "#"; then
2823 echo '.include "confinc"' > confmf
2824 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2825 am__include=.include
2826 am__quote="\""
2827 _am_result=BSD
2828 fi
2829 fi
2830
2831
2832 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2833 $as_echo "$_am_result" >&6; }
2834 rm -f confinc confmf
2835
2836 # Check whether --enable-dependency-tracking was given.
2837 if test "${enable_dependency_tracking+set}" = set; then
2838 enableval=$enable_dependency_tracking;
2839 fi
2840
2841 if test "x$enable_dependency_tracking" != xno; then
2842 am_depcomp="$ac_aux_dir/depcomp"
2843 AMDEPBACKSLASH='\'
2844 fi
2845 if test "x$enable_dependency_tracking" != xno; then
2846 AMDEP_TRUE=
2847 AMDEP_FALSE='#'
2848 else
2849 AMDEP_TRUE='#'
2850 AMDEP_FALSE=
2851 fi
2852
2853
2854 ac_ext=c
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 CC=$ac_cv_prog_CC
2888 if test -n "$CC"; then
2889 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2890 $as_echo "$CC" >&6; }
2891 else
2892 { $as_echo "$as_me:$LINENO: result: no" >&5
2893 $as_echo "no" >&6; }
2894 fi
2895
2896
2897 fi
2898 if test -z "$ac_cv_prog_CC"; then
2899 ac_ct_CC=$CC
2900 # Extract the first word of "gcc", so it can be a program name with args.
2901 set dummy gcc; ac_word=$2
2902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_CC="gcc"
2918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930 $as_echo "$ac_ct_CC" >&6; }
2931 else
2932 { $as_echo "$as_me:$LINENO: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936 if test "x$ac_ct_CC" = x; then
2937 CC=""
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 CC=$ac_ct_CC
2946 fi
2947 else
2948 CC="$ac_cv_prog_CC"
2949 fi
2950
2951 if test -z "$CC"; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}cc; ac_word=$2
2955 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="${ac_tool_prefix}cc"
2971 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:$LINENO: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 fi
2991 fi
2992 if test -z "$CC"; then
2993 # Extract the first word of "cc", so it can be a program name with args.
2994 set dummy cc; ac_word=$2
2995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_CC+set}" = set; then
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 ac_prog_rejected=no
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3012 ac_prog_rejected=yes
3013 continue
3014 fi
3015 ac_cv_prog_CC="cc"
3016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 if test $ac_prog_rejected = yes; then
3024 # We found a bogon in the path, so make sure we never use it.
3025 set dummy $ac_cv_prog_CC
3026 shift
3027 if test $# != 0; then
3028 # We chose a different compiler from the bogus one.
3029 # However, it has the same basename, so the bogon will be chosen
3030 # first if we set CC to just the basename; use the full file name.
3031 shift
3032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3033 fi
3034 fi
3035 fi
3036 fi
3037 CC=$ac_cv_prog_CC
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3041 else
3042 { $as_echo "$as_me:$LINENO: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 fi
3048 if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 for ac_prog in cl.exe
3051 do
3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:$LINENO: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 test -n "$CC" && break
3090 done
3091 fi
3092 if test -z "$CC"; then
3093 ac_ct_CC=$CC
3094 for ac_prog in cl.exe
3095 do
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_ac_ct_CC="$ac_prog"
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3126 $as_echo "$ac_ct_CC" >&6; }
3127 else
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133 test -n "$ac_ct_CC" && break
3134 done
3135
3136 if test "x$ac_ct_CC" = x; then
3137 CC=""
3138 else
3139 case $cross_compiling:$ac_tool_warned in
3140 yes:)
3141 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned=yes ;;
3144 esac
3145 CC=$ac_ct_CC
3146 fi
3147 fi
3148
3149 fi
3150
3151
3152 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3155 See \`config.log' for more details." >&5
3156 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }; }
3159
3160 # Provide some information about the compiler.
3161 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3162 set X $ac_compile
3163 ac_compiler=$2
3164 { (ac_try="$ac_compiler --version >&5"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_compiler --version >&5") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }
3175 { (ac_try="$ac_compiler -v >&5"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181 $as_echo "$ac_try_echo") >&5
3182 (eval "$ac_compiler -v >&5") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 { (ac_try="$ac_compiler -V >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192 $as_echo "$ac_try_echo") >&5
3193 (eval "$ac_compiler -V >&5") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204
3205 int
3206 main ()
3207 {
3208
3209 ;
3210 return 0;
3211 }
3212 _ACEOF
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3217 # of exeext.
3218 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3219 $as_echo_n "checking for C compiler default output file name... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3221
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3224
3225 ac_rmfiles=
3226 for ac_file in $ac_files
3227 do
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231 esac
3232 done
3233 rm -f $ac_rmfiles
3234
3235 if { (ac_try="$ac_link_default"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241 $as_echo "$ac_try_echo") >&5
3242 (eval "$ac_link_default") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; then
3246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3250 # Autoconf.
3251 for ac_file in $ac_files ''
3252 do
3253 test -f "$ac_file" || continue
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3256 ;;
3257 [ab].out )
3258 # We found the default executable, but exeext='' is most
3259 # certainly right.
3260 break;;
3261 *.* )
3262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263 then :; else
3264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265 fi
3266 # We set ac_cv_exeext here because the later test for it is not
3267 # safe: cross compilers may not add the suffix if given an `-o'
3268 # argument, so we may need to know it at that point already.
3269 # Even if this section looks crufty: it has the advantage of
3270 # actually working.
3271 break;;
3272 * )
3273 break;;
3274 esac
3275 done
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3277
3278 else
3279 ac_file=''
3280 fi
3281
3282 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3283 $as_echo "$ac_file" >&6; }
3284 if test -z "$ac_file"; then
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3291 See \`config.log' for more details." >&5
3292 $as_echo "$as_me: error: C compiler cannot create executables
3293 See \`config.log' for more details." >&2;}
3294 { (exit 77); exit 77; }; }; }
3295 fi
3296
3297 ac_exeext=$ac_cv_exeext
3298
3299 # Check that the compiler produces executables we can run. If not, either
3300 # the compiler is broken, or we cross compile.
3301 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3302 $as_echo_n "checking whether the C compiler works... " >&6; }
3303 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3304 # If not cross compiling, check that we can run a simple program.
3305 if test "$cross_compiling" != yes; then
3306 if { ac_try='./$ac_file'
3307 { (case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313 (eval "$ac_try") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 cross_compiling=no
3318 else
3319 if test "$cross_compiling" = maybe; then
3320 cross_compiling=yes
3321 else
3322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3325 If you meant to cross compile, use \`--host'.
3326 See \`config.log' for more details." >&5
3327 $as_echo "$as_me: error: cannot run C compiled programs.
3328 If you meant to cross compile, use \`--host'.
3329 See \`config.log' for more details." >&2;}
3330 { (exit 1); exit 1; }; }; }
3331 fi
3332 fi
3333 fi
3334 { $as_echo "$as_me:$LINENO: result: yes" >&5
3335 $as_echo "yes" >&6; }
3336
3337 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338 ac_clean_files=$ac_clean_files_save
3339 # Check that the compiler produces executables we can run. If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3342 $as_echo_n "checking whether we are cross compiling... " >&6; }
3343 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3344 $as_echo "$cross_compiling" >&6; }
3345
3346 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3347 $as_echo_n "checking for suffix of executables... " >&6; }
3348 if { (ac_try="$ac_link"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3354 $as_echo "$ac_try_echo") >&5
3355 (eval "$ac_link") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; then
3359 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3361 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 # `rm'.
3363 for ac_file in conftest.exe conftest conftest.*; do
3364 test -f "$ac_file" || continue
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368 break;;
3369 * ) break;;
3370 esac
3371 done
3372 else
3373 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3376 See \`config.log' for more details." >&5
3377 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3378 See \`config.log' for more details." >&2;}
3379 { (exit 1); exit 1; }; }; }
3380 fi
3381
3382 rm -f conftest$ac_cv_exeext
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3385
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3388 ac_exeext=$EXEEXT
3389 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3390 $as_echo_n "checking for suffix of object files... " >&6; }
3391 if test "${ac_cv_objext+set}" = set; then
3392 $as_echo_n "(cached) " >&6
3393 else
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 rm -f conftest.o conftest.obj
3410 if { (ac_try="$ac_compile"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3416 $as_echo "$ac_try_echo") >&5
3417 (eval "$ac_compile") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; then
3421 for ac_file in conftest.o conftest.obj conftest.*; do
3422 test -f "$ac_file" || continue;
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3426 break;;
3427 esac
3428 done
3429 else
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3436 See \`config.log' for more details." >&5
3437 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }; }
3440 fi
3441
3442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3443 fi
3444 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3445 $as_echo "$ac_cv_objext" >&6; }
3446 OBJEXT=$ac_cv_objext
3447 ac_objext=$OBJEXT
3448 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3449 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3452 else
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463 #ifndef __GNUC__
3464 choke me
3465 #endif
3466
3467 ;
3468 return 0;
3469 }
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478 $as_echo "$ac_try_echo") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3489 ac_compiler_gnu=yes
3490 else
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_compiler_gnu=no
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500 fi
3501 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503 if test $ac_compiler_gnu = yes; then
3504 GCC=yes
3505 else
3506 GCC=
3507 fi
3508 ac_test_CFLAGS=${CFLAGS+set}
3509 ac_save_CFLAGS=$CFLAGS
3510 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3512 if test "${ac_cv_prog_cc_g+set}" = set; then
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3517 ac_cv_prog_cc_g=no
3518 CFLAGS="-g"
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525
3526 int
3527 main ()
3528 {
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3541 $as_echo "$ac_try_echo") >&5
3542 (eval "$ac_compile") 2>conftest.er1
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
3552 ac_cv_prog_cc_g=yes
3553 else
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 CFLAGS=""
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580 $as_echo "$ac_try_echo") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3591 :
3592 else
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3597 CFLAGS="-g"
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604
3605 int
3606 main ()
3607 {
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 ac_cv_prog_cc_g=yes
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 fi
3641
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 fi
3644
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_c_werror_flag=$ac_save_c_werror_flag
3647 fi
3648 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3649 $as_echo "$ac_cv_prog_cc_g" >&6; }
3650 if test "$ac_test_CFLAGS" = set; then
3651 CFLAGS=$ac_save_CFLAGS
3652 elif test $ac_cv_prog_cc_g = yes; then
3653 if test "$GCC" = yes; then
3654 CFLAGS="-g -O2"
3655 else
3656 CFLAGS="-g"
3657 fi
3658 else
3659 if test "$GCC" = yes; then
3660 CFLAGS="-O2"
3661 else
3662 CFLAGS=
3663 fi
3664 fi
3665 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3666 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667 if test "${ac_cv_prog_cc_c89+set}" = set; then
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_cv_prog_cc_c89=no
3671 ac_save_CC=$CC
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678 #include <stdarg.h>
3679 #include <stdio.h>
3680 #include <sys/types.h>
3681 #include <sys/stat.h>
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3686 char **p;
3687 int i;
3688 {
3689 return p[i];
3690 }
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3692 {
3693 char *s;
3694 va_list v;
3695 va_start (v,p);
3696 s = g (p, va_arg (v,int));
3697 va_end (v);
3698 return s;
3699 }
3700
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3712 #define FOO(x) 'x'
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3714
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 int argc;
3720 char **argv;
3721 int
3722 main ()
3723 {
3724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731 do
3732 CC="$ac_save_CC $ac_arg"
3733 rm -f conftest.$ac_objext
3734 if { (ac_try="$ac_compile"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740 $as_echo "$ac_try_echo") >&5
3741 (eval "$ac_compile") 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } && {
3748 test -z "$ac_c_werror_flag" ||
3749 test ! -s conftest.err
3750 } && test -s conftest.$ac_objext; then
3751 ac_cv_prog_cc_c89=$ac_arg
3752 else
3753 $as_echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756
3757 fi
3758
3759 rm -f core conftest.err conftest.$ac_objext
3760 test "x$ac_cv_prog_cc_c89" != "xno" && break
3761 done
3762 rm -f conftest.$ac_ext
3763 CC=$ac_save_CC
3764
3765 fi
3766 # AC_CACHE_VAL
3767 case "x$ac_cv_prog_cc_c89" in
3768 x)
3769 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3770 $as_echo "none needed" >&6; } ;;
3771 xno)
3772 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3773 $as_echo "unsupported" >&6; } ;;
3774 *)
3775 CC="$CC $ac_cv_prog_cc_c89"
3776 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3778 esac
3779
3780
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787 depcc="$CC" am_compiler_list=
3788
3789 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3790 $as_echo_n "checking dependency style of $depcc... " >&6; }
3791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named `D' -- because `-MD' means `put the output
3799 # in D'.
3800 mkdir conftest.dir
3801 # Copy depcomp to subdir because otherwise we won't find it if we're
3802 # using a relative directory.
3803 cp "$am_depcomp" conftest.dir
3804 cd conftest.dir
3805 # We will build objects and dependencies in a subdirectory because
3806 # it helps to detect inapplicable dependency modes. For instance
3807 # both Tru64's cc and ICC support -MD to output dependencies as a
3808 # side effect of compilation, but ICC will put the dependencies in
3809 # the current directory while Tru64 will put them in the object
3810 # directory.
3811 mkdir sub
3812
3813 am_cv_CC_dependencies_compiler_type=none
3814 if test "$am_compiler_list" = ""; then
3815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816 fi
3817 for depmode in $am_compiler_list; do
3818 # Setup a source with many dependencies, because some compilers
3819 # like to wrap large dependency lists on column 80 (with \), and
3820 # we should not choose a depcomp mode which is confused by this.
3821 #
3822 # We need to recreate these files for each test, as the compiler may
3823 # overwrite some of them when testing with obscure command lines.
3824 # This happens at least with the AIX C compiler.
3825 : > sub/conftest.c
3826 for i in 1 2 3 4 5 6; do
3827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3828 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3829 # Solaris 8's {/usr,}/bin/sh.
3830 touch sub/conftst$i.h
3831 done
3832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833
3834 case $depmode in
3835 nosideeffect)
3836 # after this tag, mechanisms are not by side-effect, so they'll
3837 # only be used when explicitly requested
3838 if test "x$enable_dependency_tracking" = xyes; then
3839 continue
3840 else
3841 break
3842 fi
3843 ;;
3844 none) break ;;
3845 esac
3846 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3847 # mode. It turns out that the SunPro C++ compiler does not properly
3848 # handle `-M -o', and we need to detect this.
3849 if depmode=$depmode \
3850 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3851 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3852 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3853 >/dev/null 2>conftest.err &&
3854 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3857 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858 # icc doesn't choke on unknown options, it will just issue warnings
3859 # or remarks (even with -Werror). So we grep stderr for any message
3860 # that says an option was ignored or not supported.
3861 # When given -MP, icc 7.0 and 7.1 complain thusly:
3862 # icc: Command line warning: ignoring option '-M'; no argument required
3863 # The diagnosis changed in icc 8.0:
3864 # icc: Command line remark: option '-MP' not supported
3865 if (grep 'ignoring option' conftest.err ||
3866 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867 am_cv_CC_dependencies_compiler_type=$depmode
3868 break
3869 fi
3870 fi
3871 done
3872
3873 cd ..
3874 rm -rf conftest.dir
3875 else
3876 am_cv_CC_dependencies_compiler_type=none
3877 fi
3878
3879 fi
3880 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3881 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3882 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883
3884 if
3885 test "x$enable_dependency_tracking" != xno \
3886 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3887 am__fastdepCC_TRUE=
3888 am__fastdepCC_FALSE='#'
3889 else
3890 am__fastdepCC_TRUE='#'
3891 am__fastdepCC_FALSE=
3892 fi
3893
3894
3895 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3896 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3897 if test "${lt_cv_path_SED+set}" = set; then
3898 $as_echo_n "(cached) " >&6
3899 else
3900 # Loop through the user's path and test for sed and gsed.
3901 # Then use that list of sed's as ones to test for truncation.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for lt_ac_prog in sed gsed; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3910 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3911 fi
3912 done
3913 done
3914 done
3915 IFS=$as_save_IFS
3916 lt_ac_max=0
3917 lt_ac_count=0
3918 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3919 # along with /bin/sed that truncates output.
3920 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3921 test ! -f $lt_ac_sed && continue
3922 cat /dev/null > conftest.in
3923 lt_ac_count=0
3924 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3925 # Check for GNU sed and select it if it is found.
3926 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3927 lt_cv_path_SED=$lt_ac_sed
3928 break
3929 fi
3930 while true; do
3931 cat conftest.in conftest.in >conftest.tmp
3932 mv conftest.tmp conftest.in
3933 cp conftest.in conftest.nl
3934 echo >>conftest.nl
3935 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3936 cmp -s conftest.out conftest.nl || break
3937 # 10000 chars as input seems more than enough
3938 test $lt_ac_count -gt 10 && break
3939 lt_ac_count=`expr $lt_ac_count + 1`
3940 if test $lt_ac_count -gt $lt_ac_max; then
3941 lt_ac_max=$lt_ac_count
3942 lt_cv_path_SED=$lt_ac_sed
3943 fi
3944 done
3945 done
3946
3947 fi
3948
3949 SED=$lt_cv_path_SED
3950
3951 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3952 $as_echo "$SED" >&6; }
3953
3954 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3955 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3956 if test "${ac_cv_path_GREP+set}" = set; then
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -z "$GREP"; then
3960 ac_path_GREP_found=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in grep ggrep; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3971 # Check for GNU ac_path_GREP and select it if it is found.
3972 # Check for GNU $ac_path_GREP
3973 case `"$ac_path_GREP" --version 2>&1` in
3974 *GNU*)
3975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976 *)
3977 ac_count=0
3978 $as_echo_n 0123456789 >"conftest.in"
3979 while :
3980 do
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 $as_echo 'GREP' >> "conftest.nl"
3985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3987 ac_count=`expr $ac_count + 1`
3988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_GREP="$ac_path_GREP"
3991 ac_path_GREP_max=$ac_count
3992 fi
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3995 done
3996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997 esac
3998
3999 $ac_path_GREP_found && break 3
4000 done
4001 done
4002 done
4003 IFS=$as_save_IFS
4004 if test -z "$ac_cv_path_GREP"; then
4005 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4006 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4007 { (exit 1); exit 1; }; }
4008 fi
4009 else
4010 ac_cv_path_GREP=$GREP
4011 fi
4012
4013 fi
4014 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4015 $as_echo "$ac_cv_path_GREP" >&6; }
4016 GREP="$ac_cv_path_GREP"
4017
4018
4019 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4020 $as_echo_n "checking for egrep... " >&6; }
4021 if test "${ac_cv_path_EGREP+set}" = set; then
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4025 then ac_cv_path_EGREP="$GREP -E"
4026 else
4027 if test -z "$EGREP"; then
4028 ac_path_EGREP_found=false
4029 # Loop through the user's path and test for each of PROGNAME-LIST
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032 do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_prog in egrep; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4038 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4039 # Check for GNU ac_path_EGREP and select it if it is found.
4040 # Check for GNU $ac_path_EGREP
4041 case `"$ac_path_EGREP" --version 2>&1` in
4042 *GNU*)
4043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4044 *)
4045 ac_count=0
4046 $as_echo_n 0123456789 >"conftest.in"
4047 while :
4048 do
4049 cat "conftest.in" "conftest.in" >"conftest.tmp"
4050 mv "conftest.tmp" "conftest.in"
4051 cp "conftest.in" "conftest.nl"
4052 $as_echo 'EGREP' >> "conftest.nl"
4053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055 ac_count=`expr $ac_count + 1`
4056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4057 # Best one so far, save it but keep looking for a better one
4058 ac_cv_path_EGREP="$ac_path_EGREP"
4059 ac_path_EGREP_max=$ac_count
4060 fi
4061 # 10*(2^10) chars as input seems more than enough
4062 test $ac_count -gt 10 && break
4063 done
4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065 esac
4066
4067 $ac_path_EGREP_found && break 3
4068 done
4069 done
4070 done
4071 IFS=$as_save_IFS
4072 if test -z "$ac_cv_path_EGREP"; then
4073 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075 { (exit 1); exit 1; }; }
4076 fi
4077 else
4078 ac_cv_path_EGREP=$EGREP
4079 fi
4080
4081 fi
4082 fi
4083 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4084 $as_echo "$ac_cv_path_EGREP" >&6; }
4085 EGREP="$ac_cv_path_EGREP"
4086
4087
4088
4089 # Check whether --with-gnu-ld was given.
4090 if test "${with_gnu_ld+set}" = set; then
4091 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4092 else
4093 with_gnu_ld=no
4094 fi
4095
4096 ac_prog=ld
4097 if test "$GCC" = yes; then
4098 # Check if gcc -print-prog-name=ld gives a path.
4099 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4100 $as_echo_n "checking for ld used by $CC... " >&6; }
4101 case $host in
4102 *-*-mingw*)
4103 # gcc leaves a trailing carriage return which upsets mingw
4104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4105 *)
4106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4107 esac
4108 case $ac_prog in
4109 # Accept absolute paths.
4110 [\\/]* | ?:[\\/]*)
4111 re_direlt='/[^/][^/]*/\.\./'
4112 # Canonicalize the pathname of ld
4113 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4115 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4116 done
4117 test -z "$LD" && LD="$ac_prog"
4118 ;;
4119 "")
4120 # If it fails, then pretend we aren't using GCC.
4121 ac_prog=ld
4122 ;;
4123 *)
4124 # If it is relative, then search for the first ld in PATH.
4125 with_gnu_ld=unknown
4126 ;;
4127 esac
4128 elif test "$with_gnu_ld" = yes; then
4129 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4130 $as_echo_n "checking for GNU ld... " >&6; }
4131 else
4132 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4133 $as_echo_n "checking for non-GNU ld... " >&6; }
4134 fi
4135 if test "${lt_cv_path_LD+set}" = set; then
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -z "$LD"; then
4139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4140 for ac_dir in $PATH; do
4141 IFS="$lt_save_ifs"
4142 test -z "$ac_dir" && ac_dir=.
4143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4144 lt_cv_path_LD="$ac_dir/$ac_prog"
4145 # Check to see if the program is GNU ld. I'd rather use --version,
4146 # but apparently some variants of GNU ld only accept -v.
4147 # Break only if it was the GNU/non-GNU ld that we prefer.
4148 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4149 *GNU* | *'with BFD'*)
4150 test "$with_gnu_ld" != no && break
4151 ;;
4152 *)
4153 test "$with_gnu_ld" != yes && break
4154 ;;
4155 esac
4156 fi
4157 done
4158 IFS="$lt_save_ifs"
4159 else
4160 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4161 fi
4162 fi
4163
4164 LD="$lt_cv_path_LD"
4165 if test -n "$LD"; then
4166 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4167 $as_echo "$LD" >&6; }
4168 else
4169 { $as_echo "$as_me:$LINENO: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4173 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4174 { (exit 1); exit 1; }; }
4175 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4177 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4178 $as_echo_n "(cached) " >&6
4179 else
4180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4181 case `$LD -v 2>&1 </dev/null` in
4182 *GNU* | *'with BFD'*)
4183 lt_cv_prog_gnu_ld=yes
4184 ;;
4185 *)
4186 lt_cv_prog_gnu_ld=no
4187 ;;
4188 esac
4189 fi
4190 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4191 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4192 with_gnu_ld=$lt_cv_prog_gnu_ld
4193
4194
4195 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4196 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4197 if test "${lt_cv_ld_reload_flag+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4199 else
4200 lt_cv_ld_reload_flag='-r'
4201 fi
4202 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4203 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4204 reload_flag=$lt_cv_ld_reload_flag
4205 case $reload_flag in
4206 "" | " "*) ;;
4207 *) reload_flag=" $reload_flag" ;;
4208 esac
4209 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4210 case $host_os in
4211 darwin*)
4212 if test "$GCC" = yes; then
4213 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4214 else
4215 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4216 fi
4217 ;;
4218 esac
4219
4220 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4221 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4222 if test "${lt_cv_path_NM+set}" = set; then
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$NM"; then
4226 # Let the user override the test.
4227 lt_cv_path_NM="$NM"
4228 else
4229 lt_nm_to_check="${ac_tool_prefix}nm"
4230 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4231 lt_nm_to_check="$lt_nm_to_check nm"
4232 fi
4233 for lt_tmp_nm in $lt_nm_to_check; do
4234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4235 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4236 IFS="$lt_save_ifs"
4237 test -z "$ac_dir" && ac_dir=.
4238 tmp_nm="$ac_dir/$lt_tmp_nm"
4239 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4240 # Check to see if the nm accepts a BSD-compat flag.
4241 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242 # nm: unknown option "B" ignored
4243 # Tru64's nm complains that /dev/null is an invalid object file
4244 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4245 */dev/null* | *'Invalid file or object type'*)
4246 lt_cv_path_NM="$tmp_nm -B"
4247 break
4248 ;;
4249 *)
4250 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4251 */dev/null*)
4252 lt_cv_path_NM="$tmp_nm -p"
4253 break
4254 ;;
4255 *)
4256 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4257 continue # so that we can try to find one that supports BSD flags
4258 ;;
4259 esac
4260 ;;
4261 esac
4262 fi
4263 done
4264 IFS="$lt_save_ifs"
4265 done
4266 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4267 fi
4268 fi
4269 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4270 $as_echo "$lt_cv_path_NM" >&6; }
4271 NM="$lt_cv_path_NM"
4272
4273 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4274 $as_echo_n "checking whether ln -s works... " >&6; }
4275 LN_S=$as_ln_s
4276 if test "$LN_S" = "ln -s"; then
4277 { $as_echo "$as_me:$LINENO: result: yes" >&5
4278 $as_echo "yes" >&6; }
4279 else
4280 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4281 $as_echo "no, using $LN_S" >&6; }
4282 fi
4283
4284 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4285 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4286 if test "${lt_cv_deplibs_check_method+set}" = set; then
4287 $as_echo_n "(cached) " >&6
4288 else
4289 lt_cv_file_magic_cmd='$MAGIC_CMD'
4290 lt_cv_file_magic_test_file=
4291 lt_cv_deplibs_check_method='unknown'
4292 # Need to set the preceding variable on all platforms that support
4293 # interlibrary dependencies.
4294 # 'none' -- dependencies not supported.
4295 # `unknown' -- same as none, but documents that we really don't know.
4296 # 'pass_all' -- all dependencies passed with no checks.
4297 # 'test_compile' -- check by making test program.
4298 # 'file_magic [[regex]]' -- check by looking for files in library path
4299 # which responds to the $file_magic_cmd with a given extended regex.
4300 # If you have `file' or equivalent on your system and you're not sure
4301 # whether `pass_all' will *always* work, you probably want this one.
4302
4303 case $host_os in
4304 aix[4-9]*)
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308 beos*)
4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
4312 bsdi[45]*)
4313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4314 lt_cv_file_magic_cmd='/usr/bin/file -L'
4315 lt_cv_file_magic_test_file=/shlib/libc.so
4316 ;;
4317
4318 cygwin*)
4319 # func_win32_libid is a shell function defined in ltmain.sh
4320 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4321 lt_cv_file_magic_cmd='func_win32_libid'
4322 ;;
4323
4324 mingw* | pw32*)
4325 # Base MSYS/MinGW do not provide the 'file' command needed by
4326 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4327 # unless we find 'file', for example because we are cross-compiling.
4328 if ( file / ) >/dev/null 2>&1; then
4329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4330 lt_cv_file_magic_cmd='func_win32_libid'
4331 else
4332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4333 lt_cv_file_magic_cmd='$OBJDUMP -f'
4334 fi
4335 ;;
4336
4337 darwin* | rhapsody*)
4338 lt_cv_deplibs_check_method=pass_all
4339 ;;
4340
4341 freebsd* | dragonfly*)
4342 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4343 case $host_cpu in
4344 i*86 )
4345 # Not sure whether the presence of OpenBSD here was a mistake.
4346 # Let's accept both of them until this is cleared up.
4347 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4348 lt_cv_file_magic_cmd=/usr/bin/file
4349 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4350 ;;
4351 esac
4352 else
4353 lt_cv_deplibs_check_method=pass_all
4354 fi
4355 ;;
4356
4357 gnu*)
4358 lt_cv_deplibs_check_method=pass_all
4359 ;;
4360
4361 hpux10.20* | hpux11*)
4362 lt_cv_file_magic_cmd=/usr/bin/file
4363 case $host_cpu in
4364 ia64*)
4365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4366 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4367 ;;
4368 hppa*64*)
4369 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]'
4370 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4371 ;;
4372 *)
4373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4374 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4375 ;;
4376 esac
4377 ;;
4378
4379 interix[3-9]*)
4380 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4382 ;;
4383
4384 irix5* | irix6* | nonstopux*)
4385 case $LD in
4386 *-32|*"-32 ") libmagic=32-bit;;
4387 *-n32|*"-n32 ") libmagic=N32;;
4388 *-64|*"-64 ") libmagic=64-bit;;
4389 *) libmagic=never-match;;
4390 esac
4391 lt_cv_deplibs_check_method=pass_all
4392 ;;
4393
4394 # This must be Linux ELF.
4395 linux* | k*bsd*-gnu)
4396 lt_cv_deplibs_check_method=pass_all
4397 ;;
4398
4399 netbsd*)
4400 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4402 else
4403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4404 fi
4405 ;;
4406
4407 newos6*)
4408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4409 lt_cv_file_magic_cmd=/usr/bin/file
4410 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4411 ;;
4412
4413 nto-qnx*)
4414 lt_cv_deplibs_check_method=unknown
4415 ;;
4416
4417 openbsd*)
4418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4420 else
4421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4422 fi
4423 ;;
4424
4425 osf3* | osf4* | osf5*)
4426 lt_cv_deplibs_check_method=pass_all
4427 ;;
4428
4429 rdos*)
4430 lt_cv_deplibs_check_method=pass_all
4431 ;;
4432
4433 solaris*)
4434 lt_cv_deplibs_check_method=pass_all
4435 ;;
4436
4437 sysv4 | sysv4.3*)
4438 case $host_vendor in
4439 motorola)
4440 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]'
4441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4442 ;;
4443 ncr)
4444 lt_cv_deplibs_check_method=pass_all
4445 ;;
4446 sequent)
4447 lt_cv_file_magic_cmd='/bin/file'
4448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4449 ;;
4450 sni)
4451 lt_cv_file_magic_cmd='/bin/file'
4452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4453 lt_cv_file_magic_test_file=/lib/libc.so
4454 ;;
4455 siemens)
4456 lt_cv_deplibs_check_method=pass_all
4457 ;;
4458 pc)
4459 lt_cv_deplibs_check_method=pass_all
4460 ;;
4461 esac
4462 ;;
4463
4464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4465 lt_cv_deplibs_check_method=pass_all
4466 ;;
4467 esac
4468
4469 fi
4470 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4472 file_magic_cmd=$lt_cv_file_magic_cmd
4473 deplibs_check_method=$lt_cv_deplibs_check_method
4474 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4475
4476
4477
4478
4479 # If no C compiler was specified, use CC.
4480 LTCC=${LTCC-"$CC"}
4481
4482 # If no C compiler flags were specified, use CFLAGS.
4483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4484
4485 # Allow CC to be a program name with arguments.
4486 compiler=$CC
4487
4488
4489 # Check whether --enable-libtool-lock was given.
4490 if test "${enable_libtool_lock+set}" = set; then
4491 enableval=$enable_libtool_lock;
4492 fi
4493
4494 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4495
4496 # Some flags need to be propagated to the compiler or linker for good
4497 # libtool support.
4498 case $host in
4499 ia64-*-hpux*)
4500 # Find out which ABI we are using.
4501 echo 'int i;' > conftest.$ac_ext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; then
4507 case `/usr/bin/file conftest.$ac_objext` in
4508 *ELF-32*)
4509 HPUX_IA64_MODE="32"
4510 ;;
4511 *ELF-64*)
4512 HPUX_IA64_MODE="64"
4513 ;;
4514 esac
4515 fi
4516 rm -rf conftest*
4517 ;;
4518 *-*-irix6*)
4519 # Find out which ABI we are using.
4520 echo '#line 4520 "configure"' > conftest.$ac_ext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; then
4526 if test "$lt_cv_prog_gnu_ld" = yes; then
4527 case `/usr/bin/file conftest.$ac_objext` in
4528 *32-bit*)
4529 LD="${LD-ld} -melf32bsmip"
4530 ;;
4531 *N32*)
4532 LD="${LD-ld} -melf32bmipn32"
4533 ;;
4534 *64-bit*)
4535 LD="${LD-ld} -melf64bmip"
4536 ;;
4537 esac
4538 else
4539 case `/usr/bin/file conftest.$ac_objext` in
4540 *32-bit*)
4541 LD="${LD-ld} -32"
4542 ;;
4543 *N32*)
4544 LD="${LD-ld} -n32"
4545 ;;
4546 *64-bit*)
4547 LD="${LD-ld} -64"
4548 ;;
4549 esac
4550 fi
4551 fi
4552 rm -rf conftest*
4553 ;;
4554
4555 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4556 s390*-*linux*|sparc*-*linux*)
4557 # Find out which ABI we are using.
4558 echo 'int i;' > conftest.$ac_ext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; then
4564 case `/usr/bin/file conftest.o` in
4565 *32-bit*)
4566 case $host in
4567 x86_64-*kfreebsd*-gnu)
4568 LD="${LD-ld} -m elf_i386_fbsd"
4569 ;;
4570 x86_64-*linux*)
4571 LD="${LD-ld} -m elf_i386"
4572 ;;
4573 ppc64-*linux*|powerpc64-*linux*)
4574 LD="${LD-ld} -m elf32ppclinux"
4575 ;;
4576 s390x-*linux*)
4577 LD="${LD-ld} -m elf_s390"
4578 ;;
4579 sparc64-*linux*)
4580 LD="${LD-ld} -m elf32_sparc"
4581 ;;
4582 esac
4583 ;;
4584 *64-bit*)
4585 case $host in
4586 x86_64-*kfreebsd*-gnu)
4587 LD="${LD-ld} -m elf_x86_64_fbsd"
4588 ;;
4589 x86_64-*linux*)
4590 LD="${LD-ld} -m elf_x86_64"
4591 ;;
4592 ppc*-*linux*|powerpc*-*linux*)
4593 LD="${LD-ld} -m elf64ppc"
4594 ;;
4595 s390*-*linux*)
4596 LD="${LD-ld} -m elf64_s390"
4597 ;;
4598 sparc*-*linux*)
4599 LD="${LD-ld} -m elf64_sparc"
4600 ;;
4601 esac
4602 ;;
4603 esac
4604 fi
4605 rm -rf conftest*
4606 ;;
4607
4608 *-*-sco3.2v5*)
4609 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4610 SAVE_CFLAGS="$CFLAGS"
4611 CFLAGS="$CFLAGS -belf"
4612 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4613 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4614 if test "${lt_cv_cc_needs_belf+set}" = set; then
4615 $as_echo_n "(cached) " >&6
4616 else
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629
4630 int
4631 main ()
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 rm -f conftest.$ac_objext conftest$ac_exeext
4639 if { (ac_try="$ac_link"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4645 $as_echo "$ac_try_echo") >&5
4646 (eval "$ac_link") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest$ac_exeext && {
4656 test "$cross_compiling" = yes ||
4657 $as_test_x conftest$ac_exeext
4658 }; then
4659 lt_cv_cc_needs_belf=yes
4660 else
4661 $as_echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 lt_cv_cc_needs_belf=no
4665 fi
4666
4667 rm -rf conftest.dSYM
4668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4669 conftest$ac_exeext conftest.$ac_ext
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676 fi
4677 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4678 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4679 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4681 CFLAGS="$SAVE_CFLAGS"
4682 fi
4683 ;;
4684 sparc*-*solaris*)
4685 # Find out which ABI we are using.
4686 echo 'int i;' > conftest.$ac_ext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>&5
4689 ac_status=$?
4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; then
4692 case `/usr/bin/file conftest.o` in
4693 *64-bit*)
4694 case $lt_cv_prog_gnu_ld in
4695 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4696 *)
4697 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4698 LD="${LD-ld} -64"
4699 fi
4700 ;;
4701 esac
4702 ;;
4703 esac
4704 fi
4705 rm -rf conftest*
4706 ;;
4707
4708
4709 esac
4710
4711 need_locks="$enable_libtool_lock"
4712
4713
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4720 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4721 # On Suns, sometimes $CPP names a directory.
4722 if test -n "$CPP" && test -d "$CPP"; then
4723 CPP=
4724 fi
4725 if test -z "$CPP"; then
4726 if test "${ac_cv_prog_CPP+set}" = set; then
4727 $as_echo_n "(cached) " >&6
4728 else
4729 # Double quotes because CPP needs to be expanded
4730 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4731 do
4732 ac_preproc_ok=false
4733 for ac_c_preproc_warn_flag in '' yes
4734 do
4735 # Use a header file that comes with gcc, so configuring glibc
4736 # with a fresh cross-compiler works.
4737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738 # <limits.h> exists even on freestanding compilers.
4739 # On the NeXT, cc -E runs the code through the compiler's parser,
4740 # not just through cpp. "Syntax error" is here to catch this case.
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h. */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #ifdef __STDC__
4748 # include <limits.h>
4749 #else
4750 # include <assert.h>
4751 #endif
4752 Syntax error
4753 _ACEOF
4754 if { (ac_try="$ac_cpp conftest.$ac_ext"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null && {
4768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 }; then
4771 :
4772 else
4773 $as_echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776 # Broken: fails on valid input.
4777 continue
4778 fi
4779
4780 rm -f conftest.err conftest.$ac_ext
4781
4782 # OK, works on sane cases. Now check whether nonexistent headers
4783 # can be detected and how.
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <ac_nonexistent.h>
4791 _ACEOF
4792 if { (ac_try="$ac_cpp conftest.$ac_ext"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4798 $as_echo "$ac_try_echo") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev/null && {
4806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 }; then
4809 # Broken: success on invalid input.
4810 continue
4811 else
4812 $as_echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 # Passes both tests.
4816 ac_preproc_ok=:
4817 break
4818 fi
4819
4820 rm -f conftest.err conftest.$ac_ext
4821
4822 done
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then
4826 break
4827 fi
4828
4829 done
4830 ac_cv_prog_CPP=$CPP
4831
4832 fi
4833 CPP=$ac_cv_prog_CPP
4834 else
4835 ac_cv_prog_CPP=$CPP
4836 fi
4837 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4838 $as_echo "$CPP" >&6; }
4839 ac_preproc_ok=false
4840 for ac_c_preproc_warn_flag in '' yes
4841 do
4842 # Use a header file that comes with gcc, so configuring glibc
4843 # with a fresh cross-compiler works.
4844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845 # <limits.h> exists even on freestanding compilers.
4846 # On the NeXT, cc -E runs the code through the compiler's parser,
4847 # not just through cpp. "Syntax error" is here to catch this case.
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #ifdef __STDC__
4855 # include <limits.h>
4856 #else
4857 # include <assert.h>
4858 #endif
4859 Syntax error
4860 _ACEOF
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 }; then
4878 :
4879 else
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 # Broken: fails on valid input.
4884 continue
4885 fi
4886
4887 rm -f conftest.err conftest.$ac_ext
4888
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4898 _ACEOF
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4905 $as_echo "$ac_try_echo") >&5
4906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } >/dev/null && {
4913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 }; then
4916 # Broken: success on invalid input.
4917 continue
4918 else
4919 $as_echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 # Passes both tests.
4923 ac_preproc_ok=:
4924 break
4925 fi
4926
4927 rm -f conftest.err conftest.$ac_ext
4928
4929 done
4930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931 rm -f conftest.err conftest.$ac_ext
4932 if $ac_preproc_ok; then
4933 :
4934 else
4935 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4937 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4938 See \`config.log' for more details." >&5
4939 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4940 See \`config.log' for more details." >&2;}
4941 { (exit 1); exit 1; }; }; }
4942 fi
4943
4944 ac_ext=c
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
4950
4951 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4952 $as_echo_n "checking for ANSI C header files... " >&6; }
4953 if test "${ac_cv_header_stdc+set}" = set; then
4954 $as_echo_n "(cached) " >&6
4955 else
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <stdlib.h>
4963 #include <stdarg.h>
4964 #include <string.h>
4965 #include <float.h>
4966
4967 int
4968 main ()
4969 {
4970
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982 $as_echo "$ac_try_echo") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4993 ac_cv_header_stdc=yes
4994 else
4995 $as_echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 ac_cv_header_stdc=no
4999 fi
5000
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002
5003 if test $ac_cv_header_stdc = yes; then
5004 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 #include <string.h>
5012
5013 _ACEOF
5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015 $EGREP "memchr" >/dev/null 2>&1; then
5016 :
5017 else
5018 ac_cv_header_stdc=no
5019 fi
5020 rm -f conftest*
5021
5022 fi
5023
5024 if test $ac_cv_header_stdc = yes; then
5025 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 #include <stdlib.h>
5033
5034 _ACEOF
5035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5036 $EGREP "free" >/dev/null 2>&1; then
5037 :
5038 else
5039 ac_cv_header_stdc=no
5040 fi
5041 rm -f conftest*
5042
5043 fi
5044
5045 if test $ac_cv_header_stdc = yes; then
5046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5047 if test "$cross_compiling" = yes; then
5048 :
5049 else
5050 cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h. */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <ctype.h>
5057 #include <stdlib.h>
5058 #if ((' ' & 0x0FF) == 0x020)
5059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5061 #else
5062 # define ISLOWER(c) \
5063 (('a' <= (c) && (c) <= 'i') \
5064 || ('j' <= (c) && (c) <= 'r') \
5065 || ('s' <= (c) && (c) <= 'z'))
5066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5067 #endif
5068
5069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5070 int
5071 main ()
5072 {
5073 int i;
5074 for (i = 0; i < 256; i++)
5075 if (XOR (islower (i), ISLOWER (i))
5076 || toupper (i) != TOUPPER (i))
5077 return 2;
5078 return 0;
5079 }
5080 _ACEOF
5081 rm -f conftest$ac_exeext
5082 if { (ac_try="$ac_link"
5083 case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5088 $as_echo "$ac_try_echo") >&5
5089 (eval "$ac_link") 2>&5
5090 ac_status=$?
5091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093 { (case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_try") 2>&5
5100 ac_status=$?
5101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 :
5104 else
5105 $as_echo "$as_me: program exited with status $ac_status" >&5
5106 $as_echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5108
5109 ( exit $ac_status )
5110 ac_cv_header_stdc=no
5111 fi
5112 rm -rf conftest.dSYM
5113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5114 fi
5115
5116
5117 fi
5118 fi
5119 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5120 $as_echo "$ac_cv_header_stdc" >&6; }
5121 if test $ac_cv_header_stdc = yes; then
5122
5123 cat >>confdefs.h <<\_ACEOF
5124 #define STDC_HEADERS 1
5125 _ACEOF
5126
5127 fi
5128
5129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5140 inttypes.h stdint.h unistd.h
5141 do
5142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5144 $as_echo_n "checking for $ac_header... " >&6; }
5145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155
5156 #include <$ac_header>
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5165 $as_echo "$ac_try_echo") >&5
5166 (eval "$ac_compile") 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest.$ac_objext; then
5176 eval "$as_ac_Header=yes"
5177 else
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 eval "$as_ac_Header=no"
5182 fi
5183
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 ac_res=`eval 'as_val=${'$as_ac_Header'}
5187 $as_echo "$as_val"'`
5188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5189 $as_echo "$ac_res" >&6; }
5190 as_val=`eval 'as_val=${'$as_ac_Header'}
5191 $as_echo "$as_val"'`
5192 if test "x$as_val" = x""yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 _ACEOF
5196
5197 fi
5198
5199 done
5200
5201
5202
5203 for ac_header in dlfcn.h
5204 do
5205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 $as_echo_n "checking for $ac_header... " >&6; }
5209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210 $as_echo_n "(cached) " >&6
5211 fi
5212 ac_res=`eval 'as_val=${'$as_ac_Header'}
5213 $as_echo "$as_val"'`
5214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5215 $as_echo "$ac_res" >&6; }
5216 else
5217 # Is the header compilable?
5218 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5219 $as_echo_n "checking $ac_header usability... " >&6; }
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5227 #include <$ac_header>
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (ac_try="$ac_compile"
5231 case "(($ac_try" in
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5234 esac
5235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5236 $as_echo "$ac_try_echo") >&5
5237 (eval "$ac_compile") 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest.$ac_objext; then
5247 ac_header_compiler=yes
5248 else
5249 $as_echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 ac_header_compiler=no
5253 fi
5254
5255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5257 $as_echo "$ac_header_compiler" >&6; }
5258
5259 # Is the header present?
5260 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5261 $as_echo_n "checking $ac_header presence... " >&6; }
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 #include <$ac_header>
5269 _ACEOF
5270 if { (ac_try="$ac_cpp conftest.$ac_ext"
5271 case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5274 esac
5275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5276 $as_echo "$ac_try_echo") >&5
5277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5278 ac_status=$?
5279 grep -v '^ *+' conftest.er1 >conftest.err
5280 rm -f conftest.er1
5281 cat conftest.err >&5
5282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } >/dev/null && {
5284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 }; then
5287 ac_header_preproc=yes
5288 else
5289 $as_echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 ac_header_preproc=no
5293 fi
5294
5295 rm -f conftest.err conftest.$ac_ext
5296 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5297 $as_echo "$ac_header_preproc" >&6; }
5298
5299 # So? What about this header?
5300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5301 yes:no: )
5302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5303 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5306 ac_header_preproc=yes
5307 ;;
5308 no:yes:* )
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5314 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5316 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5320 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5321 ( cat <<\_ASBOX
5322 ## ---------------------------------------------------------------------- ##
5323 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5324 ## ---------------------------------------------------------------------- ##
5325 _ASBOX
5326 ) | sed "s/^/$as_me: WARNING: /" >&2
5327 ;;
5328 esac
5329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5330 $as_echo_n "checking for $ac_header... " >&6; }
5331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5332 $as_echo_n "(cached) " >&6
5333 else
5334 eval "$as_ac_Header=\$ac_header_preproc"
5335 fi
5336 ac_res=`eval 'as_val=${'$as_ac_Header'}
5337 $as_echo "$as_val"'`
5338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5339 $as_echo "$ac_res" >&6; }
5340
5341 fi
5342 as_val=`eval 'as_val=${'$as_ac_Header'}
5343 $as_echo "$as_val"'`
5344 if test "x$as_val" = x""yes; then
5345 cat >>confdefs.h <<_ACEOF
5346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347 _ACEOF
5348
5349 fi
5350
5351 done
5352
5353 ac_ext=cpp
5354 ac_cpp='$CXXCPP $CPPFLAGS'
5355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5358 if test -z "$CXX"; then
5359 if test -n "$CCC"; then
5360 CXX=$CCC
5361 else
5362 if test -n "$ac_tool_prefix"; then
5363 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5364 do
5365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_prog_CXX+set}" = set; then
5370 $as_echo_n "(cached) " >&6
5371 else
5372 if test -n "$CXX"; then
5373 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5385 fi
5386 done
5387 done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 CXX=$ac_cv_prog_CXX
5393 if test -n "$CXX"; then
5394 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5395 $as_echo "$CXX" >&6; }
5396 else
5397 { $as_echo "$as_me:$LINENO: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401
5402 test -n "$CXX" && break
5403 done
5404 fi
5405 if test -z "$CXX"; then
5406 ac_ct_CXX=$CXX
5407 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5408 do
5409 # Extract the first word of "$ac_prog", so it can be a program name with args.
5410 set dummy $ac_prog; ac_word=$2
5411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$ac_ct_CXX"; then
5417 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_prog_ac_ct_CXX="$ac_prog"
5427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5437 if test -n "$ac_ct_CXX"; then
5438 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5439 $as_echo "$ac_ct_CXX" >&6; }
5440 else
5441 { $as_echo "$as_me:$LINENO: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 test -n "$ac_ct_CXX" && break
5447 done
5448
5449 if test "x$ac_ct_CXX" = x; then
5450 CXX="g++"
5451 else
5452 case $cross_compiling:$ac_tool_warned in
5453 yes:)
5454 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456 ac_tool_warned=yes ;;
5457 esac
5458 CXX=$ac_ct_CXX
5459 fi
5460 fi
5461
5462 fi
5463 fi
5464 # Provide some information about the compiler.
5465 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5466 set X $ac_compile
5467 ac_compiler=$2
5468 { (ac_try="$ac_compiler --version >&5"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5474 $as_echo "$ac_try_echo") >&5
5475 (eval "$ac_compiler --version >&5") 2>&5
5476 ac_status=$?
5477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }
5479 { (ac_try="$ac_compiler -v >&5"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485 $as_echo "$ac_try_echo") >&5
5486 (eval "$ac_compiler -v >&5") 2>&5
5487 ac_status=$?
5488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }
5490 { (ac_try="$ac_compiler -V >&5"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5496 $as_echo "$ac_try_echo") >&5
5497 (eval "$ac_compiler -V >&5") 2>&5
5498 ac_status=$?
5499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }
5501
5502 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5503 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5504 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5505 $as_echo_n "(cached) " >&6
5506 else
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513
5514 int
5515 main ()
5516 {
5517 #ifndef __GNUC__
5518 choke me
5519 #endif
5520
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532 $as_echo "$ac_try_echo") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_cxx_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 ac_compiler_gnu=yes
5544 else
5545 $as_echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_compiler_gnu=no
5549 fi
5550
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5553
5554 fi
5555 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5557 if test $ac_compiler_gnu = yes; then
5558 GXX=yes
5559 else
5560 GXX=
5561 fi
5562 ac_test_CXXFLAGS=${CXXFLAGS+set}
5563 ac_save_CXXFLAGS=$CXXFLAGS
5564 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5566 if test "${ac_cv_prog_cxx_g+set}" = set; then
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5570 ac_cxx_werror_flag=yes
5571 ac_cv_prog_cxx_g=no
5572 CXXFLAGS="-g"
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595 $as_echo "$ac_try_echo") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && {
5603 test -z "$ac_cxx_werror_flag" ||
5604 test ! -s conftest.err
5605 } && test -s conftest.$ac_objext; then
5606 ac_cv_prog_cxx_g=yes
5607 else
5608 $as_echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 CXXFLAGS=""
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618
5619 int
5620 main ()
5621 {
5622
5623 ;
5624 return 0;
5625 }
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5634 $as_echo "$ac_try_echo") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_cxx_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5645 :
5646 else
5647 $as_echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5651 CXXFLAGS="-g"
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658
5659 int
5660 main ()
5661 {
5662
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5674 $as_echo "$ac_try_echo") >&5
5675 (eval "$ac_compile") 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } && {
5682 test -z "$ac_cxx_werror_flag" ||
5683 test ! -s conftest.err
5684 } && test -s conftest.$ac_objext; then
5685 ac_cv_prog_cxx_g=yes
5686 else
5687 $as_echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690
5691 fi
5692
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5701 fi
5702 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5703 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5704 if test "$ac_test_CXXFLAGS" = set; then
5705 CXXFLAGS=$ac_save_CXXFLAGS
5706 elif test $ac_cv_prog_cxx_g = yes; then
5707 if test "$GXX" = yes; then
5708 CXXFLAGS="-g -O2"
5709 else
5710 CXXFLAGS="-g"
5711 fi
5712 else
5713 if test "$GXX" = yes; then
5714 CXXFLAGS="-O2"
5715 else
5716 CXXFLAGS=
5717 fi
5718 fi
5719 ac_ext=cpp
5720 ac_cpp='$CXXCPP $CPPFLAGS'
5721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5724
5725 depcc="$CXX" am_compiler_list=
5726
5727 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5728 $as_echo_n "checking dependency style of $depcc... " >&6; }
5729 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5730 $as_echo_n "(cached) " >&6
5731 else
5732 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5733 # We make a subdir and do the tests there. Otherwise we can end up
5734 # making bogus files that we don't know about and never remove. For
5735 # instance it was reported that on HP-UX the gcc test will end up
5736 # making a dummy file named `D' -- because `-MD' means `put the output
5737 # in D'.
5738 mkdir conftest.dir
5739 # Copy depcomp to subdir because otherwise we won't find it if we're
5740 # using a relative directory.
5741 cp "$am_depcomp" conftest.dir
5742 cd conftest.dir
5743 # We will build objects and dependencies in a subdirectory because
5744 # it helps to detect inapplicable dependency modes. For instance
5745 # both Tru64's cc and ICC support -MD to output dependencies as a
5746 # side effect of compilation, but ICC will put the dependencies in
5747 # the current directory while Tru64 will put them in the object
5748 # directory.
5749 mkdir sub
5750
5751 am_cv_CXX_dependencies_compiler_type=none
5752 if test "$am_compiler_list" = ""; then
5753 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5754 fi
5755 for depmode in $am_compiler_list; do
5756 # Setup a source with many dependencies, because some compilers
5757 # like to wrap large dependency lists on column 80 (with \), and
5758 # we should not choose a depcomp mode which is confused by this.
5759 #
5760 # We need to recreate these files for each test, as the compiler may
5761 # overwrite some of them when testing with obscure command lines.
5762 # This happens at least with the AIX C compiler.
5763 : > sub/conftest.c
5764 for i in 1 2 3 4 5 6; do
5765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5766 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5767 # Solaris 8's {/usr,}/bin/sh.
5768 touch sub/conftst$i.h
5769 done
5770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5771
5772 case $depmode in
5773 nosideeffect)
5774 # after this tag, mechanisms are not by side-effect, so they'll
5775 # only be used when explicitly requested
5776 if test "x$enable_dependency_tracking" = xyes; then
5777 continue
5778 else
5779 break
5780 fi
5781 ;;
5782 none) break ;;
5783 esac
5784 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5785 # mode. It turns out that the SunPro C++ compiler does not properly
5786 # handle `-M -o', and we need to detect this.
5787 if depmode=$depmode \
5788 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5790 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5791 >/dev/null 2>conftest.err &&
5792 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5794 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5796 # icc doesn't choke on unknown options, it will just issue warnings
5797 # or remarks (even with -Werror). So we grep stderr for any message
5798 # that says an option was ignored or not supported.
5799 # When given -MP, icc 7.0 and 7.1 complain thusly:
5800 # icc: Command line warning: ignoring option '-M'; no argument required
5801 # The diagnosis changed in icc 8.0:
5802 # icc: Command line remark: option '-MP' not supported
5803 if (grep 'ignoring option' conftest.err ||
5804 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5805 am_cv_CXX_dependencies_compiler_type=$depmode
5806 break
5807 fi
5808 fi
5809 done
5810
5811 cd ..
5812 rm -rf conftest.dir
5813 else
5814 am_cv_CXX_dependencies_compiler_type=none
5815 fi
5816
5817 fi
5818 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5819 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5820 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5821
5822 if
5823 test "x$enable_dependency_tracking" != xno \
5824 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5825 am__fastdepCXX_TRUE=
5826 am__fastdepCXX_FALSE='#'
5827 else
5828 am__fastdepCXX_TRUE='#'
5829 am__fastdepCXX_FALSE=
5830 fi
5831
5832
5833
5834
5835 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5836 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5837 (test "X$CXX" != "Xg++"))) ; then
5838 ac_ext=cpp
5839 ac_cpp='$CXXCPP $CPPFLAGS'
5840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5843 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5844 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5845 if test -z "$CXXCPP"; then
5846 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5847 $as_echo_n "(cached) " >&6
5848 else
5849 # Double quotes because CXXCPP needs to be expanded
5850 for CXXCPP in "$CXX -E" "/lib/cpp"
5851 do
5852 ac_preproc_ok=false
5853 for ac_cxx_preproc_warn_flag in '' yes
5854 do
5855 # Use a header file that comes with gcc, so configuring glibc
5856 # with a fresh cross-compiler works.
5857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5858 # <limits.h> exists even on freestanding compilers.
5859 # On the NeXT, cc -E runs the code through the compiler's parser,
5860 # not just through cpp. "Syntax error" is here to catch this case.
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #ifdef __STDC__
5868 # include <limits.h>
5869 #else
5870 # include <assert.h>
5871 #endif
5872 Syntax error
5873 _ACEOF
5874 if { (ac_try="$ac_cpp conftest.$ac_ext"
5875 case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878 esac
5879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880 $as_echo "$ac_try_echo") >&5
5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null && {
5888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5889 test ! -s conftest.err
5890 }; then
5891 :
5892 else
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896 # Broken: fails on valid input.
5897 continue
5898 fi
5899
5900 rm -f conftest.err conftest.$ac_ext
5901
5902 # OK, works on sane cases. Now check whether nonexistent headers
5903 # can be detected and how.
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 #include <ac_nonexistent.h>
5911 _ACEOF
5912 if { (ac_try="$ac_cpp conftest.$ac_ext"
5913 case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5918 $as_echo "$ac_try_echo") >&5
5919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } >/dev/null && {
5926 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5927 test ! -s conftest.err
5928 }; then
5929 # Broken: success on invalid input.
5930 continue
5931 else
5932 $as_echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 # Passes both tests.
5936 ac_preproc_ok=:
5937 break
5938 fi
5939
5940 rm -f conftest.err conftest.$ac_ext
5941
5942 done
5943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5944 rm -f conftest.err conftest.$ac_ext
5945 if $ac_preproc_ok; then
5946 break
5947 fi
5948
5949 done
5950 ac_cv_prog_CXXCPP=$CXXCPP
5951
5952 fi
5953 CXXCPP=$ac_cv_prog_CXXCPP
5954 else
5955 ac_cv_prog_CXXCPP=$CXXCPP
5956 fi
5957 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5958 $as_echo "$CXXCPP" >&6; }
5959 ac_preproc_ok=false
5960 for ac_cxx_preproc_warn_flag in '' yes
5961 do
5962 # Use a header file that comes with gcc, so configuring glibc
5963 # with a fresh cross-compiler works.
5964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965 # <limits.h> exists even on freestanding compilers.
5966 # On the NeXT, cc -E runs the code through the compiler's parser,
5967 # not just through cpp. "Syntax error" is here to catch this case.
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #ifdef __STDC__
5975 # include <limits.h>
5976 #else
5977 # include <assert.h>
5978 #endif
5979 Syntax error
5980 _ACEOF
5981 if { (ac_try="$ac_cpp conftest.$ac_ext"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null && {
5995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996 test ! -s conftest.err
5997 }; then
5998 :
5999 else
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 # Broken: fails on valid input.
6004 continue
6005 fi
6006
6007 rm -f conftest.err conftest.$ac_ext
6008
6009 # OK, works on sane cases. Now check whether nonexistent headers
6010 # can be detected and how.
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <ac_nonexistent.h>
6018 _ACEOF
6019 if { (ac_try="$ac_cpp conftest.$ac_ext"
6020 case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023 esac
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } >/dev/null && {
6033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6034 test ! -s conftest.err
6035 }; then
6036 # Broken: success on invalid input.
6037 continue
6038 else
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 # Passes both tests.
6043 ac_preproc_ok=:
6044 break
6045 fi
6046
6047 rm -f conftest.err conftest.$ac_ext
6048
6049 done
6050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6051 rm -f conftest.err conftest.$ac_ext
6052 if $ac_preproc_ok; then
6053 :
6054 else
6055 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6057 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6058 See \`config.log' for more details." >&5
6059 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6060 See \`config.log' for more details." >&2;}
6061 { (exit 1); exit 1; }; }; }
6062 fi
6063
6064 ac_ext=cpp
6065 ac_cpp='$CXXCPP $CPPFLAGS'
6066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6069
6070 fi
6071
6072
6073 ac_ext=f
6074 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6075 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6077 if test -n "$ac_tool_prefix"; then
6078 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
6079 do
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if test "${ac_cv_prog_F77+set}" = set; then
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if test -n "$F77"; then
6088 ac_cv_prog_F77="$F77" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 F77=$ac_cv_prog_F77
6108 if test -n "$F77"; then
6109 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6110 $as_echo "$F77" >&6; }
6111 else
6112 { $as_echo "$as_me:$LINENO: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116
6117 test -n "$F77" && break
6118 done
6119 fi
6120 if test -z "$F77"; then
6121 ac_ct_F77=$F77
6122 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
6123 do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -n "$ac_ct_F77"; then
6132 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_ac_ct_F77="$ac_prog"
6142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6152 if test -n "$ac_ct_F77"; then
6153 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6154 $as_echo "$ac_ct_F77" >&6; }
6155 else
6156 { $as_echo "$as_me:$LINENO: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 test -n "$ac_ct_F77" && break
6162 done
6163
6164 if test "x$ac_ct_F77" = x; then
6165 F77=""
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 F77=$ac_ct_F77
6174 fi
6175 fi
6176
6177
6178 # Provide some information about the compiler.
6179 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6180 set X $ac_compile
6181 ac_compiler=$2
6182 { (ac_try="$ac_compiler --version >&5"
6183 case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188 $as_echo "$ac_try_echo") >&5
6189 (eval "$ac_compiler --version >&5") 2>&5
6190 ac_status=$?
6191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }
6193 { (ac_try="$ac_compiler -v >&5"
6194 case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197 esac
6198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6199 $as_echo "$ac_try_echo") >&5
6200 (eval "$ac_compiler -v >&5") 2>&5
6201 ac_status=$?
6202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }
6204 { (ac_try="$ac_compiler -V >&5"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_compiler -V >&5") 2>&5
6212 ac_status=$?
6213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }
6215 rm -f a.out
6216
6217 # If we don't use `.F' as extension, the preprocessor is not run on the
6218 # input file. (Note that this only needs to work for GNU compilers.)
6219 ac_save_ext=$ac_ext
6220 ac_ext=F
6221 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6222 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6223 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat >conftest.$ac_ext <<_ACEOF
6227 program main
6228 #ifndef __GNUC__
6229 choke me
6230 #endif
6231
6232 end
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6241 $as_echo "$ac_try_echo") >&5
6242 (eval "$ac_compile") 2>conftest.er1
6243 ac_status=$?
6244 grep -v '^ *+' conftest.er1 >conftest.err
6245 rm -f conftest.er1
6246 cat conftest.err >&5
6247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } && {
6249 test -z "$ac_f77_werror_flag" ||
6250 test ! -s conftest.err
6251 } && test -s conftest.$ac_objext; then
6252 ac_compiler_gnu=yes
6253 else
6254 $as_echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_compiler_gnu=no
6258 fi
6259
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6262
6263 fi
6264 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6265 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6266 ac_ext=$ac_save_ext
6267 ac_test_FFLAGS=${FFLAGS+set}
6268 ac_save_FFLAGS=$FFLAGS
6269 FFLAGS=
6270 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6271 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6272 if test "${ac_cv_prog_f77_g+set}" = set; then
6273 $as_echo_n "(cached) " >&6
6274 else
6275 FFLAGS=-g
6276 cat >conftest.$ac_ext <<_ACEOF
6277 program main
6278
6279 end
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6283 case "(($ac_try" in
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6286 esac
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_f77_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
6299 ac_cv_prog_f77_g=yes
6300 else
6301 $as_echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_cv_prog_f77_g=no
6305 fi
6306
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309 fi
6310 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6311 $as_echo "$ac_cv_prog_f77_g" >&6; }
6312 if test "$ac_test_FFLAGS" = set; then
6313 FFLAGS=$ac_save_FFLAGS
6314 elif test $ac_cv_prog_f77_g = yes; then
6315 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6316 FFLAGS="-g -O2"
6317 else
6318 FFLAGS="-g"
6319 fi
6320 else
6321 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6322 FFLAGS="-O2"
6323 else
6324 FFLAGS=
6325 fi
6326 fi
6327
6328 if test $ac_compiler_gnu = yes; then
6329 G77=yes
6330 else
6331 G77=
6332 fi
6333 ac_ext=c
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339
6340
6341 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6342 # find the maximum length of command line arguments
6343 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6344 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6345 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6347 else
6348 i=0
6349 teststring="ABCD"
6350
6351 case $build_os in
6352 msdosdjgpp*)
6353 # On DJGPP, this test can blow up pretty badly due to problems in libc
6354 # (any single argument exceeding 2000 bytes causes a buffer overrun
6355 # during glob expansion). Even if it were fixed, the result of this
6356 # check would be larger than it should be.
6357 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6358 ;;
6359
6360 gnu*)
6361 # Under GNU Hurd, this test is not required because there is
6362 # no limit to the length of command line arguments.
6363 # Libtool will interpret -1 as no limit whatsoever
6364 lt_cv_sys_max_cmd_len=-1;
6365 ;;
6366
6367 cygwin* | mingw*)
6368 # On Win9x/ME, this test blows up -- it succeeds, but takes
6369 # about 5 minutes as the teststring grows exponentially.
6370 # Worse, since 9x/ME are not pre-emptively multitasking,
6371 # you end up with a "frozen" computer, even though with patience
6372 # the test eventually succeeds (with a max line length of 256k).
6373 # Instead, let's just punt: use the minimum linelength reported by
6374 # all of the supported platforms: 8192 (on NT/2K/XP).
6375 lt_cv_sys_max_cmd_len=8192;
6376 ;;
6377
6378 amigaos*)
6379 # On AmigaOS with pdksh, this test takes hours, literally.
6380 # So we just punt and use a minimum line length of 8192.
6381 lt_cv_sys_max_cmd_len=8192;
6382 ;;
6383
6384 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6385 # This has been around since 386BSD, at least. Likely further.
6386 if test -x /sbin/sysctl; then
6387 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6388 elif test -x /usr/sbin/sysctl; then
6389 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6390 else
6391 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6392 fi
6393 # And add a safety zone
6394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6396 ;;
6397
6398 interix*)
6399 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6400 lt_cv_sys_max_cmd_len=196608
6401 ;;
6402
6403 osf*)
6404 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6405 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6406 # nice to cause kernel panics so lets avoid the loop below.
6407 # First set a reasonable default.
6408 lt_cv_sys_max_cmd_len=16384
6409 #
6410 if test -x /sbin/sysconfig; then
6411 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6412 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6413 esac
6414 fi
6415 ;;
6416 sco3.2v5*)
6417 lt_cv_sys_max_cmd_len=102400
6418 ;;
6419 sysv5* | sco5v6* | sysv4.2uw2*)
6420 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6421 if test -n "$kargmax"; then
6422 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6423 else
6424 lt_cv_sys_max_cmd_len=32768
6425 fi
6426 ;;
6427 *)
6428 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6429 if test -n "$lt_cv_sys_max_cmd_len"; then
6430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6432 else
6433 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6434 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6435 = "XX$teststring") >/dev/null 2>&1 &&
6436 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6437 lt_cv_sys_max_cmd_len=$new_result &&
6438 test $i != 17 # 1/2 MB should be enough
6439 do
6440 i=`expr $i + 1`
6441 teststring=$teststring$teststring
6442 done
6443 teststring=
6444 # Add a significant safety factor because C++ compilers can tack on massive
6445 # amounts of additional arguments before passing them to the linker.
6446 # It appears as though 1/2 is a usable value.
6447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6448 fi
6449 ;;
6450 esac
6451
6452 fi
6453
6454 if test -n $lt_cv_sys_max_cmd_len ; then
6455 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6456 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6457 else
6458 { $as_echo "$as_me:$LINENO: result: none" >&5
6459 $as_echo "none" >&6; }
6460 fi
6461
6462
6463
6464
6465
6466 # Check for command to grab the raw symbol name followed by C symbol from nm.
6467 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6468 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6470 $as_echo_n "(cached) " >&6
6471 else
6472
6473 # These are sane defaults that work on at least a few old systems.
6474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6475
6476 # Character class describing NM global symbol codes.
6477 symcode='[BCDEGRST]'
6478
6479 # Regexp to match symbols that can be accessed directly from C.
6480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6481
6482 # Transform an extracted symbol line into a proper C declaration
6483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6484
6485 # Transform an extracted symbol line into symbol name and symbol address
6486 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'"
6487
6488 # Define system-specific variables.
6489 case $host_os in
6490 aix*)
6491 symcode='[BCDT]'
6492 ;;
6493 cygwin* | mingw* | pw32*)
6494 symcode='[ABCDGISTW]'
6495 ;;
6496 hpux*) # Its linker distinguishes data from code symbols
6497 if test "$host_cpu" = ia64; then
6498 symcode='[ABCDEGRST]'
6499 fi
6500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6501 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'"
6502 ;;
6503 linux* | k*bsd*-gnu)
6504 if test "$host_cpu" = ia64; then
6505 symcode='[ABCDGIRSTW]'
6506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6507 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'"
6508 fi
6509 ;;
6510 irix* | nonstopux*)
6511 symcode='[BCDEGRST]'
6512 ;;
6513 osf*)
6514 symcode='[BCDEGQRST]'
6515 ;;
6516 solaris*)
6517 symcode='[BDRT]'
6518 ;;
6519 sco3.2v5*)
6520 symcode='[DT]'
6521 ;;
6522 sysv4.2uw2*)
6523 symcode='[DT]'
6524 ;;
6525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6526 symcode='[ABDT]'
6527 ;;
6528 sysv4)
6529 symcode='[DFNSTU]'
6530 ;;
6531 esac
6532
6533 # Handle CRLF in mingw tool chain
6534 opt_cr=
6535 case $build_os in
6536 mingw*)
6537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6538 ;;
6539 esac
6540
6541 # If we're using GNU nm, then use its standard symbol codes.
6542 case `$NM -V 2>&1` in
6543 *GNU* | *'with BFD'*)
6544 symcode='[ABCDGIRSTW]' ;;
6545 esac
6546
6547 # Try without a prefix undercore, then with it.
6548 for ac_symprfx in "" "_"; do
6549
6550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6551 symxfrm="\\1 $ac_symprfx\\2 \\2"
6552
6553 # Write the raw and C identifiers.
6554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6555
6556 # Check to see that the pipe works correctly.
6557 pipe_works=no
6558
6559 rm -f conftest*
6560 cat > conftest.$ac_ext <<EOF
6561 #ifdef __cplusplus
6562 extern "C" {
6563 #endif
6564 char nm_test_var;
6565 void nm_test_func(){}
6566 #ifdef __cplusplus
6567 }
6568 #endif
6569 int main(){nm_test_var='a';nm_test_func();return(0);}
6570 EOF
6571
6572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; then
6577 # Now try to grab the symbols.
6578 nlist=conftest.nm
6579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && test -s "$nlist"; then
6584 # Try sorting and uniquifying the output.
6585 if sort "$nlist" | uniq > "$nlist"T; then
6586 mv -f "$nlist"T "$nlist"
6587 else
6588 rm -f "$nlist"T
6589 fi
6590
6591 # Make sure that we snagged all the symbols we need.
6592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6594 cat <<EOF > conftest.$ac_ext
6595 #ifdef __cplusplus
6596 extern "C" {
6597 #endif
6598
6599 EOF
6600 # Now generate the symbol file.
6601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6602
6603 cat <<EOF >> conftest.$ac_ext
6604 #if defined (__STDC__) && __STDC__
6605 # define lt_ptr_t void *
6606 #else
6607 # define lt_ptr_t char *
6608 # define const
6609 #endif
6610
6611 /* The mapping between symbol names and symbols. */
6612 const struct {
6613 const char *name;
6614 lt_ptr_t address;
6615 }
6616 lt_preloaded_symbols[] =
6617 {
6618 EOF
6619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6620 cat <<\EOF >> conftest.$ac_ext
6621 {0, (lt_ptr_t) 0}
6622 };
6623
6624 #ifdef __cplusplus
6625 }
6626 #endif
6627 EOF
6628 # Now try linking the two files.
6629 mv conftest.$ac_objext conftstm.$ac_objext
6630 lt_save_LIBS="$LIBS"
6631 lt_save_CFLAGS="$CFLAGS"
6632 LIBS="conftstm.$ac_objext"
6633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>&5
6636 ac_status=$?
6637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6639 pipe_works=yes
6640 fi
6641 LIBS="$lt_save_LIBS"
6642 CFLAGS="$lt_save_CFLAGS"
6643 else
6644 echo "cannot find nm_test_func in $nlist" >&5
6645 fi
6646 else
6647 echo "cannot find nm_test_var in $nlist" >&5
6648 fi
6649 else
6650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6651 fi
6652 else
6653 echo "$progname: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6655 fi
6656 rm -rf conftest* conftst*
6657
6658 # Do not use the global_symbol_pipe unless it works.
6659 if test "$pipe_works" = yes; then
6660 break
6661 else
6662 lt_cv_sys_global_symbol_pipe=
6663 fi
6664 done
6665
6666 fi
6667
6668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6669 lt_cv_sys_global_symbol_to_cdecl=
6670 fi
6671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6672 { $as_echo "$as_me:$LINENO: result: failed" >&5
6673 $as_echo "failed" >&6; }
6674 else
6675 { $as_echo "$as_me:$LINENO: result: ok" >&5
6676 $as_echo "ok" >&6; }
6677 fi
6678
6679 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6680 $as_echo_n "checking for objdir... " >&6; }
6681 if test "${lt_cv_objdir+set}" = set; then
6682 $as_echo_n "(cached) " >&6
6683 else
6684 rm -f .libs 2>/dev/null
6685 mkdir .libs 2>/dev/null
6686 if test -d .libs; then
6687 lt_cv_objdir=.libs
6688 else
6689 # MS-DOS does not allow filenames that begin with a dot.
6690 lt_cv_objdir=_libs
6691 fi
6692 rmdir .libs 2>/dev/null
6693 fi
6694 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6695 $as_echo "$lt_cv_objdir" >&6; }
6696 objdir=$lt_cv_objdir
6697
6698
6699
6700
6701
6702 case $host_os in
6703 aix3*)
6704 # AIX sometimes has problems with the GCC collect2 program. For some
6705 # reason, if we set the COLLECT_NAMES environment variable, the problems
6706 # vanish in a puff of smoke.
6707 if test "X${COLLECT_NAMES+set}" != Xset; then
6708 COLLECT_NAMES=
6709 export COLLECT_NAMES
6710 fi
6711 ;;
6712 esac
6713
6714 # Sed substitution that helps us do robust quoting. It backslashifies
6715 # metacharacters that are still active within double-quoted strings.
6716 Xsed='sed -e 1s/^X//'
6717 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6718
6719 # Same as above, but do not quote variable references.
6720 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6721
6722 # Sed substitution to delay expansion of an escaped shell variable in a
6723 # double_quote_subst'ed string.
6724 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6725
6726 # Sed substitution to avoid accidental globbing in evaled expressions
6727 no_glob_subst='s/\*/\\\*/g'
6728
6729 # Constants:
6730 rm="rm -f"
6731
6732 # Global variables:
6733 default_ofile=libtool
6734 can_build_shared=yes
6735
6736 # All known linkers require a `.a' archive for static linking (except MSVC,
6737 # which needs '.lib').
6738 libext=a
6739 ltmain="$ac_aux_dir/ltmain.sh"
6740 ofile="$default_ofile"
6741 with_gnu_ld="$lt_cv_prog_gnu_ld"
6742
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}ar; ac_word=$2
6746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_prog_AR+set}" = set; then
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$AR"; then
6752 ac_cv_prog_AR="$AR" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_AR="${ac_tool_prefix}ar"
6762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 AR=$ac_cv_prog_AR
6772 if test -n "$AR"; then
6773 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6774 $as_echo "$AR" >&6; }
6775 else
6776 { $as_echo "$as_me:$LINENO: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780
6781 fi
6782 if test -z "$ac_cv_prog_AR"; then
6783 ac_ct_AR=$AR
6784 # Extract the first word of "ar", so it can be a program name with args.
6785 set dummy ar; ac_word=$2
6786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$ac_ct_AR"; then
6792 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_ac_ct_AR="ar"
6802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
6811 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6812 if test -n "$ac_ct_AR"; then
6813 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6814 $as_echo "$ac_ct_AR" >&6; }
6815 else
6816 { $as_echo "$as_me:$LINENO: result: no" >&5
6817 $as_echo "no" >&6; }
6818 fi
6819
6820 if test "x$ac_ct_AR" = x; then
6821 AR="false"
6822 else
6823 case $cross_compiling:$ac_tool_warned in
6824 yes:)
6825 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned=yes ;;
6828 esac
6829 AR=$ac_ct_AR
6830 fi
6831 else
6832 AR="$ac_cv_prog_AR"
6833 fi
6834
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6838 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_prog_RANLIB+set}" = set; then
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$RANLIB"; then
6844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 RANLIB=$ac_cv_prog_RANLIB
6864 if test -n "$RANLIB"; then
6865 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6866 $as_echo "$RANLIB" >&6; }
6867 else
6868 { $as_echo "$as_me:$LINENO: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873 fi
6874 if test -z "$ac_cv_prog_RANLIB"; then
6875 ac_ct_RANLIB=$RANLIB
6876 # Extract the first word of "ranlib", so it can be a program name with args.
6877 set dummy ranlib; ac_word=$2
6878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$ac_ct_RANLIB"; then
6884 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_ac_ct_RANLIB="ranlib"
6894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6904 if test -n "$ac_ct_RANLIB"; then
6905 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6906 $as_echo "$ac_ct_RANLIB" >&6; }
6907 else
6908 { $as_echo "$as_me:$LINENO: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912 if test "x$ac_ct_RANLIB" = x; then
6913 RANLIB=":"
6914 else
6915 case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921 RANLIB=$ac_ct_RANLIB
6922 fi
6923 else
6924 RANLIB="$ac_cv_prog_RANLIB"
6925 fi
6926
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}strip; ac_word=$2
6930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_prog_STRIP+set}" = set; then
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$STRIP"; then
6936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 STRIP=$ac_cv_prog_STRIP
6956 if test -n "$STRIP"; then
6957 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6958 $as_echo "$STRIP" >&6; }
6959 else
6960 { $as_echo "$as_me:$LINENO: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964
6965 fi
6966 if test -z "$ac_cv_prog_STRIP"; then
6967 ac_ct_STRIP=$STRIP
6968 # Extract the first word of "strip", so it can be a program name with args.
6969 set dummy strip; ac_word=$2
6970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6973 $as_echo_n "(cached) " >&6
6974 else
6975 if test -n "$ac_ct_STRIP"; then
6976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_ac_ct_STRIP="strip"
6986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6988 fi
6989 done
6990 done
6991 IFS=$as_save_IFS
6992
6993 fi
6994 fi
6995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6996 if test -n "$ac_ct_STRIP"; then
6997 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6998 $as_echo "$ac_ct_STRIP" >&6; }
6999 else
7000 { $as_echo "$as_me:$LINENO: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004 if test "x$ac_ct_STRIP" = x; then
7005 STRIP=":"
7006 else
7007 case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013 STRIP=$ac_ct_STRIP
7014 fi
7015 else
7016 STRIP="$ac_cv_prog_STRIP"
7017 fi
7018
7019
7020 old_CC="$CC"
7021 old_CFLAGS="$CFLAGS"
7022
7023 # Set sane defaults for various variables
7024 test -z "$AR" && AR=ar
7025 test -z "$AR_FLAGS" && AR_FLAGS=cru
7026 test -z "$AS" && AS=as
7027 test -z "$CC" && CC=cc
7028 test -z "$LTCC" && LTCC=$CC
7029 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7030 test -z "$DLLTOOL" && DLLTOOL=dlltool
7031 test -z "$LD" && LD=ld
7032 test -z "$LN_S" && LN_S="ln -s"
7033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7034 test -z "$NM" && NM=nm
7035 test -z "$SED" && SED=sed
7036 test -z "$OBJDUMP" && OBJDUMP=objdump
7037 test -z "$RANLIB" && RANLIB=:
7038 test -z "$STRIP" && STRIP=:
7039 test -z "$ac_objext" && ac_objext=o
7040
7041 # Determine commands to create old-style static archives.
7042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7043 old_postinstall_cmds='chmod 644 $oldlib'
7044 old_postuninstall_cmds=
7045
7046 if test -n "$RANLIB"; then
7047 case $host_os in
7048 openbsd*)
7049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7050 ;;
7051 *)
7052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7053 ;;
7054 esac
7055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7056 fi
7057
7058 for cc_temp in $compiler""; do
7059 case $cc_temp in
7060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7062 \-*) ;;
7063 *) break;;
7064 esac
7065 done
7066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7067
7068
7069 # Only perform the check for file, if the check method requires it
7070 case $deplibs_check_method in
7071 file_magic*)
7072 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7073 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7074 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7075 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7076 $as_echo_n "(cached) " >&6
7077 else
7078 case $MAGIC_CMD in
7079 [\\/*] | ?:[\\/]*)
7080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7081 ;;
7082 *)
7083 lt_save_MAGIC_CMD="$MAGIC_CMD"
7084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7086 for ac_dir in $ac_dummy; do
7087 IFS="$lt_save_ifs"
7088 test -z "$ac_dir" && ac_dir=.
7089 if test -f $ac_dir/${ac_tool_prefix}file; then
7090 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7091 if test -n "$file_magic_test_file"; then
7092 case $deplibs_check_method in
7093 "file_magic "*)
7094 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7097 $EGREP "$file_magic_regex" > /dev/null; then
7098 :
7099 else
7100 cat <<EOF 1>&2
7101
7102 *** Warning: the command libtool uses to detect shared libraries,
7103 *** $file_magic_cmd, produces output that libtool cannot recognize.
7104 *** The result is that libtool may fail to recognize shared libraries
7105 *** as such. This will affect the creation of libtool libraries that
7106 *** depend on shared libraries, but programs linked with such libtool
7107 *** libraries will work regardless of this problem. Nevertheless, you
7108 *** may want to report the problem to your system manager and/or to
7109 *** bug-libtool@gnu.org
7110
7111 EOF
7112 fi ;;
7113 esac
7114 fi
7115 break
7116 fi
7117 done
7118 IFS="$lt_save_ifs"
7119 MAGIC_CMD="$lt_save_MAGIC_CMD"
7120 ;;
7121 esac
7122 fi
7123
7124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7125 if test -n "$MAGIC_CMD"; then
7126 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7127 $as_echo "$MAGIC_CMD" >&6; }
7128 else
7129 { $as_echo "$as_me:$LINENO: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133 if test -z "$lt_cv_path_MAGIC_CMD"; then
7134 if test -n "$ac_tool_prefix"; then
7135 { $as_echo "$as_me:$LINENO: checking for file" >&5
7136 $as_echo_n "checking for file... " >&6; }
7137 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7138 $as_echo_n "(cached) " >&6
7139 else
7140 case $MAGIC_CMD in
7141 [\\/*] | ?:[\\/]*)
7142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7143 ;;
7144 *)
7145 lt_save_MAGIC_CMD="$MAGIC_CMD"
7146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7147 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7148 for ac_dir in $ac_dummy; do
7149 IFS="$lt_save_ifs"
7150 test -z "$ac_dir" && ac_dir=.
7151 if test -f $ac_dir/file; then
7152 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7153 if test -n "$file_magic_test_file"; then
7154 case $deplibs_check_method in
7155 "file_magic "*)
7156 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7159 $EGREP "$file_magic_regex" > /dev/null; then
7160 :
7161 else
7162 cat <<EOF 1>&2
7163
7164 *** Warning: the command libtool uses to detect shared libraries,
7165 *** $file_magic_cmd, produces output that libtool cannot recognize.
7166 *** The result is that libtool may fail to recognize shared libraries
7167 *** as such. This will affect the creation of libtool libraries that
7168 *** depend on shared libraries, but programs linked with such libtool
7169 *** libraries will work regardless of this problem. Nevertheless, you
7170 *** may want to report the problem to your system manager and/or to
7171 *** bug-libtool@gnu.org
7172
7173 EOF
7174 fi ;;
7175 esac
7176 fi
7177 break
7178 fi
7179 done
7180 IFS="$lt_save_ifs"
7181 MAGIC_CMD="$lt_save_MAGIC_CMD"
7182 ;;
7183 esac
7184 fi
7185
7186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7187 if test -n "$MAGIC_CMD"; then
7188 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7189 $as_echo "$MAGIC_CMD" >&6; }
7190 else
7191 { $as_echo "$as_me:$LINENO: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195 else
7196 MAGIC_CMD=:
7197 fi
7198 fi
7199
7200 fi
7201 ;;
7202 esac
7203
7204
7205 case $host_os in
7206 rhapsody* | darwin*)
7207 if test -n "$ac_tool_prefix"; then
7208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7213 $as_echo_n "(cached) " >&6
7214 else
7215 if test -n "$DSYMUTIL"; then
7216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229 done
7230 done
7231 IFS=$as_save_IFS
7232
7233 fi
7234 fi
7235 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7236 if test -n "$DSYMUTIL"; then
7237 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7238 $as_echo "$DSYMUTIL" >&6; }
7239 else
7240 { $as_echo "$as_me:$LINENO: result: no" >&5
7241 $as_echo "no" >&6; }
7242 fi
7243
7244
7245 fi
7246 if test -z "$ac_cv_prog_DSYMUTIL"; then
7247 ac_ct_DSYMUTIL=$DSYMUTIL
7248 # Extract the first word of "dsymutil", so it can be a program name with args.
7249 set dummy dsymutil; ac_word=$2
7250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7254 else
7255 if test -n "$ac_ct_DSYMUTIL"; then
7256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7276 if test -n "$ac_ct_DSYMUTIL"; then
7277 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7278 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7279 else
7280 { $as_echo "$as_me:$LINENO: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284 if test "x$ac_ct_DSYMUTIL" = x; then
7285 DSYMUTIL=":"
7286 else
7287 case $cross_compiling:$ac_tool_warned in
7288 yes:)
7289 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7292 esac
7293 DSYMUTIL=$ac_ct_DSYMUTIL
7294 fi
7295 else
7296 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7297 fi
7298
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$NMEDIT"; then
7308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325 fi
7326 fi
7327 NMEDIT=$ac_cv_prog_NMEDIT
7328 if test -n "$NMEDIT"; then
7329 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7330 $as_echo "$NMEDIT" >&6; }
7331 else
7332 { $as_echo "$as_me:$LINENO: result: no" >&5
7333 $as_echo "no" >&6; }
7334 fi
7335
7336
7337 fi
7338 if test -z "$ac_cv_prog_NMEDIT"; then
7339 ac_ct_NMEDIT=$NMEDIT
7340 # Extract the first word of "nmedit", so it can be a program name with args.
7341 set dummy nmedit; ac_word=$2
7342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$ac_ct_NMEDIT"; then
7348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7368 if test -n "$ac_ct_NMEDIT"; then
7369 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7370 $as_echo "$ac_ct_NMEDIT" >&6; }
7371 else
7372 { $as_echo "$as_me:$LINENO: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376 if test "x$ac_ct_NMEDIT" = x; then
7377 NMEDIT=":"
7378 else
7379 case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385 NMEDIT=$ac_ct_NMEDIT
7386 fi
7387 else
7388 NMEDIT="$ac_cv_prog_NMEDIT"
7389 fi
7390
7391
7392 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7393 $as_echo_n "checking for -single_module linker flag... " >&6; }
7394 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7395 $as_echo_n "(cached) " >&6
7396 else
7397 lt_cv_apple_cc_single_mod=no
7398 if test -z "${LT_MULTI_MODULE}"; then
7399 # By default we will add the -single_module flag. You can override
7400 # by either setting the environment variable LT_MULTI_MODULE
7401 # non-empty at configure time, or by adding -multi_module to the
7402 # link flags.
7403 echo "int foo(void){return 1;}" > conftest.c
7404 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7405 -dynamiclib ${wl}-single_module conftest.c
7406 if test -f libconftest.dylib; then
7407 lt_cv_apple_cc_single_mod=yes
7408 rm -rf libconftest.dylib*
7409 fi
7410 rm conftest.c
7411 fi
7412 fi
7413 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7414 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7415 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7416 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7417 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7418 $as_echo_n "(cached) " >&6
7419 else
7420 lt_cv_ld_exported_symbols_list=no
7421 save_LDFLAGS=$LDFLAGS
7422 echo "_main" > conftest.sym
7423 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430
7431 int
7432 main ()
7433 {
7434
7435 ;
7436 return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7444 esac
7445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7446 $as_echo "$ac_try_echo") >&5
7447 (eval "$ac_link") 2>conftest.er1
7448 ac_status=$?
7449 grep -v '^ *+' conftest.er1 >conftest.err
7450 rm -f conftest.er1
7451 cat conftest.err >&5
7452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest$ac_exeext && {
7457 test "$cross_compiling" = yes ||
7458 $as_test_x conftest$ac_exeext
7459 }; then
7460 lt_cv_ld_exported_symbols_list=yes
7461 else
7462 $as_echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465 lt_cv_ld_exported_symbols_list=no
7466 fi
7467
7468 rm -rf conftest.dSYM
7469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7470 conftest$ac_exeext conftest.$ac_ext
7471 LDFLAGS="$save_LDFLAGS"
7472
7473 fi
7474 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7475 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7476 case $host_os in
7477 rhapsody* | darwin1.[0123])
7478 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7479 darwin1.*)
7480 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7481 darwin*)
7482 # if running on 10.5 or later, the deployment target defaults
7483 # to the OS version, if on x86, and 10.4, the deployment
7484 # target defaults to 10.4. Don't you love it?
7485 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7486 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7487 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7488 10.[012]*)
7489 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7490 10.*)
7491 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7492 esac
7493 ;;
7494 esac
7495 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7496 _lt_dar_single_mod='$single_module'
7497 fi
7498 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7499 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7500 else
7501 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7502 fi
7503 if test "$DSYMUTIL" != ":"; then
7504 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7505 else
7506 _lt_dsymutil=
7507 fi
7508 ;;
7509 esac
7510
7511
7512 enable_dlopen=no
7513 enable_win32_dll=no
7514
7515 # Check whether --enable-libtool-lock was given.
7516 if test "${enable_libtool_lock+set}" = set; then
7517 enableval=$enable_libtool_lock;
7518 fi
7519
7520 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7521
7522
7523 # Check whether --with-pic was given.
7524 if test "${with_pic+set}" = set; then
7525 withval=$with_pic; pic_mode="$withval"
7526 else
7527 pic_mode=default
7528 fi
7529
7530 test -z "$pic_mode" && pic_mode=default
7531
7532 # Use C for the default configuration in the libtool script
7533 tagname=
7534 lt_save_CC="$CC"
7535 ac_ext=c
7536 ac_cpp='$CPP $CPPFLAGS'
7537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540
7541
7542 # Source file extension for C test sources.
7543 ac_ext=c
7544
7545 # Object file extension for compiled C test sources.
7546 objext=o
7547 objext=$objext
7548
7549 # Code to be used in simple compile tests
7550 lt_simple_compile_test_code="int some_variable = 0;"
7551
7552 # Code to be used in simple link tests
7553 lt_simple_link_test_code='int main(){return(0);}'
7554
7555
7556 # If no C compiler was specified, use CC.
7557 LTCC=${LTCC-"$CC"}
7558
7559 # If no C compiler flags were specified, use CFLAGS.
7560 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7561
7562 # Allow CC to be a program name with arguments.
7563 compiler=$CC
7564
7565
7566 # save warnings/boilerplate of simple test code
7567 ac_outfile=conftest.$ac_objext
7568 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7569 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7570 _lt_compiler_boilerplate=`cat conftest.err`
7571 $rm conftest*
7572
7573 ac_outfile=conftest.$ac_objext
7574 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7575 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7576 _lt_linker_boilerplate=`cat conftest.err`
7577 $rm -r conftest*
7578
7579
7580
7581 lt_prog_compiler_no_builtin_flag=
7582
7583 if test "$GCC" = yes; then
7584 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7585
7586
7587 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7588 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7589 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7590 $as_echo_n "(cached) " >&6
7591 else
7592 lt_cv_prog_compiler_rtti_exceptions=no
7593 ac_outfile=conftest.$ac_objext
7594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7595 lt_compiler_flag="-fno-rtti -fno-exceptions"
7596 # Insert the option either (1) after the last *FLAGS variable, or
7597 # (2) before a word containing "conftest.", or (3) at the end.
7598 # Note that $ac_compile itself does not contain backslashes and begins
7599 # with a dollar sign (not a hyphen), so the echo should work correctly.
7600 # The option is referenced via a variable to avoid confusing sed.
7601 lt_compile=`echo "$ac_compile" | $SED \
7602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7604 -e 's:$: $lt_compiler_flag:'`
7605 (eval echo "\"\$as_me:7605: $lt_compile\"" >&5)
7606 (eval "$lt_compile" 2>conftest.err)
7607 ac_status=$?
7608 cat conftest.err >&5
7609 echo "$as_me:7609: \$? = $ac_status" >&5
7610 if (exit $ac_status) && test -s "$ac_outfile"; then
7611 # The compiler can only warn and ignore the option if not recognized
7612 # So say no if there are warnings other than the usual output.
7613 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7616 lt_cv_prog_compiler_rtti_exceptions=yes
7617 fi
7618 fi
7619 $rm conftest*
7620
7621 fi
7622 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7623 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7624
7625 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7626 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7627 else
7628 :
7629 fi
7630
7631 fi
7632
7633 lt_prog_compiler_wl=
7634 lt_prog_compiler_pic=
7635 lt_prog_compiler_static=
7636
7637 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7638 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7639
7640 if test "$GCC" = yes; then
7641 lt_prog_compiler_wl='-Wl,'
7642 lt_prog_compiler_static='-static'
7643
7644 case $host_os in
7645 aix*)
7646 # All AIX code is PIC.
7647 if test "$host_cpu" = ia64; then
7648 # AIX 5 now supports IA64 processor
7649 lt_prog_compiler_static='-Bstatic'
7650 fi
7651 ;;
7652
7653 amigaos*)
7654 # FIXME: we need at least 68020 code to build shared libraries, but
7655 # adding the `-m68020' flag to GCC prevents building anything better,
7656 # like `-m68040'.
7657 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7658 ;;
7659
7660 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7661 # PIC is the default for these OSes.
7662 ;;
7663
7664 mingw* | cygwin* | pw32* | os2*)
7665 # This hack is so that the source file can tell whether it is being
7666 # built for inclusion in a dll (and should export symbols for example).
7667 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7668 # (--disable-auto-import) libraries
7669 lt_prog_compiler_pic='-DDLL_EXPORT'
7670 ;;
7671
7672 darwin* | rhapsody*)
7673 # PIC is the default on this platform
7674 # Common symbols not allowed in MH_DYLIB files
7675 lt_prog_compiler_pic='-fno-common'
7676 ;;
7677
7678 interix[3-9]*)
7679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7680 # Instead, we relocate shared libraries at runtime.
7681 ;;
7682
7683 msdosdjgpp*)
7684 # Just because we use GCC doesn't mean we suddenly get shared libraries
7685 # on systems that don't support them.
7686 lt_prog_compiler_can_build_shared=no
7687 enable_shared=no
7688 ;;
7689
7690 sysv4*MP*)
7691 if test -d /usr/nec; then
7692 lt_prog_compiler_pic=-Kconform_pic
7693 fi
7694 ;;
7695
7696 hpux*)
7697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7698 # not for PA HP-UX.
7699 case $host_cpu in
7700 hppa*64*|ia64*)
7701 # +Z the default
7702 ;;
7703 *)
7704 lt_prog_compiler_pic='-fPIC'
7705 ;;
7706 esac
7707 ;;
7708
7709 *)
7710 lt_prog_compiler_pic='-fPIC'
7711 ;;
7712 esac
7713 else
7714 # PORTME Check for flag to pass linker flags through the system compiler.
7715 case $host_os in
7716 aix*)
7717 lt_prog_compiler_wl='-Wl,'
7718 if test "$host_cpu" = ia64; then
7719 # AIX 5 now supports IA64 processor
7720 lt_prog_compiler_static='-Bstatic'
7721 else
7722 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7723 fi
7724 ;;
7725 darwin*)
7726 # PIC is the default on this platform
7727 # Common symbols not allowed in MH_DYLIB files
7728 case $cc_basename in
7729 xlc*)
7730 lt_prog_compiler_pic='-qnocommon'
7731 lt_prog_compiler_wl='-Wl,'
7732 ;;
7733 esac
7734 ;;
7735
7736 mingw* | cygwin* | pw32* | os2*)
7737 # This hack is so that the source file can tell whether it is being
7738 # built for inclusion in a dll (and should export symbols for example).
7739 lt_prog_compiler_pic='-DDLL_EXPORT'
7740 ;;
7741
7742 hpux9* | hpux10* | hpux11*)
7743 lt_prog_compiler_wl='-Wl,'
7744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7745 # not for PA HP-UX.
7746 case $host_cpu in
7747 hppa*64*|ia64*)
7748 # +Z the default
7749 ;;
7750 *)
7751 lt_prog_compiler_pic='+Z'
7752 ;;
7753 esac
7754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7755 lt_prog_compiler_static='${wl}-a ${wl}archive'
7756 ;;
7757
7758 irix5* | irix6* | nonstopux*)
7759 lt_prog_compiler_wl='-Wl,'
7760 # PIC (with -KPIC) is the default.
7761 lt_prog_compiler_static='-non_shared'
7762 ;;
7763
7764 newsos6)
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7767 ;;
7768
7769 linux* | k*bsd*-gnu)
7770 case $cc_basename in
7771 icc* | ecc*)
7772 lt_prog_compiler_wl='-Wl,'
7773 lt_prog_compiler_pic='-KPIC'
7774 lt_prog_compiler_static='-static'
7775 ;;
7776 pgcc* | pgf77* | pgf90* | pgf95*)
7777 # Portland Group compilers (*not* the Pentium gcc compiler,
7778 # which looks to be a dead project)
7779 lt_prog_compiler_wl='-Wl,'
7780 lt_prog_compiler_pic='-fpic'
7781 lt_prog_compiler_static='-Bstatic'
7782 ;;
7783 ccc*)
7784 lt_prog_compiler_wl='-Wl,'
7785 # All Alpha code is PIC.
7786 lt_prog_compiler_static='-non_shared'
7787 ;;
7788 *)
7789 case `$CC -V 2>&1 | sed 5q` in
7790 *Sun\ C*)
7791 # Sun C 5.9
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-Bstatic'
7794 lt_prog_compiler_wl='-Wl,'
7795 ;;
7796 *Sun\ F*)
7797 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-Bstatic'
7800 lt_prog_compiler_wl=''
7801 ;;
7802 esac
7803 ;;
7804 esac
7805 ;;
7806
7807 osf3* | osf4* | osf5*)
7808 lt_prog_compiler_wl='-Wl,'
7809 # All OSF/1 code is PIC.
7810 lt_prog_compiler_static='-non_shared'
7811 ;;
7812
7813 rdos*)
7814 lt_prog_compiler_static='-non_shared'
7815 ;;
7816
7817 solaris*)
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 case $cc_basename in
7821 f77* | f90* | f95*)
7822 lt_prog_compiler_wl='-Qoption ld ';;
7823 *)
7824 lt_prog_compiler_wl='-Wl,';;
7825 esac
7826 ;;
7827
7828 sunos4*)
7829 lt_prog_compiler_wl='-Qoption ld '
7830 lt_prog_compiler_pic='-PIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 ;;
7833
7834 sysv4 | sysv4.2uw2* | sysv4.3*)
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 ;;
7839
7840 sysv4*MP*)
7841 if test -d /usr/nec ;then
7842 lt_prog_compiler_pic='-Kconform_pic'
7843 lt_prog_compiler_static='-Bstatic'
7844 fi
7845 ;;
7846
7847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7851 ;;
7852
7853 unicos*)
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_can_build_shared=no
7856 ;;
7857
7858 uts4*)
7859 lt_prog_compiler_pic='-pic'
7860 lt_prog_compiler_static='-Bstatic'
7861 ;;
7862
7863 *)
7864 lt_prog_compiler_can_build_shared=no
7865 ;;
7866 esac
7867 fi
7868
7869 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7870 $as_echo "$lt_prog_compiler_pic" >&6; }
7871
7872 #
7873 # Check to make sure the PIC flag actually works.
7874 #
7875 if test -n "$lt_prog_compiler_pic"; then
7876
7877 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7878 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7879 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7880 $as_echo_n "(cached) " >&6
7881 else
7882 lt_cv_prog_compiler_pic_works=no
7883 ac_outfile=conftest.$ac_objext
7884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7886 # Insert the option either (1) after the last *FLAGS variable, or
7887 # (2) before a word containing "conftest.", or (3) at the end.
7888 # Note that $ac_compile itself does not contain backslashes and begins
7889 # with a dollar sign (not a hyphen), so the echo should work correctly.
7890 # The option is referenced via a variable to avoid confusing sed.
7891 lt_compile=`echo "$ac_compile" | $SED \
7892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7894 -e 's:$: $lt_compiler_flag:'`
7895 (eval echo "\"\$as_me:7895: $lt_compile\"" >&5)
7896 (eval "$lt_compile" 2>conftest.err)
7897 ac_status=$?
7898 cat conftest.err >&5
7899 echo "$as_me:7899: \$? = $ac_status" >&5
7900 if (exit $ac_status) && test -s "$ac_outfile"; then
7901 # The compiler can only warn and ignore the option if not recognized
7902 # So say no if there are warnings other than the usual output.
7903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7906 lt_cv_prog_compiler_pic_works=yes
7907 fi
7908 fi
7909 $rm conftest*
7910
7911 fi
7912 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7913 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7914
7915 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7916 case $lt_prog_compiler_pic in
7917 "" | " "*) ;;
7918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7919 esac
7920 else
7921 lt_prog_compiler_pic=
7922 lt_prog_compiler_can_build_shared=no
7923 fi
7924
7925 fi
7926 case $host_os in
7927 # For platforms which do not support PIC, -DPIC is meaningless:
7928 *djgpp*)
7929 lt_prog_compiler_pic=
7930 ;;
7931 *)
7932 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7933 ;;
7934 esac
7935
7936 #
7937 # Check to make sure the static flag actually works.
7938 #
7939 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7940 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7942 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7943 $as_echo_n "(cached) " >&6
7944 else
7945 lt_cv_prog_compiler_static_works=no
7946 save_LDFLAGS="$LDFLAGS"
7947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7950 # The linker can only warn and ignore the option if not recognized
7951 # So say no if there are warnings
7952 if test -s conftest.err; then
7953 # Append any errors to the config.log.
7954 cat conftest.err 1>&5
7955 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_static_works=yes
7959 fi
7960 else
7961 lt_cv_prog_compiler_static_works=yes
7962 fi
7963 fi
7964 $rm -r conftest*
7965 LDFLAGS="$save_LDFLAGS"
7966
7967 fi
7968 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7969 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7970
7971 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7972 :
7973 else
7974 lt_prog_compiler_static=
7975 fi
7976
7977
7978 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7979 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7980 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7981 $as_echo_n "(cached) " >&6
7982 else
7983 lt_cv_prog_compiler_c_o=no
7984 $rm -r conftest 2>/dev/null
7985 mkdir conftest
7986 cd conftest
7987 mkdir out
7988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7989
7990 lt_compiler_flag="-o out/conftest2.$ac_objext"
7991 # Insert the option either (1) after the last *FLAGS variable, or
7992 # (2) before a word containing "conftest.", or (3) at the end.
7993 # Note that $ac_compile itself does not contain backslashes and begins
7994 # with a dollar sign (not a hyphen), so the echo should work correctly.
7995 lt_compile=`echo "$ac_compile" | $SED \
7996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998 -e 's:$: $lt_compiler_flag:'`
7999 (eval echo "\"\$as_me:7999: $lt_compile\"" >&5)
8000 (eval "$lt_compile" 2>out/conftest.err)
8001 ac_status=$?
8002 cat out/conftest.err >&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005 then
8006 # The compiler can only warn and ignore the option if not recognized
8007 # So say no if there are warnings
8008 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011 lt_cv_prog_compiler_c_o=yes
8012 fi
8013 fi
8014 chmod u+w . 2>&5
8015 $rm conftest*
8016 # SGI C++ compiler will create directory out/ii_files/ for
8017 # template instantiation
8018 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8019 $rm out/* && rmdir out
8020 cd ..
8021 rmdir conftest
8022 $rm conftest*
8023
8024 fi
8025 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8026 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8027
8028
8029 hard_links="nottested"
8030 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8031 # do not overwrite the value of need_locks provided by the user
8032 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8033 $as_echo_n "checking if we can lock with hard links... " >&6; }
8034 hard_links=yes
8035 $rm conftest*
8036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8037 touch conftest.a
8038 ln conftest.a conftest.b 2>&5 || hard_links=no
8039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8040 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8041 $as_echo "$hard_links" >&6; }
8042 if test "$hard_links" = no; then
8043 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8044 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8045 need_locks=warn
8046 fi
8047 else
8048 need_locks=no
8049 fi
8050
8051 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8052 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8053
8054 runpath_var=
8055 allow_undefined_flag=
8056 enable_shared_with_static_runtimes=no
8057 archive_cmds=
8058 archive_expsym_cmds=
8059 old_archive_From_new_cmds=
8060 old_archive_from_expsyms_cmds=
8061 export_dynamic_flag_spec=
8062 whole_archive_flag_spec=
8063 thread_safe_flag_spec=
8064 hardcode_libdir_flag_spec=
8065 hardcode_libdir_flag_spec_ld=
8066 hardcode_libdir_separator=
8067 hardcode_direct=no
8068 hardcode_minus_L=no
8069 hardcode_shlibpath_var=unsupported
8070 link_all_deplibs=unknown
8071 hardcode_automatic=no
8072 module_cmds=
8073 module_expsym_cmds=
8074 always_export_symbols=no
8075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8076 # include_expsyms should be a list of space-separated symbols to be *always*
8077 # included in the symbol list
8078 include_expsyms=
8079 # exclude_expsyms can be an extended regexp of symbols to exclude
8080 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8081 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8082 # as well as any symbol that contains `d'.
8083 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8085 # platforms (ab)use it in PIC code, but their linkers get confused if
8086 # the symbol is explicitly referenced. Since portable code cannot
8087 # rely on this symbol name, it's probably fine to never include it in
8088 # preloaded symbol tables.
8089 # Exclude shared library initialization/finalization symbols.
8090 extract_expsyms_cmds=
8091 # Just being paranoid about ensuring that cc_basename is set.
8092 for cc_temp in $compiler""; do
8093 case $cc_temp in
8094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8096 \-*) ;;
8097 *) break;;
8098 esac
8099 done
8100 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8101
8102 case $host_os in
8103 cygwin* | mingw* | pw32*)
8104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8105 # When not using gcc, we currently assume that we are using
8106 # Microsoft Visual C++.
8107 if test "$GCC" != yes; then
8108 with_gnu_ld=no
8109 fi
8110 ;;
8111 interix*)
8112 # we just hope/assume this is gcc and not c89 (= MSVC++)
8113 with_gnu_ld=yes
8114 ;;
8115 openbsd*)
8116 with_gnu_ld=no
8117 ;;
8118 esac
8119
8120 ld_shlibs=yes
8121 if test "$with_gnu_ld" = yes; then
8122 # If archive_cmds runs LD, not CC, wlarc should be empty
8123 wlarc='${wl}'
8124
8125 # Set some defaults for GNU ld with shared library support. These
8126 # are reset later if shared libraries are not supported. Putting them
8127 # here allows them to be overridden if necessary.
8128 runpath_var=LD_RUN_PATH
8129 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8130 export_dynamic_flag_spec='${wl}--export-dynamic'
8131 # ancient GNU ld didn't support --whole-archive et. al.
8132 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8133 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8134 else
8135 whole_archive_flag_spec=
8136 fi
8137 supports_anon_versioning=no
8138 case `$LD -v 2>/dev/null` in
8139 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8142 *\ 2.11.*) ;; # other 2.11 versions
8143 *) supports_anon_versioning=yes ;;
8144 esac
8145
8146 # See if GNU ld supports shared libraries.
8147 case $host_os in
8148 aix[3-9]*)
8149 # On AIX/PPC, the GNU linker is very broken
8150 if test "$host_cpu" != ia64; then
8151 ld_shlibs=no
8152 cat <<EOF 1>&2
8153
8154 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8155 *** to be unable to reliably create shared libraries on AIX.
8156 *** Therefore, libtool is disabling shared libraries support. If you
8157 *** really care for shared libraries, you may want to modify your PATH
8158 *** so that a non-GNU linker is found, and then restart.
8159
8160 EOF
8161 fi
8162 ;;
8163
8164 amigaos*)
8165 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)'
8166 hardcode_libdir_flag_spec='-L$libdir'
8167 hardcode_minus_L=yes
8168
8169 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8170 # that the semantics of dynamic libraries on AmigaOS, at least up
8171 # to version 4, is to share data among multiple programs linked
8172 # with the same dynamic library. Since this doesn't match the
8173 # behavior of shared libraries on other platforms, we can't use
8174 # them.
8175 ld_shlibs=no
8176 ;;
8177
8178 beos*)
8179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8180 allow_undefined_flag=unsupported
8181 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8182 # support --undefined. This deserves some investigation. FIXME
8183 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 cygwin* | mingw* | pw32*)
8190 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8191 # as there is no search path for DLLs.
8192 hardcode_libdir_flag_spec='-L$libdir'
8193 allow_undefined_flag=unsupported
8194 always_export_symbols=no
8195 enable_shared_with_static_runtimes=yes
8196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8197
8198 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8200 # If the export-symbols file already is a .def file (1st line
8201 # is EXPORTS), use it as is; otherwise, prepend...
8202 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8203 cp $export_symbols $output_objdir/$soname.def;
8204 else
8205 echo EXPORTS > $output_objdir/$soname.def;
8206 cat $export_symbols >> $output_objdir/$soname.def;
8207 fi~
8208 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8209 else
8210 ld_shlibs=no
8211 fi
8212 ;;
8213
8214 interix[3-9]*)
8215 hardcode_direct=no
8216 hardcode_shlibpath_var=no
8217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8218 export_dynamic_flag_spec='${wl}-E'
8219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8220 # Instead, shared libraries are loaded at an image base (0x10000000 by
8221 # default) and relocated if they conflict, which is a slow very memory
8222 # consuming and fragmenting process. To avoid this, we pick a random,
8223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8224 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8225 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8226 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'
8227 ;;
8228
8229 gnu* | linux* | k*bsd*-gnu)
8230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8231 tmp_addflag=
8232 case $cc_basename,$host_cpu in
8233 pgcc*) # Portland Group C compiler
8234 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'
8235 tmp_addflag=' $pic_flag'
8236 ;;
8237 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8238 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'
8239 tmp_addflag=' $pic_flag -Mnomain' ;;
8240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8241 tmp_addflag=' -i_dynamic' ;;
8242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8243 tmp_addflag=' -i_dynamic -nofor_main' ;;
8244 ifc* | ifort*) # Intel Fortran compiler
8245 tmp_addflag=' -nofor_main' ;;
8246 esac
8247 case `$CC -V 2>&1 | sed 5q` in
8248 *Sun\ C*) # Sun C 5.9
8249 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'
8250 tmp_sharedflag='-G' ;;
8251 *Sun\ F*) # Sun Fortran 8.3
8252 tmp_sharedflag='-G' ;;
8253 *)
8254 tmp_sharedflag='-shared' ;;
8255 esac
8256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257
8258 if test $supports_anon_versioning = yes; then
8259 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8261 $echo "local: *; };" >> $output_objdir/$libname.ver~
8262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8263 fi
8264 link_all_deplibs=no
8265 else
8266 ld_shlibs=no
8267 fi
8268 ;;
8269
8270 netbsd*)
8271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8272 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8273 wlarc=
8274 else
8275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8277 fi
8278 ;;
8279
8280 solaris*)
8281 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8282 ld_shlibs=no
8283 cat <<EOF 1>&2
8284
8285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8286 *** create shared libraries on Solaris systems. Therefore, libtool
8287 *** is disabling shared libraries support. We urge you to upgrade GNU
8288 *** binutils to release 2.9.1 or newer. Another option is to modify
8289 *** your PATH or compiler configuration so that the native linker is
8290 *** used, and then restart.
8291
8292 EOF
8293 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8296 else
8297 ld_shlibs=no
8298 fi
8299 ;;
8300
8301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8302 case `$LD -v 2>&1` in
8303 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8304 ld_shlibs=no
8305 cat <<_LT_EOF 1>&2
8306
8307 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8308 *** reliably create shared libraries on SCO systems. Therefore, libtool
8309 *** is disabling shared libraries support. We urge you to upgrade GNU
8310 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8311 *** your PATH or compiler configuration so that the native linker is
8312 *** used, and then restart.
8313
8314 _LT_EOF
8315 ;;
8316 *)
8317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8318 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8321 else
8322 ld_shlibs=no
8323 fi
8324 ;;
8325 esac
8326 ;;
8327
8328 sunos4*)
8329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8330 wlarc=
8331 hardcode_direct=yes
8332 hardcode_shlibpath_var=no
8333 ;;
8334
8335 *)
8336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339 else
8340 ld_shlibs=no
8341 fi
8342 ;;
8343 esac
8344
8345 if test "$ld_shlibs" = no; then
8346 runpath_var=
8347 hardcode_libdir_flag_spec=
8348 export_dynamic_flag_spec=
8349 whole_archive_flag_spec=
8350 fi
8351 else
8352 # PORTME fill in a description of your system's linker (not GNU ld)
8353 case $host_os in
8354 aix3*)
8355 allow_undefined_flag=unsupported
8356 always_export_symbols=yes
8357 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'
8358 # Note: this linker hardcodes the directories in LIBPATH if there
8359 # are no directories specified by -L.
8360 hardcode_minus_L=yes
8361 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8362 # Neither direct hardcoding nor static linking is supported with a
8363 # broken collect2.
8364 hardcode_direct=unsupported
8365 fi
8366 ;;
8367
8368 aix[4-9]*)
8369 if test "$host_cpu" = ia64; then
8370 # On IA64, the linker does run time linking by default, so we don't
8371 # have to do anything special.
8372 aix_use_runtimelinking=no
8373 exp_sym_flag='-Bexport'
8374 no_entry_flag=""
8375 else
8376 # If we're using GNU nm, then we don't want the "-C" option.
8377 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8378 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8379 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'
8380 else
8381 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'
8382 fi
8383 aix_use_runtimelinking=no
8384
8385 # Test if we are trying to use run time linking or normal
8386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8387 # need to do runtime linking.
8388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8389 for ld_flag in $LDFLAGS; do
8390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8391 aix_use_runtimelinking=yes
8392 break
8393 fi
8394 done
8395 ;;
8396 esac
8397
8398 exp_sym_flag='-bexport'
8399 no_entry_flag='-bnoentry'
8400 fi
8401
8402 # When large executables or shared objects are built, AIX ld can
8403 # have problems creating the table of contents. If linking a library
8404 # or program results in "error TOC overflow" add -mminimal-toc to
8405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8407
8408 archive_cmds=''
8409 hardcode_direct=yes
8410 hardcode_libdir_separator=':'
8411 link_all_deplibs=yes
8412
8413 if test "$GCC" = yes; then
8414 case $host_os in aix4.[012]|aix4.[012].*)
8415 # We only want to do this on AIX 4.2 and lower, the check
8416 # below for broken collect2 doesn't work under 4.3+
8417 collect2name=`${CC} -print-prog-name=collect2`
8418 if test -f "$collect2name" && \
8419 strings "$collect2name" | grep resolve_lib_name >/dev/null
8420 then
8421 # We have reworked collect2
8422 :
8423 else
8424 # We have old collect2
8425 hardcode_direct=unsupported
8426 # It fails to find uninstalled libraries when the uninstalled
8427 # path is not listed in the libpath. Setting hardcode_minus_L
8428 # to unsupported forces relinking
8429 hardcode_minus_L=yes
8430 hardcode_libdir_flag_spec='-L$libdir'
8431 hardcode_libdir_separator=
8432 fi
8433 ;;
8434 esac
8435 shared_flag='-shared'
8436 if test "$aix_use_runtimelinking" = yes; then
8437 shared_flag="$shared_flag "'${wl}-G'
8438 fi
8439 else
8440 # not using gcc
8441 if test "$host_cpu" = ia64; then
8442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8443 # chokes on -Wl,-G. The following line is correct:
8444 shared_flag='-G'
8445 else
8446 if test "$aix_use_runtimelinking" = yes; then
8447 shared_flag='${wl}-G'
8448 else
8449 shared_flag='${wl}-bM:SRE'
8450 fi
8451 fi
8452 fi
8453
8454 # It seems that -bexpall does not export symbols beginning with
8455 # underscore (_), so it is better to generate a list of symbols to export.
8456 always_export_symbols=yes
8457 if test "$aix_use_runtimelinking" = yes; then
8458 # Warning - without using the other runtime loading flags (-brtl),
8459 # -berok will link without error, but may produce a broken library.
8460 allow_undefined_flag='-berok'
8461 # Determine the default libpath from the value encoded in an empty executable.
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h. */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h. */
8468
8469 int
8470 main ()
8471 {
8472
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest$ac_exeext && {
8495 test "$cross_compiling" = yes ||
8496 $as_test_x conftest$ac_exeext
8497 }; then
8498
8499 lt_aix_libpath_sed='
8500 /Import File Strings/,/^$/ {
8501 /^0/ {
8502 s/^0 *\(.*\)$/\1/
8503 p
8504 }
8505 }'
8506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8507 # Check for a 64-bit object if we didn't find anything.
8508 if test -z "$aix_libpath"; then
8509 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 fi
8511 else
8512 $as_echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515
8516 fi
8517
8518 rm -rf conftest.dSYM
8519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8520 conftest$ac_exeext conftest.$ac_ext
8521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8522
8523 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8524 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"
8525 else
8526 if test "$host_cpu" = ia64; then
8527 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8528 allow_undefined_flag="-z nodefs"
8529 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"
8530 else
8531 # Determine the default libpath from the value encoded in an empty executable.
8532 cat >conftest.$ac_ext <<_ACEOF
8533 /* confdefs.h. */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538
8539 int
8540 main ()
8541 {
8542
8543 ;
8544 return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (ac_try="$ac_link"
8549 case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8552 esac
8553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8554 $as_echo "$ac_try_echo") >&5
8555 (eval "$ac_link") 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest$ac_exeext && {
8565 test "$cross_compiling" = yes ||
8566 $as_test_x conftest$ac_exeext
8567 }; then
8568
8569 lt_aix_libpath_sed='
8570 /Import File Strings/,/^$/ {
8571 /^0/ {
8572 s/^0 *\(.*\)$/\1/
8573 p
8574 }
8575 }'
8576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8577 # Check for a 64-bit object if we didn't find anything.
8578 if test -z "$aix_libpath"; then
8579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8580 fi
8581 else
8582 $as_echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585
8586 fi
8587
8588 rm -rf conftest.dSYM
8589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8590 conftest$ac_exeext conftest.$ac_ext
8591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8592
8593 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8594 # Warning - without using the other run time loading flags,
8595 # -berok will link without error, but may produce a broken library.
8596 no_undefined_flag=' ${wl}-bernotok'
8597 allow_undefined_flag=' ${wl}-berok'
8598 # Exported symbols can be pulled into shared objects from archives
8599 whole_archive_flag_spec='$convenience'
8600 archive_cmds_need_lc=yes
8601 # This is similar to how AIX traditionally builds its shared libraries.
8602 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'
8603 fi
8604 fi
8605 ;;
8606
8607 amigaos*)
8608 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)'
8609 hardcode_libdir_flag_spec='-L$libdir'
8610 hardcode_minus_L=yes
8611 # see comment about different semantics on the GNU ld section
8612 ld_shlibs=no
8613 ;;
8614
8615 bsdi[45]*)
8616 export_dynamic_flag_spec=-rdynamic
8617 ;;
8618
8619 cygwin* | mingw* | pw32*)
8620 # When not using gcc, we currently assume that we are using
8621 # Microsoft Visual C++.
8622 # hardcode_libdir_flag_spec is actually meaningless, as there is
8623 # no search path for DLLs.
8624 hardcode_libdir_flag_spec=' '
8625 allow_undefined_flag=unsupported
8626 # Tell ltmain to make .lib files, not .a files.
8627 libext=lib
8628 # Tell ltmain to make .dll files, not .so files.
8629 shrext_cmds=".dll"
8630 # FIXME: Setting linknames here is a bad hack.
8631 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8632 # The linker will automatically build a .lib file if we build a DLL.
8633 old_archive_From_new_cmds='true'
8634 # FIXME: Should let the user specify the lib program.
8635 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8636 fix_srcfile_path='`cygpath -w "$srcfile"`'
8637 enable_shared_with_static_runtimes=yes
8638 ;;
8639
8640 darwin* | rhapsody*)
8641 case $host_os in
8642 rhapsody* | darwin1.[012])
8643 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8644 ;;
8645 *) # Darwin 1.3 on
8646 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8647 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8648 else
8649 case ${MACOSX_DEPLOYMENT_TARGET} in
8650 10.[012])
8651 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8652 ;;
8653 10.*)
8654 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8655 ;;
8656 esac
8657 fi
8658 ;;
8659 esac
8660 archive_cmds_need_lc=no
8661 hardcode_direct=no
8662 hardcode_automatic=yes
8663 hardcode_shlibpath_var=unsupported
8664 whole_archive_flag_spec=''
8665 link_all_deplibs=yes
8666 if test "$GCC" = yes ; then
8667 output_verbose_link_cmd='echo'
8668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8670 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8671 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8672 else
8673 case $cc_basename in
8674 xlc*)
8675 output_verbose_link_cmd='echo'
8676 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8677 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8678 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8679 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}'
8680 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}'
8681 ;;
8682 *)
8683 ld_shlibs=no
8684 ;;
8685 esac
8686 fi
8687 ;;
8688
8689 dgux*)
8690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_shlibpath_var=no
8693 ;;
8694
8695 freebsd1*)
8696 ld_shlibs=no
8697 ;;
8698
8699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8700 # support. Future versions do this automatically, but an explicit c++rt0.o
8701 # does not break anything, and helps significantly (at the cost of a little
8702 # extra space).
8703 freebsd2.2*)
8704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8705 hardcode_libdir_flag_spec='-R$libdir'
8706 hardcode_direct=yes
8707 hardcode_shlibpath_var=no
8708 ;;
8709
8710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8711 freebsd2*)
8712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8713 hardcode_direct=yes
8714 hardcode_minus_L=yes
8715 hardcode_shlibpath_var=no
8716 ;;
8717
8718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8719 freebsd* | dragonfly*)
8720 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8721 hardcode_libdir_flag_spec='-R$libdir'
8722 hardcode_direct=yes
8723 hardcode_shlibpath_var=no
8724 ;;
8725
8726 hpux9*)
8727 if test "$GCC" = yes; then
8728 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'
8729 else
8730 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'
8731 fi
8732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733 hardcode_libdir_separator=:
8734 hardcode_direct=yes
8735
8736 # hardcode_minus_L: Not really in the search PATH,
8737 # but as the default location of the library.
8738 hardcode_minus_L=yes
8739 export_dynamic_flag_spec='${wl}-E'
8740 ;;
8741
8742 hpux10*)
8743 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8744 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8745 else
8746 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8747 fi
8748 if test "$with_gnu_ld" = no; then
8749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8750 hardcode_libdir_separator=:
8751
8752 hardcode_direct=yes
8753 export_dynamic_flag_spec='${wl}-E'
8754
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L=yes
8758 fi
8759 ;;
8760
8761 hpux11*)
8762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8763 case $host_cpu in
8764 hppa*64*)
8765 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766 ;;
8767 ia64*)
8768 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8769 ;;
8770 *)
8771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772 ;;
8773 esac
8774 else
8775 case $host_cpu in
8776 hppa*64*)
8777 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778 ;;
8779 ia64*)
8780 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8781 ;;
8782 *)
8783 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8784 ;;
8785 esac
8786 fi
8787 if test "$with_gnu_ld" = no; then
8788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8789 hardcode_libdir_separator=:
8790
8791 case $host_cpu in
8792 hppa*64*|ia64*)
8793 hardcode_libdir_flag_spec_ld='+b $libdir'
8794 hardcode_direct=no
8795 hardcode_shlibpath_var=no
8796 ;;
8797 *)
8798 hardcode_direct=yes
8799 export_dynamic_flag_spec='${wl}-E'
8800
8801 # hardcode_minus_L: Not really in the search PATH,
8802 # but as the default location of the library.
8803 hardcode_minus_L=yes
8804 ;;
8805 esac
8806 fi
8807 ;;
8808
8809 irix5* | irix6* | nonstopux*)
8810 if test "$GCC" = yes; then
8811 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'
8812 else
8813 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'
8814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8815 fi
8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817 hardcode_libdir_separator=:
8818 link_all_deplibs=yes
8819 ;;
8820
8821 netbsd*)
8822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8824 else
8825 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8826 fi
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_direct=yes
8829 hardcode_shlibpath_var=no
8830 ;;
8831
8832 newsos6)
8833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834 hardcode_direct=yes
8835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836 hardcode_libdir_separator=:
8837 hardcode_shlibpath_var=no
8838 ;;
8839
8840 openbsd*)
8841 if test -f /usr/libexec/ld.so; then
8842 hardcode_direct=yes
8843 hardcode_shlibpath_var=no
8844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8846 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8848 export_dynamic_flag_spec='${wl}-E'
8849 else
8850 case $host_os in
8851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_libdir_flag_spec='-R$libdir'
8854 ;;
8855 *)
8856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8858 ;;
8859 esac
8860 fi
8861 else
8862 ld_shlibs=no
8863 fi
8864 ;;
8865
8866 os2*)
8867 hardcode_libdir_flag_spec='-L$libdir'
8868 hardcode_minus_L=yes
8869 allow_undefined_flag=unsupported
8870 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'
8871 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8872 ;;
8873
8874 osf3*)
8875 if test "$GCC" = yes; then
8876 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8877 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'
8878 else
8879 allow_undefined_flag=' -expect_unresolved \*'
8880 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'
8881 fi
8882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8883 hardcode_libdir_separator=:
8884 ;;
8885
8886 osf4* | osf5*) # as osf3* with the addition of -msym flag
8887 if test "$GCC" = yes; then
8888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8889 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'
8890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8891 else
8892 allow_undefined_flag=' -expect_unresolved \*'
8893 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'
8894 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8895 $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'
8896
8897 # Both c and cxx compiler support -rpath directly
8898 hardcode_libdir_flag_spec='-rpath $libdir'
8899 fi
8900 hardcode_libdir_separator=:
8901 ;;
8902
8903 solaris*)
8904 no_undefined_flag=' -z text'
8905 if test "$GCC" = yes; then
8906 wlarc='${wl}'
8907 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8908 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8909 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8910 else
8911 wlarc=''
8912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8915 fi
8916 hardcode_libdir_flag_spec='-R$libdir'
8917 hardcode_shlibpath_var=no
8918 case $host_os in
8919 solaris2.[0-5] | solaris2.[0-5].*) ;;
8920 *)
8921 # The compiler driver will combine and reorder linker options,
8922 # but understands `-z linker_flag'. GCC discards it without `$wl',
8923 # but is careful enough not to reorder.
8924 # Supported since Solaris 2.6 (maybe 2.5.1?)
8925 if test "$GCC" = yes; then
8926 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8927 else
8928 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8929 fi
8930 ;;
8931 esac
8932 link_all_deplibs=yes
8933 ;;
8934
8935 sunos4*)
8936 if test "x$host_vendor" = xsequent; then
8937 # Use $CC to link under sequent, because it throws in some extra .o
8938 # files that make .init and .fini sections work.
8939 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8940 else
8941 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8942 fi
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_direct=yes
8945 hardcode_minus_L=yes
8946 hardcode_shlibpath_var=no
8947 ;;
8948
8949 sysv4)
8950 case $host_vendor in
8951 sni)
8952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_direct=yes # is this really true???
8954 ;;
8955 siemens)
8956 ## LD is ld it makes a PLAMLIB
8957 ## CC just makes a GrossModule.
8958 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8959 reload_cmds='$CC -r -o $output$reload_objs'
8960 hardcode_direct=no
8961 ;;
8962 motorola)
8963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8964 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8965 ;;
8966 esac
8967 runpath_var='LD_RUN_PATH'
8968 hardcode_shlibpath_var=no
8969 ;;
8970
8971 sysv4.3*)
8972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973 hardcode_shlibpath_var=no
8974 export_dynamic_flag_spec='-Bexport'
8975 ;;
8976
8977 sysv4*MP*)
8978 if test -d /usr/nec; then
8979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980 hardcode_shlibpath_var=no
8981 runpath_var=LD_RUN_PATH
8982 hardcode_runpath_var=yes
8983 ld_shlibs=yes
8984 fi
8985 ;;
8986
8987 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8988 no_undefined_flag='${wl}-z,text'
8989 archive_cmds_need_lc=no
8990 hardcode_shlibpath_var=no
8991 runpath_var='LD_RUN_PATH'
8992
8993 if test "$GCC" = yes; then
8994 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8996 else
8997 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 fi
9000 ;;
9001
9002 sysv5* | sco3.2v5* | sco5v6*)
9003 # Note: We can NOT use -z defs as we might desire, because we do not
9004 # link with -lc, and that would cause any symbols used from libc to
9005 # always be unresolved, which means just about no library would
9006 # ever link correctly. If we're not using GNU ld we use -z text
9007 # though, which does catch some bad symbols but isn't as heavy-handed
9008 # as -z defs.
9009 no_undefined_flag='${wl}-z,text'
9010 allow_undefined_flag='${wl}-z,nodefs'
9011 archive_cmds_need_lc=no
9012 hardcode_shlibpath_var=no
9013 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9014 hardcode_libdir_separator=':'
9015 link_all_deplibs=yes
9016 export_dynamic_flag_spec='${wl}-Bexport'
9017 runpath_var='LD_RUN_PATH'
9018
9019 if test "$GCC" = yes; then
9020 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9021 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022 else
9023 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025 fi
9026 ;;
9027
9028 uts4*)
9029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9030 hardcode_libdir_flag_spec='-L$libdir'
9031 hardcode_shlibpath_var=no
9032 ;;
9033
9034 *)
9035 ld_shlibs=no
9036 ;;
9037 esac
9038 fi
9039
9040 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9041 $as_echo "$ld_shlibs" >&6; }
9042 test "$ld_shlibs" = no && can_build_shared=no
9043
9044 #
9045 # Do we need to explicitly link libc?
9046 #
9047 case "x$archive_cmds_need_lc" in
9048 x|xyes)
9049 # Assume -lc should be added
9050 archive_cmds_need_lc=yes
9051
9052 if test "$enable_shared" = yes && test "$GCC" = yes; then
9053 case $archive_cmds in
9054 *'~'*)
9055 # FIXME: we may have to deal with multi-command sequences.
9056 ;;
9057 '$CC '*)
9058 # Test whether the compiler implicitly links with -lc since on some
9059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9060 # to ld, don't add -lc before -lgcc.
9061 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9063 $rm conftest*
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065
9066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067 (eval $ac_compile) 2>&5
9068 ac_status=$?
9069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } 2>conftest.err; then
9071 soname=conftest
9072 lib=conftest
9073 libobjs=conftest.$ac_objext
9074 deplibs=
9075 wl=$lt_prog_compiler_wl
9076 pic_flag=$lt_prog_compiler_pic
9077 compiler_flags=-v
9078 linker_flags=-v
9079 verstring=
9080 output_objdir=.
9081 libname=conftest
9082 lt_save_allow_undefined_flag=$allow_undefined_flag
9083 allow_undefined_flag=
9084 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9085 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9086 ac_status=$?
9087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); }
9089 then
9090 archive_cmds_need_lc=no
9091 else
9092 archive_cmds_need_lc=yes
9093 fi
9094 allow_undefined_flag=$lt_save_allow_undefined_flag
9095 else
9096 cat conftest.err 1>&5
9097 fi
9098 $rm conftest*
9099 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9100 $as_echo "$archive_cmds_need_lc" >&6; }
9101 ;;
9102 esac
9103 fi
9104 ;;
9105 esac
9106
9107 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9108 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9109 library_names_spec=
9110 libname_spec='lib$name'
9111 soname_spec=
9112 shrext_cmds=".so"
9113 postinstall_cmds=
9114 postuninstall_cmds=
9115 finish_cmds=
9116 finish_eval=
9117 shlibpath_var=
9118 shlibpath_overrides_runpath=unknown
9119 version_type=none
9120 dynamic_linker="$host_os ld.so"
9121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9122
9123 if test "$GCC" = yes; then
9124 case $host_os in
9125 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9126 *) lt_awk_arg="/^libraries:/" ;;
9127 esac
9128 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9129 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9130 # if the path contains ";" then we assume it to be the separator
9131 # otherwise default to the standard path separator (i.e. ":") - it is
9132 # assumed that no part of a normal pathname contains ";" but that should
9133 # okay in the real world where ";" in dirpaths is itself problematic.
9134 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9135 else
9136 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9137 fi
9138 # Ok, now we have the path, separated by spaces, we can step through it
9139 # and add multilib dir if necessary.
9140 lt_tmp_lt_search_path_spec=
9141 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9142 for lt_sys_path in $lt_search_path_spec; do
9143 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9144 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9145 else
9146 test -d "$lt_sys_path" && \
9147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9148 fi
9149 done
9150 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9151 BEGIN {RS=" "; FS="/|\n";} {
9152 lt_foo="";
9153 lt_count=0;
9154 for (lt_i = NF; lt_i > 0; lt_i--) {
9155 if ($lt_i != "" && $lt_i != ".") {
9156 if ($lt_i == "..") {
9157 lt_count++;
9158 } else {
9159 if (lt_count == 0) {
9160 lt_foo="/" $lt_i lt_foo;
9161 } else {
9162 lt_count--;
9163 }
9164 }
9165 }
9166 }
9167 if (lt_foo != "") { lt_freq[lt_foo]++; }
9168 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9169 }'`
9170 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9171 else
9172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9173 fi
9174 need_lib_prefix=unknown
9175 hardcode_into_libs=no
9176
9177 # when you set need_version to no, make sure it does not cause -set_version
9178 # flags to be left without arguments
9179 need_version=unknown
9180
9181 case $host_os in
9182 aix3*)
9183 version_type=linux
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9185 shlibpath_var=LIBPATH
9186
9187 # AIX 3 has no versioning support, so we append a major version to the name.
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 ;;
9190
9191 aix[4-9]*)
9192 version_type=linux
9193 need_lib_prefix=no
9194 need_version=no
9195 hardcode_into_libs=yes
9196 if test "$host_cpu" = ia64; then
9197 # AIX 5 supports IA64
9198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 else
9201 # With GCC up to 2.95.x, collect2 would create an import file
9202 # for dependence libraries. The import file would start with
9203 # the line `#! .'. This would cause the generated library to
9204 # depend on `.', always an invalid library. This was fixed in
9205 # development snapshots of GCC prior to 3.0.
9206 case $host_os in
9207 aix4 | aix4.[01] | aix4.[01].*)
9208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9209 echo ' yes '
9210 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9211 :
9212 else
9213 can_build_shared=no
9214 fi
9215 ;;
9216 esac
9217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9218 # soname into executable. Probably we can add versioning support to
9219 # collect2, so additional links can be useful in future.
9220 if test "$aix_use_runtimelinking" = yes; then
9221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9222 # instead of lib<name>.a to let people know that these are not
9223 # typical AIX shared libraries.
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 else
9226 # We preserve .a as extension for shared libraries through AIX4.2
9227 # and later when we are not doing run time linking.
9228 library_names_spec='${libname}${release}.a $libname.a'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 fi
9231 shlibpath_var=LIBPATH
9232 fi
9233 ;;
9234
9235 amigaos*)
9236 library_names_spec='$libname.ixlibrary $libname.a'
9237 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9238 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'
9239 ;;
9240
9241 beos*)
9242 library_names_spec='${libname}${shared_ext}'
9243 dynamic_linker="$host_os ld.so"
9244 shlibpath_var=LIBRARY_PATH
9245 ;;
9246
9247 bsdi[45]*)
9248 version_type=linux
9249 need_version=no
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9256 # the default ld.so.conf also contains /usr/contrib/lib and
9257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9258 # libtool to hard-code these into programs
9259 ;;
9260
9261 cygwin* | mingw* | pw32*)
9262 version_type=windows
9263 shrext_cmds=".dll"
9264 need_version=no
9265 need_lib_prefix=no
9266
9267 case $GCC,$host_os in
9268 yes,cygwin* | yes,mingw* | yes,pw32*)
9269 library_names_spec='$libname.dll.a'
9270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9271 postinstall_cmds='base_file=`basename \${file}`~
9272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9273 dldir=$destdir/`dirname \$dlpath`~
9274 test -d \$dldir || mkdir -p \$dldir~
9275 $install_prog $dir/$dlname \$dldir/$dlname~
9276 chmod a+x \$dldir/$dlname'
9277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9278 dlpath=$dir/\$dldll~
9279 $rm \$dlpath'
9280 shlibpath_overrides_runpath=yes
9281
9282 case $host_os in
9283 cygwin*)
9284 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9285 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9286 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9287 ;;
9288 mingw*)
9289 # MinGW DLLs use traditional 'lib' prefix
9290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9292 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9293 # It is most probably a Windows format PATH printed by
9294 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9295 # path with ; separators, and with drive letters. We can handle the
9296 # drive letters (cygwin fileutils understands them), so leave them,
9297 # especially as we might pass files found there to a mingw objdump,
9298 # which wouldn't understand a cygwinified path. Ahh.
9299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9300 else
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9302 fi
9303 ;;
9304 pw32*)
9305 # pw32 DLLs use 'pw' prefix rather than 'lib'
9306 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307 ;;
9308 esac
9309 ;;
9310
9311 *)
9312 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9313 ;;
9314 esac
9315 dynamic_linker='Win32 ld.exe'
9316 # FIXME: first we should search . and the directory the executable is in
9317 shlibpath_var=PATH
9318 ;;
9319
9320 darwin* | rhapsody*)
9321 dynamic_linker="$host_os dyld"
9322 version_type=darwin
9323 need_lib_prefix=no
9324 need_version=no
9325 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9326 soname_spec='${libname}${release}${major}$shared_ext'
9327 shlibpath_overrides_runpath=yes
9328 shlibpath_var=DYLD_LIBRARY_PATH
9329 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9330
9331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9332 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9333 ;;
9334
9335 dgux*)
9336 version_type=linux
9337 need_lib_prefix=no
9338 need_version=no
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 ;;
9343
9344 freebsd1*)
9345 dynamic_linker=no
9346 ;;
9347
9348 freebsd* | dragonfly*)
9349 # DragonFly does not have aout. When/if they implement a new
9350 # versioning mechanism, adjust this.
9351 if test -x /usr/bin/objformat; then
9352 objformat=`/usr/bin/objformat`
9353 else
9354 case $host_os in
9355 freebsd[123]*) objformat=aout ;;
9356 *) objformat=elf ;;
9357 esac
9358 fi
9359 version_type=freebsd-$objformat
9360 case $version_type in
9361 freebsd-elf*)
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9363 need_version=no
9364 need_lib_prefix=no
9365 ;;
9366 freebsd-*)
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9368 need_version=yes
9369 ;;
9370 esac
9371 shlibpath_var=LD_LIBRARY_PATH
9372 case $host_os in
9373 freebsd2*)
9374 shlibpath_overrides_runpath=yes
9375 ;;
9376 freebsd3.[01]* | freebsdelf3.[01]*)
9377 shlibpath_overrides_runpath=yes
9378 hardcode_into_libs=yes
9379 ;;
9380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9382 shlibpath_overrides_runpath=no
9383 hardcode_into_libs=yes
9384 ;;
9385 *) # from 4.6 on, and DragonFly
9386 shlibpath_overrides_runpath=yes
9387 hardcode_into_libs=yes
9388 ;;
9389 esac
9390 ;;
9391
9392 gnu*)
9393 version_type=linux
9394 need_lib_prefix=no
9395 need_version=no
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 hardcode_into_libs=yes
9400 ;;
9401
9402 hpux9* | hpux10* | hpux11*)
9403 # Give a soname corresponding to the major version so that dld.sl refuses to
9404 # link against other versions.
9405 version_type=sunos
9406 need_lib_prefix=no
9407 need_version=no
9408 case $host_cpu in
9409 ia64*)
9410 shrext_cmds='.so'
9411 hardcode_into_libs=yes
9412 dynamic_linker="$host_os dld.so"
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9417 if test "X$HPUX_IA64_MODE" = X32; then
9418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9419 else
9420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9421 fi
9422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9423 ;;
9424 hppa*64*)
9425 shrext_cmds='.sl'
9426 hardcode_into_libs=yes
9427 dynamic_linker="$host_os dld.sl"
9428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9434 ;;
9435 *)
9436 shrext_cmds='.sl'
9437 dynamic_linker="$host_os dld.sl"
9438 shlibpath_var=SHLIB_PATH
9439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 ;;
9443 esac
9444 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9445 postinstall_cmds='chmod 555 $lib'
9446 ;;
9447
9448 interix[3-9]*)
9449 version_type=linux
9450 need_lib_prefix=no
9451 need_version=no
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=no
9457 hardcode_into_libs=yes
9458 ;;
9459
9460 irix5* | irix6* | nonstopux*)
9461 case $host_os in
9462 nonstopux*) version_type=nonstopux ;;
9463 *)
9464 if test "$lt_cv_prog_gnu_ld" = yes; then
9465 version_type=linux
9466 else
9467 version_type=irix
9468 fi ;;
9469 esac
9470 need_lib_prefix=no
9471 need_version=no
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9474 case $host_os in
9475 irix5* | nonstopux*)
9476 libsuff= shlibsuff=
9477 ;;
9478 *)
9479 case $LD in # libtool.m4 will add one of these switches to LD
9480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9481 libsuff= shlibsuff= libmagic=32-bit;;
9482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9483 libsuff=32 shlibsuff=N32 libmagic=N32;;
9484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9486 *) libsuff= shlibsuff= libmagic=never-match;;
9487 esac
9488 ;;
9489 esac
9490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9491 shlibpath_overrides_runpath=no
9492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9494 hardcode_into_libs=yes
9495 ;;
9496
9497 # No shared lib support for Linux oldld, aout, or coff.
9498 linux*oldld* | linux*aout* | linux*coff*)
9499 dynamic_linker=no
9500 ;;
9501
9502 # This must be Linux ELF.
9503 linux* | k*bsd*-gnu)
9504 version_type=linux
9505 need_lib_prefix=no
9506 need_version=no
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 shlibpath_overrides_runpath=no
9512 # This implies no fast_install, which is unacceptable.
9513 # Some rework will be needed to allow for fast_install
9514 # before this can be enabled.
9515 hardcode_into_libs=yes
9516
9517 # find out which ABI we are using
9518 libsuff=
9519 case "$host_cpu" in
9520 x86_64*|s390x*|powerpc64*)
9521 echo '#line 9521 "configure"' > conftest.$ac_ext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523 (eval $ac_compile) 2>&5
9524 ac_status=$?
9525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; then
9527 case `/usr/bin/file conftest.$ac_objext` in
9528 *64-bit*)
9529 libsuff=64
9530 ;;
9531 esac
9532 fi
9533 rm -rf conftest*
9534 ;;
9535 esac
9536
9537 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9538
9539 # Append ld.so.conf contents to the search path
9540 if test -f /etc/ld.so.conf; then
9541 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' ' '`
9542 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9543 fi
9544
9545 # We used to test for /lib/ld.so.1 and disable shared libraries on
9546 # powerpc, because MkLinux only supported shared libraries with the
9547 # GNU dynamic linker. Since this was broken with cross compilers,
9548 # most powerpc-linux boxes support dynamic linking these days and
9549 # people can always --disable-shared, the test was removed, and we
9550 # assume the GNU/Linux dynamic linker is in use.
9551 dynamic_linker='GNU/Linux ld.so'
9552 ;;
9553
9554 netbsd*)
9555 version_type=sunos
9556 need_lib_prefix=no
9557 need_version=no
9558 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9561 dynamic_linker='NetBSD (a.out) ld.so'
9562 else
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 dynamic_linker='NetBSD ld.elf_so'
9566 fi
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=yes
9569 hardcode_into_libs=yes
9570 ;;
9571
9572 newsos6)
9573 version_type=linux
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 shlibpath_overrides_runpath=yes
9577 ;;
9578
9579 nto-qnx*)
9580 version_type=linux
9581 need_lib_prefix=no
9582 need_version=no
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=yes
9587 ;;
9588
9589 openbsd*)
9590 version_type=sunos
9591 sys_lib_dlsearch_path_spec="/usr/lib"
9592 need_lib_prefix=no
9593 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9594 case $host_os in
9595 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9596 *) need_version=no ;;
9597 esac
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9602 case $host_os in
9603 openbsd2.[89] | openbsd2.[89].*)
9604 shlibpath_overrides_runpath=no
9605 ;;
9606 *)
9607 shlibpath_overrides_runpath=yes
9608 ;;
9609 esac
9610 else
9611 shlibpath_overrides_runpath=yes
9612 fi
9613 ;;
9614
9615 os2*)
9616 libname_spec='$name'
9617 shrext_cmds=".dll"
9618 need_lib_prefix=no
9619 library_names_spec='$libname${shared_ext} $libname.a'
9620 dynamic_linker='OS/2 ld.exe'
9621 shlibpath_var=LIBPATH
9622 ;;
9623
9624 osf3* | osf4* | osf5*)
9625 version_type=osf
9626 need_lib_prefix=no
9627 need_version=no
9628 soname_spec='${libname}${release}${shared_ext}$major'
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9632 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9633 ;;
9634
9635 rdos*)
9636 dynamic_linker=no
9637 ;;
9638
9639 solaris*)
9640 version_type=linux
9641 need_lib_prefix=no
9642 need_version=no
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 hardcode_into_libs=yes
9648 # ldd complains unless libraries are executable
9649 postinstall_cmds='chmod +x $lib'
9650 ;;
9651
9652 sunos4*)
9653 version_type=sunos
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9655 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 shlibpath_overrides_runpath=yes
9658 if test "$with_gnu_ld" = yes; then
9659 need_lib_prefix=no
9660 fi
9661 need_version=yes
9662 ;;
9663
9664 sysv4 | sysv4.3*)
9665 version_type=linux
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 shlibpath_var=LD_LIBRARY_PATH
9669 case $host_vendor in
9670 sni)
9671 shlibpath_overrides_runpath=no
9672 need_lib_prefix=no
9673 export_dynamic_flag_spec='${wl}-Blargedynsym'
9674 runpath_var=LD_RUN_PATH
9675 ;;
9676 siemens)
9677 need_lib_prefix=no
9678 ;;
9679 motorola)
9680 need_lib_prefix=no
9681 need_version=no
9682 shlibpath_overrides_runpath=no
9683 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9684 ;;
9685 esac
9686 ;;
9687
9688 sysv4*MP*)
9689 if test -d /usr/nec ;then
9690 version_type=linux
9691 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9692 soname_spec='$libname${shared_ext}.$major'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 fi
9695 ;;
9696
9697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9698 version_type=freebsd-elf
9699 need_lib_prefix=no
9700 need_version=no
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 hardcode_into_libs=yes
9705 if test "$with_gnu_ld" = yes; then
9706 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9707 shlibpath_overrides_runpath=no
9708 else
9709 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9710 shlibpath_overrides_runpath=yes
9711 case $host_os in
9712 sco3.2v5*)
9713 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9714 ;;
9715 esac
9716 fi
9717 sys_lib_dlsearch_path_spec='/usr/lib'
9718 ;;
9719
9720 uts4*)
9721 version_type=linux
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 ;;
9726
9727 *)
9728 dynamic_linker=no
9729 ;;
9730 esac
9731 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9732 $as_echo "$dynamic_linker" >&6; }
9733 test "$dynamic_linker" = no && can_build_shared=no
9734
9735 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9736 $as_echo_n "(cached) " >&6
9737 else
9738 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9739 fi
9740
9741 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9742 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9743 $as_echo_n "(cached) " >&6
9744 else
9745 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9746 fi
9747
9748 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9749
9750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751 if test "$GCC" = yes; then
9752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9753 fi
9754
9755 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9757 hardcode_action=
9758 if test -n "$hardcode_libdir_flag_spec" || \
9759 test -n "$runpath_var" || \
9760 test "X$hardcode_automatic" = "Xyes" ; then
9761
9762 # We can hardcode non-existant directories.
9763 if test "$hardcode_direct" != no &&
9764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9765 # have to relink, otherwise we might link with an installed library
9766 # when we should be linking with a yet-to-be-installed one
9767 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9768 test "$hardcode_minus_L" != no; then
9769 # Linking always hardcodes the temporary library directory.
9770 hardcode_action=relink
9771 else
9772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9773 hardcode_action=immediate
9774 fi
9775 else
9776 # We cannot hardcode anything, or else we can only hardcode existing
9777 # directories.
9778 hardcode_action=unsupported
9779 fi
9780 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9781 $as_echo "$hardcode_action" >&6; }
9782
9783 if test "$hardcode_action" = relink; then
9784 # Fast installation is not supported
9785 enable_fast_install=no
9786 elif test "$shlibpath_overrides_runpath" = yes ||
9787 test "$enable_shared" = no; then
9788 # Fast installation is not necessary
9789 enable_fast_install=needless
9790 fi
9791
9792 striplib=
9793 old_striplib=
9794 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9795 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9796 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9797 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9798 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9799 { $as_echo "$as_me:$LINENO: result: yes" >&5
9800 $as_echo "yes" >&6; }
9801 else
9802 # FIXME - insert some real tests, host_os isn't really good enough
9803 case $host_os in
9804 darwin*)
9805 if test -n "$STRIP" ; then
9806 striplib="$STRIP -x"
9807 old_striplib="$STRIP -S"
9808 { $as_echo "$as_me:$LINENO: result: yes" >&5
9809 $as_echo "yes" >&6; }
9810 else
9811 { $as_echo "$as_me:$LINENO: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814 ;;
9815 *)
9816 { $as_echo "$as_me:$LINENO: result: no" >&5
9817 $as_echo "no" >&6; }
9818 ;;
9819 esac
9820 fi
9821
9822 if test "x$enable_dlopen" != xyes; then
9823 enable_dlopen=unknown
9824 enable_dlopen_self=unknown
9825 enable_dlopen_self_static=unknown
9826 else
9827 lt_cv_dlopen=no
9828 lt_cv_dlopen_libs=
9829
9830 case $host_os in
9831 beos*)
9832 lt_cv_dlopen="load_add_on"
9833 lt_cv_dlopen_libs=
9834 lt_cv_dlopen_self=yes
9835 ;;
9836
9837 mingw* | pw32*)
9838 lt_cv_dlopen="LoadLibrary"
9839 lt_cv_dlopen_libs=
9840 ;;
9841
9842 cygwin*)
9843 lt_cv_dlopen="dlopen"
9844 lt_cv_dlopen_libs=
9845 ;;
9846
9847 darwin*)
9848 # if libdl is installed we need to link against it
9849 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9852 $as_echo_n "(cached) " >&6
9853 else
9854 ac_check_lib_save_LIBS=$LIBS
9855 LIBS="-ldl $LIBS"
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862
9863 /* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 char dlopen ();
9870 int
9871 main ()
9872 {
9873 return dlopen ();
9874 ;
9875 return 0;
9876 }
9877 _ACEOF
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (ac_try="$ac_link"
9880 case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883 esac
9884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9885 $as_echo "$ac_try_echo") >&5
9886 (eval "$ac_link") 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && {
9893 test -z "$ac_c_werror_flag" ||
9894 test ! -s conftest.err
9895 } && test -s conftest$ac_exeext && {
9896 test "$cross_compiling" = yes ||
9897 $as_test_x conftest$ac_exeext
9898 }; then
9899 ac_cv_lib_dl_dlopen=yes
9900 else
9901 $as_echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_cv_lib_dl_dlopen=no
9905 fi
9906
9907 rm -rf conftest.dSYM
9908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909 conftest$ac_exeext conftest.$ac_ext
9910 LIBS=$ac_check_lib_save_LIBS
9911 fi
9912 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9914 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9916 else
9917
9918 lt_cv_dlopen="dyld"
9919 lt_cv_dlopen_libs=
9920 lt_cv_dlopen_self=yes
9921
9922 fi
9923
9924 ;;
9925
9926 *)
9927 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9928 $as_echo_n "checking for shl_load... " >&6; }
9929 if test "${ac_cv_func_shl_load+set}" = set; then
9930 $as_echo_n "(cached) " >&6
9931 else
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9940 #define shl_load innocuous_shl_load
9941
9942 /* System header to define __stub macros and hopefully few prototypes,
9943 which can conflict with char shl_load (); below.
9944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945 <limits.h> exists even on freestanding compilers. */
9946
9947 #ifdef __STDC__
9948 # include <limits.h>
9949 #else
9950 # include <assert.h>
9951 #endif
9952
9953 #undef shl_load
9954
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9958 #ifdef __cplusplus
9959 extern "C"
9960 #endif
9961 char shl_load ();
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined __stub_shl_load || defined __stub___shl_load
9966 choke me
9967 #endif
9968
9969 int
9970 main ()
9971 {
9972 return shl_load ();
9973 ;
9974 return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9984 $as_echo "$ac_try_echo") >&5
9985 (eval "$ac_link") 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest$ac_exeext && {
9995 test "$cross_compiling" = yes ||
9996 $as_test_x conftest$ac_exeext
9997 }; then
9998 ac_cv_func_shl_load=yes
9999 else
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003 ac_cv_func_shl_load=no
10004 fi
10005
10006 rm -rf conftest.dSYM
10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008 conftest$ac_exeext conftest.$ac_ext
10009 fi
10010 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10011 $as_echo "$ac_cv_func_shl_load" >&6; }
10012 if test "x$ac_cv_func_shl_load" = x""yes; then
10013 lt_cv_dlopen="shl_load"
10014 else
10015 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10016 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10017 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10018 $as_echo_n "(cached) " >&6
10019 else
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-ldld $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char shl_load ();
10036 int
10037 main ()
10038 {
10039 return shl_load ();
10040 ;
10041 return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (ac_try="$ac_link"
10046 case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049 esac
10050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10051 $as_echo "$ac_try_echo") >&5
10052 (eval "$ac_link") 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && {
10059 test -z "$ac_c_werror_flag" ||
10060 test ! -s conftest.err
10061 } && test -s conftest$ac_exeext && {
10062 test "$cross_compiling" = yes ||
10063 $as_test_x conftest$ac_exeext
10064 }; then
10065 ac_cv_lib_dld_shl_load=yes
10066 else
10067 $as_echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 ac_cv_lib_dld_shl_load=no
10071 fi
10072
10073 rm -rf conftest.dSYM
10074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_check_lib_save_LIBS
10077 fi
10078 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10079 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10080 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10082 else
10083 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10084 $as_echo_n "checking for dlopen... " >&6; }
10085 if test "${ac_cv_func_dlopen+set}" = set; then
10086 $as_echo_n "(cached) " >&6
10087 else
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h. */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10096 #define dlopen innocuous_dlopen
10097
10098 /* System header to define __stub macros and hopefully few prototypes,
10099 which can conflict with char dlopen (); below.
10100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10101 <limits.h> exists even on freestanding compilers. */
10102
10103 #ifdef __STDC__
10104 # include <limits.h>
10105 #else
10106 # include <assert.h>
10107 #endif
10108
10109 #undef dlopen
10110
10111 /* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10114 #ifdef __cplusplus
10115 extern "C"
10116 #endif
10117 char dlopen ();
10118 /* The GNU C library defines this for functions which it implements
10119 to always fail with ENOSYS. Some functions are actually named
10120 something starting with __ and the normal name is an alias. */
10121 #if defined __stub_dlopen || defined __stub___dlopen
10122 choke me
10123 #endif
10124
10125 int
10126 main ()
10127 {
10128 return dlopen ();
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10140 $as_echo "$ac_try_echo") >&5
10141 (eval "$ac_link") 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && {
10148 test -z "$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10150 } && test -s conftest$ac_exeext && {
10151 test "$cross_compiling" = yes ||
10152 $as_test_x conftest$ac_exeext
10153 }; then
10154 ac_cv_func_dlopen=yes
10155 else
10156 $as_echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_func_dlopen=no
10160 fi
10161
10162 rm -rf conftest.dSYM
10163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10164 conftest$ac_exeext conftest.$ac_ext
10165 fi
10166 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10167 $as_echo "$ac_cv_func_dlopen" >&6; }
10168 if test "x$ac_cv_func_dlopen" = x""yes; then
10169 lt_cv_dlopen="dlopen"
10170 else
10171 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10173 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10174 $as_echo_n "(cached) " >&6
10175 else
10176 ac_check_lib_save_LIBS=$LIBS
10177 LIBS="-ldl $LIBS"
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10188 #ifdef __cplusplus
10189 extern "C"
10190 #endif
10191 char dlopen ();
10192 int
10193 main ()
10194 {
10195 return dlopen ();
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10207 $as_echo "$ac_try_echo") >&5
10208 (eval "$ac_link") 2>conftest.er1
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } && {
10215 test -z "$ac_c_werror_flag" ||
10216 test ! -s conftest.err
10217 } && test -s conftest$ac_exeext && {
10218 test "$cross_compiling" = yes ||
10219 $as_test_x conftest$ac_exeext
10220 }; then
10221 ac_cv_lib_dl_dlopen=yes
10222 else
10223 $as_echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_cv_lib_dl_dlopen=no
10227 fi
10228
10229 rm -rf conftest.dSYM
10230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LIBS=$ac_check_lib_save_LIBS
10233 fi
10234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10235 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10236 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10238 else
10239 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10240 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10241 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10242 $as_echo_n "(cached) " >&6
10243 else
10244 ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-lsvld $LIBS"
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char dlopen ();
10260 int
10261 main ()
10262 {
10263 return dlopen ();
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273 esac
10274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275 $as_echo "$ac_try_echo") >&5
10276 (eval "$ac_link") 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && {
10283 test -z "$ac_c_werror_flag" ||
10284 test ! -s conftest.err
10285 } && test -s conftest$ac_exeext && {
10286 test "$cross_compiling" = yes ||
10287 $as_test_x conftest$ac_exeext
10288 }; then
10289 ac_cv_lib_svld_dlopen=yes
10290 else
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 ac_cv_lib_svld_dlopen=no
10295 fi
10296
10297 rm -rf conftest.dSYM
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299 conftest$ac_exeext conftest.$ac_ext
10300 LIBS=$ac_check_lib_save_LIBS
10301 fi
10302 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10303 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10304 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10306 else
10307 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10308 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10309 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10310 $as_echo_n "(cached) " >&6
10311 else
10312 ac_check_lib_save_LIBS=$LIBS
10313 LIBS="-ldld $LIBS"
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320
10321 /* Override any GCC internal prototype to avoid an error.
10322 Use char because int might match the return type of a GCC
10323 builtin and then its argument prototype would still apply. */
10324 #ifdef __cplusplus
10325 extern "C"
10326 #endif
10327 char dld_link ();
10328 int
10329 main ()
10330 {
10331 return dld_link ();
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341 esac
10342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10343 $as_echo "$ac_try_echo") >&5
10344 (eval "$ac_link") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest$ac_exeext && {
10354 test "$cross_compiling" = yes ||
10355 $as_test_x conftest$ac_exeext
10356 }; then
10357 ac_cv_lib_dld_dld_link=yes
10358 else
10359 $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ac_cv_lib_dld_dld_link=no
10363 fi
10364
10365 rm -rf conftest.dSYM
10366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367 conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10369 fi
10370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10371 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10372 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10373 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10374 fi
10375
10376
10377 fi
10378
10379
10380 fi
10381
10382
10383 fi
10384
10385
10386 fi
10387
10388
10389 fi
10390
10391 ;;
10392 esac
10393
10394 if test "x$lt_cv_dlopen" != xno; then
10395 enable_dlopen=yes
10396 else
10397 enable_dlopen=no
10398 fi
10399
10400 case $lt_cv_dlopen in
10401 dlopen)
10402 save_CPPFLAGS="$CPPFLAGS"
10403 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10404
10405 save_LDFLAGS="$LDFLAGS"
10406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10407
10408 save_LIBS="$LIBS"
10409 LIBS="$lt_cv_dlopen_libs $LIBS"
10410
10411 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10412 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10413 if test "${lt_cv_dlopen_self+set}" = set; then
10414 $as_echo_n "(cached) " >&6
10415 else
10416 if test "$cross_compiling" = yes; then :
10417 lt_cv_dlopen_self=cross
10418 else
10419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10420 lt_status=$lt_dlunknown
10421 cat > conftest.$ac_ext <<EOF
10422 #line 10422 "configure"
10423 #include "confdefs.h"
10424
10425 #if HAVE_DLFCN_H
10426 #include <dlfcn.h>
10427 #endif
10428
10429 #include <stdio.h>
10430
10431 #ifdef RTLD_GLOBAL
10432 # define LT_DLGLOBAL RTLD_GLOBAL
10433 #else
10434 # ifdef DL_GLOBAL
10435 # define LT_DLGLOBAL DL_GLOBAL
10436 # else
10437 # define LT_DLGLOBAL 0
10438 # endif
10439 #endif
10440
10441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10442 find out it does not work in some platform. */
10443 #ifndef LT_DLLAZY_OR_NOW
10444 # ifdef RTLD_LAZY
10445 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10446 # else
10447 # ifdef DL_LAZY
10448 # define LT_DLLAZY_OR_NOW DL_LAZY
10449 # else
10450 # ifdef RTLD_NOW
10451 # define LT_DLLAZY_OR_NOW RTLD_NOW
10452 # else
10453 # ifdef DL_NOW
10454 # define LT_DLLAZY_OR_NOW DL_NOW
10455 # else
10456 # define LT_DLLAZY_OR_NOW 0
10457 # endif
10458 # endif
10459 # endif
10460 # endif
10461 #endif
10462
10463 #ifdef __cplusplus
10464 extern "C" void exit (int);
10465 #endif
10466
10467 void fnord() { int i=42;}
10468 int main ()
10469 {
10470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10471 int status = $lt_dlunknown;
10472
10473 if (self)
10474 {
10475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10477 /* dlclose (self); */
10478 }
10479 else
10480 puts (dlerror ());
10481
10482 exit (status);
10483 }
10484 EOF
10485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>&5
10487 ac_status=$?
10488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10490 (./conftest; exit; ) >&5 2>/dev/null
10491 lt_status=$?
10492 case x$lt_status in
10493 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10494 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10495 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10496 esac
10497 else :
10498 # compilation failed
10499 lt_cv_dlopen_self=no
10500 fi
10501 fi
10502 rm -fr conftest*
10503
10504
10505 fi
10506 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10507 $as_echo "$lt_cv_dlopen_self" >&6; }
10508
10509 if test "x$lt_cv_dlopen_self" = xyes; then
10510 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10511 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10512 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10513 if test "${lt_cv_dlopen_self_static+set}" = set; then
10514 $as_echo_n "(cached) " >&6
10515 else
10516 if test "$cross_compiling" = yes; then :
10517 lt_cv_dlopen_self_static=cross
10518 else
10519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10520 lt_status=$lt_dlunknown
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10522 "configure"
10523 #include "confdefs.h"
10524
10525 #if HAVE_DLFCN_H
10526 #include <dlfcn.h>
10527 #endif
10528
10529 #include <stdio.h>
10530
10531 #ifdef RTLD_GLOBAL
10532 # define LT_DLGLOBAL RTLD_GLOBAL
10533 #else
10534 # ifdef DL_GLOBAL
10535 # define LT_DLGLOBAL DL_GLOBAL
10536 # else
10537 # define LT_DLGLOBAL 0
10538 # endif
10539 #endif
10540
10541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10542 find out it does not work in some platform. */
10543 #ifndef LT_DLLAZY_OR_NOW
10544 # ifdef RTLD_LAZY
10545 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10546 # else
10547 # ifdef DL_LAZY
10548 # define LT_DLLAZY_OR_NOW DL_LAZY
10549 # else
10550 # ifdef RTLD_NOW
10551 # define LT_DLLAZY_OR_NOW RTLD_NOW
10552 # else
10553 # ifdef DL_NOW
10554 # define LT_DLLAZY_OR_NOW DL_NOW
10555 # else
10556 # define LT_DLLAZY_OR_NOW 0
10557 # endif
10558 # endif
10559 # endif
10560 # endif
10561 #endif
10562
10563 #ifdef __cplusplus
10564 extern "C" void exit (int);
10565 #endif
10566
10567 void fnord() { int i=42;}
10568 int main ()
10569 {
10570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10571 int status = $lt_dlunknown;
10572
10573 if (self)
10574 {
10575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10576 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10577 /* dlclose (self); */
10578 }
10579 else
10580 puts (dlerror ());
10581
10582 exit (status);
10583 }
10584 EOF
10585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10586 (eval $ac_link) 2>&5
10587 ac_status=$?
10588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10590 (./conftest; exit; ) >&5 2>/dev/null
10591 lt_status=$?
10592 case x$lt_status in
10593 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10594 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10595 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10596 esac
10597 else :
10598 # compilation failed
10599 lt_cv_dlopen_self_static=no
10600 fi
10601 fi
10602 rm -fr conftest*
10603
10604
10605 fi
10606 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10607 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10608 fi
10609
10610 CPPFLAGS="$save_CPPFLAGS"
10611 LDFLAGS="$save_LDFLAGS"
10612 LIBS="$save_LIBS"
10613 ;;
10614 esac
10615
10616 case $lt_cv_dlopen_self in
10617 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10618 *) enable_dlopen_self=unknown ;;
10619 esac
10620
10621 case $lt_cv_dlopen_self_static in
10622 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10623 *) enable_dlopen_self_static=unknown ;;
10624 esac
10625 fi
10626
10627
10628 # Report which library types will actually be built
10629 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10630 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10631 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10632 $as_echo "$can_build_shared" >&6; }
10633
10634 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10635 $as_echo_n "checking whether to build shared libraries... " >&6; }
10636 test "$can_build_shared" = "no" && enable_shared=no
10637
10638 # On AIX, shared libraries and static libraries use the same namespace, and
10639 # are all built from PIC.
10640 case $host_os in
10641 aix3*)
10642 test "$enable_shared" = yes && enable_static=no
10643 if test -n "$RANLIB"; then
10644 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10645 postinstall_cmds='$RANLIB $lib'
10646 fi
10647 ;;
10648
10649 aix[4-9]*)
10650 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10651 test "$enable_shared" = yes && enable_static=no
10652 fi
10653 ;;
10654 esac
10655 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10656 $as_echo "$enable_shared" >&6; }
10657
10658 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10659 $as_echo_n "checking whether to build static libraries... " >&6; }
10660 # Make sure either enable_shared or enable_static is yes.
10661 test "$enable_shared" = yes || enable_static=yes
10662 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10663 $as_echo "$enable_static" >&6; }
10664
10665 # The else clause should only fire when bootstrapping the
10666 # libtool distribution, otherwise you forgot to ship ltmain.sh
10667 # with your package, and you will get complaints that there are
10668 # no rules to generate ltmain.sh.
10669 if test -f "$ltmain"; then
10670 # See if we are running on zsh, and set the options which allow our commands through
10671 # without removal of \ escapes.
10672 if test -n "${ZSH_VERSION+set}" ; then
10673 setopt NO_GLOB_SUBST
10674 fi
10675 # Now quote all the things that may contain metacharacters while being
10676 # careful not to overquote the AC_SUBSTed values. We take copies of the
10677 # variables and quote the copies for generation of the libtool script.
10678 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10679 SED SHELL STRIP \
10680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10682 deplibs_check_method reload_flag reload_cmds need_locks \
10683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10684 lt_cv_sys_global_symbol_to_c_name_address \
10685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10686 old_postinstall_cmds old_postuninstall_cmds \
10687 compiler \
10688 CC \
10689 LD \
10690 lt_prog_compiler_wl \
10691 lt_prog_compiler_pic \
10692 lt_prog_compiler_static \
10693 lt_prog_compiler_no_builtin_flag \
10694 export_dynamic_flag_spec \
10695 thread_safe_flag_spec \
10696 whole_archive_flag_spec \
10697 enable_shared_with_static_runtimes \
10698 old_archive_cmds \
10699 old_archive_from_new_cmds \
10700 predep_objects \
10701 postdep_objects \
10702 predeps \
10703 postdeps \
10704 compiler_lib_search_path \
10705 compiler_lib_search_dirs \
10706 archive_cmds \
10707 archive_expsym_cmds \
10708 postinstall_cmds \
10709 postuninstall_cmds \
10710 old_archive_from_expsyms_cmds \
10711 allow_undefined_flag \
10712 no_undefined_flag \
10713 export_symbols_cmds \
10714 hardcode_libdir_flag_spec \
10715 hardcode_libdir_flag_spec_ld \
10716 hardcode_libdir_separator \
10717 hardcode_automatic \
10718 module_cmds \
10719 module_expsym_cmds \
10720 lt_cv_prog_compiler_c_o \
10721 fix_srcfile_path \
10722 exclude_expsyms \
10723 include_expsyms; do
10724
10725 case $var in
10726 old_archive_cmds | \
10727 old_archive_from_new_cmds | \
10728 archive_cmds | \
10729 archive_expsym_cmds | \
10730 module_cmds | \
10731 module_expsym_cmds | \
10732 old_archive_from_expsyms_cmds | \
10733 export_symbols_cmds | \
10734 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10735 postinstall_cmds | postuninstall_cmds | \
10736 old_postinstall_cmds | old_postuninstall_cmds | \
10737 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10738 # Double-quote double-evaled strings.
10739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10740 ;;
10741 *)
10742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10743 ;;
10744 esac
10745 done
10746
10747 case $lt_echo in
10748 *'\$0 --fallback-echo"')
10749 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10750 ;;
10751 esac
10752
10753 cfgfile="${ofile}T"
10754 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10755 $rm -f "$cfgfile"
10756 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10757 $as_echo "$as_me: creating $ofile" >&6;}
10758
10759 cat <<__EOF__ >> "$cfgfile"
10760 #! $SHELL
10761
10762 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10763 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10764 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10765 #
10766 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10767 # Free Software Foundation, Inc.
10768 #
10769 # This file is part of GNU Libtool:
10770 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10771 #
10772 # This program is free software; you can redistribute it and/or modify
10773 # it under the terms of the GNU General Public License as published by
10774 # the Free Software Foundation; either version 2 of the License, or
10775 # (at your option) any later version.
10776 #
10777 # This program is distributed in the hope that it will be useful, but
10778 # WITHOUT ANY WARRANTY; without even the implied warranty of
10779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10780 # General Public License for more details.
10781 #
10782 # You should have received a copy of the GNU General Public License
10783 # along with this program; if not, write to the Free Software
10784 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10785 #
10786 # As a special exception to the GNU General Public License, if you
10787 # distribute this file as part of a program that contains a
10788 # configuration script generated by Autoconf, you may include it under
10789 # the same distribution terms that you use for the rest of that program.
10790
10791 # A sed program that does not truncate output.
10792 SED=$lt_SED
10793
10794 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10795 Xsed="$SED -e 1s/^X//"
10796
10797 # The HP-UX ksh and POSIX shell print the target directory to stdout
10798 # if CDPATH is set.
10799 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10800
10801 # The names of the tagged configurations supported by this script.
10802 available_tags=
10803
10804 # ### BEGIN LIBTOOL CONFIG
10805
10806 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10807
10808 # Shell to use when invoking shell scripts.
10809 SHELL=$lt_SHELL
10810
10811 # Whether or not to build shared libraries.
10812 build_libtool_libs=$enable_shared
10813
10814 # Whether or not to build static libraries.
10815 build_old_libs=$enable_static
10816
10817 # Whether or not to add -lc for building shared libraries.
10818 build_libtool_need_lc=$archive_cmds_need_lc
10819
10820 # Whether or not to disallow shared libs when runtime libs are static
10821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10822
10823 # Whether or not to optimize for fast installation.
10824 fast_install=$enable_fast_install
10825
10826 # The host system.
10827 host_alias=$host_alias
10828 host=$host
10829 host_os=$host_os
10830
10831 # The build system.
10832 build_alias=$build_alias
10833 build=$build
10834 build_os=$build_os
10835
10836 # An echo program that does not interpret backslashes.
10837 echo=$lt_echo
10838
10839 # The archiver.
10840 AR=$lt_AR
10841 AR_FLAGS=$lt_AR_FLAGS
10842
10843 # A C compiler.
10844 LTCC=$lt_LTCC
10845
10846 # LTCC compiler flags.
10847 LTCFLAGS=$lt_LTCFLAGS
10848
10849 # A language-specific compiler.
10850 CC=$lt_compiler
10851
10852 # Is the compiler the GNU C compiler?
10853 with_gcc=$GCC
10854
10855 # An ERE matcher.
10856 EGREP=$lt_EGREP
10857
10858 # The linker used to build libraries.
10859 LD=$lt_LD
10860
10861 # Whether we need hard or soft links.
10862 LN_S=$lt_LN_S
10863
10864 # A BSD-compatible nm program.
10865 NM=$lt_NM
10866
10867 # A symbol stripping program
10868 STRIP=$lt_STRIP
10869
10870 # Used to examine libraries when file_magic_cmd begins "file"
10871 MAGIC_CMD=$MAGIC_CMD
10872
10873 # Used on cygwin: DLL creation program.
10874 DLLTOOL="$DLLTOOL"
10875
10876 # Used on cygwin: object dumper.
10877 OBJDUMP="$OBJDUMP"
10878
10879 # Used on cygwin: assembler.
10880 AS="$AS"
10881
10882 # The name of the directory that contains temporary libtool files.
10883 objdir=$objdir
10884
10885 # How to create reloadable object files.
10886 reload_flag=$lt_reload_flag
10887 reload_cmds=$lt_reload_cmds
10888
10889 # How to pass a linker flag through the compiler.
10890 wl=$lt_lt_prog_compiler_wl
10891
10892 # Object file suffix (normally "o").
10893 objext="$ac_objext"
10894
10895 # Old archive suffix (normally "a").
10896 libext="$libext"
10897
10898 # Shared library suffix (normally ".so").
10899 shrext_cmds='$shrext_cmds'
10900
10901 # Executable file suffix (normally "").
10902 exeext="$exeext"
10903
10904 # Additional compiler flags for building library objects.
10905 pic_flag=$lt_lt_prog_compiler_pic
10906 pic_mode=$pic_mode
10907
10908 # What is the maximum length of a command?
10909 max_cmd_len=$lt_cv_sys_max_cmd_len
10910
10911 # Does compiler simultaneously support -c and -o options?
10912 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10913
10914 # Must we lock files when doing compilation?
10915 need_locks=$lt_need_locks
10916
10917 # Do we need the lib prefix for modules?
10918 need_lib_prefix=$need_lib_prefix
10919
10920 # Do we need a version for libraries?
10921 need_version=$need_version
10922
10923 # Whether dlopen is supported.
10924 dlopen_support=$enable_dlopen
10925
10926 # Whether dlopen of programs is supported.
10927 dlopen_self=$enable_dlopen_self
10928
10929 # Whether dlopen of statically linked programs is supported.
10930 dlopen_self_static=$enable_dlopen_self_static
10931
10932 # Compiler flag to prevent dynamic linking.
10933 link_static_flag=$lt_lt_prog_compiler_static
10934
10935 # Compiler flag to turn off builtin functions.
10936 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10937
10938 # Compiler flag to allow reflexive dlopens.
10939 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10940
10941 # Compiler flag to generate shared objects directly from archives.
10942 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10943
10944 # Compiler flag to generate thread-safe objects.
10945 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10946
10947 # Library versioning type.
10948 version_type=$version_type
10949
10950 # Format of library name prefix.
10951 libname_spec=$lt_libname_spec
10952
10953 # List of archive names. First name is the real one, the rest are links.
10954 # The last name is the one that the linker finds with -lNAME.
10955 library_names_spec=$lt_library_names_spec
10956
10957 # The coded name of the library, if different from the real name.
10958 soname_spec=$lt_soname_spec
10959
10960 # Commands used to build and install an old-style archive.
10961 RANLIB=$lt_RANLIB
10962 old_archive_cmds=$lt_old_archive_cmds
10963 old_postinstall_cmds=$lt_old_postinstall_cmds
10964 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10965
10966 # Create an old-style archive from a shared archive.
10967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10968
10969 # Create a temporary old-style archive to link instead of a shared archive.
10970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10971
10972 # Commands used to build and install a shared archive.
10973 archive_cmds=$lt_archive_cmds
10974 archive_expsym_cmds=$lt_archive_expsym_cmds
10975 postinstall_cmds=$lt_postinstall_cmds
10976 postuninstall_cmds=$lt_postuninstall_cmds
10977
10978 # Commands used to build a loadable module (assumed same as above if empty)
10979 module_cmds=$lt_module_cmds
10980 module_expsym_cmds=$lt_module_expsym_cmds
10981
10982 # Commands to strip libraries.
10983 old_striplib=$lt_old_striplib
10984 striplib=$lt_striplib
10985
10986 # Dependencies to place before the objects being linked to create a
10987 # shared library.
10988 predep_objects=$lt_predep_objects
10989
10990 # Dependencies to place after the objects being linked to create a
10991 # shared library.
10992 postdep_objects=$lt_postdep_objects
10993
10994 # Dependencies to place before the objects being linked to create a
10995 # shared library.
10996 predeps=$lt_predeps
10997
10998 # Dependencies to place after the objects being linked to create a
10999 # shared library.
11000 postdeps=$lt_postdeps
11001
11002 # The directories searched by this compiler when creating a shared
11003 # library
11004 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11005
11006 # The library search path used internally by the compiler when linking
11007 # a shared library.
11008 compiler_lib_search_path=$lt_compiler_lib_search_path
11009
11010 # Method to check whether dependent libraries are shared objects.
11011 deplibs_check_method=$lt_deplibs_check_method
11012
11013 # Command to use when deplibs_check_method == file_magic.
11014 file_magic_cmd=$lt_file_magic_cmd
11015
11016 # Flag that allows shared libraries with undefined symbols to be built.
11017 allow_undefined_flag=$lt_allow_undefined_flag
11018
11019 # Flag that forces no undefined symbols.
11020 no_undefined_flag=$lt_no_undefined_flag
11021
11022 # Commands used to finish a libtool library installation in a directory.
11023 finish_cmds=$lt_finish_cmds
11024
11025 # Same as above, but a single script fragment to be evaled but not shown.
11026 finish_eval=$lt_finish_eval
11027
11028 # Take the output of nm and produce a listing of raw symbols and C names.
11029 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11030
11031 # Transform the output of nm in a proper C declaration
11032 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11033
11034 # Transform the output of nm in a C name address pair
11035 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11036
11037 # This is the shared library runtime path variable.
11038 runpath_var=$runpath_var
11039
11040 # This is the shared library path variable.
11041 shlibpath_var=$shlibpath_var
11042
11043 # Is shlibpath searched before the hard-coded library search path?
11044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11045
11046 # How to hardcode a shared library path into an executable.
11047 hardcode_action=$hardcode_action
11048
11049 # Whether we should hardcode library paths into libraries.
11050 hardcode_into_libs=$hardcode_into_libs
11051
11052 # Flag to hardcode \$libdir into a binary during linking.
11053 # This must work even if \$libdir does not exist.
11054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11055
11056 # If ld is used when linking, flag to hardcode \$libdir into
11057 # a binary during linking. This must work even if \$libdir does
11058 # not exist.
11059 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11060
11061 # Whether we need a single -rpath flag with a separated argument.
11062 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11063
11064 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11065 # resulting binary.
11066 hardcode_direct=$hardcode_direct
11067
11068 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11069 # resulting binary.
11070 hardcode_minus_L=$hardcode_minus_L
11071
11072 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11073 # the resulting binary.
11074 hardcode_shlibpath_var=$hardcode_shlibpath_var
11075
11076 # Set to yes if building a shared library automatically hardcodes DIR into the library
11077 # and all subsequent libraries and executables linked against it.
11078 hardcode_automatic=$hardcode_automatic
11079
11080 # Variables whose values should be saved in libtool wrapper scripts and
11081 # restored at relink time.
11082 variables_saved_for_relink="$variables_saved_for_relink"
11083
11084 # Whether libtool must link a program against all its dependency libraries.
11085 link_all_deplibs=$link_all_deplibs
11086
11087 # Compile-time system search path for libraries
11088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11089
11090 # Run-time system search path for libraries
11091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11092
11093 # Fix the shell variable \$srcfile for the compiler.
11094 fix_srcfile_path=$lt_fix_srcfile_path
11095
11096 # Set to yes if exported symbols are required.
11097 always_export_symbols=$always_export_symbols
11098
11099 # The commands to list exported symbols.
11100 export_symbols_cmds=$lt_export_symbols_cmds
11101
11102 # The commands to extract the exported symbol list from a shared archive.
11103 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11104
11105 # Symbols that should not be listed in the preloaded symbols.
11106 exclude_expsyms=$lt_exclude_expsyms
11107
11108 # Symbols that must always be exported.
11109 include_expsyms=$lt_include_expsyms
11110
11111 # ### END LIBTOOL CONFIG
11112
11113 __EOF__
11114
11115
11116 case $host_os in
11117 aix3*)
11118 cat <<\EOF >> "$cfgfile"
11119
11120 # AIX sometimes has problems with the GCC collect2 program. For some
11121 # reason, if we set the COLLECT_NAMES environment variable, the problems
11122 # vanish in a puff of smoke.
11123 if test "X${COLLECT_NAMES+set}" != Xset; then
11124 COLLECT_NAMES=
11125 export COLLECT_NAMES
11126 fi
11127 EOF
11128 ;;
11129 esac
11130
11131 # We use sed instead of cat because bash on DJGPP gets confused if
11132 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11133 # text mode, it properly converts lines to CR/LF. This bash problem
11134 # is reportedly fixed, but why not run on old versions too?
11135 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11136
11137 mv -f "$cfgfile" "$ofile" || \
11138 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11139 chmod +x "$ofile"
11140
11141 else
11142 # If there is no Makefile yet, we rely on a make rule to execute
11143 # `config.status --recheck' to rerun these tests and create the
11144 # libtool script then.
11145 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11146 if test -f "$ltmain_in"; then
11147 test -f Makefile && make "$ltmain"
11148 fi
11149 fi
11150
11151
11152 ac_ext=c
11153 ac_cpp='$CPP $CPPFLAGS'
11154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11157
11158 CC="$lt_save_CC"
11159
11160
11161 # Check whether --with-tags was given.
11162 if test "${with_tags+set}" = set; then
11163 withval=$with_tags; tagnames="$withval"
11164 fi
11165
11166
11167 if test -f "$ltmain" && test -n "$tagnames"; then
11168 if test ! -f "${ofile}"; then
11169 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11170 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11171 fi
11172
11173 if test -z "$LTCC"; then
11174 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11175 if test -z "$LTCC"; then
11176 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11177 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11178 else
11179 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11180 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11181 fi
11182 fi
11183 if test -z "$LTCFLAGS"; then
11184 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11185 fi
11186
11187 # Extract list of available tagged configurations in $ofile.
11188 # Note that this assumes the entire list is on one line.
11189 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11190
11191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11192 for tagname in $tagnames; do
11193 IFS="$lt_save_ifs"
11194 # Check whether tagname contains only valid characters
11195 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11196 "") ;;
11197 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11198 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11199 { (exit 1); exit 1; }; }
11200 ;;
11201 esac
11202
11203 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11204 then
11205 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11206 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11207 { (exit 1); exit 1; }; }
11208 fi
11209
11210 # Update the list of available tags.
11211 if test -n "$tagname"; then
11212 echo appending configuration tag \"$tagname\" to $ofile
11213
11214 case $tagname in
11215 CXX)
11216 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11217 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11218 (test "X$CXX" != "Xg++"))) ; then
11219 ac_ext=cpp
11220 ac_cpp='$CXXCPP $CPPFLAGS'
11221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11224
11225
11226
11227
11228 archive_cmds_need_lc_CXX=no
11229 allow_undefined_flag_CXX=
11230 always_export_symbols_CXX=no
11231 archive_expsym_cmds_CXX=
11232 export_dynamic_flag_spec_CXX=
11233 hardcode_direct_CXX=no
11234 hardcode_libdir_flag_spec_CXX=
11235 hardcode_libdir_flag_spec_ld_CXX=
11236 hardcode_libdir_separator_CXX=
11237 hardcode_minus_L_CXX=no
11238 hardcode_shlibpath_var_CXX=unsupported
11239 hardcode_automatic_CXX=no
11240 module_cmds_CXX=
11241 module_expsym_cmds_CXX=
11242 link_all_deplibs_CXX=unknown
11243 old_archive_cmds_CXX=$old_archive_cmds
11244 no_undefined_flag_CXX=
11245 whole_archive_flag_spec_CXX=
11246 enable_shared_with_static_runtimes_CXX=no
11247
11248 # Dependencies to place before and after the object being linked:
11249 predep_objects_CXX=
11250 postdep_objects_CXX=
11251 predeps_CXX=
11252 postdeps_CXX=
11253 compiler_lib_search_path_CXX=
11254 compiler_lib_search_dirs_CXX=
11255
11256 # Source file extension for C++ test sources.
11257 ac_ext=cpp
11258
11259 # Object file extension for compiled C++ test sources.
11260 objext=o
11261 objext_CXX=$objext
11262
11263 # Code to be used in simple compile tests
11264 lt_simple_compile_test_code="int some_variable = 0;"
11265
11266 # Code to be used in simple link tests
11267 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11268
11269 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11270
11271 # If no C compiler was specified, use CC.
11272 LTCC=${LTCC-"$CC"}
11273
11274 # If no C compiler flags were specified, use CFLAGS.
11275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11276
11277 # Allow CC to be a program name with arguments.
11278 compiler=$CC
11279
11280
11281 # save warnings/boilerplate of simple test code
11282 ac_outfile=conftest.$ac_objext
11283 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11284 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11285 _lt_compiler_boilerplate=`cat conftest.err`
11286 $rm conftest*
11287
11288 ac_outfile=conftest.$ac_objext
11289 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11290 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11291 _lt_linker_boilerplate=`cat conftest.err`
11292 $rm -r conftest*
11293
11294
11295 # Allow CC to be a program name with arguments.
11296 lt_save_CC=$CC
11297 lt_save_LD=$LD
11298 lt_save_GCC=$GCC
11299 GCC=$GXX
11300 lt_save_with_gnu_ld=$with_gnu_ld
11301 lt_save_path_LD=$lt_cv_path_LD
11302 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11303 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11304 else
11305 $as_unset lt_cv_prog_gnu_ld
11306 fi
11307 if test -n "${lt_cv_path_LDCXX+set}"; then
11308 lt_cv_path_LD=$lt_cv_path_LDCXX
11309 else
11310 $as_unset lt_cv_path_LD
11311 fi
11312 test -z "${LDCXX+set}" || LD=$LDCXX
11313 CC=${CXX-"c++"}
11314 compiler=$CC
11315 compiler_CXX=$CC
11316 for cc_temp in $compiler""; do
11317 case $cc_temp in
11318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11320 \-*) ;;
11321 *) break;;
11322 esac
11323 done
11324 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11325
11326
11327 # We don't want -fno-exception wen compiling C++ code, so set the
11328 # no_builtin_flag separately
11329 if test "$GXX" = yes; then
11330 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11331 else
11332 lt_prog_compiler_no_builtin_flag_CXX=
11333 fi
11334
11335 if test "$GXX" = yes; then
11336 # Set up default GNU C++ configuration
11337
11338
11339 # Check whether --with-gnu-ld was given.
11340 if test "${with_gnu_ld+set}" = set; then
11341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11342 else
11343 with_gnu_ld=no
11344 fi
11345
11346 ac_prog=ld
11347 if test "$GCC" = yes; then
11348 # Check if gcc -print-prog-name=ld gives a path.
11349 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11350 $as_echo_n "checking for ld used by $CC... " >&6; }
11351 case $host in
11352 *-*-mingw*)
11353 # gcc leaves a trailing carriage return which upsets mingw
11354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11355 *)
11356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11357 esac
11358 case $ac_prog in
11359 # Accept absolute paths.
11360 [\\/]* | ?:[\\/]*)
11361 re_direlt='/[^/][^/]*/\.\./'
11362 # Canonicalize the pathname of ld
11363 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11364 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11365 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11366 done
11367 test -z "$LD" && LD="$ac_prog"
11368 ;;
11369 "")
11370 # If it fails, then pretend we aren't using GCC.
11371 ac_prog=ld
11372 ;;
11373 *)
11374 # If it is relative, then search for the first ld in PATH.
11375 with_gnu_ld=unknown
11376 ;;
11377 esac
11378 elif test "$with_gnu_ld" = yes; then
11379 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11380 $as_echo_n "checking for GNU ld... " >&6; }
11381 else
11382 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11383 $as_echo_n "checking for non-GNU ld... " >&6; }
11384 fi
11385 if test "${lt_cv_path_LD+set}" = set; then
11386 $as_echo_n "(cached) " >&6
11387 else
11388 if test -z "$LD"; then
11389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11390 for ac_dir in $PATH; do
11391 IFS="$lt_save_ifs"
11392 test -z "$ac_dir" && ac_dir=.
11393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11394 lt_cv_path_LD="$ac_dir/$ac_prog"
11395 # Check to see if the program is GNU ld. I'd rather use --version,
11396 # but apparently some variants of GNU ld only accept -v.
11397 # Break only if it was the GNU/non-GNU ld that we prefer.
11398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11399 *GNU* | *'with BFD'*)
11400 test "$with_gnu_ld" != no && break
11401 ;;
11402 *)
11403 test "$with_gnu_ld" != yes && break
11404 ;;
11405 esac
11406 fi
11407 done
11408 IFS="$lt_save_ifs"
11409 else
11410 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11411 fi
11412 fi
11413
11414 LD="$lt_cv_path_LD"
11415 if test -n "$LD"; then
11416 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11417 $as_echo "$LD" >&6; }
11418 else
11419 { $as_echo "$as_me:$LINENO: result: no" >&5
11420 $as_echo "no" >&6; }
11421 fi
11422 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11423 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11424 { (exit 1); exit 1; }; }
11425 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11426 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11427 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11428 $as_echo_n "(cached) " >&6
11429 else
11430 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11431 case `$LD -v 2>&1 </dev/null` in
11432 *GNU* | *'with BFD'*)
11433 lt_cv_prog_gnu_ld=yes
11434 ;;
11435 *)
11436 lt_cv_prog_gnu_ld=no
11437 ;;
11438 esac
11439 fi
11440 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11441 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11442 with_gnu_ld=$lt_cv_prog_gnu_ld
11443
11444
11445
11446 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11447 # archiving commands below assume that GNU ld is being used.
11448 if test "$with_gnu_ld" = yes; then
11449 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11450 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'
11451
11452 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11454
11455 # If archive_cmds runs LD, not CC, wlarc should be empty
11456 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11457 # investigate it a little bit more. (MM)
11458 wlarc='${wl}'
11459
11460 # ancient GNU ld didn't support --whole-archive et. al.
11461 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11462 grep 'no-whole-archive' > /dev/null; then
11463 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11464 else
11465 whole_archive_flag_spec_CXX=
11466 fi
11467 else
11468 with_gnu_ld=no
11469 wlarc=
11470
11471 # A generic and very simple default shared library creation
11472 # command for GNU C++ for the case where it uses the native
11473 # linker, instead of GNU ld. If possible, this setting should
11474 # overridden to take advantage of the native linker features on
11475 # the platform it is being used on.
11476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11477 fi
11478
11479 # Commands to make compiler produce verbose output that lists
11480 # what "hidden" libraries, object files and flags are used when
11481 # linking a shared library.
11482 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11483
11484 else
11485 GXX=no
11486 with_gnu_ld=no
11487 wlarc=
11488 fi
11489
11490 # PORTME: fill in a description of your system's C++ link characteristics
11491 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11492 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11493 ld_shlibs_CXX=yes
11494 case $host_os in
11495 aix3*)
11496 # FIXME: insert proper C++ library support
11497 ld_shlibs_CXX=no
11498 ;;
11499 aix[4-9]*)
11500 if test "$host_cpu" = ia64; then
11501 # On IA64, the linker does run time linking by default, so we don't
11502 # have to do anything special.
11503 aix_use_runtimelinking=no
11504 exp_sym_flag='-Bexport'
11505 no_entry_flag=""
11506 else
11507 aix_use_runtimelinking=no
11508
11509 # Test if we are trying to use run time linking or normal
11510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11511 # need to do runtime linking.
11512 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11513 for ld_flag in $LDFLAGS; do
11514 case $ld_flag in
11515 *-brtl*)
11516 aix_use_runtimelinking=yes
11517 break
11518 ;;
11519 esac
11520 done
11521 ;;
11522 esac
11523
11524 exp_sym_flag='-bexport'
11525 no_entry_flag='-bnoentry'
11526 fi
11527
11528 # When large executables or shared objects are built, AIX ld can
11529 # have problems creating the table of contents. If linking a library
11530 # or program results in "error TOC overflow" add -mminimal-toc to
11531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11533
11534 archive_cmds_CXX=''
11535 hardcode_direct_CXX=yes
11536 hardcode_libdir_separator_CXX=':'
11537 link_all_deplibs_CXX=yes
11538
11539 if test "$GXX" = yes; then
11540 case $host_os in aix4.[012]|aix4.[012].*)
11541 # We only want to do this on AIX 4.2 and lower, the check
11542 # below for broken collect2 doesn't work under 4.3+
11543 collect2name=`${CC} -print-prog-name=collect2`
11544 if test -f "$collect2name" && \
11545 strings "$collect2name" | grep resolve_lib_name >/dev/null
11546 then
11547 # We have reworked collect2
11548 :
11549 else
11550 # We have old collect2
11551 hardcode_direct_CXX=unsupported
11552 # It fails to find uninstalled libraries when the uninstalled
11553 # path is not listed in the libpath. Setting hardcode_minus_L
11554 # to unsupported forces relinking
11555 hardcode_minus_L_CXX=yes
11556 hardcode_libdir_flag_spec_CXX='-L$libdir'
11557 hardcode_libdir_separator_CXX=
11558 fi
11559 ;;
11560 esac
11561 shared_flag='-shared'
11562 if test "$aix_use_runtimelinking" = yes; then
11563 shared_flag="$shared_flag "'${wl}-G'
11564 fi
11565 else
11566 # not using gcc
11567 if test "$host_cpu" = ia64; then
11568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11569 # chokes on -Wl,-G. The following line is correct:
11570 shared_flag='-G'
11571 else
11572 if test "$aix_use_runtimelinking" = yes; then
11573 shared_flag='${wl}-G'
11574 else
11575 shared_flag='${wl}-bM:SRE'
11576 fi
11577 fi
11578 fi
11579
11580 # It seems that -bexpall does not export symbols beginning with
11581 # underscore (_), so it is better to generate a list of symbols to export.
11582 always_export_symbols_CXX=yes
11583 if test "$aix_use_runtimelinking" = yes; then
11584 # Warning - without using the other runtime loading flags (-brtl),
11585 # -berok will link without error, but may produce a broken library.
11586 allow_undefined_flag_CXX='-berok'
11587 # Determine the default libpath from the value encoded in an empty executable.
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h. */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594
11595 int
11596 main ()
11597 {
11598
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (ac_try="$ac_link"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608 esac
11609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11610 $as_echo "$ac_try_echo") >&5
11611 (eval "$ac_link") 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && {
11618 test -z "$ac_cxx_werror_flag" ||
11619 test ! -s conftest.err
11620 } && test -s conftest$ac_exeext && {
11621 test "$cross_compiling" = yes ||
11622 $as_test_x conftest$ac_exeext
11623 }; then
11624
11625 lt_aix_libpath_sed='
11626 /Import File Strings/,/^$/ {
11627 /^0/ {
11628 s/^0 *\(.*\)$/\1/
11629 p
11630 }
11631 }'
11632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11633 # Check for a 64-bit object if we didn't find anything.
11634 if test -z "$aix_libpath"; then
11635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11636 fi
11637 else
11638 $as_echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11640
11641
11642 fi
11643
11644 rm -rf conftest.dSYM
11645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11646 conftest$ac_exeext conftest.$ac_ext
11647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11648
11649 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11650
11651 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"
11652 else
11653 if test "$host_cpu" = ia64; then
11654 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11655 allow_undefined_flag_CXX="-z nodefs"
11656 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"
11657 else
11658 # Determine the default libpath from the value encoded in an empty executable.
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665
11666 int
11667 main ()
11668 {
11669
11670 ;
11671 return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679 esac
11680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11681 $as_echo "$ac_try_echo") >&5
11682 (eval "$ac_link") 2>conftest.er1
11683 ac_status=$?
11684 grep -v '^ *+' conftest.er1 >conftest.err
11685 rm -f conftest.er1
11686 cat conftest.err >&5
11687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } && {
11689 test -z "$ac_cxx_werror_flag" ||
11690 test ! -s conftest.err
11691 } && test -s conftest$ac_exeext && {
11692 test "$cross_compiling" = yes ||
11693 $as_test_x conftest$ac_exeext
11694 }; then
11695
11696 lt_aix_libpath_sed='
11697 /Import File Strings/,/^$/ {
11698 /^0/ {
11699 s/^0 *\(.*\)$/\1/
11700 p
11701 }
11702 }'
11703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11704 # Check for a 64-bit object if we didn't find anything.
11705 if test -z "$aix_libpath"; then
11706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11707 fi
11708 else
11709 $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712
11713 fi
11714
11715 rm -rf conftest.dSYM
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717 conftest$ac_exeext conftest.$ac_ext
11718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11719
11720 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11721 # Warning - without using the other run time loading flags,
11722 # -berok will link without error, but may produce a broken library.
11723 no_undefined_flag_CXX=' ${wl}-bernotok'
11724 allow_undefined_flag_CXX=' ${wl}-berok'
11725 # Exported symbols can be pulled into shared objects from archives
11726 whole_archive_flag_spec_CXX='$convenience'
11727 archive_cmds_need_lc_CXX=yes
11728 # This is similar to how AIX traditionally builds its shared libraries.
11729 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'
11730 fi
11731 fi
11732 ;;
11733
11734 beos*)
11735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11736 allow_undefined_flag_CXX=unsupported
11737 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11738 # support --undefined. This deserves some investigation. FIXME
11739 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11740 else
11741 ld_shlibs_CXX=no
11742 fi
11743 ;;
11744
11745 chorus*)
11746 case $cc_basename in
11747 *)
11748 # FIXME: insert proper C++ library support
11749 ld_shlibs_CXX=no
11750 ;;
11751 esac
11752 ;;
11753
11754 cygwin* | mingw* | pw32*)
11755 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11756 # as there is no search path for DLLs.
11757 hardcode_libdir_flag_spec_CXX='-L$libdir'
11758 allow_undefined_flag_CXX=unsupported
11759 always_export_symbols_CXX=no
11760 enable_shared_with_static_runtimes_CXX=yes
11761
11762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11763 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'
11764 # If the export-symbols file already is a .def file (1st line
11765 # is EXPORTS), use it as is; otherwise, prepend...
11766 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11767 cp $export_symbols $output_objdir/$soname.def;
11768 else
11769 echo EXPORTS > $output_objdir/$soname.def;
11770 cat $export_symbols >> $output_objdir/$soname.def;
11771 fi~
11772 $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'
11773 else
11774 ld_shlibs_CXX=no
11775 fi
11776 ;;
11777 darwin* | rhapsody*)
11778 archive_cmds_need_lc_CXX=no
11779 hardcode_direct_CXX=no
11780 hardcode_automatic_CXX=yes
11781 hardcode_shlibpath_var_CXX=unsupported
11782 whole_archive_flag_spec_CXX=''
11783 link_all_deplibs_CXX=yes
11784 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11785 if test "$GXX" = yes ; then
11786 output_verbose_link_cmd='echo'
11787 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11788 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11789 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11790 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11791 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11792 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11793 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11794 fi
11795 else
11796 case $cc_basename in
11797 xlc*)
11798 output_verbose_link_cmd='echo'
11799 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'
11800 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11802 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}'
11803 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}'
11804 ;;
11805 *)
11806 ld_shlibs_CXX=no
11807 ;;
11808 esac
11809 fi
11810 ;;
11811
11812 dgux*)
11813 case $cc_basename in
11814 ec++*)
11815 # FIXME: insert proper C++ library support
11816 ld_shlibs_CXX=no
11817 ;;
11818 ghcx*)
11819 # Green Hills C++ Compiler
11820 # FIXME: insert proper C++ library support
11821 ld_shlibs_CXX=no
11822 ;;
11823 *)
11824 # FIXME: insert proper C++ library support
11825 ld_shlibs_CXX=no
11826 ;;
11827 esac
11828 ;;
11829 freebsd[12]*)
11830 # C++ shared libraries reported to be fairly broken before switch to ELF
11831 ld_shlibs_CXX=no
11832 ;;
11833 freebsd-elf*)
11834 archive_cmds_need_lc_CXX=no
11835 ;;
11836 freebsd* | dragonfly*)
11837 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11838 # conventions
11839 ld_shlibs_CXX=yes
11840 ;;
11841 gnu*)
11842 ;;
11843 hpux9*)
11844 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11845 hardcode_libdir_separator_CXX=:
11846 export_dynamic_flag_spec_CXX='${wl}-E'
11847 hardcode_direct_CXX=yes
11848 hardcode_minus_L_CXX=yes # Not in the search PATH,
11849 # but as the default
11850 # location of the library.
11851
11852 case $cc_basename in
11853 CC*)
11854 # FIXME: insert proper C++ library support
11855 ld_shlibs_CXX=no
11856 ;;
11857 aCC*)
11858 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'
11859 # Commands to make compiler produce verbose output that lists
11860 # what "hidden" libraries, object files and flags are used when
11861 # linking a shared library.
11862 #
11863 # There doesn't appear to be a way to prevent this compiler from
11864 # explicitly linking system object files so we need to strip them
11865 # from the output so that they don't get included in the library
11866 # dependencies.
11867 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'
11868 ;;
11869 *)
11870 if test "$GXX" = yes; then
11871 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'
11872 else
11873 # FIXME: insert proper C++ library support
11874 ld_shlibs_CXX=no
11875 fi
11876 ;;
11877 esac
11878 ;;
11879 hpux10*|hpux11*)
11880 if test $with_gnu_ld = no; then
11881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11882 hardcode_libdir_separator_CXX=:
11883
11884 case $host_cpu in
11885 hppa*64*|ia64*) ;;
11886 *)
11887 export_dynamic_flag_spec_CXX='${wl}-E'
11888 ;;
11889 esac
11890 fi
11891 case $host_cpu in
11892 hppa*64*|ia64*)
11893 hardcode_direct_CXX=no
11894 hardcode_shlibpath_var_CXX=no
11895 ;;
11896 *)
11897 hardcode_direct_CXX=yes
11898 hardcode_minus_L_CXX=yes # Not in the search PATH,
11899 # but as the default
11900 # location of the library.
11901 ;;
11902 esac
11903
11904 case $cc_basename in
11905 CC*)
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 ;;
11909 aCC*)
11910 case $host_cpu in
11911 hppa*64*)
11912 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11913 ;;
11914 ia64*)
11915 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11916 ;;
11917 *)
11918 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11919 ;;
11920 esac
11921 # Commands to make compiler produce verbose output that lists
11922 # what "hidden" libraries, object files and flags are used when
11923 # linking a shared library.
11924 #
11925 # There doesn't appear to be a way to prevent this compiler from
11926 # explicitly linking system object files so we need to strip them
11927 # from the output so that they don't get included in the library
11928 # dependencies.
11929 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'
11930 ;;
11931 *)
11932 if test "$GXX" = yes; then
11933 if test $with_gnu_ld = no; then
11934 case $host_cpu in
11935 hppa*64*)
11936 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937 ;;
11938 ia64*)
11939 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940 ;;
11941 *)
11942 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'
11943 ;;
11944 esac
11945 fi
11946 else
11947 # FIXME: insert proper C++ library support
11948 ld_shlibs_CXX=no
11949 fi
11950 ;;
11951 esac
11952 ;;
11953 interix[3-9]*)
11954 hardcode_direct_CXX=no
11955 hardcode_shlibpath_var_CXX=no
11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957 export_dynamic_flag_spec_CXX='${wl}-E'
11958 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11959 # Instead, shared libraries are loaded at an image base (0x10000000 by
11960 # default) and relocated if they conflict, which is a slow very memory
11961 # consuming and fragmenting process. To avoid this, we pick a random,
11962 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11963 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11964 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'
11965 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'
11966 ;;
11967 irix5* | irix6*)
11968 case $cc_basename in
11969 CC*)
11970 # SGI C++
11971 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'
11972
11973 # Archives containing C++ object files must be created using
11974 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11975 # necessary to make sure instantiated templates are included
11976 # in the archive.
11977 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11978 ;;
11979 *)
11980 if test "$GXX" = yes; then
11981 if test "$with_gnu_ld" = no; then
11982 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'
11983 else
11984 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'
11985 fi
11986 fi
11987 link_all_deplibs_CXX=yes
11988 ;;
11989 esac
11990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11991 hardcode_libdir_separator_CXX=:
11992 ;;
11993 linux* | k*bsd*-gnu)
11994 case $cc_basename in
11995 KCC*)
11996 # Kuck and Associates, Inc. (KAI) C++ Compiler
11997
11998 # KCC will only create a shared library if the output file
11999 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12000 # to its proper name (with version) after linking.
12001 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'
12002 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'
12003 # Commands to make compiler produce verbose output that lists
12004 # what "hidden" libraries, object files and flags are used when
12005 # linking a shared library.
12006 #
12007 # There doesn't appear to be a way to prevent this compiler from
12008 # explicitly linking system object files so we need to strip them
12009 # from the output so that they don't get included in the library
12010 # dependencies.
12011 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'
12012
12013 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12014 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12015
12016 # Archives containing C++ object files must be created using
12017 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12018 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12019 ;;
12020 icpc*)
12021 # Intel C++
12022 with_gnu_ld=yes
12023 # version 8.0 and above of icpc choke on multiply defined symbols
12024 # if we add $predep_objects and $postdep_objects, however 7.1 and
12025 # earlier do not add the objects themselves.
12026 case `$CC -V 2>&1` in
12027 *"Version 7."*)
12028 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12029 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'
12030 ;;
12031 *) # Version 8.0 or newer
12032 tmp_idyn=
12033 case $host_cpu in
12034 ia64*) tmp_idyn=' -i_dynamic';;
12035 esac
12036 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12037 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'
12038 ;;
12039 esac
12040 archive_cmds_need_lc_CXX=no
12041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12042 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12043 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12044 ;;
12045 pgCC* | pgcpp*)
12046 # Portland Group C++ compiler
12047 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12048 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'
12049
12050 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12051 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12052 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'
12053 ;;
12054 cxx*)
12055 # Compaq C++
12056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12057 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'
12058
12059 runpath_var=LD_RUN_PATH
12060 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12061 hardcode_libdir_separator_CXX=:
12062
12063 # Commands to make compiler produce verbose output that lists
12064 # what "hidden" libraries, object files and flags are used when
12065 # linking a shared library.
12066 #
12067 # There doesn't appear to be a way to prevent this compiler from
12068 # explicitly linking system object files so we need to strip them
12069 # from the output so that they don't get included in the library
12070 # dependencies.
12071 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'
12072 ;;
12073 *)
12074 case `$CC -V 2>&1 | sed 5q` in
12075 *Sun\ C*)
12076 # Sun C++ 5.9
12077 no_undefined_flag_CXX=' -zdefs'
12078 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079 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'
12080 hardcode_libdir_flag_spec_CXX='-R$libdir'
12081 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'
12082
12083 # Not sure whether something based on
12084 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12085 # would be better.
12086 output_verbose_link_cmd='echo'
12087
12088 # Archives containing C++ object files must be created using
12089 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12090 # necessary to make sure instantiated templates are included
12091 # in the archive.
12092 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12093 ;;
12094 esac
12095 ;;
12096 esac
12097 ;;
12098 lynxos*)
12099 # FIXME: insert proper C++ library support
12100 ld_shlibs_CXX=no
12101 ;;
12102 m88k*)
12103 # FIXME: insert proper C++ library support
12104 ld_shlibs_CXX=no
12105 ;;
12106 mvs*)
12107 case $cc_basename in
12108 cxx*)
12109 # FIXME: insert proper C++ library support
12110 ld_shlibs_CXX=no
12111 ;;
12112 *)
12113 # FIXME: insert proper C++ library support
12114 ld_shlibs_CXX=no
12115 ;;
12116 esac
12117 ;;
12118 netbsd*)
12119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12120 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12121 wlarc=
12122 hardcode_libdir_flag_spec_CXX='-R$libdir'
12123 hardcode_direct_CXX=yes
12124 hardcode_shlibpath_var_CXX=no
12125 fi
12126 # Workaround some broken pre-1.5 toolchains
12127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12128 ;;
12129 openbsd2*)
12130 # C++ shared libraries are fairly broken
12131 ld_shlibs_CXX=no
12132 ;;
12133 openbsd*)
12134 if test -f /usr/libexec/ld.so; then
12135 hardcode_direct_CXX=yes
12136 hardcode_shlibpath_var_CXX=no
12137 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12138 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12139 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12140 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12141 export_dynamic_flag_spec_CXX='${wl}-E'
12142 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12143 fi
12144 output_verbose_link_cmd='echo'
12145 else
12146 ld_shlibs_CXX=no
12147 fi
12148 ;;
12149 osf3*)
12150 case $cc_basename in
12151 KCC*)
12152 # Kuck and Associates, Inc. (KAI) C++ Compiler
12153
12154 # KCC will only create a shared library if the output file
12155 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12156 # to its proper name (with version) after linking.
12157 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'
12158
12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12160 hardcode_libdir_separator_CXX=:
12161
12162 # Archives containing C++ object files must be created using
12163 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12164 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12165
12166 ;;
12167 RCC*)
12168 # Rational C++ 2.4.1
12169 # FIXME: insert proper C++ library support
12170 ld_shlibs_CXX=no
12171 ;;
12172 cxx*)
12173 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12174 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'
12175
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12177 hardcode_libdir_separator_CXX=:
12178
12179 # Commands to make compiler produce verbose output that lists
12180 # what "hidden" libraries, object files and flags are used when
12181 # linking a shared library.
12182 #
12183 # There doesn't appear to be a way to prevent this compiler from
12184 # explicitly linking system object files so we need to strip them
12185 # from the output so that they don't get included in the library
12186 # dependencies.
12187 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'
12188 ;;
12189 *)
12190 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12191 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12192 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'
12193
12194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12195 hardcode_libdir_separator_CXX=:
12196
12197 # Commands to make compiler produce verbose output that lists
12198 # what "hidden" libraries, object files and flags are used when
12199 # linking a shared library.
12200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12201
12202 else
12203 # FIXME: insert proper C++ library support
12204 ld_shlibs_CXX=no
12205 fi
12206 ;;
12207 esac
12208 ;;
12209 osf4* | osf5*)
12210 case $cc_basename in
12211 KCC*)
12212 # Kuck and Associates, Inc. (KAI) C++ Compiler
12213
12214 # KCC will only create a shared library if the output file
12215 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12216 # to its proper name (with version) after linking.
12217 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'
12218
12219 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12220 hardcode_libdir_separator_CXX=:
12221
12222 # Archives containing C++ object files must be created using
12223 # the KAI C++ compiler.
12224 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12225 ;;
12226 RCC*)
12227 # Rational C++ 2.4.1
12228 # FIXME: insert proper C++ library support
12229 ld_shlibs_CXX=no
12230 ;;
12231 cxx*)
12232 allow_undefined_flag_CXX=' -expect_unresolved \*'
12233 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'
12234 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12235 echo "-hidden">> $lib.exp~
12236 $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~
12237 $rm $lib.exp'
12238
12239 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12240 hardcode_libdir_separator_CXX=:
12241
12242 # Commands to make compiler produce verbose output that lists
12243 # what "hidden" libraries, object files and flags are used when
12244 # linking a shared library.
12245 #
12246 # There doesn't appear to be a way to prevent this compiler from
12247 # explicitly linking system object files so we need to strip them
12248 # from the output so that they don't get included in the library
12249 # dependencies.
12250 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'
12251 ;;
12252 *)
12253 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12254 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12255 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'
12256
12257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12258 hardcode_libdir_separator_CXX=:
12259
12260 # Commands to make compiler produce verbose output that lists
12261 # what "hidden" libraries, object files and flags are used when
12262 # linking a shared library.
12263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12264
12265 else
12266 # FIXME: insert proper C++ library support
12267 ld_shlibs_CXX=no
12268 fi
12269 ;;
12270 esac
12271 ;;
12272 psos*)
12273 # FIXME: insert proper C++ library support
12274 ld_shlibs_CXX=no
12275 ;;
12276 sunos4*)
12277 case $cc_basename in
12278 CC*)
12279 # Sun C++ 4.x
12280 # FIXME: insert proper C++ library support
12281 ld_shlibs_CXX=no
12282 ;;
12283 lcc*)
12284 # Lucid
12285 # FIXME: insert proper C++ library support
12286 ld_shlibs_CXX=no
12287 ;;
12288 *)
12289 # FIXME: insert proper C++ library support
12290 ld_shlibs_CXX=no
12291 ;;
12292 esac
12293 ;;
12294 solaris*)
12295 case $cc_basename in
12296 CC*)
12297 # Sun C++ 4.2, 5.x and Centerline C++
12298 archive_cmds_need_lc_CXX=yes
12299 no_undefined_flag_CXX=' -zdefs'
12300 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12301 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12302 $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'
12303
12304 hardcode_libdir_flag_spec_CXX='-R$libdir'
12305 hardcode_shlibpath_var_CXX=no
12306 case $host_os in
12307 solaris2.[0-5] | solaris2.[0-5].*) ;;
12308 *)
12309 # The compiler driver will combine and reorder linker options,
12310 # but understands `-z linker_flag'.
12311 # Supported since Solaris 2.6 (maybe 2.5.1?)
12312 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12313 ;;
12314 esac
12315 link_all_deplibs_CXX=yes
12316
12317 output_verbose_link_cmd='echo'
12318
12319 # Archives containing C++ object files must be created using
12320 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12321 # necessary to make sure instantiated templates are included
12322 # in the archive.
12323 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12324 ;;
12325 gcx*)
12326 # Green Hills C++ Compiler
12327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12328
12329 # The C++ compiler must be used to create the archive.
12330 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12331 ;;
12332 *)
12333 # GNU C++ compiler with Solaris linker
12334 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12335 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12336 if $CC --version | grep -v '^2\.7' > /dev/null; then
12337 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12338 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12339 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12340
12341 # Commands to make compiler produce verbose output that lists
12342 # what "hidden" libraries, object files and flags are used when
12343 # linking a shared library.
12344 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12345 else
12346 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12347 # platform.
12348 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12349 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12350 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12351
12352 # Commands to make compiler produce verbose output that lists
12353 # what "hidden" libraries, object files and flags are used when
12354 # linking a shared library.
12355 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12356 fi
12357
12358 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12359 case $host_os in
12360 solaris2.[0-5] | solaris2.[0-5].*) ;;
12361 *)
12362 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12363 ;;
12364 esac
12365 fi
12366 ;;
12367 esac
12368 ;;
12369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12370 no_undefined_flag_CXX='${wl}-z,text'
12371 archive_cmds_need_lc_CXX=no
12372 hardcode_shlibpath_var_CXX=no
12373 runpath_var='LD_RUN_PATH'
12374
12375 case $cc_basename in
12376 CC*)
12377 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12378 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12379 ;;
12380 *)
12381 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12382 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12383 ;;
12384 esac
12385 ;;
12386 sysv5* | sco3.2v5* | sco5v6*)
12387 # Note: We can NOT use -z defs as we might desire, because we do not
12388 # link with -lc, and that would cause any symbols used from libc to
12389 # always be unresolved, which means just about no library would
12390 # ever link correctly. If we're not using GNU ld we use -z text
12391 # though, which does catch some bad symbols but isn't as heavy-handed
12392 # as -z defs.
12393 # For security reasons, it is highly recommended that you always
12394 # use absolute paths for naming shared libraries, and exclude the
12395 # DT_RUNPATH tag from executables and libraries. But doing so
12396 # requires that you compile everything twice, which is a pain.
12397 # So that behaviour is only enabled if SCOABSPATH is set to a
12398 # non-empty value in the environment. Most likely only useful for
12399 # creating official distributions of packages.
12400 # This is a hack until libtool officially supports absolute path
12401 # names for shared libraries.
12402 no_undefined_flag_CXX='${wl}-z,text'
12403 allow_undefined_flag_CXX='${wl}-z,nodefs'
12404 archive_cmds_need_lc_CXX=no
12405 hardcode_shlibpath_var_CXX=no
12406 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12407 hardcode_libdir_separator_CXX=':'
12408 link_all_deplibs_CXX=yes
12409 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12410 runpath_var='LD_RUN_PATH'
12411
12412 case $cc_basename in
12413 CC*)
12414 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12415 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12416 ;;
12417 *)
12418 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12419 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12420 ;;
12421 esac
12422 ;;
12423 tandem*)
12424 case $cc_basename in
12425 NCC*)
12426 # NonStop-UX NCC 3.20
12427 # FIXME: insert proper C++ library support
12428 ld_shlibs_CXX=no
12429 ;;
12430 *)
12431 # FIXME: insert proper C++ library support
12432 ld_shlibs_CXX=no
12433 ;;
12434 esac
12435 ;;
12436 vxworks*)
12437 # FIXME: insert proper C++ library support
12438 ld_shlibs_CXX=no
12439 ;;
12440 *)
12441 # FIXME: insert proper C++ library support
12442 ld_shlibs_CXX=no
12443 ;;
12444 esac
12445 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12446 $as_echo "$ld_shlibs_CXX" >&6; }
12447 test "$ld_shlibs_CXX" = no && can_build_shared=no
12448
12449 GCC_CXX="$GXX"
12450 LD_CXX="$LD"
12451
12452 cat > conftest.$ac_ext <<EOF
12453 class Foo
12454 {
12455 public:
12456 Foo (void) { a = 0; }
12457 private:
12458 int a;
12459 };
12460 EOF
12461
12462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12463 (eval $ac_compile) 2>&5
12464 ac_status=$?
12465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; then
12467 # Parse the compiler output and extract the necessary
12468 # objects, libraries and library flags.
12469
12470 # Sentinel used to keep track of whether or not we are before
12471 # the conftest object file.
12472 pre_test_object_deps_done=no
12473
12474 # The `*' in the case matches for architectures that use `case' in
12475 # $output_verbose_cmd can trigger glob expansion during the loop
12476 # eval without this substitution.
12477 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12478
12479 for p in `eval $output_verbose_link_cmd`; do
12480 case $p in
12481
12482 -L* | -R* | -l*)
12483 # Some compilers place space between "-{L,R}" and the path.
12484 # Remove the space.
12485 if test $p = "-L" \
12486 || test $p = "-R"; then
12487 prev=$p
12488 continue
12489 else
12490 prev=
12491 fi
12492
12493 if test "$pre_test_object_deps_done" = no; then
12494 case $p in
12495 -L* | -R*)
12496 # Internal compiler library paths should come after those
12497 # provided the user. The postdeps already come after the
12498 # user supplied libs so there is no need to process them.
12499 if test -z "$compiler_lib_search_path_CXX"; then
12500 compiler_lib_search_path_CXX="${prev}${p}"
12501 else
12502 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12503 fi
12504 ;;
12505 # The "-l" case would never come before the object being
12506 # linked, so don't bother handling this case.
12507 esac
12508 else
12509 if test -z "$postdeps_CXX"; then
12510 postdeps_CXX="${prev}${p}"
12511 else
12512 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12513 fi
12514 fi
12515 ;;
12516
12517 *.$objext)
12518 # This assumes that the test object file only shows up
12519 # once in the compiler output.
12520 if test "$p" = "conftest.$objext"; then
12521 pre_test_object_deps_done=yes
12522 continue
12523 fi
12524
12525 if test "$pre_test_object_deps_done" = no; then
12526 if test -z "$predep_objects_CXX"; then
12527 predep_objects_CXX="$p"
12528 else
12529 predep_objects_CXX="$predep_objects_CXX $p"
12530 fi
12531 else
12532 if test -z "$postdep_objects_CXX"; then
12533 postdep_objects_CXX="$p"
12534 else
12535 postdep_objects_CXX="$postdep_objects_CXX $p"
12536 fi
12537 fi
12538 ;;
12539
12540 *) ;; # Ignore the rest.
12541
12542 esac
12543 done
12544
12545 # Clean up.
12546 rm -f a.out a.exe
12547 else
12548 echo "libtool.m4: error: problem compiling CXX test program"
12549 fi
12550
12551 $rm -f confest.$objext
12552
12553 compiler_lib_search_dirs_CXX=
12554 if test -n "$compiler_lib_search_path_CXX"; then
12555 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12556 fi
12557
12558 # PORTME: override above test on systems where it is broken
12559 case $host_os in
12560 interix[3-9]*)
12561 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12562 # hack all around it, let's just trust "g++" to DTRT.
12563 predep_objects_CXX=
12564 postdep_objects_CXX=
12565 postdeps_CXX=
12566 ;;
12567
12568 linux*)
12569 case `$CC -V 2>&1 | sed 5q` in
12570 *Sun\ C*)
12571 # Sun C++ 5.9
12572 #
12573 # The more standards-conforming stlport4 library is
12574 # incompatible with the Cstd library. Avoid specifying
12575 # it if it's in CXXFLAGS. Ignore libCrun as
12576 # -library=stlport4 depends on it.
12577 case " $CXX $CXXFLAGS " in
12578 *" -library=stlport4 "*)
12579 solaris_use_stlport4=yes
12580 ;;
12581 esac
12582 if test "$solaris_use_stlport4" != yes; then
12583 postdeps_CXX='-library=Cstd -library=Crun'
12584 fi
12585 ;;
12586 esac
12587 ;;
12588
12589 solaris*)
12590 case $cc_basename in
12591 CC*)
12592 # The more standards-conforming stlport4 library is
12593 # incompatible with the Cstd library. Avoid specifying
12594 # it if it's in CXXFLAGS. Ignore libCrun as
12595 # -library=stlport4 depends on it.
12596 case " $CXX $CXXFLAGS " in
12597 *" -library=stlport4 "*)
12598 solaris_use_stlport4=yes
12599 ;;
12600 esac
12601
12602 # Adding this requires a known-good setup of shared libraries for
12603 # Sun compiler versions before 5.6, else PIC objects from an old
12604 # archive will be linked into the output, leading to subtle bugs.
12605 if test "$solaris_use_stlport4" != yes; then
12606 postdeps_CXX='-library=Cstd -library=Crun'
12607 fi
12608 ;;
12609 esac
12610 ;;
12611 esac
12612
12613 case " $postdeps_CXX " in
12614 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12615 esac
12616
12617 lt_prog_compiler_wl_CXX=
12618 lt_prog_compiler_pic_CXX=
12619 lt_prog_compiler_static_CXX=
12620
12621 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12622 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12623
12624 # C++ specific cases for pic, static, wl, etc.
12625 if test "$GXX" = yes; then
12626 lt_prog_compiler_wl_CXX='-Wl,'
12627 lt_prog_compiler_static_CXX='-static'
12628
12629 case $host_os in
12630 aix*)
12631 # All AIX code is PIC.
12632 if test "$host_cpu" = ia64; then
12633 # AIX 5 now supports IA64 processor
12634 lt_prog_compiler_static_CXX='-Bstatic'
12635 fi
12636 ;;
12637 amigaos*)
12638 # FIXME: we need at least 68020 code to build shared libraries, but
12639 # adding the `-m68020' flag to GCC prevents building anything better,
12640 # like `-m68040'.
12641 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12642 ;;
12643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12644 # PIC is the default for these OSes.
12645 ;;
12646 mingw* | cygwin* | os2* | pw32*)
12647 # This hack is so that the source file can tell whether it is being
12648 # built for inclusion in a dll (and should export symbols for example).
12649 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12650 # (--disable-auto-import) libraries
12651 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12652 ;;
12653 darwin* | rhapsody*)
12654 # PIC is the default on this platform
12655 # Common symbols not allowed in MH_DYLIB files
12656 lt_prog_compiler_pic_CXX='-fno-common'
12657 ;;
12658 *djgpp*)
12659 # DJGPP does not support shared libraries at all
12660 lt_prog_compiler_pic_CXX=
12661 ;;
12662 interix[3-9]*)
12663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12664 # Instead, we relocate shared libraries at runtime.
12665 ;;
12666 sysv4*MP*)
12667 if test -d /usr/nec; then
12668 lt_prog_compiler_pic_CXX=-Kconform_pic
12669 fi
12670 ;;
12671 hpux*)
12672 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12673 # not for PA HP-UX.
12674 case $host_cpu in
12675 hppa*64*|ia64*)
12676 ;;
12677 *)
12678 lt_prog_compiler_pic_CXX='-fPIC'
12679 ;;
12680 esac
12681 ;;
12682 *)
12683 lt_prog_compiler_pic_CXX='-fPIC'
12684 ;;
12685 esac
12686 else
12687 case $host_os in
12688 aix[4-9]*)
12689 # All AIX code is PIC.
12690 if test "$host_cpu" = ia64; then
12691 # AIX 5 now supports IA64 processor
12692 lt_prog_compiler_static_CXX='-Bstatic'
12693 else
12694 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12695 fi
12696 ;;
12697 chorus*)
12698 case $cc_basename in
12699 cxch68*)
12700 # Green Hills C++ Compiler
12701 # _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"
12702 ;;
12703 esac
12704 ;;
12705 darwin*)
12706 # PIC is the default on this platform
12707 # Common symbols not allowed in MH_DYLIB files
12708 case $cc_basename in
12709 xlc*)
12710 lt_prog_compiler_pic_CXX='-qnocommon'
12711 lt_prog_compiler_wl_CXX='-Wl,'
12712 ;;
12713 esac
12714 ;;
12715 dgux*)
12716 case $cc_basename in
12717 ec++*)
12718 lt_prog_compiler_pic_CXX='-KPIC'
12719 ;;
12720 ghcx*)
12721 # Green Hills C++ Compiler
12722 lt_prog_compiler_pic_CXX='-pic'
12723 ;;
12724 *)
12725 ;;
12726 esac
12727 ;;
12728 freebsd* | dragonfly*)
12729 # FreeBSD uses GNU C++
12730 ;;
12731 hpux9* | hpux10* | hpux11*)
12732 case $cc_basename in
12733 CC*)
12734 lt_prog_compiler_wl_CXX='-Wl,'
12735 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12736 if test "$host_cpu" != ia64; then
12737 lt_prog_compiler_pic_CXX='+Z'
12738 fi
12739 ;;
12740 aCC*)
12741 lt_prog_compiler_wl_CXX='-Wl,'
12742 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12743 case $host_cpu in
12744 hppa*64*|ia64*)
12745 # +Z the default
12746 ;;
12747 *)
12748 lt_prog_compiler_pic_CXX='+Z'
12749 ;;
12750 esac
12751 ;;
12752 *)
12753 ;;
12754 esac
12755 ;;
12756 interix*)
12757 # This is c89, which is MS Visual C++ (no shared libs)
12758 # Anyone wants to do a port?
12759 ;;
12760 irix5* | irix6* | nonstopux*)
12761 case $cc_basename in
12762 CC*)
12763 lt_prog_compiler_wl_CXX='-Wl,'
12764 lt_prog_compiler_static_CXX='-non_shared'
12765 # CC pic flag -KPIC is the default.
12766 ;;
12767 *)
12768 ;;
12769 esac
12770 ;;
12771 linux* | k*bsd*-gnu)
12772 case $cc_basename in
12773 KCC*)
12774 # KAI C++ Compiler
12775 lt_prog_compiler_wl_CXX='--backend -Wl,'
12776 lt_prog_compiler_pic_CXX='-fPIC'
12777 ;;
12778 icpc* | ecpc*)
12779 # Intel C++
12780 lt_prog_compiler_wl_CXX='-Wl,'
12781 lt_prog_compiler_pic_CXX='-KPIC'
12782 lt_prog_compiler_static_CXX='-static'
12783 ;;
12784 pgCC* | pgcpp*)
12785 # Portland Group C++ compiler.
12786 lt_prog_compiler_wl_CXX='-Wl,'
12787 lt_prog_compiler_pic_CXX='-fpic'
12788 lt_prog_compiler_static_CXX='-Bstatic'
12789 ;;
12790 cxx*)
12791 # Compaq C++
12792 # Make sure the PIC flag is empty. It appears that all Alpha
12793 # Linux and Compaq Tru64 Unix objects are PIC.
12794 lt_prog_compiler_pic_CXX=
12795 lt_prog_compiler_static_CXX='-non_shared'
12796 ;;
12797 *)
12798 case `$CC -V 2>&1 | sed 5q` in
12799 *Sun\ C*)
12800 # Sun C++ 5.9
12801 lt_prog_compiler_pic_CXX='-KPIC'
12802 lt_prog_compiler_static_CXX='-Bstatic'
12803 lt_prog_compiler_wl_CXX='-Qoption ld '
12804 ;;
12805 esac
12806 ;;
12807 esac
12808 ;;
12809 lynxos*)
12810 ;;
12811 m88k*)
12812 ;;
12813 mvs*)
12814 case $cc_basename in
12815 cxx*)
12816 lt_prog_compiler_pic_CXX='-W c,exportall'
12817 ;;
12818 *)
12819 ;;
12820 esac
12821 ;;
12822 netbsd*)
12823 ;;
12824 osf3* | osf4* | osf5*)
12825 case $cc_basename in
12826 KCC*)
12827 lt_prog_compiler_wl_CXX='--backend -Wl,'
12828 ;;
12829 RCC*)
12830 # Rational C++ 2.4.1
12831 lt_prog_compiler_pic_CXX='-pic'
12832 ;;
12833 cxx*)
12834 # Digital/Compaq C++
12835 lt_prog_compiler_wl_CXX='-Wl,'
12836 # Make sure the PIC flag is empty. It appears that all Alpha
12837 # Linux and Compaq Tru64 Unix objects are PIC.
12838 lt_prog_compiler_pic_CXX=
12839 lt_prog_compiler_static_CXX='-non_shared'
12840 ;;
12841 *)
12842 ;;
12843 esac
12844 ;;
12845 psos*)
12846 ;;
12847 solaris*)
12848 case $cc_basename in
12849 CC*)
12850 # Sun C++ 4.2, 5.x and Centerline C++
12851 lt_prog_compiler_pic_CXX='-KPIC'
12852 lt_prog_compiler_static_CXX='-Bstatic'
12853 lt_prog_compiler_wl_CXX='-Qoption ld '
12854 ;;
12855 gcx*)
12856 # Green Hills C++ Compiler
12857 lt_prog_compiler_pic_CXX='-PIC'
12858 ;;
12859 *)
12860 ;;
12861 esac
12862 ;;
12863 sunos4*)
12864 case $cc_basename in
12865 CC*)
12866 # Sun C++ 4.x
12867 lt_prog_compiler_pic_CXX='-pic'
12868 lt_prog_compiler_static_CXX='-Bstatic'
12869 ;;
12870 lcc*)
12871 # Lucid
12872 lt_prog_compiler_pic_CXX='-pic'
12873 ;;
12874 *)
12875 ;;
12876 esac
12877 ;;
12878 tandem*)
12879 case $cc_basename in
12880 NCC*)
12881 # NonStop-UX NCC 3.20
12882 lt_prog_compiler_pic_CXX='-KPIC'
12883 ;;
12884 *)
12885 ;;
12886 esac
12887 ;;
12888 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12889 case $cc_basename in
12890 CC*)
12891 lt_prog_compiler_wl_CXX='-Wl,'
12892 lt_prog_compiler_pic_CXX='-KPIC'
12893 lt_prog_compiler_static_CXX='-Bstatic'
12894 ;;
12895 esac
12896 ;;
12897 vxworks*)
12898 ;;
12899 *)
12900 lt_prog_compiler_can_build_shared_CXX=no
12901 ;;
12902 esac
12903 fi
12904
12905 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12906 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12907
12908 #
12909 # Check to make sure the PIC flag actually works.
12910 #
12911 if test -n "$lt_prog_compiler_pic_CXX"; then
12912
12913 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12915 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12916 $as_echo_n "(cached) " >&6
12917 else
12918 lt_cv_prog_compiler_pic_works_CXX=no
12919 ac_outfile=conftest.$ac_objext
12920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12921 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12922 # Insert the option either (1) after the last *FLAGS variable, or
12923 # (2) before a word containing "conftest.", or (3) at the end.
12924 # Note that $ac_compile itself does not contain backslashes and begins
12925 # with a dollar sign (not a hyphen), so the echo should work correctly.
12926 # The option is referenced via a variable to avoid confusing sed.
12927 lt_compile=`echo "$ac_compile" | $SED \
12928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12930 -e 's:$: $lt_compiler_flag:'`
12931 (eval echo "\"\$as_me:12931: $lt_compile\"" >&5)
12932 (eval "$lt_compile" 2>conftest.err)
12933 ac_status=$?
12934 cat conftest.err >&5
12935 echo "$as_me:12935: \$? = $ac_status" >&5
12936 if (exit $ac_status) && test -s "$ac_outfile"; then
12937 # The compiler can only warn and ignore the option if not recognized
12938 # So say no if there are warnings other than the usual output.
12939 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12942 lt_cv_prog_compiler_pic_works_CXX=yes
12943 fi
12944 fi
12945 $rm conftest*
12946
12947 fi
12948 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12949 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12950
12951 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12952 case $lt_prog_compiler_pic_CXX in
12953 "" | " "*) ;;
12954 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12955 esac
12956 else
12957 lt_prog_compiler_pic_CXX=
12958 lt_prog_compiler_can_build_shared_CXX=no
12959 fi
12960
12961 fi
12962 case $host_os in
12963 # For platforms which do not support PIC, -DPIC is meaningless:
12964 *djgpp*)
12965 lt_prog_compiler_pic_CXX=
12966 ;;
12967 *)
12968 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12969 ;;
12970 esac
12971
12972 #
12973 # Check to make sure the static flag actually works.
12974 #
12975 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12976 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12977 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12978 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12979 $as_echo_n "(cached) " >&6
12980 else
12981 lt_cv_prog_compiler_static_works_CXX=no
12982 save_LDFLAGS="$LDFLAGS"
12983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12984 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12986 # The linker can only warn and ignore the option if not recognized
12987 # So say no if there are warnings
12988 if test -s conftest.err; then
12989 # Append any errors to the config.log.
12990 cat conftest.err 1>&5
12991 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12993 if diff conftest.exp conftest.er2 >/dev/null; then
12994 lt_cv_prog_compiler_static_works_CXX=yes
12995 fi
12996 else
12997 lt_cv_prog_compiler_static_works_CXX=yes
12998 fi
12999 fi
13000 $rm -r conftest*
13001 LDFLAGS="$save_LDFLAGS"
13002
13003 fi
13004 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13005 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13006
13007 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13008 :
13009 else
13010 lt_prog_compiler_static_CXX=
13011 fi
13012
13013
13014 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13016 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13017 $as_echo_n "(cached) " >&6
13018 else
13019 lt_cv_prog_compiler_c_o_CXX=no
13020 $rm -r conftest 2>/dev/null
13021 mkdir conftest
13022 cd conftest
13023 mkdir out
13024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13025
13026 lt_compiler_flag="-o out/conftest2.$ac_objext"
13027 # Insert the option either (1) after the last *FLAGS variable, or
13028 # (2) before a word containing "conftest.", or (3) at the end.
13029 # Note that $ac_compile itself does not contain backslashes and begins
13030 # with a dollar sign (not a hyphen), so the echo should work correctly.
13031 lt_compile=`echo "$ac_compile" | $SED \
13032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034 -e 's:$: $lt_compiler_flag:'`
13035 (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
13036 (eval "$lt_compile" 2>out/conftest.err)
13037 ac_status=$?
13038 cat out/conftest.err >&5
13039 echo "$as_me:13039: \$? = $ac_status" >&5
13040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13041 then
13042 # The compiler can only warn and ignore the option if not recognized
13043 # So say no if there are warnings
13044 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13047 lt_cv_prog_compiler_c_o_CXX=yes
13048 fi
13049 fi
13050 chmod u+w . 2>&5
13051 $rm conftest*
13052 # SGI C++ compiler will create directory out/ii_files/ for
13053 # template instantiation
13054 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13055 $rm out/* && rmdir out
13056 cd ..
13057 rmdir conftest
13058 $rm conftest*
13059
13060 fi
13061 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13062 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13063
13064
13065 hard_links="nottested"
13066 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13067 # do not overwrite the value of need_locks provided by the user
13068 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13069 $as_echo_n "checking if we can lock with hard links... " >&6; }
13070 hard_links=yes
13071 $rm conftest*
13072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13073 touch conftest.a
13074 ln conftest.a conftest.b 2>&5 || hard_links=no
13075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13076 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13077 $as_echo "$hard_links" >&6; }
13078 if test "$hard_links" = no; then
13079 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13080 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13081 need_locks=warn
13082 fi
13083 else
13084 need_locks=no
13085 fi
13086
13087 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13088 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13089
13090 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13091 case $host_os in
13092 aix[4-9]*)
13093 # If we're using GNU nm, then we don't want the "-C" option.
13094 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13095 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13096 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'
13097 else
13098 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'
13099 fi
13100 ;;
13101 pw32*)
13102 export_symbols_cmds_CXX="$ltdll_cmds"
13103 ;;
13104 cygwin* | mingw*)
13105 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'
13106 ;;
13107 linux* | k*bsd*-gnu)
13108 link_all_deplibs_CXX=no
13109 ;;
13110 *)
13111 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13112 ;;
13113 esac
13114 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13115
13116 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13117 $as_echo "$ld_shlibs_CXX" >&6; }
13118 test "$ld_shlibs_CXX" = no && can_build_shared=no
13119
13120 #
13121 # Do we need to explicitly link libc?
13122 #
13123 case "x$archive_cmds_need_lc_CXX" in
13124 x|xyes)
13125 # Assume -lc should be added
13126 archive_cmds_need_lc_CXX=yes
13127
13128 if test "$enable_shared" = yes && test "$GCC" = yes; then
13129 case $archive_cmds_CXX in
13130 *'~'*)
13131 # FIXME: we may have to deal with multi-command sequences.
13132 ;;
13133 '$CC '*)
13134 # Test whether the compiler implicitly links with -lc since on some
13135 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13136 # to ld, don't add -lc before -lgcc.
13137 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13138 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13139 $rm conftest*
13140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13141
13142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 (eval $ac_compile) 2>&5
13144 ac_status=$?
13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } 2>conftest.err; then
13147 soname=conftest
13148 lib=conftest
13149 libobjs=conftest.$ac_objext
13150 deplibs=
13151 wl=$lt_prog_compiler_wl_CXX
13152 pic_flag=$lt_prog_compiler_pic_CXX
13153 compiler_flags=-v
13154 linker_flags=-v
13155 verstring=
13156 output_objdir=.
13157 libname=conftest
13158 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13159 allow_undefined_flag_CXX=
13160 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13161 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13162 ac_status=$?
13163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }
13165 then
13166 archive_cmds_need_lc_CXX=no
13167 else
13168 archive_cmds_need_lc_CXX=yes
13169 fi
13170 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13171 else
13172 cat conftest.err 1>&5
13173 fi
13174 $rm conftest*
13175 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13176 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13177 ;;
13178 esac
13179 fi
13180 ;;
13181 esac
13182
13183 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13184 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13185 library_names_spec=
13186 libname_spec='lib$name'
13187 soname_spec=
13188 shrext_cmds=".so"
13189 postinstall_cmds=
13190 postuninstall_cmds=
13191 finish_cmds=
13192 finish_eval=
13193 shlibpath_var=
13194 shlibpath_overrides_runpath=unknown
13195 version_type=none
13196 dynamic_linker="$host_os ld.so"
13197 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13198
13199 need_lib_prefix=unknown
13200 hardcode_into_libs=no
13201
13202 # when you set need_version to no, make sure it does not cause -set_version
13203 # flags to be left without arguments
13204 need_version=unknown
13205
13206 case $host_os in
13207 aix3*)
13208 version_type=linux
13209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13210 shlibpath_var=LIBPATH
13211
13212 # AIX 3 has no versioning support, so we append a major version to the name.
13213 soname_spec='${libname}${release}${shared_ext}$major'
13214 ;;
13215
13216 aix[4-9]*)
13217 version_type=linux
13218 need_lib_prefix=no
13219 need_version=no
13220 hardcode_into_libs=yes
13221 if test "$host_cpu" = ia64; then
13222 # AIX 5 supports IA64
13223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13224 shlibpath_var=LD_LIBRARY_PATH
13225 else
13226 # With GCC up to 2.95.x, collect2 would create an import file
13227 # for dependence libraries. The import file would start with
13228 # the line `#! .'. This would cause the generated library to
13229 # depend on `.', always an invalid library. This was fixed in
13230 # development snapshots of GCC prior to 3.0.
13231 case $host_os in
13232 aix4 | aix4.[01] | aix4.[01].*)
13233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13234 echo ' yes '
13235 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13236 :
13237 else
13238 can_build_shared=no
13239 fi
13240 ;;
13241 esac
13242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13243 # soname into executable. Probably we can add versioning support to
13244 # collect2, so additional links can be useful in future.
13245 if test "$aix_use_runtimelinking" = yes; then
13246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13247 # instead of lib<name>.a to let people know that these are not
13248 # typical AIX shared libraries.
13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13250 else
13251 # We preserve .a as extension for shared libraries through AIX4.2
13252 # and later when we are not doing run time linking.
13253 library_names_spec='${libname}${release}.a $libname.a'
13254 soname_spec='${libname}${release}${shared_ext}$major'
13255 fi
13256 shlibpath_var=LIBPATH
13257 fi
13258 ;;
13259
13260 amigaos*)
13261 library_names_spec='$libname.ixlibrary $libname.a'
13262 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13263 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'
13264 ;;
13265
13266 beos*)
13267 library_names_spec='${libname}${shared_ext}'
13268 dynamic_linker="$host_os ld.so"
13269 shlibpath_var=LIBRARY_PATH
13270 ;;
13271
13272 bsdi[45]*)
13273 version_type=linux
13274 need_version=no
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276 soname_spec='${libname}${release}${shared_ext}$major'
13277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13278 shlibpath_var=LD_LIBRARY_PATH
13279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13281 # the default ld.so.conf also contains /usr/contrib/lib and
13282 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13283 # libtool to hard-code these into programs
13284 ;;
13285
13286 cygwin* | mingw* | pw32*)
13287 version_type=windows
13288 shrext_cmds=".dll"
13289 need_version=no
13290 need_lib_prefix=no
13291
13292 case $GCC,$host_os in
13293 yes,cygwin* | yes,mingw* | yes,pw32*)
13294 library_names_spec='$libname.dll.a'
13295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13296 postinstall_cmds='base_file=`basename \${file}`~
13297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13298 dldir=$destdir/`dirname \$dlpath`~
13299 test -d \$dldir || mkdir -p \$dldir~
13300 $install_prog $dir/$dlname \$dldir/$dlname~
13301 chmod a+x \$dldir/$dlname'
13302 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13303 dlpath=$dir/\$dldll~
13304 $rm \$dlpath'
13305 shlibpath_overrides_runpath=yes
13306
13307 case $host_os in
13308 cygwin*)
13309 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13310 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13311 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13312 ;;
13313 mingw*)
13314 # MinGW DLLs use traditional 'lib' prefix
13315 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13316 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13317 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13318 # It is most probably a Windows format PATH printed by
13319 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13320 # path with ; separators, and with drive letters. We can handle the
13321 # drive letters (cygwin fileutils understands them), so leave them,
13322 # especially as we might pass files found there to a mingw objdump,
13323 # which wouldn't understand a cygwinified path. Ahh.
13324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13325 else
13326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13327 fi
13328 ;;
13329 pw32*)
13330 # pw32 DLLs use 'pw' prefix rather than 'lib'
13331 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13332 ;;
13333 esac
13334 ;;
13335
13336 *)
13337 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13338 ;;
13339 esac
13340 dynamic_linker='Win32 ld.exe'
13341 # FIXME: first we should search . and the directory the executable is in
13342 shlibpath_var=PATH
13343 ;;
13344
13345 darwin* | rhapsody*)
13346 dynamic_linker="$host_os dyld"
13347 version_type=darwin
13348 need_lib_prefix=no
13349 need_version=no
13350 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13351 soname_spec='${libname}${release}${major}$shared_ext'
13352 shlibpath_overrides_runpath=yes
13353 shlibpath_var=DYLD_LIBRARY_PATH
13354 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13355
13356 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13357 ;;
13358
13359 dgux*)
13360 version_type=linux
13361 need_lib_prefix=no
13362 need_version=no
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13364 soname_spec='${libname}${release}${shared_ext}$major'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 ;;
13367
13368 freebsd1*)
13369 dynamic_linker=no
13370 ;;
13371
13372 freebsd* | dragonfly*)
13373 # DragonFly does not have aout. When/if they implement a new
13374 # versioning mechanism, adjust this.
13375 if test -x /usr/bin/objformat; then
13376 objformat=`/usr/bin/objformat`
13377 else
13378 case $host_os in
13379 freebsd[123]*) objformat=aout ;;
13380 *) objformat=elf ;;
13381 esac
13382 fi
13383 version_type=freebsd-$objformat
13384 case $version_type in
13385 freebsd-elf*)
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13387 need_version=no
13388 need_lib_prefix=no
13389 ;;
13390 freebsd-*)
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13392 need_version=yes
13393 ;;
13394 esac
13395 shlibpath_var=LD_LIBRARY_PATH
13396 case $host_os in
13397 freebsd2*)
13398 shlibpath_overrides_runpath=yes
13399 ;;
13400 freebsd3.[01]* | freebsdelf3.[01]*)
13401 shlibpath_overrides_runpath=yes
13402 hardcode_into_libs=yes
13403 ;;
13404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13406 shlibpath_overrides_runpath=no
13407 hardcode_into_libs=yes
13408 ;;
13409 *) # from 4.6 on, and DragonFly
13410 shlibpath_overrides_runpath=yes
13411 hardcode_into_libs=yes
13412 ;;
13413 esac
13414 ;;
13415
13416 gnu*)
13417 version_type=linux
13418 need_lib_prefix=no
13419 need_version=no
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13421 soname_spec='${libname}${release}${shared_ext}$major'
13422 shlibpath_var=LD_LIBRARY_PATH
13423 hardcode_into_libs=yes
13424 ;;
13425
13426 hpux9* | hpux10* | hpux11*)
13427 # Give a soname corresponding to the major version so that dld.sl refuses to
13428 # link against other versions.
13429 version_type=sunos
13430 need_lib_prefix=no
13431 need_version=no
13432 case $host_cpu in
13433 ia64*)
13434 shrext_cmds='.so'
13435 hardcode_into_libs=yes
13436 dynamic_linker="$host_os dld.so"
13437 shlibpath_var=LD_LIBRARY_PATH
13438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13440 soname_spec='${libname}${release}${shared_ext}$major'
13441 if test "X$HPUX_IA64_MODE" = X32; then
13442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13443 else
13444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13445 fi
13446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13447 ;;
13448 hppa*64*)
13449 shrext_cmds='.sl'
13450 hardcode_into_libs=yes
13451 dynamic_linker="$host_os dld.sl"
13452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455 soname_spec='${libname}${release}${shared_ext}$major'
13456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13458 ;;
13459 *)
13460 shrext_cmds='.sl'
13461 dynamic_linker="$host_os dld.sl"
13462 shlibpath_var=SHLIB_PATH
13463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 ;;
13467 esac
13468 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13469 postinstall_cmds='chmod 555 $lib'
13470 ;;
13471
13472 interix[3-9]*)
13473 version_type=linux
13474 need_lib_prefix=no
13475 need_version=no
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13479 shlibpath_var=LD_LIBRARY_PATH
13480 shlibpath_overrides_runpath=no
13481 hardcode_into_libs=yes
13482 ;;
13483
13484 irix5* | irix6* | nonstopux*)
13485 case $host_os in
13486 nonstopux*) version_type=nonstopux ;;
13487 *)
13488 if test "$lt_cv_prog_gnu_ld" = yes; then
13489 version_type=linux
13490 else
13491 version_type=irix
13492 fi ;;
13493 esac
13494 need_lib_prefix=no
13495 need_version=no
13496 soname_spec='${libname}${release}${shared_ext}$major'
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13498 case $host_os in
13499 irix5* | nonstopux*)
13500 libsuff= shlibsuff=
13501 ;;
13502 *)
13503 case $LD in # libtool.m4 will add one of these switches to LD
13504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13505 libsuff= shlibsuff= libmagic=32-bit;;
13506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13507 libsuff=32 shlibsuff=N32 libmagic=N32;;
13508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13510 *) libsuff= shlibsuff= libmagic=never-match;;
13511 esac
13512 ;;
13513 esac
13514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13515 shlibpath_overrides_runpath=no
13516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13518 hardcode_into_libs=yes
13519 ;;
13520
13521 # No shared lib support for Linux oldld, aout, or coff.
13522 linux*oldld* | linux*aout* | linux*coff*)
13523 dynamic_linker=no
13524 ;;
13525
13526 # This must be Linux ELF.
13527 linux* | k*bsd*-gnu)
13528 version_type=linux
13529 need_lib_prefix=no
13530 need_version=no
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 shlibpath_overrides_runpath=no
13536 # This implies no fast_install, which is unacceptable.
13537 # Some rework will be needed to allow for fast_install
13538 # before this can be enabled.
13539 hardcode_into_libs=yes
13540
13541 # find out which ABI we are using
13542 libsuff=
13543 case "$host_cpu" in
13544 x86_64*|s390x*|powerpc64*)
13545 echo '#line 13545 "configure"' > conftest.$ac_ext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; then
13551 case `/usr/bin/file conftest.$ac_objext` in
13552 *64-bit*)
13553 libsuff=64
13554 ;;
13555 esac
13556 fi
13557 rm -rf conftest*
13558 ;;
13559 esac
13560
13561 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13562
13563 # Append ld.so.conf contents to the search path
13564 if test -f /etc/ld.so.conf; then
13565 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' ' '`
13566 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13567 fi
13568
13569 # We used to test for /lib/ld.so.1 and disable shared libraries on
13570 # powerpc, because MkLinux only supported shared libraries with the
13571 # GNU dynamic linker. Since this was broken with cross compilers,
13572 # most powerpc-linux boxes support dynamic linking these days and
13573 # people can always --disable-shared, the test was removed, and we
13574 # assume the GNU/Linux dynamic linker is in use.
13575 dynamic_linker='GNU/Linux ld.so'
13576 ;;
13577
13578 netbsd*)
13579 version_type=sunos
13580 need_lib_prefix=no
13581 need_version=no
13582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13585 dynamic_linker='NetBSD (a.out) ld.so'
13586 else
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13588 soname_spec='${libname}${release}${shared_ext}$major'
13589 dynamic_linker='NetBSD ld.elf_so'
13590 fi
13591 shlibpath_var=LD_LIBRARY_PATH
13592 shlibpath_overrides_runpath=yes
13593 hardcode_into_libs=yes
13594 ;;
13595
13596 newsos6)
13597 version_type=linux
13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=yes
13601 ;;
13602
13603 nto-qnx*)
13604 version_type=linux
13605 need_lib_prefix=no
13606 need_version=no
13607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608 soname_spec='${libname}${release}${shared_ext}$major'
13609 shlibpath_var=LD_LIBRARY_PATH
13610 shlibpath_overrides_runpath=yes
13611 ;;
13612
13613 openbsd*)
13614 version_type=sunos
13615 sys_lib_dlsearch_path_spec="/usr/lib"
13616 need_lib_prefix=no
13617 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13618 case $host_os in
13619 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13620 *) need_version=no ;;
13621 esac
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13626 case $host_os in
13627 openbsd2.[89] | openbsd2.[89].*)
13628 shlibpath_overrides_runpath=no
13629 ;;
13630 *)
13631 shlibpath_overrides_runpath=yes
13632 ;;
13633 esac
13634 else
13635 shlibpath_overrides_runpath=yes
13636 fi
13637 ;;
13638
13639 os2*)
13640 libname_spec='$name'
13641 shrext_cmds=".dll"
13642 need_lib_prefix=no
13643 library_names_spec='$libname${shared_ext} $libname.a'
13644 dynamic_linker='OS/2 ld.exe'
13645 shlibpath_var=LIBPATH
13646 ;;
13647
13648 osf3* | osf4* | osf5*)
13649 version_type=osf
13650 need_lib_prefix=no
13651 need_version=no
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654 shlibpath_var=LD_LIBRARY_PATH
13655 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13656 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13657 ;;
13658
13659 rdos*)
13660 dynamic_linker=no
13661 ;;
13662
13663 solaris*)
13664 version_type=linux
13665 need_lib_prefix=no
13666 need_version=no
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13668 soname_spec='${libname}${release}${shared_ext}$major'
13669 shlibpath_var=LD_LIBRARY_PATH
13670 shlibpath_overrides_runpath=yes
13671 hardcode_into_libs=yes
13672 # ldd complains unless libraries are executable
13673 postinstall_cmds='chmod +x $lib'
13674 ;;
13675
13676 sunos4*)
13677 version_type=sunos
13678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13679 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13680 shlibpath_var=LD_LIBRARY_PATH
13681 shlibpath_overrides_runpath=yes
13682 if test "$with_gnu_ld" = yes; then
13683 need_lib_prefix=no
13684 fi
13685 need_version=yes
13686 ;;
13687
13688 sysv4 | sysv4.3*)
13689 version_type=linux
13690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691 soname_spec='${libname}${release}${shared_ext}$major'
13692 shlibpath_var=LD_LIBRARY_PATH
13693 case $host_vendor in
13694 sni)
13695 shlibpath_overrides_runpath=no
13696 need_lib_prefix=no
13697 export_dynamic_flag_spec='${wl}-Blargedynsym'
13698 runpath_var=LD_RUN_PATH
13699 ;;
13700 siemens)
13701 need_lib_prefix=no
13702 ;;
13703 motorola)
13704 need_lib_prefix=no
13705 need_version=no
13706 shlibpath_overrides_runpath=no
13707 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13708 ;;
13709 esac
13710 ;;
13711
13712 sysv4*MP*)
13713 if test -d /usr/nec ;then
13714 version_type=linux
13715 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13716 soname_spec='$libname${shared_ext}.$major'
13717 shlibpath_var=LD_LIBRARY_PATH
13718 fi
13719 ;;
13720
13721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13722 version_type=freebsd-elf
13723 need_lib_prefix=no
13724 need_version=no
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13726 soname_spec='${libname}${release}${shared_ext}$major'
13727 shlibpath_var=LD_LIBRARY_PATH
13728 hardcode_into_libs=yes
13729 if test "$with_gnu_ld" = yes; then
13730 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13731 shlibpath_overrides_runpath=no
13732 else
13733 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13734 shlibpath_overrides_runpath=yes
13735 case $host_os in
13736 sco3.2v5*)
13737 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13738 ;;
13739 esac
13740 fi
13741 sys_lib_dlsearch_path_spec='/usr/lib'
13742 ;;
13743
13744 uts4*)
13745 version_type=linux
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 ;;
13750
13751 *)
13752 dynamic_linker=no
13753 ;;
13754 esac
13755 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13756 $as_echo "$dynamic_linker" >&6; }
13757 test "$dynamic_linker" = no && can_build_shared=no
13758
13759 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13760 $as_echo_n "(cached) " >&6
13761 else
13762 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13763 fi
13764
13765 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13766 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13767 $as_echo_n "(cached) " >&6
13768 else
13769 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13770 fi
13771
13772 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13773
13774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13775 if test "$GCC" = yes; then
13776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13777 fi
13778
13779 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13781 hardcode_action_CXX=
13782 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13783 test -n "$runpath_var_CXX" || \
13784 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13785
13786 # We can hardcode non-existant directories.
13787 if test "$hardcode_direct_CXX" != no &&
13788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13789 # have to relink, otherwise we might link with an installed library
13790 # when we should be linking with a yet-to-be-installed one
13791 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13792 test "$hardcode_minus_L_CXX" != no; then
13793 # Linking always hardcodes the temporary library directory.
13794 hardcode_action_CXX=relink
13795 else
13796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13797 hardcode_action_CXX=immediate
13798 fi
13799 else
13800 # We cannot hardcode anything, or else we can only hardcode existing
13801 # directories.
13802 hardcode_action_CXX=unsupported
13803 fi
13804 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13805 $as_echo "$hardcode_action_CXX" >&6; }
13806
13807 if test "$hardcode_action_CXX" = relink; then
13808 # Fast installation is not supported
13809 enable_fast_install=no
13810 elif test "$shlibpath_overrides_runpath" = yes ||
13811 test "$enable_shared" = no; then
13812 # Fast installation is not necessary
13813 enable_fast_install=needless
13814 fi
13815
13816
13817 # The else clause should only fire when bootstrapping the
13818 # libtool distribution, otherwise you forgot to ship ltmain.sh
13819 # with your package, and you will get complaints that there are
13820 # no rules to generate ltmain.sh.
13821 if test -f "$ltmain"; then
13822 # See if we are running on zsh, and set the options which allow our commands through
13823 # without removal of \ escapes.
13824 if test -n "${ZSH_VERSION+set}" ; then
13825 setopt NO_GLOB_SUBST
13826 fi
13827 # Now quote all the things that may contain metacharacters while being
13828 # careful not to overquote the AC_SUBSTed values. We take copies of the
13829 # variables and quote the copies for generation of the libtool script.
13830 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13831 SED SHELL STRIP \
13832 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13833 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13834 deplibs_check_method reload_flag reload_cmds need_locks \
13835 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13836 lt_cv_sys_global_symbol_to_c_name_address \
13837 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13838 old_postinstall_cmds old_postuninstall_cmds \
13839 compiler_CXX \
13840 CC_CXX \
13841 LD_CXX \
13842 lt_prog_compiler_wl_CXX \
13843 lt_prog_compiler_pic_CXX \
13844 lt_prog_compiler_static_CXX \
13845 lt_prog_compiler_no_builtin_flag_CXX \
13846 export_dynamic_flag_spec_CXX \
13847 thread_safe_flag_spec_CXX \
13848 whole_archive_flag_spec_CXX \
13849 enable_shared_with_static_runtimes_CXX \
13850 old_archive_cmds_CXX \
13851 old_archive_from_new_cmds_CXX \
13852 predep_objects_CXX \
13853 postdep_objects_CXX \
13854 predeps_CXX \
13855 postdeps_CXX \
13856 compiler_lib_search_path_CXX \
13857 compiler_lib_search_dirs_CXX \
13858 archive_cmds_CXX \
13859 archive_expsym_cmds_CXX \
13860 postinstall_cmds_CXX \
13861 postuninstall_cmds_CXX \
13862 old_archive_from_expsyms_cmds_CXX \
13863 allow_undefined_flag_CXX \
13864 no_undefined_flag_CXX \
13865 export_symbols_cmds_CXX \
13866 hardcode_libdir_flag_spec_CXX \
13867 hardcode_libdir_flag_spec_ld_CXX \
13868 hardcode_libdir_separator_CXX \
13869 hardcode_automatic_CXX \
13870 module_cmds_CXX \
13871 module_expsym_cmds_CXX \
13872 lt_cv_prog_compiler_c_o_CXX \
13873 fix_srcfile_path_CXX \
13874 exclude_expsyms_CXX \
13875 include_expsyms_CXX; do
13876
13877 case $var in
13878 old_archive_cmds_CXX | \
13879 old_archive_from_new_cmds_CXX | \
13880 archive_cmds_CXX | \
13881 archive_expsym_cmds_CXX | \
13882 module_cmds_CXX | \
13883 module_expsym_cmds_CXX | \
13884 old_archive_from_expsyms_cmds_CXX | \
13885 export_symbols_cmds_CXX | \
13886 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13887 postinstall_cmds | postuninstall_cmds | \
13888 old_postinstall_cmds | old_postuninstall_cmds | \
13889 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13890 # Double-quote double-evaled strings.
13891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13892 ;;
13893 *)
13894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13895 ;;
13896 esac
13897 done
13898
13899 case $lt_echo in
13900 *'\$0 --fallback-echo"')
13901 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13902 ;;
13903 esac
13904
13905 cfgfile="$ofile"
13906
13907 cat <<__EOF__ >> "$cfgfile"
13908 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13909
13910 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13911
13912 # Shell to use when invoking shell scripts.
13913 SHELL=$lt_SHELL
13914
13915 # Whether or not to build shared libraries.
13916 build_libtool_libs=$enable_shared
13917
13918 # Whether or not to build static libraries.
13919 build_old_libs=$enable_static
13920
13921 # Whether or not to add -lc for building shared libraries.
13922 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13923
13924 # Whether or not to disallow shared libs when runtime libs are static
13925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13926
13927 # Whether or not to optimize for fast installation.
13928 fast_install=$enable_fast_install
13929
13930 # The host system.
13931 host_alias=$host_alias
13932 host=$host
13933 host_os=$host_os
13934
13935 # The build system.
13936 build_alias=$build_alias
13937 build=$build
13938 build_os=$build_os
13939
13940 # An echo program that does not interpret backslashes.
13941 echo=$lt_echo
13942
13943 # The archiver.
13944 AR=$lt_AR
13945 AR_FLAGS=$lt_AR_FLAGS
13946
13947 # A C compiler.
13948 LTCC=$lt_LTCC
13949
13950 # LTCC compiler flags.
13951 LTCFLAGS=$lt_LTCFLAGS
13952
13953 # A language-specific compiler.
13954 CC=$lt_compiler_CXX
13955
13956 # Is the compiler the GNU C compiler?
13957 with_gcc=$GCC_CXX
13958
13959 # An ERE matcher.
13960 EGREP=$lt_EGREP
13961
13962 # The linker used to build libraries.
13963 LD=$lt_LD_CXX
13964
13965 # Whether we need hard or soft links.
13966 LN_S=$lt_LN_S
13967
13968 # A BSD-compatible nm program.
13969 NM=$lt_NM
13970
13971 # A symbol stripping program
13972 STRIP=$lt_STRIP
13973
13974 # Used to examine libraries when file_magic_cmd begins "file"
13975 MAGIC_CMD=$MAGIC_CMD
13976
13977 # Used on cygwin: DLL creation program.
13978 DLLTOOL="$DLLTOOL"
13979
13980 # Used on cygwin: object dumper.
13981 OBJDUMP="$OBJDUMP"
13982
13983 # Used on cygwin: assembler.
13984 AS="$AS"
13985
13986 # The name of the directory that contains temporary libtool files.
13987 objdir=$objdir
13988
13989 # How to create reloadable object files.
13990 reload_flag=$lt_reload_flag
13991 reload_cmds=$lt_reload_cmds
13992
13993 # How to pass a linker flag through the compiler.
13994 wl=$lt_lt_prog_compiler_wl_CXX
13995
13996 # Object file suffix (normally "o").
13997 objext="$ac_objext"
13998
13999 # Old archive suffix (normally "a").
14000 libext="$libext"
14001
14002 # Shared library suffix (normally ".so").
14003 shrext_cmds='$shrext_cmds'
14004
14005 # Executable file suffix (normally "").
14006 exeext="$exeext"
14007
14008 # Additional compiler flags for building library objects.
14009 pic_flag=$lt_lt_prog_compiler_pic_CXX
14010 pic_mode=$pic_mode
14011
14012 # What is the maximum length of a command?
14013 max_cmd_len=$lt_cv_sys_max_cmd_len
14014
14015 # Does compiler simultaneously support -c and -o options?
14016 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14017
14018 # Must we lock files when doing compilation?
14019 need_locks=$lt_need_locks
14020
14021 # Do we need the lib prefix for modules?
14022 need_lib_prefix=$need_lib_prefix
14023
14024 # Do we need a version for libraries?
14025 need_version=$need_version
14026
14027 # Whether dlopen is supported.
14028 dlopen_support=$enable_dlopen
14029
14030 # Whether dlopen of programs is supported.
14031 dlopen_self=$enable_dlopen_self
14032
14033 # Whether dlopen of statically linked programs is supported.
14034 dlopen_self_static=$enable_dlopen_self_static
14035
14036 # Compiler flag to prevent dynamic linking.
14037 link_static_flag=$lt_lt_prog_compiler_static_CXX
14038
14039 # Compiler flag to turn off builtin functions.
14040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14041
14042 # Compiler flag to allow reflexive dlopens.
14043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14044
14045 # Compiler flag to generate shared objects directly from archives.
14046 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14047
14048 # Compiler flag to generate thread-safe objects.
14049 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14050
14051 # Library versioning type.
14052 version_type=$version_type
14053
14054 # Format of library name prefix.
14055 libname_spec=$lt_libname_spec
14056
14057 # List of archive names. First name is the real one, the rest are links.
14058 # The last name is the one that the linker finds with -lNAME.
14059 library_names_spec=$lt_library_names_spec
14060
14061 # The coded name of the library, if different from the real name.
14062 soname_spec=$lt_soname_spec
14063
14064 # Commands used to build and install an old-style archive.
14065 RANLIB=$lt_RANLIB
14066 old_archive_cmds=$lt_old_archive_cmds_CXX
14067 old_postinstall_cmds=$lt_old_postinstall_cmds
14068 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14069
14070 # Create an old-style archive from a shared archive.
14071 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14072
14073 # Create a temporary old-style archive to link instead of a shared archive.
14074 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14075
14076 # Commands used to build and install a shared archive.
14077 archive_cmds=$lt_archive_cmds_CXX
14078 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14079 postinstall_cmds=$lt_postinstall_cmds
14080 postuninstall_cmds=$lt_postuninstall_cmds
14081
14082 # Commands used to build a loadable module (assumed same as above if empty)
14083 module_cmds=$lt_module_cmds_CXX
14084 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14085
14086 # Commands to strip libraries.
14087 old_striplib=$lt_old_striplib
14088 striplib=$lt_striplib
14089
14090 # Dependencies to place before the objects being linked to create a
14091 # shared library.
14092 predep_objects=$lt_predep_objects_CXX
14093
14094 # Dependencies to place after the objects being linked to create a
14095 # shared library.
14096 postdep_objects=$lt_postdep_objects_CXX
14097
14098 # Dependencies to place before the objects being linked to create a
14099 # shared library.
14100 predeps=$lt_predeps_CXX
14101
14102 # Dependencies to place after the objects being linked to create a
14103 # shared library.
14104 postdeps=$lt_postdeps_CXX
14105
14106 # The directories searched by this compiler when creating a shared
14107 # library
14108 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14109
14110 # The library search path used internally by the compiler when linking
14111 # a shared library.
14112 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14113
14114 # Method to check whether dependent libraries are shared objects.
14115 deplibs_check_method=$lt_deplibs_check_method
14116
14117 # Command to use when deplibs_check_method == file_magic.
14118 file_magic_cmd=$lt_file_magic_cmd
14119
14120 # Flag that allows shared libraries with undefined symbols to be built.
14121 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14122
14123 # Flag that forces no undefined symbols.
14124 no_undefined_flag=$lt_no_undefined_flag_CXX
14125
14126 # Commands used to finish a libtool library installation in a directory.
14127 finish_cmds=$lt_finish_cmds
14128
14129 # Same as above, but a single script fragment to be evaled but not shown.
14130 finish_eval=$lt_finish_eval
14131
14132 # Take the output of nm and produce a listing of raw symbols and C names.
14133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14134
14135 # Transform the output of nm in a proper C declaration
14136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14137
14138 # Transform the output of nm in a C name address pair
14139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14140
14141 # This is the shared library runtime path variable.
14142 runpath_var=$runpath_var
14143
14144 # This is the shared library path variable.
14145 shlibpath_var=$shlibpath_var
14146
14147 # Is shlibpath searched before the hard-coded library search path?
14148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14149
14150 # How to hardcode a shared library path into an executable.
14151 hardcode_action=$hardcode_action_CXX
14152
14153 # Whether we should hardcode library paths into libraries.
14154 hardcode_into_libs=$hardcode_into_libs
14155
14156 # Flag to hardcode \$libdir into a binary during linking.
14157 # This must work even if \$libdir does not exist.
14158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14159
14160 # If ld is used when linking, flag to hardcode \$libdir into
14161 # a binary during linking. This must work even if \$libdir does
14162 # not exist.
14163 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14164
14165 # Whether we need a single -rpath flag with a separated argument.
14166 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14167
14168 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14169 # resulting binary.
14170 hardcode_direct=$hardcode_direct_CXX
14171
14172 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14173 # resulting binary.
14174 hardcode_minus_L=$hardcode_minus_L_CXX
14175
14176 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14177 # the resulting binary.
14178 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14179
14180 # Set to yes if building a shared library automatically hardcodes DIR into the library
14181 # and all subsequent libraries and executables linked against it.
14182 hardcode_automatic=$hardcode_automatic_CXX
14183
14184 # Variables whose values should be saved in libtool wrapper scripts and
14185 # restored at relink time.
14186 variables_saved_for_relink="$variables_saved_for_relink"
14187
14188 # Whether libtool must link a program against all its dependency libraries.
14189 link_all_deplibs=$link_all_deplibs_CXX
14190
14191 # Compile-time system search path for libraries
14192 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14193
14194 # Run-time system search path for libraries
14195 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14196
14197 # Fix the shell variable \$srcfile for the compiler.
14198 fix_srcfile_path=$lt_fix_srcfile_path
14199
14200 # Set to yes if exported symbols are required.
14201 always_export_symbols=$always_export_symbols_CXX
14202
14203 # The commands to list exported symbols.
14204 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14205
14206 # The commands to extract the exported symbol list from a shared archive.
14207 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14208
14209 # Symbols that should not be listed in the preloaded symbols.
14210 exclude_expsyms=$lt_exclude_expsyms_CXX
14211
14212 # Symbols that must always be exported.
14213 include_expsyms=$lt_include_expsyms_CXX
14214
14215 # ### END LIBTOOL TAG CONFIG: $tagname
14216
14217 __EOF__
14218
14219
14220 else
14221 # If there is no Makefile yet, we rely on a make rule to execute
14222 # `config.status --recheck' to rerun these tests and create the
14223 # libtool script then.
14224 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14225 if test -f "$ltmain_in"; then
14226 test -f Makefile && make "$ltmain"
14227 fi
14228 fi
14229
14230
14231 ac_ext=c
14232 ac_cpp='$CPP $CPPFLAGS'
14233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14236
14237 CC=$lt_save_CC
14238 LDCXX=$LD
14239 LD=$lt_save_LD
14240 GCC=$lt_save_GCC
14241 with_gnu_ldcxx=$with_gnu_ld
14242 with_gnu_ld=$lt_save_with_gnu_ld
14243 lt_cv_path_LDCXX=$lt_cv_path_LD
14244 lt_cv_path_LD=$lt_save_path_LD
14245 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14246 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14247
14248 else
14249 tagname=""
14250 fi
14251 ;;
14252
14253 F77)
14254 if test -n "$F77" && test "X$F77" != "Xno"; then
14255
14256 ac_ext=f
14257 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14258 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14259 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14260
14261
14262 archive_cmds_need_lc_F77=no
14263 allow_undefined_flag_F77=
14264 always_export_symbols_F77=no
14265 archive_expsym_cmds_F77=
14266 export_dynamic_flag_spec_F77=
14267 hardcode_direct_F77=no
14268 hardcode_libdir_flag_spec_F77=
14269 hardcode_libdir_flag_spec_ld_F77=
14270 hardcode_libdir_separator_F77=
14271 hardcode_minus_L_F77=no
14272 hardcode_automatic_F77=no
14273 module_cmds_F77=
14274 module_expsym_cmds_F77=
14275 link_all_deplibs_F77=unknown
14276 old_archive_cmds_F77=$old_archive_cmds
14277 no_undefined_flag_F77=
14278 whole_archive_flag_spec_F77=
14279 enable_shared_with_static_runtimes_F77=no
14280
14281 # Source file extension for f77 test sources.
14282 ac_ext=f
14283
14284 # Object file extension for compiled f77 test sources.
14285 objext=o
14286 objext_F77=$objext
14287
14288 # Code to be used in simple compile tests
14289 lt_simple_compile_test_code="\
14290 subroutine t
14291 return
14292 end
14293 "
14294
14295 # Code to be used in simple link tests
14296 lt_simple_link_test_code="\
14297 program t
14298 end
14299 "
14300
14301 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14302
14303 # If no C compiler was specified, use CC.
14304 LTCC=${LTCC-"$CC"}
14305
14306 # If no C compiler flags were specified, use CFLAGS.
14307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14308
14309 # Allow CC to be a program name with arguments.
14310 compiler=$CC
14311
14312
14313 # save warnings/boilerplate of simple test code
14314 ac_outfile=conftest.$ac_objext
14315 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14317 _lt_compiler_boilerplate=`cat conftest.err`
14318 $rm conftest*
14319
14320 ac_outfile=conftest.$ac_objext
14321 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14323 _lt_linker_boilerplate=`cat conftest.err`
14324 $rm -r conftest*
14325
14326
14327 # Allow CC to be a program name with arguments.
14328 lt_save_CC="$CC"
14329 CC=${F77-"f77"}
14330 compiler=$CC
14331 compiler_F77=$CC
14332 for cc_temp in $compiler""; do
14333 case $cc_temp in
14334 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14335 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14336 \-*) ;;
14337 *) break;;
14338 esac
14339 done
14340 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14341
14342
14343 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14344 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14345 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14346 $as_echo "$can_build_shared" >&6; }
14347
14348 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14349 $as_echo_n "checking whether to build shared libraries... " >&6; }
14350 test "$can_build_shared" = "no" && enable_shared=no
14351
14352 # On AIX, shared libraries and static libraries use the same namespace, and
14353 # are all built from PIC.
14354 case $host_os in
14355 aix3*)
14356 test "$enable_shared" = yes && enable_static=no
14357 if test -n "$RANLIB"; then
14358 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14359 postinstall_cmds='$RANLIB $lib'
14360 fi
14361 ;;
14362 aix[4-9]*)
14363 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14364 test "$enable_shared" = yes && enable_static=no
14365 fi
14366 ;;
14367 esac
14368 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14369 $as_echo "$enable_shared" >&6; }
14370
14371 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14372 $as_echo_n "checking whether to build static libraries... " >&6; }
14373 # Make sure either enable_shared or enable_static is yes.
14374 test "$enable_shared" = yes || enable_static=yes
14375 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14376 $as_echo "$enable_static" >&6; }
14377
14378 GCC_F77="$G77"
14379 LD_F77="$LD"
14380
14381 lt_prog_compiler_wl_F77=
14382 lt_prog_compiler_pic_F77=
14383 lt_prog_compiler_static_F77=
14384
14385 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14386 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14387
14388 if test "$GCC" = yes; then
14389 lt_prog_compiler_wl_F77='-Wl,'
14390 lt_prog_compiler_static_F77='-static'
14391
14392 case $host_os in
14393 aix*)
14394 # All AIX code is PIC.
14395 if test "$host_cpu" = ia64; then
14396 # AIX 5 now supports IA64 processor
14397 lt_prog_compiler_static_F77='-Bstatic'
14398 fi
14399 ;;
14400
14401 amigaos*)
14402 # FIXME: we need at least 68020 code to build shared libraries, but
14403 # adding the `-m68020' flag to GCC prevents building anything better,
14404 # like `-m68040'.
14405 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14406 ;;
14407
14408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14409 # PIC is the default for these OSes.
14410 ;;
14411
14412 mingw* | cygwin* | pw32* | os2*)
14413 # This hack is so that the source file can tell whether it is being
14414 # built for inclusion in a dll (and should export symbols for example).
14415 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14416 # (--disable-auto-import) libraries
14417 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14418 ;;
14419
14420 darwin* | rhapsody*)
14421 # PIC is the default on this platform
14422 # Common symbols not allowed in MH_DYLIB files
14423 lt_prog_compiler_pic_F77='-fno-common'
14424 ;;
14425
14426 interix[3-9]*)
14427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14428 # Instead, we relocate shared libraries at runtime.
14429 ;;
14430
14431 msdosdjgpp*)
14432 # Just because we use GCC doesn't mean we suddenly get shared libraries
14433 # on systems that don't support them.
14434 lt_prog_compiler_can_build_shared_F77=no
14435 enable_shared=no
14436 ;;
14437
14438 sysv4*MP*)
14439 if test -d /usr/nec; then
14440 lt_prog_compiler_pic_F77=-Kconform_pic
14441 fi
14442 ;;
14443
14444 hpux*)
14445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14446 # not for PA HP-UX.
14447 case $host_cpu in
14448 hppa*64*|ia64*)
14449 # +Z the default
14450 ;;
14451 *)
14452 lt_prog_compiler_pic_F77='-fPIC'
14453 ;;
14454 esac
14455 ;;
14456
14457 *)
14458 lt_prog_compiler_pic_F77='-fPIC'
14459 ;;
14460 esac
14461 else
14462 # PORTME Check for flag to pass linker flags through the system compiler.
14463 case $host_os in
14464 aix*)
14465 lt_prog_compiler_wl_F77='-Wl,'
14466 if test "$host_cpu" = ia64; then
14467 # AIX 5 now supports IA64 processor
14468 lt_prog_compiler_static_F77='-Bstatic'
14469 else
14470 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14471 fi
14472 ;;
14473 darwin*)
14474 # PIC is the default on this platform
14475 # Common symbols not allowed in MH_DYLIB files
14476 case $cc_basename in
14477 xlc*)
14478 lt_prog_compiler_pic_F77='-qnocommon'
14479 lt_prog_compiler_wl_F77='-Wl,'
14480 ;;
14481 esac
14482 ;;
14483
14484 mingw* | cygwin* | pw32* | os2*)
14485 # This hack is so that the source file can tell whether it is being
14486 # built for inclusion in a dll (and should export symbols for example).
14487 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14488 ;;
14489
14490 hpux9* | hpux10* | hpux11*)
14491 lt_prog_compiler_wl_F77='-Wl,'
14492 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14493 # not for PA HP-UX.
14494 case $host_cpu in
14495 hppa*64*|ia64*)
14496 # +Z the default
14497 ;;
14498 *)
14499 lt_prog_compiler_pic_F77='+Z'
14500 ;;
14501 esac
14502 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14503 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14504 ;;
14505
14506 irix5* | irix6* | nonstopux*)
14507 lt_prog_compiler_wl_F77='-Wl,'
14508 # PIC (with -KPIC) is the default.
14509 lt_prog_compiler_static_F77='-non_shared'
14510 ;;
14511
14512 newsos6)
14513 lt_prog_compiler_pic_F77='-KPIC'
14514 lt_prog_compiler_static_F77='-Bstatic'
14515 ;;
14516
14517 linux* | k*bsd*-gnu)
14518 case $cc_basename in
14519 icc* | ecc*)
14520 lt_prog_compiler_wl_F77='-Wl,'
14521 lt_prog_compiler_pic_F77='-KPIC'
14522 lt_prog_compiler_static_F77='-static'
14523 ;;
14524 pgcc* | pgf77* | pgf90* | pgf95*)
14525 # Portland Group compilers (*not* the Pentium gcc compiler,
14526 # which looks to be a dead project)
14527 lt_prog_compiler_wl_F77='-Wl,'
14528 lt_prog_compiler_pic_F77='-fpic'
14529 lt_prog_compiler_static_F77='-Bstatic'
14530 ;;
14531 ccc*)
14532 lt_prog_compiler_wl_F77='-Wl,'
14533 # All Alpha code is PIC.
14534 lt_prog_compiler_static_F77='-non_shared'
14535 ;;
14536 *)
14537 case `$CC -V 2>&1 | sed 5q` in
14538 *Sun\ C*)
14539 # Sun C 5.9
14540 lt_prog_compiler_pic_F77='-KPIC'
14541 lt_prog_compiler_static_F77='-Bstatic'
14542 lt_prog_compiler_wl_F77='-Wl,'
14543 ;;
14544 *Sun\ F*)
14545 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14546 lt_prog_compiler_pic_F77='-KPIC'
14547 lt_prog_compiler_static_F77='-Bstatic'
14548 lt_prog_compiler_wl_F77=''
14549 ;;
14550 esac
14551 ;;
14552 esac
14553 ;;
14554
14555 osf3* | osf4* | osf5*)
14556 lt_prog_compiler_wl_F77='-Wl,'
14557 # All OSF/1 code is PIC.
14558 lt_prog_compiler_static_F77='-non_shared'
14559 ;;
14560
14561 rdos*)
14562 lt_prog_compiler_static_F77='-non_shared'
14563 ;;
14564
14565 solaris*)
14566 lt_prog_compiler_pic_F77='-KPIC'
14567 lt_prog_compiler_static_F77='-Bstatic'
14568 case $cc_basename in
14569 f77* | f90* | f95*)
14570 lt_prog_compiler_wl_F77='-Qoption ld ';;
14571 *)
14572 lt_prog_compiler_wl_F77='-Wl,';;
14573 esac
14574 ;;
14575
14576 sunos4*)
14577 lt_prog_compiler_wl_F77='-Qoption ld '
14578 lt_prog_compiler_pic_F77='-PIC'
14579 lt_prog_compiler_static_F77='-Bstatic'
14580 ;;
14581
14582 sysv4 | sysv4.2uw2* | sysv4.3*)
14583 lt_prog_compiler_wl_F77='-Wl,'
14584 lt_prog_compiler_pic_F77='-KPIC'
14585 lt_prog_compiler_static_F77='-Bstatic'
14586 ;;
14587
14588 sysv4*MP*)
14589 if test -d /usr/nec ;then
14590 lt_prog_compiler_pic_F77='-Kconform_pic'
14591 lt_prog_compiler_static_F77='-Bstatic'
14592 fi
14593 ;;
14594
14595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14596 lt_prog_compiler_wl_F77='-Wl,'
14597 lt_prog_compiler_pic_F77='-KPIC'
14598 lt_prog_compiler_static_F77='-Bstatic'
14599 ;;
14600
14601 unicos*)
14602 lt_prog_compiler_wl_F77='-Wl,'
14603 lt_prog_compiler_can_build_shared_F77=no
14604 ;;
14605
14606 uts4*)
14607 lt_prog_compiler_pic_F77='-pic'
14608 lt_prog_compiler_static_F77='-Bstatic'
14609 ;;
14610
14611 *)
14612 lt_prog_compiler_can_build_shared_F77=no
14613 ;;
14614 esac
14615 fi
14616
14617 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14618 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14619
14620 #
14621 # Check to make sure the PIC flag actually works.
14622 #
14623 if test -n "$lt_prog_compiler_pic_F77"; then
14624
14625 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14626 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14627 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14628 $as_echo_n "(cached) " >&6
14629 else
14630 lt_cv_prog_compiler_pic_works_F77=no
14631 ac_outfile=conftest.$ac_objext
14632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14634 # Insert the option either (1) after the last *FLAGS variable, or
14635 # (2) before a word containing "conftest.", or (3) at the end.
14636 # Note that $ac_compile itself does not contain backslashes and begins
14637 # with a dollar sign (not a hyphen), so the echo should work correctly.
14638 # The option is referenced via a variable to avoid confusing sed.
14639 lt_compile=`echo "$ac_compile" | $SED \
14640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14642 -e 's:$: $lt_compiler_flag:'`
14643 (eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
14644 (eval "$lt_compile" 2>conftest.err)
14645 ac_status=$?
14646 cat conftest.err >&5
14647 echo "$as_me:14647: \$? = $ac_status" >&5
14648 if (exit $ac_status) && test -s "$ac_outfile"; then
14649 # The compiler can only warn and ignore the option if not recognized
14650 # So say no if there are warnings other than the usual output.
14651 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14654 lt_cv_prog_compiler_pic_works_F77=yes
14655 fi
14656 fi
14657 $rm conftest*
14658
14659 fi
14660 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14661 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14662
14663 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14664 case $lt_prog_compiler_pic_F77 in
14665 "" | " "*) ;;
14666 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14667 esac
14668 else
14669 lt_prog_compiler_pic_F77=
14670 lt_prog_compiler_can_build_shared_F77=no
14671 fi
14672
14673 fi
14674 case $host_os in
14675 # For platforms which do not support PIC, -DPIC is meaningless:
14676 *djgpp*)
14677 lt_prog_compiler_pic_F77=
14678 ;;
14679 *)
14680 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14681 ;;
14682 esac
14683
14684 #
14685 # Check to make sure the static flag actually works.
14686 #
14687 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14688 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14690 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14691 $as_echo_n "(cached) " >&6
14692 else
14693 lt_cv_prog_compiler_static_works_F77=no
14694 save_LDFLAGS="$LDFLAGS"
14695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14698 # The linker can only warn and ignore the option if not recognized
14699 # So say no if there are warnings
14700 if test -s conftest.err; then
14701 # Append any errors to the config.log.
14702 cat conftest.err 1>&5
14703 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14705 if diff conftest.exp conftest.er2 >/dev/null; then
14706 lt_cv_prog_compiler_static_works_F77=yes
14707 fi
14708 else
14709 lt_cv_prog_compiler_static_works_F77=yes
14710 fi
14711 fi
14712 $rm -r conftest*
14713 LDFLAGS="$save_LDFLAGS"
14714
14715 fi
14716 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14717 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14718
14719 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14720 :
14721 else
14722 lt_prog_compiler_static_F77=
14723 fi
14724
14725
14726 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14727 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14728 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14729 $as_echo_n "(cached) " >&6
14730 else
14731 lt_cv_prog_compiler_c_o_F77=no
14732 $rm -r conftest 2>/dev/null
14733 mkdir conftest
14734 cd conftest
14735 mkdir out
14736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14737
14738 lt_compiler_flag="-o out/conftest2.$ac_objext"
14739 # Insert the option either (1) after the last *FLAGS variable, or
14740 # (2) before a word containing "conftest.", or (3) at the end.
14741 # Note that $ac_compile itself does not contain backslashes and begins
14742 # with a dollar sign (not a hyphen), so the echo should work correctly.
14743 lt_compile=`echo "$ac_compile" | $SED \
14744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14746 -e 's:$: $lt_compiler_flag:'`
14747 (eval echo "\"\$as_me:14747: $lt_compile\"" >&5)
14748 (eval "$lt_compile" 2>out/conftest.err)
14749 ac_status=$?
14750 cat out/conftest.err >&5
14751 echo "$as_me:14751: \$? = $ac_status" >&5
14752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14753 then
14754 # The compiler can only warn and ignore the option if not recognized
14755 # So say no if there are warnings
14756 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14759 lt_cv_prog_compiler_c_o_F77=yes
14760 fi
14761 fi
14762 chmod u+w . 2>&5
14763 $rm conftest*
14764 # SGI C++ compiler will create directory out/ii_files/ for
14765 # template instantiation
14766 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14767 $rm out/* && rmdir out
14768 cd ..
14769 rmdir conftest
14770 $rm conftest*
14771
14772 fi
14773 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14774 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14775
14776
14777 hard_links="nottested"
14778 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14779 # do not overwrite the value of need_locks provided by the user
14780 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14781 $as_echo_n "checking if we can lock with hard links... " >&6; }
14782 hard_links=yes
14783 $rm conftest*
14784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14785 touch conftest.a
14786 ln conftest.a conftest.b 2>&5 || hard_links=no
14787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14788 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14789 $as_echo "$hard_links" >&6; }
14790 if test "$hard_links" = no; then
14791 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14792 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14793 need_locks=warn
14794 fi
14795 else
14796 need_locks=no
14797 fi
14798
14799 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14800 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14801
14802 runpath_var=
14803 allow_undefined_flag_F77=
14804 enable_shared_with_static_runtimes_F77=no
14805 archive_cmds_F77=
14806 archive_expsym_cmds_F77=
14807 old_archive_From_new_cmds_F77=
14808 old_archive_from_expsyms_cmds_F77=
14809 export_dynamic_flag_spec_F77=
14810 whole_archive_flag_spec_F77=
14811 thread_safe_flag_spec_F77=
14812 hardcode_libdir_flag_spec_F77=
14813 hardcode_libdir_flag_spec_ld_F77=
14814 hardcode_libdir_separator_F77=
14815 hardcode_direct_F77=no
14816 hardcode_minus_L_F77=no
14817 hardcode_shlibpath_var_F77=unsupported
14818 link_all_deplibs_F77=unknown
14819 hardcode_automatic_F77=no
14820 module_cmds_F77=
14821 module_expsym_cmds_F77=
14822 always_export_symbols_F77=no
14823 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14824 # include_expsyms should be a list of space-separated symbols to be *always*
14825 # included in the symbol list
14826 include_expsyms_F77=
14827 # exclude_expsyms can be an extended regexp of symbols to exclude
14828 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14829 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14830 # as well as any symbol that contains `d'.
14831 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14832 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14833 # platforms (ab)use it in PIC code, but their linkers get confused if
14834 # the symbol is explicitly referenced. Since portable code cannot
14835 # rely on this symbol name, it's probably fine to never include it in
14836 # preloaded symbol tables.
14837 # Exclude shared library initialization/finalization symbols.
14838 extract_expsyms_cmds=
14839 # Just being paranoid about ensuring that cc_basename is set.
14840 for cc_temp in $compiler""; do
14841 case $cc_temp in
14842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14844 \-*) ;;
14845 *) break;;
14846 esac
14847 done
14848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14849
14850 case $host_os in
14851 cygwin* | mingw* | pw32*)
14852 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14853 # When not using gcc, we currently assume that we are using
14854 # Microsoft Visual C++.
14855 if test "$GCC" != yes; then
14856 with_gnu_ld=no
14857 fi
14858 ;;
14859 interix*)
14860 # we just hope/assume this is gcc and not c89 (= MSVC++)
14861 with_gnu_ld=yes
14862 ;;
14863 openbsd*)
14864 with_gnu_ld=no
14865 ;;
14866 esac
14867
14868 ld_shlibs_F77=yes
14869 if test "$with_gnu_ld" = yes; then
14870 # If archive_cmds runs LD, not CC, wlarc should be empty
14871 wlarc='${wl}'
14872
14873 # Set some defaults for GNU ld with shared library support. These
14874 # are reset later if shared libraries are not supported. Putting them
14875 # here allows them to be overridden if necessary.
14876 runpath_var=LD_RUN_PATH
14877 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14878 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14879 # ancient GNU ld didn't support --whole-archive et. al.
14880 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14881 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14882 else
14883 whole_archive_flag_spec_F77=
14884 fi
14885 supports_anon_versioning=no
14886 case `$LD -v 2>/dev/null` in
14887 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14888 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14889 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14890 *\ 2.11.*) ;; # other 2.11 versions
14891 *) supports_anon_versioning=yes ;;
14892 esac
14893
14894 # See if GNU ld supports shared libraries.
14895 case $host_os in
14896 aix[3-9]*)
14897 # On AIX/PPC, the GNU linker is very broken
14898 if test "$host_cpu" != ia64; then
14899 ld_shlibs_F77=no
14900 cat <<EOF 1>&2
14901
14902 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14903 *** to be unable to reliably create shared libraries on AIX.
14904 *** Therefore, libtool is disabling shared libraries support. If you
14905 *** really care for shared libraries, you may want to modify your PATH
14906 *** so that a non-GNU linker is found, and then restart.
14907
14908 EOF
14909 fi
14910 ;;
14911
14912 amigaos*)
14913 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)'
14914 hardcode_libdir_flag_spec_F77='-L$libdir'
14915 hardcode_minus_L_F77=yes
14916
14917 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14918 # that the semantics of dynamic libraries on AmigaOS, at least up
14919 # to version 4, is to share data among multiple programs linked
14920 # with the same dynamic library. Since this doesn't match the
14921 # behavior of shared libraries on other platforms, we can't use
14922 # them.
14923 ld_shlibs_F77=no
14924 ;;
14925
14926 beos*)
14927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14928 allow_undefined_flag_F77=unsupported
14929 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14930 # support --undefined. This deserves some investigation. FIXME
14931 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932 else
14933 ld_shlibs_F77=no
14934 fi
14935 ;;
14936
14937 cygwin* | mingw* | pw32*)
14938 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14939 # as there is no search path for DLLs.
14940 hardcode_libdir_flag_spec_F77='-L$libdir'
14941 allow_undefined_flag_F77=unsupported
14942 always_export_symbols_F77=no
14943 enable_shared_with_static_runtimes_F77=yes
14944 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14945
14946 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14948 # If the export-symbols file already is a .def file (1st line
14949 # is EXPORTS), use it as is; otherwise, prepend...
14950 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14951 cp $export_symbols $output_objdir/$soname.def;
14952 else
14953 echo EXPORTS > $output_objdir/$soname.def;
14954 cat $export_symbols >> $output_objdir/$soname.def;
14955 fi~
14956 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14957 else
14958 ld_shlibs_F77=no
14959 fi
14960 ;;
14961
14962 interix[3-9]*)
14963 hardcode_direct_F77=no
14964 hardcode_shlibpath_var_F77=no
14965 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14966 export_dynamic_flag_spec_F77='${wl}-E'
14967 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14968 # Instead, shared libraries are loaded at an image base (0x10000000 by
14969 # default) and relocated if they conflict, which is a slow very memory
14970 # consuming and fragmenting process. To avoid this, we pick a random,
14971 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14972 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14973 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'
14974 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'
14975 ;;
14976
14977 gnu* | linux* | k*bsd*-gnu)
14978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14979 tmp_addflag=
14980 case $cc_basename,$host_cpu in
14981 pgcc*) # Portland Group C compiler
14982 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'
14983 tmp_addflag=' $pic_flag'
14984 ;;
14985 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14986 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'
14987 tmp_addflag=' $pic_flag -Mnomain' ;;
14988 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14989 tmp_addflag=' -i_dynamic' ;;
14990 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14991 tmp_addflag=' -i_dynamic -nofor_main' ;;
14992 ifc* | ifort*) # Intel Fortran compiler
14993 tmp_addflag=' -nofor_main' ;;
14994 esac
14995 case `$CC -V 2>&1 | sed 5q` in
14996 *Sun\ C*) # Sun C 5.9
14997 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'
14998 tmp_sharedflag='-G' ;;
14999 *Sun\ F*) # Sun Fortran 8.3
15000 tmp_sharedflag='-G' ;;
15001 *)
15002 tmp_sharedflag='-shared' ;;
15003 esac
15004 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005
15006 if test $supports_anon_versioning = yes; then
15007 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15009 $echo "local: *; };" >> $output_objdir/$libname.ver~
15010 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15011 fi
15012 link_all_deplibs_F77=no
15013 else
15014 ld_shlibs_F77=no
15015 fi
15016 ;;
15017
15018 netbsd*)
15019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15020 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15021 wlarc=
15022 else
15023 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15024 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15025 fi
15026 ;;
15027
15028 solaris*)
15029 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15030 ld_shlibs_F77=no
15031 cat <<EOF 1>&2
15032
15033 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15034 *** create shared libraries on Solaris systems. Therefore, libtool
15035 *** is disabling shared libraries support. We urge you to upgrade GNU
15036 *** binutils to release 2.9.1 or newer. Another option is to modify
15037 *** your PATH or compiler configuration so that the native linker is
15038 *** used, and then restart.
15039
15040 EOF
15041 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15042 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15044 else
15045 ld_shlibs_F77=no
15046 fi
15047 ;;
15048
15049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15050 case `$LD -v 2>&1` in
15051 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15052 ld_shlibs_F77=no
15053 cat <<_LT_EOF 1>&2
15054
15055 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15056 *** reliably create shared libraries on SCO systems. Therefore, libtool
15057 *** is disabling shared libraries support. We urge you to upgrade GNU
15058 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15059 *** your PATH or compiler configuration so that the native linker is
15060 *** used, and then restart.
15061
15062 _LT_EOF
15063 ;;
15064 *)
15065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15066 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15067 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15068 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15069 else
15070 ld_shlibs_F77=no
15071 fi
15072 ;;
15073 esac
15074 ;;
15075
15076 sunos4*)
15077 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15078 wlarc=
15079 hardcode_direct_F77=yes
15080 hardcode_shlibpath_var_F77=no
15081 ;;
15082
15083 *)
15084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15087 else
15088 ld_shlibs_F77=no
15089 fi
15090 ;;
15091 esac
15092
15093 if test "$ld_shlibs_F77" = no; then
15094 runpath_var=
15095 hardcode_libdir_flag_spec_F77=
15096 export_dynamic_flag_spec_F77=
15097 whole_archive_flag_spec_F77=
15098 fi
15099 else
15100 # PORTME fill in a description of your system's linker (not GNU ld)
15101 case $host_os in
15102 aix3*)
15103 allow_undefined_flag_F77=unsupported
15104 always_export_symbols_F77=yes
15105 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'
15106 # Note: this linker hardcodes the directories in LIBPATH if there
15107 # are no directories specified by -L.
15108 hardcode_minus_L_F77=yes
15109 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15110 # Neither direct hardcoding nor static linking is supported with a
15111 # broken collect2.
15112 hardcode_direct_F77=unsupported
15113 fi
15114 ;;
15115
15116 aix[4-9]*)
15117 if test "$host_cpu" = ia64; then
15118 # On IA64, the linker does run time linking by default, so we don't
15119 # have to do anything special.
15120 aix_use_runtimelinking=no
15121 exp_sym_flag='-Bexport'
15122 no_entry_flag=""
15123 else
15124 # If we're using GNU nm, then we don't want the "-C" option.
15125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15126 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15127 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'
15128 else
15129 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'
15130 fi
15131 aix_use_runtimelinking=no
15132
15133 # Test if we are trying to use run time linking or normal
15134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15135 # need to do runtime linking.
15136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15137 for ld_flag in $LDFLAGS; do
15138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15139 aix_use_runtimelinking=yes
15140 break
15141 fi
15142 done
15143 ;;
15144 esac
15145
15146 exp_sym_flag='-bexport'
15147 no_entry_flag='-bnoentry'
15148 fi
15149
15150 # When large executables or shared objects are built, AIX ld can
15151 # have problems creating the table of contents. If linking a library
15152 # or program results in "error TOC overflow" add -mminimal-toc to
15153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15155
15156 archive_cmds_F77=''
15157 hardcode_direct_F77=yes
15158 hardcode_libdir_separator_F77=':'
15159 link_all_deplibs_F77=yes
15160
15161 if test "$GCC" = yes; then
15162 case $host_os in aix4.[012]|aix4.[012].*)
15163 # We only want to do this on AIX 4.2 and lower, the check
15164 # below for broken collect2 doesn't work under 4.3+
15165 collect2name=`${CC} -print-prog-name=collect2`
15166 if test -f "$collect2name" && \
15167 strings "$collect2name" | grep resolve_lib_name >/dev/null
15168 then
15169 # We have reworked collect2
15170 :
15171 else
15172 # We have old collect2
15173 hardcode_direct_F77=unsupported
15174 # It fails to find uninstalled libraries when the uninstalled
15175 # path is not listed in the libpath. Setting hardcode_minus_L
15176 # to unsupported forces relinking
15177 hardcode_minus_L_F77=yes
15178 hardcode_libdir_flag_spec_F77='-L$libdir'
15179 hardcode_libdir_separator_F77=
15180 fi
15181 ;;
15182 esac
15183 shared_flag='-shared'
15184 if test "$aix_use_runtimelinking" = yes; then
15185 shared_flag="$shared_flag "'${wl}-G'
15186 fi
15187 else
15188 # not using gcc
15189 if test "$host_cpu" = ia64; then
15190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15191 # chokes on -Wl,-G. The following line is correct:
15192 shared_flag='-G'
15193 else
15194 if test "$aix_use_runtimelinking" = yes; then
15195 shared_flag='${wl}-G'
15196 else
15197 shared_flag='${wl}-bM:SRE'
15198 fi
15199 fi
15200 fi
15201
15202 # It seems that -bexpall does not export symbols beginning with
15203 # underscore (_), so it is better to generate a list of symbols to export.
15204 always_export_symbols_F77=yes
15205 if test "$aix_use_runtimelinking" = yes; then
15206 # Warning - without using the other runtime loading flags (-brtl),
15207 # -berok will link without error, but may produce a broken library.
15208 allow_undefined_flag_F77='-berok'
15209 # Determine the default libpath from the value encoded in an empty executable.
15210 cat >conftest.$ac_ext <<_ACEOF
15211 program main
15212
15213 end
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (ac_try="$ac_link"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220 esac
15221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15222 $as_echo "$ac_try_echo") >&5
15223 (eval "$ac_link") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_f77_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest$ac_exeext && {
15233 test "$cross_compiling" = yes ||
15234 $as_test_x conftest$ac_exeext
15235 }; then
15236
15237 lt_aix_libpath_sed='
15238 /Import File Strings/,/^$/ {
15239 /^0/ {
15240 s/^0 *\(.*\)$/\1/
15241 p
15242 }
15243 }'
15244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15245 # Check for a 64-bit object if we didn't find anything.
15246 if test -z "$aix_libpath"; then
15247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248 fi
15249 else
15250 $as_echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253
15254 fi
15255
15256 rm -rf conftest.dSYM
15257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15258 conftest$ac_exeext conftest.$ac_ext
15259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15260
15261 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15262 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"
15263 else
15264 if test "$host_cpu" = ia64; then
15265 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15266 allow_undefined_flag_F77="-z nodefs"
15267 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"
15268 else
15269 # Determine the default libpath from the value encoded in an empty executable.
15270 cat >conftest.$ac_ext <<_ACEOF
15271 program main
15272
15273 end
15274 _ACEOF
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (ac_try="$ac_link"
15277 case "(($ac_try" in
15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279 *) ac_try_echo=$ac_try;;
15280 esac
15281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15282 $as_echo "$ac_try_echo") >&5
15283 (eval "$ac_link") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_f77_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext && {
15293 test "$cross_compiling" = yes ||
15294 $as_test_x conftest$ac_exeext
15295 }; then
15296
15297 lt_aix_libpath_sed='
15298 /Import File Strings/,/^$/ {
15299 /^0/ {
15300 s/^0 *\(.*\)$/\1/
15301 p
15302 }
15303 }'
15304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305 # Check for a 64-bit object if we didn't find anything.
15306 if test -z "$aix_libpath"; then
15307 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15308 fi
15309 else
15310 $as_echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313
15314 fi
15315
15316 rm -rf conftest.dSYM
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318 conftest$ac_exeext conftest.$ac_ext
15319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15320
15321 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15322 # Warning - without using the other run time loading flags,
15323 # -berok will link without error, but may produce a broken library.
15324 no_undefined_flag_F77=' ${wl}-bernotok'
15325 allow_undefined_flag_F77=' ${wl}-berok'
15326 # Exported symbols can be pulled into shared objects from archives
15327 whole_archive_flag_spec_F77='$convenience'
15328 archive_cmds_need_lc_F77=yes
15329 # This is similar to how AIX traditionally builds its shared libraries.
15330 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'
15331 fi
15332 fi
15333 ;;
15334
15335 amigaos*)
15336 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)'
15337 hardcode_libdir_flag_spec_F77='-L$libdir'
15338 hardcode_minus_L_F77=yes
15339 # see comment about different semantics on the GNU ld section
15340 ld_shlibs_F77=no
15341 ;;
15342
15343 bsdi[45]*)
15344 export_dynamic_flag_spec_F77=-rdynamic
15345 ;;
15346
15347 cygwin* | mingw* | pw32*)
15348 # When not using gcc, we currently assume that we are using
15349 # Microsoft Visual C++.
15350 # hardcode_libdir_flag_spec is actually meaningless, as there is
15351 # no search path for DLLs.
15352 hardcode_libdir_flag_spec_F77=' '
15353 allow_undefined_flag_F77=unsupported
15354 # Tell ltmain to make .lib files, not .a files.
15355 libext=lib
15356 # Tell ltmain to make .dll files, not .so files.
15357 shrext_cmds=".dll"
15358 # FIXME: Setting linknames here is a bad hack.
15359 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15360 # The linker will automatically build a .lib file if we build a DLL.
15361 old_archive_From_new_cmds_F77='true'
15362 # FIXME: Should let the user specify the lib program.
15363 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15364 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15365 enable_shared_with_static_runtimes_F77=yes
15366 ;;
15367
15368 darwin* | rhapsody*)
15369 case $host_os in
15370 rhapsody* | darwin1.[012])
15371 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15372 ;;
15373 *) # Darwin 1.3 on
15374 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15375 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15376 else
15377 case ${MACOSX_DEPLOYMENT_TARGET} in
15378 10.[012])
15379 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15380 ;;
15381 10.*)
15382 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15383 ;;
15384 esac
15385 fi
15386 ;;
15387 esac
15388 archive_cmds_need_lc_F77=no
15389 hardcode_direct_F77=no
15390 hardcode_automatic_F77=yes
15391 hardcode_shlibpath_var_F77=unsupported
15392 whole_archive_flag_spec_F77=''
15393 link_all_deplibs_F77=yes
15394 if test "$GCC" = yes ; then
15395 output_verbose_link_cmd='echo'
15396 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15397 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15398 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15399 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15400 else
15401 case $cc_basename in
15402 xlc*)
15403 output_verbose_link_cmd='echo'
15404 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15405 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15407 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}'
15408 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}'
15409 ;;
15410 *)
15411 ld_shlibs_F77=no
15412 ;;
15413 esac
15414 fi
15415 ;;
15416
15417 dgux*)
15418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_libdir_flag_spec_F77='-L$libdir'
15420 hardcode_shlibpath_var_F77=no
15421 ;;
15422
15423 freebsd1*)
15424 ld_shlibs_F77=no
15425 ;;
15426
15427 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15428 # support. Future versions do this automatically, but an explicit c++rt0.o
15429 # does not break anything, and helps significantly (at the cost of a little
15430 # extra space).
15431 freebsd2.2*)
15432 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15433 hardcode_libdir_flag_spec_F77='-R$libdir'
15434 hardcode_direct_F77=yes
15435 hardcode_shlibpath_var_F77=no
15436 ;;
15437
15438 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15439 freebsd2*)
15440 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15441 hardcode_direct_F77=yes
15442 hardcode_minus_L_F77=yes
15443 hardcode_shlibpath_var_F77=no
15444 ;;
15445
15446 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15447 freebsd* | dragonfly*)
15448 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15449 hardcode_libdir_flag_spec_F77='-R$libdir'
15450 hardcode_direct_F77=yes
15451 hardcode_shlibpath_var_F77=no
15452 ;;
15453
15454 hpux9*)
15455 if test "$GCC" = yes; then
15456 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'
15457 else
15458 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'
15459 fi
15460 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15461 hardcode_libdir_separator_F77=:
15462 hardcode_direct_F77=yes
15463
15464 # hardcode_minus_L: Not really in the search PATH,
15465 # but as the default location of the library.
15466 hardcode_minus_L_F77=yes
15467 export_dynamic_flag_spec_F77='${wl}-E'
15468 ;;
15469
15470 hpux10*)
15471 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15472 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15473 else
15474 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15475 fi
15476 if test "$with_gnu_ld" = no; then
15477 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15478 hardcode_libdir_separator_F77=:
15479
15480 hardcode_direct_F77=yes
15481 export_dynamic_flag_spec_F77='${wl}-E'
15482
15483 # hardcode_minus_L: Not really in the search PATH,
15484 # but as the default location of the library.
15485 hardcode_minus_L_F77=yes
15486 fi
15487 ;;
15488
15489 hpux11*)
15490 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15491 case $host_cpu in
15492 hppa*64*)
15493 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494 ;;
15495 ia64*)
15496 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15497 ;;
15498 *)
15499 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15500 ;;
15501 esac
15502 else
15503 case $host_cpu in
15504 hppa*64*)
15505 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 ;;
15507 ia64*)
15508 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15509 ;;
15510 *)
15511 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15512 ;;
15513 esac
15514 fi
15515 if test "$with_gnu_ld" = no; then
15516 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15517 hardcode_libdir_separator_F77=:
15518
15519 case $host_cpu in
15520 hppa*64*|ia64*)
15521 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15522 hardcode_direct_F77=no
15523 hardcode_shlibpath_var_F77=no
15524 ;;
15525 *)
15526 hardcode_direct_F77=yes
15527 export_dynamic_flag_spec_F77='${wl}-E'
15528
15529 # hardcode_minus_L: Not really in the search PATH,
15530 # but as the default location of the library.
15531 hardcode_minus_L_F77=yes
15532 ;;
15533 esac
15534 fi
15535 ;;
15536
15537 irix5* | irix6* | nonstopux*)
15538 if test "$GCC" = yes; then
15539 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'
15540 else
15541 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'
15542 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15543 fi
15544 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15545 hardcode_libdir_separator_F77=:
15546 link_all_deplibs_F77=yes
15547 ;;
15548
15549 netbsd*)
15550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15551 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15552 else
15553 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15554 fi
15555 hardcode_libdir_flag_spec_F77='-R$libdir'
15556 hardcode_direct_F77=yes
15557 hardcode_shlibpath_var_F77=no
15558 ;;
15559
15560 newsos6)
15561 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562 hardcode_direct_F77=yes
15563 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15564 hardcode_libdir_separator_F77=:
15565 hardcode_shlibpath_var_F77=no
15566 ;;
15567
15568 openbsd*)
15569 if test -f /usr/libexec/ld.so; then
15570 hardcode_direct_F77=yes
15571 hardcode_shlibpath_var_F77=no
15572 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15573 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15575 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15576 export_dynamic_flag_spec_F77='${wl}-E'
15577 else
15578 case $host_os in
15579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15580 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_libdir_flag_spec_F77='-R$libdir'
15582 ;;
15583 *)
15584 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15585 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15586 ;;
15587 esac
15588 fi
15589 else
15590 ld_shlibs_F77=no
15591 fi
15592 ;;
15593
15594 os2*)
15595 hardcode_libdir_flag_spec_F77='-L$libdir'
15596 hardcode_minus_L_F77=yes
15597 allow_undefined_flag_F77=unsupported
15598 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'
15599 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15600 ;;
15601
15602 osf3*)
15603 if test "$GCC" = yes; then
15604 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15605 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'
15606 else
15607 allow_undefined_flag_F77=' -expect_unresolved \*'
15608 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'
15609 fi
15610 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15611 hardcode_libdir_separator_F77=:
15612 ;;
15613
15614 osf4* | osf5*) # as osf3* with the addition of -msym flag
15615 if test "$GCC" = yes; then
15616 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15617 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'
15618 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15619 else
15620 allow_undefined_flag_F77=' -expect_unresolved \*'
15621 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'
15622 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~
15623 $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'
15624
15625 # Both c and cxx compiler support -rpath directly
15626 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15627 fi
15628 hardcode_libdir_separator_F77=:
15629 ;;
15630
15631 solaris*)
15632 no_undefined_flag_F77=' -z text'
15633 if test "$GCC" = yes; then
15634 wlarc='${wl}'
15635 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15636 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15637 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15638 else
15639 wlarc=''
15640 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15643 fi
15644 hardcode_libdir_flag_spec_F77='-R$libdir'
15645 hardcode_shlibpath_var_F77=no
15646 case $host_os in
15647 solaris2.[0-5] | solaris2.[0-5].*) ;;
15648 *)
15649 # The compiler driver will combine and reorder linker options,
15650 # but understands `-z linker_flag'. GCC discards it without `$wl',
15651 # but is careful enough not to reorder.
15652 # Supported since Solaris 2.6 (maybe 2.5.1?)
15653 if test "$GCC" = yes; then
15654 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15655 else
15656 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15657 fi
15658 ;;
15659 esac
15660 link_all_deplibs_F77=yes
15661 ;;
15662
15663 sunos4*)
15664 if test "x$host_vendor" = xsequent; then
15665 # Use $CC to link under sequent, because it throws in some extra .o
15666 # files that make .init and .fini sections work.
15667 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15668 else
15669 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15670 fi
15671 hardcode_libdir_flag_spec_F77='-L$libdir'
15672 hardcode_direct_F77=yes
15673 hardcode_minus_L_F77=yes
15674 hardcode_shlibpath_var_F77=no
15675 ;;
15676
15677 sysv4)
15678 case $host_vendor in
15679 sni)
15680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681 hardcode_direct_F77=yes # is this really true???
15682 ;;
15683 siemens)
15684 ## LD is ld it makes a PLAMLIB
15685 ## CC just makes a GrossModule.
15686 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15687 reload_cmds_F77='$CC -r -o $output$reload_objs'
15688 hardcode_direct_F77=no
15689 ;;
15690 motorola)
15691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15693 ;;
15694 esac
15695 runpath_var='LD_RUN_PATH'
15696 hardcode_shlibpath_var_F77=no
15697 ;;
15698
15699 sysv4.3*)
15700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_shlibpath_var_F77=no
15702 export_dynamic_flag_spec_F77='-Bexport'
15703 ;;
15704
15705 sysv4*MP*)
15706 if test -d /usr/nec; then
15707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_shlibpath_var_F77=no
15709 runpath_var=LD_RUN_PATH
15710 hardcode_runpath_var=yes
15711 ld_shlibs_F77=yes
15712 fi
15713 ;;
15714
15715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15716 no_undefined_flag_F77='${wl}-z,text'
15717 archive_cmds_need_lc_F77=no
15718 hardcode_shlibpath_var_F77=no
15719 runpath_var='LD_RUN_PATH'
15720
15721 if test "$GCC" = yes; then
15722 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 else
15725 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 fi
15728 ;;
15729
15730 sysv5* | sco3.2v5* | sco5v6*)
15731 # Note: We can NOT use -z defs as we might desire, because we do not
15732 # link with -lc, and that would cause any symbols used from libc to
15733 # always be unresolved, which means just about no library would
15734 # ever link correctly. If we're not using GNU ld we use -z text
15735 # though, which does catch some bad symbols but isn't as heavy-handed
15736 # as -z defs.
15737 no_undefined_flag_F77='${wl}-z,text'
15738 allow_undefined_flag_F77='${wl}-z,nodefs'
15739 archive_cmds_need_lc_F77=no
15740 hardcode_shlibpath_var_F77=no
15741 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15742 hardcode_libdir_separator_F77=':'
15743 link_all_deplibs_F77=yes
15744 export_dynamic_flag_spec_F77='${wl}-Bexport'
15745 runpath_var='LD_RUN_PATH'
15746
15747 if test "$GCC" = yes; then
15748 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750 else
15751 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15752 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 fi
15754 ;;
15755
15756 uts4*)
15757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_libdir_flag_spec_F77='-L$libdir'
15759 hardcode_shlibpath_var_F77=no
15760 ;;
15761
15762 *)
15763 ld_shlibs_F77=no
15764 ;;
15765 esac
15766 fi
15767
15768 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15769 $as_echo "$ld_shlibs_F77" >&6; }
15770 test "$ld_shlibs_F77" = no && can_build_shared=no
15771
15772 #
15773 # Do we need to explicitly link libc?
15774 #
15775 case "x$archive_cmds_need_lc_F77" in
15776 x|xyes)
15777 # Assume -lc should be added
15778 archive_cmds_need_lc_F77=yes
15779
15780 if test "$enable_shared" = yes && test "$GCC" = yes; then
15781 case $archive_cmds_F77 in
15782 *'~'*)
15783 # FIXME: we may have to deal with multi-command sequences.
15784 ;;
15785 '$CC '*)
15786 # Test whether the compiler implicitly links with -lc since on some
15787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15788 # to ld, don't add -lc before -lgcc.
15789 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15791 $rm conftest*
15792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15793
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>&5
15796 ac_status=$?
15797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } 2>conftest.err; then
15799 soname=conftest
15800 lib=conftest
15801 libobjs=conftest.$ac_objext
15802 deplibs=
15803 wl=$lt_prog_compiler_wl_F77
15804 pic_flag=$lt_prog_compiler_pic_F77
15805 compiler_flags=-v
15806 linker_flags=-v
15807 verstring=
15808 output_objdir=.
15809 libname=conftest
15810 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15811 allow_undefined_flag_F77=
15812 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15813 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15814 ac_status=$?
15815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }
15817 then
15818 archive_cmds_need_lc_F77=no
15819 else
15820 archive_cmds_need_lc_F77=yes
15821 fi
15822 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15823 else
15824 cat conftest.err 1>&5
15825 fi
15826 $rm conftest*
15827 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15828 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15829 ;;
15830 esac
15831 fi
15832 ;;
15833 esac
15834
15835 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15836 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15837 library_names_spec=
15838 libname_spec='lib$name'
15839 soname_spec=
15840 shrext_cmds=".so"
15841 postinstall_cmds=
15842 postuninstall_cmds=
15843 finish_cmds=
15844 finish_eval=
15845 shlibpath_var=
15846 shlibpath_overrides_runpath=unknown
15847 version_type=none
15848 dynamic_linker="$host_os ld.so"
15849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15850
15851 need_lib_prefix=unknown
15852 hardcode_into_libs=no
15853
15854 # when you set need_version to no, make sure it does not cause -set_version
15855 # flags to be left without arguments
15856 need_version=unknown
15857
15858 case $host_os in
15859 aix3*)
15860 version_type=linux
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15862 shlibpath_var=LIBPATH
15863
15864 # AIX 3 has no versioning support, so we append a major version to the name.
15865 soname_spec='${libname}${release}${shared_ext}$major'
15866 ;;
15867
15868 aix[4-9]*)
15869 version_type=linux
15870 need_lib_prefix=no
15871 need_version=no
15872 hardcode_into_libs=yes
15873 if test "$host_cpu" = ia64; then
15874 # AIX 5 supports IA64
15875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 else
15878 # With GCC up to 2.95.x, collect2 would create an import file
15879 # for dependence libraries. The import file would start with
15880 # the line `#! .'. This would cause the generated library to
15881 # depend on `.', always an invalid library. This was fixed in
15882 # development snapshots of GCC prior to 3.0.
15883 case $host_os in
15884 aix4 | aix4.[01] | aix4.[01].*)
15885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15886 echo ' yes '
15887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15888 :
15889 else
15890 can_build_shared=no
15891 fi
15892 ;;
15893 esac
15894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15895 # soname into executable. Probably we can add versioning support to
15896 # collect2, so additional links can be useful in future.
15897 if test "$aix_use_runtimelinking" = yes; then
15898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15899 # instead of lib<name>.a to let people know that these are not
15900 # typical AIX shared libraries.
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902 else
15903 # We preserve .a as extension for shared libraries through AIX4.2
15904 # and later when we are not doing run time linking.
15905 library_names_spec='${libname}${release}.a $libname.a'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 fi
15908 shlibpath_var=LIBPATH
15909 fi
15910 ;;
15911
15912 amigaos*)
15913 library_names_spec='$libname.ixlibrary $libname.a'
15914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15915 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'
15916 ;;
15917
15918 beos*)
15919 library_names_spec='${libname}${shared_ext}'
15920 dynamic_linker="$host_os ld.so"
15921 shlibpath_var=LIBRARY_PATH
15922 ;;
15923
15924 bsdi[45]*)
15925 version_type=linux
15926 need_version=no
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15933 # the default ld.so.conf also contains /usr/contrib/lib and
15934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15935 # libtool to hard-code these into programs
15936 ;;
15937
15938 cygwin* | mingw* | pw32*)
15939 version_type=windows
15940 shrext_cmds=".dll"
15941 need_version=no
15942 need_lib_prefix=no
15943
15944 case $GCC,$host_os in
15945 yes,cygwin* | yes,mingw* | yes,pw32*)
15946 library_names_spec='$libname.dll.a'
15947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15948 postinstall_cmds='base_file=`basename \${file}`~
15949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15950 dldir=$destdir/`dirname \$dlpath`~
15951 test -d \$dldir || mkdir -p \$dldir~
15952 $install_prog $dir/$dlname \$dldir/$dlname~
15953 chmod a+x \$dldir/$dlname'
15954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15955 dlpath=$dir/\$dldll~
15956 $rm \$dlpath'
15957 shlibpath_overrides_runpath=yes
15958
15959 case $host_os in
15960 cygwin*)
15961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15964 ;;
15965 mingw*)
15966 # MinGW DLLs use traditional 'lib' prefix
15967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15970 # It is most probably a Windows format PATH printed by
15971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15972 # path with ; separators, and with drive letters. We can handle the
15973 # drive letters (cygwin fileutils understands them), so leave them,
15974 # especially as we might pass files found there to a mingw objdump,
15975 # which wouldn't understand a cygwinified path. Ahh.
15976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15977 else
15978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15979 fi
15980 ;;
15981 pw32*)
15982 # pw32 DLLs use 'pw' prefix rather than 'lib'
15983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15984 ;;
15985 esac
15986 ;;
15987
15988 *)
15989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15990 ;;
15991 esac
15992 dynamic_linker='Win32 ld.exe'
15993 # FIXME: first we should search . and the directory the executable is in
15994 shlibpath_var=PATH
15995 ;;
15996
15997 darwin* | rhapsody*)
15998 dynamic_linker="$host_os dyld"
15999 version_type=darwin
16000 need_lib_prefix=no
16001 need_version=no
16002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16003 soname_spec='${libname}${release}${major}$shared_ext'
16004 shlibpath_overrides_runpath=yes
16005 shlibpath_var=DYLD_LIBRARY_PATH
16006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16007
16008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16009 ;;
16010
16011 dgux*)
16012 version_type=linux
16013 need_lib_prefix=no
16014 need_version=no
16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 shlibpath_var=LD_LIBRARY_PATH
16018 ;;
16019
16020 freebsd1*)
16021 dynamic_linker=no
16022 ;;
16023
16024 freebsd* | dragonfly*)
16025 # DragonFly does not have aout. When/if they implement a new
16026 # versioning mechanism, adjust this.
16027 if test -x /usr/bin/objformat; then
16028 objformat=`/usr/bin/objformat`
16029 else
16030 case $host_os in
16031 freebsd[123]*) objformat=aout ;;
16032 *) objformat=elf ;;
16033 esac
16034 fi
16035 version_type=freebsd-$objformat
16036 case $version_type in
16037 freebsd-elf*)
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16039 need_version=no
16040 need_lib_prefix=no
16041 ;;
16042 freebsd-*)
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16044 need_version=yes
16045 ;;
16046 esac
16047 shlibpath_var=LD_LIBRARY_PATH
16048 case $host_os in
16049 freebsd2*)
16050 shlibpath_overrides_runpath=yes
16051 ;;
16052 freebsd3.[01]* | freebsdelf3.[01]*)
16053 shlibpath_overrides_runpath=yes
16054 hardcode_into_libs=yes
16055 ;;
16056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16058 shlibpath_overrides_runpath=no
16059 hardcode_into_libs=yes
16060 ;;
16061 *) # from 4.6 on, and DragonFly
16062 shlibpath_overrides_runpath=yes
16063 hardcode_into_libs=yes
16064 ;;
16065 esac
16066 ;;
16067
16068 gnu*)
16069 version_type=linux
16070 need_lib_prefix=no
16071 need_version=no
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 hardcode_into_libs=yes
16076 ;;
16077
16078 hpux9* | hpux10* | hpux11*)
16079 # Give a soname corresponding to the major version so that dld.sl refuses to
16080 # link against other versions.
16081 version_type=sunos
16082 need_lib_prefix=no
16083 need_version=no
16084 case $host_cpu in
16085 ia64*)
16086 shrext_cmds='.so'
16087 hardcode_into_libs=yes
16088 dynamic_linker="$host_os dld.so"
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092 soname_spec='${libname}${release}${shared_ext}$major'
16093 if test "X$HPUX_IA64_MODE" = X32; then
16094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16095 else
16096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16097 fi
16098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16099 ;;
16100 hppa*64*)
16101 shrext_cmds='.sl'
16102 hardcode_into_libs=yes
16103 dynamic_linker="$host_os dld.sl"
16104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16110 ;;
16111 *)
16112 shrext_cmds='.sl'
16113 dynamic_linker="$host_os dld.sl"
16114 shlibpath_var=SHLIB_PATH
16115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 ;;
16119 esac
16120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16121 postinstall_cmds='chmod 555 $lib'
16122 ;;
16123
16124 interix[3-9]*)
16125 version_type=linux
16126 need_lib_prefix=no
16127 need_version=no
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 shlibpath_overrides_runpath=no
16133 hardcode_into_libs=yes
16134 ;;
16135
16136 irix5* | irix6* | nonstopux*)
16137 case $host_os in
16138 nonstopux*) version_type=nonstopux ;;
16139 *)
16140 if test "$lt_cv_prog_gnu_ld" = yes; then
16141 version_type=linux
16142 else
16143 version_type=irix
16144 fi ;;
16145 esac
16146 need_lib_prefix=no
16147 need_version=no
16148 soname_spec='${libname}${release}${shared_ext}$major'
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16150 case $host_os in
16151 irix5* | nonstopux*)
16152 libsuff= shlibsuff=
16153 ;;
16154 *)
16155 case $LD in # libtool.m4 will add one of these switches to LD
16156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16157 libsuff= shlibsuff= libmagic=32-bit;;
16158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16159 libsuff=32 shlibsuff=N32 libmagic=N32;;
16160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16162 *) libsuff= shlibsuff= libmagic=never-match;;
16163 esac
16164 ;;
16165 esac
16166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16167 shlibpath_overrides_runpath=no
16168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16170 hardcode_into_libs=yes
16171 ;;
16172
16173 # No shared lib support for Linux oldld, aout, or coff.
16174 linux*oldld* | linux*aout* | linux*coff*)
16175 dynamic_linker=no
16176 ;;
16177
16178 # This must be Linux ELF.
16179 linux* | k*bsd*-gnu)
16180 version_type=linux
16181 need_lib_prefix=no
16182 need_version=no
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=no
16188 # This implies no fast_install, which is unacceptable.
16189 # Some rework will be needed to allow for fast_install
16190 # before this can be enabled.
16191 hardcode_into_libs=yes
16192
16193 # find out which ABI we are using
16194 libsuff=
16195 case "$host_cpu" in
16196 x86_64*|s390x*|powerpc64*)
16197 echo '#line 16197 "configure"' > conftest.$ac_ext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>&5
16200 ac_status=$?
16201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; then
16203 case `/usr/bin/file conftest.$ac_objext` in
16204 *64-bit*)
16205 libsuff=64
16206 ;;
16207 esac
16208 fi
16209 rm -rf conftest*
16210 ;;
16211 esac
16212
16213 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16214
16215 # Append ld.so.conf contents to the search path
16216 if test -f /etc/ld.so.conf; then
16217 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' ' '`
16218 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16219 fi
16220
16221 # We used to test for /lib/ld.so.1 and disable shared libraries on
16222 # powerpc, because MkLinux only supported shared libraries with the
16223 # GNU dynamic linker. Since this was broken with cross compilers,
16224 # most powerpc-linux boxes support dynamic linking these days and
16225 # people can always --disable-shared, the test was removed, and we
16226 # assume the GNU/Linux dynamic linker is in use.
16227 dynamic_linker='GNU/Linux ld.so'
16228 ;;
16229
16230 netbsd*)
16231 version_type=sunos
16232 need_lib_prefix=no
16233 need_version=no
16234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16237 dynamic_linker='NetBSD (a.out) ld.so'
16238 else
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 dynamic_linker='NetBSD ld.elf_so'
16242 fi
16243 shlibpath_var=LD_LIBRARY_PATH
16244 shlibpath_overrides_runpath=yes
16245 hardcode_into_libs=yes
16246 ;;
16247
16248 newsos6)
16249 version_type=linux
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=yes
16253 ;;
16254
16255 nto-qnx*)
16256 version_type=linux
16257 need_lib_prefix=no
16258 need_version=no
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes
16263 ;;
16264
16265 openbsd*)
16266 version_type=sunos
16267 sys_lib_dlsearch_path_spec="/usr/lib"
16268 need_lib_prefix=no
16269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16270 case $host_os in
16271 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16272 *) need_version=no ;;
16273 esac
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16276 shlibpath_var=LD_LIBRARY_PATH
16277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16278 case $host_os in
16279 openbsd2.[89] | openbsd2.[89].*)
16280 shlibpath_overrides_runpath=no
16281 ;;
16282 *)
16283 shlibpath_overrides_runpath=yes
16284 ;;
16285 esac
16286 else
16287 shlibpath_overrides_runpath=yes
16288 fi
16289 ;;
16290
16291 os2*)
16292 libname_spec='$name'
16293 shrext_cmds=".dll"
16294 need_lib_prefix=no
16295 library_names_spec='$libname${shared_ext} $libname.a'
16296 dynamic_linker='OS/2 ld.exe'
16297 shlibpath_var=LIBPATH
16298 ;;
16299
16300 osf3* | osf4* | osf5*)
16301 version_type=osf
16302 need_lib_prefix=no
16303 need_version=no
16304 soname_spec='${libname}${release}${shared_ext}$major'
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16306 shlibpath_var=LD_LIBRARY_PATH
16307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16309 ;;
16310
16311 rdos*)
16312 dynamic_linker=no
16313 ;;
16314
16315 solaris*)
16316 version_type=linux
16317 need_lib_prefix=no
16318 need_version=no
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=yes
16323 hardcode_into_libs=yes
16324 # ldd complains unless libraries are executable
16325 postinstall_cmds='chmod +x $lib'
16326 ;;
16327
16328 sunos4*)
16329 version_type=sunos
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16331 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=yes
16334 if test "$with_gnu_ld" = yes; then
16335 need_lib_prefix=no
16336 fi
16337 need_version=yes
16338 ;;
16339
16340 sysv4 | sysv4.3*)
16341 version_type=linux
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16343 soname_spec='${libname}${release}${shared_ext}$major'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 case $host_vendor in
16346 sni)
16347 shlibpath_overrides_runpath=no
16348 need_lib_prefix=no
16349 export_dynamic_flag_spec='${wl}-Blargedynsym'
16350 runpath_var=LD_RUN_PATH
16351 ;;
16352 siemens)
16353 need_lib_prefix=no
16354 ;;
16355 motorola)
16356 need_lib_prefix=no
16357 need_version=no
16358 shlibpath_overrides_runpath=no
16359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16360 ;;
16361 esac
16362 ;;
16363
16364 sysv4*MP*)
16365 if test -d /usr/nec ;then
16366 version_type=linux
16367 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16368 soname_spec='$libname${shared_ext}.$major'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 fi
16371 ;;
16372
16373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16374 version_type=freebsd-elf
16375 need_lib_prefix=no
16376 need_version=no
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 hardcode_into_libs=yes
16381 if test "$with_gnu_ld" = yes; then
16382 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16383 shlibpath_overrides_runpath=no
16384 else
16385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16386 shlibpath_overrides_runpath=yes
16387 case $host_os in
16388 sco3.2v5*)
16389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16390 ;;
16391 esac
16392 fi
16393 sys_lib_dlsearch_path_spec='/usr/lib'
16394 ;;
16395
16396 uts4*)
16397 version_type=linux
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 ;;
16402
16403 *)
16404 dynamic_linker=no
16405 ;;
16406 esac
16407 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16408 $as_echo "$dynamic_linker" >&6; }
16409 test "$dynamic_linker" = no && can_build_shared=no
16410
16411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16412 $as_echo_n "(cached) " >&6
16413 else
16414 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16415 fi
16416
16417 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16418 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16419 $as_echo_n "(cached) " >&6
16420 else
16421 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16422 fi
16423
16424 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16425
16426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16427 if test "$GCC" = yes; then
16428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16429 fi
16430
16431 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16432 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16433 hardcode_action_F77=
16434 if test -n "$hardcode_libdir_flag_spec_F77" || \
16435 test -n "$runpath_var_F77" || \
16436 test "X$hardcode_automatic_F77" = "Xyes" ; then
16437
16438 # We can hardcode non-existant directories.
16439 if test "$hardcode_direct_F77" != no &&
16440 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16441 # have to relink, otherwise we might link with an installed library
16442 # when we should be linking with a yet-to-be-installed one
16443 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16444 test "$hardcode_minus_L_F77" != no; then
16445 # Linking always hardcodes the temporary library directory.
16446 hardcode_action_F77=relink
16447 else
16448 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16449 hardcode_action_F77=immediate
16450 fi
16451 else
16452 # We cannot hardcode anything, or else we can only hardcode existing
16453 # directories.
16454 hardcode_action_F77=unsupported
16455 fi
16456 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16457 $as_echo "$hardcode_action_F77" >&6; }
16458
16459 if test "$hardcode_action_F77" = relink; then
16460 # Fast installation is not supported
16461 enable_fast_install=no
16462 elif test "$shlibpath_overrides_runpath" = yes ||
16463 test "$enable_shared" = no; then
16464 # Fast installation is not necessary
16465 enable_fast_install=needless
16466 fi
16467
16468
16469 # The else clause should only fire when bootstrapping the
16470 # libtool distribution, otherwise you forgot to ship ltmain.sh
16471 # with your package, and you will get complaints that there are
16472 # no rules to generate ltmain.sh.
16473 if test -f "$ltmain"; then
16474 # See if we are running on zsh, and set the options which allow our commands through
16475 # without removal of \ escapes.
16476 if test -n "${ZSH_VERSION+set}" ; then
16477 setopt NO_GLOB_SUBST
16478 fi
16479 # Now quote all the things that may contain metacharacters while being
16480 # careful not to overquote the AC_SUBSTed values. We take copies of the
16481 # variables and quote the copies for generation of the libtool script.
16482 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16483 SED SHELL STRIP \
16484 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16485 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16486 deplibs_check_method reload_flag reload_cmds need_locks \
16487 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16488 lt_cv_sys_global_symbol_to_c_name_address \
16489 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16490 old_postinstall_cmds old_postuninstall_cmds \
16491 compiler_F77 \
16492 CC_F77 \
16493 LD_F77 \
16494 lt_prog_compiler_wl_F77 \
16495 lt_prog_compiler_pic_F77 \
16496 lt_prog_compiler_static_F77 \
16497 lt_prog_compiler_no_builtin_flag_F77 \
16498 export_dynamic_flag_spec_F77 \
16499 thread_safe_flag_spec_F77 \
16500 whole_archive_flag_spec_F77 \
16501 enable_shared_with_static_runtimes_F77 \
16502 old_archive_cmds_F77 \
16503 old_archive_from_new_cmds_F77 \
16504 predep_objects_F77 \
16505 postdep_objects_F77 \
16506 predeps_F77 \
16507 postdeps_F77 \
16508 compiler_lib_search_path_F77 \
16509 compiler_lib_search_dirs_F77 \
16510 archive_cmds_F77 \
16511 archive_expsym_cmds_F77 \
16512 postinstall_cmds_F77 \
16513 postuninstall_cmds_F77 \
16514 old_archive_from_expsyms_cmds_F77 \
16515 allow_undefined_flag_F77 \
16516 no_undefined_flag_F77 \
16517 export_symbols_cmds_F77 \
16518 hardcode_libdir_flag_spec_F77 \
16519 hardcode_libdir_flag_spec_ld_F77 \
16520 hardcode_libdir_separator_F77 \
16521 hardcode_automatic_F77 \
16522 module_cmds_F77 \
16523 module_expsym_cmds_F77 \
16524 lt_cv_prog_compiler_c_o_F77 \
16525 fix_srcfile_path_F77 \
16526 exclude_expsyms_F77 \
16527 include_expsyms_F77; do
16528
16529 case $var in
16530 old_archive_cmds_F77 | \
16531 old_archive_from_new_cmds_F77 | \
16532 archive_cmds_F77 | \
16533 archive_expsym_cmds_F77 | \
16534 module_cmds_F77 | \
16535 module_expsym_cmds_F77 | \
16536 old_archive_from_expsyms_cmds_F77 | \
16537 export_symbols_cmds_F77 | \
16538 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16539 postinstall_cmds | postuninstall_cmds | \
16540 old_postinstall_cmds | old_postuninstall_cmds | \
16541 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16542 # Double-quote double-evaled strings.
16543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16544 ;;
16545 *)
16546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16547 ;;
16548 esac
16549 done
16550
16551 case $lt_echo in
16552 *'\$0 --fallback-echo"')
16553 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16554 ;;
16555 esac
16556
16557 cfgfile="$ofile"
16558
16559 cat <<__EOF__ >> "$cfgfile"
16560 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16561
16562 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16563
16564 # Shell to use when invoking shell scripts.
16565 SHELL=$lt_SHELL
16566
16567 # Whether or not to build shared libraries.
16568 build_libtool_libs=$enable_shared
16569
16570 # Whether or not to build static libraries.
16571 build_old_libs=$enable_static
16572
16573 # Whether or not to add -lc for building shared libraries.
16574 build_libtool_need_lc=$archive_cmds_need_lc_F77
16575
16576 # Whether or not to disallow shared libs when runtime libs are static
16577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16578
16579 # Whether or not to optimize for fast installation.
16580 fast_install=$enable_fast_install
16581
16582 # The host system.
16583 host_alias=$host_alias
16584 host=$host
16585 host_os=$host_os
16586
16587 # The build system.
16588 build_alias=$build_alias
16589 build=$build
16590 build_os=$build_os
16591
16592 # An echo program that does not interpret backslashes.
16593 echo=$lt_echo
16594
16595 # The archiver.
16596 AR=$lt_AR
16597 AR_FLAGS=$lt_AR_FLAGS
16598
16599 # A C compiler.
16600 LTCC=$lt_LTCC
16601
16602 # LTCC compiler flags.
16603 LTCFLAGS=$lt_LTCFLAGS
16604
16605 # A language-specific compiler.
16606 CC=$lt_compiler_F77
16607
16608 # Is the compiler the GNU C compiler?
16609 with_gcc=$GCC_F77
16610
16611 # An ERE matcher.
16612 EGREP=$lt_EGREP
16613
16614 # The linker used to build libraries.
16615 LD=$lt_LD_F77
16616
16617 # Whether we need hard or soft links.
16618 LN_S=$lt_LN_S
16619
16620 # A BSD-compatible nm program.
16621 NM=$lt_NM
16622
16623 # A symbol stripping program
16624 STRIP=$lt_STRIP
16625
16626 # Used to examine libraries when file_magic_cmd begins "file"
16627 MAGIC_CMD=$MAGIC_CMD
16628
16629 # Used on cygwin: DLL creation program.
16630 DLLTOOL="$DLLTOOL"
16631
16632 # Used on cygwin: object dumper.
16633 OBJDUMP="$OBJDUMP"
16634
16635 # Used on cygwin: assembler.
16636 AS="$AS"
16637
16638 # The name of the directory that contains temporary libtool files.
16639 objdir=$objdir
16640
16641 # How to create reloadable object files.
16642 reload_flag=$lt_reload_flag
16643 reload_cmds=$lt_reload_cmds
16644
16645 # How to pass a linker flag through the compiler.
16646 wl=$lt_lt_prog_compiler_wl_F77
16647
16648 # Object file suffix (normally "o").
16649 objext="$ac_objext"
16650
16651 # Old archive suffix (normally "a").
16652 libext="$libext"
16653
16654 # Shared library suffix (normally ".so").
16655 shrext_cmds='$shrext_cmds'
16656
16657 # Executable file suffix (normally "").
16658 exeext="$exeext"
16659
16660 # Additional compiler flags for building library objects.
16661 pic_flag=$lt_lt_prog_compiler_pic_F77
16662 pic_mode=$pic_mode
16663
16664 # What is the maximum length of a command?
16665 max_cmd_len=$lt_cv_sys_max_cmd_len
16666
16667 # Does compiler simultaneously support -c and -o options?
16668 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16669
16670 # Must we lock files when doing compilation?
16671 need_locks=$lt_need_locks
16672
16673 # Do we need the lib prefix for modules?
16674 need_lib_prefix=$need_lib_prefix
16675
16676 # Do we need a version for libraries?
16677 need_version=$need_version
16678
16679 # Whether dlopen is supported.
16680 dlopen_support=$enable_dlopen
16681
16682 # Whether dlopen of programs is supported.
16683 dlopen_self=$enable_dlopen_self
16684
16685 # Whether dlopen of statically linked programs is supported.
16686 dlopen_self_static=$enable_dlopen_self_static
16687
16688 # Compiler flag to prevent dynamic linking.
16689 link_static_flag=$lt_lt_prog_compiler_static_F77
16690
16691 # Compiler flag to turn off builtin functions.
16692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16693
16694 # Compiler flag to allow reflexive dlopens.
16695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16696
16697 # Compiler flag to generate shared objects directly from archives.
16698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16699
16700 # Compiler flag to generate thread-safe objects.
16701 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16702
16703 # Library versioning type.
16704 version_type=$version_type
16705
16706 # Format of library name prefix.
16707 libname_spec=$lt_libname_spec
16708
16709 # List of archive names. First name is the real one, the rest are links.
16710 # The last name is the one that the linker finds with -lNAME.
16711 library_names_spec=$lt_library_names_spec
16712
16713 # The coded name of the library, if different from the real name.
16714 soname_spec=$lt_soname_spec
16715
16716 # Commands used to build and install an old-style archive.
16717 RANLIB=$lt_RANLIB
16718 old_archive_cmds=$lt_old_archive_cmds_F77
16719 old_postinstall_cmds=$lt_old_postinstall_cmds
16720 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16721
16722 # Create an old-style archive from a shared archive.
16723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16724
16725 # Create a temporary old-style archive to link instead of a shared archive.
16726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16727
16728 # Commands used to build and install a shared archive.
16729 archive_cmds=$lt_archive_cmds_F77
16730 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16731 postinstall_cmds=$lt_postinstall_cmds
16732 postuninstall_cmds=$lt_postuninstall_cmds
16733
16734 # Commands used to build a loadable module (assumed same as above if empty)
16735 module_cmds=$lt_module_cmds_F77
16736 module_expsym_cmds=$lt_module_expsym_cmds_F77
16737
16738 # Commands to strip libraries.
16739 old_striplib=$lt_old_striplib
16740 striplib=$lt_striplib
16741
16742 # Dependencies to place before the objects being linked to create a
16743 # shared library.
16744 predep_objects=$lt_predep_objects_F77
16745
16746 # Dependencies to place after the objects being linked to create a
16747 # shared library.
16748 postdep_objects=$lt_postdep_objects_F77
16749
16750 # Dependencies to place before the objects being linked to create a
16751 # shared library.
16752 predeps=$lt_predeps_F77
16753
16754 # Dependencies to place after the objects being linked to create a
16755 # shared library.
16756 postdeps=$lt_postdeps_F77
16757
16758 # The directories searched by this compiler when creating a shared
16759 # library
16760 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16761
16762 # The library search path used internally by the compiler when linking
16763 # a shared library.
16764 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16765
16766 # Method to check whether dependent libraries are shared objects.
16767 deplibs_check_method=$lt_deplibs_check_method
16768
16769 # Command to use when deplibs_check_method == file_magic.
16770 file_magic_cmd=$lt_file_magic_cmd
16771
16772 # Flag that allows shared libraries with undefined symbols to be built.
16773 allow_undefined_flag=$lt_allow_undefined_flag_F77
16774
16775 # Flag that forces no undefined symbols.
16776 no_undefined_flag=$lt_no_undefined_flag_F77
16777
16778 # Commands used to finish a libtool library installation in a directory.
16779 finish_cmds=$lt_finish_cmds
16780
16781 # Same as above, but a single script fragment to be evaled but not shown.
16782 finish_eval=$lt_finish_eval
16783
16784 # Take the output of nm and produce a listing of raw symbols and C names.
16785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16786
16787 # Transform the output of nm in a proper C declaration
16788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16789
16790 # Transform the output of nm in a C name address pair
16791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16792
16793 # This is the shared library runtime path variable.
16794 runpath_var=$runpath_var
16795
16796 # This is the shared library path variable.
16797 shlibpath_var=$shlibpath_var
16798
16799 # Is shlibpath searched before the hard-coded library search path?
16800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16801
16802 # How to hardcode a shared library path into an executable.
16803 hardcode_action=$hardcode_action_F77
16804
16805 # Whether we should hardcode library paths into libraries.
16806 hardcode_into_libs=$hardcode_into_libs
16807
16808 # Flag to hardcode \$libdir into a binary during linking.
16809 # This must work even if \$libdir does not exist.
16810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16811
16812 # If ld is used when linking, flag to hardcode \$libdir into
16813 # a binary during linking. This must work even if \$libdir does
16814 # not exist.
16815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16816
16817 # Whether we need a single -rpath flag with a separated argument.
16818 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16819
16820 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16821 # resulting binary.
16822 hardcode_direct=$hardcode_direct_F77
16823
16824 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16825 # resulting binary.
16826 hardcode_minus_L=$hardcode_minus_L_F77
16827
16828 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16829 # the resulting binary.
16830 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16831
16832 # Set to yes if building a shared library automatically hardcodes DIR into the library
16833 # and all subsequent libraries and executables linked against it.
16834 hardcode_automatic=$hardcode_automatic_F77
16835
16836 # Variables whose values should be saved in libtool wrapper scripts and
16837 # restored at relink time.
16838 variables_saved_for_relink="$variables_saved_for_relink"
16839
16840 # Whether libtool must link a program against all its dependency libraries.
16841 link_all_deplibs=$link_all_deplibs_F77
16842
16843 # Compile-time system search path for libraries
16844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16845
16846 # Run-time system search path for libraries
16847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16848
16849 # Fix the shell variable \$srcfile for the compiler.
16850 fix_srcfile_path=$lt_fix_srcfile_path
16851
16852 # Set to yes if exported symbols are required.
16853 always_export_symbols=$always_export_symbols_F77
16854
16855 # The commands to list exported symbols.
16856 export_symbols_cmds=$lt_export_symbols_cmds_F77
16857
16858 # The commands to extract the exported symbol list from a shared archive.
16859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16860
16861 # Symbols that should not be listed in the preloaded symbols.
16862 exclude_expsyms=$lt_exclude_expsyms_F77
16863
16864 # Symbols that must always be exported.
16865 include_expsyms=$lt_include_expsyms_F77
16866
16867 # ### END LIBTOOL TAG CONFIG: $tagname
16868
16869 __EOF__
16870
16871
16872 else
16873 # If there is no Makefile yet, we rely on a make rule to execute
16874 # `config.status --recheck' to rerun these tests and create the
16875 # libtool script then.
16876 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16877 if test -f "$ltmain_in"; then
16878 test -f Makefile && make "$ltmain"
16879 fi
16880 fi
16881
16882
16883 ac_ext=c
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16888
16889 CC="$lt_save_CC"
16890
16891 else
16892 tagname=""
16893 fi
16894 ;;
16895
16896 GCJ)
16897 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16898
16899
16900 # Source file extension for Java test sources.
16901 ac_ext=java
16902
16903 # Object file extension for compiled Java test sources.
16904 objext=o
16905 objext_GCJ=$objext
16906
16907 # Code to be used in simple compile tests
16908 lt_simple_compile_test_code="class foo {}"
16909
16910 # Code to be used in simple link tests
16911 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16912
16913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16914
16915 # If no C compiler was specified, use CC.
16916 LTCC=${LTCC-"$CC"}
16917
16918 # If no C compiler flags were specified, use CFLAGS.
16919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16920
16921 # Allow CC to be a program name with arguments.
16922 compiler=$CC
16923
16924
16925 # save warnings/boilerplate of simple test code
16926 ac_outfile=conftest.$ac_objext
16927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16929 _lt_compiler_boilerplate=`cat conftest.err`
16930 $rm conftest*
16931
16932 ac_outfile=conftest.$ac_objext
16933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16935 _lt_linker_boilerplate=`cat conftest.err`
16936 $rm -r conftest*
16937
16938
16939 # Allow CC to be a program name with arguments.
16940 lt_save_CC="$CC"
16941 CC=${GCJ-"gcj"}
16942 compiler=$CC
16943 compiler_GCJ=$CC
16944 for cc_temp in $compiler""; do
16945 case $cc_temp in
16946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16948 \-*) ;;
16949 *) break;;
16950 esac
16951 done
16952 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16953
16954 LD_GCJ="$LD"
16955
16956 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16957 archive_cmds_need_lc_GCJ=no
16958
16959 old_archive_cmds_GCJ=$old_archive_cmds
16960
16961
16962 lt_prog_compiler_no_builtin_flag_GCJ=
16963
16964 if test "$GCC" = yes; then
16965 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16966
16967
16968 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16969 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16970 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16971 $as_echo_n "(cached) " >&6
16972 else
16973 lt_cv_prog_compiler_rtti_exceptions=no
16974 ac_outfile=conftest.$ac_objext
16975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16976 lt_compiler_flag="-fno-rtti -fno-exceptions"
16977 # Insert the option either (1) after the last *FLAGS variable, or
16978 # (2) before a word containing "conftest.", or (3) at the end.
16979 # Note that $ac_compile itself does not contain backslashes and begins
16980 # with a dollar sign (not a hyphen), so the echo should work correctly.
16981 # The option is referenced via a variable to avoid confusing sed.
16982 lt_compile=`echo "$ac_compile" | $SED \
16983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16985 -e 's:$: $lt_compiler_flag:'`
16986 (eval echo "\"\$as_me:16986: $lt_compile\"" >&5)
16987 (eval "$lt_compile" 2>conftest.err)
16988 ac_status=$?
16989 cat conftest.err >&5
16990 echo "$as_me:16990: \$? = $ac_status" >&5
16991 if (exit $ac_status) && test -s "$ac_outfile"; then
16992 # The compiler can only warn and ignore the option if not recognized
16993 # So say no if there are warnings other than the usual output.
16994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16997 lt_cv_prog_compiler_rtti_exceptions=yes
16998 fi
16999 fi
17000 $rm conftest*
17001
17002 fi
17003 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17004 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17005
17006 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17007 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17008 else
17009 :
17010 fi
17011
17012 fi
17013
17014 lt_prog_compiler_wl_GCJ=
17015 lt_prog_compiler_pic_GCJ=
17016 lt_prog_compiler_static_GCJ=
17017
17018 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17019 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17020
17021 if test "$GCC" = yes; then
17022 lt_prog_compiler_wl_GCJ='-Wl,'
17023 lt_prog_compiler_static_GCJ='-static'
17024
17025 case $host_os in
17026 aix*)
17027 # All AIX code is PIC.
17028 if test "$host_cpu" = ia64; then
17029 # AIX 5 now supports IA64 processor
17030 lt_prog_compiler_static_GCJ='-Bstatic'
17031 fi
17032 ;;
17033
17034 amigaos*)
17035 # FIXME: we need at least 68020 code to build shared libraries, but
17036 # adding the `-m68020' flag to GCC prevents building anything better,
17037 # like `-m68040'.
17038 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17039 ;;
17040
17041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17042 # PIC is the default for these OSes.
17043 ;;
17044
17045 mingw* | cygwin* | pw32* | os2*)
17046 # This hack is so that the source file can tell whether it is being
17047 # built for inclusion in a dll (and should export symbols for example).
17048 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17049 # (--disable-auto-import) libraries
17050
17051 ;;
17052
17053 darwin* | rhapsody*)
17054 # PIC is the default on this platform
17055 # Common symbols not allowed in MH_DYLIB files
17056 lt_prog_compiler_pic_GCJ='-fno-common'
17057 ;;
17058
17059 interix[3-9]*)
17060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17061 # Instead, we relocate shared libraries at runtime.
17062 ;;
17063
17064 msdosdjgpp*)
17065 # Just because we use GCC doesn't mean we suddenly get shared libraries
17066 # on systems that don't support them.
17067 lt_prog_compiler_can_build_shared_GCJ=no
17068 enable_shared=no
17069 ;;
17070
17071 sysv4*MP*)
17072 if test -d /usr/nec; then
17073 lt_prog_compiler_pic_GCJ=-Kconform_pic
17074 fi
17075 ;;
17076
17077 hpux*)
17078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17079 # not for PA HP-UX.
17080 case $host_cpu in
17081 hppa*64*|ia64*)
17082 # +Z the default
17083 ;;
17084 *)
17085 lt_prog_compiler_pic_GCJ='-fPIC'
17086 ;;
17087 esac
17088 ;;
17089
17090 *)
17091 lt_prog_compiler_pic_GCJ='-fPIC'
17092 ;;
17093 esac
17094 else
17095 # PORTME Check for flag to pass linker flags through the system compiler.
17096 case $host_os in
17097 aix*)
17098 lt_prog_compiler_wl_GCJ='-Wl,'
17099 if test "$host_cpu" = ia64; then
17100 # AIX 5 now supports IA64 processor
17101 lt_prog_compiler_static_GCJ='-Bstatic'
17102 else
17103 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17104 fi
17105 ;;
17106 darwin*)
17107 # PIC is the default on this platform
17108 # Common symbols not allowed in MH_DYLIB files
17109 case $cc_basename in
17110 xlc*)
17111 lt_prog_compiler_pic_GCJ='-qnocommon'
17112 lt_prog_compiler_wl_GCJ='-Wl,'
17113 ;;
17114 esac
17115 ;;
17116
17117 mingw* | cygwin* | pw32* | os2*)
17118 # This hack is so that the source file can tell whether it is being
17119 # built for inclusion in a dll (and should export symbols for example).
17120
17121 ;;
17122
17123 hpux9* | hpux10* | hpux11*)
17124 lt_prog_compiler_wl_GCJ='-Wl,'
17125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17126 # not for PA HP-UX.
17127 case $host_cpu in
17128 hppa*64*|ia64*)
17129 # +Z the default
17130 ;;
17131 *)
17132 lt_prog_compiler_pic_GCJ='+Z'
17133 ;;
17134 esac
17135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17136 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17137 ;;
17138
17139 irix5* | irix6* | nonstopux*)
17140 lt_prog_compiler_wl_GCJ='-Wl,'
17141 # PIC (with -KPIC) is the default.
17142 lt_prog_compiler_static_GCJ='-non_shared'
17143 ;;
17144
17145 newsos6)
17146 lt_prog_compiler_pic_GCJ='-KPIC'
17147 lt_prog_compiler_static_GCJ='-Bstatic'
17148 ;;
17149
17150 linux* | k*bsd*-gnu)
17151 case $cc_basename in
17152 icc* | ecc*)
17153 lt_prog_compiler_wl_GCJ='-Wl,'
17154 lt_prog_compiler_pic_GCJ='-KPIC'
17155 lt_prog_compiler_static_GCJ='-static'
17156 ;;
17157 pgcc* | pgf77* | pgf90* | pgf95*)
17158 # Portland Group compilers (*not* the Pentium gcc compiler,
17159 # which looks to be a dead project)
17160 lt_prog_compiler_wl_GCJ='-Wl,'
17161 lt_prog_compiler_pic_GCJ='-fpic'
17162 lt_prog_compiler_static_GCJ='-Bstatic'
17163 ;;
17164 ccc*)
17165 lt_prog_compiler_wl_GCJ='-Wl,'
17166 # All Alpha code is PIC.
17167 lt_prog_compiler_static_GCJ='-non_shared'
17168 ;;
17169 *)
17170 case `$CC -V 2>&1 | sed 5q` in
17171 *Sun\ C*)
17172 # Sun C 5.9
17173 lt_prog_compiler_pic_GCJ='-KPIC'
17174 lt_prog_compiler_static_GCJ='-Bstatic'
17175 lt_prog_compiler_wl_GCJ='-Wl,'
17176 ;;
17177 *Sun\ F*)
17178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17179 lt_prog_compiler_pic_GCJ='-KPIC'
17180 lt_prog_compiler_static_GCJ='-Bstatic'
17181 lt_prog_compiler_wl_GCJ=''
17182 ;;
17183 esac
17184 ;;
17185 esac
17186 ;;
17187
17188 osf3* | osf4* | osf5*)
17189 lt_prog_compiler_wl_GCJ='-Wl,'
17190 # All OSF/1 code is PIC.
17191 lt_prog_compiler_static_GCJ='-non_shared'
17192 ;;
17193
17194 rdos*)
17195 lt_prog_compiler_static_GCJ='-non_shared'
17196 ;;
17197
17198 solaris*)
17199 lt_prog_compiler_pic_GCJ='-KPIC'
17200 lt_prog_compiler_static_GCJ='-Bstatic'
17201 case $cc_basename in
17202 f77* | f90* | f95*)
17203 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17204 *)
17205 lt_prog_compiler_wl_GCJ='-Wl,';;
17206 esac
17207 ;;
17208
17209 sunos4*)
17210 lt_prog_compiler_wl_GCJ='-Qoption ld '
17211 lt_prog_compiler_pic_GCJ='-PIC'
17212 lt_prog_compiler_static_GCJ='-Bstatic'
17213 ;;
17214
17215 sysv4 | sysv4.2uw2* | sysv4.3*)
17216 lt_prog_compiler_wl_GCJ='-Wl,'
17217 lt_prog_compiler_pic_GCJ='-KPIC'
17218 lt_prog_compiler_static_GCJ='-Bstatic'
17219 ;;
17220
17221 sysv4*MP*)
17222 if test -d /usr/nec ;then
17223 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17224 lt_prog_compiler_static_GCJ='-Bstatic'
17225 fi
17226 ;;
17227
17228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17229 lt_prog_compiler_wl_GCJ='-Wl,'
17230 lt_prog_compiler_pic_GCJ='-KPIC'
17231 lt_prog_compiler_static_GCJ='-Bstatic'
17232 ;;
17233
17234 unicos*)
17235 lt_prog_compiler_wl_GCJ='-Wl,'
17236 lt_prog_compiler_can_build_shared_GCJ=no
17237 ;;
17238
17239 uts4*)
17240 lt_prog_compiler_pic_GCJ='-pic'
17241 lt_prog_compiler_static_GCJ='-Bstatic'
17242 ;;
17243
17244 *)
17245 lt_prog_compiler_can_build_shared_GCJ=no
17246 ;;
17247 esac
17248 fi
17249
17250 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17251 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17252
17253 #
17254 # Check to make sure the PIC flag actually works.
17255 #
17256 if test -n "$lt_prog_compiler_pic_GCJ"; then
17257
17258 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17259 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17260 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17261 $as_echo_n "(cached) " >&6
17262 else
17263 lt_cv_prog_compiler_pic_works_GCJ=no
17264 ac_outfile=conftest.$ac_objext
17265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17266 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17267 # Insert the option either (1) after the last *FLAGS variable, or
17268 # (2) before a word containing "conftest.", or (3) at the end.
17269 # Note that $ac_compile itself does not contain backslashes and begins
17270 # with a dollar sign (not a hyphen), so the echo should work correctly.
17271 # The option is referenced via a variable to avoid confusing sed.
17272 lt_compile=`echo "$ac_compile" | $SED \
17273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17275 -e 's:$: $lt_compiler_flag:'`
17276 (eval echo "\"\$as_me:17276: $lt_compile\"" >&5)
17277 (eval "$lt_compile" 2>conftest.err)
17278 ac_status=$?
17279 cat conftest.err >&5
17280 echo "$as_me:17280: \$? = $ac_status" >&5
17281 if (exit $ac_status) && test -s "$ac_outfile"; then
17282 # The compiler can only warn and ignore the option if not recognized
17283 # So say no if there are warnings other than the usual output.
17284 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17287 lt_cv_prog_compiler_pic_works_GCJ=yes
17288 fi
17289 fi
17290 $rm conftest*
17291
17292 fi
17293 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17294 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17295
17296 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17297 case $lt_prog_compiler_pic_GCJ in
17298 "" | " "*) ;;
17299 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17300 esac
17301 else
17302 lt_prog_compiler_pic_GCJ=
17303 lt_prog_compiler_can_build_shared_GCJ=no
17304 fi
17305
17306 fi
17307 case $host_os in
17308 # For platforms which do not support PIC, -DPIC is meaningless:
17309 *djgpp*)
17310 lt_prog_compiler_pic_GCJ=
17311 ;;
17312 *)
17313 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17314 ;;
17315 esac
17316
17317 #
17318 # Check to make sure the static flag actually works.
17319 #
17320 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17321 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17322 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17323 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17324 $as_echo_n "(cached) " >&6
17325 else
17326 lt_cv_prog_compiler_static_works_GCJ=no
17327 save_LDFLAGS="$LDFLAGS"
17328 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17329 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17331 # The linker can only warn and ignore the option if not recognized
17332 # So say no if there are warnings
17333 if test -s conftest.err; then
17334 # Append any errors to the config.log.
17335 cat conftest.err 1>&5
17336 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17338 if diff conftest.exp conftest.er2 >/dev/null; then
17339 lt_cv_prog_compiler_static_works_GCJ=yes
17340 fi
17341 else
17342 lt_cv_prog_compiler_static_works_GCJ=yes
17343 fi
17344 fi
17345 $rm -r conftest*
17346 LDFLAGS="$save_LDFLAGS"
17347
17348 fi
17349 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17350 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17351
17352 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17353 :
17354 else
17355 lt_prog_compiler_static_GCJ=
17356 fi
17357
17358
17359 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17361 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17362 $as_echo_n "(cached) " >&6
17363 else
17364 lt_cv_prog_compiler_c_o_GCJ=no
17365 $rm -r conftest 2>/dev/null
17366 mkdir conftest
17367 cd conftest
17368 mkdir out
17369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17370
17371 lt_compiler_flag="-o out/conftest2.$ac_objext"
17372 # Insert the option either (1) after the last *FLAGS variable, or
17373 # (2) before a word containing "conftest.", or (3) at the end.
17374 # Note that $ac_compile itself does not contain backslashes and begins
17375 # with a dollar sign (not a hyphen), so the echo should work correctly.
17376 lt_compile=`echo "$ac_compile" | $SED \
17377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17379 -e 's:$: $lt_compiler_flag:'`
17380 (eval echo "\"\$as_me:17380: $lt_compile\"" >&5)
17381 (eval "$lt_compile" 2>out/conftest.err)
17382 ac_status=$?
17383 cat out/conftest.err >&5
17384 echo "$as_me:17384: \$? = $ac_status" >&5
17385 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17386 then
17387 # The compiler can only warn and ignore the option if not recognized
17388 # So say no if there are warnings
17389 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17392 lt_cv_prog_compiler_c_o_GCJ=yes
17393 fi
17394 fi
17395 chmod u+w . 2>&5
17396 $rm conftest*
17397 # SGI C++ compiler will create directory out/ii_files/ for
17398 # template instantiation
17399 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17400 $rm out/* && rmdir out
17401 cd ..
17402 rmdir conftest
17403 $rm conftest*
17404
17405 fi
17406 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17407 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17408
17409
17410 hard_links="nottested"
17411 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17412 # do not overwrite the value of need_locks provided by the user
17413 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17414 $as_echo_n "checking if we can lock with hard links... " >&6; }
17415 hard_links=yes
17416 $rm conftest*
17417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17418 touch conftest.a
17419 ln conftest.a conftest.b 2>&5 || hard_links=no
17420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17421 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17422 $as_echo "$hard_links" >&6; }
17423 if test "$hard_links" = no; then
17424 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17425 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17426 need_locks=warn
17427 fi
17428 else
17429 need_locks=no
17430 fi
17431
17432 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17433 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17434
17435 runpath_var=
17436 allow_undefined_flag_GCJ=
17437 enable_shared_with_static_runtimes_GCJ=no
17438 archive_cmds_GCJ=
17439 archive_expsym_cmds_GCJ=
17440 old_archive_From_new_cmds_GCJ=
17441 old_archive_from_expsyms_cmds_GCJ=
17442 export_dynamic_flag_spec_GCJ=
17443 whole_archive_flag_spec_GCJ=
17444 thread_safe_flag_spec_GCJ=
17445 hardcode_libdir_flag_spec_GCJ=
17446 hardcode_libdir_flag_spec_ld_GCJ=
17447 hardcode_libdir_separator_GCJ=
17448 hardcode_direct_GCJ=no
17449 hardcode_minus_L_GCJ=no
17450 hardcode_shlibpath_var_GCJ=unsupported
17451 link_all_deplibs_GCJ=unknown
17452 hardcode_automatic_GCJ=no
17453 module_cmds_GCJ=
17454 module_expsym_cmds_GCJ=
17455 always_export_symbols_GCJ=no
17456 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17457 # include_expsyms should be a list of space-separated symbols to be *always*
17458 # included in the symbol list
17459 include_expsyms_GCJ=
17460 # exclude_expsyms can be an extended regexp of symbols to exclude
17461 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17462 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17463 # as well as any symbol that contains `d'.
17464 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17465 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17466 # platforms (ab)use it in PIC code, but their linkers get confused if
17467 # the symbol is explicitly referenced. Since portable code cannot
17468 # rely on this symbol name, it's probably fine to never include it in
17469 # preloaded symbol tables.
17470 # Exclude shared library initialization/finalization symbols.
17471 extract_expsyms_cmds=
17472 # Just being paranoid about ensuring that cc_basename is set.
17473 for cc_temp in $compiler""; do
17474 case $cc_temp in
17475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17477 \-*) ;;
17478 *) break;;
17479 esac
17480 done
17481 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17482
17483 case $host_os in
17484 cygwin* | mingw* | pw32*)
17485 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17486 # When not using gcc, we currently assume that we are using
17487 # Microsoft Visual C++.
17488 if test "$GCC" != yes; then
17489 with_gnu_ld=no
17490 fi
17491 ;;
17492 interix*)
17493 # we just hope/assume this is gcc and not c89 (= MSVC++)
17494 with_gnu_ld=yes
17495 ;;
17496 openbsd*)
17497 with_gnu_ld=no
17498 ;;
17499 esac
17500
17501 ld_shlibs_GCJ=yes
17502 if test "$with_gnu_ld" = yes; then
17503 # If archive_cmds runs LD, not CC, wlarc should be empty
17504 wlarc='${wl}'
17505
17506 # Set some defaults for GNU ld with shared library support. These
17507 # are reset later if shared libraries are not supported. Putting them
17508 # here allows them to be overridden if necessary.
17509 runpath_var=LD_RUN_PATH
17510 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17511 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17512 # ancient GNU ld didn't support --whole-archive et. al.
17513 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17514 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17515 else
17516 whole_archive_flag_spec_GCJ=
17517 fi
17518 supports_anon_versioning=no
17519 case `$LD -v 2>/dev/null` in
17520 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17521 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17522 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17523 *\ 2.11.*) ;; # other 2.11 versions
17524 *) supports_anon_versioning=yes ;;
17525 esac
17526
17527 # See if GNU ld supports shared libraries.
17528 case $host_os in
17529 aix[3-9]*)
17530 # On AIX/PPC, the GNU linker is very broken
17531 if test "$host_cpu" != ia64; then
17532 ld_shlibs_GCJ=no
17533 cat <<EOF 1>&2
17534
17535 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17536 *** to be unable to reliably create shared libraries on AIX.
17537 *** Therefore, libtool is disabling shared libraries support. If you
17538 *** really care for shared libraries, you may want to modify your PATH
17539 *** so that a non-GNU linker is found, and then restart.
17540
17541 EOF
17542 fi
17543 ;;
17544
17545 amigaos*)
17546 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)'
17547 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548 hardcode_minus_L_GCJ=yes
17549
17550 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17551 # that the semantics of dynamic libraries on AmigaOS, at least up
17552 # to version 4, is to share data among multiple programs linked
17553 # with the same dynamic library. Since this doesn't match the
17554 # behavior of shared libraries on other platforms, we can't use
17555 # them.
17556 ld_shlibs_GCJ=no
17557 ;;
17558
17559 beos*)
17560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17561 allow_undefined_flag_GCJ=unsupported
17562 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17563 # support --undefined. This deserves some investigation. FIXME
17564 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17565 else
17566 ld_shlibs_GCJ=no
17567 fi
17568 ;;
17569
17570 cygwin* | mingw* | pw32*)
17571 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17572 # as there is no search path for DLLs.
17573 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17574 allow_undefined_flag_GCJ=unsupported
17575 always_export_symbols_GCJ=no
17576 enable_shared_with_static_runtimes_GCJ=yes
17577 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17578
17579 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17581 # If the export-symbols file already is a .def file (1st line
17582 # is EXPORTS), use it as is; otherwise, prepend...
17583 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17584 cp $export_symbols $output_objdir/$soname.def;
17585 else
17586 echo EXPORTS > $output_objdir/$soname.def;
17587 cat $export_symbols >> $output_objdir/$soname.def;
17588 fi~
17589 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17590 else
17591 ld_shlibs_GCJ=no
17592 fi
17593 ;;
17594
17595 interix[3-9]*)
17596 hardcode_direct_GCJ=no
17597 hardcode_shlibpath_var_GCJ=no
17598 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17599 export_dynamic_flag_spec_GCJ='${wl}-E'
17600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17601 # Instead, shared libraries are loaded at an image base (0x10000000 by
17602 # default) and relocated if they conflict, which is a slow very memory
17603 # consuming and fragmenting process. To avoid this, we pick a random,
17604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17606 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'
17607 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'
17608 ;;
17609
17610 gnu* | linux* | k*bsd*-gnu)
17611 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17612 tmp_addflag=
17613 case $cc_basename,$host_cpu in
17614 pgcc*) # Portland Group C compiler
17615 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'
17616 tmp_addflag=' $pic_flag'
17617 ;;
17618 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17619 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'
17620 tmp_addflag=' $pic_flag -Mnomain' ;;
17621 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17622 tmp_addflag=' -i_dynamic' ;;
17623 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17624 tmp_addflag=' -i_dynamic -nofor_main' ;;
17625 ifc* | ifort*) # Intel Fortran compiler
17626 tmp_addflag=' -nofor_main' ;;
17627 esac
17628 case `$CC -V 2>&1 | sed 5q` in
17629 *Sun\ C*) # Sun C 5.9
17630 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'
17631 tmp_sharedflag='-G' ;;
17632 *Sun\ F*) # Sun Fortran 8.3
17633 tmp_sharedflag='-G' ;;
17634 *)
17635 tmp_sharedflag='-shared' ;;
17636 esac
17637 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17638
17639 if test $supports_anon_versioning = yes; then
17640 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17642 $echo "local: *; };" >> $output_objdir/$libname.ver~
17643 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17644 fi
17645 link_all_deplibs_GCJ=no
17646 else
17647 ld_shlibs_GCJ=no
17648 fi
17649 ;;
17650
17651 netbsd*)
17652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17653 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17654 wlarc=
17655 else
17656 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17657 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17658 fi
17659 ;;
17660
17661 solaris*)
17662 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17663 ld_shlibs_GCJ=no
17664 cat <<EOF 1>&2
17665
17666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17667 *** create shared libraries on Solaris systems. Therefore, libtool
17668 *** is disabling shared libraries support. We urge you to upgrade GNU
17669 *** binutils to release 2.9.1 or newer. Another option is to modify
17670 *** your PATH or compiler configuration so that the native linker is
17671 *** used, and then restart.
17672
17673 EOF
17674 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17675 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17676 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17677 else
17678 ld_shlibs_GCJ=no
17679 fi
17680 ;;
17681
17682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17683 case `$LD -v 2>&1` in
17684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17685 ld_shlibs_GCJ=no
17686 cat <<_LT_EOF 1>&2
17687
17688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17689 *** reliably create shared libraries on SCO systems. Therefore, libtool
17690 *** is disabling shared libraries support. We urge you to upgrade GNU
17691 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17692 *** your PATH or compiler configuration so that the native linker is
17693 *** used, and then restart.
17694
17695 _LT_EOF
17696 ;;
17697 *)
17698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17699 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17700 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17701 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17702 else
17703 ld_shlibs_GCJ=no
17704 fi
17705 ;;
17706 esac
17707 ;;
17708
17709 sunos4*)
17710 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17711 wlarc=
17712 hardcode_direct_GCJ=yes
17713 hardcode_shlibpath_var_GCJ=no
17714 ;;
17715
17716 *)
17717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17718 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17719 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17720 else
17721 ld_shlibs_GCJ=no
17722 fi
17723 ;;
17724 esac
17725
17726 if test "$ld_shlibs_GCJ" = no; then
17727 runpath_var=
17728 hardcode_libdir_flag_spec_GCJ=
17729 export_dynamic_flag_spec_GCJ=
17730 whole_archive_flag_spec_GCJ=
17731 fi
17732 else
17733 # PORTME fill in a description of your system's linker (not GNU ld)
17734 case $host_os in
17735 aix3*)
17736 allow_undefined_flag_GCJ=unsupported
17737 always_export_symbols_GCJ=yes
17738 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'
17739 # Note: this linker hardcodes the directories in LIBPATH if there
17740 # are no directories specified by -L.
17741 hardcode_minus_L_GCJ=yes
17742 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17743 # Neither direct hardcoding nor static linking is supported with a
17744 # broken collect2.
17745 hardcode_direct_GCJ=unsupported
17746 fi
17747 ;;
17748
17749 aix[4-9]*)
17750 if test "$host_cpu" = ia64; then
17751 # On IA64, the linker does run time linking by default, so we don't
17752 # have to do anything special.
17753 aix_use_runtimelinking=no
17754 exp_sym_flag='-Bexport'
17755 no_entry_flag=""
17756 else
17757 # If we're using GNU nm, then we don't want the "-C" option.
17758 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17759 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17760 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'
17761 else
17762 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'
17763 fi
17764 aix_use_runtimelinking=no
17765
17766 # Test if we are trying to use run time linking or normal
17767 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17768 # need to do runtime linking.
17769 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17770 for ld_flag in $LDFLAGS; do
17771 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17772 aix_use_runtimelinking=yes
17773 break
17774 fi
17775 done
17776 ;;
17777 esac
17778
17779 exp_sym_flag='-bexport'
17780 no_entry_flag='-bnoentry'
17781 fi
17782
17783 # When large executables or shared objects are built, AIX ld can
17784 # have problems creating the table of contents. If linking a library
17785 # or program results in "error TOC overflow" add -mminimal-toc to
17786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17788
17789 archive_cmds_GCJ=''
17790 hardcode_direct_GCJ=yes
17791 hardcode_libdir_separator_GCJ=':'
17792 link_all_deplibs_GCJ=yes
17793
17794 if test "$GCC" = yes; then
17795 case $host_os in aix4.[012]|aix4.[012].*)
17796 # We only want to do this on AIX 4.2 and lower, the check
17797 # below for broken collect2 doesn't work under 4.3+
17798 collect2name=`${CC} -print-prog-name=collect2`
17799 if test -f "$collect2name" && \
17800 strings "$collect2name" | grep resolve_lib_name >/dev/null
17801 then
17802 # We have reworked collect2
17803 :
17804 else
17805 # We have old collect2
17806 hardcode_direct_GCJ=unsupported
17807 # It fails to find uninstalled libraries when the uninstalled
17808 # path is not listed in the libpath. Setting hardcode_minus_L
17809 # to unsupported forces relinking
17810 hardcode_minus_L_GCJ=yes
17811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17812 hardcode_libdir_separator_GCJ=
17813 fi
17814 ;;
17815 esac
17816 shared_flag='-shared'
17817 if test "$aix_use_runtimelinking" = yes; then
17818 shared_flag="$shared_flag "'${wl}-G'
17819 fi
17820 else
17821 # not using gcc
17822 if test "$host_cpu" = ia64; then
17823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17824 # chokes on -Wl,-G. The following line is correct:
17825 shared_flag='-G'
17826 else
17827 if test "$aix_use_runtimelinking" = yes; then
17828 shared_flag='${wl}-G'
17829 else
17830 shared_flag='${wl}-bM:SRE'
17831 fi
17832 fi
17833 fi
17834
17835 # It seems that -bexpall does not export symbols beginning with
17836 # underscore (_), so it is better to generate a list of symbols to export.
17837 always_export_symbols_GCJ=yes
17838 if test "$aix_use_runtimelinking" = yes; then
17839 # Warning - without using the other runtime loading flags (-brtl),
17840 # -berok will link without error, but may produce a broken library.
17841 allow_undefined_flag_GCJ='-berok'
17842 # Determine the default libpath from the value encoded in an empty executable.
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849
17850 int
17851 main ()
17852 {
17853
17854 ;
17855 return 0;
17856 }
17857 _ACEOF
17858 rm -f conftest.$ac_objext conftest$ac_exeext
17859 if { (ac_try="$ac_link"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17865 $as_echo "$ac_try_echo") >&5
17866 (eval "$ac_link") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest$ac_exeext && {
17876 test "$cross_compiling" = yes ||
17877 $as_test_x conftest$ac_exeext
17878 }; then
17879
17880 lt_aix_libpath_sed='
17881 /Import File Strings/,/^$/ {
17882 /^0/ {
17883 s/^0 *\(.*\)$/\1/
17884 p
17885 }
17886 }'
17887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17888 # Check for a 64-bit object if we didn't find anything.
17889 if test -z "$aix_libpath"; then
17890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17891 fi
17892 else
17893 $as_echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17895
17896
17897 fi
17898
17899 rm -rf conftest.dSYM
17900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17901 conftest$ac_exeext conftest.$ac_ext
17902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17903
17904 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17905 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"
17906 else
17907 if test "$host_cpu" = ia64; then
17908 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17909 allow_undefined_flag_GCJ="-z nodefs"
17910 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"
17911 else
17912 # Determine the default libpath from the value encoded in an empty executable.
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919
17920 int
17921 main ()
17922 {
17923
17924 ;
17925 return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933 esac
17934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17935 $as_echo "$ac_try_echo") >&5
17936 (eval "$ac_link") 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } && {
17943 test -z "$ac_c_werror_flag" ||
17944 test ! -s conftest.err
17945 } && test -s conftest$ac_exeext && {
17946 test "$cross_compiling" = yes ||
17947 $as_test_x conftest$ac_exeext
17948 }; then
17949
17950 lt_aix_libpath_sed='
17951 /Import File Strings/,/^$/ {
17952 /^0/ {
17953 s/^0 *\(.*\)$/\1/
17954 p
17955 }
17956 }'
17957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17958 # Check for a 64-bit object if we didn't find anything.
17959 if test -z "$aix_libpath"; then
17960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17961 fi
17962 else
17963 $as_echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966
17967 fi
17968
17969 rm -rf conftest.dSYM
17970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17971 conftest$ac_exeext conftest.$ac_ext
17972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17973
17974 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17975 # Warning - without using the other run time loading flags,
17976 # -berok will link without error, but may produce a broken library.
17977 no_undefined_flag_GCJ=' ${wl}-bernotok'
17978 allow_undefined_flag_GCJ=' ${wl}-berok'
17979 # Exported symbols can be pulled into shared objects from archives
17980 whole_archive_flag_spec_GCJ='$convenience'
17981 archive_cmds_need_lc_GCJ=yes
17982 # This is similar to how AIX traditionally builds its shared libraries.
17983 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'
17984 fi
17985 fi
17986 ;;
17987
17988 amigaos*)
17989 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)'
17990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17991 hardcode_minus_L_GCJ=yes
17992 # see comment about different semantics on the GNU ld section
17993 ld_shlibs_GCJ=no
17994 ;;
17995
17996 bsdi[45]*)
17997 export_dynamic_flag_spec_GCJ=-rdynamic
17998 ;;
17999
18000 cygwin* | mingw* | pw32*)
18001 # When not using gcc, we currently assume that we are using
18002 # Microsoft Visual C++.
18003 # hardcode_libdir_flag_spec is actually meaningless, as there is
18004 # no search path for DLLs.
18005 hardcode_libdir_flag_spec_GCJ=' '
18006 allow_undefined_flag_GCJ=unsupported
18007 # Tell ltmain to make .lib files, not .a files.
18008 libext=lib
18009 # Tell ltmain to make .dll files, not .so files.
18010 shrext_cmds=".dll"
18011 # FIXME: Setting linknames here is a bad hack.
18012 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18013 # The linker will automatically build a .lib file if we build a DLL.
18014 old_archive_From_new_cmds_GCJ='true'
18015 # FIXME: Should let the user specify the lib program.
18016 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18017 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18018 enable_shared_with_static_runtimes_GCJ=yes
18019 ;;
18020
18021 darwin* | rhapsody*)
18022 case $host_os in
18023 rhapsody* | darwin1.[012])
18024 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18025 ;;
18026 *) # Darwin 1.3 on
18027 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18028 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18029 else
18030 case ${MACOSX_DEPLOYMENT_TARGET} in
18031 10.[012])
18032 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18033 ;;
18034 10.*)
18035 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18036 ;;
18037 esac
18038 fi
18039 ;;
18040 esac
18041 archive_cmds_need_lc_GCJ=no
18042 hardcode_direct_GCJ=no
18043 hardcode_automatic_GCJ=yes
18044 hardcode_shlibpath_var_GCJ=unsupported
18045 whole_archive_flag_spec_GCJ=''
18046 link_all_deplibs_GCJ=yes
18047 if test "$GCC" = yes ; then
18048 output_verbose_link_cmd='echo'
18049 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18050 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18051 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18052 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18053 else
18054 case $cc_basename in
18055 xlc*)
18056 output_verbose_link_cmd='echo'
18057 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18058 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18060 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}'
18061 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}'
18062 ;;
18063 *)
18064 ld_shlibs_GCJ=no
18065 ;;
18066 esac
18067 fi
18068 ;;
18069
18070 dgux*)
18071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18073 hardcode_shlibpath_var_GCJ=no
18074 ;;
18075
18076 freebsd1*)
18077 ld_shlibs_GCJ=no
18078 ;;
18079
18080 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18081 # support. Future versions do this automatically, but an explicit c++rt0.o
18082 # does not break anything, and helps significantly (at the cost of a little
18083 # extra space).
18084 freebsd2.2*)
18085 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18086 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18087 hardcode_direct_GCJ=yes
18088 hardcode_shlibpath_var_GCJ=no
18089 ;;
18090
18091 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18092 freebsd2*)
18093 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18094 hardcode_direct_GCJ=yes
18095 hardcode_minus_L_GCJ=yes
18096 hardcode_shlibpath_var_GCJ=no
18097 ;;
18098
18099 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18100 freebsd* | dragonfly*)
18101 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18102 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18103 hardcode_direct_GCJ=yes
18104 hardcode_shlibpath_var_GCJ=no
18105 ;;
18106
18107 hpux9*)
18108 if test "$GCC" = yes; then
18109 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'
18110 else
18111 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'
18112 fi
18113 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18114 hardcode_libdir_separator_GCJ=:
18115 hardcode_direct_GCJ=yes
18116
18117 # hardcode_minus_L: Not really in the search PATH,
18118 # but as the default location of the library.
18119 hardcode_minus_L_GCJ=yes
18120 export_dynamic_flag_spec_GCJ='${wl}-E'
18121 ;;
18122
18123 hpux10*)
18124 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18125 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18126 else
18127 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18128 fi
18129 if test "$with_gnu_ld" = no; then
18130 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18131 hardcode_libdir_separator_GCJ=:
18132
18133 hardcode_direct_GCJ=yes
18134 export_dynamic_flag_spec_GCJ='${wl}-E'
18135
18136 # hardcode_minus_L: Not really in the search PATH,
18137 # but as the default location of the library.
18138 hardcode_minus_L_GCJ=yes
18139 fi
18140 ;;
18141
18142 hpux11*)
18143 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18144 case $host_cpu in
18145 hppa*64*)
18146 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18147 ;;
18148 ia64*)
18149 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18150 ;;
18151 *)
18152 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18153 ;;
18154 esac
18155 else
18156 case $host_cpu in
18157 hppa*64*)
18158 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18159 ;;
18160 ia64*)
18161 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18162 ;;
18163 *)
18164 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18165 ;;
18166 esac
18167 fi
18168 if test "$with_gnu_ld" = no; then
18169 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18170 hardcode_libdir_separator_GCJ=:
18171
18172 case $host_cpu in
18173 hppa*64*|ia64*)
18174 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18175 hardcode_direct_GCJ=no
18176 hardcode_shlibpath_var_GCJ=no
18177 ;;
18178 *)
18179 hardcode_direct_GCJ=yes
18180 export_dynamic_flag_spec_GCJ='${wl}-E'
18181
18182 # hardcode_minus_L: Not really in the search PATH,
18183 # but as the default location of the library.
18184 hardcode_minus_L_GCJ=yes
18185 ;;
18186 esac
18187 fi
18188 ;;
18189
18190 irix5* | irix6* | nonstopux*)
18191 if test "$GCC" = yes; then
18192 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'
18193 else
18194 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'
18195 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18196 fi
18197 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18198 hardcode_libdir_separator_GCJ=:
18199 link_all_deplibs_GCJ=yes
18200 ;;
18201
18202 netbsd*)
18203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18205 else
18206 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18207 fi
18208 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18209 hardcode_direct_GCJ=yes
18210 hardcode_shlibpath_var_GCJ=no
18211 ;;
18212
18213 newsos6)
18214 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18215 hardcode_direct_GCJ=yes
18216 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18217 hardcode_libdir_separator_GCJ=:
18218 hardcode_shlibpath_var_GCJ=no
18219 ;;
18220
18221 openbsd*)
18222 if test -f /usr/libexec/ld.so; then
18223 hardcode_direct_GCJ=yes
18224 hardcode_shlibpath_var_GCJ=no
18225 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18226 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18227 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18228 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18229 export_dynamic_flag_spec_GCJ='${wl}-E'
18230 else
18231 case $host_os in
18232 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18233 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18235 ;;
18236 *)
18237 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18238 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18239 ;;
18240 esac
18241 fi
18242 else
18243 ld_shlibs_GCJ=no
18244 fi
18245 ;;
18246
18247 os2*)
18248 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18249 hardcode_minus_L_GCJ=yes
18250 allow_undefined_flag_GCJ=unsupported
18251 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'
18252 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18253 ;;
18254
18255 osf3*)
18256 if test "$GCC" = yes; then
18257 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18258 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'
18259 else
18260 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18261 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'
18262 fi
18263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18264 hardcode_libdir_separator_GCJ=:
18265 ;;
18266
18267 osf4* | osf5*) # as osf3* with the addition of -msym flag
18268 if test "$GCC" = yes; then
18269 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18270 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'
18271 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18272 else
18273 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18274 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'
18275 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~
18276 $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'
18277
18278 # Both c and cxx compiler support -rpath directly
18279 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18280 fi
18281 hardcode_libdir_separator_GCJ=:
18282 ;;
18283
18284 solaris*)
18285 no_undefined_flag_GCJ=' -z text'
18286 if test "$GCC" = yes; then
18287 wlarc='${wl}'
18288 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18290 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18291 else
18292 wlarc=''
18293 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18294 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18296 fi
18297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18298 hardcode_shlibpath_var_GCJ=no
18299 case $host_os in
18300 solaris2.[0-5] | solaris2.[0-5].*) ;;
18301 *)
18302 # The compiler driver will combine and reorder linker options,
18303 # but understands `-z linker_flag'. GCC discards it without `$wl',
18304 # but is careful enough not to reorder.
18305 # Supported since Solaris 2.6 (maybe 2.5.1?)
18306 if test "$GCC" = yes; then
18307 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18308 else
18309 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18310 fi
18311 ;;
18312 esac
18313 link_all_deplibs_GCJ=yes
18314 ;;
18315
18316 sunos4*)
18317 if test "x$host_vendor" = xsequent; then
18318 # Use $CC to link under sequent, because it throws in some extra .o
18319 # files that make .init and .fini sections work.
18320 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18321 else
18322 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18323 fi
18324 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18325 hardcode_direct_GCJ=yes
18326 hardcode_minus_L_GCJ=yes
18327 hardcode_shlibpath_var_GCJ=no
18328 ;;
18329
18330 sysv4)
18331 case $host_vendor in
18332 sni)
18333 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334 hardcode_direct_GCJ=yes # is this really true???
18335 ;;
18336 siemens)
18337 ## LD is ld it makes a PLAMLIB
18338 ## CC just makes a GrossModule.
18339 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18340 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18341 hardcode_direct_GCJ=no
18342 ;;
18343 motorola)
18344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18345 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18346 ;;
18347 esac
18348 runpath_var='LD_RUN_PATH'
18349 hardcode_shlibpath_var_GCJ=no
18350 ;;
18351
18352 sysv4.3*)
18353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18354 hardcode_shlibpath_var_GCJ=no
18355 export_dynamic_flag_spec_GCJ='-Bexport'
18356 ;;
18357
18358 sysv4*MP*)
18359 if test -d /usr/nec; then
18360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18361 hardcode_shlibpath_var_GCJ=no
18362 runpath_var=LD_RUN_PATH
18363 hardcode_runpath_var=yes
18364 ld_shlibs_GCJ=yes
18365 fi
18366 ;;
18367
18368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18369 no_undefined_flag_GCJ='${wl}-z,text'
18370 archive_cmds_need_lc_GCJ=no
18371 hardcode_shlibpath_var_GCJ=no
18372 runpath_var='LD_RUN_PATH'
18373
18374 if test "$GCC" = yes; then
18375 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18376 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18377 else
18378 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18379 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18380 fi
18381 ;;
18382
18383 sysv5* | sco3.2v5* | sco5v6*)
18384 # Note: We can NOT use -z defs as we might desire, because we do not
18385 # link with -lc, and that would cause any symbols used from libc to
18386 # always be unresolved, which means just about no library would
18387 # ever link correctly. If we're not using GNU ld we use -z text
18388 # though, which does catch some bad symbols but isn't as heavy-handed
18389 # as -z defs.
18390 no_undefined_flag_GCJ='${wl}-z,text'
18391 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18392 archive_cmds_need_lc_GCJ=no
18393 hardcode_shlibpath_var_GCJ=no
18394 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18395 hardcode_libdir_separator_GCJ=':'
18396 link_all_deplibs_GCJ=yes
18397 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18398 runpath_var='LD_RUN_PATH'
18399
18400 if test "$GCC" = yes; then
18401 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18402 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403 else
18404 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18405 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18406 fi
18407 ;;
18408
18409 uts4*)
18410 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18412 hardcode_shlibpath_var_GCJ=no
18413 ;;
18414
18415 *)
18416 ld_shlibs_GCJ=no
18417 ;;
18418 esac
18419 fi
18420
18421 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18422 $as_echo "$ld_shlibs_GCJ" >&6; }
18423 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18424
18425 #
18426 # Do we need to explicitly link libc?
18427 #
18428 case "x$archive_cmds_need_lc_GCJ" in
18429 x|xyes)
18430 # Assume -lc should be added
18431 archive_cmds_need_lc_GCJ=yes
18432
18433 if test "$enable_shared" = yes && test "$GCC" = yes; then
18434 case $archive_cmds_GCJ in
18435 *'~'*)
18436 # FIXME: we may have to deal with multi-command sequences.
18437 ;;
18438 '$CC '*)
18439 # Test whether the compiler implicitly links with -lc since on some
18440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18441 # to ld, don't add -lc before -lgcc.
18442 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18443 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18444 $rm conftest*
18445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18446
18447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448 (eval $ac_compile) 2>&5
18449 ac_status=$?
18450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } 2>conftest.err; then
18452 soname=conftest
18453 lib=conftest
18454 libobjs=conftest.$ac_objext
18455 deplibs=
18456 wl=$lt_prog_compiler_wl_GCJ
18457 pic_flag=$lt_prog_compiler_pic_GCJ
18458 compiler_flags=-v
18459 linker_flags=-v
18460 verstring=
18461 output_objdir=.
18462 libname=conftest
18463 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18464 allow_undefined_flag_GCJ=
18465 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18466 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18467 ac_status=$?
18468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }
18470 then
18471 archive_cmds_need_lc_GCJ=no
18472 else
18473 archive_cmds_need_lc_GCJ=yes
18474 fi
18475 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18476 else
18477 cat conftest.err 1>&5
18478 fi
18479 $rm conftest*
18480 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18481 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18482 ;;
18483 esac
18484 fi
18485 ;;
18486 esac
18487
18488 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18489 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18490 library_names_spec=
18491 libname_spec='lib$name'
18492 soname_spec=
18493 shrext_cmds=".so"
18494 postinstall_cmds=
18495 postuninstall_cmds=
18496 finish_cmds=
18497 finish_eval=
18498 shlibpath_var=
18499 shlibpath_overrides_runpath=unknown
18500 version_type=none
18501 dynamic_linker="$host_os ld.so"
18502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18503
18504 need_lib_prefix=unknown
18505 hardcode_into_libs=no
18506
18507 # when you set need_version to no, make sure it does not cause -set_version
18508 # flags to be left without arguments
18509 need_version=unknown
18510
18511 case $host_os in
18512 aix3*)
18513 version_type=linux
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18515 shlibpath_var=LIBPATH
18516
18517 # AIX 3 has no versioning support, so we append a major version to the name.
18518 soname_spec='${libname}${release}${shared_ext}$major'
18519 ;;
18520
18521 aix[4-9]*)
18522 version_type=linux
18523 need_lib_prefix=no
18524 need_version=no
18525 hardcode_into_libs=yes
18526 if test "$host_cpu" = ia64; then
18527 # AIX 5 supports IA64
18528 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18529 shlibpath_var=LD_LIBRARY_PATH
18530 else
18531 # With GCC up to 2.95.x, collect2 would create an import file
18532 # for dependence libraries. The import file would start with
18533 # the line `#! .'. This would cause the generated library to
18534 # depend on `.', always an invalid library. This was fixed in
18535 # development snapshots of GCC prior to 3.0.
18536 case $host_os in
18537 aix4 | aix4.[01] | aix4.[01].*)
18538 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18539 echo ' yes '
18540 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18541 :
18542 else
18543 can_build_shared=no
18544 fi
18545 ;;
18546 esac
18547 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18548 # soname into executable. Probably we can add versioning support to
18549 # collect2, so additional links can be useful in future.
18550 if test "$aix_use_runtimelinking" = yes; then
18551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18552 # instead of lib<name>.a to let people know that these are not
18553 # typical AIX shared libraries.
18554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18555 else
18556 # We preserve .a as extension for shared libraries through AIX4.2
18557 # and later when we are not doing run time linking.
18558 library_names_spec='${libname}${release}.a $libname.a'
18559 soname_spec='${libname}${release}${shared_ext}$major'
18560 fi
18561 shlibpath_var=LIBPATH
18562 fi
18563 ;;
18564
18565 amigaos*)
18566 library_names_spec='$libname.ixlibrary $libname.a'
18567 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18568 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'
18569 ;;
18570
18571 beos*)
18572 library_names_spec='${libname}${shared_ext}'
18573 dynamic_linker="$host_os ld.so"
18574 shlibpath_var=LIBRARY_PATH
18575 ;;
18576
18577 bsdi[45]*)
18578 version_type=linux
18579 need_version=no
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581 soname_spec='${libname}${release}${shared_ext}$major'
18582 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18585 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18586 # the default ld.so.conf also contains /usr/contrib/lib and
18587 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18588 # libtool to hard-code these into programs
18589 ;;
18590
18591 cygwin* | mingw* | pw32*)
18592 version_type=windows
18593 shrext_cmds=".dll"
18594 need_version=no
18595 need_lib_prefix=no
18596
18597 case $GCC,$host_os in
18598 yes,cygwin* | yes,mingw* | yes,pw32*)
18599 library_names_spec='$libname.dll.a'
18600 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18601 postinstall_cmds='base_file=`basename \${file}`~
18602 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18603 dldir=$destdir/`dirname \$dlpath`~
18604 test -d \$dldir || mkdir -p \$dldir~
18605 $install_prog $dir/$dlname \$dldir/$dlname~
18606 chmod a+x \$dldir/$dlname'
18607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18608 dlpath=$dir/\$dldll~
18609 $rm \$dlpath'
18610 shlibpath_overrides_runpath=yes
18611
18612 case $host_os in
18613 cygwin*)
18614 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18615 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18616 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18617 ;;
18618 mingw*)
18619 # MinGW DLLs use traditional 'lib' prefix
18620 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18621 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18622 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18623 # It is most probably a Windows format PATH printed by
18624 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18625 # path with ; separators, and with drive letters. We can handle the
18626 # drive letters (cygwin fileutils understands them), so leave them,
18627 # especially as we might pass files found there to a mingw objdump,
18628 # which wouldn't understand a cygwinified path. Ahh.
18629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18630 else
18631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18632 fi
18633 ;;
18634 pw32*)
18635 # pw32 DLLs use 'pw' prefix rather than 'lib'
18636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18637 ;;
18638 esac
18639 ;;
18640
18641 *)
18642 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18643 ;;
18644 esac
18645 dynamic_linker='Win32 ld.exe'
18646 # FIXME: first we should search . and the directory the executable is in
18647 shlibpath_var=PATH
18648 ;;
18649
18650 darwin* | rhapsody*)
18651 dynamic_linker="$host_os dyld"
18652 version_type=darwin
18653 need_lib_prefix=no
18654 need_version=no
18655 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18656 soname_spec='${libname}${release}${major}$shared_ext'
18657 shlibpath_overrides_runpath=yes
18658 shlibpath_var=DYLD_LIBRARY_PATH
18659 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18660
18661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18662 ;;
18663
18664 dgux*)
18665 version_type=linux
18666 need_lib_prefix=no
18667 need_version=no
18668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18669 soname_spec='${libname}${release}${shared_ext}$major'
18670 shlibpath_var=LD_LIBRARY_PATH
18671 ;;
18672
18673 freebsd1*)
18674 dynamic_linker=no
18675 ;;
18676
18677 freebsd* | dragonfly*)
18678 # DragonFly does not have aout. When/if they implement a new
18679 # versioning mechanism, adjust this.
18680 if test -x /usr/bin/objformat; then
18681 objformat=`/usr/bin/objformat`
18682 else
18683 case $host_os in
18684 freebsd[123]*) objformat=aout ;;
18685 *) objformat=elf ;;
18686 esac
18687 fi
18688 version_type=freebsd-$objformat
18689 case $version_type in
18690 freebsd-elf*)
18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18692 need_version=no
18693 need_lib_prefix=no
18694 ;;
18695 freebsd-*)
18696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18697 need_version=yes
18698 ;;
18699 esac
18700 shlibpath_var=LD_LIBRARY_PATH
18701 case $host_os in
18702 freebsd2*)
18703 shlibpath_overrides_runpath=yes
18704 ;;
18705 freebsd3.[01]* | freebsdelf3.[01]*)
18706 shlibpath_overrides_runpath=yes
18707 hardcode_into_libs=yes
18708 ;;
18709 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18710 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18711 shlibpath_overrides_runpath=no
18712 hardcode_into_libs=yes
18713 ;;
18714 *) # from 4.6 on, and DragonFly
18715 shlibpath_overrides_runpath=yes
18716 hardcode_into_libs=yes
18717 ;;
18718 esac
18719 ;;
18720
18721 gnu*)
18722 version_type=linux
18723 need_lib_prefix=no
18724 need_version=no
18725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18726 soname_spec='${libname}${release}${shared_ext}$major'
18727 shlibpath_var=LD_LIBRARY_PATH
18728 hardcode_into_libs=yes
18729 ;;
18730
18731 hpux9* | hpux10* | hpux11*)
18732 # Give a soname corresponding to the major version so that dld.sl refuses to
18733 # link against other versions.
18734 version_type=sunos
18735 need_lib_prefix=no
18736 need_version=no
18737 case $host_cpu in
18738 ia64*)
18739 shrext_cmds='.so'
18740 hardcode_into_libs=yes
18741 dynamic_linker="$host_os dld.so"
18742 shlibpath_var=LD_LIBRARY_PATH
18743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 soname_spec='${libname}${release}${shared_ext}$major'
18746 if test "X$HPUX_IA64_MODE" = X32; then
18747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18748 else
18749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18750 fi
18751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18752 ;;
18753 hppa*64*)
18754 shrext_cmds='.sl'
18755 hardcode_into_libs=yes
18756 dynamic_linker="$host_os dld.sl"
18757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18763 ;;
18764 *)
18765 shrext_cmds='.sl'
18766 dynamic_linker="$host_os dld.sl"
18767 shlibpath_var=SHLIB_PATH
18768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770 soname_spec='${libname}${release}${shared_ext}$major'
18771 ;;
18772 esac
18773 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18774 postinstall_cmds='chmod 555 $lib'
18775 ;;
18776
18777 interix[3-9]*)
18778 version_type=linux
18779 need_lib_prefix=no
18780 need_version=no
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18782 soname_spec='${libname}${release}${shared_ext}$major'
18783 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 shlibpath_overrides_runpath=no
18786 hardcode_into_libs=yes
18787 ;;
18788
18789 irix5* | irix6* | nonstopux*)
18790 case $host_os in
18791 nonstopux*) version_type=nonstopux ;;
18792 *)
18793 if test "$lt_cv_prog_gnu_ld" = yes; then
18794 version_type=linux
18795 else
18796 version_type=irix
18797 fi ;;
18798 esac
18799 need_lib_prefix=no
18800 need_version=no
18801 soname_spec='${libname}${release}${shared_ext}$major'
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18803 case $host_os in
18804 irix5* | nonstopux*)
18805 libsuff= shlibsuff=
18806 ;;
18807 *)
18808 case $LD in # libtool.m4 will add one of these switches to LD
18809 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18810 libsuff= shlibsuff= libmagic=32-bit;;
18811 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18812 libsuff=32 shlibsuff=N32 libmagic=N32;;
18813 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18814 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18815 *) libsuff= shlibsuff= libmagic=never-match;;
18816 esac
18817 ;;
18818 esac
18819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18820 shlibpath_overrides_runpath=no
18821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18823 hardcode_into_libs=yes
18824 ;;
18825
18826 # No shared lib support for Linux oldld, aout, or coff.
18827 linux*oldld* | linux*aout* | linux*coff*)
18828 dynamic_linker=no
18829 ;;
18830
18831 # This must be Linux ELF.
18832 linux* | k*bsd*-gnu)
18833 version_type=linux
18834 need_lib_prefix=no
18835 need_version=no
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18839 shlibpath_var=LD_LIBRARY_PATH
18840 shlibpath_overrides_runpath=no
18841 # This implies no fast_install, which is unacceptable.
18842 # Some rework will be needed to allow for fast_install
18843 # before this can be enabled.
18844 hardcode_into_libs=yes
18845
18846 # find out which ABI we are using
18847 libsuff=
18848 case "$host_cpu" in
18849 x86_64*|s390x*|powerpc64*)
18850 echo '#line 18850 "configure"' > conftest.$ac_ext
18851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18852 (eval $ac_compile) 2>&5
18853 ac_status=$?
18854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; then
18856 case `/usr/bin/file conftest.$ac_objext` in
18857 *64-bit*)
18858 libsuff=64
18859 ;;
18860 esac
18861 fi
18862 rm -rf conftest*
18863 ;;
18864 esac
18865
18866 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18867
18868 # Append ld.so.conf contents to the search path
18869 if test -f /etc/ld.so.conf; then
18870 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' ' '`
18871 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18872 fi
18873
18874 # We used to test for /lib/ld.so.1 and disable shared libraries on
18875 # powerpc, because MkLinux only supported shared libraries with the
18876 # GNU dynamic linker. Since this was broken with cross compilers,
18877 # most powerpc-linux boxes support dynamic linking these days and
18878 # people can always --disable-shared, the test was removed, and we
18879 # assume the GNU/Linux dynamic linker is in use.
18880 dynamic_linker='GNU/Linux ld.so'
18881 ;;
18882
18883 netbsd*)
18884 version_type=sunos
18885 need_lib_prefix=no
18886 need_version=no
18887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18890 dynamic_linker='NetBSD (a.out) ld.so'
18891 else
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 dynamic_linker='NetBSD ld.elf_so'
18895 fi
18896 shlibpath_var=LD_LIBRARY_PATH
18897 shlibpath_overrides_runpath=yes
18898 hardcode_into_libs=yes
18899 ;;
18900
18901 newsos6)
18902 version_type=linux
18903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904 shlibpath_var=LD_LIBRARY_PATH
18905 shlibpath_overrides_runpath=yes
18906 ;;
18907
18908 nto-qnx*)
18909 version_type=linux
18910 need_lib_prefix=no
18911 need_version=no
18912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18913 soname_spec='${libname}${release}${shared_ext}$major'
18914 shlibpath_var=LD_LIBRARY_PATH
18915 shlibpath_overrides_runpath=yes
18916 ;;
18917
18918 openbsd*)
18919 version_type=sunos
18920 sys_lib_dlsearch_path_spec="/usr/lib"
18921 need_lib_prefix=no
18922 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18923 case $host_os in
18924 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18925 *) need_version=no ;;
18926 esac
18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18929 shlibpath_var=LD_LIBRARY_PATH
18930 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18931 case $host_os in
18932 openbsd2.[89] | openbsd2.[89].*)
18933 shlibpath_overrides_runpath=no
18934 ;;
18935 *)
18936 shlibpath_overrides_runpath=yes
18937 ;;
18938 esac
18939 else
18940 shlibpath_overrides_runpath=yes
18941 fi
18942 ;;
18943
18944 os2*)
18945 libname_spec='$name'
18946 shrext_cmds=".dll"
18947 need_lib_prefix=no
18948 library_names_spec='$libname${shared_ext} $libname.a'
18949 dynamic_linker='OS/2 ld.exe'
18950 shlibpath_var=LIBPATH
18951 ;;
18952
18953 osf3* | osf4* | osf5*)
18954 version_type=osf
18955 need_lib_prefix=no
18956 need_version=no
18957 soname_spec='${libname}${release}${shared_ext}$major'
18958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959 shlibpath_var=LD_LIBRARY_PATH
18960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18961 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18962 ;;
18963
18964 rdos*)
18965 dynamic_linker=no
18966 ;;
18967
18968 solaris*)
18969 version_type=linux
18970 need_lib_prefix=no
18971 need_version=no
18972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973 soname_spec='${libname}${release}${shared_ext}$major'
18974 shlibpath_var=LD_LIBRARY_PATH
18975 shlibpath_overrides_runpath=yes
18976 hardcode_into_libs=yes
18977 # ldd complains unless libraries are executable
18978 postinstall_cmds='chmod +x $lib'
18979 ;;
18980
18981 sunos4*)
18982 version_type=sunos
18983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18985 shlibpath_var=LD_LIBRARY_PATH
18986 shlibpath_overrides_runpath=yes
18987 if test "$with_gnu_ld" = yes; then
18988 need_lib_prefix=no
18989 fi
18990 need_version=yes
18991 ;;
18992
18993 sysv4 | sysv4.3*)
18994 version_type=linux
18995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18996 soname_spec='${libname}${release}${shared_ext}$major'
18997 shlibpath_var=LD_LIBRARY_PATH
18998 case $host_vendor in
18999 sni)
19000 shlibpath_overrides_runpath=no
19001 need_lib_prefix=no
19002 export_dynamic_flag_spec='${wl}-Blargedynsym'
19003 runpath_var=LD_RUN_PATH
19004 ;;
19005 siemens)
19006 need_lib_prefix=no
19007 ;;
19008 motorola)
19009 need_lib_prefix=no
19010 need_version=no
19011 shlibpath_overrides_runpath=no
19012 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19013 ;;
19014 esac
19015 ;;
19016
19017 sysv4*MP*)
19018 if test -d /usr/nec ;then
19019 version_type=linux
19020 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19021 soname_spec='$libname${shared_ext}.$major'
19022 shlibpath_var=LD_LIBRARY_PATH
19023 fi
19024 ;;
19025
19026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19027 version_type=freebsd-elf
19028 need_lib_prefix=no
19029 need_version=no
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19031 soname_spec='${libname}${release}${shared_ext}$major'
19032 shlibpath_var=LD_LIBRARY_PATH
19033 hardcode_into_libs=yes
19034 if test "$with_gnu_ld" = yes; then
19035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19036 shlibpath_overrides_runpath=no
19037 else
19038 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19039 shlibpath_overrides_runpath=yes
19040 case $host_os in
19041 sco3.2v5*)
19042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19043 ;;
19044 esac
19045 fi
19046 sys_lib_dlsearch_path_spec='/usr/lib'
19047 ;;
19048
19049 uts4*)
19050 version_type=linux
19051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19052 soname_spec='${libname}${release}${shared_ext}$major'
19053 shlibpath_var=LD_LIBRARY_PATH
19054 ;;
19055
19056 *)
19057 dynamic_linker=no
19058 ;;
19059 esac
19060 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19061 $as_echo "$dynamic_linker" >&6; }
19062 test "$dynamic_linker" = no && can_build_shared=no
19063
19064 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19065 $as_echo_n "(cached) " >&6
19066 else
19067 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19068 fi
19069
19070 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19071 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19072 $as_echo_n "(cached) " >&6
19073 else
19074 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19075 fi
19076
19077 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19078
19079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19080 if test "$GCC" = yes; then
19081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19082 fi
19083
19084 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19085 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19086 hardcode_action_GCJ=
19087 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19088 test -n "$runpath_var_GCJ" || \
19089 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19090
19091 # We can hardcode non-existant directories.
19092 if test "$hardcode_direct_GCJ" != no &&
19093 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19094 # have to relink, otherwise we might link with an installed library
19095 # when we should be linking with a yet-to-be-installed one
19096 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19097 test "$hardcode_minus_L_GCJ" != no; then
19098 # Linking always hardcodes the temporary library directory.
19099 hardcode_action_GCJ=relink
19100 else
19101 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19102 hardcode_action_GCJ=immediate
19103 fi
19104 else
19105 # We cannot hardcode anything, or else we can only hardcode existing
19106 # directories.
19107 hardcode_action_GCJ=unsupported
19108 fi
19109 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19110 $as_echo "$hardcode_action_GCJ" >&6; }
19111
19112 if test "$hardcode_action_GCJ" = relink; then
19113 # Fast installation is not supported
19114 enable_fast_install=no
19115 elif test "$shlibpath_overrides_runpath" = yes ||
19116 test "$enable_shared" = no; then
19117 # Fast installation is not necessary
19118 enable_fast_install=needless
19119 fi
19120
19121
19122 # The else clause should only fire when bootstrapping the
19123 # libtool distribution, otherwise you forgot to ship ltmain.sh
19124 # with your package, and you will get complaints that there are
19125 # no rules to generate ltmain.sh.
19126 if test -f "$ltmain"; then
19127 # See if we are running on zsh, and set the options which allow our commands through
19128 # without removal of \ escapes.
19129 if test -n "${ZSH_VERSION+set}" ; then
19130 setopt NO_GLOB_SUBST
19131 fi
19132 # Now quote all the things that may contain metacharacters while being
19133 # careful not to overquote the AC_SUBSTed values. We take copies of the
19134 # variables and quote the copies for generation of the libtool script.
19135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19136 SED SHELL STRIP \
19137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19139 deplibs_check_method reload_flag reload_cmds need_locks \
19140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19141 lt_cv_sys_global_symbol_to_c_name_address \
19142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19143 old_postinstall_cmds old_postuninstall_cmds \
19144 compiler_GCJ \
19145 CC_GCJ \
19146 LD_GCJ \
19147 lt_prog_compiler_wl_GCJ \
19148 lt_prog_compiler_pic_GCJ \
19149 lt_prog_compiler_static_GCJ \
19150 lt_prog_compiler_no_builtin_flag_GCJ \
19151 export_dynamic_flag_spec_GCJ \
19152 thread_safe_flag_spec_GCJ \
19153 whole_archive_flag_spec_GCJ \
19154 enable_shared_with_static_runtimes_GCJ \
19155 old_archive_cmds_GCJ \
19156 old_archive_from_new_cmds_GCJ \
19157 predep_objects_GCJ \
19158 postdep_objects_GCJ \
19159 predeps_GCJ \
19160 postdeps_GCJ \
19161 compiler_lib_search_path_GCJ \
19162 compiler_lib_search_dirs_GCJ \
19163 archive_cmds_GCJ \
19164 archive_expsym_cmds_GCJ \
19165 postinstall_cmds_GCJ \
19166 postuninstall_cmds_GCJ \
19167 old_archive_from_expsyms_cmds_GCJ \
19168 allow_undefined_flag_GCJ \
19169 no_undefined_flag_GCJ \
19170 export_symbols_cmds_GCJ \
19171 hardcode_libdir_flag_spec_GCJ \
19172 hardcode_libdir_flag_spec_ld_GCJ \
19173 hardcode_libdir_separator_GCJ \
19174 hardcode_automatic_GCJ \
19175 module_cmds_GCJ \
19176 module_expsym_cmds_GCJ \
19177 lt_cv_prog_compiler_c_o_GCJ \
19178 fix_srcfile_path_GCJ \
19179 exclude_expsyms_GCJ \
19180 include_expsyms_GCJ; do
19181
19182 case $var in
19183 old_archive_cmds_GCJ | \
19184 old_archive_from_new_cmds_GCJ | \
19185 archive_cmds_GCJ | \
19186 archive_expsym_cmds_GCJ | \
19187 module_cmds_GCJ | \
19188 module_expsym_cmds_GCJ | \
19189 old_archive_from_expsyms_cmds_GCJ | \
19190 export_symbols_cmds_GCJ | \
19191 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19192 postinstall_cmds | postuninstall_cmds | \
19193 old_postinstall_cmds | old_postuninstall_cmds | \
19194 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19195 # Double-quote double-evaled strings.
19196 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19197 ;;
19198 *)
19199 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19200 ;;
19201 esac
19202 done
19203
19204 case $lt_echo in
19205 *'\$0 --fallback-echo"')
19206 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19207 ;;
19208 esac
19209
19210 cfgfile="$ofile"
19211
19212 cat <<__EOF__ >> "$cfgfile"
19213 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19214
19215 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19216
19217 # Shell to use when invoking shell scripts.
19218 SHELL=$lt_SHELL
19219
19220 # Whether or not to build shared libraries.
19221 build_libtool_libs=$enable_shared
19222
19223 # Whether or not to build static libraries.
19224 build_old_libs=$enable_static
19225
19226 # Whether or not to add -lc for building shared libraries.
19227 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19228
19229 # Whether or not to disallow shared libs when runtime libs are static
19230 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19231
19232 # Whether or not to optimize for fast installation.
19233 fast_install=$enable_fast_install
19234
19235 # The host system.
19236 host_alias=$host_alias
19237 host=$host
19238 host_os=$host_os
19239
19240 # The build system.
19241 build_alias=$build_alias
19242 build=$build
19243 build_os=$build_os
19244
19245 # An echo program that does not interpret backslashes.
19246 echo=$lt_echo
19247
19248 # The archiver.
19249 AR=$lt_AR
19250 AR_FLAGS=$lt_AR_FLAGS
19251
19252 # A C compiler.
19253 LTCC=$lt_LTCC
19254
19255 # LTCC compiler flags.
19256 LTCFLAGS=$lt_LTCFLAGS
19257
19258 # A language-specific compiler.
19259 CC=$lt_compiler_GCJ
19260
19261 # Is the compiler the GNU C compiler?
19262 with_gcc=$GCC_GCJ
19263
19264 # An ERE matcher.
19265 EGREP=$lt_EGREP
19266
19267 # The linker used to build libraries.
19268 LD=$lt_LD_GCJ
19269
19270 # Whether we need hard or soft links.
19271 LN_S=$lt_LN_S
19272
19273 # A BSD-compatible nm program.
19274 NM=$lt_NM
19275
19276 # A symbol stripping program
19277 STRIP=$lt_STRIP
19278
19279 # Used to examine libraries when file_magic_cmd begins "file"
19280 MAGIC_CMD=$MAGIC_CMD
19281
19282 # Used on cygwin: DLL creation program.
19283 DLLTOOL="$DLLTOOL"
19284
19285 # Used on cygwin: object dumper.
19286 OBJDUMP="$OBJDUMP"
19287
19288 # Used on cygwin: assembler.
19289 AS="$AS"
19290
19291 # The name of the directory that contains temporary libtool files.
19292 objdir=$objdir
19293
19294 # How to create reloadable object files.
19295 reload_flag=$lt_reload_flag
19296 reload_cmds=$lt_reload_cmds
19297
19298 # How to pass a linker flag through the compiler.
19299 wl=$lt_lt_prog_compiler_wl_GCJ
19300
19301 # Object file suffix (normally "o").
19302 objext="$ac_objext"
19303
19304 # Old archive suffix (normally "a").
19305 libext="$libext"
19306
19307 # Shared library suffix (normally ".so").
19308 shrext_cmds='$shrext_cmds'
19309
19310 # Executable file suffix (normally "").
19311 exeext="$exeext"
19312
19313 # Additional compiler flags for building library objects.
19314 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19315 pic_mode=$pic_mode
19316
19317 # What is the maximum length of a command?
19318 max_cmd_len=$lt_cv_sys_max_cmd_len
19319
19320 # Does compiler simultaneously support -c and -o options?
19321 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19322
19323 # Must we lock files when doing compilation?
19324 need_locks=$lt_need_locks
19325
19326 # Do we need the lib prefix for modules?
19327 need_lib_prefix=$need_lib_prefix
19328
19329 # Do we need a version for libraries?
19330 need_version=$need_version
19331
19332 # Whether dlopen is supported.
19333 dlopen_support=$enable_dlopen
19334
19335 # Whether dlopen of programs is supported.
19336 dlopen_self=$enable_dlopen_self
19337
19338 # Whether dlopen of statically linked programs is supported.
19339 dlopen_self_static=$enable_dlopen_self_static
19340
19341 # Compiler flag to prevent dynamic linking.
19342 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19343
19344 # Compiler flag to turn off builtin functions.
19345 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19346
19347 # Compiler flag to allow reflexive dlopens.
19348 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19349
19350 # Compiler flag to generate shared objects directly from archives.
19351 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19352
19353 # Compiler flag to generate thread-safe objects.
19354 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19355
19356 # Library versioning type.
19357 version_type=$version_type
19358
19359 # Format of library name prefix.
19360 libname_spec=$lt_libname_spec
19361
19362 # List of archive names. First name is the real one, the rest are links.
19363 # The last name is the one that the linker finds with -lNAME.
19364 library_names_spec=$lt_library_names_spec
19365
19366 # The coded name of the library, if different from the real name.
19367 soname_spec=$lt_soname_spec
19368
19369 # Commands used to build and install an old-style archive.
19370 RANLIB=$lt_RANLIB
19371 old_archive_cmds=$lt_old_archive_cmds_GCJ
19372 old_postinstall_cmds=$lt_old_postinstall_cmds
19373 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19374
19375 # Create an old-style archive from a shared archive.
19376 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19377
19378 # Create a temporary old-style archive to link instead of a shared archive.
19379 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19380
19381 # Commands used to build and install a shared archive.
19382 archive_cmds=$lt_archive_cmds_GCJ
19383 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19384 postinstall_cmds=$lt_postinstall_cmds
19385 postuninstall_cmds=$lt_postuninstall_cmds
19386
19387 # Commands used to build a loadable module (assumed same as above if empty)
19388 module_cmds=$lt_module_cmds_GCJ
19389 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19390
19391 # Commands to strip libraries.
19392 old_striplib=$lt_old_striplib
19393 striplib=$lt_striplib
19394
19395 # Dependencies to place before the objects being linked to create a
19396 # shared library.
19397 predep_objects=$lt_predep_objects_GCJ
19398
19399 # Dependencies to place after the objects being linked to create a
19400 # shared library.
19401 postdep_objects=$lt_postdep_objects_GCJ
19402
19403 # Dependencies to place before the objects being linked to create a
19404 # shared library.
19405 predeps=$lt_predeps_GCJ
19406
19407 # Dependencies to place after the objects being linked to create a
19408 # shared library.
19409 postdeps=$lt_postdeps_GCJ
19410
19411 # The directories searched by this compiler when creating a shared
19412 # library
19413 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19414
19415 # The library search path used internally by the compiler when linking
19416 # a shared library.
19417 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19418
19419 # Method to check whether dependent libraries are shared objects.
19420 deplibs_check_method=$lt_deplibs_check_method
19421
19422 # Command to use when deplibs_check_method == file_magic.
19423 file_magic_cmd=$lt_file_magic_cmd
19424
19425 # Flag that allows shared libraries with undefined symbols to be built.
19426 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19427
19428 # Flag that forces no undefined symbols.
19429 no_undefined_flag=$lt_no_undefined_flag_GCJ
19430
19431 # Commands used to finish a libtool library installation in a directory.
19432 finish_cmds=$lt_finish_cmds
19433
19434 # Same as above, but a single script fragment to be evaled but not shown.
19435 finish_eval=$lt_finish_eval
19436
19437 # Take the output of nm and produce a listing of raw symbols and C names.
19438 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19439
19440 # Transform the output of nm in a proper C declaration
19441 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19442
19443 # Transform the output of nm in a C name address pair
19444 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19445
19446 # This is the shared library runtime path variable.
19447 runpath_var=$runpath_var
19448
19449 # This is the shared library path variable.
19450 shlibpath_var=$shlibpath_var
19451
19452 # Is shlibpath searched before the hard-coded library search path?
19453 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19454
19455 # How to hardcode a shared library path into an executable.
19456 hardcode_action=$hardcode_action_GCJ
19457
19458 # Whether we should hardcode library paths into libraries.
19459 hardcode_into_libs=$hardcode_into_libs
19460
19461 # Flag to hardcode \$libdir into a binary during linking.
19462 # This must work even if \$libdir does not exist.
19463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19464
19465 # If ld is used when linking, flag to hardcode \$libdir into
19466 # a binary during linking. This must work even if \$libdir does
19467 # not exist.
19468 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19469
19470 # Whether we need a single -rpath flag with a separated argument.
19471 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19472
19473 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19474 # resulting binary.
19475 hardcode_direct=$hardcode_direct_GCJ
19476
19477 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19478 # resulting binary.
19479 hardcode_minus_L=$hardcode_minus_L_GCJ
19480
19481 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19482 # the resulting binary.
19483 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19484
19485 # Set to yes if building a shared library automatically hardcodes DIR into the library
19486 # and all subsequent libraries and executables linked against it.
19487 hardcode_automatic=$hardcode_automatic_GCJ
19488
19489 # Variables whose values should be saved in libtool wrapper scripts and
19490 # restored at relink time.
19491 variables_saved_for_relink="$variables_saved_for_relink"
19492
19493 # Whether libtool must link a program against all its dependency libraries.
19494 link_all_deplibs=$link_all_deplibs_GCJ
19495
19496 # Compile-time system search path for libraries
19497 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19498
19499 # Run-time system search path for libraries
19500 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19501
19502 # Fix the shell variable \$srcfile for the compiler.
19503 fix_srcfile_path=$lt_fix_srcfile_path
19504
19505 # Set to yes if exported symbols are required.
19506 always_export_symbols=$always_export_symbols_GCJ
19507
19508 # The commands to list exported symbols.
19509 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19510
19511 # The commands to extract the exported symbol list from a shared archive.
19512 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19513
19514 # Symbols that should not be listed in the preloaded symbols.
19515 exclude_expsyms=$lt_exclude_expsyms_GCJ
19516
19517 # Symbols that must always be exported.
19518 include_expsyms=$lt_include_expsyms_GCJ
19519
19520 # ### END LIBTOOL TAG CONFIG: $tagname
19521
19522 __EOF__
19523
19524
19525 else
19526 # If there is no Makefile yet, we rely on a make rule to execute
19527 # `config.status --recheck' to rerun these tests and create the
19528 # libtool script then.
19529 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19530 if test -f "$ltmain_in"; then
19531 test -f Makefile && make "$ltmain"
19532 fi
19533 fi
19534
19535
19536 ac_ext=c
19537 ac_cpp='$CPP $CPPFLAGS'
19538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19541
19542 CC="$lt_save_CC"
19543
19544 else
19545 tagname=""
19546 fi
19547 ;;
19548
19549 RC)
19550
19551
19552 # Source file extension for RC test sources.
19553 ac_ext=rc
19554
19555 # Object file extension for compiled RC test sources.
19556 objext=o
19557 objext_RC=$objext
19558
19559 # Code to be used in simple compile tests
19560 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19561
19562 # Code to be used in simple link tests
19563 lt_simple_link_test_code="$lt_simple_compile_test_code"
19564
19565 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19566
19567 # If no C compiler was specified, use CC.
19568 LTCC=${LTCC-"$CC"}
19569
19570 # If no C compiler flags were specified, use CFLAGS.
19571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19572
19573 # Allow CC to be a program name with arguments.
19574 compiler=$CC
19575
19576
19577 # save warnings/boilerplate of simple test code
19578 ac_outfile=conftest.$ac_objext
19579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19581 _lt_compiler_boilerplate=`cat conftest.err`
19582 $rm conftest*
19583
19584 ac_outfile=conftest.$ac_objext
19585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19587 _lt_linker_boilerplate=`cat conftest.err`
19588 $rm -r conftest*
19589
19590
19591 # Allow CC to be a program name with arguments.
19592 lt_save_CC="$CC"
19593 CC=${RC-"windres"}
19594 compiler=$CC
19595 compiler_RC=$CC
19596 for cc_temp in $compiler""; do
19597 case $cc_temp in
19598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19600 \-*) ;;
19601 *) break;;
19602 esac
19603 done
19604 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19605
19606 lt_cv_prog_compiler_c_o_RC=yes
19607
19608 # The else clause should only fire when bootstrapping the
19609 # libtool distribution, otherwise you forgot to ship ltmain.sh
19610 # with your package, and you will get complaints that there are
19611 # no rules to generate ltmain.sh.
19612 if test -f "$ltmain"; then
19613 # See if we are running on zsh, and set the options which allow our commands through
19614 # without removal of \ escapes.
19615 if test -n "${ZSH_VERSION+set}" ; then
19616 setopt NO_GLOB_SUBST
19617 fi
19618 # Now quote all the things that may contain metacharacters while being
19619 # careful not to overquote the AC_SUBSTed values. We take copies of the
19620 # variables and quote the copies for generation of the libtool script.
19621 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19622 SED SHELL STRIP \
19623 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19624 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19625 deplibs_check_method reload_flag reload_cmds need_locks \
19626 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19627 lt_cv_sys_global_symbol_to_c_name_address \
19628 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19629 old_postinstall_cmds old_postuninstall_cmds \
19630 compiler_RC \
19631 CC_RC \
19632 LD_RC \
19633 lt_prog_compiler_wl_RC \
19634 lt_prog_compiler_pic_RC \
19635 lt_prog_compiler_static_RC \
19636 lt_prog_compiler_no_builtin_flag_RC \
19637 export_dynamic_flag_spec_RC \
19638 thread_safe_flag_spec_RC \
19639 whole_archive_flag_spec_RC \
19640 enable_shared_with_static_runtimes_RC \
19641 old_archive_cmds_RC \
19642 old_archive_from_new_cmds_RC \
19643 predep_objects_RC \
19644 postdep_objects_RC \
19645 predeps_RC \
19646 postdeps_RC \
19647 compiler_lib_search_path_RC \
19648 compiler_lib_search_dirs_RC \
19649 archive_cmds_RC \
19650 archive_expsym_cmds_RC \
19651 postinstall_cmds_RC \
19652 postuninstall_cmds_RC \
19653 old_archive_from_expsyms_cmds_RC \
19654 allow_undefined_flag_RC \
19655 no_undefined_flag_RC \
19656 export_symbols_cmds_RC \
19657 hardcode_libdir_flag_spec_RC \
19658 hardcode_libdir_flag_spec_ld_RC \
19659 hardcode_libdir_separator_RC \
19660 hardcode_automatic_RC \
19661 module_cmds_RC \
19662 module_expsym_cmds_RC \
19663 lt_cv_prog_compiler_c_o_RC \
19664 fix_srcfile_path_RC \
19665 exclude_expsyms_RC \
19666 include_expsyms_RC; do
19667
19668 case $var in
19669 old_archive_cmds_RC | \
19670 old_archive_from_new_cmds_RC | \
19671 archive_cmds_RC | \
19672 archive_expsym_cmds_RC | \
19673 module_cmds_RC | \
19674 module_expsym_cmds_RC | \
19675 old_archive_from_expsyms_cmds_RC | \
19676 export_symbols_cmds_RC | \
19677 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19678 postinstall_cmds | postuninstall_cmds | \
19679 old_postinstall_cmds | old_postuninstall_cmds | \
19680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19681 # Double-quote double-evaled strings.
19682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19683 ;;
19684 *)
19685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19686 ;;
19687 esac
19688 done
19689
19690 case $lt_echo in
19691 *'\$0 --fallback-echo"')
19692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19693 ;;
19694 esac
19695
19696 cfgfile="$ofile"
19697
19698 cat <<__EOF__ >> "$cfgfile"
19699 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19700
19701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19702
19703 # Shell to use when invoking shell scripts.
19704 SHELL=$lt_SHELL
19705
19706 # Whether or not to build shared libraries.
19707 build_libtool_libs=$enable_shared
19708
19709 # Whether or not to build static libraries.
19710 build_old_libs=$enable_static
19711
19712 # Whether or not to add -lc for building shared libraries.
19713 build_libtool_need_lc=$archive_cmds_need_lc_RC
19714
19715 # Whether or not to disallow shared libs when runtime libs are static
19716 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19717
19718 # Whether or not to optimize for fast installation.
19719 fast_install=$enable_fast_install
19720
19721 # The host system.
19722 host_alias=$host_alias
19723 host=$host
19724 host_os=$host_os
19725
19726 # The build system.
19727 build_alias=$build_alias
19728 build=$build
19729 build_os=$build_os
19730
19731 # An echo program that does not interpret backslashes.
19732 echo=$lt_echo
19733
19734 # The archiver.
19735 AR=$lt_AR
19736 AR_FLAGS=$lt_AR_FLAGS
19737
19738 # A C compiler.
19739 LTCC=$lt_LTCC
19740
19741 # LTCC compiler flags.
19742 LTCFLAGS=$lt_LTCFLAGS
19743
19744 # A language-specific compiler.
19745 CC=$lt_compiler_RC
19746
19747 # Is the compiler the GNU C compiler?
19748 with_gcc=$GCC_RC
19749
19750 # An ERE matcher.
19751 EGREP=$lt_EGREP
19752
19753 # The linker used to build libraries.
19754 LD=$lt_LD_RC
19755
19756 # Whether we need hard or soft links.
19757 LN_S=$lt_LN_S
19758
19759 # A BSD-compatible nm program.
19760 NM=$lt_NM
19761
19762 # A symbol stripping program
19763 STRIP=$lt_STRIP
19764
19765 # Used to examine libraries when file_magic_cmd begins "file"
19766 MAGIC_CMD=$MAGIC_CMD
19767
19768 # Used on cygwin: DLL creation program.
19769 DLLTOOL="$DLLTOOL"
19770
19771 # Used on cygwin: object dumper.
19772 OBJDUMP="$OBJDUMP"
19773
19774 # Used on cygwin: assembler.
19775 AS="$AS"
19776
19777 # The name of the directory that contains temporary libtool files.
19778 objdir=$objdir
19779
19780 # How to create reloadable object files.
19781 reload_flag=$lt_reload_flag
19782 reload_cmds=$lt_reload_cmds
19783
19784 # How to pass a linker flag through the compiler.
19785 wl=$lt_lt_prog_compiler_wl_RC
19786
19787 # Object file suffix (normally "o").
19788 objext="$ac_objext"
19789
19790 # Old archive suffix (normally "a").
19791 libext="$libext"
19792
19793 # Shared library suffix (normally ".so").
19794 shrext_cmds='$shrext_cmds'
19795
19796 # Executable file suffix (normally "").
19797 exeext="$exeext"
19798
19799 # Additional compiler flags for building library objects.
19800 pic_flag=$lt_lt_prog_compiler_pic_RC
19801 pic_mode=$pic_mode
19802
19803 # What is the maximum length of a command?
19804 max_cmd_len=$lt_cv_sys_max_cmd_len
19805
19806 # Does compiler simultaneously support -c and -o options?
19807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19808
19809 # Must we lock files when doing compilation?
19810 need_locks=$lt_need_locks
19811
19812 # Do we need the lib prefix for modules?
19813 need_lib_prefix=$need_lib_prefix
19814
19815 # Do we need a version for libraries?
19816 need_version=$need_version
19817
19818 # Whether dlopen is supported.
19819 dlopen_support=$enable_dlopen
19820
19821 # Whether dlopen of programs is supported.
19822 dlopen_self=$enable_dlopen_self
19823
19824 # Whether dlopen of statically linked programs is supported.
19825 dlopen_self_static=$enable_dlopen_self_static
19826
19827 # Compiler flag to prevent dynamic linking.
19828 link_static_flag=$lt_lt_prog_compiler_static_RC
19829
19830 # Compiler flag to turn off builtin functions.
19831 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19832
19833 # Compiler flag to allow reflexive dlopens.
19834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19835
19836 # Compiler flag to generate shared objects directly from archives.
19837 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19838
19839 # Compiler flag to generate thread-safe objects.
19840 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19841
19842 # Library versioning type.
19843 version_type=$version_type
19844
19845 # Format of library name prefix.
19846 libname_spec=$lt_libname_spec
19847
19848 # List of archive names. First name is the real one, the rest are links.
19849 # The last name is the one that the linker finds with -lNAME.
19850 library_names_spec=$lt_library_names_spec
19851
19852 # The coded name of the library, if different from the real name.
19853 soname_spec=$lt_soname_spec
19854
19855 # Commands used to build and install an old-style archive.
19856 RANLIB=$lt_RANLIB
19857 old_archive_cmds=$lt_old_archive_cmds_RC
19858 old_postinstall_cmds=$lt_old_postinstall_cmds
19859 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19860
19861 # Create an old-style archive from a shared archive.
19862 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19863
19864 # Create a temporary old-style archive to link instead of a shared archive.
19865 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19866
19867 # Commands used to build and install a shared archive.
19868 archive_cmds=$lt_archive_cmds_RC
19869 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19870 postinstall_cmds=$lt_postinstall_cmds
19871 postuninstall_cmds=$lt_postuninstall_cmds
19872
19873 # Commands used to build a loadable module (assumed same as above if empty)
19874 module_cmds=$lt_module_cmds_RC
19875 module_expsym_cmds=$lt_module_expsym_cmds_RC
19876
19877 # Commands to strip libraries.
19878 old_striplib=$lt_old_striplib
19879 striplib=$lt_striplib
19880
19881 # Dependencies to place before the objects being linked to create a
19882 # shared library.
19883 predep_objects=$lt_predep_objects_RC
19884
19885 # Dependencies to place after the objects being linked to create a
19886 # shared library.
19887 postdep_objects=$lt_postdep_objects_RC
19888
19889 # Dependencies to place before the objects being linked to create a
19890 # shared library.
19891 predeps=$lt_predeps_RC
19892
19893 # Dependencies to place after the objects being linked to create a
19894 # shared library.
19895 postdeps=$lt_postdeps_RC
19896
19897 # The directories searched by this compiler when creating a shared
19898 # library
19899 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19900
19901 # The library search path used internally by the compiler when linking
19902 # a shared library.
19903 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19904
19905 # Method to check whether dependent libraries are shared objects.
19906 deplibs_check_method=$lt_deplibs_check_method
19907
19908 # Command to use when deplibs_check_method == file_magic.
19909 file_magic_cmd=$lt_file_magic_cmd
19910
19911 # Flag that allows shared libraries with undefined symbols to be built.
19912 allow_undefined_flag=$lt_allow_undefined_flag_RC
19913
19914 # Flag that forces no undefined symbols.
19915 no_undefined_flag=$lt_no_undefined_flag_RC
19916
19917 # Commands used to finish a libtool library installation in a directory.
19918 finish_cmds=$lt_finish_cmds
19919
19920 # Same as above, but a single script fragment to be evaled but not shown.
19921 finish_eval=$lt_finish_eval
19922
19923 # Take the output of nm and produce a listing of raw symbols and C names.
19924 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19925
19926 # Transform the output of nm in a proper C declaration
19927 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19928
19929 # Transform the output of nm in a C name address pair
19930 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19931
19932 # This is the shared library runtime path variable.
19933 runpath_var=$runpath_var
19934
19935 # This is the shared library path variable.
19936 shlibpath_var=$shlibpath_var
19937
19938 # Is shlibpath searched before the hard-coded library search path?
19939 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19940
19941 # How to hardcode a shared library path into an executable.
19942 hardcode_action=$hardcode_action_RC
19943
19944 # Whether we should hardcode library paths into libraries.
19945 hardcode_into_libs=$hardcode_into_libs
19946
19947 # Flag to hardcode \$libdir into a binary during linking.
19948 # This must work even if \$libdir does not exist.
19949 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19950
19951 # If ld is used when linking, flag to hardcode \$libdir into
19952 # a binary during linking. This must work even if \$libdir does
19953 # not exist.
19954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19955
19956 # Whether we need a single -rpath flag with a separated argument.
19957 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19958
19959 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19960 # resulting binary.
19961 hardcode_direct=$hardcode_direct_RC
19962
19963 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19964 # resulting binary.
19965 hardcode_minus_L=$hardcode_minus_L_RC
19966
19967 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19968 # the resulting binary.
19969 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19970
19971 # Set to yes if building a shared library automatically hardcodes DIR into the library
19972 # and all subsequent libraries and executables linked against it.
19973 hardcode_automatic=$hardcode_automatic_RC
19974
19975 # Variables whose values should be saved in libtool wrapper scripts and
19976 # restored at relink time.
19977 variables_saved_for_relink="$variables_saved_for_relink"
19978
19979 # Whether libtool must link a program against all its dependency libraries.
19980 link_all_deplibs=$link_all_deplibs_RC
19981
19982 # Compile-time system search path for libraries
19983 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19984
19985 # Run-time system search path for libraries
19986 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19987
19988 # Fix the shell variable \$srcfile for the compiler.
19989 fix_srcfile_path=$lt_fix_srcfile_path
19990
19991 # Set to yes if exported symbols are required.
19992 always_export_symbols=$always_export_symbols_RC
19993
19994 # The commands to list exported symbols.
19995 export_symbols_cmds=$lt_export_symbols_cmds_RC
19996
19997 # The commands to extract the exported symbol list from a shared archive.
19998 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19999
20000 # Symbols that should not be listed in the preloaded symbols.
20001 exclude_expsyms=$lt_exclude_expsyms_RC
20002
20003 # Symbols that must always be exported.
20004 include_expsyms=$lt_include_expsyms_RC
20005
20006 # ### END LIBTOOL TAG CONFIG: $tagname
20007
20008 __EOF__
20009
20010
20011 else
20012 # If there is no Makefile yet, we rely on a make rule to execute
20013 # `config.status --recheck' to rerun these tests and create the
20014 # libtool script then.
20015 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20016 if test -f "$ltmain_in"; then
20017 test -f Makefile && make "$ltmain"
20018 fi
20019 fi
20020
20021
20022 ac_ext=c
20023 ac_cpp='$CPP $CPPFLAGS'
20024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20027
20028 CC="$lt_save_CC"
20029
20030 ;;
20031
20032 *)
20033 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20034 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20035 { (exit 1); exit 1; }; }
20036 ;;
20037 esac
20038
20039 # Append the new tag name to the list of available tags.
20040 if test -n "$tagname" ; then
20041 available_tags="$available_tags $tagname"
20042 fi
20043 fi
20044 done
20045 IFS="$lt_save_ifs"
20046
20047 # Now substitute the updated list of available tags.
20048 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20049 mv "${ofile}T" "$ofile"
20050 chmod +x "$ofile"
20051 else
20052 rm -f "${ofile}T"
20053 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20054 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20055 { (exit 1); exit 1; }; }
20056 fi
20057 fi
20058
20059
20060
20061 # This can be used to rebuild libtool when needed
20062 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20063
20064 # Always use our own libtool.
20065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20066
20067 # Prevent multiple expansion
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088 ac_ext=c
20089 ac_cpp='$CPP $CPPFLAGS'
20090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20093 if test -n "$ac_tool_prefix"; then
20094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20097 $as_echo_n "checking for $ac_word... " >&6; }
20098 if test "${ac_cv_prog_CC+set}" = set; then
20099 $as_echo_n "(cached) " >&6
20100 else
20101 if test -n "$CC"; then
20102 ac_cv_prog_CC="$CC" # Let the user override the test.
20103 else
20104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105 for as_dir in $PATH
20106 do
20107 IFS=$as_save_IFS
20108 test -z "$as_dir" && as_dir=.
20109 for ac_exec_ext in '' $ac_executable_extensions; do
20110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20113 break 2
20114 fi
20115 done
20116 done
20117 IFS=$as_save_IFS
20118
20119 fi
20120 fi
20121 CC=$ac_cv_prog_CC
20122 if test -n "$CC"; then
20123 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20124 $as_echo "$CC" >&6; }
20125 else
20126 { $as_echo "$as_me:$LINENO: result: no" >&5
20127 $as_echo "no" >&6; }
20128 fi
20129
20130
20131 fi
20132 if test -z "$ac_cv_prog_CC"; then
20133 ac_ct_CC=$CC
20134 # Extract the first word of "gcc", so it can be a program name with args.
20135 set dummy gcc; ac_word=$2
20136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20137 $as_echo_n "checking for $ac_word... " >&6; }
20138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20139 $as_echo_n "(cached) " >&6
20140 else
20141 if test -n "$ac_ct_CC"; then
20142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20143 else
20144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20145 for as_dir in $PATH
20146 do
20147 IFS=$as_save_IFS
20148 test -z "$as_dir" && as_dir=.
20149 for ac_exec_ext in '' $ac_executable_extensions; do
20150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20151 ac_cv_prog_ac_ct_CC="gcc"
20152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20153 break 2
20154 fi
20155 done
20156 done
20157 IFS=$as_save_IFS
20158
20159 fi
20160 fi
20161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20162 if test -n "$ac_ct_CC"; then
20163 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20164 $as_echo "$ac_ct_CC" >&6; }
20165 else
20166 { $as_echo "$as_me:$LINENO: result: no" >&5
20167 $as_echo "no" >&6; }
20168 fi
20169
20170 if test "x$ac_ct_CC" = x; then
20171 CC=""
20172 else
20173 case $cross_compiling:$ac_tool_warned in
20174 yes:)
20175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20177 ac_tool_warned=yes ;;
20178 esac
20179 CC=$ac_ct_CC
20180 fi
20181 else
20182 CC="$ac_cv_prog_CC"
20183 fi
20184
20185 if test -z "$CC"; then
20186 if test -n "$ac_tool_prefix"; then
20187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20188 set dummy ${ac_tool_prefix}cc; ac_word=$2
20189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20190 $as_echo_n "checking for $ac_word... " >&6; }
20191 if test "${ac_cv_prog_CC+set}" = set; then
20192 $as_echo_n "(cached) " >&6
20193 else
20194 if test -n "$CC"; then
20195 ac_cv_prog_CC="$CC" # Let the user override the test.
20196 else
20197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20198 for as_dir in $PATH
20199 do
20200 IFS=$as_save_IFS
20201 test -z "$as_dir" && as_dir=.
20202 for ac_exec_ext in '' $ac_executable_extensions; do
20203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20204 ac_cv_prog_CC="${ac_tool_prefix}cc"
20205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20206 break 2
20207 fi
20208 done
20209 done
20210 IFS=$as_save_IFS
20211
20212 fi
20213 fi
20214 CC=$ac_cv_prog_CC
20215 if test -n "$CC"; then
20216 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20217 $as_echo "$CC" >&6; }
20218 else
20219 { $as_echo "$as_me:$LINENO: result: no" >&5
20220 $as_echo "no" >&6; }
20221 fi
20222
20223
20224 fi
20225 fi
20226 if test -z "$CC"; then
20227 # Extract the first word of "cc", so it can be a program name with args.
20228 set dummy cc; ac_word=$2
20229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20230 $as_echo_n "checking for $ac_word... " >&6; }
20231 if test "${ac_cv_prog_CC+set}" = set; then
20232 $as_echo_n "(cached) " >&6
20233 else
20234 if test -n "$CC"; then
20235 ac_cv_prog_CC="$CC" # Let the user override the test.
20236 else
20237 ac_prog_rejected=no
20238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20239 for as_dir in $PATH
20240 do
20241 IFS=$as_save_IFS
20242 test -z "$as_dir" && as_dir=.
20243 for ac_exec_ext in '' $ac_executable_extensions; do
20244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20246 ac_prog_rejected=yes
20247 continue
20248 fi
20249 ac_cv_prog_CC="cc"
20250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20251 break 2
20252 fi
20253 done
20254 done
20255 IFS=$as_save_IFS
20256
20257 if test $ac_prog_rejected = yes; then
20258 # We found a bogon in the path, so make sure we never use it.
20259 set dummy $ac_cv_prog_CC
20260 shift
20261 if test $# != 0; then
20262 # We chose a different compiler from the bogus one.
20263 # However, it has the same basename, so the bogon will be chosen
20264 # first if we set CC to just the basename; use the full file name.
20265 shift
20266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20267 fi
20268 fi
20269 fi
20270 fi
20271 CC=$ac_cv_prog_CC
20272 if test -n "$CC"; then
20273 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20274 $as_echo "$CC" >&6; }
20275 else
20276 { $as_echo "$as_me:$LINENO: result: no" >&5
20277 $as_echo "no" >&6; }
20278 fi
20279
20280
20281 fi
20282 if test -z "$CC"; then
20283 if test -n "$ac_tool_prefix"; then
20284 for ac_prog in cl.exe
20285 do
20286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20289 $as_echo_n "checking for $ac_word... " >&6; }
20290 if test "${ac_cv_prog_CC+set}" = set; then
20291 $as_echo_n "(cached) " >&6
20292 else
20293 if test -n "$CC"; then
20294 ac_cv_prog_CC="$CC" # Let the user override the test.
20295 else
20296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297 for as_dir in $PATH
20298 do
20299 IFS=$as_save_IFS
20300 test -z "$as_dir" && as_dir=.
20301 for ac_exec_ext in '' $ac_executable_extensions; do
20302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20305 break 2
20306 fi
20307 done
20308 done
20309 IFS=$as_save_IFS
20310
20311 fi
20312 fi
20313 CC=$ac_cv_prog_CC
20314 if test -n "$CC"; then
20315 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20316 $as_echo "$CC" >&6; }
20317 else
20318 { $as_echo "$as_me:$LINENO: result: no" >&5
20319 $as_echo "no" >&6; }
20320 fi
20321
20322
20323 test -n "$CC" && break
20324 done
20325 fi
20326 if test -z "$CC"; then
20327 ac_ct_CC=$CC
20328 for ac_prog in cl.exe
20329 do
20330 # Extract the first word of "$ac_prog", so it can be a program name with args.
20331 set dummy $ac_prog; ac_word=$2
20332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20333 $as_echo_n "checking for $ac_word... " >&6; }
20334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20335 $as_echo_n "(cached) " >&6
20336 else
20337 if test -n "$ac_ct_CC"; then
20338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20339 else
20340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20341 for as_dir in $PATH
20342 do
20343 IFS=$as_save_IFS
20344 test -z "$as_dir" && as_dir=.
20345 for ac_exec_ext in '' $ac_executable_extensions; do
20346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20347 ac_cv_prog_ac_ct_CC="$ac_prog"
20348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20349 break 2
20350 fi
20351 done
20352 done
20353 IFS=$as_save_IFS
20354
20355 fi
20356 fi
20357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20358 if test -n "$ac_ct_CC"; then
20359 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20360 $as_echo "$ac_ct_CC" >&6; }
20361 else
20362 { $as_echo "$as_me:$LINENO: result: no" >&5
20363 $as_echo "no" >&6; }
20364 fi
20365
20366
20367 test -n "$ac_ct_CC" && break
20368 done
20369
20370 if test "x$ac_ct_CC" = x; then
20371 CC=""
20372 else
20373 case $cross_compiling:$ac_tool_warned in
20374 yes:)
20375 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20377 ac_tool_warned=yes ;;
20378 esac
20379 CC=$ac_ct_CC
20380 fi
20381 fi
20382
20383 fi
20384
20385
20386 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20388 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20389 See \`config.log' for more details." >&5
20390 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20391 See \`config.log' for more details." >&2;}
20392 { (exit 1); exit 1; }; }; }
20393
20394 # Provide some information about the compiler.
20395 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20396 set X $ac_compile
20397 ac_compiler=$2
20398 { (ac_try="$ac_compiler --version >&5"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20402 esac
20403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20404 $as_echo "$ac_try_echo") >&5
20405 (eval "$ac_compiler --version >&5") 2>&5
20406 ac_status=$?
20407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }
20409 { (ac_try="$ac_compiler -v >&5"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413 esac
20414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20415 $as_echo "$ac_try_echo") >&5
20416 (eval "$ac_compiler -v >&5") 2>&5
20417 ac_status=$?
20418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }
20420 { (ac_try="$ac_compiler -V >&5"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424 esac
20425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20426 $as_echo "$ac_try_echo") >&5
20427 (eval "$ac_compiler -V >&5") 2>&5
20428 ac_status=$?
20429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }
20431
20432 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20433 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20434 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20435 $as_echo_n "(cached) " >&6
20436 else
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h. */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443
20444 int
20445 main ()
20446 {
20447 #ifndef __GNUC__
20448 choke me
20449 #endif
20450
20451 ;
20452 return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest.$ac_objext
20456 if { (ac_try="$ac_compile"
20457 case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460 esac
20461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20462 $as_echo "$ac_try_echo") >&5
20463 (eval "$ac_compile") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest.$ac_objext; then
20473 ac_compiler_gnu=yes
20474 else
20475 $as_echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 ac_compiler_gnu=no
20479 fi
20480
20481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20483
20484 fi
20485 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20486 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20487 if test $ac_compiler_gnu = yes; then
20488 GCC=yes
20489 else
20490 GCC=
20491 fi
20492 ac_test_CFLAGS=${CFLAGS+set}
20493 ac_save_CFLAGS=$CFLAGS
20494 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20495 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20496 if test "${ac_cv_prog_cc_g+set}" = set; then
20497 $as_echo_n "(cached) " >&6
20498 else
20499 ac_save_c_werror_flag=$ac_c_werror_flag
20500 ac_c_werror_flag=yes
20501 ac_cv_prog_cc_g=no
20502 CFLAGS="-g"
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h. */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509
20510 int
20511 main ()
20512 {
20513
20514 ;
20515 return 0;
20516 }
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523 esac
20524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20525 $as_echo "$ac_try_echo") >&5
20526 (eval "$ac_compile") 2>conftest.er1
20527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest.$ac_objext; then
20536 ac_cv_prog_cc_g=yes
20537 else
20538 $as_echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541 CFLAGS=""
20542 cat >conftest.$ac_ext <<_ACEOF
20543 /* confdefs.h. */
20544 _ACEOF
20545 cat confdefs.h >>conftest.$ac_ext
20546 cat >>conftest.$ac_ext <<_ACEOF
20547 /* end confdefs.h. */
20548
20549 int
20550 main ()
20551 {
20552
20553 ;
20554 return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20564 $as_echo "$ac_try_echo") >&5
20565 (eval "$ac_compile") 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } && {
20572 test -z "$ac_c_werror_flag" ||
20573 test ! -s conftest.err
20574 } && test -s conftest.$ac_objext; then
20575 :
20576 else
20577 $as_echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ac_c_werror_flag=$ac_save_c_werror_flag
20581 CFLAGS="-g"
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588
20589 int
20590 main ()
20591 {
20592
20593 ;
20594 return 0;
20595 }
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20602 esac
20603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20604 $as_echo "$ac_try_echo") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest.$ac_objext; then
20615 ac_cv_prog_cc_g=yes
20616 else
20617 $as_echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620
20621 fi
20622
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 fi
20628
20629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 ac_c_werror_flag=$ac_save_c_werror_flag
20631 fi
20632 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20633 $as_echo "$ac_cv_prog_cc_g" >&6; }
20634 if test "$ac_test_CFLAGS" = set; then
20635 CFLAGS=$ac_save_CFLAGS
20636 elif test $ac_cv_prog_cc_g = yes; then
20637 if test "$GCC" = yes; then
20638 CFLAGS="-g -O2"
20639 else
20640 CFLAGS="-g"
20641 fi
20642 else
20643 if test "$GCC" = yes; then
20644 CFLAGS="-O2"
20645 else
20646 CFLAGS=
20647 fi
20648 fi
20649 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20651 if test "${ac_cv_prog_cc_c89+set}" = set; then
20652 $as_echo_n "(cached) " >&6
20653 else
20654 ac_cv_prog_cc_c89=no
20655 ac_save_CC=$CC
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 #include <stdarg.h>
20663 #include <stdio.h>
20664 #include <sys/types.h>
20665 #include <sys/stat.h>
20666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20667 struct buf { int x; };
20668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20669 static char *e (p, i)
20670 char **p;
20671 int i;
20672 {
20673 return p[i];
20674 }
20675 static char *f (char * (*g) (char **, int), char **p, ...)
20676 {
20677 char *s;
20678 va_list v;
20679 va_start (v,p);
20680 s = g (p, va_arg (v,int));
20681 va_end (v);
20682 return s;
20683 }
20684
20685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20686 function prototypes and stuff, but not '\xHH' hex character constants.
20687 These don't provoke an error unfortunately, instead are silently treated
20688 as 'x'. The following induces an error, until -std is added to get
20689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20690 array size at least. It's necessary to write '\x00'==0 to get something
20691 that's true only with -std. */
20692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20693
20694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20695 inside strings and character constants. */
20696 #define FOO(x) 'x'
20697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20698
20699 int test (int i, double x);
20700 struct s1 {int (*f) (int a);};
20701 struct s2 {int (*f) (double a);};
20702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20703 int argc;
20704 char **argv;
20705 int
20706 main ()
20707 {
20708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20709 ;
20710 return 0;
20711 }
20712 _ACEOF
20713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20715 do
20716 CC="$ac_save_CC $ac_arg"
20717 rm -f conftest.$ac_objext
20718 if { (ac_try="$ac_compile"
20719 case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722 esac
20723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20724 $as_echo "$ac_try_echo") >&5
20725 (eval "$ac_compile") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest.$ac_objext; then
20735 ac_cv_prog_cc_c89=$ac_arg
20736 else
20737 $as_echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20739
20740
20741 fi
20742
20743 rm -f core conftest.err conftest.$ac_objext
20744 test "x$ac_cv_prog_cc_c89" != "xno" && break
20745 done
20746 rm -f conftest.$ac_ext
20747 CC=$ac_save_CC
20748
20749 fi
20750 # AC_CACHE_VAL
20751 case "x$ac_cv_prog_cc_c89" in
20752 x)
20753 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20754 $as_echo "none needed" >&6; } ;;
20755 xno)
20756 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20757 $as_echo "unsupported" >&6; } ;;
20758 *)
20759 CC="$CC $ac_cv_prog_cc_c89"
20760 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20762 esac
20763
20764
20765 ac_ext=c
20766 ac_cpp='$CPP $CPPFLAGS'
20767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20770
20771 depcc="$CC" am_compiler_list=
20772
20773 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20774 $as_echo_n "checking dependency style of $depcc... " >&6; }
20775 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20776 $as_echo_n "(cached) " >&6
20777 else
20778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20779 # We make a subdir and do the tests there. Otherwise we can end up
20780 # making bogus files that we don't know about and never remove. For
20781 # instance it was reported that on HP-UX the gcc test will end up
20782 # making a dummy file named `D' -- because `-MD' means `put the output
20783 # in D'.
20784 mkdir conftest.dir
20785 # Copy depcomp to subdir because otherwise we won't find it if we're
20786 # using a relative directory.
20787 cp "$am_depcomp" conftest.dir
20788 cd conftest.dir
20789 # We will build objects and dependencies in a subdirectory because
20790 # it helps to detect inapplicable dependency modes. For instance
20791 # both Tru64's cc and ICC support -MD to output dependencies as a
20792 # side effect of compilation, but ICC will put the dependencies in
20793 # the current directory while Tru64 will put them in the object
20794 # directory.
20795 mkdir sub
20796
20797 am_cv_CC_dependencies_compiler_type=none
20798 if test "$am_compiler_list" = ""; then
20799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20800 fi
20801 for depmode in $am_compiler_list; do
20802 # Setup a source with many dependencies, because some compilers
20803 # like to wrap large dependency lists on column 80 (with \), and
20804 # we should not choose a depcomp mode which is confused by this.
20805 #
20806 # We need to recreate these files for each test, as the compiler may
20807 # overwrite some of them when testing with obscure command lines.
20808 # This happens at least with the AIX C compiler.
20809 : > sub/conftest.c
20810 for i in 1 2 3 4 5 6; do
20811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20813 # Solaris 8's {/usr,}/bin/sh.
20814 touch sub/conftst$i.h
20815 done
20816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20817
20818 case $depmode in
20819 nosideeffect)
20820 # after this tag, mechanisms are not by side-effect, so they'll
20821 # only be used when explicitly requested
20822 if test "x$enable_dependency_tracking" = xyes; then
20823 continue
20824 else
20825 break
20826 fi
20827 ;;
20828 none) break ;;
20829 esac
20830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20831 # mode. It turns out that the SunPro C++ compiler does not properly
20832 # handle `-M -o', and we need to detect this.
20833 if depmode=$depmode \
20834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20837 >/dev/null 2>conftest.err &&
20838 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20839 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20840 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20841 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20842 # icc doesn't choke on unknown options, it will just issue warnings
20843 # or remarks (even with -Werror). So we grep stderr for any message
20844 # that says an option was ignored or not supported.
20845 # When given -MP, icc 7.0 and 7.1 complain thusly:
20846 # icc: Command line warning: ignoring option '-M'; no argument required
20847 # The diagnosis changed in icc 8.0:
20848 # icc: Command line remark: option '-MP' not supported
20849 if (grep 'ignoring option' conftest.err ||
20850 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20851 am_cv_CC_dependencies_compiler_type=$depmode
20852 break
20853 fi
20854 fi
20855 done
20856
20857 cd ..
20858 rm -rf conftest.dir
20859 else
20860 am_cv_CC_dependencies_compiler_type=none
20861 fi
20862
20863 fi
20864 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20865 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20866 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20867
20868 if
20869 test "x$enable_dependency_tracking" != xno \
20870 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20871 am__fastdepCC_TRUE=
20872 am__fastdepCC_FALSE='#'
20873 else
20874 am__fastdepCC_TRUE='#'
20875 am__fastdepCC_FALSE=
20876 fi
20877
20878
20879
20880
20881
20882
20883 case $host_os in
20884 linux*)
20885 IS_LINUX="yes"
20886 # check whether struct kbd_repeat has the 'period' field.
20887 # on kernels < 2.5.42 it's called 'rate' instead.
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h. */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894
20895 #include <linux/kd.h>
20896 #ifdef __sparc__
20897 #include <asm/param.h>
20898 #include <asm/kbio.h>
20899 #endif
20900
20901 int
20902 main ()
20903 {
20904
20905 int main () {
20906 struct kbd_repeat k;
20907 k.period = 0;
20908 return 0;
20909 }
20910 ;
20911 return 0;
20912 }
20913 _ACEOF
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919 esac
20920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20921 $as_echo "$ac_try_echo") >&5
20922 (eval "$ac_compile") 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest.$ac_objext; then
20932 period_field="period"
20933 else
20934 $as_echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937 period_field="rate"
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941
20942 cat >>confdefs.h <<_ACEOF
20943 #define LNX_KBD_PERIOD_NAME $period_field
20944 _ACEOF
20945
20946 ;;
20947
20948 freebsd* | kfreebsd-gnu* | netbsd* | openbsd*)
20949 IS_BSD="yes"
20950 ;;
20951
20952 solaris*)
20953 IS_SOLARIS="yes"
20954 ;;
20955
20956 gnu*)
20957 IS_HURD="yes"
20958 ;;
20959
20960 *)
20961 { { $as_echo "$as_me:$LINENO: error: Your operating system is not supported by the kbd driver.
20962 Contact xorg (at] lists.freedesktop.org if you are interested in
20963 porting it." >&5
20964 $as_echo "$as_me: error: Your operating system is not supported by the kbd driver.
20965 Contact xorg (at] lists.freedesktop.org if you are interested in
20966 porting it." >&2;}
20967 { (exit 1); exit 1; }; }
20968 ;;
20969 esac
20970 if test "x$IS_LINUX" = xyes; then
20971 LINUX_TRUE=
20972 LINUX_FALSE='#'
20973 else
20974 LINUX_TRUE='#'
20975 LINUX_FALSE=
20976 fi
20977
20978 if test "x$IS_BSD" = xyes; then
20979 BSD_TRUE=
20980 BSD_FALSE='#'
20981 else
20982 BSD_TRUE='#'
20983 BSD_FALSE=
20984 fi
20985
20986 if test "x$IS_SOLARIS" = xyes; then
20987 SOLARIS_TRUE=
20988 SOLARIS_FALSE='#'
20989 else
20990 SOLARIS_TRUE='#'
20991 SOLARIS_FALSE=
20992 fi
20993
20994 if test "x$IS_HURD" = xyes; then
20995 HURD_TRUE=
20996 HURD_FALSE='#'
20997 else
20998 HURD_TRUE='#'
20999 HURD_FALSE=
21000 fi
21001
21002 if test "x$IS_SCO" = xyes; then
21003 SCO_TRUE=
21004 SCO_FALSE='#'
21005 else
21006 SCO_TRUE='#'
21007 SCO_FALSE=
21008 fi
21009
21010
21011
21012 # Check whether --with-xorg-module-dir was given.
21013 if test "${with_xorg_module_dir+set}" = set; then
21014 withval=$with_xorg_module_dir; moduledir="$withval"
21015 else
21016 moduledir="$libdir/xorg/modules"
21017 fi
21018
21019
21020
21021 # Checks for extensions
21022
21023 SAVE_CFLAGS="$CFLAGS"
21024 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21025 cat >conftest.$ac_ext <<_ACEOF
21026 /* confdefs.h. */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21031
21032 #include "xorg-server.h"
21033 #if !defined RANDR
21034 #error RANDR not defined
21035 #endif
21036
21037 int
21038 main ()
21039 {
21040
21041 ;
21042 return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (ac_try="$ac_compile"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21050 esac
21051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21052 $as_echo "$ac_try_echo") >&5
21053 (eval "$ac_compile") 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest.$ac_objext; then
21063 _EXT_CHECK=yes
21064 else
21065 $as_echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 _EXT_CHECK=no
21069 fi
21070
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072 CFLAGS="$SAVE_CFLAGS"
21073 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
21074 $as_echo_n "checking if RANDR is defined... " >&6; }
21075 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21076 $as_echo "$_EXT_CHECK" >&6; }
21077 if test "$_EXT_CHECK" != no; then
21078 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
21079 fi
21080
21081
21082 SAVE_CFLAGS="$CFLAGS"
21083 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21084 cat >conftest.$ac_ext <<_ACEOF
21085 /* confdefs.h. */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21090
21091 #include "xorg-server.h"
21092 #if !defined XINPUT
21093 #error XINPUT not defined
21094 #endif
21095
21096 int
21097 main ()
21098 {
21099
21100 ;
21101 return 0;
21102 }
21103 _ACEOF
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21111 $as_echo "$ac_try_echo") >&5
21112 (eval "$ac_compile") 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest.$ac_objext; then
21122 _EXT_CHECK=yes
21123 else
21124 $as_echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127 _EXT_CHECK=no
21128 fi
21129
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 CFLAGS="$SAVE_CFLAGS"
21132 { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
21133 $as_echo_n "checking if XINPUT is defined... " >&6; }
21134 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21135 $as_echo "$_EXT_CHECK" >&6; }
21136 if test "$_EXT_CHECK" != no; then
21137 REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
21138 fi
21139
21140
21141 SAVE_CFLAGS="$CFLAGS"
21142 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149
21150 #include "xorg-server.h"
21151 #if !defined XKB
21152 #error XKB not defined
21153 #endif
21154
21155 int
21156 main ()
21157 {
21158
21159 ;
21160 return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext
21164 if { (ac_try="$ac_compile"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21168 esac
21169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171 (eval "$ac_compile") 2>conftest.er1
21172 ac_status=$?
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
21176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest.$ac_objext; then
21181 _EXT_CHECK=yes
21182 else
21183 $as_echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21185
21186 _EXT_CHECK=no
21187 fi
21188
21189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21190 CFLAGS="$SAVE_CFLAGS"
21191 { $as_echo "$as_me:$LINENO: checking if XKB is defined" >&5
21192 $as_echo_n "checking if XKB is defined... " >&6; }
21193 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21194 $as_echo "$_EXT_CHECK" >&6; }
21195 if test "$_EXT_CHECK" != no; then
21196 REQUIRED_MODULES="$REQUIRED_MODULES kbproto"
21197 fi
21198
21199
21200 # Checks for pkg-config packages
21201
21202
21203 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21204 if test -n "$ac_tool_prefix"; then
21205 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21206 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21208 $as_echo_n "checking for $ac_word... " >&6; }
21209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21210 $as_echo_n "(cached) " >&6
21211 else
21212 case $PKG_CONFIG in
21213 [\\/]* | ?:[\\/]*)
21214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21215 ;;
21216 *)
21217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21218 for as_dir in $PATH
21219 do
21220 IFS=$as_save_IFS
21221 test -z "$as_dir" && as_dir=.
21222 for ac_exec_ext in '' $ac_executable_extensions; do
21223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21226 break 2
21227 fi
21228 done
21229 done
21230 IFS=$as_save_IFS
21231
21232 ;;
21233 esac
21234 fi
21235 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21236 if test -n "$PKG_CONFIG"; then
21237 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21238 $as_echo "$PKG_CONFIG" >&6; }
21239 else
21240 { $as_echo "$as_me:$LINENO: result: no" >&5
21241 $as_echo "no" >&6; }
21242 fi
21243
21244
21245 fi
21246 if test -z "$ac_cv_path_PKG_CONFIG"; then
21247 ac_pt_PKG_CONFIG=$PKG_CONFIG
21248 # Extract the first word of "pkg-config", so it can be a program name with args.
21249 set dummy pkg-config; ac_word=$2
21250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21251 $as_echo_n "checking for $ac_word... " >&6; }
21252 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21253 $as_echo_n "(cached) " >&6
21254 else
21255 case $ac_pt_PKG_CONFIG in
21256 [\\/]* | ?:[\\/]*)
21257 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21258 ;;
21259 *)
21260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21261 for as_dir in $PATH
21262 do
21263 IFS=$as_save_IFS
21264 test -z "$as_dir" && as_dir=.
21265 for ac_exec_ext in '' $ac_executable_extensions; do
21266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21267 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21269 break 2
21270 fi
21271 done
21272 done
21273 IFS=$as_save_IFS
21274
21275 ;;
21276 esac
21277 fi
21278 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21279 if test -n "$ac_pt_PKG_CONFIG"; then
21280 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21281 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21282 else
21283 { $as_echo "$as_me:$LINENO: result: no" >&5
21284 $as_echo "no" >&6; }
21285 fi
21286
21287 if test "x$ac_pt_PKG_CONFIG" = x; then
21288 PKG_CONFIG=""
21289 else
21290 case $cross_compiling:$ac_tool_warned in
21291 yes:)
21292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21294 ac_tool_warned=yes ;;
21295 esac
21296 PKG_CONFIG=$ac_pt_PKG_CONFIG
21297 fi
21298 else
21299 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21300 fi
21301
21302 fi
21303 if test -n "$PKG_CONFIG"; then
21304 _pkg_min_version=0.9.0
21305 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21306 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21307 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21308 { $as_echo "$as_me:$LINENO: result: yes" >&5
21309 $as_echo "yes" >&6; }
21310 else
21311 { $as_echo "$as_me:$LINENO: result: no" >&5
21312 $as_echo "no" >&6; }
21313 PKG_CONFIG=""
21314 fi
21315
21316 fi
21317
21318 pkg_failed=no
21319 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21320 $as_echo_n "checking for XORG... " >&6; }
21321
21322 if test -n "$XORG_CFLAGS"; then
21323 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21324 elif test -n "$PKG_CONFIG"; then
21325 if test -n "$PKG_CONFIG" && \
21326 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5
21327 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5
21328 ac_status=$?
21329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; then
21331 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null`
21332 else
21333 pkg_failed=yes
21334 fi
21335 else
21336 pkg_failed=untried
21337 fi
21338 if test -n "$XORG_LIBS"; then
21339 pkg_cv_XORG_LIBS="$XORG_LIBS"
21340 elif test -n "$PKG_CONFIG"; then
21341 if test -n "$PKG_CONFIG" && \
21342 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.99.0 xproto \$REQUIRED_MODULES\"") >&5
21343 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES") 2>&5
21344 ac_status=$?
21345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; then
21347 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>/dev/null`
21348 else
21349 pkg_failed=yes
21350 fi
21351 else
21352 pkg_failed=untried
21353 fi
21354
21355
21356
21357 if test $pkg_failed = yes; then
21358
21359 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21360 _pkg_short_errors_supported=yes
21361 else
21362 _pkg_short_errors_supported=no
21363 fi
21364 if test $_pkg_short_errors_supported = yes; then
21365 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1`
21366 else
21367 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES" 2>&1`
21368 fi
21369 # Put the nasty error message in config.log where it belongs
21370 echo "$XORG_PKG_ERRORS" >&5
21371
21372 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met:
21373
21374 $XORG_PKG_ERRORS
21375
21376 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21377 installed software in a non-standard prefix.
21378
21379 Alternatively, you may set the environment variables XORG_CFLAGS
21380 and XORG_LIBS to avoid the need to call pkg-config.
21381 See the pkg-config man page for more details.
21382 " >&5
21383 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.2.99.0 xproto $REQUIRED_MODULES) were not met:
21384
21385 $XORG_PKG_ERRORS
21386
21387 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21388 installed software in a non-standard prefix.
21389
21390 Alternatively, you may set the environment variables XORG_CFLAGS
21391 and XORG_LIBS to avoid the need to call pkg-config.
21392 See the pkg-config man page for more details.
21393 " >&2;}
21394 { (exit 1); exit 1; }; }
21395 elif test $pkg_failed = untried; then
21396 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21398 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21399 is in your PATH or set the PKG_CONFIG environment variable to the full
21400 path to pkg-config.
21401
21402 Alternatively, you may set the environment variables XORG_CFLAGS
21403 and XORG_LIBS to avoid the need to call pkg-config.
21404 See the pkg-config man page for more details.
21405
21406 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21407 See \`config.log' for more details." >&5
21408 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21409 is in your PATH or set the PKG_CONFIG environment variable to the full
21410 path to pkg-config.
21411
21412 Alternatively, you may set the environment variables XORG_CFLAGS
21413 and XORG_LIBS to avoid the need to call pkg-config.
21414 See the pkg-config man page for more details.
21415
21416 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21417 See \`config.log' for more details." >&2;}
21418 { (exit 1); exit 1; }; }; }
21419 else
21420 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21421 XORG_LIBS=$pkg_cv_XORG_LIBS
21422 { $as_echo "$as_me:$LINENO: result: yes" >&5
21423 $as_echo "yes" >&6; }
21424 :
21425 fi
21426 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21427
21428
21429
21430 if test "x$GCC" = xyes ; then
21431 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
21432 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
21433 -Wbad-function-cast"
21434 case `gcc -dumpversion` in
21435 3.4.* | 4.*)
21436 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
21437 ;;
21438 esac
21439 else
21440 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
21441 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
21442 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
21443 $as_echo_n "(cached) " >&6
21444 else
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h. */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 $ac_includes_default
21452 int
21453 main ()
21454 {
21455 #ifndef __SUNPRO_C
21456 (void) __SUNPRO_C;
21457 #endif
21458
21459 ;
21460 return 0;
21461 }
21462 _ACEOF
21463 rm -f conftest.$ac_objext
21464 if { (ac_try="$ac_compile"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21468 esac
21469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21470 $as_echo "$ac_try_echo") >&5
21471 (eval "$ac_compile") 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } && {
21478 test -z "$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 } && test -s conftest.$ac_objext; then
21481 ac_cv_have_decl___SUNPRO_C=yes
21482 else
21483 $as_echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486 ac_cv_have_decl___SUNPRO_C=no
21487 fi
21488
21489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490 fi
21491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
21492 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
21493 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
21494 SUNCC="yes"
21495 else
21496 SUNCC="no"
21497 fi
21498
21499 if test "x$SUNCC" = "xyes"; then
21500 CWARNFLAGS="-v"
21501 fi
21502 fi
21503
21504
21505 XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
21506
21507
21508 # Checks for libraries.
21509
21510 # Checks for header files.
21511 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21512 $as_echo_n "checking for ANSI C header files... " >&6; }
21513 if test "${ac_cv_header_stdc+set}" = set; then
21514 $as_echo_n "(cached) " >&6
21515 else
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 #include <stdlib.h>
21523 #include <stdarg.h>
21524 #include <string.h>
21525 #include <float.h>
21526
21527 int
21528 main ()
21529 {
21530
21531 ;
21532 return 0;
21533 }
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21542 $as_echo "$ac_try_echo") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.$ac_objext; then
21553 ac_cv_header_stdc=yes
21554 else
21555 $as_echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 ac_cv_header_stdc=no
21559 fi
21560
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562
21563 if test $ac_cv_header_stdc = yes; then
21564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h. */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 #include <string.h>
21572
21573 _ACEOF
21574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21575 $EGREP "memchr" >/dev/null 2>&1; then
21576 :
21577 else
21578 ac_cv_header_stdc=no
21579 fi
21580 rm -f conftest*
21581
21582 fi
21583
21584 if test $ac_cv_header_stdc = yes; then
21585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21586 cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h. */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 #include <stdlib.h>
21593
21594 _ACEOF
21595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21596 $EGREP "free" >/dev/null 2>&1; then
21597 :
21598 else
21599 ac_cv_header_stdc=no
21600 fi
21601 rm -f conftest*
21602
21603 fi
21604
21605 if test $ac_cv_header_stdc = yes; then
21606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21607 if test "$cross_compiling" = yes; then
21608 :
21609 else
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h. */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <ctype.h>
21617 #include <stdlib.h>
21618 #if ((' ' & 0x0FF) == 0x020)
21619 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21620 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21621 #else
21622 # define ISLOWER(c) \
21623 (('a' <= (c) && (c) <= 'i') \
21624 || ('j' <= (c) && (c) <= 'r') \
21625 || ('s' <= (c) && (c) <= 'z'))
21626 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21627 #endif
21628
21629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21630 int
21631 main ()
21632 {
21633 int i;
21634 for (i = 0; i < 256; i++)
21635 if (XOR (islower (i), ISLOWER (i))
21636 || toupper (i) != TOUPPER (i))
21637 return 2;
21638 return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21646 esac
21647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21648 $as_echo "$ac_try_echo") >&5
21649 (eval "$ac_link") 2>&5
21650 ac_status=$?
21651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21653 { (case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21656 esac
21657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659 (eval "$ac_try") 2>&5
21660 ac_status=$?
21661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 :
21664 else
21665 $as_echo "$as_me: program exited with status $ac_status" >&5
21666 $as_echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669 ( exit $ac_status )
21670 ac_cv_header_stdc=no
21671 fi
21672 rm -rf conftest.dSYM
21673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21674 fi
21675
21676
21677 fi
21678 fi
21679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21680 $as_echo "$ac_cv_header_stdc" >&6; }
21681 if test $ac_cv_header_stdc = yes; then
21682
21683 cat >>confdefs.h <<\_ACEOF
21684 #define STDC_HEADERS 1
21685 _ACEOF
21686
21687 fi
21688
21689
21690
21691
21692
21693 if test x$APP_MAN_SUFFIX = x ; then
21694 APP_MAN_SUFFIX=1
21695 fi
21696 if test x$APP_MAN_DIR = x ; then
21697 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21698 fi
21699
21700 if test x$LIB_MAN_SUFFIX = x ; then
21701 LIB_MAN_SUFFIX=3
21702 fi
21703 if test x$LIB_MAN_DIR = x ; then
21704 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21705 fi
21706
21707 if test x$FILE_MAN_SUFFIX = x ; then
21708 case $host_os in
21709 solaris*) FILE_MAN_SUFFIX=4 ;;
21710 *) FILE_MAN_SUFFIX=5 ;;
21711 esac
21712 fi
21713 if test x$FILE_MAN_DIR = x ; then
21714 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21715 fi
21716
21717 if test x$MISC_MAN_SUFFIX = x ; then
21718 case $host_os in
21719 solaris*) MISC_MAN_SUFFIX=5 ;;
21720 *) MISC_MAN_SUFFIX=7 ;;
21721 esac
21722 fi
21723 if test x$MISC_MAN_DIR = x ; then
21724 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21725 fi
21726
21727 if test x$DRIVER_MAN_SUFFIX = x ; then
21728 case $host_os in
21729 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21730 *) DRIVER_MAN_SUFFIX=4 ;;
21731 esac
21732 fi
21733 if test x$DRIVER_MAN_DIR = x ; then
21734 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21735 fi
21736
21737 if test x$ADMIN_MAN_SUFFIX = x ; then
21738 case $host_os in
21739 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21740 *) ADMIN_MAN_SUFFIX=8 ;;
21741 esac
21742 fi
21743 if test x$ADMIN_MAN_DIR = x ; then
21744 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21745 fi
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763 # Check whether --with-release-version was given.
21764 if test "${with_release_version+set}" = set; then
21765 withval=$with_release_version; RELEASE_VERSION="$withval"
21766 else
21767 RELEASE_VERSION=""
21768 fi
21769
21770 if test "x$RELEASE_VERSION" != "x"; then
21771 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21772 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21773 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21774 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21775 fi
21776
21777 cat >>confdefs.h <<_ACEOF
21778 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21779 _ACEOF
21780
21781 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21782 if test "x$PVM" = "x"; then
21783 PVM="0"
21784 fi
21785
21786 cat >>confdefs.h <<_ACEOF
21787 #define PACKAGE_VERSION_MINOR $PVM
21788 _ACEOF
21789
21790 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21791 if test "x$PVP" = "x"; then
21792 PVP="0"
21793 fi
21794
21795 cat >>confdefs.h <<_ACEOF
21796 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21797 _ACEOF
21798
21799
21800
21801 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
21802 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
21803 echo 'git directory not found: installing possibly empty changelog.' >&2)"
21804
21805 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
21806
21807
21808
21809 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21810
21811 cat >confcache <<\_ACEOF
21812 # This file is a shell script that caches the results of configure
21813 # tests run on this system so they can be shared between configure
21814 # scripts and configure runs, see configure's option --config-cache.
21815 # It is not useful on other systems. If it contains results you don't
21816 # want to keep, you may remove or edit it.
21817 #
21818 # config.status only pays attention to the cache file if you give it
21819 # the --recheck option to rerun configure.
21820 #
21821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21823 # following values.
21824
21825 _ACEOF
21826
21827 # The following way of writing the cache mishandles newlines in values,
21828 # but we know of no workaround that is simple, portable, and efficient.
21829 # So, we kill variables containing newlines.
21830 # Ultrix sh set writes to stderr and can't be redirected directly,
21831 # and sets the high bit in the cache file unless we assign to the vars.
21832 (
21833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21834 eval ac_val=\$$ac_var
21835 case $ac_val in #(
21836 *${as_nl}*)
21837 case $ac_var in #(
21838 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21840 esac
21841 case $ac_var in #(
21842 _ | IFS | as_nl) ;; #(
21843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21844 *) $as_unset $ac_var ;;
21845 esac ;;
21846 esac
21847 done
21848
21849 (set) 2>&1 |
21850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21851 *${as_nl}ac_space=\ *)
21852 # `set' does not quote correctly, so add quotes (double-quote
21853 # substitution turns \\\\ into \\, and sed turns \\ into \).
21854 sed -n \
21855 "s/'/'\\\\''/g;
21856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21857 ;; #(
21858 *)
21859 # `set' quotes correctly as required by POSIX, so do not add quotes.
21860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21861 ;;
21862 esac |
21863 sort
21864 ) |
21865 sed '
21866 /^ac_cv_env_/b end
21867 t clear
21868 :clear
21869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21870 t end
21871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21872 :end' >>confcache
21873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21874 if test -w "$cache_file"; then
21875 test "x$cache_file" != "x/dev/null" &&
21876 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21877 $as_echo "$as_me: updating cache $cache_file" >&6;}
21878 cat confcache >$cache_file
21879 else
21880 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21882 fi
21883 fi
21884 rm -f confcache
21885
21886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21887 # Let make expand exec_prefix.
21888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21889
21890 DEFS=-DHAVE_CONFIG_H
21891
21892 ac_libobjs=
21893 ac_ltlibobjs=
21894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21895 # 1. Remove the extension, and $U if already installed.
21896 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21897 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21899 # will be set to the directory where LIBOBJS objects are built.
21900 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21901 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21902 done
21903 LIBOBJS=$ac_libobjs
21904
21905 LTLIBOBJS=$ac_ltlibobjs
21906
21907
21908 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21909 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21910 Usually this means the macro was only invoked conditionally." >&5
21911 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21912 Usually this means the macro was only invoked conditionally." >&2;}
21913 { (exit 1); exit 1; }; }
21914 fi
21915 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21916 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21917 Usually this means the macro was only invoked conditionally." >&5
21918 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21919 Usually this means the macro was only invoked conditionally." >&2;}
21920 { (exit 1); exit 1; }; }
21921 fi
21922 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21923 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21924 Usually this means the macro was only invoked conditionally." >&5
21925 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21926 Usually this means the macro was only invoked conditionally." >&2;}
21927 { (exit 1); exit 1; }; }
21928 fi
21929 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21930 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21931 Usually this means the macro was only invoked conditionally." >&5
21932 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21933 Usually this means the macro was only invoked conditionally." >&2;}
21934 { (exit 1); exit 1; }; }
21935 fi
21936 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21937 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21938 Usually this means the macro was only invoked conditionally." >&5
21939 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21940 Usually this means the macro was only invoked conditionally." >&2;}
21941 { (exit 1); exit 1; }; }
21942 fi
21943 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
21944 { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
21945 Usually this means the macro was only invoked conditionally." >&5
21946 $as_echo "$as_me: error: conditional \"LINUX\" was never defined.
21947 Usually this means the macro was only invoked conditionally." >&2;}
21948 { (exit 1); exit 1; }; }
21949 fi
21950 if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
21951 { { $as_echo "$as_me:$LINENO: error: conditional \"BSD\" was never defined.
21952 Usually this means the macro was only invoked conditionally." >&5
21953 $as_echo "$as_me: error: conditional \"BSD\" was never defined.
21954 Usually this means the macro was only invoked conditionally." >&2;}
21955 { (exit 1); exit 1; }; }
21956 fi
21957 if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
21958 { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
21959 Usually this means the macro was only invoked conditionally." >&5
21960 $as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
21961 Usually this means the macro was only invoked conditionally." >&2;}
21962 { (exit 1); exit 1; }; }
21963 fi
21964 if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then
21965 { { $as_echo "$as_me:$LINENO: error: conditional \"HURD\" was never defined.
21966 Usually this means the macro was only invoked conditionally." >&5
21967 $as_echo "$as_me: error: conditional \"HURD\" was never defined.
21968 Usually this means the macro was only invoked conditionally." >&2;}
21969 { (exit 1); exit 1; }; }
21970 fi
21971 if test -z "${SCO_TRUE}" && test -z "${SCO_FALSE}"; then
21972 { { $as_echo "$as_me:$LINENO: error: conditional \"SCO\" was never defined.
21973 Usually this means the macro was only invoked conditionally." >&5
21974 $as_echo "$as_me: error: conditional \"SCO\" was never defined.
21975 Usually this means the macro was only invoked conditionally." >&2;}
21976 { (exit 1); exit 1; }; }
21977 fi
21978
21979 : ${CONFIG_STATUS=./config.status}
21980 ac_write_fail=0
21981 ac_clean_files_save=$ac_clean_files
21982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21983 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21984 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21985 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21986 #! $SHELL
21987 # Generated by $as_me.
21988 # Run this file to recreate the current configuration.
21989 # Compiler output produced by configure, useful for debugging
21990 # configure, is in config.log if it exists.
21991
21992 debug=false
21993 ac_cs_recheck=false
21994 ac_cs_silent=false
21995 SHELL=\${CONFIG_SHELL-$SHELL}
21996 _ACEOF
21997
21998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21999 ## --------------------- ##
22000 ## M4sh Initialization. ##
22001 ## --------------------- ##
22002
22003 # Be more Bourne compatible
22004 DUALCASE=1; export DUALCASE # for MKS sh
22005 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22006 emulate sh
22007 NULLCMD=:
22008 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22009 # is contrary to our usage. Disable this feature.
22010 alias -g '${1+"$@"}'='"$@"'
22011 setopt NO_GLOB_SUBST
22012 else
22013 case `(set -o) 2>/dev/null` in
22014 *posix*) set -o posix ;;
22015 esac
22016
22017 fi
22018
22019
22020
22021
22022 # PATH needs CR
22023 # Avoid depending upon Character Ranges.
22024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22027 as_cr_digits='0123456789'
22028 as_cr_alnum=$as_cr_Letters$as_cr_digits
22029
22030 as_nl='
22031 '
22032 export as_nl
22033 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22034 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22037 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22038 as_echo='printf %s\n'
22039 as_echo_n='printf %s'
22040 else
22041 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22042 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22043 as_echo_n='/usr/ucb/echo -n'
22044 else
22045 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22046 as_echo_n_body='eval
22047 arg=$1;
22048 case $arg in
22049 *"$as_nl"*)
22050 expr "X$arg" : "X\\(.*\\)$as_nl";
22051 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22052 esac;
22053 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22054 '
22055 export as_echo_n_body
22056 as_echo_n='sh -c $as_echo_n_body as_echo'
22057 fi
22058 export as_echo_body
22059 as_echo='sh -c $as_echo_body as_echo'
22060 fi
22061
22062 # The user is always right.
22063 if test "${PATH_SEPARATOR+set}" != set; then
22064 PATH_SEPARATOR=:
22065 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22066 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22067 PATH_SEPARATOR=';'
22068 }
22069 fi
22070
22071 # Support unset when possible.
22072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22073 as_unset=unset
22074 else
22075 as_unset=false
22076 fi
22077
22078
22079 # IFS
22080 # We need space, tab and new line, in precisely that order. Quoting is
22081 # there to prevent editors from complaining about space-tab.
22082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22083 # splitting by setting IFS to empty value.)
22084 IFS=" "" $as_nl"
22085
22086 # Find who we are. Look in the path if we contain no directory separator.
22087 case $0 in
22088 *[\\/]* ) as_myself=$0 ;;
22089 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22090 for as_dir in $PATH
22091 do
22092 IFS=$as_save_IFS
22093 test -z "$as_dir" && as_dir=.
22094 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22095 done
22096 IFS=$as_save_IFS
22097
22098 ;;
22099 esac
22100 # We did not find ourselves, most probably we were run as `sh COMMAND'
22101 # in which case we are not to be found in the path.
22102 if test "x$as_myself" = x; then
22103 as_myself=$0
22104 fi
22105 if test ! -f "$as_myself"; then
22106 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22107 { (exit 1); exit 1; }
22108 fi
22109
22110 # Work around bugs in pre-3.0 UWIN ksh.
22111 for as_var in ENV MAIL MAILPATH
22112 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22113 done
22114 PS1='$ '
22115 PS2='> '
22116 PS4='+ '
22117
22118 # NLS nuisances.
22119 LC_ALL=C
22120 export LC_ALL
22121 LANGUAGE=C
22122 export LANGUAGE
22123
22124 # Required to use basename.
22125 if expr a : '\(a\)' >/dev/null 2>&1 &&
22126 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22127 as_expr=expr
22128 else
22129 as_expr=false
22130 fi
22131
22132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22133 as_basename=basename
22134 else
22135 as_basename=false
22136 fi
22137
22138
22139 # Name of the executable.
22140 as_me=`$as_basename -- "$0" ||
22141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22142 X"$0" : 'X\(//\)$' \| \
22143 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22144 $as_echo X/"$0" |
22145 sed '/^.*\/\([^/][^/]*\)\/*$/{
22146 s//\1/
22147 q
22148 }
22149 /^X\/\(\/\/\)$/{
22150 s//\1/
22151 q
22152 }
22153 /^X\/\(\/\).*/{
22154 s//\1/
22155 q
22156 }
22157 s/.*/./; q'`
22158
22159 # CDPATH.
22160 $as_unset CDPATH
22161
22162
22163
22164 as_lineno_1=$LINENO
22165 as_lineno_2=$LINENO
22166 test "x$as_lineno_1" != "x$as_lineno_2" &&
22167 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22168
22169 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22170 # uniformly replaced by the line number. The first 'sed' inserts a
22171 # line-number line after each line using $LINENO; the second 'sed'
22172 # does the real work. The second script uses 'N' to pair each
22173 # line-number line with the line containing $LINENO, and appends
22174 # trailing '-' during substitution so that $LINENO is not a special
22175 # case at line end.
22176 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22177 # scripts with optimization help from Paolo Bonzini. Blame Lee
22178 # E. McMahon (1931-1989) for sed's syntax. :-)
22179 sed -n '
22180 p
22181 /[$]LINENO/=
22182 ' <$as_myself |
22183 sed '
22184 s/[$]LINENO.*/&-/
22185 t lineno
22186 b
22187 :lineno
22188 N
22189 :loop
22190 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22191 t loop
22192 s/-\n.*//
22193 ' >$as_me.lineno &&
22194 chmod +x "$as_me.lineno" ||
22195 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22196 { (exit 1); exit 1; }; }
22197
22198 # Don't try to exec as it changes $[0], causing all sort of problems
22199 # (the dirname of $[0] is not the place where we might find the
22200 # original and so on. Autoconf is especially sensitive to this).
22201 . "./$as_me.lineno"
22202 # Exit status is that of the last command.
22203 exit
22204 }
22205
22206
22207 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22208 as_dirname=dirname
22209 else
22210 as_dirname=false
22211 fi
22212
22213 ECHO_C= ECHO_N= ECHO_T=
22214 case `echo -n x` in
22215 -n*)
22216 case `echo 'x\c'` in
22217 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22218 *) ECHO_C='\c';;
22219 esac;;
22220 *)
22221 ECHO_N='-n';;
22222 esac
22223 if expr a : '\(a\)' >/dev/null 2>&1 &&
22224 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22225 as_expr=expr
22226 else
22227 as_expr=false
22228 fi
22229
22230 rm -f conf$$ conf$$.exe conf$$.file
22231 if test -d conf$$.dir; then
22232 rm -f conf$$.dir/conf$$.file
22233 else
22234 rm -f conf$$.dir
22235 mkdir conf$$.dir 2>/dev/null
22236 fi
22237 if (echo >conf$$.file) 2>/dev/null; then
22238 if ln -s conf$$.file conf$$ 2>/dev/null; then
22239 as_ln_s='ln -s'
22240 # ... but there are two gotchas:
22241 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22242 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22243 # In both cases, we have to default to `cp -p'.
22244 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22245 as_ln_s='cp -p'
22246 elif ln conf$$.file conf$$ 2>/dev/null; then
22247 as_ln_s=ln
22248 else
22249 as_ln_s='cp -p'
22250 fi
22251 else
22252 as_ln_s='cp -p'
22253 fi
22254 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22255 rmdir conf$$.dir 2>/dev/null
22256
22257 if mkdir -p . 2>/dev/null; then
22258 as_mkdir_p=:
22259 else
22260 test -d ./-p && rmdir ./-p
22261 as_mkdir_p=false
22262 fi
22263
22264 if test -x / >/dev/null 2>&1; then
22265 as_test_x='test -x'
22266 else
22267 if ls -dL / >/dev/null 2>&1; then
22268 as_ls_L_option=L
22269 else
22270 as_ls_L_option=
22271 fi
22272 as_test_x='
22273 eval sh -c '\''
22274 if test -d "$1"; then
22275 test -d "$1/.";
22276 else
22277 case $1 in
22278 -*)set "./$1";;
22279 esac;
22280 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22281 ???[sx]*):;;*)false;;esac;fi
22282 '\'' sh
22283 '
22284 fi
22285 as_executable_p=$as_test_x
22286
22287 # Sed expression to map a string onto a valid CPP name.
22288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22289
22290 # Sed expression to map a string onto a valid variable name.
22291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22292
22293
22294 exec 6>&1
22295
22296 # Save the log message, to keep $[0] and so on meaningful, and to
22297 # report actual input values of CONFIG_FILES etc. instead of their
22298 # values after options handling.
22299 ac_log="
22300 This file was extended by xf86-input-keyboard $as_me 1.3.2, which was
22301 generated by GNU Autoconf 2.63. Invocation command line was
22302
22303 CONFIG_FILES = $CONFIG_FILES
22304 CONFIG_HEADERS = $CONFIG_HEADERS
22305 CONFIG_LINKS = $CONFIG_LINKS
22306 CONFIG_COMMANDS = $CONFIG_COMMANDS
22307 $ $0 $@
22308
22309 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22310 "
22311
22312 _ACEOF
22313
22314 case $ac_config_files in *"
22315 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22316 esac
22317
22318 case $ac_config_headers in *"
22319 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22320 esac
22321
22322
22323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324 # Files that config.status was made for.
22325 config_files="`echo $ac_config_files`"
22326 config_headers="`echo $ac_config_headers`"
22327 config_commands="`echo $ac_config_commands`"
22328
22329 _ACEOF
22330
22331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22332 ac_cs_usage="\
22333 \`$as_me' instantiates files from templates according to the
22334 current configuration.
22335
22336 Usage: $0 [OPTION]... [FILE]...
22337
22338 -h, --help print this help, then exit
22339 -V, --version print version number and configuration settings, then exit
22340 -q, --quiet, --silent
22341 do not print progress messages
22342 -d, --debug don't remove temporary files
22343 --recheck update $as_me by reconfiguring in the same conditions
22344 --file=FILE[:TEMPLATE]
22345 instantiate the configuration file FILE
22346 --header=FILE[:TEMPLATE]
22347 instantiate the configuration header FILE
22348
22349 Configuration files:
22350 $config_files
22351
22352 Configuration headers:
22353 $config_headers
22354
22355 Configuration commands:
22356 $config_commands
22357
22358 Report bugs to <bug-autoconf (at] gnu.org>."
22359
22360 _ACEOF
22361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22362 ac_cs_version="\\
22363 xf86-input-keyboard config.status 1.3.2
22364 configured by $0, generated by GNU Autoconf 2.63,
22365 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22366
22367 Copyright (C) 2008 Free Software Foundation, Inc.
22368 This config.status script is free software; the Free Software Foundation
22369 gives unlimited permission to copy, distribute and modify it."
22370
22371 ac_pwd='$ac_pwd'
22372 srcdir='$srcdir'
22373 INSTALL='$INSTALL'
22374 MKDIR_P='$MKDIR_P'
22375 AWK='$AWK'
22376 test -n "\$AWK" || AWK=awk
22377 _ACEOF
22378
22379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22380 # The default lists apply if the user does not specify any file.
22381 ac_need_defaults=:
22382 while test $# != 0
22383 do
22384 case $1 in
22385 --*=*)
22386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22387 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22388 ac_shift=:
22389 ;;
22390 *)
22391 ac_option=$1
22392 ac_optarg=$2
22393 ac_shift=shift
22394 ;;
22395 esac
22396
22397 case $ac_option in
22398 # Handling of the options.
22399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22400 ac_cs_recheck=: ;;
22401 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22402 $as_echo "$ac_cs_version"; exit ;;
22403 --debug | --debu | --deb | --de | --d | -d )
22404 debug=: ;;
22405 --file | --fil | --fi | --f )
22406 $ac_shift
22407 case $ac_optarg in
22408 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22409 esac
22410 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22411 ac_need_defaults=false;;
22412 --header | --heade | --head | --hea )
22413 $ac_shift
22414 case $ac_optarg in
22415 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22416 esac
22417 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22418 ac_need_defaults=false;;
22419 --he | --h)
22420 # Conflict between --help and --header
22421 { $as_echo "$as_me: error: ambiguous option: $1
22422 Try \`$0 --help' for more information." >&2
22423 { (exit 1); exit 1; }; };;
22424 --help | --hel | -h )
22425 $as_echo "$ac_cs_usage"; exit ;;
22426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22427 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22428 ac_cs_silent=: ;;
22429
22430 # This is an error.
22431 -*) { $as_echo "$as_me: error: unrecognized option: $1
22432 Try \`$0 --help' for more information." >&2
22433 { (exit 1); exit 1; }; } ;;
22434
22435 *) ac_config_targets="$ac_config_targets $1"
22436 ac_need_defaults=false ;;
22437
22438 esac
22439 shift
22440 done
22441
22442 ac_configure_extra_args=
22443
22444 if $ac_cs_silent; then
22445 exec 6>/dev/null
22446 ac_configure_extra_args="$ac_configure_extra_args --silent"
22447 fi
22448
22449 _ACEOF
22450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22451 if \$ac_cs_recheck; then
22452 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22453 shift
22454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22455 CONFIG_SHELL='$SHELL'
22456 export CONFIG_SHELL
22457 exec "\$@"
22458 fi
22459
22460 _ACEOF
22461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22462 exec 5>>config.log
22463 {
22464 echo
22465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22466 ## Running $as_me. ##
22467 _ASBOX
22468 $as_echo "$ac_log"
22469 } >&5
22470
22471 _ACEOF
22472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22473 #
22474 # INIT-COMMANDS
22475 #
22476 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22477
22478 _ACEOF
22479
22480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22481
22482 # Handling of arguments.
22483 for ac_config_target in $ac_config_targets
22484 do
22485 case $ac_config_target in
22486 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22487 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22489 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22490 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22491
22492 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22493 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22494 { (exit 1); exit 1; }; };;
22495 esac
22496 done
22497
22498
22499 # If the user did not use the arguments to specify the items to instantiate,
22500 # then the envvar interface is used. Set only those that are not.
22501 # We use the long form for the default assignment because of an extremely
22502 # bizarre bug on SunOS 4.1.3.
22503 if $ac_need_defaults; then
22504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22507 fi
22508
22509 # Have a temporary directory for convenience. Make it in the build tree
22510 # simply because there is no reason against having it here, and in addition,
22511 # creating and moving files from /tmp can sometimes cause problems.
22512 # Hook for its removal unless debugging.
22513 # Note that there is a small window in which the directory will not be cleaned:
22514 # after its creation but before its name has been assigned to `$tmp'.
22515 $debug ||
22516 {
22517 tmp=
22518 trap 'exit_status=$?
22519 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22520 ' 0
22521 trap '{ (exit 1); exit 1; }' 1 2 13 15
22522 }
22523 # Create a (secure) tmp directory for tmp files.
22524
22525 {
22526 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22527 test -n "$tmp" && test -d "$tmp"
22528 } ||
22529 {
22530 tmp=./conf$$-$RANDOM
22531 (umask 077 && mkdir "$tmp")
22532 } ||
22533 {
22534 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22535 { (exit 1); exit 1; }
22536 }
22537
22538 # Set up the scripts for CONFIG_FILES section.
22539 # No need to generate them if there are no CONFIG_FILES.
22540 # This happens for instance with `./config.status config.h'.
22541 if test -n "$CONFIG_FILES"; then
22542
22543
22544 ac_cr='
'
22546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22548 ac_cs_awk_cr='\\r'
22549 else
22550 ac_cs_awk_cr=$ac_cr
22551 fi
22552
22553 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22554 _ACEOF
22555
22556
22557 {
22558 echo "cat >conf$$subs.awk <<_ACEOF" &&
22559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22560 echo "_ACEOF"
22561 } >conf$$subs.sh ||
22562 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22563 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22564 { (exit 1); exit 1; }; }
22565 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22566 ac_delim='%!_!# '
22567 for ac_last_try in false false false false false :; do
22568 . ./conf$$subs.sh ||
22569 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22570 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22571 { (exit 1); exit 1; }; }
22572
22573 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22574 if test $ac_delim_n = $ac_delim_num; then
22575 break
22576 elif $ac_last_try; then
22577 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22578 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22579 { (exit 1); exit 1; }; }
22580 else
22581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22582 fi
22583 done
22584 rm -f conf$$subs.sh
22585
22586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22587 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22588 _ACEOF
22589 sed -n '
22590 h
22591 s/^/S["/; s/!.*/"]=/
22592 p
22593 g
22594 s/^[^!]*!//
22595 :repl
22596 t repl
22597 s/'"$ac_delim"'$//
22598 t delim
22599 :nl
22600 h
22601 s/\(.\{148\}\).*/\1/
22602 t more1
22603 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22604 p
22605 n
22606 b repl
22607 :more1
22608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22609 p
22610 g
22611 s/.\{148\}//
22612 t nl
22613 :delim
22614 h
22615 s/\(.\{148\}\).*/\1/
22616 t more2
22617 s/["\\]/\\&/g; s/^/"/; s/$/"/
22618 p
22619 b
22620 :more2
22621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22622 p
22623 g
22624 s/.\{148\}//
22625 t delim
22626 ' <conf$$subs.awk | sed '
22627 /^[^""]/{
22628 N
22629 s/\n//
22630 }
22631 ' >>$CONFIG_STATUS || ac_write_fail=1
22632 rm -f conf$$subs.awk
22633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22634 _ACAWK
22635 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22636 for (key in S) S_is_set[key] = 1
22637 FS = ""
22638
22639 }
22640 {
22641 line = $ 0
22642 nfields = split(line, field, "@")
22643 substed = 0
22644 len = length(field[1])
22645 for (i = 2; i < nfields; i++) {
22646 key = field[i]
22647 keylen = length(key)
22648 if (S_is_set[key]) {
22649 value = S[key]
22650 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22651 len += length(value) + length(field[++i])
22652 substed = 1
22653 } else
22654 len += 1 + keylen
22655 }
22656
22657 print line
22658 }
22659
22660 _ACAWK
22661 _ACEOF
22662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22663 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22664 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22665 else
22666 cat
22667 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22668 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22669 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22670 { (exit 1); exit 1; }; }
22671 _ACEOF
22672
22673 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22674 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22675 # trailing colons and then remove the whole line if VPATH becomes empty
22676 # (actually we leave an empty line to preserve line numbers).
22677 if test "x$srcdir" = x.; then
22678 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22679 s/:*\$(srcdir):*/:/
22680 s/:*\${srcdir}:*/:/
22681 s/:*@srcdir@:*/:/
22682 s/^\([^=]*=[ ]*\):*/\1/
22683 s/:*$//
22684 s/^[^=]*=[ ]*$//
22685 }'
22686 fi
22687
22688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22689 fi # test -n "$CONFIG_FILES"
22690
22691 # Set up the scripts for CONFIG_HEADERS section.
22692 # No need to generate them if there are no CONFIG_HEADERS.
22693 # This happens for instance with `./config.status Makefile'.
22694 if test -n "$CONFIG_HEADERS"; then
22695 cat >"$tmp/defines.awk" <<\_ACAWK ||
22696 BEGIN {
22697 _ACEOF
22698
22699 # Transform confdefs.h into an awk script `defines.awk', embedded as
22700 # here-document in config.status, that substitutes the proper values into
22701 # config.h.in to produce config.h.
22702
22703 # Create a delimiter string that does not exist in confdefs.h, to ease
22704 # handling of long lines.
22705 ac_delim='%!_!# '
22706 for ac_last_try in false false :; do
22707 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22708 if test -z "$ac_t"; then
22709 break
22710 elif $ac_last_try; then
22711 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22712 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22713 { (exit 1); exit 1; }; }
22714 else
22715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22716 fi
22717 done
22718
22719 # For the awk script, D is an array of macro values keyed by name,
22720 # likewise P contains macro parameters if any. Preserve backslash
22721 # newline sequences.
22722
22723 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22724 sed -n '
22725 s/.\{148\}/&'"$ac_delim"'/g
22726 t rset
22727 :rset
22728 s/^[ ]*#[ ]*define[ ][ ]*/ /
22729 t def
22730 d
22731 :def
22732 s/\\$//
22733 t bsnl
22734 s/["\\]/\\&/g
22735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22736 D["\1"]=" \3"/p
22737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22738 d
22739 :bsnl
22740 s/["\\]/\\&/g
22741 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22742 D["\1"]=" \3\\\\\\n"\\/p
22743 t cont
22744 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22745 t cont
22746 d
22747 :cont
22748 n
22749 s/.\{148\}/&'"$ac_delim"'/g
22750 t clear
22751 :clear
22752 s/\\$//
22753 t bsnlc
22754 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22755 d
22756 :bsnlc
22757 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22758 b cont
22759 ' <confdefs.h | sed '
22760 s/'"$ac_delim"'/"\\\
22761 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22762
22763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22764 for (key in D) D_is_set[key] = 1
22765 FS = ""
22766 }
22767 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22768 line = \$ 0
22769 split(line, arg, " ")
22770 if (arg[1] == "#") {
22771 defundef = arg[2]
22772 mac1 = arg[3]
22773 } else {
22774 defundef = substr(arg[1], 2)
22775 mac1 = arg[2]
22776 }
22777 split(mac1, mac2, "(") #)
22778 macro = mac2[1]
22779 prefix = substr(line, 1, index(line, defundef) - 1)
22780 if (D_is_set[macro]) {
22781 # Preserve the white space surrounding the "#".
22782 print prefix "define", macro P[macro] D[macro]
22783 next
22784 } else {
22785 # Replace #undef with comments. This is necessary, for example,
22786 # in the case of _POSIX_SOURCE, which is predefined and required
22787 # on some systems where configure will not decide to define it.
22788 if (defundef == "undef") {
22789 print "/*", prefix defundef, macro, "*/"
22790 next
22791 }
22792 }
22793 }
22794 { print }
22795 _ACAWK
22796 _ACEOF
22797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22798 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22799 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22800 { (exit 1); exit 1; }; }
22801 fi # test -n "$CONFIG_HEADERS"
22802
22803
22804 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22805 shift
22806 for ac_tag
22807 do
22808 case $ac_tag in
22809 :[FHLC]) ac_mode=$ac_tag; continue;;
22810 esac
22811 case $ac_mode$ac_tag in
22812 :[FHL]*:*);;
22813 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22814 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22815 { (exit 1); exit 1; }; };;
22816 :[FH]-) ac_tag=-:-;;
22817 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22818 esac
22819 ac_save_IFS=$IFS
22820 IFS=:
22821 set x $ac_tag
22822 IFS=$ac_save_IFS
22823 shift
22824 ac_file=$1
22825 shift
22826
22827 case $ac_mode in
22828 :L) ac_source=$1;;
22829 :[FH])
22830 ac_file_inputs=
22831 for ac_f
22832 do
22833 case $ac_f in
22834 -) ac_f="$tmp/stdin";;
22835 *) # Look for the file first in the build tree, then in the source tree
22836 # (if the path is not absolute). The absolute path cannot be DOS-style,
22837 # because $ac_f cannot contain `:'.
22838 test -f "$ac_f" ||
22839 case $ac_f in
22840 [\\/$]*) false;;
22841 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22842 esac ||
22843 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22844 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22845 { (exit 1); exit 1; }; };;
22846 esac
22847 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22848 ac_file_inputs="$ac_file_inputs '$ac_f'"
22849 done
22850
22851 # Let's still pretend it is `configure' which instantiates (i.e., don't
22852 # use $as_me), people would be surprised to read:
22853 # /* config.h. Generated by config.status. */
22854 configure_input='Generated from '`
22855 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22856 `' by configure.'
22857 if test x"$ac_file" != x-; then
22858 configure_input="$ac_file. $configure_input"
22859 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22860 $as_echo "$as_me: creating $ac_file" >&6;}
22861 fi
22862 # Neutralize special characters interpreted by sed in replacement strings.
22863 case $configure_input in #(
22864 *\&* | *\|* | *\\* )
22865 ac_sed_conf_input=`$as_echo "$configure_input" |
22866 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22867 *) ac_sed_conf_input=$configure_input;;
22868 esac
22869
22870 case $ac_tag in
22871 *:-:* | *:-) cat >"$tmp/stdin" \
22872 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22873 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22874 { (exit 1); exit 1; }; } ;;
22875 esac
22876 ;;
22877 esac
22878
22879 ac_dir=`$as_dirname -- "$ac_file" ||
22880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22881 X"$ac_file" : 'X\(//\)[^/]' \| \
22882 X"$ac_file" : 'X\(//\)$' \| \
22883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22884 $as_echo X"$ac_file" |
22885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22886 s//\1/
22887 q
22888 }
22889 /^X\(\/\/\)[^/].*/{
22890 s//\1/
22891 q
22892 }
22893 /^X\(\/\/\)$/{
22894 s//\1/
22895 q
22896 }
22897 /^X\(\/\).*/{
22898 s//\1/
22899 q
22900 }
22901 s/.*/./; q'`
22902 { as_dir="$ac_dir"
22903 case $as_dir in #(
22904 -*) as_dir=./$as_dir;;
22905 esac
22906 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22907 as_dirs=
22908 while :; do
22909 case $as_dir in #(
22910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22911 *) as_qdir=$as_dir;;
22912 esac
22913 as_dirs="'$as_qdir' $as_dirs"
22914 as_dir=`$as_dirname -- "$as_dir" ||
22915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22916 X"$as_dir" : 'X\(//\)[^/]' \| \
22917 X"$as_dir" : 'X\(//\)$' \| \
22918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22919 $as_echo X"$as_dir" |
22920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22921 s//\1/
22922 q
22923 }
22924 /^X\(\/\/\)[^/].*/{
22925 s//\1/
22926 q
22927 }
22928 /^X\(\/\/\)$/{
22929 s//\1/
22930 q
22931 }
22932 /^X\(\/\).*/{
22933 s//\1/
22934 q
22935 }
22936 s/.*/./; q'`
22937 test -d "$as_dir" && break
22938 done
22939 test -z "$as_dirs" || eval "mkdir $as_dirs"
22940 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22941 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22942 { (exit 1); exit 1; }; }; }
22943 ac_builddir=.
22944
22945 case "$ac_dir" in
22946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22947 *)
22948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22949 # A ".." for each directory in $ac_dir_suffix.
22950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22951 case $ac_top_builddir_sub in
22952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22954 esac ;;
22955 esac
22956 ac_abs_top_builddir=$ac_pwd
22957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22958 # for backward compatibility:
22959 ac_top_builddir=$ac_top_build_prefix
22960
22961 case $srcdir in
22962 .) # We are building in place.
22963 ac_srcdir=.
22964 ac_top_srcdir=$ac_top_builddir_sub
22965 ac_abs_top_srcdir=$ac_pwd ;;
22966 [\\/]* | ?:[\\/]* ) # Absolute name.
22967 ac_srcdir=$srcdir$ac_dir_suffix;
22968 ac_top_srcdir=$srcdir
22969 ac_abs_top_srcdir=$srcdir ;;
22970 *) # Relative name.
22971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22972 ac_top_srcdir=$ac_top_build_prefix$srcdir
22973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22974 esac
22975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22976
22977
22978 case $ac_mode in
22979 :F)
22980 #
22981 # CONFIG_FILE
22982 #
22983
22984 case $INSTALL in
22985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22987 esac
22988 ac_MKDIR_P=$MKDIR_P
22989 case $MKDIR_P in
22990 [\\/$]* | ?:[\\/]* ) ;;
22991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22992 esac
22993 _ACEOF
22994
22995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22996 # If the template does not know about datarootdir, expand it.
22997 # FIXME: This hack should be removed a few years after 2.60.
22998 ac_datarootdir_hack=; ac_datarootdir_seen=
22999
23000 ac_sed_dataroot='
23001 /datarootdir/ {
23002 p
23003 q
23004 }
23005 /@datadir@/p
23006 /@docdir@/p
23007 /@infodir@/p
23008 /@localedir@/p
23009 /@mandir@/p
23010 '
23011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23012 *datarootdir*) ac_datarootdir_seen=yes;;
23013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23014 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23016 _ACEOF
23017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23018 ac_datarootdir_hack='
23019 s&@datadir@&$datadir&g
23020 s&@docdir@&$docdir&g
23021 s&@infodir@&$infodir&g
23022 s&@localedir@&$localedir&g
23023 s&@mandir@&$mandir&g
23024 s&\\\${datarootdir}&$datarootdir&g' ;;
23025 esac
23026 _ACEOF
23027
23028 # Neutralize VPATH when `$srcdir' = `.'.
23029 # Shell code in configure.ac might set extrasub.
23030 # FIXME: do we really want to maintain this feature?
23031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23032 ac_sed_extra="$ac_vpsub
23033 $extrasub
23034 _ACEOF
23035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23036 :t
23037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23038 s|@configure_input@|$ac_sed_conf_input|;t t
23039 s&@top_builddir@&$ac_top_builddir_sub&;t t
23040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23041 s&@srcdir@&$ac_srcdir&;t t
23042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23043 s&@top_srcdir@&$ac_top_srcdir&;t t
23044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23045 s&@builddir@&$ac_builddir&;t t
23046 s&@abs_builddir@&$ac_abs_builddir&;t t
23047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23048 s&@INSTALL@&$ac_INSTALL&;t t
23049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23050 $ac_datarootdir_hack
23051 "
23052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23053 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23054 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23055 { (exit 1); exit 1; }; }
23056
23057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23058 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23059 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23060 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23061 which seems to be undefined. Please make sure it is defined." >&5
23062 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23063 which seems to be undefined. Please make sure it is defined." >&2;}
23064
23065 rm -f "$tmp/stdin"
23066 case $ac_file in
23067 -) cat "$tmp/out" && rm -f "$tmp/out";;
23068 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23069 esac \
23070 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23071 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23072 { (exit 1); exit 1; }; }
23073 ;;
23074 :H)
23075 #
23076 # CONFIG_HEADER
23077 #
23078 if test x"$ac_file" != x-; then
23079 {
23080 $as_echo "/* $configure_input */" \
23081 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23082 } >"$tmp/config.h" \
23083 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23084 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23085 { (exit 1); exit 1; }; }
23086 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23087 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23088 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23089 else
23090 rm -f "$ac_file"
23091 mv "$tmp/config.h" "$ac_file" \
23092 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23093 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23094 { (exit 1); exit 1; }; }
23095 fi
23096 else
23097 $as_echo "/* $configure_input */" \
23098 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23099 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23100 $as_echo "$as_me: error: could not create -" >&2;}
23101 { (exit 1); exit 1; }; }
23102 fi
23103 # Compute "$ac_file"'s index in $config_headers.
23104 _am_arg="$ac_file"
23105 _am_stamp_count=1
23106 for _am_header in $config_headers :; do
23107 case $_am_header in
23108 $_am_arg | $_am_arg:* )
23109 break ;;
23110 * )
23111 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23112 esac
23113 done
23114 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23115 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23116 X"$_am_arg" : 'X\(//\)[^/]' \| \
23117 X"$_am_arg" : 'X\(//\)$' \| \
23118 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23119 $as_echo X"$_am_arg" |
23120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23121 s//\1/
23122 q
23123 }
23124 /^X\(\/\/\)[^/].*/{
23125 s//\1/
23126 q
23127 }
23128 /^X\(\/\/\)$/{
23129 s//\1/
23130 q
23131 }
23132 /^X\(\/\).*/{
23133 s//\1/
23134 q
23135 }
23136 s/.*/./; q'`/stamp-h$_am_stamp_count
23137 ;;
23138
23139 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23140 $as_echo "$as_me: executing $ac_file commands" >&6;}
23141 ;;
23142 esac
23143
23144
23145 case $ac_file$ac_mode in
23146 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
23147 # are listed without --file. Let's play safe and only enable the eval
23148 # if we detect the quoting.
23149 case $CONFIG_FILES in
23150 *\'*) eval set x "$CONFIG_FILES" ;;
23151 *) set x $CONFIG_FILES ;;
23152 esac
23153 shift
23154 for mf
23155 do
23156 # Strip MF so we end up with the name of the file.
23157 mf=`echo "$mf" | sed -e 's/:.*$//'`
23158 # Check whether this is an Automake generated Makefile or not.
23159 # We used to match only the files named `Makefile.in', but
23160 # some people rename them; so instead we look at the file content.
23161 # Grep'ing the first line is not enough: some people post-process
23162 # each Makefile.in and add a new line on top of each file to say so.
23163 # Grep'ing the whole file is not good either: AIX grep has a line
23164 # limit of 2048, but all sed's we know have understand at least 4000.
23165 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23166 dirpart=`$as_dirname -- "$mf" ||
23167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23168 X"$mf" : 'X\(//\)[^/]' \| \
23169 X"$mf" : 'X\(//\)$' \| \
23170 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23171 $as_echo X"$mf" |
23172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23173 s//\1/
23174 q
23175 }
23176 /^X\(\/\/\)[^/].*/{
23177 s//\1/
23178 q
23179 }
23180 /^X\(\/\/\)$/{
23181 s//\1/
23182 q
23183 }
23184 /^X\(\/\).*/{
23185 s//\1/
23186 q
23187 }
23188 s/.*/./; q'`
23189 else
23190 continue
23191 fi
23192 # Extract the definition of DEPDIR, am__include, and am__quote
23193 # from the Makefile without running `make'.
23194 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23195 test -z "$DEPDIR" && continue
23196 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23197 test -z "am__include" && continue
23198 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23199 # When using ansi2knr, U may be empty or an underscore; expand it
23200 U=`sed -n 's/^U = //p' < "$mf"`
23201 # Find all dependency output files, they are included files with
23202 # $(DEPDIR) in their names. We invoke sed twice because it is the
23203 # simplest approach to changing $(DEPDIR) to its actual value in the
23204 # expansion.
23205 for file in `sed -n "
23206 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23207 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23208 # Make sure the directory exists.
23209 test -f "$dirpart/$file" && continue
23210 fdir=`$as_dirname -- "$file" ||
23211 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23212 X"$file" : 'X\(//\)[^/]' \| \
23213 X"$file" : 'X\(//\)$' \| \
23214 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23215 $as_echo X"$file" |
23216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23217 s//\1/
23218 q
23219 }
23220 /^X\(\/\/\)[^/].*/{
23221 s//\1/
23222 q
23223 }
23224 /^X\(\/\/\)$/{
23225 s//\1/
23226 q
23227 }
23228 /^X\(\/\).*/{
23229 s//\1/
23230 q
23231 }
23232 s/.*/./; q'`
23233 { as_dir=$dirpart/$fdir
23234 case $as_dir in #(
23235 -*) as_dir=./$as_dir;;
23236 esac
23237 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23238 as_dirs=
23239 while :; do
23240 case $as_dir in #(
23241 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23242 *) as_qdir=$as_dir;;
23243 esac
23244 as_dirs="'$as_qdir' $as_dirs"
23245 as_dir=`$as_dirname -- "$as_dir" ||
23246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23247 X"$as_dir" : 'X\(//\)[^/]' \| \
23248 X"$as_dir" : 'X\(//\)$' \| \
23249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23250 $as_echo X"$as_dir" |
23251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23252 s//\1/
23253 q
23254 }
23255 /^X\(\/\/\)[^/].*/{
23256 s//\1/
23257 q
23258 }
23259 /^X\(\/\/\)$/{
23260 s//\1/
23261 q
23262 }
23263 /^X\(\/\).*/{
23264 s//\1/
23265 q
23266 }
23267 s/.*/./; q'`
23268 test -d "$as_dir" && break
23269 done
23270 test -z "$as_dirs" || eval "mkdir $as_dirs"
23271 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23272 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23273 { (exit 1); exit 1; }; }; }
23274 # echo "creating $dirpart/$file"
23275 echo '# dummy' > "$dirpart/$file"
23276 done
23277 done
23278 ;;
23279
23280 esac
23281 done # for ac_tag
23282
23283
23284 { (exit 0); exit 0; }
23285 _ACEOF
23286 chmod +x $CONFIG_STATUS
23287 ac_clean_files=$ac_clean_files_save
23288
23289 test $ac_write_fail = 0 ||
23290 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23291 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23292 { (exit 1); exit 1; }; }
23293
23294
23295 # configure is writing to config.log, and then calls config.status.
23296 # config.status does its own redirection, appending to config.log.
23297 # Unfortunately, on DOS this fails, as config.log is still kept open
23298 # by configure, so config.status won't be able to write to it; its
23299 # output is simply discarded. So we exec the FD to /dev/null,
23300 # effectively closing config.log, so it can be properly (re)opened and
23301 # appended to by config.status. When coming back to configure, we
23302 # need to make the FD available again.
23303 if test "$no_create" != yes; then
23304 ac_cs_success=:
23305 ac_config_status_args=
23306 test "$silent" = yes &&
23307 ac_config_status_args="$ac_config_status_args --quiet"
23308 exec 5>/dev/null
23309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23310 exec 5>>config.log
23311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23312 # would make configure fail if this is the last instruction.
23313 $ac_cs_success || { (exit 1); exit 1; }
23314 fi
23315 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23316 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23317 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23318 fi
23319
23320