configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libXau 1.0.5.
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$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libXau'
747 PACKAGE_TARNAME='libXau'
748 PACKAGE_VERSION='1.0.5'
749 PACKAGE_STRING='libXau 1.0.5'
750 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 # include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 # include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 distcleancheck_listfiles
793 CHANGELOG_CMD
794 ADMIN_MAN_DIR
795 DRIVER_MAN_DIR
796 MISC_MAN_DIR
797 FILE_MAN_DIR
798 LIB_MAN_DIR
799 APP_MAN_DIR
800 ADMIN_MAN_SUFFIX
801 DRIVER_MAN_SUFFIX
802 MISC_MAN_SUFFIX
803 FILE_MAN_SUFFIX
804 LIB_MAN_SUFFIX
805 APP_MAN_SUFFIX
806 MAKE_LINT_LIB_FALSE
807 MAKE_LINT_LIB_TRUE
808 LINTLIB
809 LINT_FALSE
810 LINT_TRUE
811 LINT_FLAGS
812 LINT
813 XAU_LIBS
814 XAU_CFLAGS
815 PKG_CONFIG
816 AM_BACKSLASH
817 AM_DEFAULT_VERBOSITY
818 CWARNFLAGS
819 CPP
820 OTOOL64
821 OTOOL
822 LIPO
823 NMEDIT
824 DSYMUTIL
825 lt_ECHO
826 RANLIB
827 AR
828 NM
829 ac_ct_DUMPBIN
830 DUMPBIN
831 LD
832 FGREP
833 EGREP
834 GREP
835 SED
836 LIBTOOL
837 OBJDUMP
838 DLLTOOL
839 AS
840 host_os
841 host_vendor
842 host_cpu
843 host
844 build_os
845 build_vendor
846 build_cpu
847 build
848 LN_S
849 am__fastdepCC_FALSE
850 am__fastdepCC_TRUE
851 CCDEPMODE
852 AMDEPBACKSLASH
853 AMDEP_FALSE
854 AMDEP_TRUE
855 am__quote
856 am__include
857 DEPDIR
858 OBJEXT
859 EXEEXT
860 ac_ct_CC
861 CPPFLAGS
862 LDFLAGS
863 CFLAGS
864 CC
865 MAINT
866 MAINTAINER_MODE_FALSE
867 MAINTAINER_MODE_TRUE
868 am__untar
869 am__tar
870 AMTAR
871 am__leading_dot
872 SET_MAKE
873 AWK
874 mkdir_p
875 MKDIR_P
876 INSTALL_STRIP_PROGRAM
877 STRIP
878 install_sh
879 MAKEINFO
880 AUTOHEADER
881 AUTOMAKE
882 AUTOCONF
883 ACLOCAL
884 VERSION
885 PACKAGE
886 CYGPATH_W
887 am__isrc
888 INSTALL_DATA
889 INSTALL_SCRIPT
890 INSTALL_PROGRAM
891 target_alias
892 host_alias
893 build_alias
894 LIBS
895 ECHO_T
896 ECHO_N
897 ECHO_C
898 DEFS
899 mandir
900 localedir
901 libdir
902 psdir
903 pdfdir
904 dvidir
905 htmldir
906 infodir
907 docdir
908 oldincludedir
909 includedir
910 localstatedir
911 sharedstatedir
912 sysconfdir
913 datadir
914 datarootdir
915 libexecdir
916 sbindir
917 bindir
918 program_transform_name
919 prefix
920 exec_prefix
921 PACKAGE_BUGREPORT
922 PACKAGE_STRING
923 PACKAGE_VERSION
924 PACKAGE_TARNAME
925 PACKAGE_NAME
926 PATH_SEPARATOR
927 SHELL'
928 ac_subst_files=''
929 ac_user_opts='
930 enable_option_checking
931 enable_maintainer_mode
932 enable_dependency_tracking
933 enable_shared
934 enable_static
935 with_pic
936 enable_fast_install
937 with_gnu_ld
938 enable_libtool_lock
939 enable_silent_rules
940 enable_xthreads
941 with_lint
942 enable_lint_library
943 with_release_version
944 '
945 ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 CPP
954 PKG_CONFIG
955 XAU_CFLAGS
956 XAU_LIBS'
957
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1077
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1082
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1087
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1104
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1113
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1117
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1124
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1129
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1135
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1142
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1147
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1152
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1159
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1164
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1171
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1176
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1180
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1184
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1188
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1197
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1202
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1209
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1216
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1233
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1238
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1243
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1247
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1253
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1264
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1269
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1274
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1281
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1286
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1289
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1292
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1309
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1315 { (exit 1); exit 1; }; }
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1319 *"
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=no ;;
1326
1327 --x)
1328 # Obsolete; use --with-x.
1329 with_x=yes ;;
1330
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1337
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1344
1345 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1346 Try \`$0 --help' for more information." >&2
1347 { (exit 1); exit 1; }; }
1348 ;;
1349
1350 *=*)
1351 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1355 { (exit 1); exit 1; }; }
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1358
1359 *)
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365 ;;
1366
1367 esac
1368 done
1369
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1373 { (exit 1); exit 1; }; }
1374 fi
1375
1376 if test -n "$ac_unrecognized_opts"; then
1377 case $enable_option_checking in
1378 no) ;;
1379 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1380 { (exit 1); exit 1; }; } ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1383 fi
1384
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1390 do
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1404 { (exit 1); exit 1; }; }
1405 done
1406
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1410 build=$build_alias
1411 host=$host_alias
1412 target=$target_alias
1413
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x; then
1416 if test "x$build_alias" = x; then
1417 cross_compiling=maybe
1418 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1419 If a cross compiler is detected then cross compile mode will be used." >&2
1420 elif test "x$build_alias" != "x$host_alias"; then
1421 cross_compiling=yes
1422 fi
1423 fi
1424
1425 ac_tool_prefix=
1426 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427
1428 test "$silent" = yes && exec 6>/dev/null
1429
1430
1431 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1432 ac_ls_di=`ls -di .` &&
1433 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1434 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1435 { (exit 1); exit 1; }; }
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1438 { (exit 1); exit 1; }; }
1439
1440
1441 # Find the source files, if location was not specified.
1442 if test -z "$srcdir"; then
1443 ac_srcdir_defaulted=yes
1444 # Try the directory containing this script, then the parent directory.
1445 ac_confdir=`$as_dirname -- "$as_myself" ||
1446 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1447 X"$as_myself" : 'X\(//\)[^/]' \| \
1448 X"$as_myself" : 'X\(//\)$' \| \
1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1450 $as_echo X"$as_myself" |
1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\/\)[^/].*/{
1456 s//\1/
1457 q
1458 }
1459 /^X\(\/\/\)$/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\).*/{
1464 s//\1/
1465 q
1466 }
1467 s/.*/./; q'`
1468 srcdir=$ac_confdir
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 srcdir=..
1471 fi
1472 else
1473 ac_srcdir_defaulted=no
1474 fi
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1477 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1478 { (exit 1); exit 1; }; }
1479 fi
1480 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 ac_abs_confdir=`(
1482 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1483 { (exit 1); exit 1; }; }
1484 pwd)`
1485 # When building in place, set srcdir=.
1486 if test "$ac_abs_confdir" = "$ac_pwd"; then
1487 srcdir=.
1488 fi
1489 # Remove unnecessary trailing slashes from srcdir.
1490 # Double slashes in file names in object file debugging info
1491 # mess up M-x gdb in Emacs.
1492 case $srcdir in
1493 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 esac
1495 for ac_var in $ac_precious_vars; do
1496 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_env_${ac_var}_value=\$${ac_var}
1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 done
1501
1502 #
1503 # Report the --help message.
1504 #
1505 if test "$ac_init_help" = "long"; then
1506 # Omit some internal or obsolete options to make the list less imposing.
1507 # This message is too long to be a string in the A/UX 3.1 sh.
1508 cat <<_ACEOF
1509 \`configure' configures libXau 1.0.5 to adapt to many kinds of systems.
1510
1511 Usage: $0 [OPTION]... [VAR=VALUE]...
1512
1513 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514 VAR=VALUE. See below for descriptions of some of the useful variables.
1515
1516 Defaults for the options are specified in brackets.
1517
1518 Configuration:
1519 -h, --help display this help and exit
1520 --help=short display options specific to this package
1521 --help=recursive display the short help of all the included packages
1522 -V, --version display version information and exit
1523 -q, --quiet, --silent do not print \`checking...' messages
1524 --cache-file=FILE cache test results in FILE [disabled]
1525 -C, --config-cache alias for \`--cache-file=config.cache'
1526 -n, --no-create do not create output files
1527 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1528
1529 Installation directories:
1530 --prefix=PREFIX install architecture-independent files in PREFIX
1531 [$ac_default_prefix]
1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1533 [PREFIX]
1534
1535 By default, \`make install' will install all the files in
1536 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1537 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538 for instance \`--prefix=\$HOME'.
1539
1540 For better control, use the options below.
1541
1542 Fine tuning of the installation directories:
1543 --bindir=DIR user executables [EPREFIX/bin]
1544 --sbindir=DIR system admin executables [EPREFIX/sbin]
1545 --libexecdir=DIR program executables [EPREFIX/libexec]
1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1549 --libdir=DIR object code libraries [EPREFIX/lib]
1550 --includedir=DIR C header files [PREFIX/include]
1551 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1554 --infodir=DIR info documentation [DATAROOTDIR/info]
1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1556 --mandir=DIR man documentation [DATAROOTDIR/man]
1557 --docdir=DIR documentation root [DATAROOTDIR/doc/libXau]
1558 --htmldir=DIR html documentation [DOCDIR]
1559 --dvidir=DIR dvi documentation [DOCDIR]
1560 --pdfdir=DIR pdf documentation [DOCDIR]
1561 --psdir=DIR ps documentation [DOCDIR]
1562 _ACEOF
1563
1564 cat <<\_ACEOF
1565
1566 Program names:
1567 --program-prefix=PREFIX prepend PREFIX to installed program names
1568 --program-suffix=SUFFIX append SUFFIX to installed program names
1569 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1570
1571 System types:
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574 _ACEOF
1575 fi
1576
1577 if test -n "$ac_init_help"; then
1578 case $ac_init_help in
1579 short | recursive ) echo "Configuration of libXau 1.0.5:";;
1580 esac
1581 cat <<\_ACEOF
1582
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-maintainer-mode enable make rules and dependencies not useful
1588 (and sometimes confusing) to the casual installer
1589 --disable-dependency-tracking speeds up one-time build
1590 --enable-dependency-tracking do not reject slow dependency extractors
1591 --enable-shared[=PKGS] build shared libraries [default=yes]
1592 --enable-static[=PKGS] build static libraries [default=yes]
1593 --enable-fast-install[=PKGS]
1594 optimize for fast installation [default=yes]
1595 --disable-libtool-lock avoid locking (might break parallel builds)
1596 --enable-silent-rules less verbose build output (undo: `make V=1')
1597 --disable-silent-rules verbose build output (undo: `make V=0')
1598 --disable-xthreads Disable libXau support for Multithreading
1599 --enable-lint-library Create lint library (default: disabled)
1600
1601 Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-pic try to use only PIC/non-PIC objects [default=use
1605 both]
1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-lint Use a lint-style source code checker (default:
1608 disabled)
1609 --with-release-version=STRING
1610 Use release version string in package name
1611
1612 Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 LIBS libraries to pass to the linker, e.g. -l<library>
1618 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1619 you have headers in a nonstandard directory <include dir>
1620 CPP C preprocessor
1621 PKG_CONFIG path to pkg-config utility
1622 XAU_CFLAGS C compiler flags for XAU, overriding pkg-config
1623 XAU_LIBS linker flags for XAU, overriding pkg-config
1624
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1627
1628 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1629 _ACEOF
1630 ac_status=$?
1631 fi
1632
1633 if test "$ac_init_help" = "recursive"; then
1634 # If there are subdirs, report their specific --help.
1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636 test -d "$ac_dir" ||
1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638 continue
1639 ac_builddir=.
1640
1641 case "$ac_dir" in
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *)
1644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645 # A ".." for each directory in $ac_dir_suffix.
1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647 case $ac_top_builddir_sub in
1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650 esac ;;
1651 esac
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1656
1657 case $srcdir in
1658 .) # We are building in place.
1659 ac_srcdir=.
1660 ac_top_srcdir=$ac_top_builddir_sub
1661 ac_abs_top_srcdir=$ac_pwd ;;
1662 [\\/]* | ?:[\\/]* ) # Absolute name.
1663 ac_srcdir=$srcdir$ac_dir_suffix;
1664 ac_top_srcdir=$srcdir
1665 ac_abs_top_srcdir=$srcdir ;;
1666 *) # Relative name.
1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 esac
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673 cd "$ac_dir" || { ac_status=$?; continue; }
1674 # Check for guested configure.
1675 if test -f "$ac_srcdir/configure.gnu"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678 elif test -f "$ac_srcdir/configure"; then
1679 echo &&
1680 $SHELL "$ac_srcdir/configure" --help=recursive
1681 else
1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 fi || ac_status=$?
1684 cd "$ac_pwd" || { ac_status=$?; break; }
1685 done
1686 fi
1687
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1690 cat <<\_ACEOF
1691 libXau configure 1.0.5
1692 generated by GNU Autoconf 2.63
1693
1694 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1695 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1698 _ACEOF
1699 exit
1700 fi
1701 cat >config.log <<_ACEOF
1702 This file contains any messages produced by compilers while
1703 running configure, to aid debugging if configure makes a mistake.
1704
1705 It was created by libXau $as_me 1.0.5, which was
1706 generated by GNU Autoconf 2.63. Invocation command line was
1707
1708 $ $0 $@
1709
1710 _ACEOF
1711 exec 5>>config.log
1712 {
1713 cat <<_ASUNAME
1714 ## --------- ##
1715 ## Platform. ##
1716 ## --------- ##
1717
1718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1723
1724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1725 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1726
1727 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1728 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1730 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1731 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1732 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1733 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1734
1735 _ASUNAME
1736
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 $as_echo "PATH: $as_dir"
1743 done
1744 IFS=$as_save_IFS
1745
1746 } >&5
1747
1748 cat >&5 <<_ACEOF
1749
1750
1751 ## ----------- ##
1752 ## Core tests. ##
1753 ## ----------- ##
1754
1755 _ACEOF
1756
1757
1758 # Keep a trace of the command line.
1759 # Strip out --no-create and --no-recursion so they do not pile up.
1760 # Strip out --silent because we don't want to record it for future runs.
1761 # Also quote any args containing shell meta-characters.
1762 # Make two passes to allow for proper duplicate-argument suppression.
1763 ac_configure_args=
1764 ac_configure_args0=
1765 ac_configure_args1=
1766 ac_must_keep_next=false
1767 for ac_pass in 1 2
1768 do
1769 for ac_arg
1770 do
1771 case $ac_arg in
1772 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1774 | -silent | --silent | --silen | --sile | --sil)
1775 continue ;;
1776 *\'*)
1777 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1778 esac
1779 case $ac_pass in
1780 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1781 2)
1782 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1783 if test $ac_must_keep_next = true; then
1784 ac_must_keep_next=false # Got value, back to normal.
1785 else
1786 case $ac_arg in
1787 *=* | --config-cache | -C | -disable-* | --disable-* \
1788 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1789 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1790 | -with-* | --with-* | -without-* | --without-* | --x)
1791 case "$ac_configure_args0 " in
1792 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1793 esac
1794 ;;
1795 -* ) ac_must_keep_next=true ;;
1796 esac
1797 fi
1798 ac_configure_args="$ac_configure_args '$ac_arg'"
1799 ;;
1800 esac
1801 done
1802 done
1803 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1804 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1805
1806 # When interrupted or exit'd, cleanup temporary files, and complete
1807 # config.log. We remove comments because anyway the quotes in there
1808 # would cause problems or look ugly.
1809 # WARNING: Use '\'' to represent an apostrophe within the trap.
1810 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1811 trap 'exit_status=$?
1812 # Save into config.log some information that might help in debugging.
1813 {
1814 echo
1815
1816 cat <<\_ASBOX
1817 ## ---------------- ##
1818 ## Cache variables. ##
1819 ## ---------------- ##
1820 _ASBOX
1821 echo
1822 # The following way of writing the cache mishandles newlines in values,
1823 (
1824 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1825 eval ac_val=\$$ac_var
1826 case $ac_val in #(
1827 *${as_nl}*)
1828 case $ac_var in #(
1829 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1831 esac
1832 case $ac_var in #(
1833 _ | IFS | as_nl) ;; #(
1834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1835 *) $as_unset $ac_var ;;
1836 esac ;;
1837 esac
1838 done
1839 (set) 2>&1 |
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1842 sed -n \
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845 ;; #(
1846 *)
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ;;
1849 esac |
1850 sort
1851 )
1852 echo
1853
1854 cat <<\_ASBOX
1855 ## ----------------- ##
1856 ## Output variables. ##
1857 ## ----------------- ##
1858 _ASBOX
1859 echo
1860 for ac_var in $ac_subst_vars
1861 do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 $as_echo "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1869
1870 if test -n "$ac_subst_files"; then
1871 cat <<\_ASBOX
1872 ## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##
1875 _ASBOX
1876 echo
1877 for ac_var in $ac_subst_files
1878 do
1879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 $as_echo "$ac_var='\''$ac_val'\''"
1884 done | sort
1885 echo
1886 fi
1887
1888 if test -s confdefs.h; then
1889 cat <<\_ASBOX
1890 ## ----------- ##
1891 ## confdefs.h. ##
1892 ## ----------- ##
1893 _ASBOX
1894 echo
1895 cat confdefs.h
1896 echo
1897 fi
1898 test "$ac_signal" != 0 &&
1899 $as_echo "$as_me: caught signal $ac_signal"
1900 $as_echo "$as_me: exit $exit_status"
1901 } >&5
1902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904 exit $exit_status
1905 ' 0
1906 for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908 done
1909 ac_signal=0
1910
1911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1912 rm -f -r conftest* confdefs.h
1913
1914 # Predefined preprocessor variables.
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_STRING "$PACKAGE_STRING"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938 _ACEOF
1939
1940
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer an explicitly selected file to automatically selected ones.
1943 ac_site_file1=NONE
1944 ac_site_file2=NONE
1945 if test -n "$CONFIG_SITE"; then
1946 ac_site_file1=$CONFIG_SITE
1947 elif test "x$prefix" != xNONE; then
1948 ac_site_file1=$prefix/share/config.site
1949 ac_site_file2=$prefix/etc/config.site
1950 else
1951 ac_site_file1=$ac_default_prefix/share/config.site
1952 ac_site_file2=$ac_default_prefix/etc/config.site
1953 fi
1954 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955 do
1956 test "x$ac_site_file" = xNONE && continue
1957 if test -r "$ac_site_file"; then
1958 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1959 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1960 sed 's/^/| /' "$ac_site_file" >&5
1961 . "$ac_site_file"
1962 fi
1963 done
1964
1965 if test -r "$cache_file"; then
1966 # Some versions of bash will fail to source /dev/null (special
1967 # files actually), so we avoid doing that.
1968 if test -f "$cache_file"; then
1969 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1970 $as_echo "$as_me: loading cache $cache_file" >&6;}
1971 case $cache_file in
1972 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1973 *) . "./$cache_file";;
1974 esac
1975 fi
1976 else
1977 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1978 $as_echo "$as_me: creating cache $cache_file" >&6;}
1979 >$cache_file
1980 fi
1981
1982 # Check that the precious variables saved in the cache have kept the same
1983 # value.
1984 ac_cache_corrupted=false
1985 for ac_var in $ac_precious_vars; do
1986 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987 eval ac_new_set=\$ac_env_${ac_var}_set
1988 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989 eval ac_new_val=\$ac_env_${ac_var}_value
1990 case $ac_old_set,$ac_new_set in
1991 set,)
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994 ac_cache_corrupted=: ;;
1995 ,set)
1996 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
1999 ,);;
2000 *)
2001 if test "x$ac_old_val" != "x$ac_new_val"; then
2002 # differences in whitespace do not lead to failure.
2003 ac_old_val_w=`echo x $ac_old_val`
2004 ac_new_val_w=`echo x $ac_new_val`
2005 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2006 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008 ac_cache_corrupted=:
2009 else
2010 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2011 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2012 eval $ac_var=\$ac_old_val
2013 fi
2014 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2015 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2016 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2017 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2018 fi;;
2019 esac
2020 # Pass precious variables to config.status.
2021 if test "$ac_new_set" = set; then
2022 case $ac_new_val in
2023 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 *) ac_arg=$ac_var=$ac_new_val ;;
2025 esac
2026 case " $ac_configure_args " in
2027 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2028 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2029 esac
2030 fi
2031 done
2032 if $ac_cache_corrupted; then
2033 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2036 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2037 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2038 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2039 { (exit 1); exit 1; }; }
2040 fi
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066 ac_ext=c
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071
2072
2073 am__api_version='1.11'
2074
2075 ac_aux_dir=
2076 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2077 if test -f "$ac_dir/install-sh"; then
2078 ac_aux_dir=$ac_dir
2079 ac_install_sh="$ac_aux_dir/install-sh -c"
2080 break
2081 elif test -f "$ac_dir/install.sh"; then
2082 ac_aux_dir=$ac_dir
2083 ac_install_sh="$ac_aux_dir/install.sh -c"
2084 break
2085 elif test -f "$ac_dir/shtool"; then
2086 ac_aux_dir=$ac_dir
2087 ac_install_sh="$ac_aux_dir/shtool install -c"
2088 break
2089 fi
2090 done
2091 if test -z "$ac_aux_dir"; then
2092 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2093 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2094 { (exit 1); exit 1; }; }
2095 fi
2096
2097 # These three variables are undocumented and unsupported,
2098 # and are intended to be withdrawn in a future Autoconf release.
2099 # They can cause serious problems if a builder's source tree is in a directory
2100 # whose full name contains unusual characters.
2101 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2102 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2103 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2104
2105
2106 # Find a good install program. We prefer a C program (faster),
2107 # so one script is as good as another. But avoid the broken or
2108 # incompatible versions:
2109 # SysV /etc/install, /usr/sbin/install
2110 # SunOS /usr/etc/install
2111 # IRIX /sbin/install
2112 # AIX /bin/install
2113 # AmigaOS /C/install, which installs bootblocks on floppy discs
2114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2117 # OS/2's system install, which has a completely different semantic
2118 # ./install, which can be erroneously created by make from ./install.sh.
2119 # Reject install programs that cannot install multiple files.
2120 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2121 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2122 if test -z "$INSTALL"; then
2123 if test "${ac_cv_path_install+set}" = set; then
2124 $as_echo_n "(cached) " >&6
2125 else
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2128 do
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 # Account for people who put trailing slashes in PATH elements.
2132 case $as_dir/ in
2133 ./ | .// | /cC/* | \
2134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2135 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2136 /usr/ucb/* ) ;;
2137 *)
2138 # OSF1 and SCO ODT 3.0 have their own names for install.
2139 # Don't use installbsd from OSF since it installs stuff as root
2140 # by default.
2141 for ac_prog in ginstall scoinst install; do
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2144 if test $ac_prog = install &&
2145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2146 # AIX install. It has an incompatible calling convention.
2147 :
2148 elif test $ac_prog = install &&
2149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150 # program-specific install script used by HP pwplus--don't use.
2151 :
2152 else
2153 rm -rf conftest.one conftest.two conftest.dir
2154 echo one > conftest.one
2155 echo two > conftest.two
2156 mkdir conftest.dir
2157 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2158 test -s conftest.one && test -s conftest.two &&
2159 test -s conftest.dir/conftest.one &&
2160 test -s conftest.dir/conftest.two
2161 then
2162 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2163 break 3
2164 fi
2165 fi
2166 fi
2167 done
2168 done
2169 ;;
2170 esac
2171
2172 done
2173 IFS=$as_save_IFS
2174
2175 rm -rf conftest.one conftest.two conftest.dir
2176
2177 fi
2178 if test "${ac_cv_path_install+set}" = set; then
2179 INSTALL=$ac_cv_path_install
2180 else
2181 # As a last resort, use the slow shell script. Don't cache a
2182 # value for INSTALL within a source directory, because that will
2183 # break other packages using the cache if that directory is
2184 # removed, or if the value is a relative name.
2185 INSTALL=$ac_install_sh
2186 fi
2187 fi
2188 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2189 $as_echo "$INSTALL" >&6; }
2190
2191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2192 # It thinks the first close brace ends the variable substitution.
2193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2194
2195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2196
2197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2198
2199 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2200 $as_echo_n "checking whether build environment is sane... " >&6; }
2201 # Just in case
2202 sleep 1
2203 echo timestamp > conftest.file
2204 # Reject unsafe characters in $srcdir or the absolute working directory
2205 # name. Accept space and tab only in the latter.
2206 am_lf='
2207 '
2208 case `pwd` in
2209 *[\\\"\#\$\&\'\`$am_lf]*)
2210 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2211 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2212 { (exit 1); exit 1; }; };;
2213 esac
2214 case $srcdir in
2215 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2216 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2217 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2218 { (exit 1); exit 1; }; };;
2219 esac
2220
2221 # Do `set' in a subshell so we don't clobber the current shell's
2222 # arguments. Must try -L first in case configure is actually a
2223 # symlink; some systems play weird games with the mod time of symlinks
2224 # (eg FreeBSD returns the mod time of the symlink's containing
2225 # directory).
2226 if (
2227 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2228 if test "$*" = "X"; then
2229 # -L didn't work.
2230 set X `ls -t "$srcdir/configure" conftest.file`
2231 fi
2232 rm -f conftest.file
2233 if test "$*" != "X $srcdir/configure conftest.file" \
2234 && test "$*" != "X conftest.file $srcdir/configure"; then
2235
2236 # If neither matched, then we have a broken ls. This can happen
2237 # if, for instance, CONFIG_SHELL is bash and it inherits a
2238 # broken ls alias from the environment. This has actually
2239 # happened. Such a system could not be considered "sane".
2240 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2241 alias in your environment" >&5
2242 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2243 alias in your environment" >&2;}
2244 { (exit 1); exit 1; }; }
2245 fi
2246
2247 test "$2" = conftest.file
2248 )
2249 then
2250 # Ok.
2251 :
2252 else
2253 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2254 Check your system clock" >&5
2255 $as_echo "$as_me: error: newly created file is older than distributed files!
2256 Check your system clock" >&2;}
2257 { (exit 1); exit 1; }; }
2258 fi
2259 { $as_echo "$as_me:$LINENO: result: yes" >&5
2260 $as_echo "yes" >&6; }
2261 test "$program_prefix" != NONE &&
2262 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2263 # Use a double $ so make ignores it.
2264 test "$program_suffix" != NONE &&
2265 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2266 # Double any \ or $.
2267 # By default was `s,x,x', remove it if useless.
2268 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2269 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2270
2271 # expand $ac_aux_dir to an absolute path
2272 am_aux_dir=`cd $ac_aux_dir && pwd`
2273
2274 if test x"${MISSING+set}" != xset; then
2275 case $am_aux_dir in
2276 *\ * | *\ *)
2277 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2278 *)
2279 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2280 esac
2281 fi
2282 # Use eval to expand $SHELL
2283 if eval "$MISSING --run true"; then
2284 am_missing_run="$MISSING --run "
2285 else
2286 am_missing_run=
2287 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2288 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2289 fi
2290
2291 if test x"${install_sh}" != xset; then
2292 case $am_aux_dir in
2293 *\ * | *\ *)
2294 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2295 *)
2296 install_sh="\${SHELL} $am_aux_dir/install-sh"
2297 esac
2298 fi
2299
2300 # Installed binaries are usually stripped using `strip' when the user
2301 # run `make install-strip'. However `strip' might not be the right
2302 # tool to use in cross-compilation environments, therefore Automake
2303 # will honor the `STRIP' environment variable to overrule this program.
2304 if test "$cross_compiling" != no; then
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}strip; ac_word=$2
2308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if test "${ac_cv_prog_STRIP+set}" = set; then
2311 $as_echo_n "(cached) " >&6
2312 else
2313 if test -n "$STRIP"; then
2314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2326 fi
2327 done
2328 done
2329 IFS=$as_save_IFS
2330
2331 fi
2332 fi
2333 STRIP=$ac_cv_prog_STRIP
2334 if test -n "$STRIP"; then
2335 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2336 $as_echo "$STRIP" >&6; }
2337 else
2338 { $as_echo "$as_me:$LINENO: result: no" >&5
2339 $as_echo "no" >&6; }
2340 fi
2341
2342
2343 fi
2344 if test -z "$ac_cv_prog_STRIP"; then
2345 ac_ct_STRIP=$STRIP
2346 # Extract the first word of "strip", so it can be a program name with args.
2347 set dummy strip; ac_word=$2
2348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 $as_echo_n "checking for $ac_word... " >&6; }
2350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2351 $as_echo_n "(cached) " >&6
2352 else
2353 if test -n "$ac_ct_STRIP"; then
2354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_ac_ct_STRIP="strip"
2364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 break 2
2366 fi
2367 done
2368 done
2369 IFS=$as_save_IFS
2370
2371 fi
2372 fi
2373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374 if test -n "$ac_ct_STRIP"; then
2375 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2376 $as_echo "$ac_ct_STRIP" >&6; }
2377 else
2378 { $as_echo "$as_me:$LINENO: result: no" >&5
2379 $as_echo "no" >&6; }
2380 fi
2381
2382 if test "x$ac_ct_STRIP" = x; then
2383 STRIP=":"
2384 else
2385 case $cross_compiling:$ac_tool_warned in
2386 yes:)
2387 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2389 ac_tool_warned=yes ;;
2390 esac
2391 STRIP=$ac_ct_STRIP
2392 fi
2393 else
2394 STRIP="$ac_cv_prog_STRIP"
2395 fi
2396
2397 fi
2398 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2399
2400 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2401 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2402 if test -z "$MKDIR_P"; then
2403 if test "${ac_cv_path_mkdir+set}" = set; then
2404 $as_echo_n "(cached) " >&6
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_prog in mkdir gmkdir; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2414 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2415 'mkdir (GNU coreutils) '* | \
2416 'mkdir (coreutils) '* | \
2417 'mkdir (fileutils) '4.1*)
2418 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2419 break 3;;
2420 esac
2421 done
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427
2428 if test "${ac_cv_path_mkdir+set}" = set; then
2429 MKDIR_P="$ac_cv_path_mkdir -p"
2430 else
2431 # As a last resort, use the slow shell script. Don't cache a
2432 # value for MKDIR_P within a source directory, because that will
2433 # break other packages using the cache if that directory is
2434 # removed, or if the value is a relative name.
2435 test -d ./--version && rmdir ./--version
2436 MKDIR_P="$ac_install_sh -d"
2437 fi
2438 fi
2439 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2440 $as_echo "$MKDIR_P" >&6; }
2441
2442 mkdir_p="$MKDIR_P"
2443 case $mkdir_p in
2444 [\\/$]* | ?:[\\/]*) ;;
2445 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2446 esac
2447
2448 for ac_prog in gawk mawk nawk awk
2449 do
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if test "${ac_cv_prog_AWK+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$AWK"; then
2458 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_AWK="$ac_prog"
2468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 AWK=$ac_cv_prog_AWK
2478 if test -n "$AWK"; then
2479 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2480 $as_echo "$AWK" >&6; }
2481 else
2482 { $as_echo "$as_me:$LINENO: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486
2487 test -n "$AWK" && break
2488 done
2489
2490 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2491 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2492 set x ${MAKE-make}
2493 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2494 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2495 $as_echo_n "(cached) " >&6
2496 else
2497 cat >conftest.make <<\_ACEOF
2498 SHELL = /bin/sh
2499 all:
2500 @echo '@@@%%%=$(MAKE)=@@@%%%'
2501 _ACEOF
2502 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2503 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2504 *@@@%%%=?*=@@@%%%*)
2505 eval ac_cv_prog_make_${ac_make}_set=yes;;
2506 *)
2507 eval ac_cv_prog_make_${ac_make}_set=no;;
2508 esac
2509 rm -f conftest.make
2510 fi
2511 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2512 { $as_echo "$as_me:$LINENO: result: yes" >&5
2513 $as_echo "yes" >&6; }
2514 SET_MAKE=
2515 else
2516 { $as_echo "$as_me:$LINENO: result: no" >&5
2517 $as_echo "no" >&6; }
2518 SET_MAKE="MAKE=${MAKE-make}"
2519 fi
2520
2521 rm -rf .tst 2>/dev/null
2522 mkdir .tst 2>/dev/null
2523 if test -d .tst; then
2524 am__leading_dot=.
2525 else
2526 am__leading_dot=_
2527 fi
2528 rmdir .tst 2>/dev/null
2529
2530 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2531 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2532 # is not polluted with repeated "-I."
2533 am__isrc=' -I$(srcdir)'
2534 # test to see if srcdir already configured
2535 if test -f $srcdir/config.status; then
2536 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2537 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2538 { (exit 1); exit 1; }; }
2539 fi
2540 fi
2541
2542 # test whether we have cygpath
2543 if test -z "$CYGPATH_W"; then
2544 if (cygpath --version) >/dev/null 2>/dev/null; then
2545 CYGPATH_W='cygpath -w'
2546 else
2547 CYGPATH_W=echo
2548 fi
2549 fi
2550
2551
2552 # Define the identity of the package.
2553 PACKAGE='libXau'
2554 VERSION='1.0.5'
2555
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE "$PACKAGE"
2559 _ACEOF
2560
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define VERSION "$VERSION"
2564 _ACEOF
2565
2566 # Some tools Automake needs.
2567
2568 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2569
2570
2571 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2572
2573
2574 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2575
2576
2577 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2578
2579
2580 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2581
2582 # We need awk for the "check" target. The system "awk" is bad on
2583 # some platforms.
2584 # Always define AMTAR for backward compatibility.
2585
2586 AMTAR=${AMTAR-"${am_missing_run}tar"}
2587
2588 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2589
2590
2591
2592
2593
2594
2595 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2596 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2597 # Check whether --enable-maintainer-mode was given.
2598 if test "${enable_maintainer_mode+set}" = set; then
2599 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2600 else
2601 USE_MAINTAINER_MODE=no
2602 fi
2603
2604 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2605 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2606 if test $USE_MAINTAINER_MODE = yes; then
2607 MAINTAINER_MODE_TRUE=
2608 MAINTAINER_MODE_FALSE='#'
2609 else
2610 MAINTAINER_MODE_TRUE='#'
2611 MAINTAINER_MODE_FALSE=
2612 fi
2613
2614 MAINT=$MAINTAINER_MODE_TRUE
2615
2616
2617
2618 ac_config_headers="$ac_config_headers config.h"
2619
2620
2621 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2670 $as_echo "$CC" >&6; }
2671 else
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 fi
2678 if test -z "$ac_cv_prog_CC"; then
2679 ac_ct_CC=$CC
2680 # Extract the first word of "gcc", so it can be a program name with args.
2681 set dummy gcc; ac_word=$2
2682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC="gcc"
2698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 $as_echo "$ac_ct_CC" >&6; }
2711 else
2712 { $as_echo "$as_me:$LINENO: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723 ac_tool_warned=yes ;;
2724 esac
2725 CC=$ac_ct_CC
2726 fi
2727 else
2728 CC="$ac_cv_prog_CC"
2729 fi
2730
2731 if test -z "$CC"; then
2732 if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}cc; ac_word=$2
2735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_CC+set}" = set; then
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_CC="${ac_tool_prefix}cc"
2751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2763 $as_echo "$CC" >&6; }
2764 else
2765 { $as_echo "$as_me:$LINENO: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769
2770 fi
2771 fi
2772 if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774 set dummy cc; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 ac_prog_rejected=no
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected=yes
2793 continue
2794 fi
2795 ac_cv_prog_CC="cc"
2796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 if test $ac_prog_rejected = yes; then
2804 # We found a bogon in the path, so make sure we never use it.
2805 set dummy $ac_cv_prog_CC
2806 shift
2807 if test $# != 0; then
2808 # We chose a different compiler from the bogus one.
2809 # However, it has the same basename, so the bogon will be chosen
2810 # first if we set CC to just the basename; use the full file name.
2811 shift
2812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2813 fi
2814 fi
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2821 else
2822 { $as_echo "$as_me:$LINENO: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 if test -z "$CC"; then
2829 if test -n "$ac_tool_prefix"; then
2830 for ac_prog in cl.exe
2831 do
2832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2834 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864 { $as_echo "$as_me:$LINENO: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869 test -n "$CC" && break
2870 done
2871 fi
2872 if test -z "$CC"; then
2873 ac_ct_CC=$CC
2874 for ac_prog in cl.exe
2875 do
2876 # Extract the first word of "$ac_prog", so it can be a program name with args.
2877 set dummy $ac_prog; ac_word=$2
2878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$ac_ct_CC"; then
2884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_ac_ct_CC="$ac_prog"
2894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2907 else
2908 { $as_echo "$as_me:$LINENO: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912
2913 test -n "$ac_ct_CC" && break
2914 done
2915
2916 if test "x$ac_ct_CC" = x; then
2917 CC=""
2918 else
2919 case $cross_compiling:$ac_tool_warned in
2920 yes:)
2921 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925 CC=$ac_ct_CC
2926 fi
2927 fi
2928
2929 fi
2930
2931
2932 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2935 See \`config.log' for more details." >&5
2936 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2937 See \`config.log' for more details." >&2;}
2938 { (exit 1); exit 1; }; }; }
2939
2940 # Provide some information about the compiler.
2941 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2942 set X $ac_compile
2943 ac_compiler=$2
2944 { (ac_try="$ac_compiler --version >&5"
2945 case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950 $as_echo "$ac_try_echo") >&5
2951 (eval "$ac_compiler --version >&5") 2>&5
2952 ac_status=$?
2953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2955 { (ac_try="$ac_compiler -v >&5"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2961 $as_echo "$ac_try_echo") >&5
2962 (eval "$ac_compiler -v >&5") 2>&5
2963 ac_status=$?
2964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }
2966 { (ac_try="$ac_compiler -V >&5"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2972 $as_echo "$ac_try_echo") >&5
2973 (eval "$ac_compiler -V >&5") 2>&5
2974 ac_status=$?
2975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }
2977
2978 cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h. */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984
2985 int
2986 main ()
2987 {
2988
2989 ;
2990 return 0;
2991 }
2992 _ACEOF
2993 ac_clean_files_save=$ac_clean_files
2994 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2995 # Try to create an executable without -o first, disregard a.out.
2996 # It will help us diagnose broken compilers, and finding out an intuition
2997 # of exeext.
2998 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2999 $as_echo_n "checking for C compiler default output file name... " >&6; }
3000 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3001
3002 # The possible output files:
3003 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3004
3005 ac_rmfiles=
3006 for ac_file in $ac_files
3007 do
3008 case $ac_file in
3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3010 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3011 esac
3012 done
3013 rm -f $ac_rmfiles
3014
3015 if { (ac_try="$ac_link_default"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3021 $as_echo "$ac_try_echo") >&5
3022 (eval "$ac_link_default") 2>&5
3023 ac_status=$?
3024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; then
3026 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3027 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3028 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3029 # so that the user can short-circuit this test for compilers unknown to
3030 # Autoconf.
3031 for ac_file in $ac_files ''
3032 do
3033 test -f "$ac_file" || continue
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3036 ;;
3037 [ab].out )
3038 # We found the default executable, but exeext='' is most
3039 # certainly right.
3040 break;;
3041 *.* )
3042 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3043 then :; else
3044 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3045 fi
3046 # We set ac_cv_exeext here because the later test for it is not
3047 # safe: cross compilers may not add the suffix if given an `-o'
3048 # argument, so we may need to know it at that point already.
3049 # Even if this section looks crufty: it has the advantage of
3050 # actually working.
3051 break;;
3052 * )
3053 break;;
3054 esac
3055 done
3056 test "$ac_cv_exeext" = no && ac_cv_exeext=
3057
3058 else
3059 ac_file=''
3060 fi
3061
3062 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 if test -z "$ac_file"; then
3065 $as_echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3071 See \`config.log' for more details." >&5
3072 $as_echo "$as_me: error: C compiler cannot create executables
3073 See \`config.log' for more details." >&2;}
3074 { (exit 77); exit 77; }; }; }
3075 fi
3076
3077 ac_exeext=$ac_cv_exeext
3078
3079 # Check that the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3082 $as_echo_n "checking whether the C compiler works... " >&6; }
3083 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3084 # If not cross compiling, check that we can run a simple program.
3085 if test "$cross_compiling" != yes; then
3086 if { ac_try='./$ac_file'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 $as_echo "$ac_try_echo") >&5
3093 (eval "$ac_try") 2>&5
3094 ac_status=$?
3095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 cross_compiling=no
3098 else
3099 if test "$cross_compiling" = maybe; then
3100 cross_compiling=yes
3101 else
3102 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3105 If you meant to cross compile, use \`--host'.
3106 See \`config.log' for more details." >&5
3107 $as_echo "$as_me: error: cannot run C compiled programs.
3108 If you meant to cross compile, use \`--host'.
3109 See \`config.log' for more details." >&2;}
3110 { (exit 1); exit 1; }; }; }
3111 fi
3112 fi
3113 fi
3114 { $as_echo "$as_me:$LINENO: result: yes" >&5
3115 $as_echo "yes" >&6; }
3116
3117 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3118 ac_clean_files=$ac_clean_files_save
3119 # Check that the compiler produces executables we can run. If not, either
3120 # the compiler is broken, or we cross compile.
3121 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3122 $as_echo_n "checking whether we are cross compiling... " >&6; }
3123 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3124 $as_echo "$cross_compiling" >&6; }
3125
3126 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3127 $as_echo_n "checking for suffix of executables... " >&6; }
3128 if { (ac_try="$ac_link"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134 $as_echo "$ac_try_echo") >&5
3135 (eval "$ac_link") 2>&5
3136 ac_status=$?
3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; then
3139 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3140 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3141 # work properly (i.e., refer to `conftest.exe'), while it won't with
3142 # `rm'.
3143 for ac_file in conftest.exe conftest conftest.*; do
3144 test -f "$ac_file" || continue
3145 case $ac_file in
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148 break;;
3149 * ) break;;
3150 esac
3151 done
3152 else
3153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3156 See \`config.log' for more details." >&5
3157 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&2;}
3159 { (exit 1); exit 1; }; }; }
3160 fi
3161
3162 rm -f conftest$ac_cv_exeext
3163 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3164 $as_echo "$ac_cv_exeext" >&6; }
3165
3166 rm -f conftest.$ac_ext
3167 EXEEXT=$ac_cv_exeext
3168 ac_exeext=$EXEEXT
3169 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3170 $as_echo_n "checking for suffix of object files... " >&6; }
3171 if test "${ac_cv_objext+set}" = set; then
3172 $as_echo_n "(cached) " >&6
3173 else
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180
3181 int
3182 main ()
3183 {
3184
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.o conftest.obj
3190 if { (ac_try="$ac_compile"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3196 $as_echo "$ac_try_echo") >&5
3197 (eval "$ac_compile") 2>&5
3198 ac_status=$?
3199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 for ac_file in conftest.o conftest.obj conftest.*; do
3202 test -f "$ac_file" || continue;
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3205 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3206 break;;
3207 esac
3208 done
3209 else
3210 $as_echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3216 See \`config.log' for more details." >&5
3217 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&2;}
3219 { (exit 1); exit 1; }; }; }
3220 fi
3221
3222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3223 fi
3224 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3225 $as_echo "$ac_cv_objext" >&6; }
3226 OBJEXT=$ac_cv_objext
3227 ac_objext=$OBJEXT
3228 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3229 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3230 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3232 else
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h. */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239
3240 int
3241 main ()
3242 {
3243 #ifndef __GNUC__
3244 choke me
3245 #endif
3246
3247 ;
3248 return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258 $as_echo "$ac_try_echo") >&5
3259 (eval "$ac_compile") 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } && {
3266 test -z "$ac_c_werror_flag" ||
3267 test ! -s conftest.err
3268 } && test -s conftest.$ac_objext; then
3269 ac_compiler_gnu=yes
3270 else
3271 $as_echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 ac_compiler_gnu=no
3275 fi
3276
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3279
3280 fi
3281 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3282 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3283 if test $ac_compiler_gnu = yes; then
3284 GCC=yes
3285 else
3286 GCC=
3287 fi
3288 ac_test_CFLAGS=${CFLAGS+set}
3289 ac_save_CFLAGS=$CFLAGS
3290 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3291 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3292 if test "${ac_cv_prog_cc_g+set}" = set; then
3293 $as_echo_n "(cached) " >&6
3294 else
3295 ac_save_c_werror_flag=$ac_c_werror_flag
3296 ac_c_werror_flag=yes
3297 ac_cv_prog_cc_g=no
3298 CFLAGS="-g"
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305
3306 int
3307 main ()
3308 {
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3332 ac_cv_prog_cc_g=yes
3333 else
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 CFLAGS=""
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compile") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest.$ac_objext; then
3371 :
3372 else
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3377 CFLAGS="-g"
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384
3385 int
3386 main ()
3387 {
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400 $as_echo "$ac_try_echo") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_cv_prog_cc_g=yes
3412 else
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417 fi
3418
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 fi
3421
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3427 fi
3428 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429 $as_echo "$ac_cv_prog_cc_g" >&6; }
3430 if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3434 CFLAGS="-g -O2"
3435 else
3436 CFLAGS="-g"
3437 fi
3438 else
3439 if test "$GCC" = yes; then
3440 CFLAGS="-O2"
3441 else
3442 CFLAGS=
3443 fi
3444 fi
3445 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3446 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447 if test "${ac_cv_prog_cc_c89+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3449 else
3450 ac_cv_prog_cc_c89=no
3451 ac_save_CC=$CC
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 #include <stdarg.h>
3459 #include <stdio.h>
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3466 char **p;
3467 int i;
3468 {
3469 return p[i];
3470 }
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3472 {
3473 char *s;
3474 va_list v;
3475 va_start (v,p);
3476 s = g (p, va_arg (v,int));
3477 va_end (v);
3478 return s;
3479 }
3480
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3492 #define FOO(x) 'x'
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 int argc;
3500 char **argv;
3501 int
3502 main ()
3503 {
3504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 do
3512 CC="$ac_save_CC $ac_arg"
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520 $as_echo "$ac_try_echo") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3531 ac_cv_prog_cc_c89=$ac_arg
3532 else
3533 $as_echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536
3537 fi
3538
3539 rm -f core conftest.err conftest.$ac_objext
3540 test "x$ac_cv_prog_cc_c89" != "xno" && break
3541 done
3542 rm -f conftest.$ac_ext
3543 CC=$ac_save_CC
3544
3545 fi
3546 # AC_CACHE_VAL
3547 case "x$ac_cv_prog_cc_c89" in
3548 x)
3549 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3550 $as_echo "none needed" >&6; } ;;
3551 xno)
3552 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3553 $as_echo "unsupported" >&6; } ;;
3554 *)
3555 CC="$CC $ac_cv_prog_cc_c89"
3556 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3557 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3558 esac
3559
3560
3561 ac_ext=c
3562 ac_cpp='$CPP $CPPFLAGS'
3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566 DEPDIR="${am__leading_dot}deps"
3567
3568 ac_config_commands="$ac_config_commands depfiles"
3569
3570
3571 am_make=${MAKE-make}
3572 cat > confinc << 'END'
3573 am__doit:
3574 @echo this is the am__doit target
3575 .PHONY: am__doit
3576 END
3577 # If we don't find an include directive, just comment out the code.
3578 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3579 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3580 am__include="#"
3581 am__quote=
3582 _am_result=none
3583 # First try GNU make style include.
3584 echo "include confinc" > confmf
3585 # Ignore all kinds of additional output from `make'.
3586 case `$am_make -s -f confmf 2> /dev/null` in #(
3587 *the\ am__doit\ target*)
3588 am__include=include
3589 am__quote=
3590 _am_result=GNU
3591 ;;
3592 esac
3593 # Now try BSD make style include.
3594 if test "$am__include" = "#"; then
3595 echo '.include "confinc"' > confmf
3596 case `$am_make -s -f confmf 2> /dev/null` in #(
3597 *the\ am__doit\ target*)
3598 am__include=.include
3599 am__quote="\""
3600 _am_result=BSD
3601 ;;
3602 esac
3603 fi
3604
3605
3606 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3607 $as_echo "$_am_result" >&6; }
3608 rm -f confinc confmf
3609
3610 # Check whether --enable-dependency-tracking was given.
3611 if test "${enable_dependency_tracking+set}" = set; then
3612 enableval=$enable_dependency_tracking;
3613 fi
3614
3615 if test "x$enable_dependency_tracking" != xno; then
3616 am_depcomp="$ac_aux_dir/depcomp"
3617 AMDEPBACKSLASH='\'
3618 fi
3619 if test "x$enable_dependency_tracking" != xno; then
3620 AMDEP_TRUE=
3621 AMDEP_FALSE='#'
3622 else
3623 AMDEP_TRUE='#'
3624 AMDEP_FALSE=
3625 fi
3626
3627
3628
3629 depcc="$CC" am_compiler_list=
3630
3631 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3632 $as_echo_n "checking dependency style of $depcc... " >&6; }
3633 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3637 # We make a subdir and do the tests there. Otherwise we can end up
3638 # making bogus files that we don't know about and never remove. For
3639 # instance it was reported that on HP-UX the gcc test will end up
3640 # making a dummy file named `D' -- because `-MD' means `put the output
3641 # in D'.
3642 mkdir conftest.dir
3643 # Copy depcomp to subdir because otherwise we won't find it if we're
3644 # using a relative directory.
3645 cp "$am_depcomp" conftest.dir
3646 cd conftest.dir
3647 # We will build objects and dependencies in a subdirectory because
3648 # it helps to detect inapplicable dependency modes. For instance
3649 # both Tru64's cc and ICC support -MD to output dependencies as a
3650 # side effect of compilation, but ICC will put the dependencies in
3651 # the current directory while Tru64 will put them in the object
3652 # directory.
3653 mkdir sub
3654
3655 am_cv_CC_dependencies_compiler_type=none
3656 if test "$am_compiler_list" = ""; then
3657 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3658 fi
3659 am__universal=false
3660 case " $depcc " in #(
3661 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3662 esac
3663
3664 for depmode in $am_compiler_list; do
3665 # Setup a source with many dependencies, because some compilers
3666 # like to wrap large dependency lists on column 80 (with \), and
3667 # we should not choose a depcomp mode which is confused by this.
3668 #
3669 # We need to recreate these files for each test, as the compiler may
3670 # overwrite some of them when testing with obscure command lines.
3671 # This happens at least with the AIX C compiler.
3672 : > sub/conftest.c
3673 for i in 1 2 3 4 5 6; do
3674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3676 # Solaris 8's {/usr,}/bin/sh.
3677 touch sub/conftst$i.h
3678 done
3679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3680
3681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3682 # mode. It turns out that the SunPro C++ compiler does not properly
3683 # handle `-M -o', and we need to detect this. Also, some Intel
3684 # versions had trouble with output in subdirs
3685 am__obj=sub/conftest.${OBJEXT-o}
3686 am__minus_obj="-o $am__obj"
3687 case $depmode in
3688 gcc)
3689 # This depmode causes a compiler race in universal mode.
3690 test "$am__universal" = false || continue
3691 ;;
3692 nosideeffect)
3693 # after this tag, mechanisms are not by side-effect, so they'll
3694 # only be used when explicitly requested
3695 if test "x$enable_dependency_tracking" = xyes; then
3696 continue
3697 else
3698 break
3699 fi
3700 ;;
3701 msvisualcpp | msvcmsys)
3702 # This compiler won't grok `-c -o', but also, the minuso test has
3703 # not run yet. These depmodes are late enough in the game, and
3704 # so weak that their functioning should not be impacted.
3705 am__obj=conftest.${OBJEXT-o}
3706 am__minus_obj=
3707 ;;
3708 none) break ;;
3709 esac
3710 if depmode=$depmode \
3711 source=sub/conftest.c object=$am__obj \
3712 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3713 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3714 >/dev/null 2>conftest.err &&
3715 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719 # icc doesn't choke on unknown options, it will just issue warnings
3720 # or remarks (even with -Werror). So we grep stderr for any message
3721 # that says an option was ignored or not supported.
3722 # When given -MP, icc 7.0 and 7.1 complain thusly:
3723 # icc: Command line warning: ignoring option '-M'; no argument required
3724 # The diagnosis changed in icc 8.0:
3725 # icc: Command line remark: option '-MP' not supported
3726 if (grep 'ignoring option' conftest.err ||
3727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728 am_cv_CC_dependencies_compiler_type=$depmode
3729 break
3730 fi
3731 fi
3732 done
3733
3734 cd ..
3735 rm -rf conftest.dir
3736 else
3737 am_cv_CC_dependencies_compiler_type=none
3738 fi
3739
3740 fi
3741 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3742 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3744
3745 if
3746 test "x$enable_dependency_tracking" != xno \
3747 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3748 am__fastdepCC_TRUE=
3749 am__fastdepCC_FALSE='#'
3750 else
3751 am__fastdepCC_TRUE='#'
3752 am__fastdepCC_FALSE=
3753 fi
3754
3755
3756 # Find a good install program. We prefer a C program (faster),
3757 # so one script is as good as another. But avoid the broken or
3758 # incompatible versions:
3759 # SysV /etc/install, /usr/sbin/install
3760 # SunOS /usr/etc/install
3761 # IRIX /sbin/install
3762 # AIX /bin/install
3763 # AmigaOS /C/install, which installs bootblocks on floppy discs
3764 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3765 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3766 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3767 # OS/2's system install, which has a completely different semantic
3768 # ./install, which can be erroneously created by make from ./install.sh.
3769 # Reject install programs that cannot install multiple files.
3770 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3771 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3772 if test -z "$INSTALL"; then
3773 if test "${ac_cv_path_install+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 # Account for people who put trailing slashes in PATH elements.
3782 case $as_dir/ in
3783 ./ | .// | /cC/* | \
3784 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3785 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3786 /usr/ucb/* ) ;;
3787 *)
3788 # OSF1 and SCO ODT 3.0 have their own names for install.
3789 # Don't use installbsd from OSF since it installs stuff as root
3790 # by default.
3791 for ac_prog in ginstall scoinst install; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3794 if test $ac_prog = install &&
3795 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3796 # AIX install. It has an incompatible calling convention.
3797 :
3798 elif test $ac_prog = install &&
3799 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3800 # program-specific install script used by HP pwplus--don't use.
3801 :
3802 else
3803 rm -rf conftest.one conftest.two conftest.dir
3804 echo one > conftest.one
3805 echo two > conftest.two
3806 mkdir conftest.dir
3807 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3808 test -s conftest.one && test -s conftest.two &&
3809 test -s conftest.dir/conftest.one &&
3810 test -s conftest.dir/conftest.two
3811 then
3812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3813 break 3
3814 fi
3815 fi
3816 fi
3817 done
3818 done
3819 ;;
3820 esac
3821
3822 done
3823 IFS=$as_save_IFS
3824
3825 rm -rf conftest.one conftest.two conftest.dir
3826
3827 fi
3828 if test "${ac_cv_path_install+set}" = set; then
3829 INSTALL=$ac_cv_path_install
3830 else
3831 # As a last resort, use the slow shell script. Don't cache a
3832 # value for INSTALL within a source directory, because that will
3833 # break other packages using the cache if that directory is
3834 # removed, or if the value is a relative name.
3835 INSTALL=$ac_install_sh
3836 fi
3837 fi
3838 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3839 $as_echo "$INSTALL" >&6; }
3840
3841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3842 # It thinks the first close brace ends the variable substitution.
3843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3844
3845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3846
3847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3848
3849 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3850 $as_echo_n "checking whether ln -s works... " >&6; }
3851 LN_S=$as_ln_s
3852 if test "$LN_S" = "ln -s"; then
3853 { $as_echo "$as_me:$LINENO: result: yes" >&5
3854 $as_echo "yes" >&6; }
3855 else
3856 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3857 $as_echo "no, using $LN_S" >&6; }
3858 fi
3859
3860 # Make sure we can run config.sub.
3861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3862 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3863 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3864 { (exit 1); exit 1; }; }
3865
3866 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3867 $as_echo_n "checking build system type... " >&6; }
3868 if test "${ac_cv_build+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_build_alias=$build_alias
3872 test "x$ac_build_alias" = x &&
3873 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3874 test "x$ac_build_alias" = x &&
3875 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3876 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3877 { (exit 1); exit 1; }; }
3878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3879 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3880 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3881 { (exit 1); exit 1; }; }
3882
3883 fi
3884 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3885 $as_echo "$ac_cv_build" >&6; }
3886 case $ac_cv_build in
3887 *-*-*) ;;
3888 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3889 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3890 { (exit 1); exit 1; }; };;
3891 esac
3892 build=$ac_cv_build
3893 ac_save_IFS=$IFS; IFS='-'
3894 set x $ac_cv_build
3895 shift
3896 build_cpu=$1
3897 build_vendor=$2
3898 shift; shift
3899 # Remember, the first character of IFS is used to create $*,
3900 # except with old shells:
3901 build_os=$*
3902 IFS=$ac_save_IFS
3903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3904
3905
3906 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3907 $as_echo_n "checking host system type... " >&6; }
3908 if test "${ac_cv_host+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test "x$host_alias" = x; then
3912 ac_cv_host=$ac_cv_build
3913 else
3914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3915 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3916 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3917 { (exit 1); exit 1; }; }
3918 fi
3919
3920 fi
3921 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3922 $as_echo "$ac_cv_host" >&6; }
3923 case $ac_cv_host in
3924 *-*-*) ;;
3925 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3926 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3927 { (exit 1); exit 1; }; };;
3928 esac
3929 host=$ac_cv_host
3930 ac_save_IFS=$IFS; IFS='-'
3931 set x $ac_cv_host
3932 shift
3933 host_cpu=$1
3934 host_vendor=$2
3935 shift; shift
3936 # Remember, the first character of IFS is used to create $*,
3937 # except with old shells:
3938 host_os=$*
3939 IFS=$ac_save_IFS
3940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3941
3942
3943 enable_win32_dll=yes
3944
3945 case $host in
3946 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3947 if test -n "$ac_tool_prefix"; then
3948 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3949 set dummy ${ac_tool_prefix}as; ac_word=$2
3950 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if test "${ac_cv_prog_AS+set}" = set; then
3953 $as_echo_n "(cached) " >&6
3954 else
3955 if test -n "$AS"; then
3956 ac_cv_prog_AS="$AS" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965 ac_cv_prog_AS="${ac_tool_prefix}as"
3966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3968 fi
3969 done
3970 done
3971 IFS=$as_save_IFS
3972
3973 fi
3974 fi
3975 AS=$ac_cv_prog_AS
3976 if test -n "$AS"; then
3977 { $as_echo "$as_me:$LINENO: result: $AS" >&5
3978 $as_echo "$AS" >&6; }
3979 else
3980 { $as_echo "$as_me:$LINENO: result: no" >&5
3981 $as_echo "no" >&6; }
3982 fi
3983
3984
3985 fi
3986 if test -z "$ac_cv_prog_AS"; then
3987 ac_ct_AS=$AS
3988 # Extract the first word of "as", so it can be a program name with args.
3989 set dummy as; ac_word=$2
3990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$ac_ct_AS"; then
3996 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_prog_ac_ct_AS="as"
4006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4016 if test -n "$ac_ct_AS"; then
4017 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4018 $as_echo "$ac_ct_AS" >&6; }
4019 else
4020 { $as_echo "$as_me:$LINENO: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024 if test "x$ac_ct_AS" = x; then
4025 AS="false"
4026 else
4027 case $cross_compiling:$ac_tool_warned in
4028 yes:)
4029 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4031 ac_tool_warned=yes ;;
4032 esac
4033 AS=$ac_ct_AS
4034 fi
4035 else
4036 AS="$ac_cv_prog_AS"
4037 fi
4038
4039 if test -n "$ac_tool_prefix"; then
4040 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 $as_echo_n "checking for $ac_word... " >&6; }
4044 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -n "$DLLTOOL"; then
4048 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4057 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4060 fi
4061 done
4062 done
4063 IFS=$as_save_IFS
4064
4065 fi
4066 fi
4067 DLLTOOL=$ac_cv_prog_DLLTOOL
4068 if test -n "$DLLTOOL"; then
4069 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4070 $as_echo "$DLLTOOL" >&6; }
4071 else
4072 { $as_echo "$as_me:$LINENO: result: no" >&5
4073 $as_echo "no" >&6; }
4074 fi
4075
4076
4077 fi
4078 if test -z "$ac_cv_prog_DLLTOOL"; then
4079 ac_ct_DLLTOOL=$DLLTOOL
4080 # Extract the first word of "dlltool", so it can be a program name with args.
4081 set dummy dlltool; ac_word=$2
4082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$ac_ct_DLLTOOL"; then
4088 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4108 if test -n "$ac_ct_DLLTOOL"; then
4109 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4110 $as_echo "$ac_ct_DLLTOOL" >&6; }
4111 else
4112 { $as_echo "$as_me:$LINENO: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116 if test "x$ac_ct_DLLTOOL" = x; then
4117 DLLTOOL="false"
4118 else
4119 case $cross_compiling:$ac_tool_warned in
4120 yes:)
4121 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4123 ac_tool_warned=yes ;;
4124 esac
4125 DLLTOOL=$ac_ct_DLLTOOL
4126 fi
4127 else
4128 DLLTOOL="$ac_cv_prog_DLLTOOL"
4129 fi
4130
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4133 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4135 $as_echo_n "checking for $ac_word... " >&6; }
4136 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -n "$OBJDUMP"; then
4140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4152 fi
4153 done
4154 done
4155 IFS=$as_save_IFS
4156
4157 fi
4158 fi
4159 OBJDUMP=$ac_cv_prog_OBJDUMP
4160 if test -n "$OBJDUMP"; then
4161 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4162 $as_echo "$OBJDUMP" >&6; }
4163 else
4164 { $as_echo "$as_me:$LINENO: result: no" >&5
4165 $as_echo "no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$ac_cv_prog_OBJDUMP"; then
4171 ac_ct_OBJDUMP=$OBJDUMP
4172 # Extract the first word of "objdump", so it can be a program name with args.
4173 set dummy objdump; ac_word=$2
4174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$ac_ct_OBJDUMP"; then
4180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4200 if test -n "$ac_ct_OBJDUMP"; then
4201 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4202 $as_echo "$ac_ct_OBJDUMP" >&6; }
4203 else
4204 { $as_echo "$as_me:$LINENO: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208 if test "x$ac_ct_OBJDUMP" = x; then
4209 OBJDUMP="false"
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217 OBJDUMP=$ac_ct_OBJDUMP
4218 fi
4219 else
4220 OBJDUMP="$ac_cv_prog_OBJDUMP"
4221 fi
4222
4223 ;;
4224 esac
4225
4226 test -z "$AS" && AS=as
4227
4228
4229
4230
4231
4232 test -z "$DLLTOOL" && DLLTOOL=dlltool
4233
4234
4235
4236
4237
4238 test -z "$OBJDUMP" && OBJDUMP=objdump
4239
4240
4241
4242
4243
4244
4245
4246 case `pwd` in
4247 *\ * | *\ *)
4248 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4249 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4250 esac
4251
4252
4253
4254 macro_version='2.2.6'
4255 macro_revision='1.3012'
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 ltmain="$ac_aux_dir/ltmain.sh"
4270
4271 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4272 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4273 if test "${ac_cv_path_SED+set}" = set; then
4274 $as_echo_n "(cached) " >&6
4275 else
4276 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4277 for ac_i in 1 2 3 4 5 6 7; do
4278 ac_script="$ac_script$as_nl$ac_script"
4279 done
4280 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4281 $as_unset ac_script || ac_script=
4282 if test -z "$SED"; then
4283 ac_path_SED_found=false
4284 # Loop through the user's path and test for each of PROGNAME-LIST
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_prog in sed gsed; do
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4293 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4294 # Check for GNU ac_path_SED and select it if it is found.
4295 # Check for GNU $ac_path_SED
4296 case `"$ac_path_SED" --version 2>&1` in
4297 *GNU*)
4298 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4299 *)
4300 ac_count=0
4301 $as_echo_n 0123456789 >"conftest.in"
4302 while :
4303 do
4304 cat "conftest.in" "conftest.in" >"conftest.tmp"
4305 mv "conftest.tmp" "conftest.in"
4306 cp "conftest.in" "conftest.nl"
4307 $as_echo '' >> "conftest.nl"
4308 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310 ac_count=`expr $ac_count + 1`
4311 if test $ac_count -gt ${ac_path_SED_max-0}; then
4312 # Best one so far, save it but keep looking for a better one
4313 ac_cv_path_SED="$ac_path_SED"
4314 ac_path_SED_max=$ac_count
4315 fi
4316 # 10*(2^10) chars as input seems more than enough
4317 test $ac_count -gt 10 && break
4318 done
4319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320 esac
4321
4322 $ac_path_SED_found && break 3
4323 done
4324 done
4325 done
4326 IFS=$as_save_IFS
4327 if test -z "$ac_cv_path_SED"; then
4328 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4329 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4330 { (exit 1); exit 1; }; }
4331 fi
4332 else
4333 ac_cv_path_SED=$SED
4334 fi
4335
4336 fi
4337 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4338 $as_echo "$ac_cv_path_SED" >&6; }
4339 SED="$ac_cv_path_SED"
4340 rm -f conftest.sed
4341
4342 test -z "$SED" && SED=sed
4343 Xsed="$SED -e 1s/^X//"
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4356 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4357 if test "${ac_cv_path_GREP+set}" = set; then
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -z "$GREP"; then
4361 ac_path_GREP_found=false
4362 # Loop through the user's path and test for each of PROGNAME-LIST
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4365 do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_prog in grep ggrep; do
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4371 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4372 # Check for GNU ac_path_GREP and select it if it is found.
4373 # Check for GNU $ac_path_GREP
4374 case `"$ac_path_GREP" --version 2>&1` in
4375 *GNU*)
4376 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4377 *)
4378 ac_count=0
4379 $as_echo_n 0123456789 >"conftest.in"
4380 while :
4381 do
4382 cat "conftest.in" "conftest.in" >"conftest.tmp"
4383 mv "conftest.tmp" "conftest.in"
4384 cp "conftest.in" "conftest.nl"
4385 $as_echo 'GREP' >> "conftest.nl"
4386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388 ac_count=`expr $ac_count + 1`
4389 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4390 # Best one so far, save it but keep looking for a better one
4391 ac_cv_path_GREP="$ac_path_GREP"
4392 ac_path_GREP_max=$ac_count
4393 fi
4394 # 10*(2^10) chars as input seems more than enough
4395 test $ac_count -gt 10 && break
4396 done
4397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398 esac
4399
4400 $ac_path_GREP_found && break 3
4401 done
4402 done
4403 done
4404 IFS=$as_save_IFS
4405 if test -z "$ac_cv_path_GREP"; then
4406 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4408 { (exit 1); exit 1; }; }
4409 fi
4410 else
4411 ac_cv_path_GREP=$GREP
4412 fi
4413
4414 fi
4415 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4416 $as_echo "$ac_cv_path_GREP" >&6; }
4417 GREP="$ac_cv_path_GREP"
4418
4419
4420 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4421 $as_echo_n "checking for egrep... " >&6; }
4422 if test "${ac_cv_path_EGREP+set}" = set; then
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4426 then ac_cv_path_EGREP="$GREP -E"
4427 else
4428 if test -z "$EGREP"; then
4429 ac_path_EGREP_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in egrep; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4439 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4440 # Check for GNU ac_path_EGREP and select it if it is found.
4441 # Check for GNU $ac_path_EGREP
4442 case `"$ac_path_EGREP" --version 2>&1` in
4443 *GNU*)
4444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4445 *)
4446 ac_count=0
4447 $as_echo_n 0123456789 >"conftest.in"
4448 while :
4449 do
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo 'EGREP' >> "conftest.nl"
4454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 ac_count=`expr $ac_count + 1`
4457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_EGREP="$ac_path_EGREP"
4460 ac_path_EGREP_max=$ac_count
4461 fi
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4464 done
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466 esac
4467
4468 $ac_path_EGREP_found && break 3
4469 done
4470 done
4471 done
4472 IFS=$as_save_IFS
4473 if test -z "$ac_cv_path_EGREP"; then
4474 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4475 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4476 { (exit 1); exit 1; }; }
4477 fi
4478 else
4479 ac_cv_path_EGREP=$EGREP
4480 fi
4481
4482 fi
4483 fi
4484 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4485 $as_echo "$ac_cv_path_EGREP" >&6; }
4486 EGREP="$ac_cv_path_EGREP"
4487
4488
4489 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4490 $as_echo_n "checking for fgrep... " >&6; }
4491 if test "${ac_cv_path_FGREP+set}" = set; then
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4495 then ac_cv_path_FGREP="$GREP -F"
4496 else
4497 if test -z "$FGREP"; then
4498 ac_path_FGREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in fgrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4508 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4509 # Check for GNU ac_path_FGREP and select it if it is found.
4510 # Check for GNU $ac_path_FGREP
4511 case `"$ac_path_FGREP" --version 2>&1` in
4512 *GNU*)
4513 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4514 *)
4515 ac_count=0
4516 $as_echo_n 0123456789 >"conftest.in"
4517 while :
4518 do
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 $as_echo 'FGREP' >> "conftest.nl"
4523 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525 ac_count=`expr $ac_count + 1`
4526 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_FGREP="$ac_path_FGREP"
4529 ac_path_FGREP_max=$ac_count
4530 fi
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4533 done
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535 esac
4536
4537 $ac_path_FGREP_found && break 3
4538 done
4539 done
4540 done
4541 IFS=$as_save_IFS
4542 if test -z "$ac_cv_path_FGREP"; then
4543 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4544 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4545 { (exit 1); exit 1; }; }
4546 fi
4547 else
4548 ac_cv_path_FGREP=$FGREP
4549 fi
4550
4551 fi
4552 fi
4553 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4554 $as_echo "$ac_cv_path_FGREP" >&6; }
4555 FGREP="$ac_cv_path_FGREP"
4556
4557
4558 test -z "$GREP" && GREP=grep
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578 # Check whether --with-gnu-ld was given.
4579 if test "${with_gnu_ld+set}" = set; then
4580 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4581 else
4582 with_gnu_ld=no
4583 fi
4584
4585 ac_prog=ld
4586 if test "$GCC" = yes; then
4587 # Check if gcc -print-prog-name=ld gives a path.
4588 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4589 $as_echo_n "checking for ld used by $CC... " >&6; }
4590 case $host in
4591 *-*-mingw*)
4592 # gcc leaves a trailing carriage return which upsets mingw
4593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4594 *)
4595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4596 esac
4597 case $ac_prog in
4598 # Accept absolute paths.
4599 [\\/]* | ?:[\\/]*)
4600 re_direlt='/[^/][^/]*/\.\./'
4601 # Canonicalize the pathname of ld
4602 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4603 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4604 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4605 done
4606 test -z "$LD" && LD="$ac_prog"
4607 ;;
4608 "")
4609 # If it fails, then pretend we aren't using GCC.
4610 ac_prog=ld
4611 ;;
4612 *)
4613 # If it is relative, then search for the first ld in PATH.
4614 with_gnu_ld=unknown
4615 ;;
4616 esac
4617 elif test "$with_gnu_ld" = yes; then
4618 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4619 $as_echo_n "checking for GNU ld... " >&6; }
4620 else
4621 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4622 $as_echo_n "checking for non-GNU ld... " >&6; }
4623 fi
4624 if test "${lt_cv_path_LD+set}" = set; then
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -z "$LD"; then
4628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4629 for ac_dir in $PATH; do
4630 IFS="$lt_save_ifs"
4631 test -z "$ac_dir" && ac_dir=.
4632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4633 lt_cv_path_LD="$ac_dir/$ac_prog"
4634 # Check to see if the program is GNU ld. I'd rather use --version,
4635 # but apparently some variants of GNU ld only accept -v.
4636 # Break only if it was the GNU/non-GNU ld that we prefer.
4637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4638 *GNU* | *'with BFD'*)
4639 test "$with_gnu_ld" != no && break
4640 ;;
4641 *)
4642 test "$with_gnu_ld" != yes && break
4643 ;;
4644 esac
4645 fi
4646 done
4647 IFS="$lt_save_ifs"
4648 else
4649 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4650 fi
4651 fi
4652
4653 LD="$lt_cv_path_LD"
4654 if test -n "$LD"; then
4655 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4656 $as_echo "$LD" >&6; }
4657 else
4658 { $as_echo "$as_me:$LINENO: result: no" >&5
4659 $as_echo "no" >&6; }
4660 fi
4661 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4662 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4663 { (exit 1); exit 1; }; }
4664 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4665 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4666 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4668 else
4669 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4670 case `$LD -v 2>&1 </dev/null` in
4671 *GNU* | *'with BFD'*)
4672 lt_cv_prog_gnu_ld=yes
4673 ;;
4674 *)
4675 lt_cv_prog_gnu_ld=no
4676 ;;
4677 esac
4678 fi
4679 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4680 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4681 with_gnu_ld=$lt_cv_prog_gnu_ld
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4692 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4693 if test "${lt_cv_path_NM+set}" = set; then
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$NM"; then
4697 # Let the user override the test.
4698 lt_cv_path_NM="$NM"
4699 else
4700 lt_nm_to_check="${ac_tool_prefix}nm"
4701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4702 lt_nm_to_check="$lt_nm_to_check nm"
4703 fi
4704 for lt_tmp_nm in $lt_nm_to_check; do
4705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4706 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4707 IFS="$lt_save_ifs"
4708 test -z "$ac_dir" && ac_dir=.
4709 tmp_nm="$ac_dir/$lt_tmp_nm"
4710 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4711 # Check to see if the nm accepts a BSD-compat flag.
4712 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4713 # nm: unknown option "B" ignored
4714 # Tru64's nm complains that /dev/null is an invalid object file
4715 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4716 */dev/null* | *'Invalid file or object type'*)
4717 lt_cv_path_NM="$tmp_nm -B"
4718 break
4719 ;;
4720 *)
4721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4722 */dev/null*)
4723 lt_cv_path_NM="$tmp_nm -p"
4724 break
4725 ;;
4726 *)
4727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4728 continue # so that we can try to find one that supports BSD flags
4729 ;;
4730 esac
4731 ;;
4732 esac
4733 fi
4734 done
4735 IFS="$lt_save_ifs"
4736 done
4737 : ${lt_cv_path_NM=no}
4738 fi
4739 fi
4740 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4741 $as_echo "$lt_cv_path_NM" >&6; }
4742 if test "$lt_cv_path_NM" != "no"; then
4743 NM="$lt_cv_path_NM"
4744 else
4745 # Didn't find any BSD compatible name lister, look for dumpbin.
4746 if test -n "$ac_tool_prefix"; then
4747 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4748 do
4749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$DUMPBIN"; then
4757 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4761 do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770 done
4771 done
4772 IFS=$as_save_IFS
4773
4774 fi
4775 fi
4776 DUMPBIN=$ac_cv_prog_DUMPBIN
4777 if test -n "$DUMPBIN"; then
4778 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4779 $as_echo "$DUMPBIN" >&6; }
4780 else
4781 { $as_echo "$as_me:$LINENO: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784
4785
4786 test -n "$DUMPBIN" && break
4787 done
4788 fi
4789 if test -z "$DUMPBIN"; then
4790 ac_ct_DUMPBIN=$DUMPBIN
4791 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4792 do
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$ac_ct_DUMPBIN"; then
4801 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4813 fi
4814 done
4815 done
4816 IFS=$as_save_IFS
4817
4818 fi
4819 fi
4820 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4821 if test -n "$ac_ct_DUMPBIN"; then
4822 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4823 $as_echo "$ac_ct_DUMPBIN" >&6; }
4824 else
4825 { $as_echo "$as_me:$LINENO: result: no" >&5
4826 $as_echo "no" >&6; }
4827 fi
4828
4829
4830 test -n "$ac_ct_DUMPBIN" && break
4831 done
4832
4833 if test "x$ac_ct_DUMPBIN" = x; then
4834 DUMPBIN=":"
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837 yes:)
4838 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840 ac_tool_warned=yes ;;
4841 esac
4842 DUMPBIN=$ac_ct_DUMPBIN
4843 fi
4844 fi
4845
4846
4847 if test "$DUMPBIN" != ":"; then
4848 NM="$DUMPBIN"
4849 fi
4850 fi
4851 test -z "$NM" && NM=nm
4852
4853
4854
4855
4856
4857
4858 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4859 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4860 if test "${lt_cv_nm_interface+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4862 else
4863 lt_cv_nm_interface="BSD nm"
4864 echo "int some_variable = 0;" > conftest.$ac_ext
4865 (eval echo "\"\$as_me:4865: $ac_compile\"" >&5)
4866 (eval "$ac_compile" 2>conftest.err)
4867 cat conftest.err >&5
4868 (eval echo "\"\$as_me:4868: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4869 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4870 cat conftest.err >&5
4871 (eval echo "\"\$as_me:4871: output\"" >&5)
4872 cat conftest.out >&5
4873 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4874 lt_cv_nm_interface="MS dumpbin"
4875 fi
4876 rm -f conftest*
4877 fi
4878 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4879 $as_echo "$lt_cv_nm_interface" >&6; }
4880
4881 # find the maximum length of command line arguments
4882 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4883 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4884 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4885 $as_echo_n "(cached) " >&6
4886 else
4887 i=0
4888 teststring="ABCD"
4889
4890 case $build_os in
4891 msdosdjgpp*)
4892 # On DJGPP, this test can blow up pretty badly due to problems in libc
4893 # (any single argument exceeding 2000 bytes causes a buffer overrun
4894 # during glob expansion). Even if it were fixed, the result of this
4895 # check would be larger than it should be.
4896 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4897 ;;
4898
4899 gnu*)
4900 # Under GNU Hurd, this test is not required because there is
4901 # no limit to the length of command line arguments.
4902 # Libtool will interpret -1 as no limit whatsoever
4903 lt_cv_sys_max_cmd_len=-1;
4904 ;;
4905
4906 cygwin* | mingw* | cegcc*)
4907 # On Win9x/ME, this test blows up -- it succeeds, but takes
4908 # about 5 minutes as the teststring grows exponentially.
4909 # Worse, since 9x/ME are not pre-emptively multitasking,
4910 # you end up with a "frozen" computer, even though with patience
4911 # the test eventually succeeds (with a max line length of 256k).
4912 # Instead, let's just punt: use the minimum linelength reported by
4913 # all of the supported platforms: 8192 (on NT/2K/XP).
4914 lt_cv_sys_max_cmd_len=8192;
4915 ;;
4916
4917 amigaos*)
4918 # On AmigaOS with pdksh, this test takes hours, literally.
4919 # So we just punt and use a minimum line length of 8192.
4920 lt_cv_sys_max_cmd_len=8192;
4921 ;;
4922
4923 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4924 # This has been around since 386BSD, at least. Likely further.
4925 if test -x /sbin/sysctl; then
4926 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4927 elif test -x /usr/sbin/sysctl; then
4928 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4929 else
4930 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4931 fi
4932 # And add a safety zone
4933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4935 ;;
4936
4937 interix*)
4938 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4939 lt_cv_sys_max_cmd_len=196608
4940 ;;
4941
4942 osf*)
4943 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4944 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4945 # nice to cause kernel panics so lets avoid the loop below.
4946 # First set a reasonable default.
4947 lt_cv_sys_max_cmd_len=16384
4948 #
4949 if test -x /sbin/sysconfig; then
4950 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4951 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4952 esac
4953 fi
4954 ;;
4955 sco3.2v5*)
4956 lt_cv_sys_max_cmd_len=102400
4957 ;;
4958 sysv5* | sco5v6* | sysv4.2uw2*)
4959 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4960 if test -n "$kargmax"; then
4961 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4962 else
4963 lt_cv_sys_max_cmd_len=32768
4964 fi
4965 ;;
4966 *)
4967 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4968 if test -n "$lt_cv_sys_max_cmd_len"; then
4969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4971 else
4972 # Make teststring a little bigger before we do anything with it.
4973 # a 1K string should be a reasonable start.
4974 for i in 1 2 3 4 5 6 7 8 ; do
4975 teststring=$teststring$teststring
4976 done
4977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4978 # If test is not a shell built-in, we'll probably end up computing a
4979 # maximum length that is only half of the actual maximum length, but
4980 # we can't tell.
4981 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4982 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4983 test $i != 17 # 1/2 MB should be enough
4984 do
4985 i=`expr $i + 1`
4986 teststring=$teststring$teststring
4987 done
4988 # Only check the string length outside the loop.
4989 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4990 teststring=
4991 # Add a significant safety factor because C++ compilers can tack on
4992 # massive amounts of additional arguments before passing them to the
4993 # linker. It appears as though 1/2 is a usable value.
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4995 fi
4996 ;;
4997 esac
4998
4999 fi
5000
5001 if test -n $lt_cv_sys_max_cmd_len ; then
5002 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5003 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5004 else
5005 { $as_echo "$as_me:$LINENO: result: none" >&5
5006 $as_echo "none" >&6; }
5007 fi
5008 max_cmd_len=$lt_cv_sys_max_cmd_len
5009
5010
5011
5012
5013
5014
5015 : ${CP="cp -f"}
5016 : ${MV="mv -f"}
5017 : ${RM="rm -f"}
5018
5019 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5020 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5021 # Try some XSI features
5022 xsi_shell=no
5023 ( _lt_dummy="a/b/c"
5024 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5025 = c,a/b,, \
5026 && eval 'test $(( 1 + 1 )) -eq 2 \
5027 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5028 && xsi_shell=yes
5029 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5030 $as_echo "$xsi_shell" >&6; }
5031
5032
5033 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5034 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5035 lt_shell_append=no
5036 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5037 >/dev/null 2>&1 \
5038 && lt_shell_append=yes
5039 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5040 $as_echo "$lt_shell_append" >&6; }
5041
5042
5043 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5044 lt_unset=unset
5045 else
5046 lt_unset=false
5047 fi
5048
5049
5050
5051
5052
5053 # test EBCDIC or ASCII
5054 case `echo X|tr X '\101'` in
5055 A) # ASCII based system
5056 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5057 lt_SP2NL='tr \040 \012'
5058 lt_NL2SP='tr \015\012 \040\040'
5059 ;;
5060 *) # EBCDIC based system
5061 lt_SP2NL='tr \100 \n'
5062 lt_NL2SP='tr \r\n \100\100'
5063 ;;
5064 esac
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5075 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5076 if test "${lt_cv_ld_reload_flag+set}" = set; then
5077 $as_echo_n "(cached) " >&6
5078 else
5079 lt_cv_ld_reload_flag='-r'
5080 fi
5081 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5082 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5083 reload_flag=$lt_cv_ld_reload_flag
5084 case $reload_flag in
5085 "" | " "*) ;;
5086 *) reload_flag=" $reload_flag" ;;
5087 esac
5088 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5089 case $host_os in
5090 darwin*)
5091 if test "$GCC" = yes; then
5092 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5093 else
5094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5095 fi
5096 ;;
5097 esac
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 if test -n "$ac_tool_prefix"; then
5108 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5109 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$OBJDUMP"; then
5116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 OBJDUMP=$ac_cv_prog_OBJDUMP
5136 if test -n "$OBJDUMP"; then
5137 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5138 $as_echo "$OBJDUMP" >&6; }
5139 else
5140 { $as_echo "$as_me:$LINENO: result: no" >&5
5141 $as_echo "no" >&6; }
5142 fi
5143
5144
5145 fi
5146 if test -z "$ac_cv_prog_OBJDUMP"; then
5147 ac_ct_OBJDUMP=$OBJDUMP
5148 # Extract the first word of "objdump", so it can be a program name with args.
5149 set dummy objdump; ac_word=$2
5150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_OBJDUMP"; then
5156 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5176 if test -n "$ac_ct_OBJDUMP"; then
5177 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5178 $as_echo "$ac_ct_OBJDUMP" >&6; }
5179 else
5180 { $as_echo "$as_me:$LINENO: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184 if test "x$ac_ct_OBJDUMP" = x; then
5185 OBJDUMP="false"
5186 else
5187 case $cross_compiling:$ac_tool_warned in
5188 yes:)
5189 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5191 ac_tool_warned=yes ;;
5192 esac
5193 OBJDUMP=$ac_ct_OBJDUMP
5194 fi
5195 else
5196 OBJDUMP="$ac_cv_prog_OBJDUMP"
5197 fi
5198
5199 test -z "$OBJDUMP" && OBJDUMP=objdump
5200
5201
5202
5203
5204
5205
5206 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5207 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5208 if test "${lt_cv_deplibs_check_method+set}" = set; then
5209 $as_echo_n "(cached) " >&6
5210 else
5211 lt_cv_file_magic_cmd='$MAGIC_CMD'
5212 lt_cv_file_magic_test_file=
5213 lt_cv_deplibs_check_method='unknown'
5214 # Need to set the preceding variable on all platforms that support
5215 # interlibrary dependencies.
5216 # 'none' -- dependencies not supported.
5217 # `unknown' -- same as none, but documents that we really don't know.
5218 # 'pass_all' -- all dependencies passed with no checks.
5219 # 'test_compile' -- check by making test program.
5220 # 'file_magic [[regex]]' -- check by looking for files in library path
5221 # which responds to the $file_magic_cmd with a given extended regex.
5222 # If you have `file' or equivalent on your system and you're not sure
5223 # whether `pass_all' will *always* work, you probably want this one.
5224
5225 case $host_os in
5226 aix[4-9]*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
5229
5230 beos*)
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
5233
5234 bsdi[45]*)
5235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5236 lt_cv_file_magic_cmd='/usr/bin/file -L'
5237 lt_cv_file_magic_test_file=/shlib/libc.so
5238 ;;
5239
5240 cygwin*)
5241 # func_win32_libid is a shell function defined in ltmain.sh
5242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243 lt_cv_file_magic_cmd='func_win32_libid'
5244 ;;
5245
5246 mingw* | pw32*)
5247 # Base MSYS/MinGW do not provide the 'file' command needed by
5248 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5249 # unless we find 'file', for example because we are cross-compiling.
5250 if ( file / ) >/dev/null 2>&1; then
5251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5252 lt_cv_file_magic_cmd='func_win32_libid'
5253 else
5254 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5255 lt_cv_file_magic_cmd='$OBJDUMP -f'
5256 fi
5257 ;;
5258
5259 cegcc)
5260 # use the weaker test based on 'objdump'. See mingw*.
5261 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5262 lt_cv_file_magic_cmd='$OBJDUMP -f'
5263 ;;
5264
5265 darwin* | rhapsody*)
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
5268
5269 freebsd* | dragonfly*)
5270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5271 case $host_cpu in
5272 i*86 )
5273 # Not sure whether the presence of OpenBSD here was a mistake.
5274 # Let's accept both of them until this is cleared up.
5275 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5276 lt_cv_file_magic_cmd=/usr/bin/file
5277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5278 ;;
5279 esac
5280 else
5281 lt_cv_deplibs_check_method=pass_all
5282 fi
5283 ;;
5284
5285 gnu*)
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288
5289 hpux10.20* | hpux11*)
5290 lt_cv_file_magic_cmd=/usr/bin/file
5291 case $host_cpu in
5292 ia64*)
5293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5294 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5295 ;;
5296 hppa*64*)
5297 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]'
5298 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5299 ;;
5300 *)
5301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5302 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5303 ;;
5304 esac
5305 ;;
5306
5307 interix[3-9]*)
5308 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5310 ;;
5311
5312 irix5* | irix6* | nonstopux*)
5313 case $LD in
5314 *-32|*"-32 ") libmagic=32-bit;;
5315 *-n32|*"-n32 ") libmagic=N32;;
5316 *-64|*"-64 ") libmagic=64-bit;;
5317 *) libmagic=never-match;;
5318 esac
5319 lt_cv_deplibs_check_method=pass_all
5320 ;;
5321
5322 # This must be Linux ELF.
5323 linux* | k*bsd*-gnu)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326
5327 netbsd*)
5328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5330 else
5331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5332 fi
5333 ;;
5334
5335 newos6*)
5336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5337 lt_cv_file_magic_cmd=/usr/bin/file
5338 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5339 ;;
5340
5341 *nto* | *qnx*)
5342 lt_cv_deplibs_check_method=pass_all
5343 ;;
5344
5345 openbsd*)
5346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5348 else
5349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5350 fi
5351 ;;
5352
5353 osf3* | osf4* | osf5*)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356
5357 rdos*)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360
5361 solaris*)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364
5365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369 sysv4 | sysv4.3*)
5370 case $host_vendor in
5371 motorola)
5372 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]'
5373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5374 ;;
5375 ncr)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378 sequent)
5379 lt_cv_file_magic_cmd='/bin/file'
5380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5381 ;;
5382 sni)
5383 lt_cv_file_magic_cmd='/bin/file'
5384 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5385 lt_cv_file_magic_test_file=/lib/libc.so
5386 ;;
5387 siemens)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390 pc)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393 esac
5394 ;;
5395
5396 tpf*)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399 esac
5400
5401 fi
5402 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5403 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5404 file_magic_cmd=$lt_cv_file_magic_cmd
5405 deplibs_check_method=$lt_cv_deplibs_check_method
5406 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419 if test -n "$ac_tool_prefix"; then
5420 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5421 set dummy ${ac_tool_prefix}ar; ac_word=$2
5422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if test "${ac_cv_prog_AR+set}" = set; then
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$AR"; then
5428 ac_cv_prog_AR="$AR" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_AR="${ac_tool_prefix}ar"
5438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 AR=$ac_cv_prog_AR
5448 if test -n "$AR"; then
5449 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5450 $as_echo "$AR" >&6; }
5451 else
5452 { $as_echo "$as_me:$LINENO: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457 fi
5458 if test -z "$ac_cv_prog_AR"; then
5459 ac_ct_AR=$AR
5460 # Extract the first word of "ar", so it can be a program name with args.
5461 set dummy ar; ac_word=$2
5462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$ac_ct_AR"; then
5468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_ac_ct_AR="ar"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5488 if test -n "$ac_ct_AR"; then
5489 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5490 $as_echo "$ac_ct_AR" >&6; }
5491 else
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496 if test "x$ac_ct_AR" = x; then
5497 AR="false"
5498 else
5499 case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505 AR=$ac_ct_AR
5506 fi
5507 else
5508 AR="$ac_cv_prog_AR"
5509 fi
5510
5511 test -z "$AR" && AR=ar
5512 test -z "$AR_FLAGS" && AR_FLAGS=cru
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 if test -n "$ac_tool_prefix"; then
5525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5526 set dummy ${ac_tool_prefix}strip; ac_word=$2
5527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if test "${ac_cv_prog_STRIP+set}" = set; then
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$STRIP"; then
5533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 STRIP=$ac_cv_prog_STRIP
5553 if test -n "$STRIP"; then
5554 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5555 $as_echo "$STRIP" >&6; }
5556 else
5557 { $as_echo "$as_me:$LINENO: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 fi
5563 if test -z "$ac_cv_prog_STRIP"; then
5564 ac_ct_STRIP=$STRIP
5565 # Extract the first word of "strip", so it can be a program name with args.
5566 set dummy strip; ac_word=$2
5567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5570 $as_echo_n "(cached) " >&6
5571 else
5572 if test -n "$ac_ct_STRIP"; then
5573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_ac_ct_STRIP="strip"
5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586 done
5587 done
5588 IFS=$as_save_IFS
5589
5590 fi
5591 fi
5592 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5593 if test -n "$ac_ct_STRIP"; then
5594 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5595 $as_echo "$ac_ct_STRIP" >&6; }
5596 else
5597 { $as_echo "$as_me:$LINENO: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601 if test "x$ac_ct_STRIP" = x; then
5602 STRIP=":"
5603 else
5604 case $cross_compiling:$ac_tool_warned in
5605 yes:)
5606 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608 ac_tool_warned=yes ;;
5609 esac
5610 STRIP=$ac_ct_STRIP
5611 fi
5612 else
5613 STRIP="$ac_cv_prog_STRIP"
5614 fi
5615
5616 test -z "$STRIP" && STRIP=:
5617
5618
5619
5620
5621
5622
5623 if test -n "$ac_tool_prefix"; then
5624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if test "${ac_cv_prog_RANLIB+set}" = set; then
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -n "$RANLIB"; then
5632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 fi
5650 fi
5651 RANLIB=$ac_cv_prog_RANLIB
5652 if test -n "$RANLIB"; then
5653 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5654 $as_echo "$RANLIB" >&6; }
5655 else
5656 { $as_echo "$as_me:$LINENO: result: no" >&5
5657 $as_echo "no" >&6; }
5658 fi
5659
5660
5661 fi
5662 if test -z "$ac_cv_prog_RANLIB"; then
5663 ac_ct_RANLIB=$RANLIB
5664 # Extract the first word of "ranlib", so it can be a program name with args.
5665 set dummy ranlib; ac_word=$2
5666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test -n "$ac_ct_RANLIB"; then
5672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_prog_ac_ct_RANLIB="ranlib"
5682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5692 if test -n "$ac_ct_RANLIB"; then
5693 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5694 $as_echo "$ac_ct_RANLIB" >&6; }
5695 else
5696 { $as_echo "$as_me:$LINENO: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700 if test "x$ac_ct_RANLIB" = x; then
5701 RANLIB=":"
5702 else
5703 case $cross_compiling:$ac_tool_warned in
5704 yes:)
5705 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707 ac_tool_warned=yes ;;
5708 esac
5709 RANLIB=$ac_ct_RANLIB
5710 fi
5711 else
5712 RANLIB="$ac_cv_prog_RANLIB"
5713 fi
5714
5715 test -z "$RANLIB" && RANLIB=:
5716
5717
5718
5719
5720
5721
5722 # Determine commands to create old-style static archives.
5723 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5724 old_postinstall_cmds='chmod 644 $oldlib'
5725 old_postuninstall_cmds=
5726
5727 if test -n "$RANLIB"; then
5728 case $host_os in
5729 openbsd*)
5730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5731 ;;
5732 *)
5733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5734 ;;
5735 esac
5736 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5737 fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 # If no C compiler was specified, use CC.
5773 LTCC=${LTCC-"$CC"}
5774
5775 # If no C compiler flags were specified, use CFLAGS.
5776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5777
5778 # Allow CC to be a program name with arguments.
5779 compiler=$CC
5780
5781
5782 # Check for command to grab the raw symbol name followed by C symbol from nm.
5783 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5784 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5785 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5786 $as_echo_n "(cached) " >&6
5787 else
5788
5789 # These are sane defaults that work on at least a few old systems.
5790 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5791
5792 # Character class describing NM global symbol codes.
5793 symcode='[BCDEGRST]'
5794
5795 # Regexp to match symbols that can be accessed directly from C.
5796 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5797
5798 # Define system-specific variables.
5799 case $host_os in
5800 aix*)
5801 symcode='[BCDT]'
5802 ;;
5803 cygwin* | mingw* | pw32* | cegcc*)
5804 symcode='[ABCDGISTW]'
5805 ;;
5806 hpux*)
5807 if test "$host_cpu" = ia64; then
5808 symcode='[ABCDEGRST]'
5809 fi
5810 ;;
5811 irix* | nonstopux*)
5812 symcode='[BCDEGRST]'
5813 ;;
5814 osf*)
5815 symcode='[BCDEGQRST]'
5816 ;;
5817 solaris*)
5818 symcode='[BDRT]'
5819 ;;
5820 sco3.2v5*)
5821 symcode='[DT]'
5822 ;;
5823 sysv4.2uw2*)
5824 symcode='[DT]'
5825 ;;
5826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5827 symcode='[ABDT]'
5828 ;;
5829 sysv4)
5830 symcode='[DFNSTU]'
5831 ;;
5832 esac
5833
5834 # If we're using GNU nm, then use its standard symbol codes.
5835 case `$NM -V 2>&1` in
5836 *GNU* | *'with BFD'*)
5837 symcode='[ABCDGIRSTW]' ;;
5838 esac
5839
5840 # Transform an extracted symbol line into a proper C declaration.
5841 # Some systems (esp. on ia64) link data and code symbols differently,
5842 # so use this general approach.
5843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5844
5845 # Transform an extracted symbol line into symbol name and symbol address
5846 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5847 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5848
5849 # Handle CRLF in mingw tool chain
5850 opt_cr=
5851 case $build_os in
5852 mingw*)
5853 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5854 ;;
5855 esac
5856
5857 # Try without a prefix underscore, then with it.
5858 for ac_symprfx in "" "_"; do
5859
5860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5861 symxfrm="\\1 $ac_symprfx\\2 \\2"
5862
5863 # Write the raw and C identifiers.
5864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5865 # Fake it for dumpbin and say T for any non-static function
5866 # and D for any global variable.
5867 # Also find C++ and __fastcall symbols from MSVC++,
5868 # which start with @ or ?.
5869 lt_cv_sys_global_symbol_pipe="$AWK '"\
5870 " {last_section=section; section=\$ 3};"\
5871 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5872 " \$ 0!~/External *\|/{next};"\
5873 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5874 " {if(hide[section]) next};"\
5875 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5876 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5877 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5878 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5879 " ' prfx=^$ac_symprfx"
5880 else
5881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5882 fi
5883
5884 # Check to see that the pipe works correctly.
5885 pipe_works=no
5886
5887 rm -f conftest*
5888 cat > conftest.$ac_ext <<_LT_EOF
5889 #ifdef __cplusplus
5890 extern "C" {
5891 #endif
5892 char nm_test_var;
5893 void nm_test_func(void);
5894 void nm_test_func(void){}
5895 #ifdef __cplusplus
5896 }
5897 #endif
5898 int main(){nm_test_var='a';nm_test_func();return(0);}
5899 _LT_EOF
5900
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>&5
5903 ac_status=$?
5904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; then
5906 # Now try to grab the symbols.
5907 nlist=conftest.nm
5908 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5909 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5910 ac_status=$?
5911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } && test -s "$nlist"; then
5913 # Try sorting and uniquifying the output.
5914 if sort "$nlist" | uniq > "$nlist"T; then
5915 mv -f "$nlist"T "$nlist"
5916 else
5917 rm -f "$nlist"T
5918 fi
5919
5920 # Make sure that we snagged all the symbols we need.
5921 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5922 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5923 cat <<_LT_EOF > conftest.$ac_ext
5924 #ifdef __cplusplus
5925 extern "C" {
5926 #endif
5927
5928 _LT_EOF
5929 # Now generate the symbol file.
5930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5931
5932 cat <<_LT_EOF >> conftest.$ac_ext
5933
5934 /* The mapping between symbol names and symbols. */
5935 const struct {
5936 const char *name;
5937 void *address;
5938 }
5939 lt__PROGRAM__LTX_preloaded_symbols[] =
5940 {
5941 { "@PROGRAM@", (void *) 0 },
5942 _LT_EOF
5943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5944 cat <<\_LT_EOF >> conftest.$ac_ext
5945 {0, (void *) 0}
5946 };
5947
5948 /* This works around a problem in FreeBSD linker */
5949 #ifdef FREEBSD_WORKAROUND
5950 static const void *lt_preloaded_setup() {
5951 return lt__PROGRAM__LTX_preloaded_symbols;
5952 }
5953 #endif
5954
5955 #ifdef __cplusplus
5956 }
5957 #endif
5958 _LT_EOF
5959 # Now try linking the two files.
5960 mv conftest.$ac_objext conftstm.$ac_objext
5961 lt_save_LIBS="$LIBS"
5962 lt_save_CFLAGS="$CFLAGS"
5963 LIBS="conftstm.$ac_objext"
5964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5966 (eval $ac_link) 2>&5
5967 ac_status=$?
5968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5970 pipe_works=yes
5971 fi
5972 LIBS="$lt_save_LIBS"
5973 CFLAGS="$lt_save_CFLAGS"
5974 else
5975 echo "cannot find nm_test_func in $nlist" >&5
5976 fi
5977 else
5978 echo "cannot find nm_test_var in $nlist" >&5
5979 fi
5980 else
5981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5982 fi
5983 else
5984 echo "$progname: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5986 fi
5987 rm -rf conftest* conftst*
5988
5989 # Do not use the global_symbol_pipe unless it works.
5990 if test "$pipe_works" = yes; then
5991 break
5992 else
5993 lt_cv_sys_global_symbol_pipe=
5994 fi
5995 done
5996
5997 fi
5998
5999 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6000 lt_cv_sys_global_symbol_to_cdecl=
6001 fi
6002 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6003 { $as_echo "$as_me:$LINENO: result: failed" >&5
6004 $as_echo "failed" >&6; }
6005 else
6006 { $as_echo "$as_me:$LINENO: result: ok" >&5
6007 $as_echo "ok" >&6; }
6008 fi
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032 # Check whether --enable-libtool-lock was given.
6033 if test "${enable_libtool_lock+set}" = set; then
6034 enableval=$enable_libtool_lock;
6035 fi
6036
6037 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6038
6039 # Some flags need to be propagated to the compiler or linker for good
6040 # libtool support.
6041 case $host in
6042 ia64-*-hpux*)
6043 # Find out which ABI we are using.
6044 echo 'int i;' > conftest.$ac_ext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>&5
6047 ac_status=$?
6048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; then
6050 case `/usr/bin/file conftest.$ac_objext` in
6051 *ELF-32*)
6052 HPUX_IA64_MODE="32"
6053 ;;
6054 *ELF-64*)
6055 HPUX_IA64_MODE="64"
6056 ;;
6057 esac
6058 fi
6059 rm -rf conftest*
6060 ;;
6061 *-*-irix6*)
6062 # Find out which ABI we are using.
6063 echo '#line 6063 "configure"' > conftest.$ac_ext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>&5
6066 ac_status=$?
6067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; then
6069 if test "$lt_cv_prog_gnu_ld" = yes; then
6070 case `/usr/bin/file conftest.$ac_objext` in
6071 *32-bit*)
6072 LD="${LD-ld} -melf32bsmip"
6073 ;;
6074 *N32*)
6075 LD="${LD-ld} -melf32bmipn32"
6076 ;;
6077 *64-bit*)
6078 LD="${LD-ld} -melf64bmip"
6079 ;;
6080 esac
6081 else
6082 case `/usr/bin/file conftest.$ac_objext` in
6083 *32-bit*)
6084 LD="${LD-ld} -32"
6085 ;;
6086 *N32*)
6087 LD="${LD-ld} -n32"
6088 ;;
6089 *64-bit*)
6090 LD="${LD-ld} -64"
6091 ;;
6092 esac
6093 fi
6094 fi
6095 rm -rf conftest*
6096 ;;
6097
6098 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6099 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6100 # Find out which ABI we are using.
6101 echo 'int i;' > conftest.$ac_ext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>&5
6104 ac_status=$?
6105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; then
6107 case `/usr/bin/file conftest.o` in
6108 *32-bit*)
6109 case $host in
6110 x86_64-*kfreebsd*-gnu)
6111 LD="${LD-ld} -m elf_i386_fbsd"
6112 ;;
6113 x86_64-*linux*)
6114 LD="${LD-ld} -m elf_i386"
6115 ;;
6116 ppc64-*linux*|powerpc64-*linux*)
6117 LD="${LD-ld} -m elf32ppclinux"
6118 ;;
6119 s390x-*linux*)
6120 LD="${LD-ld} -m elf_s390"
6121 ;;
6122 sparc64-*linux*)
6123 LD="${LD-ld} -m elf32_sparc"
6124 ;;
6125 esac
6126 ;;
6127 *64-bit*)
6128 case $host in
6129 x86_64-*kfreebsd*-gnu)
6130 LD="${LD-ld} -m elf_x86_64_fbsd"
6131 ;;
6132 x86_64-*linux*)
6133 LD="${LD-ld} -m elf_x86_64"
6134 ;;
6135 ppc*-*linux*|powerpc*-*linux*)
6136 LD="${LD-ld} -m elf64ppc"
6137 ;;
6138 s390*-*linux*|s390*-*tpf*)
6139 LD="${LD-ld} -m elf64_s390"
6140 ;;
6141 sparc*-*linux*)
6142 LD="${LD-ld} -m elf64_sparc"
6143 ;;
6144 esac
6145 ;;
6146 esac
6147 fi
6148 rm -rf conftest*
6149 ;;
6150
6151 *-*-sco3.2v5*)
6152 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6153 SAVE_CFLAGS="$CFLAGS"
6154 CFLAGS="$CFLAGS -belf"
6155 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6156 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6157 if test "${lt_cv_cc_needs_belf+set}" = set; then
6158 $as_echo_n "(cached) " >&6
6159 else
6160 ac_ext=c
6161 ac_cpp='$CPP $CPPFLAGS'
6162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6165
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172
6173 int
6174 main ()
6175 {
6176
6177 ;
6178 return 0;
6179 }
6180 _ACEOF
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest$ac_exeext && {
6199 test "$cross_compiling" = yes ||
6200 $as_test_x conftest$ac_exeext
6201 }; then
6202 lt_cv_cc_needs_belf=yes
6203 else
6204 $as_echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 lt_cv_cc_needs_belf=no
6208 fi
6209
6210 rm -rf conftest.dSYM
6211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6212 conftest$ac_exeext conftest.$ac_ext
6213 ac_ext=c
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219 fi
6220 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6221 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6222 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6223 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6224 CFLAGS="$SAVE_CFLAGS"
6225 fi
6226 ;;
6227 sparc*-*solaris*)
6228 # Find out which ABI we are using.
6229 echo 'int i;' > conftest.$ac_ext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>&5
6232 ac_status=$?
6233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; then
6235 case `/usr/bin/file conftest.o` in
6236 *64-bit*)
6237 case $lt_cv_prog_gnu_ld in
6238 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6239 *)
6240 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6241 LD="${LD-ld} -64"
6242 fi
6243 ;;
6244 esac
6245 ;;
6246 esac
6247 fi
6248 rm -rf conftest*
6249 ;;
6250 esac
6251
6252 need_locks="$enable_libtool_lock"
6253
6254
6255 case $host_os in
6256 rhapsody* | darwin*)
6257 if test -n "$ac_tool_prefix"; then
6258 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6259 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -n "$DSYMUTIL"; then
6266 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279 done
6280 done
6281 IFS=$as_save_IFS
6282
6283 fi
6284 fi
6285 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6286 if test -n "$DSYMUTIL"; then
6287 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6288 $as_echo "$DSYMUTIL" >&6; }
6289 else
6290 { $as_echo "$as_me:$LINENO: result: no" >&5
6291 $as_echo "no" >&6; }
6292 fi
6293
6294
6295 fi
6296 if test -z "$ac_cv_prog_DSYMUTIL"; then
6297 ac_ct_DSYMUTIL=$DSYMUTIL
6298 # Extract the first word of "dsymutil", so it can be a program name with args.
6299 set dummy dsymutil; ac_word=$2
6300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$ac_ct_DSYMUTIL"; then
6306 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6326 if test -n "$ac_ct_DSYMUTIL"; then
6327 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6328 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6329 else
6330 { $as_echo "$as_me:$LINENO: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334 if test "x$ac_ct_DSYMUTIL" = x; then
6335 DSYMUTIL=":"
6336 else
6337 case $cross_compiling:$ac_tool_warned in
6338 yes:)
6339 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 ac_tool_warned=yes ;;
6342 esac
6343 DSYMUTIL=$ac_ct_DSYMUTIL
6344 fi
6345 else
6346 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6347 fi
6348
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$NMEDIT"; then
6358 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 NMEDIT=$ac_cv_prog_NMEDIT
6378 if test -n "$NMEDIT"; then
6379 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6380 $as_echo "$NMEDIT" >&6; }
6381 else
6382 { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_NMEDIT"; then
6389 ac_ct_NMEDIT=$NMEDIT
6390 # Extract the first word of "nmedit", so it can be a program name with args.
6391 set dummy nmedit; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if test -n "$ac_ct_NMEDIT"; then
6398 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6410 fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6418 if test -n "$ac_ct_NMEDIT"; then
6419 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6420 $as_echo "$ac_ct_NMEDIT" >&6; }
6421 else
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426 if test "x$ac_ct_NMEDIT" = x; then
6427 NMEDIT=":"
6428 else
6429 case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435 NMEDIT=$ac_ct_NMEDIT
6436 fi
6437 else
6438 NMEDIT="$ac_cv_prog_NMEDIT"
6439 fi
6440
6441 if test -n "$ac_tool_prefix"; then
6442 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_LIPO+set}" = set; then
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$LIPO"; then
6450 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 LIPO=$ac_cv_prog_LIPO
6470 if test -n "$LIPO"; then
6471 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6472 $as_echo "$LIPO" >&6; }
6473 else
6474 { $as_echo "$as_me:$LINENO: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478
6479 fi
6480 if test -z "$ac_cv_prog_LIPO"; then
6481 ac_ct_LIPO=$LIPO
6482 # Extract the first word of "lipo", so it can be a program name with args.
6483 set dummy lipo; ac_word=$2
6484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$ac_ct_LIPO"; then
6490 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_ac_ct_LIPO="lipo"
6500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6510 if test -n "$ac_ct_LIPO"; then
6511 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6512 $as_echo "$ac_ct_LIPO" >&6; }
6513 else
6514 { $as_echo "$as_me:$LINENO: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518 if test "x$ac_ct_LIPO" = x; then
6519 LIPO=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 LIPO=$ac_ct_LIPO
6528 fi
6529 else
6530 LIPO="$ac_cv_prog_LIPO"
6531 fi
6532
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}otool; ac_word=$2
6536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_OTOOL+set}" = set; then
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$OTOOL"; then
6542 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6554 fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 OTOOL=$ac_cv_prog_OTOOL
6562 if test -n "$OTOOL"; then
6563 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6564 $as_echo "$OTOOL" >&6; }
6565 else
6566 { $as_echo "$as_me:$LINENO: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571 fi
6572 if test -z "$ac_cv_prog_OTOOL"; then
6573 ac_ct_OTOOL=$OTOOL
6574 # Extract the first word of "otool", so it can be a program name with args.
6575 set dummy otool; ac_word=$2
6576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_OTOOL"; then
6582 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_ac_ct_OTOOL="otool"
6592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6594 fi
6595 done
6596 done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6602 if test -n "$ac_ct_OTOOL"; then
6603 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6604 $as_echo "$ac_ct_OTOOL" >&6; }
6605 else
6606 { $as_echo "$as_me:$LINENO: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610 if test "x$ac_ct_OTOOL" = x; then
6611 OTOOL=":"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 OTOOL=$ac_ct_OTOOL
6620 fi
6621 else
6622 OTOOL="$ac_cv_prog_OTOOL"
6623 fi
6624
6625 if test -n "$ac_tool_prefix"; then
6626 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 $as_echo_n "checking for $ac_word... " >&6; }
6630 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6631 $as_echo_n "(cached) " >&6
6632 else
6633 if test -n "$OTOOL64"; then
6634 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 OTOOL64=$ac_cv_prog_OTOOL64
6654 if test -n "$OTOOL64"; then
6655 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6656 $as_echo "$OTOOL64" >&6; }
6657 else
6658 { $as_echo "$as_me:$LINENO: result: no" >&5
6659 $as_echo "no" >&6; }
6660 fi
6661
6662
6663 fi
6664 if test -z "$ac_cv_prog_OTOOL64"; then
6665 ac_ct_OTOOL64=$OTOOL64
6666 # Extract the first word of "otool64", so it can be a program name with args.
6667 set dummy otool64; ac_word=$2
6668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$ac_ct_OTOOL64"; then
6674 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_ac_ct_OTOOL64="otool64"
6684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6694 if test -n "$ac_ct_OTOOL64"; then
6695 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6696 $as_echo "$ac_ct_OTOOL64" >&6; }
6697 else
6698 { $as_echo "$as_me:$LINENO: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702 if test "x$ac_ct_OTOOL64" = x; then
6703 OTOOL64=":"
6704 else
6705 case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711 OTOOL64=$ac_ct_OTOOL64
6712 fi
6713 else
6714 OTOOL64="$ac_cv_prog_OTOOL64"
6715 fi
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6744 $as_echo_n "checking for -single_module linker flag... " >&6; }
6745 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6746 $as_echo_n "(cached) " >&6
6747 else
6748 lt_cv_apple_cc_single_mod=no
6749 if test -z "${LT_MULTI_MODULE}"; then
6750 # By default we will add the -single_module flag. You can override
6751 # by either setting the environment variable LT_MULTI_MODULE
6752 # non-empty at configure time, or by adding -multi_module to the
6753 # link flags.
6754 rm -rf libconftest.dylib*
6755 echo "int foo(void){return 1;}" > conftest.c
6756 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6757 -dynamiclib -Wl,-single_module conftest.c" >&5
6758 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6759 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6760 _lt_result=$?
6761 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6762 lt_cv_apple_cc_single_mod=yes
6763 else
6764 cat conftest.err >&5
6765 fi
6766 rm -rf libconftest.dylib*
6767 rm -f conftest.*
6768 fi
6769 fi
6770 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6771 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6772 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6773 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6774 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6775 $as_echo_n "(cached) " >&6
6776 else
6777 lt_cv_ld_exported_symbols_list=no
6778 save_LDFLAGS=$LDFLAGS
6779 echo "_main" > conftest.sym
6780 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787
6788 int
6789 main ()
6790 {
6791
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 rm -f conftest.$ac_objext conftest$ac_exeext
6797 if { (ac_try="$ac_link"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6803 $as_echo "$ac_try_echo") >&5
6804 (eval "$ac_link") 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest$ac_exeext && {
6814 test "$cross_compiling" = yes ||
6815 $as_test_x conftest$ac_exeext
6816 }; then
6817 lt_cv_ld_exported_symbols_list=yes
6818 else
6819 $as_echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822 lt_cv_ld_exported_symbols_list=no
6823 fi
6824
6825 rm -rf conftest.dSYM
6826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6827 conftest$ac_exeext conftest.$ac_ext
6828 LDFLAGS="$save_LDFLAGS"
6829
6830 fi
6831 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6832 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6833 case $host_os in
6834 rhapsody* | darwin1.[012])
6835 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6836 darwin1.*)
6837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6838 darwin*) # darwin 5.x on
6839 # if running on 10.5 or later, the deployment target defaults
6840 # to the OS version, if on x86, and 10.4, the deployment
6841 # target defaults to 10.4. Don't you love it?
6842 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6843 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6844 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6845 10.[012]*)
6846 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6847 10.*)
6848 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6849 esac
6850 ;;
6851 esac
6852 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6853 _lt_dar_single_mod='$single_module'
6854 fi
6855 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6856 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6857 else
6858 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6859 fi
6860 if test "$DSYMUTIL" != ":"; then
6861 _lt_dsymutil='~$DSYMUTIL $lib || :'
6862 else
6863 _lt_dsymutil=
6864 fi
6865 ;;
6866 esac
6867
6868 ac_ext=c
6869 ac_cpp='$CPP $CPPFLAGS'
6870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6873 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6874 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6875 # On Suns, sometimes $CPP names a directory.
6876 if test -n "$CPP" && test -d "$CPP"; then
6877 CPP=
6878 fi
6879 if test -z "$CPP"; then
6880 if test "${ac_cv_prog_CPP+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6882 else
6883 # Double quotes because CPP needs to be expanded
6884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6885 do
6886 ac_preproc_ok=false
6887 for ac_c_preproc_warn_flag in '' yes
6888 do
6889 # Use a header file that comes with gcc, so configuring glibc
6890 # with a fresh cross-compiler works.
6891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892 # <limits.h> exists even on freestanding compilers.
6893 # On the NeXT, cc -E runs the code through the compiler's parser,
6894 # not just through cpp. "Syntax error" is here to catch this case.
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 #ifdef __STDC__
6902 # include <limits.h>
6903 #else
6904 # include <assert.h>
6905 #endif
6906 Syntax error
6907 _ACEOF
6908 if { (ac_try="$ac_cpp conftest.$ac_ext"
6909 case "(($ac_try" in
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6912 esac
6913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914 $as_echo "$ac_try_echo") >&5
6915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } >/dev/null && {
6922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6924 }; then
6925 :
6926 else
6927 $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 # Broken: fails on valid input.
6931 continue
6932 fi
6933
6934 rm -f conftest.err conftest.$ac_ext
6935
6936 # OK, works on sane cases. Now check whether nonexistent headers
6937 # can be detected and how.
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 #include <ac_nonexistent.h>
6945 _ACEOF
6946 if { (ac_try="$ac_cpp conftest.$ac_ext"
6947 case "(($ac_try" in
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6950 esac
6951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6952 $as_echo "$ac_try_echo") >&5
6953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } >/dev/null && {
6960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 }; then
6963 # Broken: success on invalid input.
6964 continue
6965 else
6966 $as_echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969 # Passes both tests.
6970 ac_preproc_ok=:
6971 break
6972 fi
6973
6974 rm -f conftest.err conftest.$ac_ext
6975
6976 done
6977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6978 rm -f conftest.err conftest.$ac_ext
6979 if $ac_preproc_ok; then
6980 break
6981 fi
6982
6983 done
6984 ac_cv_prog_CPP=$CPP
6985
6986 fi
6987 CPP=$ac_cv_prog_CPP
6988 else
6989 ac_cv_prog_CPP=$CPP
6990 fi
6991 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6992 $as_echo "$CPP" >&6; }
6993 ac_preproc_ok=false
6994 for ac_c_preproc_warn_flag in '' yes
6995 do
6996 # Use a header file that comes with gcc, so configuring glibc
6997 # with a fresh cross-compiler works.
6998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 # <limits.h> exists even on freestanding compilers.
7000 # On the NeXT, cc -E runs the code through the compiler's parser,
7001 # not just through cpp. "Syntax error" is here to catch this case.
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h. */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 #ifdef __STDC__
7009 # include <limits.h>
7010 #else
7011 # include <assert.h>
7012 #endif
7013 Syntax error
7014 _ACEOF
7015 if { (ac_try="$ac_cpp conftest.$ac_ext"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7021 $as_echo "$ac_try_echo") >&5
7022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev/null && {
7029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 }; then
7032 :
7033 else
7034 $as_echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 # Broken: fails on valid input.
7038 continue
7039 fi
7040
7041 rm -f conftest.err conftest.$ac_ext
7042
7043 # OK, works on sane cases. Now check whether nonexistent headers
7044 # can be detected and how.
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <ac_nonexistent.h>
7052 _ACEOF
7053 if { (ac_try="$ac_cpp conftest.$ac_ext"
7054 case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057 esac
7058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059 $as_echo "$ac_try_echo") >&5
7060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } >/dev/null && {
7067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7068 test ! -s conftest.err
7069 }; then
7070 # Broken: success on invalid input.
7071 continue
7072 else
7073 $as_echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 # Passes both tests.
7077 ac_preproc_ok=:
7078 break
7079 fi
7080
7081 rm -f conftest.err conftest.$ac_ext
7082
7083 done
7084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7085 rm -f conftest.err conftest.$ac_ext
7086 if $ac_preproc_ok; then
7087 :
7088 else
7089 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7092 See \`config.log' for more details." >&5
7093 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7094 See \`config.log' for more details." >&2;}
7095 { (exit 1); exit 1; }; }; }
7096 fi
7097
7098 ac_ext=c
7099 ac_cpp='$CPP $CPPFLAGS'
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103
7104
7105 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7106 $as_echo_n "checking for ANSI C header files... " >&6; }
7107 if test "${ac_cv_header_stdc+set}" = set; then
7108 $as_echo_n "(cached) " >&6
7109 else
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 #include <stdlib.h>
7117 #include <stdarg.h>
7118 #include <string.h>
7119 #include <float.h>
7120
7121 int
7122 main ()
7123 {
7124
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (ac_try="$ac_compile"
7131 case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134 esac
7135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7136 $as_echo "$ac_try_echo") >&5
7137 (eval "$ac_compile") 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest.$ac_objext; then
7147 ac_cv_header_stdc=yes
7148 else
7149 $as_echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_header_stdc=no
7153 fi
7154
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156
7157 if test $ac_cv_header_stdc = yes; then
7158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7159 cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165 #include <string.h>
7166
7167 _ACEOF
7168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169 $EGREP "memchr" >/dev/null 2>&1; then
7170 :
7171 else
7172 ac_cv_header_stdc=no
7173 fi
7174 rm -f conftest*
7175
7176 fi
7177
7178 if test $ac_cv_header_stdc = yes; then
7179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 #include <stdlib.h>
7187
7188 _ACEOF
7189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190 $EGREP "free" >/dev/null 2>&1; then
7191 :
7192 else
7193 ac_cv_header_stdc=no
7194 fi
7195 rm -f conftest*
7196
7197 fi
7198
7199 if test $ac_cv_header_stdc = yes; then
7200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7201 if test "$cross_compiling" = yes; then
7202 :
7203 else
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #include <ctype.h>
7211 #include <stdlib.h>
7212 #if ((' ' & 0x0FF) == 0x020)
7213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7215 #else
7216 # define ISLOWER(c) \
7217 (('a' <= (c) && (c) <= 'i') \
7218 || ('j' <= (c) && (c) <= 'r') \
7219 || ('s' <= (c) && (c) <= 'z'))
7220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7221 #endif
7222
7223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7224 int
7225 main ()
7226 {
7227 int i;
7228 for (i = 0; i < 256; i++)
7229 if (XOR (islower (i), ISLOWER (i))
7230 || toupper (i) != TOUPPER (i))
7231 return 2;
7232 return 0;
7233 }
7234 _ACEOF
7235 rm -f conftest$ac_exeext
7236 if { (ac_try="$ac_link"
7237 case "(($ac_try" in
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7240 esac
7241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7242 $as_echo "$ac_try_echo") >&5
7243 (eval "$ac_link") 2>&5
7244 ac_status=$?
7245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7247 { (case "(($ac_try" in
7248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7250 esac
7251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7252 $as_echo "$ac_try_echo") >&5
7253 (eval "$ac_try") 2>&5
7254 ac_status=$?
7255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 :
7258 else
7259 $as_echo "$as_me: program exited with status $ac_status" >&5
7260 $as_echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 ( exit $ac_status )
7264 ac_cv_header_stdc=no
7265 fi
7266 rm -rf conftest.dSYM
7267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7268 fi
7269
7270
7271 fi
7272 fi
7273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7274 $as_echo "$ac_cv_header_stdc" >&6; }
7275 if test $ac_cv_header_stdc = yes; then
7276
7277 cat >>confdefs.h <<\_ACEOF
7278 #define STDC_HEADERS 1
7279 _ACEOF
7280
7281 fi
7282
7283 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7294 inttypes.h stdint.h unistd.h
7295 do
7296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7298 $as_echo_n "checking for $ac_header... " >&6; }
7299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300 $as_echo_n "(cached) " >&6
7301 else
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309
7310 #include <$ac_header>
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7314 case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317 esac
7318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7319 $as_echo "$ac_try_echo") >&5
7320 (eval "$ac_compile") 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.$ac_objext; then
7330 eval "$as_ac_Header=yes"
7331 else
7332 $as_echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7334
7335 eval "$as_ac_Header=no"
7336 fi
7337
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 ac_res=`eval 'as_val=${'$as_ac_Header'}
7341 $as_echo "$as_val"'`
7342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7343 $as_echo "$ac_res" >&6; }
7344 as_val=`eval 'as_val=${'$as_ac_Header'}
7345 $as_echo "$as_val"'`
7346 if test "x$as_val" = x""yes; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349 _ACEOF
7350
7351 fi
7352
7353 done
7354
7355
7356
7357 for ac_header in dlfcn.h
7358 do
7359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 $as_echo_n "checking for $ac_header... " >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 $as_echo_n "(cached) " >&6
7364 else
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7372
7373 #include <$ac_header>
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7377 case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7380 esac
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 eval "$as_ac_Header=yes"
7394 else
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 eval "$as_ac_Header=no"
7399 fi
7400
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 ac_res=`eval 'as_val=${'$as_ac_Header'}
7404 $as_echo "$as_val"'`
7405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7406 $as_echo "$ac_res" >&6; }
7407 as_val=`eval 'as_val=${'$as_ac_Header'}
7408 $as_echo "$as_val"'`
7409 if test "x$as_val" = x""yes; then
7410 cat >>confdefs.h <<_ACEOF
7411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 _ACEOF
7413
7414 fi
7415
7416 done
7417
7418
7419
7420 # Set options
7421
7422
7423
7424 enable_dlopen=no
7425
7426
7427
7428 # Check whether --enable-shared was given.
7429 if test "${enable_shared+set}" = set; then
7430 enableval=$enable_shared; p=${PACKAGE-default}
7431 case $enableval in
7432 yes) enable_shared=yes ;;
7433 no) enable_shared=no ;;
7434 *)
7435 enable_shared=no
7436 # Look at the argument we got. We use all the common list separators.
7437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7438 for pkg in $enableval; do
7439 IFS="$lt_save_ifs"
7440 if test "X$pkg" = "X$p"; then
7441 enable_shared=yes
7442 fi
7443 done
7444 IFS="$lt_save_ifs"
7445 ;;
7446 esac
7447 else
7448 enable_shared=yes
7449 fi
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459 # Check whether --enable-static was given.
7460 if test "${enable_static+set}" = set; then
7461 enableval=$enable_static; p=${PACKAGE-default}
7462 case $enableval in
7463 yes) enable_static=yes ;;
7464 no) enable_static=no ;;
7465 *)
7466 enable_static=no
7467 # Look at the argument we got. We use all the common list separators.
7468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7469 for pkg in $enableval; do
7470 IFS="$lt_save_ifs"
7471 if test "X$pkg" = "X$p"; then
7472 enable_static=yes
7473 fi
7474 done
7475 IFS="$lt_save_ifs"
7476 ;;
7477 esac
7478 else
7479 enable_static=yes
7480 fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 # Check whether --with-pic was given.
7492 if test "${with_pic+set}" = set; then
7493 withval=$with_pic; pic_mode="$withval"
7494 else
7495 pic_mode=default
7496 fi
7497
7498
7499 test -z "$pic_mode" && pic_mode=default
7500
7501
7502
7503
7504
7505
7506
7507 # Check whether --enable-fast-install was given.
7508 if test "${enable_fast_install+set}" = set; then
7509 enableval=$enable_fast_install; p=${PACKAGE-default}
7510 case $enableval in
7511 yes) enable_fast_install=yes ;;
7512 no) enable_fast_install=no ;;
7513 *)
7514 enable_fast_install=no
7515 # Look at the argument we got. We use all the common list separators.
7516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517 for pkg in $enableval; do
7518 IFS="$lt_save_ifs"
7519 if test "X$pkg" = "X$p"; then
7520 enable_fast_install=yes
7521 fi
7522 done
7523 IFS="$lt_save_ifs"
7524 ;;
7525 esac
7526 else
7527 enable_fast_install=yes
7528 fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 # This can be used to rebuild libtool when needed
7541 LIBTOOL_DEPS="$ltmain"
7542
7543 # Always use our own libtool.
7544 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 test -z "$LN_S" && LN_S="ln -s"
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585 if test -n "${ZSH_VERSION+set}" ; then
7586 setopt NO_GLOB_SUBST
7587 fi
7588
7589 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7590 $as_echo_n "checking for objdir... " >&6; }
7591 if test "${lt_cv_objdir+set}" = set; then
7592 $as_echo_n "(cached) " >&6
7593 else
7594 rm -f .libs 2>/dev/null
7595 mkdir .libs 2>/dev/null
7596 if test -d .libs; then
7597 lt_cv_objdir=.libs
7598 else
7599 # MS-DOS does not allow filenames that begin with a dot.
7600 lt_cv_objdir=_libs
7601 fi
7602 rmdir .libs 2>/dev/null
7603 fi
7604 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7605 $as_echo "$lt_cv_objdir" >&6; }
7606 objdir=$lt_cv_objdir
7607
7608
7609
7610
7611
7612 cat >>confdefs.h <<_ACEOF
7613 #define LT_OBJDIR "$lt_cv_objdir/"
7614 _ACEOF
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632 case $host_os in
7633 aix3*)
7634 # AIX sometimes has problems with the GCC collect2 program. For some
7635 # reason, if we set the COLLECT_NAMES environment variable, the problems
7636 # vanish in a puff of smoke.
7637 if test "X${COLLECT_NAMES+set}" != Xset; then
7638 COLLECT_NAMES=
7639 export COLLECT_NAMES
7640 fi
7641 ;;
7642 esac
7643
7644 # Sed substitution that helps us do robust quoting. It backslashifies
7645 # metacharacters that are still active within double-quoted strings.
7646 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7647
7648 # Same as above, but do not quote variable references.
7649 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7650
7651 # Sed substitution to delay expansion of an escaped shell variable in a
7652 # double_quote_subst'ed string.
7653 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7654
7655 # Sed substitution to delay expansion of an escaped single quote.
7656 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7657
7658 # Sed substitution to avoid accidental globbing in evaled expressions
7659 no_glob_subst='s/\*/\\\*/g'
7660
7661 # Global variables:
7662 ofile=libtool
7663 can_build_shared=yes
7664
7665 # All known linkers require a `.a' archive for static linking (except MSVC,
7666 # which needs '.lib').
7667 libext=a
7668
7669 with_gnu_ld="$lt_cv_prog_gnu_ld"
7670
7671 old_CC="$CC"
7672 old_CFLAGS="$CFLAGS"
7673
7674 # Set sane defaults for various variables
7675 test -z "$CC" && CC=cc
7676 test -z "$LTCC" && LTCC=$CC
7677 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7678 test -z "$LD" && LD=ld
7679 test -z "$ac_objext" && ac_objext=o
7680
7681 for cc_temp in $compiler""; do
7682 case $cc_temp in
7683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7685 \-*) ;;
7686 *) break;;
7687 esac
7688 done
7689 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7690
7691
7692 # Only perform the check for file, if the check method requires it
7693 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7694 case $deplibs_check_method in
7695 file_magic*)
7696 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7697 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7698 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7701 else
7702 case $MAGIC_CMD in
7703 [\\/*] | ?:[\\/]*)
7704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7705 ;;
7706 *)
7707 lt_save_MAGIC_CMD="$MAGIC_CMD"
7708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7710 for ac_dir in $ac_dummy; do
7711 IFS="$lt_save_ifs"
7712 test -z "$ac_dir" && ac_dir=.
7713 if test -f $ac_dir/${ac_tool_prefix}file; then
7714 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7715 if test -n "$file_magic_test_file"; then
7716 case $deplibs_check_method in
7717 "file_magic "*)
7718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7721 $EGREP "$file_magic_regex" > /dev/null; then
7722 :
7723 else
7724 cat <<_LT_EOF 1>&2
7725
7726 *** Warning: the command libtool uses to detect shared libraries,
7727 *** $file_magic_cmd, produces output that libtool cannot recognize.
7728 *** The result is that libtool may fail to recognize shared libraries
7729 *** as such. This will affect the creation of libtool libraries that
7730 *** depend on shared libraries, but programs linked with such libtool
7731 *** libraries will work regardless of this problem. Nevertheless, you
7732 *** may want to report the problem to your system manager and/or to
7733 *** bug-libtool@gnu.org
7734
7735 _LT_EOF
7736 fi ;;
7737 esac
7738 fi
7739 break
7740 fi
7741 done
7742 IFS="$lt_save_ifs"
7743 MAGIC_CMD="$lt_save_MAGIC_CMD"
7744 ;;
7745 esac
7746 fi
7747
7748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749 if test -n "$MAGIC_CMD"; then
7750 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7751 $as_echo "$MAGIC_CMD" >&6; }
7752 else
7753 { $as_echo "$as_me:$LINENO: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758
7759
7760
7761 if test -z "$lt_cv_path_MAGIC_CMD"; then
7762 if test -n "$ac_tool_prefix"; then
7763 { $as_echo "$as_me:$LINENO: checking for file" >&5
7764 $as_echo_n "checking for file... " >&6; }
7765 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7766 $as_echo_n "(cached) " >&6
7767 else
7768 case $MAGIC_CMD in
7769 [\\/*] | ?:[\\/]*)
7770 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 lt_save_MAGIC_CMD="$MAGIC_CMD"
7774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7776 for ac_dir in $ac_dummy; do
7777 IFS="$lt_save_ifs"
7778 test -z "$ac_dir" && ac_dir=.
7779 if test -f $ac_dir/file; then
7780 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7781 if test -n "$file_magic_test_file"; then
7782 case $deplibs_check_method in
7783 "file_magic "*)
7784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7787 $EGREP "$file_magic_regex" > /dev/null; then
7788 :
7789 else
7790 cat <<_LT_EOF 1>&2
7791
7792 *** Warning: the command libtool uses to detect shared libraries,
7793 *** $file_magic_cmd, produces output that libtool cannot recognize.
7794 *** The result is that libtool may fail to recognize shared libraries
7795 *** as such. This will affect the creation of libtool libraries that
7796 *** depend on shared libraries, but programs linked with such libtool
7797 *** libraries will work regardless of this problem. Nevertheless, you
7798 *** may want to report the problem to your system manager and/or to
7799 *** bug-libtool@gnu.org
7800
7801 _LT_EOF
7802 fi ;;
7803 esac
7804 fi
7805 break
7806 fi
7807 done
7808 IFS="$lt_save_ifs"
7809 MAGIC_CMD="$lt_save_MAGIC_CMD"
7810 ;;
7811 esac
7812 fi
7813
7814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7815 if test -n "$MAGIC_CMD"; then
7816 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7817 $as_echo "$MAGIC_CMD" >&6; }
7818 else
7819 { $as_echo "$as_me:$LINENO: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823
7824 else
7825 MAGIC_CMD=:
7826 fi
7827 fi
7828
7829 fi
7830 ;;
7831 esac
7832
7833 # Use C for the default configuration in the libtool script
7834
7835 lt_save_CC="$CC"
7836 ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843 # Source file extension for C test sources.
7844 ac_ext=c
7845
7846 # Object file extension for compiled C test sources.
7847 objext=o
7848 objext=$objext
7849
7850 # Code to be used in simple compile tests
7851 lt_simple_compile_test_code="int some_variable = 0;"
7852
7853 # Code to be used in simple link tests
7854 lt_simple_link_test_code='int main(){return(0);}'
7855
7856
7857
7858
7859
7860
7861
7862 # If no C compiler was specified, use CC.
7863 LTCC=${LTCC-"$CC"}
7864
7865 # If no C compiler flags were specified, use CFLAGS.
7866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867
7868 # Allow CC to be a program name with arguments.
7869 compiler=$CC
7870
7871 # Save the default compiler, since it gets overwritten when the other
7872 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7873 compiler_DEFAULT=$CC
7874
7875 # save warnings/boilerplate of simple test code
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7878 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879 _lt_compiler_boilerplate=`cat conftest.err`
7880 $RM conftest*
7881
7882 ac_outfile=conftest.$ac_objext
7883 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7884 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7885 _lt_linker_boilerplate=`cat conftest.err`
7886 $RM -r conftest*
7887
7888
7889 if test -n "$compiler"; then
7890
7891 lt_prog_compiler_no_builtin_flag=
7892
7893 if test "$GCC" = yes; then
7894 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7895
7896 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7897 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7898 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7899 $as_echo_n "(cached) " >&6
7900 else
7901 lt_cv_prog_compiler_rtti_exceptions=no
7902 ac_outfile=conftest.$ac_objext
7903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904 lt_compiler_flag="-fno-rtti -fno-exceptions"
7905 # Insert the option either (1) after the last *FLAGS variable, or
7906 # (2) before a word containing "conftest.", or (3) at the end.
7907 # Note that $ac_compile itself does not contain backslashes and begins
7908 # with a dollar sign (not a hyphen), so the echo should work correctly.
7909 # The option is referenced via a variable to avoid confusing sed.
7910 lt_compile=`echo "$ac_compile" | $SED \
7911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913 -e 's:$: $lt_compiler_flag:'`
7914 (eval echo "\"\$as_me:7914: $lt_compile\"" >&5)
7915 (eval "$lt_compile" 2>conftest.err)
7916 ac_status=$?
7917 cat conftest.err >&5
7918 echo "$as_me:7918: \$? = $ac_status" >&5
7919 if (exit $ac_status) && test -s "$ac_outfile"; then
7920 # The compiler can only warn and ignore the option if not recognized
7921 # So say no if there are warnings other than the usual output.
7922 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925 lt_cv_prog_compiler_rtti_exceptions=yes
7926 fi
7927 fi
7928 $RM conftest*
7929
7930 fi
7931 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7932 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7933
7934 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7936 else
7937 :
7938 fi
7939
7940 fi
7941
7942
7943
7944
7945
7946
7947 lt_prog_compiler_wl=
7948 lt_prog_compiler_pic=
7949 lt_prog_compiler_static=
7950
7951 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7952 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7953
7954 if test "$GCC" = yes; then
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_static='-static'
7957
7958 case $host_os in
7959 aix*)
7960 # All AIX code is PIC.
7961 if test "$host_cpu" = ia64; then
7962 # AIX 5 now supports IA64 processor
7963 lt_prog_compiler_static='-Bstatic'
7964 fi
7965 ;;
7966
7967 amigaos*)
7968 case $host_cpu in
7969 powerpc)
7970 # see comment about AmigaOS4 .so support
7971 lt_prog_compiler_pic='-fPIC'
7972 ;;
7973 m68k)
7974 # FIXME: we need at least 68020 code to build shared libraries, but
7975 # adding the `-m68020' flag to GCC prevents building anything better,
7976 # like `-m68040'.
7977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7978 ;;
7979 esac
7980 ;;
7981
7982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7983 # PIC is the default for these OSes.
7984 ;;
7985
7986 mingw* | cygwin* | pw32* | os2* | cegcc*)
7987 # This hack is so that the source file can tell whether it is being
7988 # built for inclusion in a dll (and should export symbols for example).
7989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7990 # (--disable-auto-import) libraries
7991 lt_prog_compiler_pic='-DDLL_EXPORT'
7992 ;;
7993
7994 darwin* | rhapsody*)
7995 # PIC is the default on this platform
7996 # Common symbols not allowed in MH_DYLIB files
7997 lt_prog_compiler_pic='-fno-common'
7998 ;;
7999
8000 hpux*)
8001 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8002 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8003 # sets the default TLS model and affects inlining.
8004 case $host_cpu in
8005 hppa*64*)
8006 # +Z the default
8007 ;;
8008 *)
8009 lt_prog_compiler_pic='-fPIC'
8010 ;;
8011 esac
8012 ;;
8013
8014 interix[3-9]*)
8015 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8016 # Instead, we relocate shared libraries at runtime.
8017 ;;
8018
8019 msdosdjgpp*)
8020 # Just because we use GCC doesn't mean we suddenly get shared libraries
8021 # on systems that don't support them.
8022 lt_prog_compiler_can_build_shared=no
8023 enable_shared=no
8024 ;;
8025
8026 *nto* | *qnx*)
8027 # QNX uses GNU C++, but need to define -shared option too, otherwise
8028 # it will coredump.
8029 lt_prog_compiler_pic='-fPIC -shared'
8030 ;;
8031
8032 sysv4*MP*)
8033 if test -d /usr/nec; then
8034 lt_prog_compiler_pic=-Kconform_pic
8035 fi
8036 ;;
8037
8038 *)
8039 lt_prog_compiler_pic='-fPIC'
8040 ;;
8041 esac
8042 else
8043 # PORTME Check for flag to pass linker flags through the system compiler.
8044 case $host_os in
8045 aix*)
8046 lt_prog_compiler_wl='-Wl,'
8047 if test "$host_cpu" = ia64; then
8048 # AIX 5 now supports IA64 processor
8049 lt_prog_compiler_static='-Bstatic'
8050 else
8051 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8052 fi
8053 ;;
8054
8055 mingw* | cygwin* | pw32* | os2* | cegcc*)
8056 # This hack is so that the source file can tell whether it is being
8057 # built for inclusion in a dll (and should export symbols for example).
8058 lt_prog_compiler_pic='-DDLL_EXPORT'
8059 ;;
8060
8061 hpux9* | hpux10* | hpux11*)
8062 lt_prog_compiler_wl='-Wl,'
8063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064 # not for PA HP-UX.
8065 case $host_cpu in
8066 hppa*64*|ia64*)
8067 # +Z the default
8068 ;;
8069 *)
8070 lt_prog_compiler_pic='+Z'
8071 ;;
8072 esac
8073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074 lt_prog_compiler_static='${wl}-a ${wl}archive'
8075 ;;
8076
8077 irix5* | irix6* | nonstopux*)
8078 lt_prog_compiler_wl='-Wl,'
8079 # PIC (with -KPIC) is the default.
8080 lt_prog_compiler_static='-non_shared'
8081 ;;
8082
8083 linux* | k*bsd*-gnu)
8084 case $cc_basename in
8085 # old Intel for x86_64 which still supported -KPIC.
8086 ecc*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-static'
8090 ;;
8091 # icc used to be incompatible with GCC.
8092 # ICC 10 doesn't accept -KPIC any more.
8093 icc* | ifort*)
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-fPIC'
8096 lt_prog_compiler_static='-static'
8097 ;;
8098 # Lahey Fortran 8.1.
8099 lf95*)
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='--shared'
8102 lt_prog_compiler_static='--static'
8103 ;;
8104 pgcc* | pgf77* | pgf90* | pgf95*)
8105 # Portland Group compilers (*not* the Pentium gcc compiler,
8106 # which looks to be a dead project)
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-fpic'
8109 lt_prog_compiler_static='-Bstatic'
8110 ;;
8111 ccc*)
8112 lt_prog_compiler_wl='-Wl,'
8113 # All Alpha code is PIC.
8114 lt_prog_compiler_static='-non_shared'
8115 ;;
8116 xl*)
8117 # IBM XL C 8.0/Fortran 10.1 on PPC
8118 lt_prog_compiler_wl='-Wl,'
8119 lt_prog_compiler_pic='-qpic'
8120 lt_prog_compiler_static='-qstaticlink'
8121 ;;
8122 *)
8123 case `$CC -V 2>&1 | sed 5q` in
8124 *Sun\ C*)
8125 # Sun C 5.9
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 lt_prog_compiler_wl='-Wl,'
8129 ;;
8130 *Sun\ F*)
8131 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-Bstatic'
8134 lt_prog_compiler_wl=''
8135 ;;
8136 esac
8137 ;;
8138 esac
8139 ;;
8140
8141 newsos6)
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8144 ;;
8145
8146 *nto* | *qnx*)
8147 # QNX uses GNU C++, but need to define -shared option too, otherwise
8148 # it will coredump.
8149 lt_prog_compiler_pic='-fPIC -shared'
8150 ;;
8151
8152 osf3* | osf4* | osf5*)
8153 lt_prog_compiler_wl='-Wl,'
8154 # All OSF/1 code is PIC.
8155 lt_prog_compiler_static='-non_shared'
8156 ;;
8157
8158 rdos*)
8159 lt_prog_compiler_static='-non_shared'
8160 ;;
8161
8162 solaris*)
8163 lt_prog_compiler_pic='-KPIC'
8164 lt_prog_compiler_static='-Bstatic'
8165 case $cc_basename in
8166 f77* | f90* | f95*)
8167 lt_prog_compiler_wl='-Qoption ld ';;
8168 *)
8169 lt_prog_compiler_wl='-Wl,';;
8170 esac
8171 ;;
8172
8173 sunos4*)
8174 lt_prog_compiler_wl='-Qoption ld '
8175 lt_prog_compiler_pic='-PIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 sysv4 | sysv4.2uw2* | sysv4.3*)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-Bstatic'
8183 ;;
8184
8185 sysv4*MP*)
8186 if test -d /usr/nec ;then
8187 lt_prog_compiler_pic='-Kconform_pic'
8188 lt_prog_compiler_static='-Bstatic'
8189 fi
8190 ;;
8191
8192 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_pic='-KPIC'
8195 lt_prog_compiler_static='-Bstatic'
8196 ;;
8197
8198 unicos*)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_can_build_shared=no
8201 ;;
8202
8203 uts4*)
8204 lt_prog_compiler_pic='-pic'
8205 lt_prog_compiler_static='-Bstatic'
8206 ;;
8207
8208 *)
8209 lt_prog_compiler_can_build_shared=no
8210 ;;
8211 esac
8212 fi
8213
8214 case $host_os in
8215 # For platforms which do not support PIC, -DPIC is meaningless:
8216 *djgpp*)
8217 lt_prog_compiler_pic=
8218 ;;
8219 *)
8220 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8221 ;;
8222 esac
8223 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8224 $as_echo "$lt_prog_compiler_pic" >&6; }
8225
8226
8227
8228
8229
8230
8231 #
8232 # Check to make sure the PIC flag actually works.
8233 #
8234 if test -n "$lt_prog_compiler_pic"; then
8235 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8236 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8237 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8238 $as_echo_n "(cached) " >&6
8239 else
8240 lt_cv_prog_compiler_pic_works=no
8241 ac_outfile=conftest.$ac_objext
8242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8244 # Insert the option either (1) after the last *FLAGS variable, or
8245 # (2) before a word containing "conftest.", or (3) at the end.
8246 # Note that $ac_compile itself does not contain backslashes and begins
8247 # with a dollar sign (not a hyphen), so the echo should work correctly.
8248 # The option is referenced via a variable to avoid confusing sed.
8249 lt_compile=`echo "$ac_compile" | $SED \
8250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252 -e 's:$: $lt_compiler_flag:'`
8253 (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8254 (eval "$lt_compile" 2>conftest.err)
8255 ac_status=$?
8256 cat conftest.err >&5
8257 echo "$as_me:8257: \$? = $ac_status" >&5
8258 if (exit $ac_status) && test -s "$ac_outfile"; then
8259 # The compiler can only warn and ignore the option if not recognized
8260 # So say no if there are warnings other than the usual output.
8261 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264 lt_cv_prog_compiler_pic_works=yes
8265 fi
8266 fi
8267 $RM conftest*
8268
8269 fi
8270 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8271 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8272
8273 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8274 case $lt_prog_compiler_pic in
8275 "" | " "*) ;;
8276 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8277 esac
8278 else
8279 lt_prog_compiler_pic=
8280 lt_prog_compiler_can_build_shared=no
8281 fi
8282
8283 fi
8284
8285
8286
8287
8288
8289
8290 #
8291 # Check to make sure the static flag actually works.
8292 #
8293 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8294 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8295 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8296 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8297 $as_echo_n "(cached) " >&6
8298 else
8299 lt_cv_prog_compiler_static_works=no
8300 save_LDFLAGS="$LDFLAGS"
8301 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8302 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8304 # The linker can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 if test -s conftest.err; then
8307 # Append any errors to the config.log.
8308 cat conftest.err 1>&5
8309 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8311 if diff conftest.exp conftest.er2 >/dev/null; then
8312 lt_cv_prog_compiler_static_works=yes
8313 fi
8314 else
8315 lt_cv_prog_compiler_static_works=yes
8316 fi
8317 fi
8318 $RM -r conftest*
8319 LDFLAGS="$save_LDFLAGS"
8320
8321 fi
8322 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8323 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8324
8325 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8326 :
8327 else
8328 lt_prog_compiler_static=
8329 fi
8330
8331
8332
8333
8334
8335
8336
8337 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8340 $as_echo_n "(cached) " >&6
8341 else
8342 lt_cv_prog_compiler_c_o=no
8343 $RM -r conftest 2>/dev/null
8344 mkdir conftest
8345 cd conftest
8346 mkdir out
8347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348
8349 lt_compiler_flag="-o out/conftest2.$ac_objext"
8350 # Insert the option either (1) after the last *FLAGS variable, or
8351 # (2) before a word containing "conftest.", or (3) at the end.
8352 # Note that $ac_compile itself does not contain backslashes and begins
8353 # with a dollar sign (not a hyphen), so the echo should work correctly.
8354 lt_compile=`echo "$ac_compile" | $SED \
8355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357 -e 's:$: $lt_compiler_flag:'`
8358 (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
8359 (eval "$lt_compile" 2>out/conftest.err)
8360 ac_status=$?
8361 cat out/conftest.err >&5
8362 echo "$as_me:8362: \$? = $ac_status" >&5
8363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364 then
8365 # The compiler can only warn and ignore the option if not recognized
8366 # So say no if there are warnings
8367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_c_o=yes
8371 fi
8372 fi
8373 chmod u+w . 2>&5
8374 $RM conftest*
8375 # SGI C++ compiler will create directory out/ii_files/ for
8376 # template instantiation
8377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378 $RM out/* && rmdir out
8379 cd ..
8380 $RM -r conftest
8381 $RM conftest*
8382
8383 fi
8384 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8386
8387
8388
8389
8390
8391
8392 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8394 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8395 $as_echo_n "(cached) " >&6
8396 else
8397 lt_cv_prog_compiler_c_o=no
8398 $RM -r conftest 2>/dev/null
8399 mkdir conftest
8400 cd conftest
8401 mkdir out
8402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8403
8404 lt_compiler_flag="-o out/conftest2.$ac_objext"
8405 # Insert the option either (1) after the last *FLAGS variable, or
8406 # (2) before a word containing "conftest.", or (3) at the end.
8407 # Note that $ac_compile itself does not contain backslashes and begins
8408 # with a dollar sign (not a hyphen), so the echo should work correctly.
8409 lt_compile=`echo "$ac_compile" | $SED \
8410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8412 -e 's:$: $lt_compiler_flag:'`
8413 (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
8414 (eval "$lt_compile" 2>out/conftest.err)
8415 ac_status=$?
8416 cat out/conftest.err >&5
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8419 then
8420 # The compiler can only warn and ignore the option if not recognized
8421 # So say no if there are warnings
8422 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8425 lt_cv_prog_compiler_c_o=yes
8426 fi
8427 fi
8428 chmod u+w . 2>&5
8429 $RM conftest*
8430 # SGI C++ compiler will create directory out/ii_files/ for
8431 # template instantiation
8432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8433 $RM out/* && rmdir out
8434 cd ..
8435 $RM -r conftest
8436 $RM conftest*
8437
8438 fi
8439 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8440 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8441
8442
8443
8444
8445 hard_links="nottested"
8446 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447 # do not overwrite the value of need_locks provided by the user
8448 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8449 $as_echo_n "checking if we can lock with hard links... " >&6; }
8450 hard_links=yes
8451 $RM conftest*
8452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453 touch conftest.a
8454 ln conftest.a conftest.b 2>&5 || hard_links=no
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8457 $as_echo "$hard_links" >&6; }
8458 if test "$hard_links" = no; then
8459 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461 need_locks=warn
8462 fi
8463 else
8464 need_locks=no
8465 fi
8466
8467
8468
8469
8470
8471
8472 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8473 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8474
8475 runpath_var=
8476 allow_undefined_flag=
8477 always_export_symbols=no
8478 archive_cmds=
8479 archive_expsym_cmds=
8480 compiler_needs_object=no
8481 enable_shared_with_static_runtimes=no
8482 export_dynamic_flag_spec=
8483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8484 hardcode_automatic=no
8485 hardcode_direct=no
8486 hardcode_direct_absolute=no
8487 hardcode_libdir_flag_spec=
8488 hardcode_libdir_flag_spec_ld=
8489 hardcode_libdir_separator=
8490 hardcode_minus_L=no
8491 hardcode_shlibpath_var=unsupported
8492 inherit_rpath=no
8493 link_all_deplibs=unknown
8494 module_cmds=
8495 module_expsym_cmds=
8496 old_archive_from_new_cmds=
8497 old_archive_from_expsyms_cmds=
8498 thread_safe_flag_spec=
8499 whole_archive_flag_spec=
8500 # include_expsyms should be a list of space-separated symbols to be *always*
8501 # included in the symbol list
8502 include_expsyms=
8503 # exclude_expsyms can be an extended regexp of symbols to exclude
8504 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8505 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8506 # as well as any symbol that contains `d'.
8507 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8508 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8509 # platforms (ab)use it in PIC code, but their linkers get confused if
8510 # the symbol is explicitly referenced. Since portable code cannot
8511 # rely on this symbol name, it's probably fine to never include it in
8512 # preloaded symbol tables.
8513 # Exclude shared library initialization/finalization symbols.
8514 extract_expsyms_cmds=
8515
8516 case $host_os in
8517 cygwin* | mingw* | pw32* | cegcc*)
8518 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8519 # When not using gcc, we currently assume that we are using
8520 # Microsoft Visual C++.
8521 if test "$GCC" != yes; then
8522 with_gnu_ld=no
8523 fi
8524 ;;
8525 interix*)
8526 # we just hope/assume this is gcc and not c89 (= MSVC++)
8527 with_gnu_ld=yes
8528 ;;
8529 openbsd*)
8530 with_gnu_ld=no
8531 ;;
8532 esac
8533
8534 ld_shlibs=yes
8535 if test "$with_gnu_ld" = yes; then
8536 # If archive_cmds runs LD, not CC, wlarc should be empty
8537 wlarc='${wl}'
8538
8539 # Set some defaults for GNU ld with shared library support. These
8540 # are reset later if shared libraries are not supported. Putting them
8541 # here allows them to be overridden if necessary.
8542 runpath_var=LD_RUN_PATH
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 export_dynamic_flag_spec='${wl}--export-dynamic'
8545 # ancient GNU ld didn't support --whole-archive et. al.
8546 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8547 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8548 else
8549 whole_archive_flag_spec=
8550 fi
8551 supports_anon_versioning=no
8552 case `$LD -v 2>&1` in
8553 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8554 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8555 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8556 *\ 2.11.*) ;; # other 2.11 versions
8557 *) supports_anon_versioning=yes ;;
8558 esac
8559
8560 # See if GNU ld supports shared libraries.
8561 case $host_os in
8562 aix[3-9]*)
8563 # On AIX/PPC, the GNU linker is very broken
8564 if test "$host_cpu" != ia64; then
8565 ld_shlibs=no
8566 cat <<_LT_EOF 1>&2
8567
8568 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8569 *** to be unable to reliably create shared libraries on AIX.
8570 *** Therefore, libtool is disabling shared libraries support. If you
8571 *** really care for shared libraries, you may want to modify your PATH
8572 *** so that a non-GNU linker is found, and then restart.
8573
8574 _LT_EOF
8575 fi
8576 ;;
8577
8578 amigaos*)
8579 case $host_cpu in
8580 powerpc)
8581 # see comment about AmigaOS4 .so support
8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 archive_expsym_cmds=''
8584 ;;
8585 m68k)
8586 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)'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_minus_L=yes
8589 ;;
8590 esac
8591 ;;
8592
8593 beos*)
8594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8595 allow_undefined_flag=unsupported
8596 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8597 # support --undefined. This deserves some investigation. FIXME
8598 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599 else
8600 ld_shlibs=no
8601 fi
8602 ;;
8603
8604 cygwin* | mingw* | pw32* | cegcc*)
8605 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8606 # as there is no search path for DLLs.
8607 hardcode_libdir_flag_spec='-L$libdir'
8608 allow_undefined_flag=unsupported
8609 always_export_symbols=no
8610 enable_shared_with_static_runtimes=yes
8611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8612
8613 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8615 # If the export-symbols file already is a .def file (1st line
8616 # is EXPORTS), use it as is; otherwise, prepend...
8617 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8618 cp $export_symbols $output_objdir/$soname.def;
8619 else
8620 echo EXPORTS > $output_objdir/$soname.def;
8621 cat $export_symbols >> $output_objdir/$soname.def;
8622 fi~
8623 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624 else
8625 ld_shlibs=no
8626 fi
8627 ;;
8628
8629 interix[3-9]*)
8630 hardcode_direct=no
8631 hardcode_shlibpath_var=no
8632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633 export_dynamic_flag_spec='${wl}-E'
8634 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8635 # Instead, shared libraries are loaded at an image base (0x10000000 by
8636 # default) and relocated if they conflict, which is a slow very memory
8637 # consuming and fragmenting process. To avoid this, we pick a random,
8638 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8639 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8641 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'
8642 ;;
8643
8644 gnu* | linux* | tpf* | k*bsd*-gnu)
8645 tmp_diet=no
8646 if test "$host_os" = linux-dietlibc; then
8647 case $cc_basename in
8648 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8649 esac
8650 fi
8651 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8652 && test "$tmp_diet" = no
8653 then
8654 tmp_addflag=
8655 tmp_sharedflag='-shared'
8656 case $cc_basename,$host_cpu in
8657 pgcc*) # Portland Group C compiler
8658 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'
8659 tmp_addflag=' $pic_flag'
8660 ;;
8661 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8662 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'
8663 tmp_addflag=' $pic_flag -Mnomain' ;;
8664 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8665 tmp_addflag=' -i_dynamic' ;;
8666 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8667 tmp_addflag=' -i_dynamic -nofor_main' ;;
8668 ifc* | ifort*) # Intel Fortran compiler
8669 tmp_addflag=' -nofor_main' ;;
8670 lf95*) # Lahey Fortran 8.1
8671 whole_archive_flag_spec=
8672 tmp_sharedflag='--shared' ;;
8673 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8674 tmp_sharedflag='-qmkshrobj'
8675 tmp_addflag= ;;
8676 esac
8677 case `$CC -V 2>&1 | sed 5q` in
8678 *Sun\ C*) # Sun C 5.9
8679 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'
8680 compiler_needs_object=yes
8681 tmp_sharedflag='-G' ;;
8682 *Sun\ F*) # Sun Fortran 8.3
8683 tmp_sharedflag='-G' ;;
8684 esac
8685 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686
8687 if test "x$supports_anon_versioning" = xyes; then
8688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8690 echo "local: *; };" >> $output_objdir/$libname.ver~
8691 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8692 fi
8693
8694 case $cc_basename in
8695 xlf*)
8696 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8697 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8700 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8701 if test "x$supports_anon_versioning" = xyes; then
8702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8704 echo "local: *; };" >> $output_objdir/$libname.ver~
8705 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8706 fi
8707 ;;
8708 esac
8709 else
8710 ld_shlibs=no
8711 fi
8712 ;;
8713
8714 netbsd*)
8715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8717 wlarc=
8718 else
8719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721 fi
8722 ;;
8723
8724 solaris*)
8725 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8726 ld_shlibs=no
8727 cat <<_LT_EOF 1>&2
8728
8729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8730 *** create shared libraries on Solaris systems. Therefore, libtool
8731 *** is disabling shared libraries support. We urge you to upgrade GNU
8732 *** binutils to release 2.9.1 or newer. Another option is to modify
8733 *** your PATH or compiler configuration so that the native linker is
8734 *** used, and then restart.
8735
8736 _LT_EOF
8737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740 else
8741 ld_shlibs=no
8742 fi
8743 ;;
8744
8745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8746 case `$LD -v 2>&1` in
8747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8748 ld_shlibs=no
8749 cat <<_LT_EOF 1>&2
8750
8751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8752 *** reliably create shared libraries on SCO systems. Therefore, libtool
8753 *** is disabling shared libraries support. We urge you to upgrade GNU
8754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8755 *** your PATH or compiler configuration so that the native linker is
8756 *** used, and then restart.
8757
8758 _LT_EOF
8759 ;;
8760 *)
8761 # For security reasons, it is highly recommended that you always
8762 # use absolute paths for naming shared libraries, and exclude the
8763 # DT_RUNPATH tag from executables and libraries. But doing so
8764 # requires that you compile everything twice, which is a pain.
8765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769 else
8770 ld_shlibs=no
8771 fi
8772 ;;
8773 esac
8774 ;;
8775
8776 sunos4*)
8777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8778 wlarc=
8779 hardcode_direct=yes
8780 hardcode_shlibpath_var=no
8781 ;;
8782
8783 *)
8784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8787 else
8788 ld_shlibs=no
8789 fi
8790 ;;
8791 esac
8792
8793 if test "$ld_shlibs" = no; then
8794 runpath_var=
8795 hardcode_libdir_flag_spec=
8796 export_dynamic_flag_spec=
8797 whole_archive_flag_spec=
8798 fi
8799 else
8800 # PORTME fill in a description of your system's linker (not GNU ld)
8801 case $host_os in
8802 aix3*)
8803 allow_undefined_flag=unsupported
8804 always_export_symbols=yes
8805 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'
8806 # Note: this linker hardcodes the directories in LIBPATH if there
8807 # are no directories specified by -L.
8808 hardcode_minus_L=yes
8809 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8810 # Neither direct hardcoding nor static linking is supported with a
8811 # broken collect2.
8812 hardcode_direct=unsupported
8813 fi
8814 ;;
8815
8816 aix[4-9]*)
8817 if test "$host_cpu" = ia64; then
8818 # On IA64, the linker does run time linking by default, so we don't
8819 # have to do anything special.
8820 aix_use_runtimelinking=no
8821 exp_sym_flag='-Bexport'
8822 no_entry_flag=""
8823 else
8824 # If we're using GNU nm, then we don't want the "-C" option.
8825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8826 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8827 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'
8828 else
8829 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'
8830 fi
8831 aix_use_runtimelinking=no
8832
8833 # Test if we are trying to use run time linking or normal
8834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8835 # need to do runtime linking.
8836 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8837 for ld_flag in $LDFLAGS; do
8838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8839 aix_use_runtimelinking=yes
8840 break
8841 fi
8842 done
8843 ;;
8844 esac
8845
8846 exp_sym_flag='-bexport'
8847 no_entry_flag='-bnoentry'
8848 fi
8849
8850 # When large executables or shared objects are built, AIX ld can
8851 # have problems creating the table of contents. If linking a library
8852 # or program results in "error TOC overflow" add -mminimal-toc to
8853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8855
8856 archive_cmds=''
8857 hardcode_direct=yes
8858 hardcode_direct_absolute=yes
8859 hardcode_libdir_separator=':'
8860 link_all_deplibs=yes
8861 file_list_spec='${wl}-f,'
8862
8863 if test "$GCC" = yes; then
8864 case $host_os in aix4.[012]|aix4.[012].*)
8865 # We only want to do this on AIX 4.2 and lower, the check
8866 # below for broken collect2 doesn't work under 4.3+
8867 collect2name=`${CC} -print-prog-name=collect2`
8868 if test -f "$collect2name" &&
8869 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8870 then
8871 # We have reworked collect2
8872 :
8873 else
8874 # We have old collect2
8875 hardcode_direct=unsupported
8876 # It fails to find uninstalled libraries when the uninstalled
8877 # path is not listed in the libpath. Setting hardcode_minus_L
8878 # to unsupported forces relinking
8879 hardcode_minus_L=yes
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 hardcode_libdir_separator=
8882 fi
8883 ;;
8884 esac
8885 shared_flag='-shared'
8886 if test "$aix_use_runtimelinking" = yes; then
8887 shared_flag="$shared_flag "'${wl}-G'
8888 fi
8889 else
8890 # not using gcc
8891 if test "$host_cpu" = ia64; then
8892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8893 # chokes on -Wl,-G. The following line is correct:
8894 shared_flag='-G'
8895 else
8896 if test "$aix_use_runtimelinking" = yes; then
8897 shared_flag='${wl}-G'
8898 else
8899 shared_flag='${wl}-bM:SRE'
8900 fi
8901 fi
8902 fi
8903
8904 export_dynamic_flag_spec='${wl}-bexpall'
8905 # It seems that -bexpall does not export symbols beginning with
8906 # underscore (_), so it is better to generate a list of symbols to export.
8907 always_export_symbols=yes
8908 if test "$aix_use_runtimelinking" = yes; then
8909 # Warning - without using the other runtime loading flags (-brtl),
8910 # -berok will link without error, but may produce a broken library.
8911 allow_undefined_flag='-berok'
8912 # Determine the default libpath from the value encoded in an
8913 # empty executable.
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920
8921 int
8922 main ()
8923 {
8924
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 rm -f conftest.$ac_objext conftest$ac_exeext
8930 if { (ac_try="$ac_link"
8931 case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8934 esac
8935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8936 $as_echo "$ac_try_echo") >&5
8937 (eval "$ac_link") 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && {
8944 test -z "$ac_c_werror_flag" ||
8945 test ! -s conftest.err
8946 } && test -s conftest$ac_exeext && {
8947 test "$cross_compiling" = yes ||
8948 $as_test_x conftest$ac_exeext
8949 }; then
8950
8951 lt_aix_libpath_sed='
8952 /Import File Strings/,/^$/ {
8953 /^0/ {
8954 s/^0 *\(.*\)$/\1/
8955 p
8956 }
8957 }'
8958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 # Check for a 64-bit object if we didn't find anything.
8960 if test -z "$aix_libpath"; then
8961 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962 fi
8963 else
8964 $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967
8968 fi
8969
8970 rm -rf conftest.dSYM
8971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8972 conftest$ac_exeext conftest.$ac_ext
8973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8974
8975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8977 else
8978 if test "$host_cpu" = ia64; then
8979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8980 allow_undefined_flag="-z nodefs"
8981 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"
8982 else
8983 # Determine the default libpath from the value encoded in an
8984 # empty executable.
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h. */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991
8992 int
8993 main ()
8994 {
8995
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (ac_try="$ac_link"
9002 case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_link") 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest$ac_exeext && {
9018 test "$cross_compiling" = yes ||
9019 $as_test_x conftest$ac_exeext
9020 }; then
9021
9022 lt_aix_libpath_sed='
9023 /Import File Strings/,/^$/ {
9024 /^0/ {
9025 s/^0 *\(.*\)$/\1/
9026 p
9027 }
9028 }'
9029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9030 # Check for a 64-bit object if we didn't find anything.
9031 if test -z "$aix_libpath"; then
9032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9033 fi
9034 else
9035 $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9037
9038
9039 fi
9040
9041 rm -rf conftest.dSYM
9042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043 conftest$ac_exeext conftest.$ac_ext
9044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9045
9046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9047 # Warning - without using the other run time loading flags,
9048 # -berok will link without error, but may produce a broken library.
9049 no_undefined_flag=' ${wl}-bernotok'
9050 allow_undefined_flag=' ${wl}-berok'
9051 # Exported symbols can be pulled into shared objects from archives
9052 whole_archive_flag_spec='$convenience'
9053 archive_cmds_need_lc=yes
9054 # This is similar to how AIX traditionally builds its shared libraries.
9055 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'
9056 fi
9057 fi
9058 ;;
9059
9060 amigaos*)
9061 case $host_cpu in
9062 powerpc)
9063 # see comment about AmigaOS4 .so support
9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065 archive_expsym_cmds=''
9066 ;;
9067 m68k)
9068 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)'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_minus_L=yes
9071 ;;
9072 esac
9073 ;;
9074
9075 bsdi[45]*)
9076 export_dynamic_flag_spec=-rdynamic
9077 ;;
9078
9079 cygwin* | mingw* | pw32* | cegcc*)
9080 # When not using gcc, we currently assume that we are using
9081 # Microsoft Visual C++.
9082 # hardcode_libdir_flag_spec is actually meaningless, as there is
9083 # no search path for DLLs.
9084 hardcode_libdir_flag_spec=' '
9085 allow_undefined_flag=unsupported
9086 # Tell ltmain to make .lib files, not .a files.
9087 libext=lib
9088 # Tell ltmain to make .dll files, not .so files.
9089 shrext_cmds=".dll"
9090 # FIXME: Setting linknames here is a bad hack.
9091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9092 # The linker will automatically build a .lib file if we build a DLL.
9093 old_archive_from_new_cmds='true'
9094 # FIXME: Should let the user specify the lib program.
9095 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9096 fix_srcfile_path='`cygpath -w "$srcfile"`'
9097 enable_shared_with_static_runtimes=yes
9098 ;;
9099
9100 darwin* | rhapsody*)
9101
9102
9103 archive_cmds_need_lc=no
9104 hardcode_direct=no
9105 hardcode_automatic=yes
9106 hardcode_shlibpath_var=unsupported
9107 whole_archive_flag_spec=''
9108 link_all_deplibs=yes
9109 allow_undefined_flag="$_lt_dar_allow_undefined"
9110 case $cc_basename in
9111 ifort*) _lt_dar_can_shared=yes ;;
9112 *) _lt_dar_can_shared=$GCC ;;
9113 esac
9114 if test "$_lt_dar_can_shared" = "yes"; then
9115 output_verbose_link_cmd=echo
9116 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9117 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9118 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}"
9119 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}"
9120
9121 else
9122 ld_shlibs=no
9123 fi
9124
9125 ;;
9126
9127 dgux*)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_shlibpath_var=no
9131 ;;
9132
9133 freebsd1*)
9134 ld_shlibs=no
9135 ;;
9136
9137 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9138 # support. Future versions do this automatically, but an explicit c++rt0.o
9139 # does not break anything, and helps significantly (at the cost of a little
9140 # extra space).
9141 freebsd2.2*)
9142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9143 hardcode_libdir_flag_spec='-R$libdir'
9144 hardcode_direct=yes
9145 hardcode_shlibpath_var=no
9146 ;;
9147
9148 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9149 freebsd2*)
9150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9151 hardcode_direct=yes
9152 hardcode_minus_L=yes
9153 hardcode_shlibpath_var=no
9154 ;;
9155
9156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9157 freebsd* | dragonfly*)
9158 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9159 hardcode_libdir_flag_spec='-R$libdir'
9160 hardcode_direct=yes
9161 hardcode_shlibpath_var=no
9162 ;;
9163
9164 hpux9*)
9165 if test "$GCC" = yes; then
9166 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'
9167 else
9168 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'
9169 fi
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator=:
9172 hardcode_direct=yes
9173
9174 # hardcode_minus_L: Not really in the search PATH,
9175 # but as the default location of the library.
9176 hardcode_minus_L=yes
9177 export_dynamic_flag_spec='${wl}-E'
9178 ;;
9179
9180 hpux10*)
9181 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9183 else
9184 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9185 fi
9186 if test "$with_gnu_ld" = no; then
9187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9188 hardcode_libdir_flag_spec_ld='+b $libdir'
9189 hardcode_libdir_separator=:
9190 hardcode_direct=yes
9191 hardcode_direct_absolute=yes
9192 export_dynamic_flag_spec='${wl}-E'
9193 # hardcode_minus_L: Not really in the search PATH,
9194 # but as the default location of the library.
9195 hardcode_minus_L=yes
9196 fi
9197 ;;
9198
9199 hpux11*)
9200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9201 case $host_cpu in
9202 hppa*64*)
9203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 ;;
9205 ia64*)
9206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207 ;;
9208 *)
9209 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210 ;;
9211 esac
9212 else
9213 case $host_cpu in
9214 hppa*64*)
9215 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216 ;;
9217 ia64*)
9218 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9219 ;;
9220 *)
9221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9222 ;;
9223 esac
9224 fi
9225 if test "$with_gnu_ld" = no; then
9226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228
9229 case $host_cpu in
9230 hppa*64*|ia64*)
9231 hardcode_direct=no
9232 hardcode_shlibpath_var=no
9233 ;;
9234 *)
9235 hardcode_direct=yes
9236 hardcode_direct_absolute=yes
9237 export_dynamic_flag_spec='${wl}-E'
9238
9239 # hardcode_minus_L: Not really in the search PATH,
9240 # but as the default location of the library.
9241 hardcode_minus_L=yes
9242 ;;
9243 esac
9244 fi
9245 ;;
9246
9247 irix5* | irix6* | nonstopux*)
9248 if test "$GCC" = yes; then
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9250 # Try to use the -exported_symbol ld option, if it does not
9251 # work, assume that -exports_file does not work either and
9252 # implicitly export all symbols.
9253 save_LDFLAGS="$LDFLAGS"
9254 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9255 cat >conftest.$ac_ext <<_ACEOF
9256 int foo(void) {}
9257 _ACEOF
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (ac_try="$ac_link"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265 $as_echo "$ac_try_echo") >&5
9266 (eval "$ac_link") 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest$ac_exeext && {
9276 test "$cross_compiling" = yes ||
9277 $as_test_x conftest$ac_exeext
9278 }; then
9279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9280
9281 else
9282 $as_echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285
9286 fi
9287
9288 rm -rf conftest.dSYM
9289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LDFLAGS="$save_LDFLAGS"
9292 else
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9295 fi
9296 archive_cmds_need_lc='no'
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 hardcode_libdir_separator=:
9299 inherit_rpath=yes
9300 link_all_deplibs=yes
9301 ;;
9302
9303 netbsd*)
9304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9306 else
9307 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9308 fi
9309 hardcode_libdir_flag_spec='-R$libdir'
9310 hardcode_direct=yes
9311 hardcode_shlibpath_var=no
9312 ;;
9313
9314 newsos6)
9315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_direct=yes
9317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318 hardcode_libdir_separator=:
9319 hardcode_shlibpath_var=no
9320 ;;
9321
9322 *nto* | *qnx*)
9323 ;;
9324
9325 openbsd*)
9326 if test -f /usr/libexec/ld.so; then
9327 hardcode_direct=yes
9328 hardcode_shlibpath_var=no
9329 hardcode_direct_absolute=yes
9330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334 export_dynamic_flag_spec='${wl}-E'
9335 else
9336 case $host_os in
9337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_libdir_flag_spec='-R$libdir'
9340 ;;
9341 *)
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9344 ;;
9345 esac
9346 fi
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351
9352 os2*)
9353 hardcode_libdir_flag_spec='-L$libdir'
9354 hardcode_minus_L=yes
9355 allow_undefined_flag=unsupported
9356 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'
9357 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9358 ;;
9359
9360 osf3*)
9361 if test "$GCC" = yes; then
9362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9363 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9364 else
9365 allow_undefined_flag=' -expect_unresolved \*'
9366 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9367 fi
9368 archive_cmds_need_lc='no'
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 hardcode_libdir_separator=:
9371 ;;
9372
9373 osf4* | osf5*) # as osf3* with the addition of -msym flag
9374 if test "$GCC" = yes; then
9375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9376 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 else
9379 allow_undefined_flag=' -expect_unresolved \*'
9380 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9381 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9382 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9383
9384 # Both c and cxx compiler support -rpath directly
9385 hardcode_libdir_flag_spec='-rpath $libdir'
9386 fi
9387 archive_cmds_need_lc='no'
9388 hardcode_libdir_separator=:
9389 ;;
9390
9391 solaris*)
9392 no_undefined_flag=' -z defs'
9393 if test "$GCC" = yes; then
9394 wlarc='${wl}'
9395 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9398 else
9399 case `$CC -V 2>&1` in
9400 *"Compilers 5.0"*)
9401 wlarc=''
9402 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9404 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9405 ;;
9406 *)
9407 wlarc='${wl}'
9408 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9411 ;;
9412 esac
9413 fi
9414 hardcode_libdir_flag_spec='-R$libdir'
9415 hardcode_shlibpath_var=no
9416 case $host_os in
9417 solaris2.[0-5] | solaris2.[0-5].*) ;;
9418 *)
9419 # The compiler driver will combine and reorder linker options,
9420 # but understands `-z linker_flag'. GCC discards it without `$wl',
9421 # but is careful enough not to reorder.
9422 # Supported since Solaris 2.6 (maybe 2.5.1?)
9423 if test "$GCC" = yes; then
9424 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9425 else
9426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9427 fi
9428 ;;
9429 esac
9430 link_all_deplibs=yes
9431 ;;
9432
9433 sunos4*)
9434 if test "x$host_vendor" = xsequent; then
9435 # Use $CC to link under sequent, because it throws in some extra .o
9436 # files that make .init and .fini sections work.
9437 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9440 fi
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_direct=yes
9443 hardcode_minus_L=yes
9444 hardcode_shlibpath_var=no
9445 ;;
9446
9447 sysv4)
9448 case $host_vendor in
9449 sni)
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_direct=yes # is this really true???
9452 ;;
9453 siemens)
9454 ## LD is ld it makes a PLAMLIB
9455 ## CC just makes a GrossModule.
9456 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9457 reload_cmds='$CC -r -o $output$reload_objs'
9458 hardcode_direct=no
9459 ;;
9460 motorola)
9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9463 ;;
9464 esac
9465 runpath_var='LD_RUN_PATH'
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 sysv4.3*)
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_shlibpath_var=no
9472 export_dynamic_flag_spec='-Bexport'
9473 ;;
9474
9475 sysv4*MP*)
9476 if test -d /usr/nec; then
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_shlibpath_var=no
9479 runpath_var=LD_RUN_PATH
9480 hardcode_runpath_var=yes
9481 ld_shlibs=yes
9482 fi
9483 ;;
9484
9485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9486 no_undefined_flag='${wl}-z,text'
9487 archive_cmds_need_lc=no
9488 hardcode_shlibpath_var=no
9489 runpath_var='LD_RUN_PATH'
9490
9491 if test "$GCC" = yes; then
9492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 fi
9498 ;;
9499
9500 sysv5* | sco3.2v5* | sco5v6*)
9501 # Note: We can NOT use -z defs as we might desire, because we do not
9502 # link with -lc, and that would cause any symbols used from libc to
9503 # always be unresolved, which means just about no library would
9504 # ever link correctly. If we're not using GNU ld we use -z text
9505 # though, which does catch some bad symbols but isn't as heavy-handed
9506 # as -z defs.
9507 no_undefined_flag='${wl}-z,text'
9508 allow_undefined_flag='${wl}-z,nodefs'
9509 archive_cmds_need_lc=no
9510 hardcode_shlibpath_var=no
9511 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9512 hardcode_libdir_separator=':'
9513 link_all_deplibs=yes
9514 export_dynamic_flag_spec='${wl}-Bexport'
9515 runpath_var='LD_RUN_PATH'
9516
9517 if test "$GCC" = yes; then
9518 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 else
9521 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523 fi
9524 ;;
9525
9526 uts4*)
9527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_shlibpath_var=no
9530 ;;
9531
9532 *)
9533 ld_shlibs=no
9534 ;;
9535 esac
9536
9537 if test x$host_vendor = xsni; then
9538 case $host in
9539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9540 export_dynamic_flag_spec='${wl}-Blargedynsym'
9541 ;;
9542 esac
9543 fi
9544 fi
9545
9546 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9547 $as_echo "$ld_shlibs" >&6; }
9548 test "$ld_shlibs" = no && can_build_shared=no
9549
9550 with_gnu_ld=$with_gnu_ld
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566 #
9567 # Do we need to explicitly link libc?
9568 #
9569 case "x$archive_cmds_need_lc" in
9570 x|xyes)
9571 # Assume -lc should be added
9572 archive_cmds_need_lc=yes
9573
9574 if test "$enable_shared" = yes && test "$GCC" = yes; then
9575 case $archive_cmds in
9576 *'~'*)
9577 # FIXME: we may have to deal with multi-command sequences.
9578 ;;
9579 '$CC '*)
9580 # Test whether the compiler implicitly links with -lc since on some
9581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9582 # to ld, don't add -lc before -lgcc.
9583 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9585 $RM conftest*
9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587
9588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9589 (eval $ac_compile) 2>&5
9590 ac_status=$?
9591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } 2>conftest.err; then
9593 soname=conftest
9594 lib=conftest
9595 libobjs=conftest.$ac_objext
9596 deplibs=
9597 wl=$lt_prog_compiler_wl
9598 pic_flag=$lt_prog_compiler_pic
9599 compiler_flags=-v
9600 linker_flags=-v
9601 verstring=
9602 output_objdir=.
9603 libname=conftest
9604 lt_save_allow_undefined_flag=$allow_undefined_flag
9605 allow_undefined_flag=
9606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9607 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9608 ac_status=$?
9609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }
9611 then
9612 archive_cmds_need_lc=no
9613 else
9614 archive_cmds_need_lc=yes
9615 fi
9616 allow_undefined_flag=$lt_save_allow_undefined_flag
9617 else
9618 cat conftest.err 1>&5
9619 fi
9620 $RM conftest*
9621 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9622 $as_echo "$archive_cmds_need_lc" >&6; }
9623 ;;
9624 esac
9625 fi
9626 ;;
9627 esac
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9786 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9787
9788 if test "$GCC" = yes; then
9789 case $host_os in
9790 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9791 *) lt_awk_arg="/^libraries:/" ;;
9792 esac
9793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9794 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9795 # if the path contains ";" then we assume it to be the separator
9796 # otherwise default to the standard path separator (i.e. ":") - it is
9797 # assumed that no part of a normal pathname contains ";" but that should
9798 # okay in the real world where ";" in dirpaths is itself problematic.
9799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9800 else
9801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9802 fi
9803 # Ok, now we have the path, separated by spaces, we can step through it
9804 # and add multilib dir if necessary.
9805 lt_tmp_lt_search_path_spec=
9806 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9807 for lt_sys_path in $lt_search_path_spec; do
9808 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9809 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9810 else
9811 test -d "$lt_sys_path" && \
9812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9813 fi
9814 done
9815 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9816 BEGIN {RS=" "; FS="/|\n";} {
9817 lt_foo="";
9818 lt_count=0;
9819 for (lt_i = NF; lt_i > 0; lt_i--) {
9820 if ($lt_i != "" && $lt_i != ".") {
9821 if ($lt_i == "..") {
9822 lt_count++;
9823 } else {
9824 if (lt_count == 0) {
9825 lt_foo="/" $lt_i lt_foo;
9826 } else {
9827 lt_count--;
9828 }
9829 }
9830 }
9831 }
9832 if (lt_foo != "") { lt_freq[lt_foo]++; }
9833 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9834 }'`
9835 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9836 else
9837 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9838 fi
9839 library_names_spec=
9840 libname_spec='lib$name'
9841 soname_spec=
9842 shrext_cmds=".so"
9843 postinstall_cmds=
9844 postuninstall_cmds=
9845 finish_cmds=
9846 finish_eval=
9847 shlibpath_var=
9848 shlibpath_overrides_runpath=unknown
9849 version_type=none
9850 dynamic_linker="$host_os ld.so"
9851 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9852 need_lib_prefix=unknown
9853 hardcode_into_libs=no
9854
9855 # when you set need_version to no, make sure it does not cause -set_version
9856 # flags to be left without arguments
9857 need_version=unknown
9858
9859 case $host_os in
9860 aix3*)
9861 version_type=linux
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9863 shlibpath_var=LIBPATH
9864
9865 # AIX 3 has no versioning support, so we append a major version to the name.
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 ;;
9868
9869 aix[4-9]*)
9870 version_type=linux
9871 need_lib_prefix=no
9872 need_version=no
9873 hardcode_into_libs=yes
9874 if test "$host_cpu" = ia64; then
9875 # AIX 5 supports IA64
9876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 else
9879 # With GCC up to 2.95.x, collect2 would create an import file
9880 # for dependence libraries. The import file would start with
9881 # the line `#! .'. This would cause the generated library to
9882 # depend on `.', always an invalid library. This was fixed in
9883 # development snapshots of GCC prior to 3.0.
9884 case $host_os in
9885 aix4 | aix4.[01] | aix4.[01].*)
9886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9887 echo ' yes '
9888 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9889 :
9890 else
9891 can_build_shared=no
9892 fi
9893 ;;
9894 esac
9895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9896 # soname into executable. Probably we can add versioning support to
9897 # collect2, so additional links can be useful in future.
9898 if test "$aix_use_runtimelinking" = yes; then
9899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9900 # instead of lib<name>.a to let people know that these are not
9901 # typical AIX shared libraries.
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 else
9904 # We preserve .a as extension for shared libraries through AIX4.2
9905 # and later when we are not doing run time linking.
9906 library_names_spec='${libname}${release}.a $libname.a'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 fi
9909 shlibpath_var=LIBPATH
9910 fi
9911 ;;
9912
9913 amigaos*)
9914 case $host_cpu in
9915 powerpc)
9916 # Since July 2007 AmigaOS4 officially supports .so libraries.
9917 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919 ;;
9920 m68k)
9921 library_names_spec='$libname.ixlibrary $libname.a'
9922 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9923 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'
9924 ;;
9925 esac
9926 ;;
9927
9928 beos*)
9929 library_names_spec='${libname}${shared_ext}'
9930 dynamic_linker="$host_os ld.so"
9931 shlibpath_var=LIBRARY_PATH
9932 ;;
9933
9934 bsdi[45]*)
9935 version_type=linux
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9940 shlibpath_var=LD_LIBRARY_PATH
9941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9943 # the default ld.so.conf also contains /usr/contrib/lib and
9944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9945 # libtool to hard-code these into programs
9946 ;;
9947
9948 cygwin* | mingw* | pw32* | cegcc*)
9949 version_type=windows
9950 shrext_cmds=".dll"
9951 need_version=no
9952 need_lib_prefix=no
9953
9954 case $GCC,$host_os in
9955 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9956 library_names_spec='$libname.dll.a'
9957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9958 postinstall_cmds='base_file=`basename \${file}`~
9959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9960 dldir=$destdir/`dirname \$dlpath`~
9961 test -d \$dldir || mkdir -p \$dldir~
9962 $install_prog $dir/$dlname \$dldir/$dlname~
9963 chmod a+x \$dldir/$dlname~
9964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9966 fi'
9967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9968 dlpath=$dir/\$dldll~
9969 $RM \$dlpath'
9970 shlibpath_overrides_runpath=yes
9971
9972 case $host_os in
9973 cygwin*)
9974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9977 ;;
9978 mingw* | cegcc*)
9979 # MinGW DLLs use traditional 'lib' prefix
9980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9981 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9983 # It is most probably a Windows format PATH printed by
9984 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9985 # path with ; separators, and with drive letters. We can handle the
9986 # drive letters (cygwin fileutils understands them), so leave them,
9987 # especially as we might pass files found there to a mingw objdump,
9988 # which wouldn't understand a cygwinified path. Ahh.
9989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9990 else
9991 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9992 fi
9993 ;;
9994 pw32*)
9995 # pw32 DLLs use 'pw' prefix rather than 'lib'
9996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997 ;;
9998 esac
9999 ;;
10000
10001 *)
10002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10003 ;;
10004 esac
10005 dynamic_linker='Win32 ld.exe'
10006 # FIXME: first we should search . and the directory the executable is in
10007 shlibpath_var=PATH
10008 ;;
10009
10010 darwin* | rhapsody*)
10011 dynamic_linker="$host_os dyld"
10012 version_type=darwin
10013 need_lib_prefix=no
10014 need_version=no
10015 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10016 soname_spec='${libname}${release}${major}$shared_ext'
10017 shlibpath_overrides_runpath=yes
10018 shlibpath_var=DYLD_LIBRARY_PATH
10019 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10020
10021 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10023 ;;
10024
10025 dgux*)
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 ;;
10033
10034 freebsd1*)
10035 dynamic_linker=no
10036 ;;
10037
10038 freebsd* | dragonfly*)
10039 # DragonFly does not have aout. When/if they implement a new
10040 # versioning mechanism, adjust this.
10041 if test -x /usr/bin/objformat; then
10042 objformat=`/usr/bin/objformat`
10043 else
10044 case $host_os in
10045 freebsd[123]*) objformat=aout ;;
10046 *) objformat=elf ;;
10047 esac
10048 fi
10049 version_type=freebsd-$objformat
10050 case $version_type in
10051 freebsd-elf*)
10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10053 need_version=no
10054 need_lib_prefix=no
10055 ;;
10056 freebsd-*)
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10058 need_version=yes
10059 ;;
10060 esac
10061 shlibpath_var=LD_LIBRARY_PATH
10062 case $host_os in
10063 freebsd2*)
10064 shlibpath_overrides_runpath=yes
10065 ;;
10066 freebsd3.[01]* | freebsdelf3.[01]*)
10067 shlibpath_overrides_runpath=yes
10068 hardcode_into_libs=yes
10069 ;;
10070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10072 shlibpath_overrides_runpath=no
10073 hardcode_into_libs=yes
10074 ;;
10075 *) # from 4.6 on, and DragonFly
10076 shlibpath_overrides_runpath=yes
10077 hardcode_into_libs=yes
10078 ;;
10079 esac
10080 ;;
10081
10082 gnu*)
10083 version_type=linux
10084 need_lib_prefix=no
10085 need_version=no
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 hardcode_into_libs=yes
10090 ;;
10091
10092 hpux9* | hpux10* | hpux11*)
10093 # Give a soname corresponding to the major version so that dld.sl refuses to
10094 # link against other versions.
10095 version_type=sunos
10096 need_lib_prefix=no
10097 need_version=no
10098 case $host_cpu in
10099 ia64*)
10100 shrext_cmds='.so'
10101 hardcode_into_libs=yes
10102 dynamic_linker="$host_os dld.so"
10103 shlibpath_var=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 if test "X$HPUX_IA64_MODE" = X32; then
10108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10109 else
10110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10111 fi
10112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10113 ;;
10114 hppa*64*)
10115 shrext_cmds='.sl'
10116 hardcode_into_libs=yes
10117 dynamic_linker="$host_os dld.sl"
10118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10124 ;;
10125 *)
10126 shrext_cmds='.sl'
10127 dynamic_linker="$host_os dld.sl"
10128 shlibpath_var=SHLIB_PATH
10129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 ;;
10133 esac
10134 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10135 postinstall_cmds='chmod 555 $lib'
10136 ;;
10137
10138 interix[3-9]*)
10139 version_type=linux
10140 need_lib_prefix=no
10141 need_version=no
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=no
10147 hardcode_into_libs=yes
10148 ;;
10149
10150 irix5* | irix6* | nonstopux*)
10151 case $host_os in
10152 nonstopux*) version_type=nonstopux ;;
10153 *)
10154 if test "$lt_cv_prog_gnu_ld" = yes; then
10155 version_type=linux
10156 else
10157 version_type=irix
10158 fi ;;
10159 esac
10160 need_lib_prefix=no
10161 need_version=no
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10164 case $host_os in
10165 irix5* | nonstopux*)
10166 libsuff= shlibsuff=
10167 ;;
10168 *)
10169 case $LD in # libtool.m4 will add one of these switches to LD
10170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10171 libsuff= shlibsuff= libmagic=32-bit;;
10172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10173 libsuff=32 shlibsuff=N32 libmagic=N32;;
10174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10176 *) libsuff= shlibsuff= libmagic=never-match;;
10177 esac
10178 ;;
10179 esac
10180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10181 shlibpath_overrides_runpath=no
10182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10184 hardcode_into_libs=yes
10185 ;;
10186
10187 # No shared lib support for Linux oldld, aout, or coff.
10188 linux*oldld* | linux*aout* | linux*coff*)
10189 dynamic_linker=no
10190 ;;
10191
10192 # This must be Linux ELF.
10193 linux* | k*bsd*-gnu)
10194 version_type=linux
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=no
10202 # Some binutils ld are patched to set DT_RUNPATH
10203 save_LDFLAGS=$LDFLAGS
10204 save_libdir=$libdir
10205 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10206 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h. */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213
10214 int
10215 main ()
10216 {
10217
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227 esac
10228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10229 $as_echo "$ac_try_echo") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext && {
10240 test "$cross_compiling" = yes ||
10241 $as_test_x conftest$ac_exeext
10242 }; then
10243 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10244 shlibpath_overrides_runpath=yes
10245 fi
10246
10247 else
10248 $as_echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251
10252 fi
10253
10254 rm -rf conftest.dSYM
10255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LDFLAGS=$save_LDFLAGS
10258 libdir=$save_libdir
10259
10260 # This implies no fast_install, which is unacceptable.
10261 # Some rework will be needed to allow for fast_install
10262 # before this can be enabled.
10263 hardcode_into_libs=yes
10264
10265 # Add ABI-specific directories to the system library path.
10266 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10267
10268 # Append ld.so.conf contents to the search path
10269 if test -f /etc/ld.so.conf; then
10270 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' ' '`
10271 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10272 fi
10273
10274 # We used to test for /lib/ld.so.1 and disable shared libraries on
10275 # powerpc, because MkLinux only supported shared libraries with the
10276 # GNU dynamic linker. Since this was broken with cross compilers,
10277 # most powerpc-linux boxes support dynamic linking these days and
10278 # people can always --disable-shared, the test was removed, and we
10279 # assume the GNU/Linux dynamic linker is in use.
10280 dynamic_linker='GNU/Linux ld.so'
10281 ;;
10282
10283 netbsd*)
10284 version_type=sunos
10285 need_lib_prefix=no
10286 need_version=no
10287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10290 dynamic_linker='NetBSD (a.out) ld.so'
10291 else
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 dynamic_linker='NetBSD ld.elf_so'
10295 fi
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=yes
10298 hardcode_into_libs=yes
10299 ;;
10300
10301 newsos6)
10302 version_type=linux
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 ;;
10307
10308 *nto* | *qnx*)
10309 version_type=qnx
10310 need_lib_prefix=no
10311 need_version=no
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=no
10316 hardcode_into_libs=yes
10317 dynamic_linker='ldqnx.so'
10318 ;;
10319
10320 openbsd*)
10321 version_type=sunos
10322 sys_lib_dlsearch_path_spec="/usr/lib"
10323 need_lib_prefix=no
10324 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10325 case $host_os in
10326 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10327 *) need_version=no ;;
10328 esac
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10333 case $host_os in
10334 openbsd2.[89] | openbsd2.[89].*)
10335 shlibpath_overrides_runpath=no
10336 ;;
10337 *)
10338 shlibpath_overrides_runpath=yes
10339 ;;
10340 esac
10341 else
10342 shlibpath_overrides_runpath=yes
10343 fi
10344 ;;
10345
10346 os2*)
10347 libname_spec='$name'
10348 shrext_cmds=".dll"
10349 need_lib_prefix=no
10350 library_names_spec='$libname${shared_ext} $libname.a'
10351 dynamic_linker='OS/2 ld.exe'
10352 shlibpath_var=LIBPATH
10353 ;;
10354
10355 osf3* | osf4* | osf5*)
10356 version_type=osf
10357 need_lib_prefix=no
10358 need_version=no
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10363 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10364 ;;
10365
10366 rdos*)
10367 dynamic_linker=no
10368 ;;
10369
10370 solaris*)
10371 version_type=linux
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 hardcode_into_libs=yes
10379 # ldd complains unless libraries are executable
10380 postinstall_cmds='chmod +x $lib'
10381 ;;
10382
10383 sunos4*)
10384 version_type=sunos
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 if test "$with_gnu_ld" = yes; then
10390 need_lib_prefix=no
10391 fi
10392 need_version=yes
10393 ;;
10394
10395 sysv4 | sysv4.3*)
10396 version_type=linux
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 case $host_vendor in
10401 sni)
10402 shlibpath_overrides_runpath=no
10403 need_lib_prefix=no
10404 runpath_var=LD_RUN_PATH
10405 ;;
10406 siemens)
10407 need_lib_prefix=no
10408 ;;
10409 motorola)
10410 need_lib_prefix=no
10411 need_version=no
10412 shlibpath_overrides_runpath=no
10413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10414 ;;
10415 esac
10416 ;;
10417
10418 sysv4*MP*)
10419 if test -d /usr/nec ;then
10420 version_type=linux
10421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10422 soname_spec='$libname${shared_ext}.$major'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 fi
10425 ;;
10426
10427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10428 version_type=freebsd-elf
10429 need_lib_prefix=no
10430 need_version=no
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=yes
10435 hardcode_into_libs=yes
10436 if test "$with_gnu_ld" = yes; then
10437 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10438 else
10439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10440 case $host_os in
10441 sco3.2v5*)
10442 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10443 ;;
10444 esac
10445 fi
10446 sys_lib_dlsearch_path_spec='/usr/lib'
10447 ;;
10448
10449 tpf*)
10450 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 shlibpath_var=LD_LIBRARY_PATH
10456 shlibpath_overrides_runpath=no
10457 hardcode_into_libs=yes
10458 ;;
10459
10460 uts4*)
10461 version_type=linux
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 ;;
10466
10467 *)
10468 dynamic_linker=no
10469 ;;
10470 esac
10471 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10472 $as_echo "$dynamic_linker" >&6; }
10473 test "$dynamic_linker" = no && can_build_shared=no
10474
10475 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10476 if test "$GCC" = yes; then
10477 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10478 fi
10479
10480 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10481 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10482 fi
10483 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10484 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10485 fi
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10575 hardcode_action=
10576 if test -n "$hardcode_libdir_flag_spec" ||
10577 test -n "$runpath_var" ||
10578 test "X$hardcode_automatic" = "Xyes" ; then
10579
10580 # We can hardcode non-existent directories.
10581 if test "$hardcode_direct" != no &&
10582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10583 # have to relink, otherwise we might link with an installed library
10584 # when we should be linking with a yet-to-be-installed one
10585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10586 test "$hardcode_minus_L" != no; then
10587 # Linking always hardcodes the temporary library directory.
10588 hardcode_action=relink
10589 else
10590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10591 hardcode_action=immediate
10592 fi
10593 else
10594 # We cannot hardcode anything, or else we can only hardcode existing
10595 # directories.
10596 hardcode_action=unsupported
10597 fi
10598 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10599 $as_echo "$hardcode_action" >&6; }
10600
10601 if test "$hardcode_action" = relink ||
10602 test "$inherit_rpath" = yes; then
10603 # Fast installation is not supported
10604 enable_fast_install=no
10605 elif test "$shlibpath_overrides_runpath" = yes ||
10606 test "$enable_shared" = no; then
10607 # Fast installation is not necessary
10608 enable_fast_install=needless
10609 fi
10610
10611
10612
10613
10614
10615
10616 if test "x$enable_dlopen" != xyes; then
10617 enable_dlopen=unknown
10618 enable_dlopen_self=unknown
10619 enable_dlopen_self_static=unknown
10620 else
10621 lt_cv_dlopen=no
10622 lt_cv_dlopen_libs=
10623
10624 case $host_os in
10625 beos*)
10626 lt_cv_dlopen="load_add_on"
10627 lt_cv_dlopen_libs=
10628 lt_cv_dlopen_self=yes
10629 ;;
10630
10631 mingw* | pw32* | cegcc*)
10632 lt_cv_dlopen="LoadLibrary"
10633 lt_cv_dlopen_libs=
10634 ;;
10635
10636 cygwin*)
10637 lt_cv_dlopen="dlopen"
10638 lt_cv_dlopen_libs=
10639 ;;
10640
10641 darwin*)
10642 # if libdl is installed we need to link against it
10643 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10646 $as_echo_n "(cached) " >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldl $LIBS"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656
10657 /* Override any GCC internal prototype to avoid an error.
10658 Use char because int might match the return type of a GCC
10659 builtin and then its argument prototype would still apply. */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 char dlopen ();
10664 int
10665 main ()
10666 {
10667 return dlopen ();
10668 ;
10669 return 0;
10670 }
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (ac_try="$ac_link"
10674 case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677 esac
10678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10679 $as_echo "$ac_try_echo") >&5
10680 (eval "$ac_link") 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest$ac_exeext && {
10690 test "$cross_compiling" = yes ||
10691 $as_test_x conftest$ac_exeext
10692 }; then
10693 ac_cv_lib_dl_dlopen=yes
10694 else
10695 $as_echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_lib_dl_dlopen=no
10699 fi
10700
10701 rm -rf conftest.dSYM
10702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10703 conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10705 fi
10706 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10707 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10708 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10710 else
10711
10712 lt_cv_dlopen="dyld"
10713 lt_cv_dlopen_libs=
10714 lt_cv_dlopen_self=yes
10715
10716 fi
10717
10718 ;;
10719
10720 *)
10721 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10722 $as_echo_n "checking for shl_load... " >&6; }
10723 if test "${ac_cv_func_shl_load+set}" = set; then
10724 $as_echo_n "(cached) " >&6
10725 else
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10734 #define shl_load innocuous_shl_load
10735
10736 /* System header to define __stub macros and hopefully few prototypes,
10737 which can conflict with char shl_load (); below.
10738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10739 <limits.h> exists even on freestanding compilers. */
10740
10741 #ifdef __STDC__
10742 # include <limits.h>
10743 #else
10744 # include <assert.h>
10745 #endif
10746
10747 #undef shl_load
10748
10749 /* Override any GCC internal prototype to avoid an error.
10750 Use char because int might match the return type of a GCC
10751 builtin and then its argument prototype would still apply. */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 char shl_load ();
10756 /* The GNU C library defines this for functions which it implements
10757 to always fail with ENOSYS. Some functions are actually named
10758 something starting with __ and the normal name is an alias. */
10759 #if defined __stub_shl_load || defined __stub___shl_load
10760 choke me
10761 #endif
10762
10763 int
10764 main ()
10765 {
10766 return shl_load ();
10767 ;
10768 return 0;
10769 }
10770 _ACEOF
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (ac_try="$ac_link"
10773 case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776 esac
10777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10778 $as_echo "$ac_try_echo") >&5
10779 (eval "$ac_link") 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && {
10786 test -z "$ac_c_werror_flag" ||
10787 test ! -s conftest.err
10788 } && test -s conftest$ac_exeext && {
10789 test "$cross_compiling" = yes ||
10790 $as_test_x conftest$ac_exeext
10791 }; then
10792 ac_cv_func_shl_load=yes
10793 else
10794 $as_echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797 ac_cv_func_shl_load=no
10798 fi
10799
10800 rm -rf conftest.dSYM
10801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10802 conftest$ac_exeext conftest.$ac_ext
10803 fi
10804 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10805 $as_echo "$ac_cv_func_shl_load" >&6; }
10806 if test "x$ac_cv_func_shl_load" = x""yes; then
10807 lt_cv_dlopen="shl_load"
10808 else
10809 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10810 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10811 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10812 $as_echo_n "(cached) " >&6
10813 else
10814 ac_check_lib_save_LIBS=$LIBS
10815 LIBS="-ldld $LIBS"
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 char shl_load ();
10830 int
10831 main ()
10832 {
10833 return shl_load ();
10834 ;
10835 return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (ac_try="$ac_link"
10840 case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843 esac
10844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10845 $as_echo "$ac_try_echo") >&5
10846 (eval "$ac_link") 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_c_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest$ac_exeext && {
10856 test "$cross_compiling" = yes ||
10857 $as_test_x conftest$ac_exeext
10858 }; then
10859 ac_cv_lib_dld_shl_load=yes
10860 else
10861 $as_echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ac_cv_lib_dld_shl_load=no
10865 fi
10866
10867 rm -rf conftest.dSYM
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10871 fi
10872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10873 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10874 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10876 else
10877 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10878 $as_echo_n "checking for dlopen... " >&6; }
10879 if test "${ac_cv_func_dlopen+set}" = set; then
10880 $as_echo_n "(cached) " >&6
10881 else
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h. */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10890 #define dlopen innocuous_dlopen
10891
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char dlopen (); below.
10894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895 <limits.h> exists even on freestanding compilers. */
10896
10897 #ifdef __STDC__
10898 # include <limits.h>
10899 #else
10900 # include <assert.h>
10901 #endif
10902
10903 #undef dlopen
10904
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char dlopen ();
10912 /* The GNU C library defines this for functions which it implements
10913 to always fail with ENOSYS. Some functions are actually named
10914 something starting with __ and the normal name is an alias. */
10915 #if defined __stub_dlopen || defined __stub___dlopen
10916 choke me
10917 #endif
10918
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932 esac
10933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934 $as_echo "$ac_try_echo") >&5
10935 (eval "$ac_link") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest$ac_exeext && {
10945 test "$cross_compiling" = yes ||
10946 $as_test_x conftest$ac_exeext
10947 }; then
10948 ac_cv_func_dlopen=yes
10949 else
10950 $as_echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953 ac_cv_func_dlopen=no
10954 fi
10955
10956 rm -rf conftest.dSYM
10957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10958 conftest$ac_exeext conftest.$ac_ext
10959 fi
10960 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10961 $as_echo "$ac_cv_func_dlopen" >&6; }
10962 if test "x$ac_cv_func_dlopen" = x""yes; then
10963 lt_cv_dlopen="dlopen"
10964 else
10965 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10966 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10968 $as_echo_n "(cached) " >&6
10969 else
10970 ac_check_lib_save_LIBS=$LIBS
10971 LIBS="-ldl $LIBS"
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h. */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char dlopen ();
10986 int
10987 main ()
10988 {
10989 return dlopen ();
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11001 $as_echo "$ac_try_echo") >&5
11002 (eval "$ac_link") 2>conftest.er1
11003 ac_status=$?
11004 grep -v '^ *+' conftest.er1 >conftest.err
11005 rm -f conftest.er1
11006 cat conftest.err >&5
11007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } && {
11009 test -z "$ac_c_werror_flag" ||
11010 test ! -s conftest.err
11011 } && test -s conftest$ac_exeext && {
11012 test "$cross_compiling" = yes ||
11013 $as_test_x conftest$ac_exeext
11014 }; then
11015 ac_cv_lib_dl_dlopen=yes
11016 else
11017 $as_echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 ac_cv_lib_dl_dlopen=no
11021 fi
11022
11023 rm -rf conftest.dSYM
11024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11025 conftest$ac_exeext conftest.$ac_ext
11026 LIBS=$ac_check_lib_save_LIBS
11027 fi
11028 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11029 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11030 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11032 else
11033 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11034 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11035 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11036 $as_echo_n "(cached) " >&6
11037 else
11038 ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-lsvld $LIBS"
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char dlopen ();
11054 int
11055 main ()
11056 {
11057 return dlopen ();
11058 ;
11059 return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (ac_try="$ac_link"
11064 case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11067 esac
11068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11069 $as_echo "$ac_try_echo") >&5
11070 (eval "$ac_link") 2>conftest.er1
11071 ac_status=$?
11072 grep -v '^ *+' conftest.er1 >conftest.err
11073 rm -f conftest.er1
11074 cat conftest.err >&5
11075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } && {
11077 test -z "$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest$ac_exeext && {
11080 test "$cross_compiling" = yes ||
11081 $as_test_x conftest$ac_exeext
11082 }; then
11083 ac_cv_lib_svld_dlopen=yes
11084 else
11085 $as_echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 ac_cv_lib_svld_dlopen=no
11089 fi
11090
11091 rm -rf conftest.dSYM
11092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11097 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11098 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11100 else
11101 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11102 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11103 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11104 $as_echo_n "(cached) " >&6
11105 else
11106 ac_check_lib_save_LIBS=$LIBS
11107 LIBS="-ldld $LIBS"
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h. */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char dld_link ();
11122 int
11123 main ()
11124 {
11125 return dld_link ();
11126 ;
11127 return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (ac_try="$ac_link"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135 esac
11136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11137 $as_echo "$ac_try_echo") >&5
11138 (eval "$ac_link") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } && {
11145 test -z "$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 } && test -s conftest$ac_exeext && {
11148 test "$cross_compiling" = yes ||
11149 $as_test_x conftest$ac_exeext
11150 }; then
11151 ac_cv_lib_dld_dld_link=yes
11152 else
11153 $as_echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_cv_lib_dld_dld_link=no
11157 fi
11158
11159 rm -rf conftest.dSYM
11160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11161 conftest$ac_exeext conftest.$ac_ext
11162 LIBS=$ac_check_lib_save_LIBS
11163 fi
11164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11165 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11166 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11167 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11168 fi
11169
11170
11171 fi
11172
11173
11174 fi
11175
11176
11177 fi
11178
11179
11180 fi
11181
11182
11183 fi
11184
11185 ;;
11186 esac
11187
11188 if test "x$lt_cv_dlopen" != xno; then
11189 enable_dlopen=yes
11190 else
11191 enable_dlopen=no
11192 fi
11193
11194 case $lt_cv_dlopen in
11195 dlopen)
11196 save_CPPFLAGS="$CPPFLAGS"
11197 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11198
11199 save_LDFLAGS="$LDFLAGS"
11200 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11201
11202 save_LIBS="$LIBS"
11203 LIBS="$lt_cv_dlopen_libs $LIBS"
11204
11205 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11206 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11207 if test "${lt_cv_dlopen_self+set}" = set; then
11208 $as_echo_n "(cached) " >&6
11209 else
11210 if test "$cross_compiling" = yes; then :
11211 lt_cv_dlopen_self=cross
11212 else
11213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11214 lt_status=$lt_dlunknown
11215 cat > conftest.$ac_ext <<_LT_EOF
11216 #line 11216 "configure"
11217 #include "confdefs.h"
11218
11219 #if HAVE_DLFCN_H
11220 #include <dlfcn.h>
11221 #endif
11222
11223 #include <stdio.h>
11224
11225 #ifdef RTLD_GLOBAL
11226 # define LT_DLGLOBAL RTLD_GLOBAL
11227 #else
11228 # ifdef DL_GLOBAL
11229 # define LT_DLGLOBAL DL_GLOBAL
11230 # else
11231 # define LT_DLGLOBAL 0
11232 # endif
11233 #endif
11234
11235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11236 find out it does not work in some platform. */
11237 #ifndef LT_DLLAZY_OR_NOW
11238 # ifdef RTLD_LAZY
11239 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11240 # else
11241 # ifdef DL_LAZY
11242 # define LT_DLLAZY_OR_NOW DL_LAZY
11243 # else
11244 # ifdef RTLD_NOW
11245 # define LT_DLLAZY_OR_NOW RTLD_NOW
11246 # else
11247 # ifdef DL_NOW
11248 # define LT_DLLAZY_OR_NOW DL_NOW
11249 # else
11250 # define LT_DLLAZY_OR_NOW 0
11251 # endif
11252 # endif
11253 # endif
11254 # endif
11255 #endif
11256
11257 void fnord() { int i=42;}
11258 int main ()
11259 {
11260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261 int status = $lt_dlunknown;
11262
11263 if (self)
11264 {
11265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11267 /* dlclose (self); */
11268 }
11269 else
11270 puts (dlerror ());
11271
11272 return status;
11273 }
11274 _LT_EOF
11275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276 (eval $ac_link) 2>&5
11277 ac_status=$?
11278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11280 (./conftest; exit; ) >&5 2>/dev/null
11281 lt_status=$?
11282 case x$lt_status in
11283 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11284 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11285 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11286 esac
11287 else :
11288 # compilation failed
11289 lt_cv_dlopen_self=no
11290 fi
11291 fi
11292 rm -fr conftest*
11293
11294
11295 fi
11296 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11297 $as_echo "$lt_cv_dlopen_self" >&6; }
11298
11299 if test "x$lt_cv_dlopen_self" = xyes; then
11300 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11301 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11302 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11303 if test "${lt_cv_dlopen_self_static+set}" = set; then
11304 $as_echo_n "(cached) " >&6
11305 else
11306 if test "$cross_compiling" = yes; then :
11307 lt_cv_dlopen_self_static=cross
11308 else
11309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11310 lt_status=$lt_dlunknown
11311 cat > conftest.$ac_ext <<_LT_EOF
11312 #line 11312 "configure"
11313 #include "confdefs.h"
11314
11315 #if HAVE_DLFCN_H
11316 #include <dlfcn.h>
11317 #endif
11318
11319 #include <stdio.h>
11320
11321 #ifdef RTLD_GLOBAL
11322 # define LT_DLGLOBAL RTLD_GLOBAL
11323 #else
11324 # ifdef DL_GLOBAL
11325 # define LT_DLGLOBAL DL_GLOBAL
11326 # else
11327 # define LT_DLGLOBAL 0
11328 # endif
11329 #endif
11330
11331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11332 find out it does not work in some platform. */
11333 #ifndef LT_DLLAZY_OR_NOW
11334 # ifdef RTLD_LAZY
11335 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11336 # else
11337 # ifdef DL_LAZY
11338 # define LT_DLLAZY_OR_NOW DL_LAZY
11339 # else
11340 # ifdef RTLD_NOW
11341 # define LT_DLLAZY_OR_NOW RTLD_NOW
11342 # else
11343 # ifdef DL_NOW
11344 # define LT_DLLAZY_OR_NOW DL_NOW
11345 # else
11346 # define LT_DLLAZY_OR_NOW 0
11347 # endif
11348 # endif
11349 # endif
11350 # endif
11351 #endif
11352
11353 void fnord() { int i=42;}
11354 int main ()
11355 {
11356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11357 int status = $lt_dlunknown;
11358
11359 if (self)
11360 {
11361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11363 /* dlclose (self); */
11364 }
11365 else
11366 puts (dlerror ());
11367
11368 return status;
11369 }
11370 _LT_EOF
11371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372 (eval $ac_link) 2>&5
11373 ac_status=$?
11374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11376 (./conftest; exit; ) >&5 2>/dev/null
11377 lt_status=$?
11378 case x$lt_status in
11379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11381 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11382 esac
11383 else :
11384 # compilation failed
11385 lt_cv_dlopen_self_static=no
11386 fi
11387 fi
11388 rm -fr conftest*
11389
11390
11391 fi
11392 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11393 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11394 fi
11395
11396 CPPFLAGS="$save_CPPFLAGS"
11397 LDFLAGS="$save_LDFLAGS"
11398 LIBS="$save_LIBS"
11399 ;;
11400 esac
11401
11402 case $lt_cv_dlopen_self in
11403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11404 *) enable_dlopen_self=unknown ;;
11405 esac
11406
11407 case $lt_cv_dlopen_self_static in
11408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11409 *) enable_dlopen_self_static=unknown ;;
11410 esac
11411 fi
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429 striplib=
11430 old_striplib=
11431 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11432 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11433 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11434 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11435 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11436 { $as_echo "$as_me:$LINENO: result: yes" >&5
11437 $as_echo "yes" >&6; }
11438 else
11439 # FIXME - insert some real tests, host_os isn't really good enough
11440 case $host_os in
11441 darwin*)
11442 if test -n "$STRIP" ; then
11443 striplib="$STRIP -x"
11444 old_striplib="$STRIP -S"
11445 { $as_echo "$as_me:$LINENO: result: yes" >&5
11446 $as_echo "yes" >&6; }
11447 else
11448 { $as_echo "$as_me:$LINENO: result: no" >&5
11449 $as_echo "no" >&6; }
11450 fi
11451 ;;
11452 *)
11453 { $as_echo "$as_me:$LINENO: result: no" >&5
11454 $as_echo "no" >&6; }
11455 ;;
11456 esac
11457 fi
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470 # Report which library types will actually be built
11471 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11472 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11473 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11474 $as_echo "$can_build_shared" >&6; }
11475
11476 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11477 $as_echo_n "checking whether to build shared libraries... " >&6; }
11478 test "$can_build_shared" = "no" && enable_shared=no
11479
11480 # On AIX, shared libraries and static libraries use the same namespace, and
11481 # are all built from PIC.
11482 case $host_os in
11483 aix3*)
11484 test "$enable_shared" = yes && enable_static=no
11485 if test -n "$RANLIB"; then
11486 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11487 postinstall_cmds='$RANLIB $lib'
11488 fi
11489 ;;
11490
11491 aix[4-9]*)
11492 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11493 test "$enable_shared" = yes && enable_static=no
11494 fi
11495 ;;
11496 esac
11497 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11498 $as_echo "$enable_shared" >&6; }
11499
11500 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11501 $as_echo_n "checking whether to build static libraries... " >&6; }
11502 # Make sure either enable_shared or enable_static is yes.
11503 test "$enable_shared" = yes || enable_static=yes
11504 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11505 $as_echo "$enable_static" >&6; }
11506
11507
11508
11509
11510 fi
11511 ac_ext=c
11512 ac_cpp='$CPP $CPPFLAGS'
11513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11516
11517 CC="$lt_save_CC"
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531 ac_config_commands="$ac_config_commands libtool"
11532
11533
11534
11535
11536 # Only expand once:
11537
11538
11539 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11540 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11541 set x ${MAKE-make}
11542 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11543 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11544 $as_echo_n "(cached) " >&6
11545 else
11546 cat >conftest.make <<\_ACEOF
11547 SHELL = /bin/sh
11548 all:
11549 @echo '@@@%%%=$(MAKE)=@@@%%%'
11550 _ACEOF
11551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11552 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11553 *@@@%%%=?*=@@@%%%*)
11554 eval ac_cv_prog_make_${ac_make}_set=yes;;
11555 *)
11556 eval ac_cv_prog_make_${ac_make}_set=no;;
11557 esac
11558 rm -f conftest.make
11559 fi
11560 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11561 { $as_echo "$as_me:$LINENO: result: yes" >&5
11562 $as_echo "yes" >&6; }
11563 SET_MAKE=
11564 else
11565 { $as_echo "$as_me:$LINENO: result: no" >&5
11566 $as_echo "no" >&6; }
11567 SET_MAKE="MAKE=${MAKE-make}"
11568 fi
11569
11570
11571
11572 if test "x$GCC" = xyes ; then
11573 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
11574 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
11575 -Wbad-function-cast"
11576 case `$CC -dumpversion` in
11577 3.4.* | 4.*)
11578 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
11579 ;;
11580 esac
11581 else
11582 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
11583 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
11584 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
11585 $as_echo_n "(cached) " >&6
11586 else
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 $ac_includes_default
11594 int
11595 main ()
11596 {
11597 #ifndef __SUNPRO_C
11598 (void) __SUNPRO_C;
11599 #endif
11600
11601 ;
11602 return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext
11606 if { (ac_try="$ac_compile"
11607 case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610 esac
11611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612 $as_echo "$ac_try_echo") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
11623 ac_cv_have_decl___SUNPRO_C=yes
11624 else
11625 $as_echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_cv_have_decl___SUNPRO_C=no
11629 fi
11630
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 fi
11633 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
11634 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
11635 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
11636 SUNCC="yes"
11637 else
11638 SUNCC="no"
11639 fi
11640
11641 if test "x$SUNCC" = "xyes"; then
11642 CWARNFLAGS="-v"
11643 fi
11644 fi
11645
11646 # Check whether --enable-silent-rules was given.
11647 if test "${enable_silent_rules+set}" = set; then
11648 enableval=$enable_silent_rules;
11649 fi
11650
11651 case $enable_silent_rules in
11652 yes) AM_DEFAULT_VERBOSITY=0;;
11653 no) AM_DEFAULT_VERBOSITY=1;;
11654 *) AM_DEFAULT_VERBOSITY=0;;
11655 esac
11656 AM_BACKSLASH='\'
11657
11658
11659
11660
11661
11662 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11663 if test -n "$ac_tool_prefix"; then
11664 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11665 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11669 $as_echo_n "(cached) " >&6
11670 else
11671 case $PKG_CONFIG in
11672 [\\/]* | ?:[\\/]*)
11673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11674 ;;
11675 *)
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11678 do
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11684 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11685 break 2
11686 fi
11687 done
11688 done
11689 IFS=$as_save_IFS
11690
11691 ;;
11692 esac
11693 fi
11694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11695 if test -n "$PKG_CONFIG"; then
11696 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11697 $as_echo "$PKG_CONFIG" >&6; }
11698 else
11699 { $as_echo "$as_me:$LINENO: result: no" >&5
11700 $as_echo "no" >&6; }
11701 fi
11702
11703
11704 fi
11705 if test -z "$ac_cv_path_PKG_CONFIG"; then
11706 ac_pt_PKG_CONFIG=$PKG_CONFIG
11707 # Extract the first word of "pkg-config", so it can be a program name with args.
11708 set dummy pkg-config; ac_word=$2
11709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11712 $as_echo_n "(cached) " >&6
11713 else
11714 case $ac_pt_PKG_CONFIG in
11715 [\\/]* | ?:[\\/]*)
11716 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11717 ;;
11718 *)
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11729 fi
11730 done
11731 done
11732 IFS=$as_save_IFS
11733
11734 ;;
11735 esac
11736 fi
11737 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11738 if test -n "$ac_pt_PKG_CONFIG"; then
11739 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11740 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11741 else
11742 { $as_echo "$as_me:$LINENO: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745
11746 if test "x$ac_pt_PKG_CONFIG" = x; then
11747 PKG_CONFIG=""
11748 else
11749 case $cross_compiling:$ac_tool_warned in
11750 yes:)
11751 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11753 ac_tool_warned=yes ;;
11754 esac
11755 PKG_CONFIG=$ac_pt_PKG_CONFIG
11756 fi
11757 else
11758 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11759 fi
11760
11761 fi
11762 if test -n "$PKG_CONFIG"; then
11763 _pkg_min_version=0.9.0
11764 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11765 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11766 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11767 { $as_echo "$as_me:$LINENO: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769 else
11770 { $as_echo "$as_me:$LINENO: result: no" >&5
11771 $as_echo "no" >&6; }
11772 PKG_CONFIG=""
11773 fi
11774
11775 fi
11776
11777 pkg_failed=no
11778 { $as_echo "$as_me:$LINENO: checking for XAU" >&5
11779 $as_echo_n "checking for XAU... " >&6; }
11780
11781 if test -n "$XAU_CFLAGS"; then
11782 pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
11783 elif test -n "$PKG_CONFIG"; then
11784 if test -n "$PKG_CONFIG" && \
11785 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
11786 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11787 ac_status=$?
11788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; then
11790 pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
11791 else
11792 pkg_failed=yes
11793 fi
11794 else
11795 pkg_failed=untried
11796 fi
11797 if test -n "$XAU_LIBS"; then
11798 pkg_cv_XAU_LIBS="$XAU_LIBS"
11799 elif test -n "$PKG_CONFIG"; then
11800 if test -n "$PKG_CONFIG" && \
11801 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
11802 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11803 ac_status=$?
11804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; then
11806 pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
11807 else
11808 pkg_failed=yes
11809 fi
11810 else
11811 pkg_failed=untried
11812 fi
11813
11814
11815
11816 if test $pkg_failed = yes; then
11817
11818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11819 _pkg_short_errors_supported=yes
11820 else
11821 _pkg_short_errors_supported=no
11822 fi
11823 if test $_pkg_short_errors_supported = yes; then
11824 XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
11825 else
11826 XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
11827 fi
11828 # Put the nasty error message in config.log where it belongs
11829 echo "$XAU_PKG_ERRORS" >&5
11830
11831 { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto) were not met:
11832
11833 $XAU_PKG_ERRORS
11834
11835 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11836 installed software in a non-standard prefix.
11837
11838 Alternatively, you may set the environment variables XAU_CFLAGS
11839 and XAU_LIBS to avoid the need to call pkg-config.
11840 See the pkg-config man page for more details.
11841 " >&5
11842 $as_echo "$as_me: error: Package requirements (xproto) were not met:
11843
11844 $XAU_PKG_ERRORS
11845
11846 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11847 installed software in a non-standard prefix.
11848
11849 Alternatively, you may set the environment variables XAU_CFLAGS
11850 and XAU_LIBS to avoid the need to call pkg-config.
11851 See the pkg-config man page for more details.
11852 " >&2;}
11853 { (exit 1); exit 1; }; }
11854 elif test $pkg_failed = untried; then
11855 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11857 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11858 is in your PATH or set the PKG_CONFIG environment variable to the full
11859 path to pkg-config.
11860
11861 Alternatively, you may set the environment variables XAU_CFLAGS
11862 and XAU_LIBS to avoid the need to call pkg-config.
11863 See the pkg-config man page for more details.
11864
11865 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11866 See \`config.log' for more details." >&5
11867 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11868 is in your PATH or set the PKG_CONFIG environment variable to the full
11869 path to pkg-config.
11870
11871 Alternatively, you may set the environment variables XAU_CFLAGS
11872 and XAU_LIBS to avoid the need to call pkg-config.
11873 See the pkg-config man page for more details.
11874
11875 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11876 See \`config.log' for more details." >&2;}
11877 { (exit 1); exit 1; }; }; }
11878 else
11879 XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
11880 XAU_LIBS=$pkg_cv_XAU_LIBS
11881 { $as_echo "$as_me:$LINENO: result: yes" >&5
11882 $as_echo "yes" >&6; }
11883 :
11884 fi
11885 XAU_CFLAGS="$CWARNFLAGS $XAU_CFLAGS"
11886
11887
11888
11889 # Check whether --enable-xthreads was given.
11890 if test "${enable_xthreads+set}" = set; then
11891 enableval=$enable_xthreads; xthreads=$enableval
11892 else
11893 xthreads=yes
11894 fi
11895
11896
11897 if test "x$xthreads" = "xyes" ; then
11898
11899 cat >>confdefs.h <<\_ACEOF
11900 #define XTHREADS 1
11901 _ACEOF
11902
11903 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lc" >&5
11904 $as_echo_n "checking for gethostbyname_r in -lc... " >&6; }
11905 if test "${ac_cv_lib_c_gethostbyname_r+set}" = set; then
11906 $as_echo_n "(cached) " >&6
11907 else
11908 ac_check_lib_save_LIBS=$LIBS
11909 LIBS="-lc $LIBS"
11910 cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h. */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char gethostbyname_r ();
11924 int
11925 main ()
11926 {
11927 return gethostbyname_r ();
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937 esac
11938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11939 $as_echo "$ac_try_echo") >&5
11940 (eval "$ac_link") 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } && {
11947 test -z "$ac_c_werror_flag" ||
11948 test ! -s conftest.err
11949 } && test -s conftest$ac_exeext && {
11950 test "$cross_compiling" = yes ||
11951 $as_test_x conftest$ac_exeext
11952 }; then
11953 ac_cv_lib_c_gethostbyname_r=yes
11954 else
11955 $as_echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958 ac_cv_lib_c_gethostbyname_r=no
11959 fi
11960
11961 rm -rf conftest.dSYM
11962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gethostbyname_r" >&5
11967 $as_echo "$ac_cv_lib_c_gethostbyname_r" >&6; }
11968 if test "x$ac_cv_lib_c_gethostbyname_r" = x""yes; then
11969 mtsafe=yes
11970 fi
11971
11972 if test "x$mtsafe" = "x" ; then
11973 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
11974 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
11975 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-lnsl $LIBS"
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char gethostbyname_r ();
11994 int
11995 main ()
11996 {
11997 return gethostbyname_r ();
11998 ;
11999 return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_link") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest$ac_exeext && {
12020 test "$cross_compiling" = yes ||
12021 $as_test_x conftest$ac_exeext
12022 }; then
12023 ac_cv_lib_nsl_gethostbyname_r=yes
12024 else
12025 $as_echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 ac_cv_lib_nsl_gethostbyname_r=no
12029 fi
12030
12031 rm -rf conftest.dSYM
12032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12033 conftest$ac_exeext conftest.$ac_ext
12034 LIBS=$ac_check_lib_save_LIBS
12035 fi
12036 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
12037 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
12038 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then
12039 mtsafe=yes
12040 fi
12041
12042 fi
12043 if test "x$mtsafe" = "xyes" ; then
12044
12045 cat >>confdefs.h <<\_ACEOF
12046 #define XUSE_MTSAFE_API 1
12047 _ACEOF
12048
12049 fi
12050
12051 case $host_os in
12052 solaris*)
12053 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
12054 esac
12055 XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
12056 fi
12057
12058
12059
12060 # Allow checking code with lint, sparse, etc.
12061
12062 # Check whether --with-lint was given.
12063 if test "${with_lint+set}" = set; then
12064 withval=$with_lint; use_lint=$withval
12065 else
12066 use_lint=no
12067 fi
12068
12069 if test "x$use_lint" = "xyes" ; then
12070 LINT="lint"
12071 else
12072 LINT="$use_lint"
12073 fi
12074 if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
12075 case $LINT in
12076 lint|*/lint)
12077 case $host_os in
12078 solaris*)
12079 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12080 ;;
12081 esac
12082 ;;
12083 esac
12084 fi
12085
12086
12087
12088 if test x$LINT != xno; then
12089 LINT_TRUE=
12090 LINT_FALSE='#'
12091 else
12092 LINT_TRUE='#'
12093 LINT_FALSE=
12094 fi
12095
12096
12097
12098
12099
12100 # Build lint "library" for more indepth checks of programs calling this library
12101 # Check whether --enable-lint-library was given.
12102 if test "${enable_lint_library+set}" = set; then
12103 enableval=$enable_lint_library; make_lint_lib=$enableval
12104 else
12105 make_lint_lib=no
12106 fi
12107
12108 if test "x$make_lint_lib" != "xno" ; then
12109 if test "x$LINT" = "xno" ; then
12110 { { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
12111 $as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
12112 { (exit 1); exit 1; }; }
12113 fi
12114 if test "x$make_lint_lib" = "xyes" ; then
12115 LINTLIB=llib-lXau.ln
12116 else
12117 LINTLIB=$make_lint_lib
12118 fi
12119 fi
12120
12121 if test x$make_lint_lib != xno; then
12122 MAKE_LINT_LIB_TRUE=
12123 MAKE_LINT_LIB_FALSE='#'
12124 else
12125 MAKE_LINT_LIB_TRUE='#'
12126 MAKE_LINT_LIB_FALSE=
12127 fi
12128
12129
12130
12131 LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
12132
12133
12134
12135
12136 if test x$APP_MAN_SUFFIX = x ; then
12137 APP_MAN_SUFFIX=1
12138 fi
12139 if test x$APP_MAN_DIR = x ; then
12140 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12141 fi
12142
12143 if test x$LIB_MAN_SUFFIX = x ; then
12144 LIB_MAN_SUFFIX=3
12145 fi
12146 if test x$LIB_MAN_DIR = x ; then
12147 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12148 fi
12149
12150 if test x$FILE_MAN_SUFFIX = x ; then
12151 case $host_os in
12152 solaris*) FILE_MAN_SUFFIX=4 ;;
12153 *) FILE_MAN_SUFFIX=5 ;;
12154 esac
12155 fi
12156 if test x$FILE_MAN_DIR = x ; then
12157 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12158 fi
12159
12160 if test x$MISC_MAN_SUFFIX = x ; then
12161 case $host_os in
12162 solaris*) MISC_MAN_SUFFIX=5 ;;
12163 *) MISC_MAN_SUFFIX=7 ;;
12164 esac
12165 fi
12166 if test x$MISC_MAN_DIR = x ; then
12167 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12168 fi
12169
12170 if test x$DRIVER_MAN_SUFFIX = x ; then
12171 case $host_os in
12172 solaris*) DRIVER_MAN_SUFFIX=7 ;;
12173 *) DRIVER_MAN_SUFFIX=4 ;;
12174 esac
12175 fi
12176 if test x$DRIVER_MAN_DIR = x ; then
12177 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12178 fi
12179
12180 if test x$ADMIN_MAN_SUFFIX = x ; then
12181 case $host_os in
12182 solaris*) ADMIN_MAN_SUFFIX=1m ;;
12183 *) ADMIN_MAN_SUFFIX=8 ;;
12184 esac
12185 fi
12186 if test x$ADMIN_MAN_DIR = x ; then
12187 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12188 fi
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206 # Check whether --with-release-version was given.
12207 if test "${with_release_version+set}" = set; then
12208 withval=$with_release_version; RELEASE_VERSION="$withval"
12209 else
12210 RELEASE_VERSION=""
12211 fi
12212
12213 if test "x$RELEASE_VERSION" != "x"; then
12214 PACKAGE="$PACKAGE-$RELEASE_VERSION"
12215 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
12216 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
12217 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
12218 fi
12219
12220 cat >>confdefs.h <<_ACEOF
12221 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12222 _ACEOF
12223
12224 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12225 if test "x$PVM" = "x"; then
12226 PVM="0"
12227 fi
12228
12229 cat >>confdefs.h <<_ACEOF
12230 #define PACKAGE_VERSION_MINOR $PVM
12231 _ACEOF
12232
12233 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12234 if test "x$PVP" = "x"; then
12235 PVP="0"
12236 fi
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define PACKAGE_VERSION_PATCHLEVEL $PVP
12240 _ACEOF
12241
12242
12243
12244 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
12245 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
12246 echo 'git directory not found: installing possibly empty changelog.' >&2)"
12247
12248 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
12249
12250
12251
12252 ac_config_files="$ac_config_files Makefile xau.pc"
12253
12254 cat >confcache <<\_ACEOF
12255 # This file is a shell script that caches the results of configure
12256 # tests run on this system so they can be shared between configure
12257 # scripts and configure runs, see configure's option --config-cache.
12258 # It is not useful on other systems. If it contains results you don't
12259 # want to keep, you may remove or edit it.
12260 #
12261 # config.status only pays attention to the cache file if you give it
12262 # the --recheck option to rerun configure.
12263 #
12264 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12265 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12266 # following values.
12267
12268 _ACEOF
12269
12270 # The following way of writing the cache mishandles newlines in values,
12271 # but we know of no workaround that is simple, portable, and efficient.
12272 # So, we kill variables containing newlines.
12273 # Ultrix sh set writes to stderr and can't be redirected directly,
12274 # and sets the high bit in the cache file unless we assign to the vars.
12275 (
12276 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12277 eval ac_val=\$$ac_var
12278 case $ac_val in #(
12279 *${as_nl}*)
12280 case $ac_var in #(
12281 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12283 esac
12284 case $ac_var in #(
12285 _ | IFS | as_nl) ;; #(
12286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12287 *) $as_unset $ac_var ;;
12288 esac ;;
12289 esac
12290 done
12291
12292 (set) 2>&1 |
12293 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12294 *${as_nl}ac_space=\ *)
12295 # `set' does not quote correctly, so add quotes (double-quote
12296 # substitution turns \\\\ into \\, and sed turns \\ into \).
12297 sed -n \
12298 "s/'/'\\\\''/g;
12299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12300 ;; #(
12301 *)
12302 # `set' quotes correctly as required by POSIX, so do not add quotes.
12303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12304 ;;
12305 esac |
12306 sort
12307 ) |
12308 sed '
12309 /^ac_cv_env_/b end
12310 t clear
12311 :clear
12312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12313 t end
12314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12315 :end' >>confcache
12316 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12317 if test -w "$cache_file"; then
12318 test "x$cache_file" != "x/dev/null" &&
12319 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12320 $as_echo "$as_me: updating cache $cache_file" >&6;}
12321 cat confcache >$cache_file
12322 else
12323 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12324 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12325 fi
12326 fi
12327 rm -f confcache
12328
12329 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12330 # Let make expand exec_prefix.
12331 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12332
12333 DEFS=-DHAVE_CONFIG_H
12334
12335 ac_libobjs=
12336 ac_ltlibobjs=
12337 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12338 # 1. Remove the extension, and $U if already installed.
12339 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12340 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12341 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12342 # will be set to the directory where LIBOBJS objects are built.
12343 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12344 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12345 done
12346 LIBOBJS=$ac_libobjs
12347
12348 LTLIBOBJS=$ac_ltlibobjs
12349
12350
12351 if test -n "$EXEEXT"; then
12352 am__EXEEXT_TRUE=
12353 am__EXEEXT_FALSE='#'
12354 else
12355 am__EXEEXT_TRUE='#'
12356 am__EXEEXT_FALSE=
12357 fi
12358
12359 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12360 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12361 Usually this means the macro was only invoked conditionally." >&5
12362 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12363 Usually this means the macro was only invoked conditionally." >&2;}
12364 { (exit 1); exit 1; }; }
12365 fi
12366 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12367 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12368 Usually this means the macro was only invoked conditionally." >&5
12369 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12370 Usually this means the macro was only invoked conditionally." >&2;}
12371 { (exit 1); exit 1; }; }
12372 fi
12373 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12374 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12375 Usually this means the macro was only invoked conditionally." >&5
12376 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12377 Usually this means the macro was only invoked conditionally." >&2;}
12378 { (exit 1); exit 1; }; }
12379 fi
12380 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12381 { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
12382 Usually this means the macro was only invoked conditionally." >&5
12383 $as_echo "$as_me: error: conditional \"LINT\" was never defined.
12384 Usually this means the macro was only invoked conditionally." >&2;}
12385 { (exit 1); exit 1; }; }
12386 fi
12387 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
12388 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
12389 Usually this means the macro was only invoked conditionally." >&5
12390 $as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
12391 Usually this means the macro was only invoked conditionally." >&2;}
12392 { (exit 1); exit 1; }; }
12393 fi
12394
12395 : ${CONFIG_STATUS=./config.status}
12396 ac_write_fail=0
12397 ac_clean_files_save=$ac_clean_files
12398 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12399 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12400 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12401 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12402 #! $SHELL
12403 # Generated by $as_me.
12404 # Run this file to recreate the current configuration.
12405 # Compiler output produced by configure, useful for debugging
12406 # configure, is in config.log if it exists.
12407
12408 debug=false
12409 ac_cs_recheck=false
12410 ac_cs_silent=false
12411 SHELL=\${CONFIG_SHELL-$SHELL}
12412 _ACEOF
12413
12414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12415 ## --------------------- ##
12416 ## M4sh Initialization. ##
12417 ## --------------------- ##
12418
12419 # Be more Bourne compatible
12420 DUALCASE=1; export DUALCASE # for MKS sh
12421 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12422 emulate sh
12423 NULLCMD=:
12424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12425 # is contrary to our usage. Disable this feature.
12426 alias -g '${1+"$@"}'='"$@"'
12427 setopt NO_GLOB_SUBST
12428 else
12429 case `(set -o) 2>/dev/null` in
12430 *posix*) set -o posix ;;
12431 esac
12432
12433 fi
12434
12435
12436
12437
12438 # PATH needs CR
12439 # Avoid depending upon Character Ranges.
12440 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12443 as_cr_digits='0123456789'
12444 as_cr_alnum=$as_cr_Letters$as_cr_digits
12445
12446 as_nl='
12447 '
12448 export as_nl
12449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12453 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12454 as_echo='printf %s\n'
12455 as_echo_n='printf %s'
12456 else
12457 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12458 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12459 as_echo_n='/usr/ucb/echo -n'
12460 else
12461 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12462 as_echo_n_body='eval
12463 arg=$1;
12464 case $arg in
12465 *"$as_nl"*)
12466 expr "X$arg" : "X\\(.*\\)$as_nl";
12467 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12468 esac;
12469 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12470 '
12471 export as_echo_n_body
12472 as_echo_n='sh -c $as_echo_n_body as_echo'
12473 fi
12474 export as_echo_body
12475 as_echo='sh -c $as_echo_body as_echo'
12476 fi
12477
12478 # The user is always right.
12479 if test "${PATH_SEPARATOR+set}" != set; then
12480 PATH_SEPARATOR=:
12481 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12482 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12483 PATH_SEPARATOR=';'
12484 }
12485 fi
12486
12487 # Support unset when possible.
12488 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12489 as_unset=unset
12490 else
12491 as_unset=false
12492 fi
12493
12494
12495 # IFS
12496 # We need space, tab and new line, in precisely that order. Quoting is
12497 # there to prevent editors from complaining about space-tab.
12498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12499 # splitting by setting IFS to empty value.)
12500 IFS=" "" $as_nl"
12501
12502 # Find who we are. Look in the path if we contain no directory separator.
12503 case $0 in
12504 *[\\/]* ) as_myself=$0 ;;
12505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in $PATH
12507 do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12511 done
12512 IFS=$as_save_IFS
12513
12514 ;;
12515 esac
12516 # We did not find ourselves, most probably we were run as `sh COMMAND'
12517 # in which case we are not to be found in the path.
12518 if test "x$as_myself" = x; then
12519 as_myself=$0
12520 fi
12521 if test ! -f "$as_myself"; then
12522 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12523 { (exit 1); exit 1; }
12524 fi
12525
12526 # Work around bugs in pre-3.0 UWIN ksh.
12527 for as_var in ENV MAIL MAILPATH
12528 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12529 done
12530 PS1='$ '
12531 PS2='> '
12532 PS4='+ '
12533
12534 # NLS nuisances.
12535 LC_ALL=C
12536 export LC_ALL
12537 LANGUAGE=C
12538 export LANGUAGE
12539
12540 # Required to use basename.
12541 if expr a : '\(a\)' >/dev/null 2>&1 &&
12542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12543 as_expr=expr
12544 else
12545 as_expr=false
12546 fi
12547
12548 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12549 as_basename=basename
12550 else
12551 as_basename=false
12552 fi
12553
12554
12555 # Name of the executable.
12556 as_me=`$as_basename -- "$0" ||
12557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12558 X"$0" : 'X\(//\)$' \| \
12559 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12560 $as_echo X/"$0" |
12561 sed '/^.*\/\([^/][^/]*\)\/*$/{
12562 s//\1/
12563 q
12564 }
12565 /^X\/\(\/\/\)$/{
12566 s//\1/
12567 q
12568 }
12569 /^X\/\(\/\).*/{
12570 s//\1/
12571 q
12572 }
12573 s/.*/./; q'`
12574
12575 # CDPATH.
12576 $as_unset CDPATH
12577
12578
12579
12580 as_lineno_1=$LINENO
12581 as_lineno_2=$LINENO
12582 test "x$as_lineno_1" != "x$as_lineno_2" &&
12583 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12584
12585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12586 # uniformly replaced by the line number. The first 'sed' inserts a
12587 # line-number line after each line using $LINENO; the second 'sed'
12588 # does the real work. The second script uses 'N' to pair each
12589 # line-number line with the line containing $LINENO, and appends
12590 # trailing '-' during substitution so that $LINENO is not a special
12591 # case at line end.
12592 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12593 # scripts with optimization help from Paolo Bonzini. Blame Lee
12594 # E. McMahon (1931-1989) for sed's syntax. :-)
12595 sed -n '
12596 p
12597 /[$]LINENO/=
12598 ' <$as_myself |
12599 sed '
12600 s/[$]LINENO.*/&-/
12601 t lineno
12602 b
12603 :lineno
12604 N
12605 :loop
12606 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12607 t loop
12608 s/-\n.*//
12609 ' >$as_me.lineno &&
12610 chmod +x "$as_me.lineno" ||
12611 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12612 { (exit 1); exit 1; }; }
12613
12614 # Don't try to exec as it changes $[0], causing all sort of problems
12615 # (the dirname of $[0] is not the place where we might find the
12616 # original and so on. Autoconf is especially sensitive to this).
12617 . "./$as_me.lineno"
12618 # Exit status is that of the last command.
12619 exit
12620 }
12621
12622
12623 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12624 as_dirname=dirname
12625 else
12626 as_dirname=false
12627 fi
12628
12629 ECHO_C= ECHO_N= ECHO_T=
12630 case `echo -n x` in
12631 -n*)
12632 case `echo 'x\c'` in
12633 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12634 *) ECHO_C='\c';;
12635 esac;;
12636 *)
12637 ECHO_N='-n';;
12638 esac
12639 if expr a : '\(a\)' >/dev/null 2>&1 &&
12640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12641 as_expr=expr
12642 else
12643 as_expr=false
12644 fi
12645
12646 rm -f conf$$ conf$$.exe conf$$.file
12647 if test -d conf$$.dir; then
12648 rm -f conf$$.dir/conf$$.file
12649 else
12650 rm -f conf$$.dir
12651 mkdir conf$$.dir 2>/dev/null
12652 fi
12653 if (echo >conf$$.file) 2>/dev/null; then
12654 if ln -s conf$$.file conf$$ 2>/dev/null; then
12655 as_ln_s='ln -s'
12656 # ... but there are two gotchas:
12657 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12658 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12659 # In both cases, we have to default to `cp -p'.
12660 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12661 as_ln_s='cp -p'
12662 elif ln conf$$.file conf$$ 2>/dev/null; then
12663 as_ln_s=ln
12664 else
12665 as_ln_s='cp -p'
12666 fi
12667 else
12668 as_ln_s='cp -p'
12669 fi
12670 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12671 rmdir conf$$.dir 2>/dev/null
12672
12673 if mkdir -p . 2>/dev/null; then
12674 as_mkdir_p=:
12675 else
12676 test -d ./-p && rmdir ./-p
12677 as_mkdir_p=false
12678 fi
12679
12680 if test -x / >/dev/null 2>&1; then
12681 as_test_x='test -x'
12682 else
12683 if ls -dL / >/dev/null 2>&1; then
12684 as_ls_L_option=L
12685 else
12686 as_ls_L_option=
12687 fi
12688 as_test_x='
12689 eval sh -c '\''
12690 if test -d "$1"; then
12691 test -d "$1/.";
12692 else
12693 case $1 in
12694 -*)set "./$1";;
12695 esac;
12696 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12697 ???[sx]*):;;*)false;;esac;fi
12698 '\'' sh
12699 '
12700 fi
12701 as_executable_p=$as_test_x
12702
12703 # Sed expression to map a string onto a valid CPP name.
12704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12705
12706 # Sed expression to map a string onto a valid variable name.
12707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12708
12709
12710 exec 6>&1
12711
12712 # Save the log message, to keep $[0] and so on meaningful, and to
12713 # report actual input values of CONFIG_FILES etc. instead of their
12714 # values after options handling.
12715 ac_log="
12716 This file was extended by libXau $as_me 1.0.5, which was
12717 generated by GNU Autoconf 2.63. Invocation command line was
12718
12719 CONFIG_FILES = $CONFIG_FILES
12720 CONFIG_HEADERS = $CONFIG_HEADERS
12721 CONFIG_LINKS = $CONFIG_LINKS
12722 CONFIG_COMMANDS = $CONFIG_COMMANDS
12723 $ $0 $@
12724
12725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12726 "
12727
12728 _ACEOF
12729
12730 case $ac_config_files in *"
12731 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12732 esac
12733
12734 case $ac_config_headers in *"
12735 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12736 esac
12737
12738
12739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12740 # Files that config.status was made for.
12741 config_files="$ac_config_files"
12742 config_headers="$ac_config_headers"
12743 config_commands="$ac_config_commands"
12744
12745 _ACEOF
12746
12747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12748 ac_cs_usage="\
12749 \`$as_me' instantiates files from templates according to the
12750 current configuration.
12751
12752 Usage: $0 [OPTION]... [FILE]...
12753
12754 -h, --help print this help, then exit
12755 -V, --version print version number and configuration settings, then exit
12756 -q, --quiet, --silent
12757 do not print progress messages
12758 -d, --debug don't remove temporary files
12759 --recheck update $as_me by reconfiguring in the same conditions
12760 --file=FILE[:TEMPLATE]
12761 instantiate the configuration file FILE
12762 --header=FILE[:TEMPLATE]
12763 instantiate the configuration header FILE
12764
12765 Configuration files:
12766 $config_files
12767
12768 Configuration headers:
12769 $config_headers
12770
12771 Configuration commands:
12772 $config_commands
12773
12774 Report bugs to <bug-autoconf (at] gnu.org>."
12775
12776 _ACEOF
12777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12778 ac_cs_version="\\
12779 libXau config.status 1.0.5
12780 configured by $0, generated by GNU Autoconf 2.63,
12781 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12782
12783 Copyright (C) 2008 Free Software Foundation, Inc.
12784 This config.status script is free software; the Free Software Foundation
12785 gives unlimited permission to copy, distribute and modify it."
12786
12787 ac_pwd='$ac_pwd'
12788 srcdir='$srcdir'
12789 INSTALL='$INSTALL'
12790 MKDIR_P='$MKDIR_P'
12791 AWK='$AWK'
12792 test -n "\$AWK" || AWK=awk
12793 _ACEOF
12794
12795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12796 # The default lists apply if the user does not specify any file.
12797 ac_need_defaults=:
12798 while test $# != 0
12799 do
12800 case $1 in
12801 --*=*)
12802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12803 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12804 ac_shift=:
12805 ;;
12806 *)
12807 ac_option=$1
12808 ac_optarg=$2
12809 ac_shift=shift
12810 ;;
12811 esac
12812
12813 case $ac_option in
12814 # Handling of the options.
12815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12816 ac_cs_recheck=: ;;
12817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12818 $as_echo "$ac_cs_version"; exit ;;
12819 --debug | --debu | --deb | --de | --d | -d )
12820 debug=: ;;
12821 --file | --fil | --fi | --f )
12822 $ac_shift
12823 case $ac_optarg in
12824 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12825 esac
12826 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12827 ac_need_defaults=false;;
12828 --header | --heade | --head | --hea )
12829 $ac_shift
12830 case $ac_optarg in
12831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12832 esac
12833 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12834 ac_need_defaults=false;;
12835 --he | --h)
12836 # Conflict between --help and --header
12837 { $as_echo "$as_me: error: ambiguous option: $1
12838 Try \`$0 --help' for more information." >&2
12839 { (exit 1); exit 1; }; };;
12840 --help | --hel | -h )
12841 $as_echo "$ac_cs_usage"; exit ;;
12842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12843 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12844 ac_cs_silent=: ;;
12845
12846 # This is an error.
12847 -*) { $as_echo "$as_me: error: unrecognized option: $1
12848 Try \`$0 --help' for more information." >&2
12849 { (exit 1); exit 1; }; } ;;
12850
12851 *) ac_config_targets="$ac_config_targets $1"
12852 ac_need_defaults=false ;;
12853
12854 esac
12855 shift
12856 done
12857
12858 ac_configure_extra_args=
12859
12860 if $ac_cs_silent; then
12861 exec 6>/dev/null
12862 ac_configure_extra_args="$ac_configure_extra_args --silent"
12863 fi
12864
12865 _ACEOF
12866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12867 if \$ac_cs_recheck; then
12868 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12869 shift
12870 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12871 CONFIG_SHELL='$SHELL'
12872 export CONFIG_SHELL
12873 exec "\$@"
12874 fi
12875
12876 _ACEOF
12877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12878 exec 5>>config.log
12879 {
12880 echo
12881 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12882 ## Running $as_me. ##
12883 _ASBOX
12884 $as_echo "$ac_log"
12885 } >&5
12886
12887 _ACEOF
12888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12889 #
12890 # INIT-COMMANDS
12891 #
12892 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12893
12894
12895 # The HP-UX ksh and POSIX shell print the target directory to stdout
12896 # if CDPATH is set.
12897 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12898
12899 sed_quote_subst='$sed_quote_subst'
12900 double_quote_subst='$double_quote_subst'
12901 delay_variable_subst='$delay_variable_subst'
12902 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12903 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12904 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12905 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12906 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12907 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12908 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12909 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12910 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12911 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12912 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12913 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12914 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12915 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12916 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12917 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12918 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12919 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12920 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12921 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12922 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12923 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12924 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12925 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12926 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12927 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12928 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12929 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12930 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12931 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12932 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12933 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12934 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12935 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12936 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12937 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12938 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12939 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12940 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12941 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12942 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12943 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12944 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12945 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12946 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12947 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12948 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12949 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12950 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12951 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12952 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12953 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12954 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12955 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12956 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12957 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12958 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12959 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12960 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12961 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12962 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12963 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12964 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12965 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12966 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12967 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12969 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12970 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12971 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12972 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12973 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12974 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12975 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12976 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12977 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12978 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12979 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12980 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12981 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12982 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12983 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12984 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12985 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12986 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12987 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12988 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12989 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12990 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12991 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12992 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12993 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12994 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12995 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12996 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12997 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12998 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12999 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13000 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13001 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13002 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13003 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13004 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13005 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13006 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13007 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13008 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13009 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13010 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13011 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13012 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13013 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13014 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13015 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13016 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13017 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13018 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13019 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13020 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13021 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13022
13023 LTCC='$LTCC'
13024 LTCFLAGS='$LTCFLAGS'
13025 compiler='$compiler_DEFAULT'
13026
13027 # Quote evaled strings.
13028 for var in SED \
13029 GREP \
13030 EGREP \
13031 FGREP \
13032 LD \
13033 NM \
13034 LN_S \
13035 lt_SP2NL \
13036 lt_NL2SP \
13037 reload_flag \
13038 deplibs_check_method \
13039 file_magic_cmd \
13040 AR \
13041 AR_FLAGS \
13042 STRIP \
13043 RANLIB \
13044 CC \
13045 CFLAGS \
13046 compiler \
13047 lt_cv_sys_global_symbol_pipe \
13048 lt_cv_sys_global_symbol_to_cdecl \
13049 lt_cv_sys_global_symbol_to_c_name_address \
13050 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13051 SHELL \
13052 ECHO \
13053 lt_prog_compiler_no_builtin_flag \
13054 lt_prog_compiler_wl \
13055 lt_prog_compiler_pic \
13056 lt_prog_compiler_static \
13057 lt_cv_prog_compiler_c_o \
13058 need_locks \
13059 DSYMUTIL \
13060 NMEDIT \
13061 LIPO \
13062 OTOOL \
13063 OTOOL64 \
13064 shrext_cmds \
13065 export_dynamic_flag_spec \
13066 whole_archive_flag_spec \
13067 compiler_needs_object \
13068 with_gnu_ld \
13069 allow_undefined_flag \
13070 no_undefined_flag \
13071 hardcode_libdir_flag_spec \
13072 hardcode_libdir_flag_spec_ld \
13073 hardcode_libdir_separator \
13074 fix_srcfile_path \
13075 exclude_expsyms \
13076 include_expsyms \
13077 file_list_spec \
13078 variables_saved_for_relink \
13079 libname_spec \
13080 library_names_spec \
13081 soname_spec \
13082 finish_eval \
13083 old_striplib \
13084 striplib; do
13085 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13086 *[\\\\\\\`\\"\\\$]*)
13087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13088 ;;
13089 *)
13090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13091 ;;
13092 esac
13093 done
13094
13095 # Double-quote double-evaled strings.
13096 for var in reload_cmds \
13097 old_postinstall_cmds \
13098 old_postuninstall_cmds \
13099 old_archive_cmds \
13100 extract_expsyms_cmds \
13101 old_archive_from_new_cmds \
13102 old_archive_from_expsyms_cmds \
13103 archive_cmds \
13104 archive_expsym_cmds \
13105 module_cmds \
13106 module_expsym_cmds \
13107 export_symbols_cmds \
13108 prelink_cmds \
13109 postinstall_cmds \
13110 postuninstall_cmds \
13111 finish_cmds \
13112 sys_lib_search_path_spec \
13113 sys_lib_dlsearch_path_spec; do
13114 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13115 *[\\\\\\\`\\"\\\$]*)
13116 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13117 ;;
13118 *)
13119 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13120 ;;
13121 esac
13122 done
13123
13124 # Fix-up fallback echo if it was mangled by the above quoting rules.
13125 case \$lt_ECHO in
13126 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13127 ;;
13128 esac
13129
13130 ac_aux_dir='$ac_aux_dir'
13131 xsi_shell='$xsi_shell'
13132 lt_shell_append='$lt_shell_append'
13133
13134 # See if we are running on zsh, and set the options which allow our
13135 # commands through without removal of \ escapes INIT.
13136 if test -n "\${ZSH_VERSION+set}" ; then
13137 setopt NO_GLOB_SUBST
13138 fi
13139
13140
13141 PACKAGE='$PACKAGE'
13142 VERSION='$VERSION'
13143 TIMESTAMP='$TIMESTAMP'
13144 RM='$RM'
13145 ofile='$ofile'
13146
13147
13148
13149
13150 _ACEOF
13151
13152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153
13154 # Handling of arguments.
13155 for ac_config_target in $ac_config_targets
13156 do
13157 case $ac_config_target in
13158 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13159 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13160 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13162 "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
13163
13164 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13165 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13166 { (exit 1); exit 1; }; };;
13167 esac
13168 done
13169
13170
13171 # If the user did not use the arguments to specify the items to instantiate,
13172 # then the envvar interface is used. Set only those that are not.
13173 # We use the long form for the default assignment because of an extremely
13174 # bizarre bug on SunOS 4.1.3.
13175 if $ac_need_defaults; then
13176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13178 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13179 fi
13180
13181 # Have a temporary directory for convenience. Make it in the build tree
13182 # simply because there is no reason against having it here, and in addition,
13183 # creating and moving files from /tmp can sometimes cause problems.
13184 # Hook for its removal unless debugging.
13185 # Note that there is a small window in which the directory will not be cleaned:
13186 # after its creation but before its name has been assigned to `$tmp'.
13187 $debug ||
13188 {
13189 tmp=
13190 trap 'exit_status=$?
13191 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13192 ' 0
13193 trap '{ (exit 1); exit 1; }' 1 2 13 15
13194 }
13195 # Create a (secure) tmp directory for tmp files.
13196
13197 {
13198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13199 test -n "$tmp" && test -d "$tmp"
13200 } ||
13201 {
13202 tmp=./conf$$-$RANDOM
13203 (umask 077 && mkdir "$tmp")
13204 } ||
13205 {
13206 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13207 { (exit 1); exit 1; }
13208 }
13209
13210 # Set up the scripts for CONFIG_FILES section.
13211 # No need to generate them if there are no CONFIG_FILES.
13212 # This happens for instance with `./config.status config.h'.
13213 if test -n "$CONFIG_FILES"; then
13214
13215
13216 ac_cr='
'
13218 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13219 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13220 ac_cs_awk_cr='\\r'
13221 else
13222 ac_cs_awk_cr=$ac_cr
13223 fi
13224
13225 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13226 _ACEOF
13227
13228
13229 {
13230 echo "cat >conf$$subs.awk <<_ACEOF" &&
13231 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13232 echo "_ACEOF"
13233 } >conf$$subs.sh ||
13234 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13235 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13236 { (exit 1); exit 1; }; }
13237 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13238 ac_delim='%!_!# '
13239 for ac_last_try in false false false false false :; do
13240 . ./conf$$subs.sh ||
13241 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13242 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13243 { (exit 1); exit 1; }; }
13244
13245 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13246 if test $ac_delim_n = $ac_delim_num; then
13247 break
13248 elif $ac_last_try; then
13249 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13250 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13251 { (exit 1); exit 1; }; }
13252 else
13253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13254 fi
13255 done
13256 rm -f conf$$subs.sh
13257
13258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13259 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13260 _ACEOF
13261 sed -n '
13262 h
13263 s/^/S["/; s/!.*/"]=/
13264 p
13265 g
13266 s/^[^!]*!//
13267 :repl
13268 t repl
13269 s/'"$ac_delim"'$//
13270 t delim
13271 :nl
13272 h
13273 s/\(.\{148\}\).*/\1/
13274 t more1
13275 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13276 p
13277 n
13278 b repl
13279 :more1
13280 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13281 p
13282 g
13283 s/.\{148\}//
13284 t nl
13285 :delim
13286 h
13287 s/\(.\{148\}\).*/\1/
13288 t more2
13289 s/["\\]/\\&/g; s/^/"/; s/$/"/
13290 p
13291 b
13292 :more2
13293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13294 p
13295 g
13296 s/.\{148\}//
13297 t delim
13298 ' <conf$$subs.awk | sed '
13299 /^[^""]/{
13300 N
13301 s/\n//
13302 }
13303 ' >>$CONFIG_STATUS || ac_write_fail=1
13304 rm -f conf$$subs.awk
13305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13306 _ACAWK
13307 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13308 for (key in S) S_is_set[key] = 1
13309 FS = ""
13310
13311 }
13312 {
13313 line = $ 0
13314 nfields = split(line, field, "@")
13315 substed = 0
13316 len = length(field[1])
13317 for (i = 2; i < nfields; i++) {
13318 key = field[i]
13319 keylen = length(key)
13320 if (S_is_set[key]) {
13321 value = S[key]
13322 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13323 len += length(value) + length(field[++i])
13324 substed = 1
13325 } else
13326 len += 1 + keylen
13327 }
13328
13329 print line
13330 }
13331
13332 _ACAWK
13333 _ACEOF
13334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13335 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13336 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13337 else
13338 cat
13339 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13340 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13341 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13342 { (exit 1); exit 1; }; }
13343 _ACEOF
13344
13345 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13346 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13347 # trailing colons and then remove the whole line if VPATH becomes empty
13348 # (actually we leave an empty line to preserve line numbers).
13349 if test "x$srcdir" = x.; then
13350 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13351 s/:*\$(srcdir):*/:/
13352 s/:*\${srcdir}:*/:/
13353 s/:*@srcdir@:*/:/
13354 s/^\([^=]*=[ ]*\):*/\1/
13355 s/:*$//
13356 s/^[^=]*=[ ]*$//
13357 }'
13358 fi
13359
13360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13361 fi # test -n "$CONFIG_FILES"
13362
13363 # Set up the scripts for CONFIG_HEADERS section.
13364 # No need to generate them if there are no CONFIG_HEADERS.
13365 # This happens for instance with `./config.status Makefile'.
13366 if test -n "$CONFIG_HEADERS"; then
13367 cat >"$tmp/defines.awk" <<\_ACAWK ||
13368 BEGIN {
13369 _ACEOF
13370
13371 # Transform confdefs.h into an awk script `defines.awk', embedded as
13372 # here-document in config.status, that substitutes the proper values into
13373 # config.h.in to produce config.h.
13374
13375 # Create a delimiter string that does not exist in confdefs.h, to ease
13376 # handling of long lines.
13377 ac_delim='%!_!# '
13378 for ac_last_try in false false :; do
13379 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13380 if test -z "$ac_t"; then
13381 break
13382 elif $ac_last_try; then
13383 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13384 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13385 { (exit 1); exit 1; }; }
13386 else
13387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13388 fi
13389 done
13390
13391 # For the awk script, D is an array of macro values keyed by name,
13392 # likewise P contains macro parameters if any. Preserve backslash
13393 # newline sequences.
13394
13395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13396 sed -n '
13397 s/.\{148\}/&'"$ac_delim"'/g
13398 t rset
13399 :rset
13400 s/^[ ]*#[ ]*define[ ][ ]*/ /
13401 t def
13402 d
13403 :def
13404 s/\\$//
13405 t bsnl
13406 s/["\\]/\\&/g
13407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13408 D["\1"]=" \3"/p
13409 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13410 d
13411 :bsnl
13412 s/["\\]/\\&/g
13413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13414 D["\1"]=" \3\\\\\\n"\\/p
13415 t cont
13416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13417 t cont
13418 d
13419 :cont
13420 n
13421 s/.\{148\}/&'"$ac_delim"'/g
13422 t clear
13423 :clear
13424 s/\\$//
13425 t bsnlc
13426 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13427 d
13428 :bsnlc
13429 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13430 b cont
13431 ' <confdefs.h | sed '
13432 s/'"$ac_delim"'/"\\\
13433 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13434
13435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13436 for (key in D) D_is_set[key] = 1
13437 FS = ""
13438 }
13439 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13440 line = \$ 0
13441 split(line, arg, " ")
13442 if (arg[1] == "#") {
13443 defundef = arg[2]
13444 mac1 = arg[3]
13445 } else {
13446 defundef = substr(arg[1], 2)
13447 mac1 = arg[2]
13448 }
13449 split(mac1, mac2, "(") #)
13450 macro = mac2[1]
13451 prefix = substr(line, 1, index(line, defundef) - 1)
13452 if (D_is_set[macro]) {
13453 # Preserve the white space surrounding the "#".
13454 print prefix "define", macro P[macro] D[macro]
13455 next
13456 } else {
13457 # Replace #undef with comments. This is necessary, for example,
13458 # in the case of _POSIX_SOURCE, which is predefined and required
13459 # on some systems where configure will not decide to define it.
13460 if (defundef == "undef") {
13461 print "/*", prefix defundef, macro, "*/"
13462 next
13463 }
13464 }
13465 }
13466 { print }
13467 _ACAWK
13468 _ACEOF
13469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13470 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13471 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13472 { (exit 1); exit 1; }; }
13473 fi # test -n "$CONFIG_HEADERS"
13474
13475
13476 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13477 shift
13478 for ac_tag
13479 do
13480 case $ac_tag in
13481 :[FHLC]) ac_mode=$ac_tag; continue;;
13482 esac
13483 case $ac_mode$ac_tag in
13484 :[FHL]*:*);;
13485 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13486 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13487 { (exit 1); exit 1; }; };;
13488 :[FH]-) ac_tag=-:-;;
13489 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13490 esac
13491 ac_save_IFS=$IFS
13492 IFS=:
13493 set x $ac_tag
13494 IFS=$ac_save_IFS
13495 shift
13496 ac_file=$1
13497 shift
13498
13499 case $ac_mode in
13500 :L) ac_source=$1;;
13501 :[FH])
13502 ac_file_inputs=
13503 for ac_f
13504 do
13505 case $ac_f in
13506 -) ac_f="$tmp/stdin";;
13507 *) # Look for the file first in the build tree, then in the source tree
13508 # (if the path is not absolute). The absolute path cannot be DOS-style,
13509 # because $ac_f cannot contain `:'.
13510 test -f "$ac_f" ||
13511 case $ac_f in
13512 [\\/$]*) false;;
13513 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13514 esac ||
13515 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13516 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13517 { (exit 1); exit 1; }; };;
13518 esac
13519 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13520 ac_file_inputs="$ac_file_inputs '$ac_f'"
13521 done
13522
13523 # Let's still pretend it is `configure' which instantiates (i.e., don't
13524 # use $as_me), people would be surprised to read:
13525 # /* config.h. Generated by config.status. */
13526 configure_input='Generated from '`
13527 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13528 `' by configure.'
13529 if test x"$ac_file" != x-; then
13530 configure_input="$ac_file. $configure_input"
13531 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13532 $as_echo "$as_me: creating $ac_file" >&6;}
13533 fi
13534 # Neutralize special characters interpreted by sed in replacement strings.
13535 case $configure_input in #(
13536 *\&* | *\|* | *\\* )
13537 ac_sed_conf_input=`$as_echo "$configure_input" |
13538 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13539 *) ac_sed_conf_input=$configure_input;;
13540 esac
13541
13542 case $ac_tag in
13543 *:-:* | *:-) cat >"$tmp/stdin" \
13544 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13545 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13546 { (exit 1); exit 1; }; } ;;
13547 esac
13548 ;;
13549 esac
13550
13551 ac_dir=`$as_dirname -- "$ac_file" ||
13552 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13553 X"$ac_file" : 'X\(//\)[^/]' \| \
13554 X"$ac_file" : 'X\(//\)$' \| \
13555 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13556 $as_echo X"$ac_file" |
13557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13558 s//\1/
13559 q
13560 }
13561 /^X\(\/\/\)[^/].*/{
13562 s//\1/
13563 q
13564 }
13565 /^X\(\/\/\)$/{
13566 s//\1/
13567 q
13568 }
13569 /^X\(\/\).*/{
13570 s//\1/
13571 q
13572 }
13573 s/.*/./; q'`
13574 { as_dir="$ac_dir"
13575 case $as_dir in #(
13576 -*) as_dir=./$as_dir;;
13577 esac
13578 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13579 as_dirs=
13580 while :; do
13581 case $as_dir in #(
13582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13583 *) as_qdir=$as_dir;;
13584 esac
13585 as_dirs="'$as_qdir' $as_dirs"
13586 as_dir=`$as_dirname -- "$as_dir" ||
13587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13588 X"$as_dir" : 'X\(//\)[^/]' \| \
13589 X"$as_dir" : 'X\(//\)$' \| \
13590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13591 $as_echo X"$as_dir" |
13592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13593 s//\1/
13594 q
13595 }
13596 /^X\(\/\/\)[^/].*/{
13597 s//\1/
13598 q
13599 }
13600 /^X\(\/\/\)$/{
13601 s//\1/
13602 q
13603 }
13604 /^X\(\/\).*/{
13605 s//\1/
13606 q
13607 }
13608 s/.*/./; q'`
13609 test -d "$as_dir" && break
13610 done
13611 test -z "$as_dirs" || eval "mkdir $as_dirs"
13612 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13613 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13614 { (exit 1); exit 1; }; }; }
13615 ac_builddir=.
13616
13617 case "$ac_dir" in
13618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13619 *)
13620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13621 # A ".." for each directory in $ac_dir_suffix.
13622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13623 case $ac_top_builddir_sub in
13624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13626 esac ;;
13627 esac
13628 ac_abs_top_builddir=$ac_pwd
13629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13630 # for backward compatibility:
13631 ac_top_builddir=$ac_top_build_prefix
13632
13633 case $srcdir in
13634 .) # We are building in place.
13635 ac_srcdir=.
13636 ac_top_srcdir=$ac_top_builddir_sub
13637 ac_abs_top_srcdir=$ac_pwd ;;
13638 [\\/]* | ?:[\\/]* ) # Absolute name.
13639 ac_srcdir=$srcdir$ac_dir_suffix;
13640 ac_top_srcdir=$srcdir
13641 ac_abs_top_srcdir=$srcdir ;;
13642 *) # Relative name.
13643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13644 ac_top_srcdir=$ac_top_build_prefix$srcdir
13645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13646 esac
13647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13648
13649
13650 case $ac_mode in
13651 :F)
13652 #
13653 # CONFIG_FILE
13654 #
13655
13656 case $INSTALL in
13657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13659 esac
13660 ac_MKDIR_P=$MKDIR_P
13661 case $MKDIR_P in
13662 [\\/$]* | ?:[\\/]* ) ;;
13663 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13664 esac
13665 _ACEOF
13666
13667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668 # If the template does not know about datarootdir, expand it.
13669 # FIXME: This hack should be removed a few years after 2.60.
13670 ac_datarootdir_hack=; ac_datarootdir_seen=
13671
13672 ac_sed_dataroot='
13673 /datarootdir/ {
13674 p
13675 q
13676 }
13677 /@datadir@/p
13678 /@docdir@/p
13679 /@infodir@/p
13680 /@localedir@/p
13681 /@mandir@/p
13682 '
13683 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13684 *datarootdir*) ac_datarootdir_seen=yes;;
13685 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13686 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13687 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13688 _ACEOF
13689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13690 ac_datarootdir_hack='
13691 s&@datadir@&$datadir&g
13692 s&@docdir@&$docdir&g
13693 s&@infodir@&$infodir&g
13694 s&@localedir@&$localedir&g
13695 s&@mandir@&$mandir&g
13696 s&\\\${datarootdir}&$datarootdir&g' ;;
13697 esac
13698 _ACEOF
13699
13700 # Neutralize VPATH when `$srcdir' = `.'.
13701 # Shell code in configure.ac might set extrasub.
13702 # FIXME: do we really want to maintain this feature?
13703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704 ac_sed_extra="$ac_vpsub
13705 $extrasub
13706 _ACEOF
13707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708 :t
13709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13710 s|@configure_input@|$ac_sed_conf_input|;t t
13711 s&@top_builddir@&$ac_top_builddir_sub&;t t
13712 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13713 s&@srcdir@&$ac_srcdir&;t t
13714 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13715 s&@top_srcdir@&$ac_top_srcdir&;t t
13716 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13717 s&@builddir@&$ac_builddir&;t t
13718 s&@abs_builddir@&$ac_abs_builddir&;t t
13719 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13720 s&@INSTALL@&$ac_INSTALL&;t t
13721 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13722 $ac_datarootdir_hack
13723 "
13724 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13727 { (exit 1); exit 1; }; }
13728
13729 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13730 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13731 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13732 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13733 which seems to be undefined. Please make sure it is defined." >&5
13734 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13735 which seems to be undefined. Please make sure it is defined." >&2;}
13736
13737 rm -f "$tmp/stdin"
13738 case $ac_file in
13739 -) cat "$tmp/out" && rm -f "$tmp/out";;
13740 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13741 esac \
13742 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13743 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13744 { (exit 1); exit 1; }; }
13745 ;;
13746 :H)
13747 #
13748 # CONFIG_HEADER
13749 #
13750 if test x"$ac_file" != x-; then
13751 {
13752 $as_echo "/* $configure_input */" \
13753 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13754 } >"$tmp/config.h" \
13755 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13756 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13757 { (exit 1); exit 1; }; }
13758 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13759 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13760 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13761 else
13762 rm -f "$ac_file"
13763 mv "$tmp/config.h" "$ac_file" \
13764 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13765 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13766 { (exit 1); exit 1; }; }
13767 fi
13768 else
13769 $as_echo "/* $configure_input */" \
13770 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13771 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13772 $as_echo "$as_me: error: could not create -" >&2;}
13773 { (exit 1); exit 1; }; }
13774 fi
13775 # Compute "$ac_file"'s index in $config_headers.
13776 _am_arg="$ac_file"
13777 _am_stamp_count=1
13778 for _am_header in $config_headers :; do
13779 case $_am_header in
13780 $_am_arg | $_am_arg:* )
13781 break ;;
13782 * )
13783 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13784 esac
13785 done
13786 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13787 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13788 X"$_am_arg" : 'X\(//\)[^/]' \| \
13789 X"$_am_arg" : 'X\(//\)$' \| \
13790 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13791 $as_echo X"$_am_arg" |
13792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13793 s//\1/
13794 q
13795 }
13796 /^X\(\/\/\)[^/].*/{
13797 s//\1/
13798 q
13799 }
13800 /^X\(\/\/\)$/{
13801 s//\1/
13802 q
13803 }
13804 /^X\(\/\).*/{
13805 s//\1/
13806 q
13807 }
13808 s/.*/./; q'`/stamp-h$_am_stamp_count
13809 ;;
13810
13811 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13812 $as_echo "$as_me: executing $ac_file commands" >&6;}
13813 ;;
13814 esac
13815
13816
13817 case $ac_file$ac_mode in
13818 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13819 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13820 # are listed without --file. Let's play safe and only enable the eval
13821 # if we detect the quoting.
13822 case $CONFIG_FILES in
13823 *\'*) eval set x "$CONFIG_FILES" ;;
13824 *) set x $CONFIG_FILES ;;
13825 esac
13826 shift
13827 for mf
13828 do
13829 # Strip MF so we end up with the name of the file.
13830 mf=`echo "$mf" | sed -e 's/:.*$//'`
13831 # Check whether this is an Automake generated Makefile or not.
13832 # We used to match only the files named `Makefile.in', but
13833 # some people rename them; so instead we look at the file content.
13834 # Grep'ing the first line is not enough: some people post-process
13835 # each Makefile.in and add a new line on top of each file to say so.
13836 # Grep'ing the whole file is not good either: AIX grep has a line
13837 # limit of 2048, but all sed's we know have understand at least 4000.
13838 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13839 dirpart=`$as_dirname -- "$mf" ||
13840 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13841 X"$mf" : 'X\(//\)[^/]' \| \
13842 X"$mf" : 'X\(//\)$' \| \
13843 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13844 $as_echo X"$mf" |
13845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13846 s//\1/
13847 q
13848 }
13849 /^X\(\/\/\)[^/].*/{
13850 s//\1/
13851 q
13852 }
13853 /^X\(\/\/\)$/{
13854 s//\1/
13855 q
13856 }
13857 /^X\(\/\).*/{
13858 s//\1/
13859 q
13860 }
13861 s/.*/./; q'`
13862 else
13863 continue
13864 fi
13865 # Extract the definition of DEPDIR, am__include, and am__quote
13866 # from the Makefile without running `make'.
13867 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13868 test -z "$DEPDIR" && continue
13869 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13870 test -z "am__include" && continue
13871 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13872 # When using ansi2knr, U may be empty or an underscore; expand it
13873 U=`sed -n 's/^U = //p' < "$mf"`
13874 # Find all dependency output files, they are included files with
13875 # $(DEPDIR) in their names. We invoke sed twice because it is the
13876 # simplest approach to changing $(DEPDIR) to its actual value in the
13877 # expansion.
13878 for file in `sed -n "
13879 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13880 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13881 # Make sure the directory exists.
13882 test -f "$dirpart/$file" && continue
13883 fdir=`$as_dirname -- "$file" ||
13884 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13885 X"$file" : 'X\(//\)[^/]' \| \
13886 X"$file" : 'X\(//\)$' \| \
13887 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13888 $as_echo X"$file" |
13889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13890 s//\1/
13891 q
13892 }
13893 /^X\(\/\/\)[^/].*/{
13894 s//\1/
13895 q
13896 }
13897 /^X\(\/\/\)$/{
13898 s//\1/
13899 q
13900 }
13901 /^X\(\/\).*/{
13902 s//\1/
13903 q
13904 }
13905 s/.*/./; q'`
13906 { as_dir=$dirpart/$fdir
13907 case $as_dir in #(
13908 -*) as_dir=./$as_dir;;
13909 esac
13910 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13911 as_dirs=
13912 while :; do
13913 case $as_dir in #(
13914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13915 *) as_qdir=$as_dir;;
13916 esac
13917 as_dirs="'$as_qdir' $as_dirs"
13918 as_dir=`$as_dirname -- "$as_dir" ||
13919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13920 X"$as_dir" : 'X\(//\)[^/]' \| \
13921 X"$as_dir" : 'X\(//\)$' \| \
13922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13923 $as_echo X"$as_dir" |
13924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13925 s//\1/
13926 q
13927 }
13928 /^X\(\/\/\)[^/].*/{
13929 s//\1/
13930 q
13931 }
13932 /^X\(\/\/\)$/{
13933 s//\1/
13934 q
13935 }
13936 /^X\(\/\).*/{
13937 s//\1/
13938 q
13939 }
13940 s/.*/./; q'`
13941 test -d "$as_dir" && break
13942 done
13943 test -z "$as_dirs" || eval "mkdir $as_dirs"
13944 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13945 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13946 { (exit 1); exit 1; }; }; }
13947 # echo "creating $dirpart/$file"
13948 echo '# dummy' > "$dirpart/$file"
13949 done
13950 done
13951 }
13952 ;;
13953 "libtool":C)
13954
13955 # See if we are running on zsh, and set the options which allow our
13956 # commands through without removal of \ escapes.
13957 if test -n "${ZSH_VERSION+set}" ; then
13958 setopt NO_GLOB_SUBST
13959 fi
13960
13961 cfgfile="${ofile}T"
13962 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13963 $RM "$cfgfile"
13964
13965 cat <<_LT_EOF >> "$cfgfile"
13966 #! $SHELL
13967
13968 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13969 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13971 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13972 #
13973 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13974 # 2006, 2007, 2008 Free Software Foundation, Inc.
13975 # Written by Gordon Matzigkeit, 1996
13976 #
13977 # This file is part of GNU Libtool.
13978 #
13979 # GNU Libtool is free software; you can redistribute it and/or
13980 # modify it under the terms of the GNU General Public License as
13981 # published by the Free Software Foundation; either version 2 of
13982 # the License, or (at your option) any later version.
13983 #
13984 # As a special exception to the GNU General Public License,
13985 # if you distribute this file as part of a program or library that
13986 # is built using GNU Libtool, you may include this file under the
13987 # same distribution terms that you use for the rest of that program.
13988 #
13989 # GNU Libtool is distributed in the hope that it will be useful,
13990 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13992 # GNU General Public License for more details.
13993 #
13994 # You should have received a copy of the GNU General Public License
13995 # along with GNU Libtool; see the file COPYING. If not, a copy
13996 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13997 # obtained by writing to the Free Software Foundation, Inc.,
13998 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13999
14000
14001 # The names of the tagged configurations supported by this script.
14002 available_tags=""
14003
14004 # ### BEGIN LIBTOOL CONFIG
14005
14006 # Assembler program.
14007 AS=$AS
14008
14009 # DLL creation program.
14010 DLLTOOL=$DLLTOOL
14011
14012 # Object dumper program.
14013 OBJDUMP=$OBJDUMP
14014
14015 # Which release of libtool.m4 was used?
14016 macro_version=$macro_version
14017 macro_revision=$macro_revision
14018
14019 # Whether or not to build shared libraries.
14020 build_libtool_libs=$enable_shared
14021
14022 # Whether or not to build static libraries.
14023 build_old_libs=$enable_static
14024
14025 # What type of objects to build.
14026 pic_mode=$pic_mode
14027
14028 # Whether or not to optimize for fast installation.
14029 fast_install=$enable_fast_install
14030
14031 # The host system.
14032 host_alias=$host_alias
14033 host=$host
14034 host_os=$host_os
14035
14036 # The build system.
14037 build_alias=$build_alias
14038 build=$build
14039 build_os=$build_os
14040
14041 # A sed program that does not truncate output.
14042 SED=$lt_SED
14043
14044 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14045 Xsed="\$SED -e 1s/^X//"
14046
14047 # A grep program that handles long lines.
14048 GREP=$lt_GREP
14049
14050 # An ERE matcher.
14051 EGREP=$lt_EGREP
14052
14053 # A literal string matcher.
14054 FGREP=$lt_FGREP
14055
14056 # A BSD- or MS-compatible name lister.
14057 NM=$lt_NM
14058
14059 # Whether we need soft or hard links.
14060 LN_S=$lt_LN_S
14061
14062 # What is the maximum length of a command?
14063 max_cmd_len=$max_cmd_len
14064
14065 # Object file suffix (normally "o").
14066 objext=$ac_objext
14067
14068 # Executable file suffix (normally "").
14069 exeext=$exeext
14070
14071 # whether the shell understands "unset".
14072 lt_unset=$lt_unset
14073
14074 # turn spaces into newlines.
14075 SP2NL=$lt_lt_SP2NL
14076
14077 # turn newlines into spaces.
14078 NL2SP=$lt_lt_NL2SP
14079
14080 # How to create reloadable object files.
14081 reload_flag=$lt_reload_flag
14082 reload_cmds=$lt_reload_cmds
14083
14084 # Method to check whether dependent libraries are shared objects.
14085 deplibs_check_method=$lt_deplibs_check_method
14086
14087 # Command to use when deplibs_check_method == "file_magic".
14088 file_magic_cmd=$lt_file_magic_cmd
14089
14090 # The archiver.
14091 AR=$lt_AR
14092 AR_FLAGS=$lt_AR_FLAGS
14093
14094 # A symbol stripping program.
14095 STRIP=$lt_STRIP
14096
14097 # Commands used to install an old-style archive.
14098 RANLIB=$lt_RANLIB
14099 old_postinstall_cmds=$lt_old_postinstall_cmds
14100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14101
14102 # A C compiler.
14103 LTCC=$lt_CC
14104
14105 # LTCC compiler flags.
14106 LTCFLAGS=$lt_CFLAGS
14107
14108 # Take the output of nm and produce a listing of raw symbols and C names.
14109 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14110
14111 # Transform the output of nm in a proper C declaration.
14112 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14113
14114 # Transform the output of nm in a C name address pair.
14115 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14116
14117 # Transform the output of nm in a C name address pair when lib prefix is needed.
14118 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14119
14120 # The name of the directory that contains temporary libtool files.
14121 objdir=$objdir
14122
14123 # Shell to use when invoking shell scripts.
14124 SHELL=$lt_SHELL
14125
14126 # An echo program that does not interpret backslashes.
14127 ECHO=$lt_ECHO
14128
14129 # Used to examine libraries when file_magic_cmd begins with "file".
14130 MAGIC_CMD=$MAGIC_CMD
14131
14132 # Must we lock files when doing compilation?
14133 need_locks=$lt_need_locks
14134
14135 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14136 DSYMUTIL=$lt_DSYMUTIL
14137
14138 # Tool to change global to local symbols on Mac OS X.
14139 NMEDIT=$lt_NMEDIT
14140
14141 # Tool to manipulate fat objects and archives on Mac OS X.
14142 LIPO=$lt_LIPO
14143
14144 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14145 OTOOL=$lt_OTOOL
14146
14147 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14148 OTOOL64=$lt_OTOOL64
14149
14150 # Old archive suffix (normally "a").
14151 libext=$libext
14152
14153 # Shared library suffix (normally ".so").
14154 shrext_cmds=$lt_shrext_cmds
14155
14156 # The commands to extract the exported symbol list from a shared archive.
14157 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14158
14159 # Variables whose values should be saved in libtool wrapper scripts and
14160 # restored at link time.
14161 variables_saved_for_relink=$lt_variables_saved_for_relink
14162
14163 # Do we need the "lib" prefix for modules?
14164 need_lib_prefix=$need_lib_prefix
14165
14166 # Do we need a version for libraries?
14167 need_version=$need_version
14168
14169 # Library versioning type.
14170 version_type=$version_type
14171
14172 # Shared library runtime path variable.
14173 runpath_var=$runpath_var
14174
14175 # Shared library path variable.
14176 shlibpath_var=$shlibpath_var
14177
14178 # Is shlibpath searched before the hard-coded library search path?
14179 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14180
14181 # Format of library name prefix.
14182 libname_spec=$lt_libname_spec
14183
14184 # List of archive names. First name is the real one, the rest are links.
14185 # The last name is the one that the linker finds with -lNAME
14186 library_names_spec=$lt_library_names_spec
14187
14188 # The coded name of the library, if different from the real name.
14189 soname_spec=$lt_soname_spec
14190
14191 # Command to use after installation of a shared archive.
14192 postinstall_cmds=$lt_postinstall_cmds
14193
14194 # Command to use after uninstallation of a shared archive.
14195 postuninstall_cmds=$lt_postuninstall_cmds
14196
14197 # Commands used to finish a libtool library installation in a directory.
14198 finish_cmds=$lt_finish_cmds
14199
14200 # As "finish_cmds", except a single script fragment to be evaled but
14201 # not shown.
14202 finish_eval=$lt_finish_eval
14203
14204 # Whether we should hardcode library paths into libraries.
14205 hardcode_into_libs=$hardcode_into_libs
14206
14207 # Compile-time system search path for libraries.
14208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14209
14210 # Run-time system search path for libraries.
14211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14212
14213 # Whether dlopen is supported.
14214 dlopen_support=$enable_dlopen
14215
14216 # Whether dlopen of programs is supported.
14217 dlopen_self=$enable_dlopen_self
14218
14219 # Whether dlopen of statically linked programs is supported.
14220 dlopen_self_static=$enable_dlopen_self_static
14221
14222 # Commands to strip libraries.
14223 old_striplib=$lt_old_striplib
14224 striplib=$lt_striplib
14225
14226
14227 # The linker used to build libraries.
14228 LD=$lt_LD
14229
14230 # Commands used to build an old-style archive.
14231 old_archive_cmds=$lt_old_archive_cmds
14232
14233 # A language specific compiler.
14234 CC=$lt_compiler
14235
14236 # Is the compiler the GNU compiler?
14237 with_gcc=$GCC
14238
14239 # Compiler flag to turn off builtin functions.
14240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14241
14242 # How to pass a linker flag through the compiler.
14243 wl=$lt_lt_prog_compiler_wl
14244
14245 # Additional compiler flags for building library objects.
14246 pic_flag=$lt_lt_prog_compiler_pic
14247
14248 # Compiler flag to prevent dynamic linking.
14249 link_static_flag=$lt_lt_prog_compiler_static
14250
14251 # Does compiler simultaneously support -c and -o options?
14252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14253
14254 # Whether or not to add -lc for building shared libraries.
14255 build_libtool_need_lc=$archive_cmds_need_lc
14256
14257 # Whether or not to disallow shared libs when runtime libs are static.
14258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14259
14260 # Compiler flag to allow reflexive dlopens.
14261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14262
14263 # Compiler flag to generate shared objects directly from archives.
14264 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14265
14266 # Whether the compiler copes with passing no objects directly.
14267 compiler_needs_object=$lt_compiler_needs_object
14268
14269 # Create an old-style archive from a shared archive.
14270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14271
14272 # Create a temporary old-style archive to link instead of a shared archive.
14273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14274
14275 # Commands used to build a shared archive.
14276 archive_cmds=$lt_archive_cmds
14277 archive_expsym_cmds=$lt_archive_expsym_cmds
14278
14279 # Commands used to build a loadable module if different from building
14280 # a shared archive.
14281 module_cmds=$lt_module_cmds
14282 module_expsym_cmds=$lt_module_expsym_cmds
14283
14284 # Whether we are building with GNU ld or not.
14285 with_gnu_ld=$lt_with_gnu_ld
14286
14287 # Flag that allows shared libraries with undefined symbols to be built.
14288 allow_undefined_flag=$lt_allow_undefined_flag
14289
14290 # Flag that enforces no undefined symbols.
14291 no_undefined_flag=$lt_no_undefined_flag
14292
14293 # Flag to hardcode \$libdir into a binary during linking.
14294 # This must work even if \$libdir does not exist
14295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14296
14297 # If ld is used when linking, flag to hardcode \$libdir into a binary
14298 # during linking. This must work even if \$libdir does not exist.
14299 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14300
14301 # Whether we need a single "-rpath" flag with a separated argument.
14302 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14303
14304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14305 # DIR into the resulting binary.
14306 hardcode_direct=$hardcode_direct
14307
14308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14309 # DIR into the resulting binary and the resulting library dependency is
14310 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14311 # library is relocated.
14312 hardcode_direct_absolute=$hardcode_direct_absolute
14313
14314 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14315 # into the resulting binary.
14316 hardcode_minus_L=$hardcode_minus_L
14317
14318 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14319 # into the resulting binary.
14320 hardcode_shlibpath_var=$hardcode_shlibpath_var
14321
14322 # Set to "yes" if building a shared library automatically hardcodes DIR
14323 # into the library and all subsequent libraries and executables linked
14324 # against it.
14325 hardcode_automatic=$hardcode_automatic
14326
14327 # Set to yes if linker adds runtime paths of dependent libraries
14328 # to runtime path list.
14329 inherit_rpath=$inherit_rpath
14330
14331 # Whether libtool must link a program against all its dependency libraries.
14332 link_all_deplibs=$link_all_deplibs
14333
14334 # Fix the shell variable \$srcfile for the compiler.
14335 fix_srcfile_path=$lt_fix_srcfile_path
14336
14337 # Set to "yes" if exported symbols are required.
14338 always_export_symbols=$always_export_symbols
14339
14340 # The commands to list exported symbols.
14341 export_symbols_cmds=$lt_export_symbols_cmds
14342
14343 # Symbols that should not be listed in the preloaded symbols.
14344 exclude_expsyms=$lt_exclude_expsyms
14345
14346 # Symbols that must always be exported.
14347 include_expsyms=$lt_include_expsyms
14348
14349 # Commands necessary for linking programs (against libraries) with templates.
14350 prelink_cmds=$lt_prelink_cmds
14351
14352 # Specify filename containing input files.
14353 file_list_spec=$lt_file_list_spec
14354
14355 # How to hardcode a shared library path into an executable.
14356 hardcode_action=$hardcode_action
14357
14358 # ### END LIBTOOL CONFIG
14359
14360 _LT_EOF
14361
14362 case $host_os in
14363 aix3*)
14364 cat <<\_LT_EOF >> "$cfgfile"
14365 # AIX sometimes has problems with the GCC collect2 program. For some
14366 # reason, if we set the COLLECT_NAMES environment variable, the problems
14367 # vanish in a puff of smoke.
14368 if test "X${COLLECT_NAMES+set}" != Xset; then
14369 COLLECT_NAMES=
14370 export COLLECT_NAMES
14371 fi
14372 _LT_EOF
14373 ;;
14374 esac
14375
14376
14377 ltmain="$ac_aux_dir/ltmain.sh"
14378
14379
14380 # We use sed instead of cat because bash on DJGPP gets confused if
14381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14382 # text mode, it properly converts lines to CR/LF. This bash problem
14383 # is reportedly fixed, but why not run on old versions too?
14384 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14385 || (rm -f "$cfgfile"; exit 1)
14386
14387 case $xsi_shell in
14388 yes)
14389 cat << \_LT_EOF >> "$cfgfile"
14390
14391 # func_dirname file append nondir_replacement
14392 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14393 # otherwise set result to NONDIR_REPLACEMENT.
14394 func_dirname ()
14395 {
14396 case ${1} in
14397 */*) func_dirname_result="${1%/*}${2}" ;;
14398 * ) func_dirname_result="${3}" ;;
14399 esac
14400 }
14401
14402 # func_basename file
14403 func_basename ()
14404 {
14405 func_basename_result="${1##*/}"
14406 }
14407
14408 # func_dirname_and_basename file append nondir_replacement
14409 # perform func_basename and func_dirname in a single function
14410 # call:
14411 # dirname: Compute the dirname of FILE. If nonempty,
14412 # add APPEND to the result, otherwise set result
14413 # to NONDIR_REPLACEMENT.
14414 # value returned in "$func_dirname_result"
14415 # basename: Compute filename of FILE.
14416 # value retuned in "$func_basename_result"
14417 # Implementation must be kept synchronized with func_dirname
14418 # and func_basename. For efficiency, we do not delegate to
14419 # those functions but instead duplicate the functionality here.
14420 func_dirname_and_basename ()
14421 {
14422 case ${1} in
14423 */*) func_dirname_result="${1%/*}${2}" ;;
14424 * ) func_dirname_result="${3}" ;;
14425 esac
14426 func_basename_result="${1##*/}"
14427 }
14428
14429 # func_stripname prefix suffix name
14430 # strip PREFIX and SUFFIX off of NAME.
14431 # PREFIX and SUFFIX must not contain globbing or regex special
14432 # characters, hashes, percent signs, but SUFFIX may contain a leading
14433 # dot (in which case that matches only a dot).
14434 func_stripname ()
14435 {
14436 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14437 # positional parameters, so assign one to ordinary parameter first.
14438 func_stripname_result=${3}
14439 func_stripname_result=${func_stripname_result#"${1}"}
14440 func_stripname_result=${func_stripname_result%"${2}"}
14441 }
14442
14443 # func_opt_split
14444 func_opt_split ()
14445 {
14446 func_opt_split_opt=${1%%=*}
14447 func_opt_split_arg=${1#*=}
14448 }
14449
14450 # func_lo2o object
14451 func_lo2o ()
14452 {
14453 case ${1} in
14454 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14455 *) func_lo2o_result=${1} ;;
14456 esac
14457 }
14458
14459 # func_xform libobj-or-source
14460 func_xform ()
14461 {
14462 func_xform_result=${1%.*}.lo
14463 }
14464
14465 # func_arith arithmetic-term...
14466 func_arith ()
14467 {
14468 func_arith_result=$(( $* ))
14469 }
14470
14471 # func_len string
14472 # STRING may not start with a hyphen.
14473 func_len ()
14474 {
14475 func_len_result=${#1}
14476 }
14477
14478 _LT_EOF
14479 ;;
14480 *) # Bourne compatible functions.
14481 cat << \_LT_EOF >> "$cfgfile"
14482
14483 # func_dirname file append nondir_replacement
14484 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14485 # otherwise set result to NONDIR_REPLACEMENT.
14486 func_dirname ()
14487 {
14488 # Extract subdirectory from the argument.
14489 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14490 if test "X$func_dirname_result" = "X${1}"; then
14491 func_dirname_result="${3}"
14492 else
14493 func_dirname_result="$func_dirname_result${2}"
14494 fi
14495 }
14496
14497 # func_basename file
14498 func_basename ()
14499 {
14500 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14501 }
14502
14503
14504 # func_stripname prefix suffix name
14505 # strip PREFIX and SUFFIX off of NAME.
14506 # PREFIX and SUFFIX must not contain globbing or regex special
14507 # characters, hashes, percent signs, but SUFFIX may contain a leading
14508 # dot (in which case that matches only a dot).
14509 # func_strip_suffix prefix name
14510 func_stripname ()
14511 {
14512 case ${2} in
14513 .*) func_stripname_result=`$ECHO "X${3}" \
14514 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14515 *) func_stripname_result=`$ECHO "X${3}" \
14516 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14517 esac
14518 }
14519
14520 # sed scripts:
14521 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14522 my_sed_long_arg='1s/^-[^=]*=//'
14523
14524 # func_opt_split
14525 func_opt_split ()
14526 {
14527 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14528 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14529 }
14530
14531 # func_lo2o object
14532 func_lo2o ()
14533 {
14534 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14535 }
14536
14537 # func_xform libobj-or-source
14538 func_xform ()
14539 {
14540 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14541 }
14542
14543 # func_arith arithmetic-term...
14544 func_arith ()
14545 {
14546 func_arith_result=`expr "$@"`
14547 }
14548
14549 # func_len string
14550 # STRING may not start with a hyphen.
14551 func_len ()
14552 {
14553 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14554 }
14555
14556 _LT_EOF
14557 esac
14558
14559 case $lt_shell_append in
14560 yes)
14561 cat << \_LT_EOF >> "$cfgfile"
14562
14563 # func_append var value
14564 # Append VALUE to the end of shell variable VAR.
14565 func_append ()
14566 {
14567 eval "$1+=\$2"
14568 }
14569 _LT_EOF
14570 ;;
14571 *)
14572 cat << \_LT_EOF >> "$cfgfile"
14573
14574 # func_append var value
14575 # Append VALUE to the end of shell variable VAR.
14576 func_append ()
14577 {
14578 eval "$1=\$$1\$2"
14579 }
14580
14581 _LT_EOF
14582 ;;
14583 esac
14584
14585
14586 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14587 || (rm -f "$cfgfile"; exit 1)
14588
14589 mv -f "$cfgfile" "$ofile" ||
14590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14591 chmod +x "$ofile"
14592
14593 ;;
14594
14595 esac
14596 done # for ac_tag
14597
14598
14599 { (exit 0); exit 0; }
14600 _ACEOF
14601 chmod +x $CONFIG_STATUS
14602 ac_clean_files=$ac_clean_files_save
14603
14604 test $ac_write_fail = 0 ||
14605 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14606 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14607 { (exit 1); exit 1; }; }
14608
14609
14610 # configure is writing to config.log, and then calls config.status.
14611 # config.status does its own redirection, appending to config.log.
14612 # Unfortunately, on DOS this fails, as config.log is still kept open
14613 # by configure, so config.status won't be able to write to it; its
14614 # output is simply discarded. So we exec the FD to /dev/null,
14615 # effectively closing config.log, so it can be properly (re)opened and
14616 # appended to by config.status. When coming back to configure, we
14617 # need to make the FD available again.
14618 if test "$no_create" != yes; then
14619 ac_cs_success=:
14620 ac_config_status_args=
14621 test "$silent" = yes &&
14622 ac_config_status_args="$ac_config_status_args --quiet"
14623 exec 5>/dev/null
14624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14625 exec 5>>config.log
14626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14627 # would make configure fail if this is the last instruction.
14628 $ac_cs_success || { (exit 1); exit 1; }
14629 fi
14630 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14631 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14632 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14633 fi
14634
14635